---
name: "libnet-headers.h"
section: "3"
platform: "linux"
package: "libnet1-dev"
version: "1.1.2.1-2"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/libnet-headers.h"
---

# libnet-headers.h(3)

libnet header information

## NAME

libnet-headers.h - libnet header information

## SYNOPSIS

### Data Structures

struct **libnet\_802\_1q\_hdr**\
 struct **libnet\_802\_1x\_hdr**\
 struct **libnet\_802\_2\_hdr**\
 struct **libnet\_802\_2snap\_hdr**\
 struct **libnet\_802\_3\_hdr**\
 struct **libnet\_ah\_hdr**\
 struct **libnet\_arp\_hdr**\
 struct **libnet\_as\_lsa\_hdr**\
 struct **libnet\_auth\_hdr**\
 struct **libnet\_bgp4\_header\_hdr**\
 struct **libnet\_bgp4\_notification\_hdr**\
 struct **libnet\_bgp4\_open\_hdr**\
 struct **libnet\_cdp\_hdr**\
 struct **libnet\_cdp\_value\_hdr**\
 struct **libnet\_dbd\_hdr**\
 struct **libnet\_dhcpv4\_hdr**\
 struct **libnet\_dnsv4\_hdr**\
 struct **libnet\_esp\_ftr**\
 struct **libnet\_esp\_hdr**\
 struct **libnet\_ether\_addr**\
 struct **libnet\_ethernet\_hdr**\
 struct **libnet\_fddi\_addr**\
 struct **libnet\_fddi\_hdr**\
 struct **libnet\_gre\_hdr**\
 struct **libnet\_gre\_sre\_hdr**\
 struct **libnet\_icmpv4\_hdr**\
 struct **libnet\_icmpv6\_hdr**\
 struct **libnet\_igmp\_hdr**\
 struct **libnet\_in6\_addr**\
 struct **libnet\_ipv4\_hdr**\
 struct **libnet\_ipv6\_destopts\_hdr**\
 struct **libnet\_ipv6\_frag\_hdr**\
 struct **libnet\_ipv6\_hbhopts\_hdr**\
 struct **libnet\_ipv6\_hdr**\
 struct **libnet\_ipv6\_routing\_hdr**\
 struct **libnet\_isl\_hdr**\
 struct **libnet\_lsa\_hdr**\
 struct **libnet\_lsr\_hdr**\
 struct **libnet\_lsu\_hdr**\
 struct **libnet\_mpls\_hdr**\
 struct **libnet\_net\_lsa\_hdr**\
 struct **libnet\_ntp\_hdr**\
 struct **libnet\_ntp\_hdr\_l\_fp**\
 struct **libnet\_ntp\_hdr\_s\_fp**\
 struct **libnet\_ospf\_hdr**\
 struct **libnet\_ospf\_hello\_hdr**\
 struct **libnet\_rip\_hdr**\
 struct **libnet\_rpc\_call**\
 struct **libnet\_rpc\_call\_hdr**\
 struct **libnet\_rpc\_call\_tcp\_hdr**\
 struct **libnet\_rpc\_opaque\_auth**\
 struct **libnet\_rtr\_lsa\_hdr**\
 struct **libnet\_sebek\_hdr**\
 struct **libnet\_stp\_conf\_hdr**\
 struct **libnet\_stp\_tcn\_hdr**\
 struct **libnet\_sum\_lsa\_hdr**\
 struct **libnet\_tcp\_hdr**\
 struct **libnet\_token\_ring\_addr**\
 struct **libnet\_token\_ring\_hdr**\
 struct **libnet\_udp\_hdr**\
 struct **libnet\_vrrp\_hdr**\

### Defines

