# 2.11BSD#431 - /usr/src/sys/h/socket.h

##### Macros

    AF_APPLETALK      X
    AF_CCITT          X
    AF_CHAOS          X
    AF_DATAKIT        X
    AF_DECnet         X
    AF_DLI            X
    AF_ECMA           X
    AF_HYLINK         X
    AF_IMPLINK        X
    AF_INET           X
    AF_LAT            X
    AF_MAX            X
    AF_NBS            X
    AF_NS             X
    AF_PUP            X
    AF_SNA            X
    AF_UNIX           X
    AF_UNSPEC         X
    CTL_NET_NAMES     X
    MSG_DONTROUTE     X
    MSG_MAXIOVLEN     X
    MSG_OOB           X
    MSG_PEEK          X
    NET_MAXID         X
    PF_APPLETALK      X
    PF_CCITT          X
    PF_CHAOS          X
    PF_DATAKIT        X
    PF_DECnet         X
    PF_DLI            X
    PF_ECMA           X
    PF_HYLINK         X
    PF_IMPLINK        X
    PF_INET           X
    PF_LAT            X
    PF_MAX            X
    PF_NBS            X
    PF_NS             X
    PF_PUP            X
    PF_SNA            X
    PF_UNIX           X
    PF_UNSPEC         X
    SOCK_DGRAM        X
    SOCK_RAW          X
    SOCK_RDM          X
    SOCK_SEQPACKET    X
    SOCK_STREAM       X
    SOL_SOCKET        X
    SOMAXCONN         X
    SO_ACCEPTCONN     X
    SO_BROADCAST      X
    SO_DEBUG          X
    SO_DONTROUTE      X
    SO_ERROR          X
    SO_KEEPALIVE      X
    SO_LINGER         X
    SO_OOBINLINE      X
    SO_RCVBUF         X
    SO_RCVLOWAT       X
    SO_RCVTIMEO       X
    SO_REUSEADDR      X
    SO_SNDBUF         X
    SO_SNDLOWAT       X
    SO_SNDTIMEO       X
    SO_TYPE           X
    SO_USELOOPBACK    X
    _SYS_SOCKET_H_    X

##### struct's

    linger            X
    msghdr            X
    sockaddr          X
    sockproto         X

       1: /*
       2:  * Copyright (c) 1982, 1985, 1986 Regents of the University of California.
       3:  * All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms are permitted
       6:  * provided that this notice is preserved and that due credit is given
       7:  * to the University of California at Berkeley. The name of the University
       8:  * may not be used to endorse or promote products derived from this
       9:  * software without specific prior written permission. This software
      10:  * is provided ``as is'' without express or implied warranty.
      11:  *
      12:  *	@(#)socket.h	7.2.2 (2.11BSD GTE) 1995/10/11
      13:  */
      14:
      15: #ifndef _SYS_SOCKET_H_
      16: #define _SYS_SOCKET_H_
      17:
      18: /*
      19:  * Definitions related to sockets: types, address families, options.
      20:  */
      21:
      22: /*
      23:  * Types
      24:  */
      25: #define SOCK_STREAM 1       /* stream socket */
      26: #define SOCK_DGRAM  2       /* datagram socket */
      27: #define SOCK_RAW    3       /* raw-protocol interface */
      28: #define SOCK_RDM    4       /* reliably-delivered message */
      29: #define SOCK_SEQPACKET  5       /* sequenced packet stream */
      30:
      31: /*
      32:  * Option flags per-socket.
      33:  */
      34: #define SO_DEBUG    0x0001      /* turn on debugging info recording */
      35: #define SO_ACCEPTCONN   0x0002      /* socket has had listen() */
      36: #define SO_REUSEADDR    0x0004      /* allow local address reuse */
      37: #define SO_KEEPALIVE    0x0008      /* keep connections alive */
      38: #define SO_DONTROUTE    0x0010      /* just use interface addresses */
      39: #define SO_BROADCAST    0x0020      /* permit sending of broadcast msgs */
      40: #define SO_USELOOPBACK  0x0040      /* bypass hardware when possible */
      41: #define SO_LINGER   0x0080      /* linger on close if data present */
      42: #define SO_OOBINLINE    0x0100      /* leave received OOB data in line */
      43:
      44: /*
      45:  * Additional options, not kept in so_options.
      46:  */
      47: #define SO_SNDBUF   0x1001      /* send buffer size */
      48: #define SO_RCVBUF   0x1002      /* receive buffer size */
      49: #define SO_SNDLOWAT 0x1003      /* send low-water mark */
      50: #define SO_RCVLOWAT 0x1004      /* receive low-water mark */
      51: #define SO_SNDTIMEO 0x1005      /* send timeout */
      52: #define SO_RCVTIMEO 0x1006      /* receive timeout */
      53: #define SO_ERROR    0x1007      /* get error status and clear */
      54: #define SO_TYPE     0x1008      /* get socket type */
      55:
      56: /*
      57:  * Structure used for manipulating linger option.
      58:  */
      59: struct  linger {
      60:     int l_onoff;        /* option on/off */
      61:     int l_linger;       /* linger time */
      62: };
      63:
      64: /*
      65:  * Level number for (get/set)sockopt() to apply to socket itself.
      66:  */
      67: #define SOL_SOCKET  0xffff      /* options for socket level */
      68:
      69: /*
      70:  * Address families.
      71:  */
      72: #define AF_UNSPEC   0       /* unspecified */
      73: #define AF_UNIX     1       /* local to host (pipes, portals) */
      74: #define AF_INET     2       /* internetwork: UDP, TCP, etc. */
      75: #define AF_IMPLINK  3       /* arpanet imp addresses */
      76: #define AF_PUP      4       /* pup protocols: e.g. BSP */
      77: #define AF_CHAOS    5       /* mit CHAOS protocols */
      78: #define AF_NS       6       /* XEROX NS protocols */
      79: #define AF_NBS      7       /* nbs protocols */
      80: #define AF_ECMA     8       /* european computer manufacturers */
      81: #define AF_DATAKIT  9       /* datakit protocols */
      82: #define AF_CCITT    10      /* CCITT protocols, X.25 etc */
      83: #define AF_SNA      11      /* IBM SNA */
      84: #define AF_DECnet   12      /* DECnet */
      85: #define AF_DLI      13      /* Direct data link interface */
      86: #define AF_LAT      14      /* LAT */
      87: #define AF_HYLINK   15      /* NSC Hyperchannel */
      88: #define AF_APPLETALK    16      /* Apple Talk */
      89:
      90: #define AF_MAX      17
      91:
      92: /*
      93:  * Structure used by kernel to store most
      94:  * addresses.
      95:  */
      96: struct sockaddr {
      97:     u_short sa_family;      /* address family */
      98:     char    sa_data[14];        /* up to 14 bytes of direct address */
      99: };
     100:
     101: /*
     102:  * Structure used by kernel to pass protocol
     103:  * information in raw sockets.
     104:  */
     105: struct sockproto {
     106:     u_short sp_family;      /* address family */
     107:     u_short sp_protocol;        /* protocol */
     108: };
     109:
     110: /*
     111:  * Protocol families, same as address families for now.
     112:  */
     113: #define PF_UNSPEC   AF_UNSPEC
     114: #define PF_UNIX     AF_UNIX
     115: #define PF_INET     AF_INET
     116: #define PF_IMPLINK  AF_IMPLINK
     117: #define PF_PUP      AF_PUP
     118: #define PF_CHAOS    AF_CHAOS
     119: #define PF_NS       AF_NS
     120: #define PF_NBS      AF_NBS
     121: #define PF_ECMA     AF_ECMA
     122: #define PF_DATAKIT  AF_DATAKIT
     123: #define PF_CCITT    AF_CCITT
     124: #define PF_SNA      AF_SNA
     125: #define PF_DECnet   AF_DECnet
     126: #define PF_DLI      AF_DLI
     127: #define PF_LAT      AF_LAT
     128: #define PF_HYLINK   AF_HYLINK
     129: #define PF_APPLETALK    AF_APPLETALK
     130:
     131: #define PF_MAX      AF_MAX
     132:
     133: /*
     134:  * Definitions for network related sysctl, CTL_NET.
     135:  *
     136:  * Second level is protocol family.
     137:  * Third level is protocol number.
     138:  *
     139:  * Further levels are defined by the individual families below.
     140:  */
     141: #define NET_MAXID   AF_MAX
     142:
     143: #ifndef KERNEL
     144: #define CTL_NET_NAMES { \
     145:     { 0, 0 }, \
     146:     { "unix", CTLTYPE_NODE }, \
     147:     { "inet", CTLTYPE_NODE }, \
     148:     { "implink", CTLTYPE_NODE }, \
     149:     { "pup", CTLTYPE_NODE }, \
     150:     { "chaos", CTLTYPE_NODE }, \
     151:     { "xerox_ns", CTLTYPE_NODE }, \
     152:     { "iso", CTLTYPE_NODE }, \
     153:     { "emca", CTLTYPE_NODE }, \
     154:     { "datakit", CTLTYPE_NODE }, \
     155:     { "ccitt", CTLTYPE_NODE }, \
     156:     { "ibm_sna", CTLTYPE_NODE }, \
     157:     { "decnet", CTLTYPE_NODE }, \
     158:     { "dec_dli", CTLTYPE_NODE }, \
     159:     { "lat", CTLTYPE_NODE }, \
     160:     { "hylink", CTLTYPE_NODE }, \
     161:     { "appletalk", CTLTYPE_NODE }, \
     162: }
     163: #endif
     164:
     165: /*
     166:  * Maximum queue length specifiable by listen.
     167:  */
     168: #define SOMAXCONN   5
     169:
     170: /*
     171:  * Message header for recvmsg and sendmsg calls.
     172:  */
     173: struct msghdr {
     174:     caddr_t msg_name;       /* optional address */
     175:     int msg_namelen;        /* size of address */
     176:     struct  iovec *msg_iov;     /* scatter/gather array */
     177:     int msg_iovlen;     /* # elements in msg_iov */
     178:     caddr_t msg_accrights;      /* access rights sent/received */
     179:     int msg_accrightslen;
     180: };
     181:
     182: #define MSG_OOB     0x1     /* process out-of-band data */
     183: #define MSG_PEEK    0x2     /* peek at incoming message */
     184: #define MSG_DONTROUTE   0x4     /* send without using routing tables */
     185:
     186: #define MSG_MAXIOVLEN   16
     187: #endif	/* _SYS_SOCKET_H_ */

