~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/if_arp.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/if_arp.h (Architecture mips) and /include/uapi/linux/if_arp.h (Architecture i386)


  1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linu      1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
  2 /*                                                  2 /*
  3  * INET         An implementation of the TCP/I      3  * INET         An implementation of the TCP/IP protocol suite for the LINUX
  4  *              operating system.  INET is imp      4  *              operating system.  INET is implemented using the  BSD Socket
  5  *              interface as the means of comm      5  *              interface as the means of communication with the user level.
  6  *                                                  6  *
  7  *              Global definitions for the ARP      7  *              Global definitions for the ARP (RFC 826) protocol.
  8  *                                                  8  *
  9  * Version:     @(#)if_arp.h    1.0.1   04/16/      9  * Version:     @(#)if_arp.h    1.0.1   04/16/93
 10  *                                                 10  *
 11  * Authors:     Original taken from Berkeley U     11  * Authors:     Original taken from Berkeley UNIX 4.3, (c) UCB 1986-1988
 12  *              Portions taken from the KA9Q/N     12  *              Portions taken from the KA9Q/NOS (v2.00m PA0GRI) source.
 13  *              Ross Biro                          13  *              Ross Biro
 14  *              Fred N. van Kempen, <waltje@uW     14  *              Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
 15  *              Florian La Roche,                  15  *              Florian La Roche,
 16  *              Jonathan Layes <layes@loran.co     16  *              Jonathan Layes <layes@loran.com>
 17  *              Arnaldo Carvalho de Melo <acme     17  *              Arnaldo Carvalho de Melo <acme@conectiva.com.br> ARPHRD_HWX25
 18  *                                                 18  *
 19  *              This program is free software;     19  *              This program is free software; you can redistribute it and/or
 20  *              modify it under the terms of t     20  *              modify it under the terms of the GNU General Public License
 21  *              as published by the Free Softw     21  *              as published by the Free Software Foundation; either version
 22  *              2 of the License, or (at your      22  *              2 of the License, or (at your option) any later version.
 23  */                                                23  */
 24 #ifndef _UAPI_LINUX_IF_ARP_H                       24 #ifndef _UAPI_LINUX_IF_ARP_H
 25 #define _UAPI_LINUX_IF_ARP_H                       25 #define _UAPI_LINUX_IF_ARP_H
 26                                                    26 
 27 #include <linux/netdevice.h>                       27 #include <linux/netdevice.h>
 28                                                    28 
 29 /* ARP protocol HARDWARE identifiers. */           29 /* ARP protocol HARDWARE identifiers. */
 30 #define ARPHRD_NETROM   0               /* fro     30 #define ARPHRD_NETROM   0               /* from KA9Q: NET/ROM pseudo    */
 31 #define ARPHRD_ETHER    1               /* Eth     31 #define ARPHRD_ETHER    1               /* Ethernet 10Mbps              */
 32 #define ARPHRD_EETHER   2               /* Exp     32 #define ARPHRD_EETHER   2               /* Experimental Ethernet        */
 33 #define ARPHRD_AX25     3               /* AX.     33 #define ARPHRD_AX25     3               /* AX.25 Level 2                */
 34 #define ARPHRD_PRONET   4               /* PRO     34 #define ARPHRD_PRONET   4               /* PROnet token ring            */
 35 #define ARPHRD_CHAOS    5               /* Cha     35 #define ARPHRD_CHAOS    5               /* Chaosnet                     */
 36 #define ARPHRD_IEEE802  6               /* IEE     36 #define ARPHRD_IEEE802  6               /* IEEE 802.2 Ethernet/TR/TB    */
 37 #define ARPHRD_ARCNET   7               /* ARC     37 #define ARPHRD_ARCNET   7               /* ARCnet                       */
 38 #define ARPHRD_APPLETLK 8               /* APP     38 #define ARPHRD_APPLETLK 8               /* APPLEtalk                    */
 39 #define ARPHRD_DLCI     15              /* Fra     39 #define ARPHRD_DLCI     15              /* Frame Relay DLCI             */
 40 #define ARPHRD_ATM      19              /* ATM     40 #define ARPHRD_ATM      19              /* ATM                          */
 41 #define ARPHRD_METRICOM 23              /* Met     41 #define ARPHRD_METRICOM 23              /* Metricom STRIP (new IANA id) */
 42 #define ARPHRD_IEEE1394 24              /* IEE     42 #define ARPHRD_IEEE1394 24              /* IEEE 1394 IPv4 - RFC 2734    */
 43 #define ARPHRD_EUI64    27              /* EUI     43 #define ARPHRD_EUI64    27              /* EUI-64                       */
 44 #define ARPHRD_INFINIBAND 32            /* Inf     44 #define ARPHRD_INFINIBAND 32            /* InfiniBand                   */
 45                                                    45 
 46 /* Dummy types for non ARP hardware */             46 /* Dummy types for non ARP hardware */
 47 #define ARPHRD_SLIP     256                        47 #define ARPHRD_SLIP     256
 48 #define ARPHRD_CSLIP    257                        48 #define ARPHRD_CSLIP    257
 49 #define ARPHRD_SLIP6    258                        49 #define ARPHRD_SLIP6    258
 50 #define ARPHRD_CSLIP6   259                        50 #define ARPHRD_CSLIP6   259
 51 #define ARPHRD_RSRVD    260             /* Not     51 #define ARPHRD_RSRVD    260             /* Notional KISS type           */
 52 #define ARPHRD_ADAPT    264                        52 #define ARPHRD_ADAPT    264
 53 #define ARPHRD_ROSE     270                        53 #define ARPHRD_ROSE     270
 54 #define ARPHRD_X25      271             /* CCI     54 #define ARPHRD_X25      271             /* CCITT X.25                   */
 55 #define ARPHRD_HWX25    272             /* Boa     55 #define ARPHRD_HWX25    272             /* Boards with X.25 in firmware */
 56 #define ARPHRD_CAN      280             /* Con     56 #define ARPHRD_CAN      280             /* Controller Area Network      */
 57 #define ARPHRD_MCTP     290                        57 #define ARPHRD_MCTP     290
 58 #define ARPHRD_PPP      512                        58 #define ARPHRD_PPP      512
 59 #define ARPHRD_CISCO    513             /* Cis     59 #define ARPHRD_CISCO    513             /* Cisco HDLC                   */
 60 #define ARPHRD_HDLC     ARPHRD_CISCO               60 #define ARPHRD_HDLC     ARPHRD_CISCO
 61 #define ARPHRD_LAPB     516             /* LAP     61 #define ARPHRD_LAPB     516             /* LAPB                         */
 62 #define ARPHRD_DDCMP    517             /* Dig     62 #define ARPHRD_DDCMP    517             /* Digital's DDCMP protocol     */
 63 #define ARPHRD_RAWHDLC  518             /* Raw     63 #define ARPHRD_RAWHDLC  518             /* Raw HDLC                     */
 64 #define ARPHRD_RAWIP    519             /* Raw     64 #define ARPHRD_RAWIP    519             /* Raw IP                       */
 65                                                    65 
 66 #define ARPHRD_TUNNEL   768             /* IPI     66 #define ARPHRD_TUNNEL   768             /* IPIP tunnel                  */
 67 #define ARPHRD_TUNNEL6  769             /* IP6     67 #define ARPHRD_TUNNEL6  769             /* IP6IP6 tunnel                */
 68 #define ARPHRD_FRAD     770             /* Fra     68 #define ARPHRD_FRAD     770             /* Frame Relay Access Device    */
 69 #define ARPHRD_SKIP     771             /* SKI     69 #define ARPHRD_SKIP     771             /* SKIP vif                     */
 70 #define ARPHRD_LOOPBACK 772             /* Loo     70 #define ARPHRD_LOOPBACK 772             /* Loopback device              */
 71 #define ARPHRD_LOCALTLK 773             /* Loc     71 #define ARPHRD_LOCALTLK 773             /* Localtalk device             */
 72 #define ARPHRD_FDDI     774             /* Fib     72 #define ARPHRD_FDDI     774             /* Fiber Distributed Data Interface */
 73 #define ARPHRD_BIF      775             /* AP1     73 #define ARPHRD_BIF      775             /* AP1000 BIF                   */
 74 #define ARPHRD_SIT      776             /* sit     74 #define ARPHRD_SIT      776             /* sit0 device - IPv6-in-IPv4   */
 75 #define ARPHRD_IPDDP    777             /* IP      75 #define ARPHRD_IPDDP    777             /* IP over DDP tunneller        */
 76 #define ARPHRD_IPGRE    778             /* GRE     76 #define ARPHRD_IPGRE    778             /* GRE over IP                  */
 77 #define ARPHRD_PIMREG   779             /* PIM     77 #define ARPHRD_PIMREG   779             /* PIMSM register interface     */
 78 #define ARPHRD_HIPPI    780             /* Hig     78 #define ARPHRD_HIPPI    780             /* High Performance Parallel Interface */
 79 #define ARPHRD_ASH      781             /* Nex     79 #define ARPHRD_ASH      781             /* Nexus 64Mbps Ash             */
 80 #define ARPHRD_ECONET   782             /* Aco     80 #define ARPHRD_ECONET   782             /* Acorn Econet                 */
 81 #define ARPHRD_IRDA     783             /* Lin     81 #define ARPHRD_IRDA     783             /* Linux-IrDA                   */
 82 /* ARP works differently on different FC media     82 /* ARP works differently on different FC media .. so  */
 83 #define ARPHRD_FCPP     784             /* Poi     83 #define ARPHRD_FCPP     784             /* Point to point fibrechannel  */
 84 #define ARPHRD_FCAL     785             /* Fib     84 #define ARPHRD_FCAL     785             /* Fibrechannel arbitrated loop */
 85 #define ARPHRD_FCPL     786             /* Fib     85 #define ARPHRD_FCPL     786             /* Fibrechannel public loop     */
 86 #define ARPHRD_FCFABRIC 787             /* Fib     86 #define ARPHRD_FCFABRIC 787             /* Fibrechannel fabric          */
 87         /* 787->799 reserved for fibrechannel      87         /* 787->799 reserved for fibrechannel media types */
 88 #define ARPHRD_IEEE802_TR 800           /* Mag     88 #define ARPHRD_IEEE802_TR 800           /* Magic type ident for TR      */
 89 #define ARPHRD_IEEE80211 801            /* IEE     89 #define ARPHRD_IEEE80211 801            /* IEEE 802.11                  */
 90 #define ARPHRD_IEEE80211_PRISM 802      /* IEE     90 #define ARPHRD_IEEE80211_PRISM 802      /* IEEE 802.11 + Prism2 header  */
 91 #define ARPHRD_IEEE80211_RADIOTAP 803   /* IEE     91 #define ARPHRD_IEEE80211_RADIOTAP 803   /* IEEE 802.11 + radiotap header */
 92 #define ARPHRD_IEEE802154         804              92 #define ARPHRD_IEEE802154         804
 93 #define ARPHRD_IEEE802154_MONITOR 805   /* IEE     93 #define ARPHRD_IEEE802154_MONITOR 805   /* IEEE 802.15.4 network monitor */
 94                                                    94 
 95 #define ARPHRD_PHONET   820             /* Pho     95 #define ARPHRD_PHONET   820             /* PhoNet media type            */
 96 #define ARPHRD_PHONET_PIPE 821          /* Pho     96 #define ARPHRD_PHONET_PIPE 821          /* PhoNet pipe header           */
 97 #define ARPHRD_CAIF     822             /* CAI     97 #define ARPHRD_CAIF     822             /* CAIF media type              */
 98 #define ARPHRD_IP6GRE   823             /* GRE     98 #define ARPHRD_IP6GRE   823             /* GRE over IPv6                */
 99 #define ARPHRD_NETLINK  824             /* Net     99 #define ARPHRD_NETLINK  824             /* Netlink header               */