\#define **LIBNET\_802\_1Q\_H**   0x12\
 \#define **LIBNET\_802\_1X\_H**   0x04\
 \#define **LIBNET\_802\_2\_H**   0x03\
 \#define **LIBNET\_802\_2SNAP\_H**   0x08\
 \#define **LIBNET\_802\_3\_H**   0x0e\
 \#define **LIBNET\_ARP\_H**   0x08\
 \#define **LIBNET\_ARP\_ETH\_IP\_H**   0x1c\
 \#define **LIBNET\_BGP4\_HEADER\_H**   0x13\
 \#define **LIBNET\_BGP4\_OPEN\_H**   0x0a\
 \#define **LIBNET\_BGP4\_UPDATE\_H**   0x04\
 \#define **LIBNET\_BGP4\_NOTIFICATION\_H**   0x02\
 \#define **LIBNET\_CDP\_H**   0x08\
 \#define **LIBNET\_DHCPV4\_H**   0xf0\
 \#define **LIBNET\_UDP\_DNSV4\_H**   0x0c\
 \#define **LIBNET\_TCP\_DNSV4\_H**   0x0e\
 \#define **LIBNET\_ETH\_H**   0x0e\
 \#define **LIBNET\_FDDI\_H**   0x15\
 \#define **LIBNET\_ICMPV4\_H**   0x04\
 \#define **LIBNET\_ICMPV4\_ECHO\_H**   0x08\
 \#define **LIBNET\_ICMPV4\_MASK\_H**   0x0c\
 \#define **LIBNET\_ICMPV4\_UNREACH\_H**   0x08\
 \#define **LIBNET\_ICMPV4\_TIMXCEED\_H**   0x08\
 \#define **LIBNET\_ICMPV4\_REDIRECT\_H**   0x08\
 \#define **LIBNET\_ICMPV4\_TS\_H**   0x14\
 \#define **LIBNET\_ICMPV6\_H**   0x08\
 \#define **LIBNET\_IGMP\_H**   0x08\
 \#define **LIBNET\_IPV4\_H**   0x14\
 \#define **LIBNET\_IPV6\_H**   0x28\
 \#define **LIBNET\_IPV6\_FRAG\_H**   0x08\
 \#define **LIBNET\_IPV6\_ROUTING\_H**   0x04\
 \#define **LIBNET\_IPV6\_DESTOPTS\_H**   0x02\
 \#define **LIBNET\_IPV6\_HBHOPTS\_H**   0x02\
 \#define **LIBNET\_IPSEC\_ESP\_HDR\_H**   0x0c\
 \#define **LIBNET\_IPSEC\_ESP\_FTR\_H**   0x02\
 \#define **LIBNET\_IPSEC\_AH\_H**   0x10\
 \#define **LIBNET\_ISL\_H**   0x1a\
 \#define **LIBNET\_GRE\_H**   0x04\
 \#define **LIBNET\_GRE\_SRE\_H**   0x04\
 \#define **LIBNET\_MPLS\_H**   0x04\
 \#define **LIBNET\_OSPF\_H**   0x10\
 \#define **LIBNET\_OSPF\_HELLO\_H**   0x18\
 \#define **LIBNET\_OSPF\_DBD\_H**   0x08\
 \#define **LIBNET\_OSPF\_LSR\_H**   0x0c\
 \#define **LIBNET\_OSPF\_LSU\_H**   0x04\
 \#define **LIBNET\_OSPF\_LSA\_H**   0x14\
 \#define **LIBNET\_OSPF\_AUTH\_H**   0x08\
 \#define **LIBNET\_OSPF\_CKSUM**   0x10\
 \#define **LIBNET\_OSPF\_LS\_RTR\_H**   0x10\
 \#define **LIBNET\_OSPF\_LS\_NET\_H**   0x08\
 \#define **LIBNET\_OSPF\_LS\_SUM\_H**   0x0c\
 \#define **LIBNET\_OSPF\_LS\_AS\_EXT\_H**   0x10\
 \#define **LIBNET\_NTP\_H**   0x30\
 \#define **LIBNET\_RIP\_H**   0x18\
 \#define **LIBNET\_RPC\_CALL\_H**   0x28\
 \#define **LIBNET\_RPC\_CALL\_TCP\_H**   0x2c\
 \#define **LIBNET\_SEBEK\_H**   0x30\
 \#define **LIBNET\_STP\_CONF\_H**   0x23\
 \#define **LIBNET\_STP\_TCN\_H**   0x04\
 \#define **LIBNET\_TOKEN\_RING\_H**   0x16\
 \#define **LIBNET\_TCP\_H**   0x14\
 \#define **LIBNET\_UDP\_H**   0x08\
 \#define **LIBNET\_VRRP\_H**   0x08\
 \#define **LIBNET\_802\_1Q\_PRIMASK**   0x0007\
 \#define **LIBNET\_802\_1Q\_CFIMASK**   0x0001\
 \#define **LIBNET\_802\_1Q\_VIDMASK**   0x0fff\
 \#define **LIBNET\_802\_1X\_PACKET**   0x00\
 \#define **LIBNET\_802\_1X\_START**   0x01\
 \#define **LIBNET\_802\_1X\_LOGOFF**   0x02\
 \#define **LIBNET\_802\_1X\_KEY**   0x03\
 \#define **LIBNET\_802\_1X\_ENCASFAL**   0x04\
 \#define **LIBNET\_SAP\_STP**   0x42\
 \#define **LIBNET\_SAP\_SNAP**   0xaa\
 \#define **ARPHRD\_NETROM**   0\
 \#define **ARPHRD\_ETHER**   1\
 \#define **ARPHRD\_EETHER**   2\
 \#define **ARPHRD\_AX25**   3\
 \#define **ARPHRD\_PRONET**   4\
 \#define **ARPHRD\_CHAOS**   5\
 \#define **ARPHRD\_IEEE802**   6\
 \#define **ARPHRD\_ARCNET**   7\
 \#define **ARPHRD\_APPLETLK**   8\
 \#define **ARPHRD\_LANSTAR**   9\
 \#define **ARPHRD\_DLCI**   15\
 \#define **ARPHRD\_ATM**   19\
 \#define **ARPHRD\_METRICOM**   23\
 \#define **ARPHRD\_IPSEC**   31\
 \#define **ARPOP\_REQUEST**   1\
 \#define **ARPOP\_REPLY**   2\
 \#define **ARPOP\_REVREQUEST**   3\
 \#define **ARPOP\_REVREPLY**   4\
 \#define **ARPOP\_INVREQUEST**   8\
 \#define **ARPOP\_INVREPLY**   9\
 \#define **LIBNET\_BGP4\_MARKER\_SIZE**   16\
 \#define **LIBNET\_BGP4\_OPEN**   1\
 \#define **LIBNET\_BGP4\_UPDATE**   2\
 \#define **LIBNET\_BGP4\_NOTIFICATION**   3\
 \#define **LIBNET\_BGP4\_KEEPALIVE**   4\
 \#define **LIBNET\_BGP4\_MESSAGE\_HEADER\_ERROR**   1\
 \#define **LIBNET\_BGP4\_OPEN\_MESSAGE\_ERROR**   2\
 \#define **LIBNET\_BGP4\_UPDATE\_MESSAGE\_ERROR**   3\
 \#define **LIBNET\_BGP4\_HOLD\_TIMER\_EXPIRED**   4\
 \#define **LIBNET\_BGP4\_FINITE\_STATE\_\_ERROR**   5\
 \#define **LIBNET\_BGP4\_CEASE**   6\
 \#define **LIBNET\_BGP4\_CONNECTION\_NOT\_SYNCHRONIZED**   1\
 \#define **LIBNET\_BGP4\_BAD\_MESSAGE\_LENGTH**   2\
 \#define **LIBNET\_BGP4\_BAD\_MESSAGE\_TYPE**   3\
 \#define **LIBNET\_BGP4\_UNSUPPORTED\_VERSION\_NUMBER**   1\
 \#define **LIBNET\_BGP4\_BAD\_PEER\_AS**   2\
 \#define **LIBNET\_BGP4\_BAD\_BGP\_IDENTIFIER**   3\
 \#define **LIBNET\_BGP4\_UNSUPPORTED\_OPTIONAL\_PARAMETER**   4\
 \#define **LIBNET\_BGP4\_AUTHENTICATION\_FAILURE**   5\
 \#define **LIBNET\_BGP4\_UNACCEPTABLE\_HOLD\_TIME**   6\
 \#define **LIBNET\_BGP4\_MALFORMED\_ATTRIBUTE\_LIST**\
 \#define **LIBNET\_BGP4\_UNRECOGNIZED\_WELL\_KNOWN\_ATTRIBUTE**\
 \#define **LIBNET\_BGP4\_MISSING\_WELL\_KNOWN\_ATTRIBUTE**\
 \#define **LIBNET\_BGP4\_ATTRIBUTE\_FLAGS\_ERROR**\
 \#define **LIBNET\_BGP4\_ATTRIBUTE\_LENGTH\_ERROR**\
 \#define **LIBNET\_BGP4\_INVALID\_ORIGIN\_ATTRIBUTE**\
 \#define **LIBNET\_BGP4\_AS\_ROUTING\_LOOP**\
 \#define **LIBNET\_BGP4\_INVALID\_NEXT\_HOP\_ATTRIBUTE**\
 \#define **LIBNET\_BGP4\_OPTIONAL\_ATTRIBUTE\_ERROR**\
 \#define **LIBNET\_BGP4\_INVALID\_NETWORK\_FIELD**\
 \#define **LIBNET\_BGP4\_MALFORMED\_AS\_PATH**\
 \#define **LIBNET\_PROTO\_CDP**   200\
 \#define **LIBNET\_CDP\_DEVID**   0x1\
 \#define **LIBNET\_CDP\_ADDRESS**   0x2\
 \#define **LIBNET\_CDP\_PORTID**   0x3\
 \#define **LIBNET\_CDP\_CAPABIL**   0x4\
 \#define **LIBNET\_CDP\_VERSION**   0x5\
 \#define **LIBNET\_CDP\_PLATFORM**   0x6\
 \#define **LIBNET\_CDP\_IPPREFIX**   0x7\
 \#define **LIBNET\_CDP\_CAP\_L3R**   0x01\
 \#define **LIBNET\_CDP\_CAP\_L2B**   0x02\
 \#define **LIBNET\_CDP\_CAP\_L2SRB**   0x04\
 \#define **LIBNET\_CDP\_CAP\_L2S**   0x08\
 \#define **LIBNET\_CDP\_CAP\_SR**   0x10\
 \#define **LIBNET\_CDP\_CAP\_NOI**   0x20\
 \#define **LIBNET\_CDP\_CAP\_L1F**   0x40\
 \#define **LIBNET\_DHCP\_REQUEST**   0x1\
 \#define **LIBNET\_DHCP\_REPLY**   0x2\
 \#define **DHCP\_MAGIC**   0x63825363\
 \#define **LIBNET\_BOOTP\_MIN\_LEN**   0x12c\
 \#define **LIBNET\_DHCP\_PAD**   0x00\
 \#define **LIBNET\_DHCP\_SUBNETMASK**   0x01\
 \#define **LIBNET\_DHCP\_TIMEOFFSET**   0x02\
 \#define **LIBNET\_DHCP\_ROUTER**   0x03\
 \#define **LIBNET\_DHCP\_TIMESERVER**   0x04\
 \#define **LIBNET\_DHCP\_NAMESERVER**   0x05\
 \#define **LIBNET\_DHCP\_DNS**   0x06\
 \#define **LIBNET\_DHCP\_LOGSERV**   0x07\
 \#define **LIBNET\_DHCP\_COOKIESERV**   0x08\
 \#define **LIBNET\_DHCP\_LPRSERV**   0x09\
 \#define **LIBNET\_DHCP\_IMPSERV**   0x0a\
 \#define **LIBNET\_DHCP\_RESSERV**   0x0b\
 \#define **LIBNET\_DHCP\_HOSTNAME**   0x0c\
 \#define **LIBNET\_DHCP\_BOOTFILESIZE**   0x0d\
 \#define **LIBNET\_DHCP\_DUMPFILE**   0x0e\
 \#define **LIBNET\_DHCP\_DOMAINNAME**   0x0f\
 \#define **LIBNET\_DHCP\_SWAPSERV**   0x10\
 \#define **LIBNET\_DHCP\_ROOTPATH**   0x11\
 \#define **LIBNET\_DHCP\_EXTENPATH**   0x12\
 \#define **LIBNET\_DHCP\_IPFORWARD**   0x13\
 \#define **LIBNET\_DHCP\_SRCROUTE**   0x14\
 \#define **LIBNET\_DHCP\_POLICYFILTER**   0x15\
 \#define **LIBNET\_DHCP\_MAXASMSIZE**   0x16\
 \#define **LIBNET\_DHCP\_IPTTL**   0x17\
 \#define **LIBNET\_DHCP\_MTUTIMEOUT**   0x18\
 \#define **LIBNET\_DHCP\_MTUTABLE**   0x19\
 \#define **LIBNET\_DHCP\_MTUSIZE**   0x1a\
 \#define **LIBNET\_DHCP\_LOCALSUBNETS**   0x1b\
 \#define **LIBNET\_DHCP\_BROADCASTADDR**   0x1c\
 \#define **LIBNET\_DHCP\_DOMASKDISCOV**   0x1d\
 \#define **LIBNET\_DHCP\_MASKSUPPLY**   0x1e\
 \#define **LIBNET\_DHCP\_DOROUTEDISC**   0x1f\
 \#define **LIBNET\_DHCP\_ROUTERSOLICIT**   0x20\
 \#define **LIBNET\_DHCP\_STATICROUTE**   0x21\
 \#define **LIBNET\_DHCP\_TRAILERENCAP**   0x22\
 \#define **LIBNET\_DHCP\_ARPTIMEOUT**   0x23\
 \#define **LIBNET\_DHCP\_ETHERENCAP**   0x24\
 \#define **LIBNET\_DHCP\_TCPTTL**   0x25\
 \#define **LIBNET\_DHCP\_TCPKEEPALIVE**   0x26\
 \#define **LIBNET\_DHCP\_TCPALIVEGARBAGE**   0x27\
 \#define **LIBNET\_DHCP\_NISDOMAIN**   0x28\
 \#define **LIBNET\_DHCP\_NISSERVERS**   0x29\
 \#define **LIBNET\_DHCP\_NISTIMESERV**   0x2a\
 \#define **LIBNET\_DHCP\_VENDSPECIFIC**   0x2b\
 \#define **LIBNET\_DHCP\_NBNS**   0x2c\
 \#define **LIBNET\_DHCP\_NBDD**   0x2d\
 \#define **LIBNET\_DHCP\_NBTCPIP**   0x2e\
 \#define **LIBNET\_DHCP\_NBTCPSCOPE**   0x2f\
 \#define **LIBNET\_DHCP\_XFONT**   0x30\
 \#define **LIBNET\_DHCP\_XDISPLAYMGR**   0x31\
 \#define **LIBNET\_DHCP\_DISCOVERADDR**   0x32\
 \#define **LIBNET\_DHCP\_LEASETIME**   0x33\
 \#define **LIBNET\_DHCP\_OPTIONOVERLOAD**   0x34\
 \#define **LIBNET\_DHCP\_MESSAGETYPE**   0x35\
 \#define **LIBNET\_DHCP\_SERVIDENT**   0x36\
 \#define **LIBNET\_DHCP\_PARAMREQUEST**   0x37\
 \#define **LIBNET\_DHCP\_MESSAGE**   0x38\
 \#define **LIBNET\_DHCP\_MAXMSGSIZE**   0x39\
 \#define **LIBNET\_DHCP\_RENEWTIME**   0x3a\
 \#define **LIBNET\_DHCP\_REBINDTIME**   0x3b\
 \#define **LIBNET\_DHCP\_CLASSSID**   0x3c\
 \#define **LIBNET\_DHCP\_CLIENTID**   0x3d\
 \#define **LIBNET\_DHCP\_NISPLUSDOMAIN**   0x40\
 \#define **LIBNET\_DHCP\_NISPLUSSERVERS**   0x41\
 \#define **LIBNET\_DHCP\_MOBILEIPAGENT**   0x44\
 \#define **LIBNET\_DHCP\_SMTPSERVER**   0x45\
 \#define **LIBNET\_DHCP\_POP3SERVER**   0x46\
 \#define **LIBNET\_DHCP\_NNTPSERVER**   0x47\
 \#define **LIBNET\_DHCP\_WWWSERVER**   0x48\
 \#define **LIBNET\_DHCP\_FINGERSERVER**   0x49\
 \#define **LIBNET\_DHCP\_IRCSERVER**   0x4a\
 \#define **LIBNET\_DHCP\_STSERVER**   0x4b\
 \#define **LIBNET\_DHCP\_STDASERVER**   0x4c\
 \#define **LIBNET\_DHCP\_END**   0xff\
 \#define **LIBNET\_DHCP\_MSGDISCOVER**   0x01\
 \#define **LIBNET\_DHCP\_MSGOFFER**   0x02\
 \#define **LIBNET\_DHCP\_MSGREQUEST**   0x03\
 \#define **LIBNET\_DHCP\_MSGDECLINE**   0x04\
 \#define **LIBNET\_DHCP\_MSGACK**   0x05\
 \#define **LIBNET\_DHCP\_MSGNACK**   0x06\
 \#define **LIBNET\_DHCP\_MSGRELEASE**   0x07\
 \#define **LIBNET\_DHCP\_MSGINFORM**   0x08\
 \#define **LIBNET\_DNS\_H**   LIBNET\_UDP\_DNSV4\_H\
 \#define **ETHERTYPE\_PUP**   0x0200\
 \#define **ETHERTYPE\_IP**   0x0800\
 \#define **ETHERTYPE\_ARP**   0x0806\
 \#define **ETHERTYPE\_REVARP**   0x8035\
 \#define **ETHERTYPE\_VLAN**   0x8100\
 \#define **ETHERTYPE\_EAP**   0x888e\
 \#define **ETHERTYPE\_MPLS**   0x8847\
 \#define **ETHERTYPE\_LOOPBACK**   0x9000\
 \#define **LIBNET\_FDDI\_LLC\_FRAME**   0x10\
 \#define **LIBNET\_FDDI\_48BIT\_ADDR**   0x40\
 \#define **LIBNET\_FDDI\_FC\_REQD**   LIBNET\_FDDI\_LLC\_FRAME \| LIBNET\_FDDI\_48BIT\_ADDR\
 \#define **FDDI\_TYPE\_IP**   0x0800\
 \#define **FDDI\_TYPE\_ARP**   0x0806\
 \#define **FDDI\_TYPE\_REVARP**   0x8035\
 \#define **GRE\_CSUM**   0x8000\
 \#define **GRE\_ROUTING**   0x4000\
 \#define **GRE\_KEY**   0x2000\
 \#define **GRE\_SEQ**   0x1000\
 \#define **GRE\_STRICT**   0x0800\
 \#define **GRE\_REC**   0x0700\
 \#define **GRE\_ACK**   0x0080\
 \#define **GRE\_FLAGS\_MASK**   0x00F8\
 \#define **GRE\_VERSION\_MASK**   0x0007\
 \#define **GRE\_VERSION\_0**   0x0000\
 \#define **GRE\_VERSION\_1**   0x0001\
 \#define **GRE\_SNA**   0x0004\
 \#define **GRE\_OSI\_NETWORK\_LAYER**   0x00FE\
 \#define **GRE\_PUP**   0x0200\
 \#define **GRE\_XNS**   0x0600\
 \#define **GRE\_IP**   0x0800\
 \#define **GRE\_CHAOS**   0x0804\
 \#define **GRE\_RFC\_826\_ARP**   0x0806\
 \#define **GRE\_FRAME\_RELAY\_ARP**   0x0808\
 \#define **GRE\_VINES**   0x0BAD\
 \#define **GRE\_VINES\_ECHO**   0x0BAE\
 \#define **GRE\_VINES\_LOOPBACK**   0x0BAF\
 \#define **GRE\_DECNET**   0x6003\
 \#define **GRE\_TRANSPARENT\_ETHERNET\_BRIDGING**   0x6558\
 \#define **GRE\_RAW\_FRAME\_RELAY**   0x6559\
 \#define **GRE\_APOLLO\_DOMAIN**   0x8019\
 \#define **GRE\_ETHERTALK**   0x809B\
 \#define **GRE\_NOVELL\_IPX**   0x8137\
 \#define **GRE\_RFC\_1144\_TCP\_IP\_COMPRESSION**   0x876B\
 \#define **GRE\_IP\_AUTONOMOUS\_SYSTEMS**   0x876C\
 \#define **GRE\_SECURE\_DATA**   0x876D\
 \#define **GRE\_PPP**   0x880b\
 \#define **gre\_sum**   \_data.\_gre.sum\
 \#define **gre\_offset**   \_data.\_gre.offset\
 \#define **gre\_key**   \_data.\_gre.key\
 \#define **gre\_seq**   \_data.\_gre.seq\
 \#define **egre\_payload\_s**   \_data.\_egre.payload\_s\
 \#define **egre\_callID**   \_data.\_egre.callID\
 \#define **egre\_seq**   \_data.\_egre.seq\
 \#define **egre\_ack**   \_data.\_egre.ack\
 \#define **IPPROTO\_GRE**   47\
 \#define **IPTOS\_LOWDELAY**   0x10\
 \#define **IPTOS\_THROUGHPUT**   0x08\
 \#define **IPTOS\_RELIABILITY**   0x04\
 \#define **IPTOS\_LOWCOST**   0x02\
 \#define **IP\_RF**   0x8000\
 \#define **IP\_DF**   0x4000\
 \#define **IP\_MF**   0x2000\
 \#define **IP\_OFFMASK**   0x1fff\
 \#define **IPOPT\_EOL**   0\
 \#define **IPOPT\_NOP**   1\
 \#define **IPOPT\_RR**   7\
 \#define **IPOPT\_TS**   68\
 \#define **IPOPT\_SECURITY**   130\
 \#define **IPOPT\_LSRR**   131\
 \#define **IPOPT\_SATID**   136\
 \#define **IPOPT\_SSRR**   137\
 \#define **libnet\_s6\_addr**   \_\_u6\_addr.\_\_u6\_addr8\
 \#define **LIBNET\_IPV6\_NH\_FRAGMENT**   44\
 \#define **LIBNET\_IPV6\_NH\_ROUTING**   43\
 \#define **LIBNET\_IPV6\_NH\_DESTOPTS**   60\
 \#define **LIBNET\_IPV6\_NH\_HBH**   0\
 \#define **IPPROTO\_ICMP6**   0x3a\
 \#define **ICMP6\_ECHO**   128\
 \#define **ICMP6\_ECHOREPLY**   129\
 \#define **ICMP6\_UNREACH**   1\
 \#define **ICMP6\_PKTTOOBIG**   2\
 \#define **ICMP6\_TIMXCEED**   3\
 \#define **ICMP6\_PARAMPROB**   4\
 \#define **ICMP\_ECHOREPLY**   0\
 \#define **ICMP\_UNREACH**   3\
 \#define **ICMP\_SOURCEQUENCH**   4\
 \#define **ICMP\_REDIRECT**   5\
 \#define **ICMP\_ECHO**   8\
 \#define **ICMP\_ROUTERADVERT**   9\
 \#define **ICMP\_ROUTERSOLICIT**   10\
 \#define **ICMP\_TIMXCEED**   11\
 \#define **ICMP\_PARAMPROB**   12\
 \#define **ICMP\_TSTAMP**   13\
 \#define **ICMP\_TSTAMPREPLY**   14\
 \#define **ICMP\_IREQ**   15\
 \#define **ICMP\_IREQREPLY**   16\
 \#define **ICMP\_MASKREQ**   17\
 \#define **ICMP\_MASKREPLY**   18\
 \#define **ICMP\_UNREACH\_NET**   0\
 \#define **ICMP\_UNREACH\_HOST**   1\
 \#define **ICMP\_UNREACH\_PROTOCOL**   2\
 \#define **ICMP\_UNREACH\_PORT**   3\
 \#define **ICMP\_UNREACH\_NEEDFRAG**   4\
 \#define **ICMP\_UNREACH\_SRCFAIL**   5\
 \#define **ICMP\_UNREACH\_NET\_UNKNOWN**   6\
 \#define **ICMP\_UNREACH\_HOST\_UNKNOWN**   7\
 \#define **ICMP\_UNREACH\_ISOLATED**   8\
 \#define **ICMP\_UNREACH\_NET\_PROHIB**   9\
 \#define **ICMP\_UNREACH\_HOST\_PROHIB**   10\
 \#define **ICMP\_UNREACH\_TOSNET**   11\
 \#define **ICMP\_UNREACH\_TOSHOST**   12\
 \#define **ICMP\_UNREACH\_FILTER\_PROHIB**   13\
 \#define **ICMP\_UNREACH\_HOST\_PRECEDENCE**   14\
 \#define **ICMP\_UNREACH\_PRECEDENCE\_CUTOFF**   15\
 \#define **ICMP\_REDIRECT\_NET**   0\
 \#define **ICMP\_REDIRECT\_HOST**   1\
 \#define **ICMP\_REDIRECT\_TOSNET**   2\
 \#define **ICMP\_REDIRECT\_TOSHOST**   3\
 \#define **ICMP\_TIMXCEED\_INTRANS**   0\
 \#define **ICMP\_TIMXCEED\_REASS**   1\
 \#define **ICMP\_PARAMPROB\_OPTABSENT**   1\
 \#define **icmp\_id**   hun.echo.id\
 \#define **icmp\_seq**   hun.echo.seq\
 \#define **icmp\_mask**   dun.mask\
 \#define **icmp\_data**   dun.data\
 \#define **icmp\_otime**   dun.ts.its\_otime\
 \#define **icmp\_rtime**   dun.ts.its\_rtime\
 \#define **icmp\_ttime**   dun.ts.its\_ttime\
 \#define **IGMP\_MEMBERSHIP\_QUERY**   0x11\
 \#define **IGMP\_V1\_MEMBERSHIP\_REPORT**   0x12\
 \#define **IGMP\_V2\_MEMBERSHIP\_REPORT**   0x16\
 \#define **IGMP\_LEAVE\_GROUP**   0x17\
 \#define **IPPROTO\_ESP**   50\
 \#define **IPPROTO\_AH**   51\
 \#define **LIBNET\_PROTO\_ISL**   201\
 \#define **IPPROTO\_OSPF**   89\
 \#define **IPPROTO\_OSPF\_LSA**   890\
 \#define **LIBNET\_MODX**   4102\
 \#define **LIBNET\_OPT\_EBIT**   0x02\
 \#define **LIBNET\_OPT\_MCBIT**   0x04\
 \#define **LIBNET\_OPT\_NPBIT**   0x08\
 \#define **LIBNET\_OPT\_EABIT**   0x10\
 \#define **LIBNET\_OPT\_DCBIT**   0x20\
 \#define **LIBNET\_MPLS\_BOS\_ON**   1\
 \#define **LIBNET\_MPLS\_BOS\_OFF**   0\
 \#define **LIBNET\_NTP\_LI\_NW**   0x0\
 \#define **LIBNET\_NTP\_LI\_AS**   0x1\
 \#define **LIBNET\_NTP\_LI\_DS**   0x2\
 \#define **LIBNET\_NTP\_LI\_AC**   0x3\
 \#define **LIBNET\_NTP\_VN\_2**   0x2\
 \#define **LIBNET\_NTP\_VN\_3**   0x3\
 \#define **LIBNET\_NTP\_VN\_4**   0x4\
 \#define **LIBNET\_NTP\_MODE\_R**   0x0\
 \#define **LIBNET\_NTP\_MODE\_A**   0x1\
 \#define **LIBNET\_NTP\_MODE\_P**   0x2\
 \#define **LIBNET\_NTP\_MODE\_C**   0x3\
 \#define **LIBNET\_NTP\_MODE\_S**   0x4\
 \#define **LIBNET\_NTP\_MODE\_B**   0x5\
 \#define **LIBNET\_NTP\_MODE\_RC**   0x6\
 \#define **LIBNET\_NTP\_MODE\_RP**   0x7\
 \#define **LIBNET\_NTP\_STRATUM\_UNAVAIL**   0x0\
 \#define **LIBNET\_NTP\_STRATUM\_PRIMARY**   0x1\
 \#define **LIBNET\_NTP\_REF\_LOCAL**   0x4c4f434c\
 \#define **LIBNET\_NTP\_REF\_PPS**   0x50505300\
 \#define **LIBNET\_NTP\_REF\_ACTS**   0x41435453\
 \#define **LIBNET\_NTP\_REF\_USNO**   0x55534e4f\
 \#define **LIBNET\_NTP\_REF\_PTB**   0x50544200\
 \#define **LIBNET\_NTP\_REF\_TDF**   0x54444600\
 \#define **LIBNET\_NTP\_REF\_DCF**   0x44434600\
 \#define **LIBNET\_NTP\_REF\_MSF**   0x4d534600\
 \#define **LIBNET\_NTP\_REF\_WWV**   0x57575600\
 \#define **LIBNET\_NTP\_REF\_WWVB**   0x57575642\
 \#define **LIBNET\_NTP\_REF\_WWVH**   0x57575648\
 \#define **LIBNET\_NTP\_REF\_CHU**   0x43485500\
 \#define **LIBNET\_NTP\_REF\_LORC**   0x4c4f5243\
 \#define **LIBNET\_NTP\_REF\_OMEG**   0x4f4d4547\
 \#define **LIBNET\_NTP\_REF\_GPS**   0x47505300\
 \#define **LIBNET\_NTP\_REF\_GOES**   0x474f4553\
 \#define **OSPFVERSION**   2\
 \#define **LIBNET\_OSPF\_UMD**   0\
 \#define **LIBNET\_OSPF\_HELLO**   1\
 \#define **LIBNET\_OSPF\_DBD**   2\
 \#define **LIBNET\_OSPF\_LSR**   3\
 \#define **LIBNET\_OSPF\_LSU**   4\
 \#define **LIBNET\_OSPF\_LSA**   5\
 \#define **LIBNET\_OSPF\_AUTH\_NULL**   0\
 \#define **LIBNET\_OSPF\_AUTH\_SIMPLE**   1\
 \#define **LIBNET\_OSPF\_AUTH\_MD5**   2\
 \#define **LIBNET\_DBD\_IBI**   0x01\
 \#define **LIBNET\_DBD\_MBIT**   0x02\
 \#define **LIBNET\_DBD\_MSBIT**   0x04\
 \#define **LIBNET\_LS\_TYPE\_RTR**   1\
 \#define **LIBNET\_LS\_TYPE\_NET**   2\
 \#define **LIBNET\_LS\_TYPE\_IP**   3\
 \#define **LIBNET\_LS\_TYPE\_ASBR**   4\
 \#define **LIBNET\_LS\_TYPE\_ASEXT**   5\
 \#define **LIBNET\_RTR\_FLAGS\_W**   0x0100\
 \#define **LIBNET\_RTR\_FLAGS\_E**   0x0200\
 \#define **LIBNET\_RTR\_FLAGS\_B**   0x0400\
 \#define **LIBNET\_LINK\_ID\_NBR\_ID**   1\
 \#define **LIBNET\_LINK\_ID\_IP\_DES**   2\
 \#define **LIBNET\_LINK\_ID\_SUB**   3\
 \#define **LIBNET\_RTR\_TYPE\_PTP**   1\
 \#define **LIBNET\_RTR\_TYPE\_TRANS**   2\
 \#define **LIBNET\_RTR\_TYPE\_STUB**   3\
 \#define **RTR\_TYPE\_VRTL**   4\
 \#define **LIBNET\_AS\_E\_BIT\_ON**   0x80000000\
 \#define **RIPCMD\_REQUEST**   1\
 \#define **RIPCMD\_RESPONSE**   2\
 \#define **RIPCMD\_TRACEON**   3\
 \#define **RIPCMD\_TRACEOFF**   4\
 \#define **RIPCMD\_POLL**   5\
 \#define **RIPCMD\_POLLENTRY**   6\
 \#define **RIPCMD\_MAX**   7\
 \#define **RIPVER\_0**   0\
 \#define **RIPVER\_1**   1\
 \#define **RIPVER\_2**   2\
 \#define **LIBNET\_RPC\_CALL**   0\
 \#define **LIBNET\_RPC\_REPLY**   1\
 \#define **LIBNET\_RPC\_VERS**   2\
 \#define **LIBNET\_RPC\_LAST\_FRAG**   0x80000000\
 \#define **LIBNET\_PMAP\_PROGRAM**   100000\
 \#define **LIBNET\_PMAP\_PROC\_NULL**   0\
 \#define **LIBNET\_PMAP\_PROC\_SET**   1\
 \#define **LIBNET\_PMAP\_PROC\_UNSET**   2\
 \#define **LIBNET\_PMAP\_PROC\_GETADDR**   3\
 \#define **LIBNET\_PMAP\_PROC\_DUMP**   4\
 \#define **LIBNET\_PMAP\_PROC\_CALLIT**   5\
 \#define **LIBNET\_PMAP\_PROC\_BCAST**   5\
 \#define **LIBNET\_PMAP\_PROC\_GETTIME**   6\
 \#define **LIBNET\_PMAP\_PROC\_UADDR2TADDR**   7\
 \#define **LIBNET\_PMAP\_PROC\_TADDR2UADDR**   8\
 \#define **LIBNET\_PMAP\_PROC\_GETVERSADDR**   9\
 \#define **LIBNET\_PMAP\_PROC\_INDIRECT**   10\
 \#define **LIBNET\_PMAP\_PROC\_GETADDRLIST**   11\
 \#define **LIBNET\_PMAP\_PROC\_GETSTAT**   12\
 \#define **TH\_FIN**   0x01\
 \#define **TH\_SYN**   0x02\
 \#define **TH\_RST**   0x04\
 \#define **TH\_PUSH**   0x08\
 \#define **TH\_ACK**   0x10\
 \#define **TH\_URG**   0x20\
 \#define **TH\_ECE**   0x40\
 \#define **TH\_CWR**   0x80\
 \#define **LIBNET\_TOKEN\_RING\_FRAME**   0x10\
 \#define **LIBNET\_TOKEN\_RING\_LLC\_FRAME**   0x40\
 \#define **TOKEN\_RING\_TYPE\_IP**   0x0800\
 \#define **TOKEN\_RING\_TYPE\_ARP**   0x0806\
 \#define **TOKEN\_RING\_TYPE\_REVARP**   0x8035\
 \#define **SEBEK\_PROTO\_VERSION**   1\
 \#define **SEBEK\_TYPE\_READ**   0\
 \#define **SEBEK\_TYPE\_WRITE**   1\
 \#define **SEBEK\_CMD\_LENGTH**   12\
 \#define **IPPROTO\_VRRP**   112\
 \#define **LIBNET\_VRRP\_VERSION\_01**   0x1\
 \#define **LIBNET\_VRRP\_VERSION\_02**   0x2\
 \#define **LIBNET\_VRRP\_TYPE\_ADVERT**   0x1\
 \#define **LIBNET\_VRRP\_AUTH\_NONE**   0x1\
 \#define **LIBNET\_VRRP\_AUTH\_PASSWD**   0x2\
 \#define **LIBNET\_VRRP\_AUTH\_IPAH**   0x3\