#### Defined struct's

linger defined in line 59; used 18 times

- in /usr/src/libexec/rshd/rshd.c line 69(2)
- in /usr/src/libexec/tcpd/options.c line 318(2)
- in /usr/src/new/nntp/server/access_dnet.c line 37(2)
- in /usr/src/sys/sys/uipc_socket.c line 659-663(4), 750-753(6)
- in /usr/src/usr.lib/libident/id_open.c line 50(2)

msghdr defined in line 173; used 18 times

- in /usr/src/sys/sys/uipc_syscalls.c line 307(2), 329(2), 350(2), 371(2), 443(2), 470(2), 488-491(4), 513(2)

sockaddr defined in line 96; used 508 times

- in /usr/include/protocols/talkd.h line 38-39(4), 57(2)
- in /usr/src/bin/date.c line 281(2)
- in /usr/src/bin/ping/ping.c line 115(2), 241(2), 355(2), 433(2)
- in /usr/src/games/hunt/answer.c line 57(2)
- in /usr/src/games/hunt/driver.c line 99-105(8), 231(2), 239(2), 258(2), 265(2)
- in /usr/src/games/hunt/hunt.c line 188(2), 246(2), 261-265(6), 342-344(4), 355(2), 383(2), 398-400(4), 414-416(4)
- in /usr/src/include/protocols/talkd.h line 38-39(4), 57(2)
- in /usr/src/lib/libc/gen/syslog.c line 205(2)
- in /usr/src/lib/libc/net/res_send.c line 34(2), 106(2), 211(2), 230(2)
- in /usr/src/libexec/fingerd/fingerd.c line 95(2)
- in /usr/src/libexec/ftpd/ftpd.c line 147-152(4), 645(2), 680(2), 711(2), 1208(2), 1214(2)
- in /usr/src/libexec/identd/src/identd.c line 588(2), 627(2), 742(2), 779-781(4)
- in /usr/src/libexec/popper/pop_init.c line 94(2)
- in /usr/src/libexec/tcpd/ptx.c line 88(2)
- in /usr/src/libexec/tcpd/rfc931.c line 120-122(4)
- in /usr/src/libexec/tcpd/socket.c line 95-99(4), 116(2), 234(2)
- in /usr/src/libexec/tcpd/workarounds.c line 127(2), 136(2), 164(2)
- in /usr/src/new/crash/dispnet.c line 579(2)
- in /usr/src/new/crash/if.c line 142(2)
- in /usr/src/new/kermit5.188/ckcnet.c line 565(2)
- in /usr/src/new/nntp/common/clientlib.c line 226(2), 267(2), 339(2)
- in /usr/src/new/nntp/server/access.c line 54(2)
- in /usr/src/new/nntp/server/access_dnet.c line 31(2)
- in /usr/src/new/nntp/server/netaux.c line 139(2)
- in /usr/src/new/nntp/xfer/nntpxfer.c line 194(2)
- in /usr/src/new/nntp/xmit/get_tcp_conn.c line 301-309(6)
- in /usr/src/sbin/ifconfig/ifconfig.c line 179(2), 187-188(4), 195-200(4), 426(2), 490(2)
- in /usr/src/sbin/route/route.c line 201(2), 273(2)
- in /usr/src/sbin/routed/if.c line 23(2), 48(2), 67(2), 94(2)
- in /usr/src/sbin/routed/input.c line 21(2)
- in /usr/src/sbin/routed/main.c line 41(2), 155(2)
- in /usr/src/sbin/routed/output.c line 26(2), 46(2), 61(2)
- in /usr/src/sbin/routed/startup.c line 166(2), 175(2), 255-256(4), 285-287(4)
- in /usr/src/sbin/routed/tables.c line 34(2), 68(2), 107(2), 169(2), 234(2)
- in /usr/src/sbin/routed/tools/query.c line 37(2)
- in /usr/src/sbin/routed/tools/trace.c line 35(2)
- in /usr/src/sbin/routed/trace.c line 85(2)
- in /usr/src/sys/net/af.c line 65(2), 74(2)
- in /usr/src/sys/net/if.c line 85(2), 110(2), 132(2)
- in /usr/src/sys/net/if_loop.c line 65(2)
- in /usr/src/sys/net/if_sl.c line 199(2)
- in /usr/src/sys/net/raw_cb.c line 106(4), 146(4)
- in /usr/src/sys/net/raw_usrreq.c line 44(2), 149(2), 298-305(8)
- in /usr/src/sys/net/route.c line 29(2), 41(2), 118(2), 332(2)
- in /usr/src/sys/netimp/if_imp.c line 440-449(8), 462(2)
- in /usr/src/sys/netimp/raw_imp.c line 92(2)
- in /usr/src/sys/netinet/if_ether.c line 109(2), 185(2), 300(2), 340(2)
- in /usr/src/sys/netinet/in.c line 286(2), 337-342(4), 369(2), 405(2)
- in /usr/src/sys/netinet/in_pcb.c line 80(2), 186(2), 280(2)
- in /usr/src/sys/netinet/ip_icmp.c line 230(2), 313-325(16), 344-345(4)
- in /usr/src/sys/netinet/ip_input.c line 572(2), 674(2)
- in /usr/src/sys/netinet/ip_output.c line 171(2), 247(2)
- in /usr/src/sys/netinet/raw_ip.c line 52-53(4)
- in /usr/src/sys/netinet/tcp_subr.c line 290(2)
- in /usr/src/sys/netinet/udp_usrreq.c line 149(2), 176(2)
- in /usr/src/sys/netns/idp_usrreq.c line 74(2)
- in /usr/src/sys/netns/ns.c line 206(2), 216-220(4)
- in /usr/src/sys/netns/ns_ip.c line 222(2), 306(2), 356(2), 380(2)
- in /usr/src/sys/netns/ns_output.c line 121(2)
- in /usr/src/sys/netns/ns_pcb.c line 67(2), 155(2)
- in /usr/src/sys/pdpif/if_de.c line 754(2), 1070(2)
- in /usr/src/sys/pdpif/if_dmc.c line 365(2)
- in /usr/src/sys/pdpif/if_ec.c line 473(2)
- in /usr/src/sys/pdpif/if_en.c line 379-380(4), 413(2)
- in /usr/src/sys/pdpif/if_il.c line 566(2)
- in /usr/src/sys/pdpif/if_qe.c line 575(2)
- in /usr/src/sys/pdpif/if_qt.c line 605(2)
- in /usr/src/sys/pdpif/if_vv.c line 735(2)
- in /usr/src/sys/sys/uipc_domain.c line 143(2)
- in /usr/src/sys/sys/uipc_socket2.c line 454(2), 469(2)
- in /usr/src/sys/sys/uipc_usrreq.c line 30(2), 103(2), 152(2), 170(2)
- in /usr/src/ucb/finger/net.c line 78(2)
- in /usr/src/ucb/ftp/ftp.c line 1122(2), 1168(2)
- in /usr/src/ucb/netstat/if.c line 153(2)
- in /usr/src/ucb/talk/invite.c line 43(2)
- in /usr/src/ucb/talk/look_up.c line 22(2)
- in /usr/src/ucb/telnet.c line 2093(2)
- in /usr/src/ucb/tn3270/tn3270.c line 266(2)
- in /usr/src/usr.lib/libident/id_open.c line 94(2), 108(2)
- in /usr/src/usr.lib/libident/ident-tester.c line 61-64(4)
- in /usr/src/usr.lib/libident/ident.c line 39-43(4)
- in /usr/src/usr.sbin/inetd/inetd.c line 330(2), 626(2), 926(2), 965(2), 1059(2), 1128(2), 1161(2)
- in /usr/src/usr.sbin/named/named/ns_forw.c line 132(2), 425(2)
- in /usr/src/usr.sbin/named/named/ns_main.c line 314(2), 556(2), 664(2), 696(2), 713-717(4), 1142(2)
- in /usr/src/usr.sbin/named/named/ns_maint.c line 164(2)
- in /usr/src/usr.sbin/named/named/ns_req.c line 559(2)
- in /usr/src/usr.sbin/named/named/ns_resp.c line 636(2), 1047(2), 1204(2)
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 169(2), 295(2), 309(2), 341(2), 370(2)
- in /usr/src/usr.sbin/ntp/ntp.c line 205(2), 242(2)
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 138(2), 310(2)
- in /usr/src/usr.sbin/ntp/ntpd.c line 400(2), 1174(2)
- in /usr/src/usr.sbin/ntp/ntpdc.c line 212(2), 289(2)
- in /usr/src/usr.sbin/sendmail/aux/4.1a_daemon.c line 165(2)
- in /usr/src/usr.sbin/syslogd/syslogd.c line 243(2), 323(2)
- in /usr/src/usr.sbin/timed/cmds.c line 345(2)
- in /usr/src/usr.sbin/traceroute/traceroute.c line 250(2), 358(2), 436(2), 445(2), 538(2), 566(2)

