[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]

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

Version: -  FREEBSD  -  FREEBSD7  -  FREEBSD70  -  FREEBSD6  -  FREEBSD64  -  FREEBSD63  -  FREEBSD62  -  FREEBSD61  -  FREEBSD60  -  FREEBSD5  -  FREEBSD55  -  FREEBSD54  -  FREEBSD53  -  FREEBSD52  -  FREEBSD51  -  FREEBSD50  -  FREEBSD4  -  FREEBSD3  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  OPENSOLARIS  -  minix-3-1-1  -  TRUSTEDBSD-SEBSD  -  FREEBSD-LIBC  -  FREEBSD7-LIBC  -  FREEBSD6-LIBC  -  GLIBC27 
SearchContext: -  none  -  excerpts  -  bigexcerpts 

  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  * $FreeBSD: src/sys/netatalk/at_proto.c,v 1.14 2008/05/09 23:02:56 julian Exp $
 24  */
 25 
 26 #include <sys/param.h>
 27 #include <sys/protosw.h>
 28 #include <sys/domain.h>
 29 #include <sys/socket.h>
 30 
 31 #include <sys/kernel.h>
 32 
 33 #include <net/route.h>
 34 
 35 #include <netatalk/at.h>
 36 #include <netatalk/ddp_var.h>
 37 #include <netatalk/at_extern.h>
 38 
 39 static struct domain    atalkdomain;
 40 
 41 static struct protosw   atalksw[] = {
 42         {
 43                 /* Identifiers */
 44                 .pr_type =              SOCK_DGRAM,
 45                 .pr_domain =            &atalkdomain,
 46                 .pr_protocol =          ATPROTO_DDP,
 47                 .pr_flags =             PR_ATOMIC|PR_ADDR,
 48                 .pr_output =            ddp_output,
 49                 .pr_init =              ddp_init,
 50                 .pr_usrreqs =           &ddp_usrreqs,
 51         },
 52 };
 53 
 54 static struct domain    atalkdomain = {
 55         .dom_family =           AF_APPLETALK,
 56         .dom_name =             "appletalk",
 57         .dom_protosw =          atalksw,
 58         .dom_protoswNPROTOSW =  &atalksw[sizeof(atalksw)/sizeof(atalksw[0])],
 59         .dom_rtattach =         at_inithead,
 60         .dom_rtoffset =         offsetof(struct sockaddr_at, sat_addr) << 3,
 61         .dom_maxrtkey =         sizeof(struct sockaddr_at),
 62 };
 63 
 64 DOMAIN_SET(atalk);
 65 

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]


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