Annotation of 42BSD/sys/net/af.c, revision 1.1

1.1     ! root        1: /*     af.c    6.1     83/07/29        */
        !             2: 
        !             3: #include "../h/param.h"
        !             4: #include "../h/mbuf.h"
        !             5: #include "../h/protosw.h"
        !             6: #include "../h/socket.h"
        !             7: #include "../h/socketvar.h"
        !             8: #include "../net/af.h"
        !             9: 
        !            10: /*
        !            11:  * Address family support routines
        !            12:  */
        !            13: int    null_hash(), null_netmatch();
        !            14: #define        AFNULL \
        !            15:        { null_hash,    null_netmatch }
        !            16: 
        !            17: #ifdef INET
        !            18: extern int inet_hash(), inet_netmatch();
        !            19: #define        AFINET \
        !            20:        { inet_hash,    inet_netmatch }
        !            21: #else
        !            22: #define        AFINET  AFNULL
        !            23: #endif
        !            24: 
        !            25: #ifdef PUP
        !            26: extern int pup_hash(), pup_netmatch();
        !            27: #define        AFPUP \
        !            28:        { pup_hash,     pup_netmatch }
        !            29: #else
        !            30: #define        AFPUP   AFNULL
        !            31: #endif
        !            32: 
        !            33: struct afswitch afswitch[AF_MAX] = {
        !            34:        AFNULL, AFNULL, AFINET, AFINET, AFPUP,
        !            35:        AFNULL, AFNULL, AFNULL, AFNULL, AFNULL,
        !            36:        AFNULL
        !            37: };
        !            38: 
        !            39: /*ARGSUSED*/
        !            40: null_hash(addr, hp)
        !            41:        struct sockaddr *addr;
        !            42:        struct afhash *hp;
        !            43: {
        !            44: 
        !            45:        hp->afh_nethash = hp->afh_hosthash = 0;
        !            46: }
        !            47: 
        !            48: /*ARGSUSED*/
        !            49: null_netmatch(a1, a2)
        !            50:        struct sockaddr *a1, *a2;
        !            51: {
        !            52: 
        !            53:        return (0);
        !            54: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.