sockproto defined in line 105; used 16 times

- in /usr/src/new/kermit5.188/ckcnet.c line 539(2)
- in /usr/src/new/nntp/server/netaux.c line 123(2)
- in /usr/src/new/nntp/xmit/get_tcp_conn.c line 282(2)
- in /usr/src/sys/net/raw_usrreq.c line 43(2)
- in /usr/src/sys/netimp/if_imp.c line 405(2)
- in /usr/src/sys/netinet/ip_icmp.c line 128(2)
- in /usr/src/sys/netinet/raw_ip.c line 38(2)
- in /usr/src/sys/pdpif/if_en.c line 292(2)

#### Defined macros

AF_APPLETALK defined in line 88; used 2 times

- in line 129
- in /usr/src/new/crash/dispnet.c line 162

AF_CCITT defined in line 82; used 2 times

- in line 123
- in /usr/src/new/crash/dispnet.c line 156

AF_CHAOS defined in line 77; used 2 times

- in line 118
- in /usr/src/new/crash/dispnet.c line 151

AF_DATAKIT defined in line 81; used 2 times

- in line 122
- in /usr/src/new/crash/dispnet.c line 155

AF_DECnet defined in line 84; used 4 times

- in line 125
- in /usr/src/new/crash/dispnet.c line 158
- in /usr/src/new/nntp/common/clientlib.c line 309, 332

AF_DLI defined in line 85; used 2 times

- in line 126
- in /usr/src/new/crash/dispnet.c line 159

AF_ECMA defined in line 80; used 2 times

- in line 121
- in /usr/src/new/crash/dispnet.c line 154

AF_HYLINK defined in line 87; used 3 times

- in line 128
- in /usr/src/new/crash/dispnet.c line 161
- in /usr/src/sys/netinet/in_proto.c line 133

AF_IMPLINK defined in line 75; used 6 times

- in line 116
- in /usr/src/new/crash/dispnet.c line 149
- in /usr/src/sys/netimp/if_imp.c line 406-407(2)
- in /usr/src/sys/netinet/in_proto.c line 112
- in /usr/src/sys/netns/ns_ip.c line 388

AF_INET defined in line 74; used 281 times

