## ARP works differently on different FC media .. so ARPHRD_FCPP = 784 # Point to point fibrechannel ARPHRD_FCAL = 785 # Fibrechannel arbitrated loop ARPHRD_FCPL = 786 # Fibrechannel public loop ARPHRD_FCFABRIC = 787 # Fibrechannel fabric ## 787->799 reserved for fibrechannel media types ARPHRD_IEEE802_TR = 800 # Magic type ident for TR ARPHRD_IEEE80211 = 801 # IEEE 802.11 ARPHRD_IEEE80211_PRISM = 802 # IEEE 802.11 + Prism2 header ARPHRD_IEEE80211_RADIOTAP = 803 # IEEE 802.11 + radiotap header ARPHRD_MPLS_TUNNEL = 899 # MPLS Tunnel Interface ARPHRD_VOID = 0xFFFF # Void type, nothing is known ARPHRD_NONE = 0xFFFE # zero header length (M_ARPHRD_MAP, M_ARPHRD_REVERSE) = make_map("ARPHRD_",globals()) ## ARP protocol opcodes. ARPOP_REQUEST = 1 # ARP request ARPOP_REPLY = 2 # ARP reply ARPOP_RREQUEST = 3 # RARP request ARPOP_RREPLY = 4 # RARP reply ARPOP_InREQUEST = 8 # InARP request ARPOP_InREPLY = 9 # InARP reply ARPOP_NAK = 10 # (ATM)ARP NAK ## ARP Flag values. ATF_COM = 0x02 # completed entry (ha valid) ATF_PERM = 0x04 # permanent entry ATF_PUBL = 0x08 # publish entry
# Important comment: # IFA_ADDRESS is prefix address, rather than local interface address. # It makes no difference for normally configured broadcast interfaces, # but for point-to-point IFA_ADDRESS is DESTINATION address, # local address is supplied in IFA_LOCAL attribute. # IFA_UNSPEC = 0 IFA_ADDRESS = 1 IFA_LOCAL = 2 IFA_LABEL = 3 IFA_BROADCAST = 4 IFA_ANYCAST = 5 IFA_CACHEINFO = 6 IFA_MULTICAST = 7 (M_IFA_MAP, M_IFA_REVERSE) = make_map("IFA_",globals()) t_ifa_attr = { IFA_UNSPEC: (t_none, "none"), IFA_ADDRESS: (t_ip4ad, "address"), IFA_LOCAL: (t_ip4ad, "local"), IFA_LABEL: (t_asciiz, "dev"), IFA_BROADCAST: (t_ip4ad, "broadcast"), IFA_ANYCAST: (t_ip4ad, "anycast"), IFA_CACHEINFO: (t_none, "cacheinfo"), IFA_MULTICAST: (t_ip4ad, "multycast"), } r_ifa_attr = { "address": (r_ip4ad, IFA_ADDRESS),