## Detailed Description

libnet header information

## Define Documentation

### #define LIBNET\_802\_1Q\_CFIMASK 0x0001

CFI mask

### #define LIBNET\_802\_1Q\_H 0x12

802\.1Q header: 18 bytes

### #define LIBNET\_802\_1Q\_PRIMASK 0x0007

priority mask

### #define LIBNET\_802\_1Q\_VIDMASK 0x0fff

vid mask

### #define LIBNET\_802\_1X\_ENCASFAL 0x04

802\.1x encasfal

### #define LIBNET\_802\_1X\_H 0x04

802\.1X header: 4 bytes

### #define LIBNET\_802\_1X\_KEY 0x03

802\.1x key

### #define LIBNET\_802\_1X\_LOGOFF 0x02

802\.1x logoff

### #define LIBNET\_802\_1X\_PACKET 0x00

802\.1x packet

### #define LIBNET\_802\_1X\_START 0x01

802\.1x start

### #define LIBNET\_802\_2\_H 0x03

802\.2 LLC header: 3 bytes

### #define LIBNET\_802\_2SNAP\_H 0x08

802\.2 LLC/SNAP header:8 bytes

### #define LIBNET\_802\_3\_H 0x0e

802\.3 header: 14 bytes

### #define LIBNET\_ARP\_ETH\_IP\_H 0x1c