- in line 115
- in /usr/src/bin/date.c line 268-270(2), 278
- in /usr/src/bin/mail.c line 591
- in /usr/src/bin/ping/ping.c line 243, 283, 323, 916
- in /usr/src/games/hunt/hunt.c line 131
- in /usr/src/games/hunt/hunt.h line 36
- in /usr/src/lib/libc/net/getnent.c line 76
- in /usr/src/lib/libc/net/hosttable/gethostent.c line 90
- in /usr/src/lib/libc/net/named/gethnamadr.c line 170, 255, 329
- in /usr/src/lib/libc/net/rcmd.c line 147, 187-189(2)
- in /usr/src/lib/libc/net/res_init.c line 67, 99
- in /usr/src/lib/libc/net/res_send.c line 96, 201
- in /usr/src/lib/libc/net/rexec.c line 42, 67
- in /usr/src/libexec/fingerd/fingerd.c line 98
- in /usr/src/libexec/ftpd/ftpcmd.y line 524
- in /usr/src/libexec/ftpd/ftpd.c line 634, 642, 1125, 1200
- in /usr/src/libexec/identd/src/identd.c line 189, 545, 554
- in /usr/src/libexec/identd/testdir/test1.c line 77-81(2)
- in /usr/src/libexec/popper/pop_init.c line 108
- in /usr/src/libexec/rexecd/rexecd.c line 67, 109
- in /usr/src/libexec/rlogind/rlogind.c line 197
- in /usr/src/libexec/rshd/rshd.c line 149
- in /usr/src/libexec/talkd/process.c line 49, 56, 119
- in /usr/src/libexec/tcpd/rfc931.c line 95
- in /usr/src/libexec/tcpd/scaffold.c line 111, 138
- in /usr/src/libexec/tcpd/socket.c line 152
- in /usr/src/libexec/tcpd/tcpdmatch.c line 163, 220
- in /usr/src/libexec/tcpd/workarounds.c line 171
- in /usr/src/libexec/telnetd/telnetd.c line 118, 132
- in /usr/src/libexec/tftpd/tftpd.c line 56, 142-146(2)
- in /usr/src/new/crash/dispnet.c line 148, 820, 837
- in /usr/src/new/crash/inet.c line 383-388(2)
- in /usr/src/new/crash/route.c line 222, 281
- in /usr/src/new/kermit5.188/ckcnet.c line 516, 536, 542
- in /usr/src/new/nntp/common/clientlib.c line 198, 259
- in /usr/src/new/nntp/server/access_inet.c line 58, 69, 81
- in /usr/src/new/nntp/server/main.c line 2
- in /usr/src/new/nntp/server/netaux.c line 114-119(2)
- in /usr/src/new/nntp/server/subnet.c line 99, 134
- in /usr/src/new/nntp/xfer/nntpxfer.c line 156, 187
- in /usr/src/new/nntp/xmit/get_tcp_conn.c line 284, 292, 306
- in /usr/src/sbin/ifconfig/ifconfig.c line 34-37(3), 99, 110, 171, 433
- in /usr/src/sbin/route/route.c line 34, 46, 230, 316, 485-490(2)
- in /usr/src/sbin/routed/af.c line 37
- in /usr/src/sbin/routed/main.c line 52-54(2)
- in /usr/src/sbin/routed/startup.c line 39, 73, 173, 308, 321, 331-335(2), 354
- in /usr/src/sbin/routed/tools/query.c line 46, 106, 152, 180, 186, 198
- in /usr/src/sbin/routed/tools/trace.c line 27, 47, 74, 82
- in /usr/src/sys/net/if_sl.c line 209, 544, 551
- in /usr/src/sys/netimp/if_imp.c line 653
- in /usr/src/sys/netinet/if_ether.c line 183, 337, 496
- in /usr/src/sys/netinet/in.c line 245, 280, 359, 388
- in /usr/src/sys/netinet/in_pcb.c line 125, 165, 248, 262, 291
- in /usr/src/sys/netinet/in_proto.c line 97
- in /usr/src/sys/netinet/ip_icmp.c line 128-131(4)
- in /usr/src/sys/netinet/ip_input.c line 86, 722, 887
- in /usr/src/sys/netinet/ip_output.c line 95
- in /usr/src/sys/netinet/raw_ip.c line 36-37(2), 106
- in /usr/src/sys/netinet/tcp_input.c line 393, 1269, 1315
- in /usr/src/sys/netinet/tcp_usrreq.c line 209
- in /usr/src/sys/netinet/udp_usrreq.c line 54
- in /usr/src/sys/netns/ns_input.c line 254
- in /usr/src/sys/netns/ns_ip.c line 388
- in /usr/src/sys/pdpif/if_dmc.c line 371-372(2)
- in /usr/src/ucb/PORT/systat/netcmds.c line 254
- in /usr/src/ucb/PORT/systat/netstat.c line 363-368(2)
- in /usr/src/ucb/finger/net.c line 60
- in /usr/src/ucb/ftp/ftp.c line 105, 1110
- in /usr/src/ucb/netstat/inet.c line 397-402(2)
- in /usr/src/ucb/netstat/route.c line 189, 249
- in /usr/src/ucb/talk/ctl.c line 19-21(3), 41, 58
- in /usr/src/ucb/talk/get_names.c line 78-79(2)
- in /usr/src/ucb/talk/look_up.c line 33
- in /usr/src/ucb/telnet.c line 2035, 2079
- in /usr/src/ucb/tftp/main.c line 127, 133, 176
- in /usr/src/ucb/tn3270/tn3270.c line 242, 256
- in /usr/src/usr.bin/fstat/fstat.c line 469
- in /usr/src/usr.bin/uucp/cico.c line 317
- in /usr/src/usr.bin/uucp/uucpd.c line 85-88(2), 272
- in /usr/src/usr.lib/libident/id_open.c line 56, 90, 103
- in /usr/src/usr.lib/libident/ident-tester.c line 38
- in /usr/src/usr.sbin/arp/arp.c line 115, 140, 167-169(2), 180, 218-220(2), 231, 329
- in /usr/src/usr.sbin/htable/htable.c line 308, 397
- in /usr/src/usr.sbin/inetd/inetd.c line 561, 609
- in /usr/src/usr.sbin/lpr/lpd.c line 157, 171, 197, 215, 410
- in /usr/src/usr.sbin/named/named/ns_forw.c line 234
- in /usr/src/usr.sbin/named/named/ns_init.c line 444
- in /usr/src/usr.sbin/named/named/ns_main.c line 261, 309, 330, 534
- in /usr/src/usr.sbin/named/named/ns_maint.c line 150-153(2)
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 261, 533, 696
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 235, 254
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 116, 155, 277
- in /usr/src/usr.sbin/named/tools/nstest.c line 87
- in /usr/src/usr.sbin/ntp/ntp.c line 119-120(2), 158, 197
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 112, 118, 135, 167, 175, 194, 274, 308
- in /usr/src/usr.sbin/ntp/ntpd.c line 127, 519, 1090-1095(2)
- in /usr/src/usr.sbin/ntp/ntpdc.c line 104, 164, 269, 413
- in /usr/src/usr.sbin/rwhod/rwhod.c line 43, 131
- in /usr/src/usr.sbin/sendmail.MX/aux/mconnect.c line 57, 100
- in /usr/src/usr.sbin/sendmail.MX/src/daemon.c line 100, 114, 214, 377, 398, 514
- in /usr/src/usr.sbin/sendmail/aux/4.1a_daemon.c line 157, 194, 323
- in /usr/src/usr.sbin/sendmail/aux/mconnect.c line 52, 106
- in /usr/src/usr.sbin/sendmail/src/daemon.c line 100, 114, 214, 377, 398, 514
- in /usr/src/usr.sbin/syslogd/syslogd.c line 251, 261, 733, 1028-1031(2)
- in /usr/src/usr.sbin/timed/cmds.c line 140, 281, 335, 341, 359
- in /usr/src/usr.sbin/timed/timed.c line 182-183(2), 244, 335
- in /usr/src/usr.sbin/traceroute/traceroute.c line 359, 399, 410, 437, 767

AF_LAT defined in line 86; used 2 times

- in line 127
- in /usr/src/new/crash/dispnet.c line 160

AF_MAX defined in line 90; used 8 times

- in line 131, 141
- in /usr/src/sbin/routed/af.c line 29
- in /usr/src/sys/net/af.c line 45, 56
- in /usr/src/sys/net/if.c line 139
- in /usr/src/sys/net/route.c line 49, 226

AF_NBS defined in line 79; used 2 times

- in line 120
- in /usr/src/new/crash/dispnet.c line 153

AF_NS defined in line 78; used 22 times

- in line 119
- in /usr/src/new/crash/dispnet.c line 152
- in /usr/src/sbin/ifconfig/ifconfig.c line 100, 183, 368, 494
- in /usr/src/sys/netns/idp_usrreq.c line 39, 62
- in /usr/src/sys/netns/ns.c line 134, 201
- in /usr/src/sys/netns/ns_input.c line 418, 465
- in /usr/src/sys/netns/ns_output.c line 65
- in /usr/src/sys/netns/ns_pcb.c line 109, 138, 210, 223
- in /usr/src/sys/netns/ns_proto.c line 71
- in /usr/src/sys/netns/spp_usrreq.c line 151, 546, 1333
- in /usr/src/ucb/netstat/ns.c line 319

AF_PUP defined in line 76; used 4 times

- in line 117
- in /usr/src/new/crash/dispnet.c line 150
- in /usr/src/sys/pdpif/if_en.c line 290-291(2)

AF_SNA defined in line 83; used 2 times

- in line 124
- in /usr/src/new/crash/dispnet.c line 157

AF_UNIX defined in line 73; used 15 times

- in line 114
- in /usr/src/games/hunt/hunt.h line 38
- in /usr/src/lib/libc/gen/syslog.c line 220-224(2)
- in /usr/src/new/crash/dispnet.c line 147
- in /usr/src/sys/sys/uipc_proto.c line 50
- in /usr/src/sys/sys/uipc_usrreq.c line 30
- in /usr/src/ucb/window/wwopen.c line 83
- in /usr/src/usr.sbin/lpr/lpd.c line 126, 148, 194
- in /usr/src/usr.sbin/lpr/startdaemon.c line 30, 56
- in /usr/src/usr.sbin/syslogd/syslogd.c line 240-242(2)

AF_UNSPEC defined in line 72; used 11 times

- in line 113
- in /usr/src/lib/libc/net/named/gethnamadr.c line 170
- in /usr/src/new/crash/dispnet.c line 146
- in /usr/src/sbin/routed/input.c line 63
- in /usr/src/sbin/routed/main.c line 130
- in /usr/src/sbin/routed/startup.c line 65
- in /usr/src/sbin/routed/tools/query.c line 124
- in /usr/src/sys/netinet/if_ether.c line 131, 416, 497
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 261

CTL_NET_NAMES defined in line 144; used 3 times

- in /usr/src/bin/sysctl/sysctl.c line 65-66(2), 84

MSG_DONTROUTE defined in line 184; used 2 times

