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/aarp.h

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 
    6 #ifndef _NETATALK_AARP_H_
    7 /*
    8  * This structure is used for both phase 1 and 2. Under phase 1
    9  * the net is not filled in. It is in phase 2. In both cases, the
   10  * hardware address length is (for some unknown reason) 4. If
   11  * anyone at Apple could program their way out of paper bag, it
   12  * would be 1 and 3 respectively for phase 1 and 2.
   13  */
   14 union aapa {
   15     u_char              ap_pa[4];
   16     struct ap_node {
   17         u_char          an_zero;
   18         u_char          an_net[2];
   19         u_char          an_node;
   20     } ap_node;
   21 };
   22 
   23 struct ether_aarp {
   24     struct arphdr       eaa_hdr;
   25     u_char              aarp_sha[6];
   26     union aapa          aarp_spu;
   27     u_char              aarp_tha[6];
   28     union aapa          aarp_tpu;
   29 };
   30 #define aarp_hrd        eaa_hdr.ar_hrd
   31 #define aarp_pro        eaa_hdr.ar_pro
   32 #define aarp_hln        eaa_hdr.ar_hln
   33 #define aarp_pln        eaa_hdr.ar_pln
   34 #define aarp_op         eaa_hdr.ar_op
   35 #define aarp_spa        aarp_spu.ap_node.an_node
   36 #define aarp_tpa        aarp_tpu.ap_node.an_node
   37 #define aarp_spnet      aarp_spu.ap_node.an_net
   38 #define aarp_tpnet      aarp_tpu.ap_node.an_net
   39 #define aarp_spnode     aarp_spu.ap_node.an_node
   40 #define aarp_tpnode     aarp_tpu.ap_node.an_node
   41 
   42 struct aarptab {
   43     struct at_addr      aat_ataddr;
   44     u_char              aat_enaddr[ 6 ];
   45     u_char              aat_timer;
   46     u_char              aat_flags;
   47     struct mbuf         *aat_hold;
   48 };
   49 
   50 #define AARPHRD_ETHER   0x0001
   51 
   52 #define AARPOP_REQUEST  0x01
   53 #define AARPOP_RESPONSE 0x02
   54 #define AARPOP_PROBE    0x03
   55 
   56 #ifdef KERNEL
   57 struct aarptab          *aarptnew(struct at_addr      *);
   58 #endif
   59 
   60 #endif /* _NETATALK_AARP_H_ */

Cache object: 58772cdd37157457ebf5028aafa8b19f


[ 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.