ARP w/ ETH and IP: 28 bytes

### #define LIBNET\_ARP\_H 0x08

ARP header w/o addrs: 8 bytes

### #define LIBNET\_BGP4\_HEADER\_H 0x13

BGP header: 19 bytes

### #define LIBNET\_BGP4\_NOTIFICATION\_H 0x02

BGP notif. header: 2 bytes

### #define LIBNET\_BGP4\_OPEN\_H 0x0a

BGP open header: 10 bytes

### #define LIBNET\_BGP4\_UPDATE\_H 0x04

BGP open header: 4 bytes

### #define LIBNET\_CDP\_H 0x08

CDP header base: 8 bytes

### #define LIBNET\_DHCPV4\_H 0xf0

DHCP v4 header: 240 bytes

### #define LIBNET\_ETH\_H 0x0e

Ethernet header: 14 bytes

### #define LIBNET\_FDDI\_H 0x15

FDDI header: 21 bytes

### #define LIBNET\_GRE\_H 0x04

GRE header: 4 bytes

### #define LIBNET\_GRE\_SRE\_H 0x04

GRE SRE header: 4 bytes

### #define LIBNET\_ICMPV4\_ECHO\_H 0x08

ICMP\_ECHO header: 8 bytes

### #define LIBNET\_ICMPV4\_H 0x04