- in /usr/src/sbin/routed/output.c line 36
- in /usr/src/sys/sys/uipc_socket.c line 314

MSG_MAXIOVLEN defined in line 186; used 2 times

- in /usr/src/sys/sys/uipc_syscalls.c line 351, 492

MSG_OOB defined in line 182; used 18 times

- in /usr/src/libexec/rlogind/rlogind.c line 365, 400, 458
- in /usr/src/libexec/telnetd/telnetd.c line 531, 1201
- in /usr/src/new/kermit5.188/ckcnet.c line 1500, 1535
- in /usr/src/sys/sys/uipc_socket.c line 339, 390, 441
- in /usr/src/ucb/ftp/ftp.c line 1048, 1478, 1509, 1553, 1584
- in /usr/src/ucb/rlogin.c line 422
- in /usr/src/ucb/telnet.c line 334, 859

MSG_PEEK defined in line 183; used 9 times

- in /usr/src/libexec/tcpd/socket.c line 98
- in /usr/src/sys/netinet/tcp_usrreq.c line 269
- in /usr/src/sys/sys/uipc_socket.c line 444, 497, 519, 553, 565, 574, 584

NET_MAXID defined in line 141; used 1 times

- in /usr/src/bin/sysctl/sysctl.c line 85

PF_APPLETALK defined in line 129; used 1 times

- in /usr/src/new/crash/dispnet.c line 135

PF_CCITT defined in line 123; used 1 times

- in /usr/src/new/crash/dispnet.c line 129

PF_CHAOS defined in line 118; used 1 times

- in /usr/src/new/crash/dispnet.c line 124

PF_DATAKIT defined in line 122; used 1 times

- in /usr/src/new/crash/dispnet.c line 128

PF_DECnet defined in line 125; used 1 times

- in /usr/src/new/crash/dispnet.c line 131

PF_DLI defined in line 126; used 1 times

- in /usr/src/new/crash/dispnet.c line 132

PF_ECMA defined in line 121; used 1 times

- in /usr/src/new/crash/dispnet.c line 127

PF_HYLINK defined in line 128; used 1 times

- in /usr/src/new/crash/dispnet.c line 134

PF_IMPLINK defined in line 116; used 2 times

- in /usr/src/new/crash/dispnet.c line 122
- in /usr/src/sys/netimp/if_imp.c line 405

PF_INET defined in line 115; used 6 times

- in /usr/src/bin/sysctl/sysctl.c line 280
- in /usr/src/new/crash/dispnet.c line 121
- in /usr/src/sbin/testnet/testnet.c line 12
- in /usr/src/sys/netinet/ip_input.c line 68, 75
- in /usr/src/sys/netinet/raw_ip.c line 38

PF_LAT defined in line 127; used 1 times

- in /usr/src/new/crash/dispnet.c line 133

PF_MAX defined in line 131; never used
PF_NBS defined in line 120; used 1 times

- in /usr/src/new/crash/dispnet.c line 126

PF_NS defined in line 119; used 1 times

- in /usr/src/new/crash/dispnet.c line 125

PF_PUP defined in line 117; used 2 times

- in /usr/src/new/crash/dispnet.c line 123
- in /usr/src/sys/pdpif/if_en.c line 292

PF_SNA defined in line 124; used 1 times

- in /usr/src/new/crash/dispnet.c line 130

PF_UNIX defined in line 114; used 1 times

- in /usr/src/new/crash/dispnet.c line 120

PF_UNSPEC defined in line 113; used 2 times

- in /usr/src/new/crash/dispnet.c line 119
- in /usr/src/ucb/window/wwopen.c line 83

SOCK_DGRAM defined in line 26; used 45 times

- in /usr/src/bin/date.c line 270
- in /usr/src/bin/mail.c line 591
- in /usr/src/games/hunt/driver.c line 257, 265
- in /usr/src/games/hunt/hunt.c line 325-327(2)
- in /usr/src/lib/libc/gen/syslog.c line 224
- in /usr/src/lib/libc/net/res_send.c line 201
- in /usr/src/libexec/tftpd/tftpd.c line 146
- in /usr/src/new/nntp/server/subnet.c line 99
- in /usr/src/sbin/ifconfig/ifconfig.c line 135, 368
- in /usr/src/sbin/routed/main.c line 54
- in /usr/src/sbin/routed/startup.c line 39
- in /usr/src/sbin/routed/tools/query.c line 46
- in /usr/src/sbin/routed/tools/trace.c line 47
- in /usr/src/sbin/testnet/testnet.c line 12
- in /usr/src/sys/netinet/in_proto.c line 61
- in /usr/src/sys/netns/ns_proto.c line 43
- in /usr/src/sys/sys/uipc_proto.c line 35
- in /usr/src/sys/sys/uipc_syscalls.c line 274
- in /usr/src/ucb/talk/ctl.c line 58
- in /usr/src/ucb/tftp/main.c line 127
- in /usr/src/usr.sbin/arp/arp.c line 140, 180, 231
- in /usr/src/usr.sbin/inetd/inetd.c line 203-219(5), 762
- in /usr/src/usr.sbin/named/named/ns_main.c line 534
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 277
- in /usr/src/usr.sbin/ntp/ntp.c line 197
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 118, 175, 274
- in /usr/src/usr.sbin/ntp/ntpdc.c line 164
- in /usr/src/usr.sbin/rwhod/rwhod.c line 131
- in /usr/src/usr.sbin/syslogd/syslogd.c line 242, 251, 1031
- in /usr/src/usr.sbin/timed/cmds.c line 335
- in /usr/src/usr.sbin/timed/timed.c line 183

SOCK_RAW defined in line 27; used 18 times

- in /usr/src/bin/ping/ping.c line 283
- in /usr/src/sbin/route/route.c line 46
- in /usr/src/sys/netinet/in_proto.c line 71-76(2), 82, 89, 104, 125
- in /usr/src/sys/netinet/ip_input.c line 68
- in /usr/src/sys/netns/ns_proto.c line 58-63(2)
- in /usr/src/sys/sys/uipc_domain.c line 98(2)
- in /usr/src/usr.sbin/inetd/inetd.c line 768
- in /usr/src/usr.sbin/timed/cmds.c line 359
- in /usr/src/usr.sbin/timed/timed.c line 335
- in /usr/src/usr.sbin/traceroute/traceroute.c line 399, 410

SOCK_RDM defined in line 28; used 1 times

- in /usr/src/usr.sbin/inetd/inetd.c line 764

SOCK_SEQPACKET defined in line 29; used 2 times

- in /usr/src/sys/netns/ns_proto.c line 53
- in /usr/src/usr.sbin/inetd/inetd.c line 766

SOCK_STREAM defined in line 25; used 80 times