100 #define ARPHRD_6LOWPAN  825             /* IPv    100 #define ARPHRD_6LOWPAN  825             /* IPv6 over LoWPAN             */
101 #define ARPHRD_VSOCKMON 826             /* Vso    101 #define ARPHRD_VSOCKMON 826             /* Vsock monitor header         */
102                                                   102 
103 #define ARPHRD_VOID       0xFFFF        /* Voi    103 #define ARPHRD_VOID       0xFFFF        /* Void type, nothing is known */
104 #define ARPHRD_NONE       0xFFFE        /* zer    104 #define ARPHRD_NONE       0xFFFE        /* zero header length */
105                                                   105 
106 /* ARP protocol opcodes. */                       106 /* ARP protocol opcodes. */
107 #define ARPOP_REQUEST   1               /* ARP    107 #define ARPOP_REQUEST   1               /* ARP request                  */
108 #define ARPOP_REPLY     2               /* ARP    108 #define ARPOP_REPLY     2               /* ARP reply                    */
109 #define ARPOP_RREQUEST  3               /* RAR    109 #define ARPOP_RREQUEST  3               /* RARP request                 */
110 #define ARPOP_RREPLY    4               /* RAR    110 #define ARPOP_RREPLY    4               /* RARP reply                   */
111 #define ARPOP_InREQUEST 8               /* InA    111 #define ARPOP_InREQUEST 8               /* InARP request                */
112 #define ARPOP_InREPLY   9               /* InA    112 #define ARPOP_InREPLY   9               /* InARP reply                  */
113 #define ARPOP_NAK       10              /* (AT    113 #define ARPOP_NAK       10              /* (ATM)ARP NAK                 */
114                                                   114 
115                                                   115 
116 /* ARP ioctl request. */                          116 /* ARP ioctl request. */
117 struct arpreq {                                   117 struct arpreq {
118         struct sockaddr arp_pa;         /* pro    118         struct sockaddr arp_pa;         /* protocol address              */
119         struct sockaddr arp_ha;         /* har    119         struct sockaddr arp_ha;         /* hardware address              */
120         int             arp_flags;      /* fla    120         int             arp_flags;      /* flags                         */
121         struct sockaddr arp_netmask;    /* net    121         struct sockaddr arp_netmask;    /* netmask (only for proxy arps) */
122         char            arp_dev[IFNAMSIZ];        122         char            arp_dev[IFNAMSIZ];
123 };                                                123 };
124                                                   124 
125 struct arpreq_old {                               125 struct arpreq_old {
126         struct sockaddr arp_pa;         /* pro    126         struct sockaddr arp_pa;         /* protocol address              */
127         struct sockaddr arp_ha;         /* har    127         struct sockaddr arp_ha;         /* hardware address              */
128         int             arp_flags;      /* fla    128         int             arp_flags;      /* flags                         */
129         struct sockaddr arp_netmask;    /* net    129         struct sockaddr arp_netmask;    /* netmask (only for proxy arps) */
130 };                                                130 };
131                                                   131 
132 /* ARP Flag values. */                            132 /* ARP Flag values. */
133 #define ATF_COM         0x02            /* com    133 #define ATF_COM         0x02            /* completed entry (ha valid)   */
134 #define ATF_PERM        0x04            /* per    134 #define ATF_PERM        0x04            /* permanent entry              */
135 #define ATF_PUBL        0x08            /* pub    135 #define ATF_PUBL        0x08            /* publish entry                */
136 #define ATF_USETRAILERS 0x10            /* has    136 #define ATF_USETRAILERS 0x10            /* has requested trailers       */
137 #define ATF_NETMASK     0x20            /* wan    137 #define ATF_NETMASK     0x20            /* want to use a netmask (only
138                                            for    138                                            for proxy entries) */
139 #define ATF_DONTPUB     0x40            /* don    139 #define ATF_DONTPUB     0x40            /* don't answer this addresses  */
140                                                   140 
141 /*                                                141 /*
142  *      This structure defines an ethernet arp    142  *      This structure defines an ethernet arp header.
143  */                                               143  */
144                                                   144 
145 struct arphdr {                                   145 struct arphdr {
146         __be16          ar_hrd;         /* for    146         __be16          ar_hrd;         /* format of hardware address   */
147         __be16          ar_pro;         /* for    147         __be16          ar_pro;         /* format of protocol address   */
148         unsigned char   ar_hln;         /* len    148         unsigned char   ar_hln;         /* length of hardware address   */
149         unsigned char   ar_pln;         /* len    149         unsigned char   ar_pln;         /* length of protocol address   */
150         __be16          ar_op;          /* ARP    150         __be16          ar_op;          /* ARP opcode (command)         */
151                                                   151 
152 #if 0                                             152 #if 0
153          /*                                       153          /*
154           *      Ethernet looks like this : Th    154           *      Ethernet looks like this : This bit is variable sized however...
155           */                                      155           */
156         unsigned char           ar_sha[ETH_ALE    156         unsigned char           ar_sha[ETH_ALEN];       /* sender hardware address      */
157         unsigned char           ar_sip[4];        157         unsigned char           ar_sip[4];              /* sender IP address            */
158         unsigned char           ar_tha[ETH_ALE    158         unsigned char           ar_tha[ETH_ALEN];       /* target hardware address      */
159         unsigned char           ar_tip[4];        159         unsigned char           ar_tip[4];              /* target IP address            */
160 #endif                                            160 #endif
161                                                   161 
162 };                                                162 };
163                                                   163 
164                                                   164 
165 #endif /* _UAPI_LINUX_IF_ARP_H */                 165 #endif /* _UAPI_LINUX_IF_ARP_H */
166                                                   166 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php