ICMP header base: 4 bytes

### #define LIBNET\_ICMPV4\_MASK\_H 0x0c

ICMP\_MASK header: 12 bytes

### #define LIBNET\_ICMPV4\_REDIRECT\_H 0x08

ICMP\_REDIRECT header: 8 bytes

### #define LIBNET\_ICMPV4\_TIMXCEED\_H 0x08

ICMP\_TIMXCEED header: 8 bytes

### #define LIBNET\_ICMPV4\_TS\_H 0x14

ICMP\_TIMESTAMP headr:20 bytes

### #define LIBNET\_ICMPV4\_UNREACH\_H 0x08

ICMP\_UNREACH header: 8 bytes

### #define LIBNET\_ICMPV6\_H 0x08

ICMP6 header base: 8 bytes

### #define LIBNET\_IGMP\_H 0x08

IGMP header: 8 bytes

### #define LIBNET\_IPSEC\_AH\_H 0x10

IPSEC AH header: 16 bytes

### #define LIBNET\_IPSEC\_ESP\_FTR\_H 0x02

IPSEC ESP footer: 2 bytes

### #define LIBNET\_IPSEC\_ESP\_HDR\_H 0x0c

IPSEC ESP header: 12 bytes

### #define LIBNET\_IPV4\_H 0x14