- in /usr/src/games/hunt/answer.c line 57
- in /usr/src/games/hunt/driver.c line 229-231(2)
- in /usr/src/games/hunt/hunt.c line 173-175(2), 204, 226
- in /usr/src/lib/libc/net/rcmd.c line 189
- in /usr/src/lib/libc/net/res_send.c line 96
- in /usr/src/lib/libc/net/rexec.c line 42, 67
- in /usr/src/libexec/ftpd/ftpd.c line 634, 1200
- in /usr/src/libexec/identd/src/identd.c line 545
- in /usr/src/libexec/identd/testdir/test1.c line 77
- in /usr/src/libexec/rexecd/rexecd.c line 109
- in /usr/src/libexec/tcpd/rfc931.c line 95
- in /usr/src/libexec/telnetd/telnetd.c line 132
- in /usr/src/new/kermit5.188/ckcnet.c line 391, 539-542(2)
- in /usr/src/new/nntp/common/clientlib.c line 217, 259, 332
- in /usr/src/new/nntp/server/netaux.c line 119-123(2)
- in /usr/src/new/nntp/xfer/nntpxfer.c line 187
- in /usr/src/new/nntp/xmit/get_tcp_conn.c line 301-306(2)
- in /usr/src/sys/netinet/in_proto.c line 66
- in /usr/src/sys/netns/ns_proto.c line 48
- in /usr/src/sys/sys/uipc_proto.c line 30
- in /usr/src/sys/sys/uipc_usrreq.c line 225
- in /usr/src/ucb/finger/net.c line 71
- in /usr/src/ucb/ftp/ftp.c line 121, 142, 1110
- in /usr/src/ucb/talk/ctl.c line 41
- in /usr/src/ucb/telnet.c line 2079
- in /usr/src/ucb/tn3270/tn3270.c line 256
- in /usr/src/ucb/whois.c line 55
- in /usr/src/ucb/window/wwopen.c line 83
- in /usr/src/usr.bin/uucp/aculib/bsdtcp.c line 55-57(2)
- in /usr/src/usr.bin/uucp/uucpd.c line 88, 122
- in /usr/src/usr.lib/libident/id_open.c line 56
- in /usr/src/usr.sbin/gettable/gettable.c line 72
- in /usr/src/usr.sbin/inetd/inetd.c line 202-221(6), 329, 387, 429, 450, 457, 642, 760, 787
- in /usr/src/usr.sbin/lpr/lpd.c line 126, 157
- in /usr/src/usr.sbin/lpr/startdaemon.c line 30
- in /usr/src/usr.sbin/named/named/ns_main.c line 309
- in /usr/src/usr.sbin/named/named/ns_maint.c line 153
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 254, 857
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 155
- in /usr/src/usr.sbin/sendmail.MX/aux/mconnect.c line 57
- in /usr/src/usr.sbin/sendmail.MX/src/daemon.c line 114, 377
- in /usr/src/usr.sbin/sendmail/aux/4.1a_daemon.c line 194, 202, 323-325(2)
- in /usr/src/usr.sbin/sendmail/aux/mconnect.c line 52
- in /usr/src/usr.sbin/sendmail/src/daemon.c line 114, 377

SOL_SOCKET defined in line 67; used 73 times

- in /usr/src/bin/date.c line 322
- in /usr/src/bin/ping/ping.c line 289-292(2), 320
- in /usr/src/games/hunt/driver.c line 235
- in /usr/src/games/hunt/hunt.c line 183, 371
- in /usr/src/libexec/ftpd/ftpd.c line 226, 638
- in /usr/src/libexec/identd/src/identd.c line 585
- in /usr/src/libexec/rlogind/rlogind.c line 115
- in /usr/src/libexec/rshd/rshd.c line 102-107(2)
- in /usr/src/libexec/tcpd/options.c line 326, 342
- in /usr/src/libexec/telnetd/telnetd.c line 162, 391
- in /usr/src/new/kermit5.188/ckcnet.c line 597-606(4), 613-615(2)
- in /usr/src/new/nntp/server/access_dnet.c line 56
- in /usr/src/sbin/dump/dumprmt.c line 108
- in /usr/src/sbin/routed/main.c line 183
- in /usr/src/sys/sys/uipc_socket.c line 650, 737
- in /usr/src/ucb/ftp/ftp.c line 185, 1118, 1127
- in /usr/src/ucb/rlogin.c line 148
- in /usr/src/ucb/rsh.c line 149-151(2)
- in /usr/src/ucb/telnet.c line 755, 1538, 1544, 2086-2089(2)
- in /usr/src/ucb/tn3270/tn3270.c line 261, 1093
- in /usr/src/usr.lib/libident/id_open.c line 76-77(2), 83-84(2)
- in /usr/src/usr.sbin/inetd/inetd.c line 619
- in /usr/src/usr.sbin/lpr/lpd.c line 162
- in /usr/src/usr.sbin/named/named/ns_main.c line 313, 543-546(2), 725
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 79, 86, 285, 325, 336
- in /usr/src/usr.sbin/ntp/ntpdc.c line 170
- in /usr/src/usr.sbin/rmt/rmt.c line 192
- in /usr/src/usr.sbin/rwhod/rwhod.c line 135
- in /usr/src/usr.sbin/sendmail.MX/src/daemon.c line 130-134(3), 393
- in /usr/src/usr.sbin/sendmail/src/daemon.c line 130-134(3), 393
- in /usr/src/usr.sbin/timed/timed.c line 188
- in /usr/src/usr.sbin/traceroute/traceroute.c line 404-407(2), 415, 429-432(2)

SOMAXCONN defined in line 168; used 2 times

- in /usr/src/new/nntp/server/main.c line 60
- in /usr/src/sys/sys/uipc_socket.c line 112

SO_ACCEPTCONN defined in line 35; used 14 times

- in /usr/src/games/hunt/answer.c line 58
- in /usr/src/games/hunt/driver.c line 232
- in /usr/src/new/nntp/server/netaux.c line 124
- in /usr/src/sys/netinet/in_pcb.c line 68
- in /usr/src/sys/netinet/tcp_input.c line 305
- in /usr/src/sys/netns/spp_usrreq.c line 92
- in /usr/src/sys/sys/uipc_socket.c line 108, 144, 222, 836
- in /usr/src/sys/sys/uipc_socket2.c line 132
- in /usr/src/sys/sys/uipc_usrreq.c line 371
- in /usr/src/usr.bin/uucp/uucpd.c line 123
- in /usr/src/usr.sbin/sendmail/aux/4.1a_daemon.c line 202

SO_BROADCAST defined in line 39; used 11 times

- in /usr/src/games/hunt/hunt.c line 371
- in /usr/src/sbin/routed/main.c line 183
- in /usr/src/sys/netinet/udp_usrreq.c line 265
- in /usr/src/sys/netns/idp_usrreq.c line 199, 243
- in /usr/src/sys/netns/ns_ip.c line 274
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 79, 333-336(2)
- in /usr/src/usr.sbin/rwhod/rwhod.c line 135
- in /usr/src/usr.sbin/timed/timed.c line 188

SO_DEBUG defined in line 34; used 48 times

- in /usr/src/bin/ping/ping.c line 289
- in /usr/src/libexec/popper/pop_init.c line 66
- in /usr/src/sys/netinet/tcp_input.c line 301, 1104, 1157
- in /usr/src/sys/netinet/tcp_output.c line 384
- in /usr/src/sys/netinet/tcp_usrreq.c line 314
- in /usr/src/sys/netns/spp_usrreq.c line 88, 230, 251, 257, 945, 1012, 1409
- in /usr/src/ucb/ftp/cmds.c line 952-954(2)
- in /usr/src/ucb/ftp/ftp.c line 1126-1127(2)
- in /usr/src/ucb/ftp/main.c line 71
- in /usr/src/ucb/rlogin.c line 89, 147-148(2)
- in /usr/src/ucb/rsh.c line 85, 148-151(3)
- in /usr/src/ucb/telnet.c line 1538, 1544, 2086-2089(2)
- in /usr/src/ucb/tn3270/tn3270.c line 185, 261, 1093
- in /usr/src/usr.sbin/inetd/inetd.c line 257, 620-621(2)
- in /usr/src/usr.sbin/lpr/lpd.c line 71, 161-162(2)
- in /usr/src/usr.sbin/sendmail.MX/src/daemon.c line 130, 393
- in /usr/src/usr.sbin/sendmail/src/daemon.c line 130, 393
- in /usr/src/usr.sbin/traceroute/traceroute.c line 289, 403-404(2), 428-429(2)

SO_DONTROUTE defined in line 38; used 20 times

- in /usr/src/bin/ping/ping.c line 292
- in /usr/src/sys/netinet/in_pcb.c line 157-161(2)
- in /usr/src/sys/netinet/raw_ip.c line 118-121(2)
- in /usr/src/sys/netinet/tcp_output.c line 395-398(2)
- in /usr/src/sys/netinet/udp_usrreq.c line 265
- in /usr/src/sys/netns/idp_usrreq.c line 197
- in /usr/src/sys/netns/ns_pcb.c line 129-134(2)
- in /usr/src/sys/netns/spp_usrreq.c line 1015
- in /usr/src/sys/sys/uipc_socket.c line 314, 387, 394
- in /usr/src/usr.sbin/traceroute/traceroute.c line 319, 406-407(2), 431-432(2)

SO_ERROR defined in line 53; used 1 times

- in /usr/src/bin/date.c line 322

SO_KEEPALIVE defined in line 37; used 12 times

