The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/netatalk/at_proto.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * Copyright (c) 1990,1991 Regents of The University of Michigan.
    3  * All Rights Reserved.
    4  *
    5  * Permission to use, copy, modify, and distribute this software and
    6  * its documentation for any purpose and without fee is hereby granted,
    7  * provided that the above copyright notice appears in all copies and
    8  * that both that copyright notice and this permission notice appear
    9  * in supporting documentation, and that the name of The University
   10  * of Michigan not be used in advertising or publicity pertaining to
   11  * distribution of the software without specific, written prior
   12  * permission. This software is supplied as is without expressed or
   13  * implied warranties of any kind.
   14  *
   15  *      Research Systems Unix Group
   16  *      The University of Michigan
   17  *      c/o Mike Clark
   18  *      535 W. William Street
   19  *      Ann Arbor, Michigan
   20  *      +1-313-763-0525
   21  *      netatalk@itd.umich.edu
   22  */
   23 
   24 #include <sys/param.h>
   25 #include <sys/systm.h>
   26 #include <sys/protosw.h>
   27 #include <sys/domain.h>
   28 #include <sys/types.h>
   29 #include <sys/socket.h>
   30 
   31 #include <sys/kernel.h>
   32 #include <net/if.h>
   33 #include <net/radix.h>
   34 #include <netinet/in.h>
   35 #include <netinet/if_ether.h>
   36 #include <net/route.h>
   37 
   38 #include <netatalk/at.h>
   39 #include <netatalk/ddp.h>
   40 #include <netatalk/at_var.h>
   41 #include <netatalk/ddp_var.h>
   42 #include <netatalk/at_extern.h>
   43 
   44 
   45 struct protosw          atalksw[] = {
   46     {
   47         /* Identifiers */
   48         SOCK_DGRAM,     &atalkdomain,   ATPROTO_DDP,    PR_ATOMIC|PR_ADDR,
   49         /*
   50          * protocol-protocol interface.
   51          * fields are pr_input, pr_output, pr_ctlinput, and pr_ctloutput.
   52          * pr_input can be called from the udp protocol stack for iptalk
   53          * packets bound for a local socket.
   54          * pr_output can be used by higher level appletalk protocols, should
   55          * they be included in the kernel.
   56          */
   57         0,              ddp_output,     0,              0,
   58         /* socket-protocol interface. */
   59         ddp_usrreq,
   60         /* utility routines. */
   61         ddp_init,       0,              0,              0,
   62     },
   63 };
   64 
   65 struct domain           atalkdomain = {
   66     AF_APPLETALK,       "appletalk",    0,      0,      0,
   67     atalksw, &atalksw[sizeof(atalksw)/sizeof(atalksw[0])],
   68     0, rn_inithead,
   69     8 * (u_long) &((struct sockaddr_at *) 0)->sat_addr,
   70     sizeof(struct sockaddr_at)
   71 };
   72 
   73 DOMAIN_SET(atalk);
   74 

Cache object: 1da6e0e33b983acc3a6dd0693057543d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.