IPv4 header: 20 bytes

### #define LIBNET\_IPV6\_DESTOPTS\_H 0x02

IPv6 dest opts base: 2 bytes

### #define LIBNET\_IPV6\_FRAG\_H 0x08

IPv6 frag header: 8 bytes

### #define LIBNET\_IPV6\_H 0x28

IPv6 header: 40 bytes

### #define LIBNET\_IPV6\_HBHOPTS\_H 0x02

IPv6 hop/hop opt base:2 bytes

### #define LIBNET\_IPV6\_ROUTING\_H 0x04

IPv6 frag header base:4 bytes

### #define LIBNET\_ISL\_H 0x1a

ISL header: 26 bytes

### #define LIBNET\_MPLS\_H 0x04

MPLS header: 4 bytes

### #define LIBNET\_NTP\_H 0x30

NTP header: 48 bytes

### #define LIBNET\_OSPF\_AUTH\_H 0x08

OSPF AUTH header: 8 bytes

### #define LIBNET\_OSPF\_CKSUM 0x10

OSPF CKSUM header: 16 bytes

### #define LIBNET\_OSPF\_DBD\_H 0x08

OSPF DBD header: 8 bytes

### #define LIBNET\_OSPF\_H 0x10

OSPF header: 16 bytes

### #define LIBNET\_OSPF\_HELLO\_H 0x18