- in /usr/src/libexec/rlogind/rlogind.c line 115
- in /usr/src/libexec/rshd/rshd.c line 102
- in /usr/src/libexec/tcpd/options.c line 342
- in /usr/src/libexec/telnetd/telnetd.c line 162
- in /usr/src/new/nntp/common/clientlib.c line 239
- in /usr/src/new/nntp/server/netaux.c line 124
- in /usr/src/sys/netinet/tcp_timer.c line 246
- in /usr/src/sys/netns/spp_usrreq.c line 1693
- in /usr/src/usr.bin/uucp/uucpd.c line 123
- in /usr/src/usr.sbin/named/named/ns_main.c line 725
- in /usr/src/usr.sbin/sendmail.MX/src/daemon.c line 134
- in /usr/src/usr.sbin/sendmail/src/daemon.c line 134

SO_LINGER defined in line 41; used 8 times

- in /usr/src/libexec/rshd/rshd.c line 107
- in /usr/src/libexec/tcpd/options.c line 326
- in /usr/src/new/nntp/server/access_dnet.c line 56
- in /usr/src/sys/netinet/tcp_usrreq.c line 109, 430
- in /usr/src/sys/sys/uipc_socket.c line 158, 752
- in /usr/src/usr.lib/libident/id_open.c line 83

SO_OOBINLINE defined in line 42; used 22 times

- in /usr/src/libexec/ftpd/ftpd.c line 225-226(2)
- in /usr/src/libexec/telnetd/telnetd.c line 390-391(2), 491
- in /usr/src/new/kermit5.188/ckcnet.c line 343, 590, 597-606(4), 613-615(2)
- in /usr/src/sys/netinet/tcp_input.c line 1012-1013(2)
- in /usr/src/sys/netinet/tcp_usrreq.c line 256-257(2)
- in /usr/src/ucb/ftp/ftp.c line 181-185(2)
- in /usr/src/ucb/telnet.c line 754-755(2), 819

SO_RCVBUF defined in line 48; used 8 times

- in /usr/src/bin/ping/ping.c line 320
- in /usr/src/usr.sbin/named/named/ns_main.c line 102, 545-546(2)
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 86
- in /usr/src/usr.sbin/ntp/ntpdc.c line 169-170(2)
- in /usr/src/usr.sbin/rmt/rmt.c line 192

SO_RCVLOWAT defined in line 50; never used
SO_RCVTIMEO defined in line 52; never used
SO_REUSEADDR defined in line 36; used 15 times

- in /usr/src/libexec/ftpd/ftpd.c line 638
- in /usr/src/libexec/identd/src/identd.c line 584-585(2)
- in /usr/src/new/kermit5.188/ckcnet.c line 540
- in /usr/src/sys/netinet/in_pcb.c line 66
- in /usr/src/ucb/ftp/ftp.c line 1118
- in /usr/src/usr.lib/libident/id_open.c line 77, 84
- in /usr/src/usr.sbin/inetd/inetd.c line 623
- in /usr/src/usr.sbin/named/named/ns_main.c line 313, 543
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 285, 325
- in /usr/src/usr.sbin/sendmail.MX/src/daemon.c line 133
- in /usr/src/usr.sbin/sendmail/src/daemon.c line 133

SO_SNDBUF defined in line 47; used 4 times

- in /usr/src/sbin/dump/dumprmt.c line 108
- in /usr/src/sys/sys/uipc_socket.c line 697
- in /usr/src/usr.sbin/traceroute/traceroute.c line 414-415(2)

SO_SNDLOWAT defined in line 49; never used
SO_SNDTIMEO defined in line 51; never used
SO_TYPE defined in line 54; never used
SO_USELOOPBACK defined in line 40; used 2 times

- in /usr/src/games/hunt/driver.c line 235
- in /usr/src/games/hunt/hunt.c line 183

_SYS_SOCKET_H_ defined in line 16; used 1 times

- in line 15

#### Usage of this include

socket.h used 192 times

