EDAFT(1) SysV EDAFT(1)
NAME
edaft - edit address families to type mapfile
SYNOPSIS
edaft [-i] [-l] [-v] [-a type,af[,st[,pf]]]
[-d type,af[,st[,pf]]]
[-n filename]
DESCRIPTION
edaft allows you to edit the address-families-to-type mapfile.
OPTIONS
-i Initialize the mapfile, creating it if it does not exist.
-l List the address-family-to-type entries in the mapfile.
-a type,af[,st[,pf]]]
Add an entry to map an (af,st,pf triplet to a type. type is a
type name, as given by the lty(1) command. af is the integer
representing an address family, as given by the socket.h file.
st is the integer representing a socket type, as given by the
socket.h file. If this is omitted, a wildcard is used. pf is
the integer representing a protocol family, as given by the
socket.h file. If this is omitted, a wildcard is used.
-d type,af[,st[,pf]]]
Delete an entry which maps an (af,st,pf triplet to a type.
Only entries which exactly map the argument will be deleted.
type is a type name, as given by the lty(1) command. af is the
integer representing an address family, as given by the
socket.h file. st is the integer representing a socket type,
as given by the socket.h file. If this is omitted, a wildcard
is used. pf is the integer representing a protocol family, as
given by the socket.h file. If this is omitted, a wildcard is
used.
-n filename
Use the mapfile specified by filename instead of the system
mapfile.
-v Verbose mode.
EXAMPLES
List the address-family-to-type mapfile:
$ edaft -l
uds (379c1e7f.4000ba7b) 1 0 0
tcp_sock (0000031b.00000000) 2 0 0
dds (2d051206.70003166) 13 0 0
FILES
/sys/address_families system address family to type mapfile
/usr/include/sys/socket.h BSD4.3 socket header file
SEE ALSO
lty(1)