OSPF hello header: 24 bytes

### #define LIBNET\_OSPF\_LS\_AS\_EXT\_H 0x10

OSPF LS AS header: 16 bytes

### #define LIBNET\_OSPF\_LS\_NET\_H 0x08

OSPF LS NET header: 8 bytes

### #define LIBNET\_OSPF\_LS\_RTR\_H 0x10

OSPF LS RTR header: 16 bytes

### #define LIBNET\_OSPF\_LS\_SUM\_H 0x0c

OSPF LS SUM header: 12 bytes

### #define LIBNET\_OSPF\_LSA\_H 0x14

OSPF LSA header: 20 bytes

### #define LIBNET\_OSPF\_LSR\_H 0x0c

OSPF LSR header: 12 bytes

### #define LIBNET\_OSPF\_LSU\_H 0x04

OSPF LSU header: 4 bytes

### #define LIBNET\_RIP\_H 0x18

RIP header base: 24 bytes

### #define LIBNET\_RPC\_CALL\_H 0x28

RPC header: 40 bytes (assuming 8 byte auth header)

### #define LIBNET\_RPC\_CALL\_TCP\_H 0x2c

RPC header: 44 bytes (with record marking)

### #define LIBNET\_STP\_CONF\_H 0x23

STP conf header: 35 bytes

### #define LIBNET\_STP\_TCN\_H 0x04

STP tcn header: 4 bytes

### #define LIBNET\_TCP\_DNSV4\_H 0x0e

TCP DNS v4 header: 14 bytes

### #define LIBNET\_TCP\_H 0x14

TCP header: 20 bytes

### #define LIBNET\_TOKEN\_RING\_H 0x16

Token Ring header: 22 bytes

### #define LIBNET\_UDP\_DNSV4\_H 0x0c

UDP DNS v4 header: 12 bytes

### #define LIBNET\_UDP\_H 0x08

UDP header: 8 bytes

### #define LIBNET\_VRRP\_H 0x08

VRRP header: 8 bytes

## Author

Generated automatically by Doxygen for libnet from the source code.