- in /usr/include/protocols/talkd.h line 10
- in /usr/src/bin/date.c line 231
- in /usr/src/bin/mail.c line 569
- in /usr/src/bin/ping/ping.c line 64
- in /usr/src/bin/sysctl/sysctl.c line 45
- in /usr/src/games/hunt/hunt.h line 21
- in /usr/src/include/protocols/talkd.h line 10
- in /usr/src/lib/libc/gen/syslog.c line 39
- in /usr/src/lib/libc/net/getnent.c line 13
- in /usr/src/lib/libc/net/getpent.c line 13
- in /usr/src/lib/libc/net/getsent.c line 13
- in /usr/src/lib/libc/net/hosttable/gethostent.c line 13
- in /usr/src/lib/libc/net/named/gethnamadr.c line 18
- in /usr/src/lib/libc/net/rcmd.c line 29
- in /usr/src/lib/libc/net/res_init.c line 18
- in /usr/src/lib/libc/net/res_query.c line 18
- in /usr/src/lib/libc/net/res_send.c line 23
- in /usr/src/lib/libc/net/rexec.c line 12
- in /usr/src/libexec/comsat/comsat.c line 24
- in /usr/src/libexec/fingerd/fingerd.c line 45
- in /usr/src/libexec/ftpd/ftpcmd.y line 32
- in /usr/src/libexec/ftpd/ftpd.c line 32
- in /usr/src/libexec/identd/src/identd.c line 45
- in /usr/src/libexec/identd/src/itest.c line 29
- in /usr/src/libexec/identd/src/kernel/2.11bsd.c line 21
- in /usr/src/libexec/identd/testdir/test1.c line 14
- in /usr/src/libexec/popper/pop_init.c line 15
- in /usr/src/libexec/rexecd/rexecd.c line 19
- in /usr/src/libexec/rlogind/rlogind.c line 41
- in /usr/src/libexec/rshd/rshd.c line 36
- in /usr/src/libexec/tcpd/miscd.c line 25
- in /usr/src/libexec/tcpd/options.c line 39
- in /usr/src/libexec/tcpd/ptx.c line 21
- in /usr/src/libexec/tcpd/rfc931.c line 21
- in /usr/src/libexec/tcpd/scaffold.c line 15
- in /usr/src/libexec/tcpd/socket.c line 26
- in /usr/src/libexec/tcpd/tcpd.c line 22
- in /usr/src/libexec/tcpd/tcpdmatch.c line 24
- in /usr/src/libexec/tcpd/tli-sequent.c line 26
- in /usr/src/libexec/tcpd/tli.c line 32
- in /usr/src/libexec/tcpd/workarounds.c line 16
- in /usr/src/libexec/telnetd/telnetd.c line 19
- in /usr/src/libexec/tftpd/tftpd.c line 35
- in /usr/src/new/crash/dispnet.c line 15
- in /usr/src/new/crash/if.c line 12
- in /usr/src/new/crash/inet.c line 12
- in /usr/src/new/crash/route.c line 12
- in /usr/src/new/kermit5.188/ckcnet.h line 98, 226
- in /usr/src/new/nntp/common/clientlib.c line 19
- in /usr/src/new/nntp/server/access.c line 9
- in /usr/src/new/nntp/server/access_dnet.c line 2
- in /usr/src/new/nntp/server/access_inet.c line 8
- in /usr/src/new/nntp/server/main.c line 17
- in /usr/src/new/nntp/server/netaux.c line 11
- in /usr/src/new/nntp/server/subnet.c line 10
- in /usr/src/new/nntp/xfer/nntpxfer.c line 25
- in /usr/src/new/nntp/xmit/get_tcp_conn.c line 17
- in /usr/src/new/nntp/xmit/remote.c line 33
- in /usr/src/sbin/dump/dumprmt.c line 41
- in /usr/src/sbin/ifconfig/ifconfig.c line 16
- in /usr/src/sbin/route/route.c line 16
- in /usr/src/sbin/routed/defs.h line 16
- in /usr/src/sbin/routed/tools/query.c line 13
- in /usr/src/sbin/routed/tools/trace.c line 19
- in /usr/src/sbin/slattach/slattach.c line 7
- in /usr/src/sbin/testnet/testnet.c line 6
- in /usr/src/sys/net/af.c line 18
- in /usr/src/sys/net/if.c line 18
- in /usr/src/sys/net/if_loop.c line 22
- in /usr/src/sys/net/if_sl.c line 47
- in /usr/src/sys/net/raw_cb.c line 18
- in /usr/src/sys/net/raw_usrreq.c line 19
- in /usr/src/sys/net/route.c line 19
- in /usr/src/sys/netimp/if_imp.c line 23
- in /usr/src/sys/netimp/raw_imp.c line 16
- in /usr/src/sys/netinet/if_ether.c line 29
- in /usr/src/sys/netinet/in.c line 20
- in /usr/src/sys/netinet/in_pcb.c line 19
- in /usr/src/sys/netinet/in_proto.c line 16
- in /usr/src/sys/netinet/ip_icmp.c line 19
- in /usr/src/sys/netinet/ip_input.c line 20
- in /usr/src/sys/netinet/ip_output.c line 19
- in /usr/src/sys/netinet/raw_ip.c line 17
- in /usr/src/sys/netinet/tcp_debug.c line 25
- in /usr/src/sys/netinet/tcp_input.c line 19
- in /usr/src/sys/netinet/tcp_output.c line 19
- in /usr/src/sys/netinet/tcp_subr.c line 18
- in /usr/src/sys/netinet/tcp_timer.c line 18
- in /usr/src/sys/netinet/tcp_usrreq.c line 18
- in /usr/src/sys/netinet/udp_usrreq.c line 19
- in /usr/src/sys/netns/idp_usrreq.c line 20
- in /usr/src/sys/netns/ns.c line 20
- in /usr/src/sys/netns/ns_error.c line 20
- in /usr/src/sys/netns/ns_input.c line 21
- in /usr/src/sys/netns/ns_ip.c line 23
- in /usr/src/sys/netns/ns_output.c line 19
- in /usr/src/sys/netns/ns_pcb.c line 20
- in /usr/src/sys/netns/ns_proto.c line 17
- in /usr/src/sys/netns/spp_debug.c line 19
- in /usr/src/sys/netns/spp_usrreq.c line 21
- in /usr/src/sys/pdpif/if_acc.c line 25
- in /usr/src/sys/pdpif/if_css.c line 45
- in /usr/src/sys/pdpif/if_de.h line 7
- in /usr/src/sys/pdpif/if_dmc.c line 29
- in /usr/src/sys/pdpif/if_ec.c line 56
- in /usr/src/sys/pdpif/if_en.c line 22
- in /usr/src/sys/pdpif/if_il.c line 37
- in /usr/src/sys/pdpif/if_qe.c line 117
- in /usr/src/sys/pdpif/if_qt.c line 64
- in /usr/src/sys/pdpif/if_sri.c line 22
- in /usr/src/sys/pdpif/if_uba.c line 25
- in /usr/src/sys/pdpif/if_vv.c line 52
- in /usr/src/sys/sys/kern_descrip.c line 19
- in /usr/src/sys/sys/sys_socket.c line 22
- in /usr/src/sys/sys/uipc_domain.c line 17
- in /usr/src/sys/sys/uipc_proto.c line 16
- in /usr/src/sys/sys/uipc_socket.c line 23
- in /usr/src/sys/sys/uipc_socket2.c line 24
- in /usr/src/sys/sys/uipc_syscalls.c line 22
- in /usr/src/sys/sys/uipc_usrreq.c line 14
- in /usr/src/ucb/PORT/systat/netcmds.c line 17
- in /usr/src/ucb/PORT/systat/netstat.c line 16
- in /usr/src/ucb/finger/net.c line 26
- in /usr/src/ucb/ftp/cmds.c line 28
- in /usr/src/ucb/ftp/ftp.c line 25
- in /usr/src/ucb/ftp/main.c line 30
- in /usr/src/ucb/netstat/if.c line 18
- in /usr/src/ucb/netstat/inet.c line 21
- in /usr/src/ucb/netstat/ns.c line 22
- in /usr/src/ucb/netstat/route.c line 21
- in /usr/src/ucb/netstat/unix.c line 22
- in /usr/src/ucb/rlogin.c line 21
- in /usr/src/ucb/rsh.c line 18
- in /usr/src/ucb/telnet.c line 23
- in /usr/src/ucb/tftp/main.c line 36
- in /usr/src/ucb/tftp/tftp.c line 30
- in /usr/src/ucb/tftp/tftpsubs.c line 36
- in /usr/src/ucb/tn3270/tn3270.c line 31
- in /usr/src/ucb/whois.c line 18
- in /usr/src/ucb/window/wwopen.c line 13
- in /usr/src/usr.bin/fstat/fstat.c line 30
- in /usr/src/usr.bin/uucp/aculib/bsdtcp.c line 8
- in /usr/src/usr.bin/uucp/cico.c line 18
- in /usr/src/usr.bin/uucp/uucpd.c line 18
- in /usr/src/usr.lib/libident/id_open.c line 26
- in /usr/src/usr.lib/libident/id_parse.c line 35
- in /usr/src/usr.lib/libident/id_query.c line 33
- in /usr/src/usr.lib/libident/ident-tester.c line 23
- in /usr/src/usr.lib/libident/ident.c line 22
- in /usr/src/usr.sbin/arp/arp.c line 11
- in /usr/src/usr.sbin/gettable/gettable.c line 12
- in /usr/src/usr.sbin/htable/htable.c line 27
- in /usr/src/usr.sbin/inetd/inetd.c line 94
- in /usr/src/usr.sbin/lpr/lp.h line 18
- in /usr/src/usr.sbin/lpr/startdaemon.c line 19
- in /usr/src/usr.sbin/named/named/db_update.c line 18
- in /usr/src/usr.sbin/named/named/ns_forw.c line 20
- in /usr/src/usr.sbin/named/named/ns_init.c line 18
- in /usr/src/usr.sbin/named/named/ns_main.c line 36
- in /usr/src/usr.sbin/named/named/ns_maint.c line 18
- in /usr/src/usr.sbin/named/named/ns_req.c line 21
- in /usr/src/usr.sbin/named/named/ns_resp.c line 20
- in /usr/src/usr.sbin/named/named/ns_sort.c line 20
- in /usr/src/usr.sbin/named/tools/nslookup/getinfo.c line 38
- in /usr/src/usr.sbin/named/tools/nslookup/list.c line 37
- in /usr/src/usr.sbin/named/tools/nslookup/main.c line 45
- in /usr/src/usr.sbin/named/tools/nslookup/send.c line 43
- in /usr/src/usr.sbin/named/tools/nslookup/subr.c line 42
- in /usr/src/usr.sbin/named/tools/nsquery.c line 31
- in /usr/src/usr.sbin/named/tools/nstest.c line 29
- in /usr/src/usr.sbin/ntp/ntp.c line 90
- in /usr/src/usr.sbin/ntp/ntp_adjust.c line 69
- in /usr/src/usr.sbin/ntp/ntp_proto.c line 120
- in /usr/src/usr.sbin/ntp/ntp_sock.c line 52
- in /usr/src/usr.sbin/ntp/ntpd.c line 99
- in /usr/src/usr.sbin/ntp/ntpdc.c line 83
- in /usr/src/usr.sbin/ntp/ntpsubs.c line 50
- in /usr/src/usr.sbin/ntp/test.c line 51
- in /usr/src/usr.sbin/rmt/rmt.c line 21
- in /usr/src/usr.sbin/rwhod/rwhod.c line 17
- in /usr/src/usr.sbin/sendmail.MX/aux/mconnect.c line 32
- in /usr/src/usr.sbin/sendmail.MX/src/sendmail.h line 45
- in /usr/src/usr.sbin/sendmail/aux/4.1a_daemon.c line 8
- in /usr/src/usr.sbin/sendmail/aux/mconnect.c line 26
- in /usr/src/usr.sbin/sendmail/src/sendmail.h line 45
- in /usr/src/usr.sbin/syslogd/syslogd.c line 57
- in /usr/src/usr.sbin/timed/globals.h line 14
- in /usr/src/usr.sbin/timed/timedc.h line 13
- in /usr/src/usr.sbin/traceroute/traceroute.c line 198
- in /usr/src/usr.sbin/trpt/trpt.c line 18
- in /usr/src/usr.sbin/trsp/trsp.c line 18

Last modified: 1995-10-12 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1611 |