Deleted Added
full compact
in.h (133486) in.h (133874)
1/*
2 * Copyright (c) 1982, 1986, 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)in.h 8.3 (Berkeley) 1/3/94
1/*
2 * Copyright (c) 1982, 1986, 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 13 unchanged lines hidden (view full) ---

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)in.h 8.3 (Berkeley) 1/3/94
30 * $FreeBSD: head/sys/netinet/in.h 133486 2004-08-11 11:49:48Z andre $
30 * $FreeBSD: head/sys/netinet/in.h 133874 2004-08-16 18:32:07Z rwatson $
31 */
32
33#ifndef _NETINET_IN_H_
34#define _NETINET_IN_H_
35
36#include <sys/cdefs.h>
37#include <sys/_types.h>
38#include <machine/endian.h>

--- 88 unchanged lines hidden (view full) ---

127 */
128
129/*
130 * Protocols (RFC 1700)
131 */
132#define IPPROTO_HOPOPTS 0 /* IP6 hop-by-hop options */
133#define IPPROTO_IGMP 2 /* group mgmt protocol */
134#define IPPROTO_GGP 3 /* gateway^2 (deprecated) */
31 */
32
33#ifndef _NETINET_IN_H_
34#define _NETINET_IN_H_
35
36#include <sys/cdefs.h>
37#include <sys/_types.h>
38#include <machine/endian.h>

--- 88 unchanged lines hidden (view full) ---

127 */
128
129/*
130 * Protocols (RFC 1700)
131 */
132#define IPPROTO_HOPOPTS 0 /* IP6 hop-by-hop options */
133#define IPPROTO_IGMP 2 /* group mgmt protocol */
134#define IPPROTO_GGP 3 /* gateway^2 (deprecated) */
135#define IPPROTO_IPV4 4 /* IPv4 encapsulation */
136#define IPPROTO_IPIP IPPROTO_IPV4 /* for compatibility */
135#define IPPROTO_IPV4 4 /* IPv4 encapsulation */
136#define IPPROTO_IPIP IPPROTO_IPV4 /* for compatibility */
137#define IPPROTO_ST 7 /* Stream protocol II */
138#define IPPROTO_EGP 8 /* exterior gateway protocol */
139#define IPPROTO_PIGP 9 /* private interior gateway */
140#define IPPROTO_RCCMON 10 /* BBN RCC Monitoring */
141#define IPPROTO_NVPII 11 /* network voice protocol*/
142#define IPPROTO_PUP 12 /* pup */
143#define IPPROTO_ARGUS 13 /* Argus */
144#define IPPROTO_EMCON 14 /* EMCON */

--- 5 unchanged lines hidden (view full) ---

150#define IPPROTO_PRM 21 /* Packet Radio Measurement */
151#define IPPROTO_IDP 22 /* xns idp */
152#define IPPROTO_TRUNK1 23 /* Trunk-1 */
153#define IPPROTO_TRUNK2 24 /* Trunk-2 */
154#define IPPROTO_LEAF1 25 /* Leaf-1 */
155#define IPPROTO_LEAF2 26 /* Leaf-2 */
156#define IPPROTO_RDP 27 /* Reliable Data */
157#define IPPROTO_IRTP 28 /* Reliable Transaction */
137#define IPPROTO_ST 7 /* Stream protocol II */
138#define IPPROTO_EGP 8 /* exterior gateway protocol */
139#define IPPROTO_PIGP 9 /* private interior gateway */
140#define IPPROTO_RCCMON 10 /* BBN RCC Monitoring */
141#define IPPROTO_NVPII 11 /* network voice protocol*/
142#define IPPROTO_PUP 12 /* pup */
143#define IPPROTO_ARGUS 13 /* Argus */
144#define IPPROTO_EMCON 14 /* EMCON */

--- 5 unchanged lines hidden (view full) ---

150#define IPPROTO_PRM 21 /* Packet Radio Measurement */
151#define IPPROTO_IDP 22 /* xns idp */
152#define IPPROTO_TRUNK1 23 /* Trunk-1 */
153#define IPPROTO_TRUNK2 24 /* Trunk-2 */
154#define IPPROTO_LEAF1 25 /* Leaf-1 */
155#define IPPROTO_LEAF2 26 /* Leaf-2 */
156#define IPPROTO_RDP 27 /* Reliable Data */
157#define IPPROTO_IRTP 28 /* Reliable Transaction */
158#define IPPROTO_TP 29 /* tp-4 w/ class negotiation */
158#define IPPROTO_TP 29 /* tp-4 w/ class negotiation */
159#define IPPROTO_BLT 30 /* Bulk Data Transfer */
160#define IPPROTO_NSP 31 /* Network Services */
161#define IPPROTO_INP 32 /* Merit Internodal */
162#define IPPROTO_SEP 33 /* Sequential Exchange */
163#define IPPROTO_3PC 34 /* Third Party Connect */
164#define IPPROTO_IDPR 35 /* InterDomain Policy Routing */
165#define IPPROTO_XTP 36 /* XTP */
166#define IPPROTO_DDP 37 /* Datagram Delivery */
167#define IPPROTO_CMTP 38 /* Control Message Transport */
168#define IPPROTO_TPXX 39 /* TP++ Transport */
169#define IPPROTO_IL 40 /* IL transport protocol */
170#define IPPROTO_IPV6 41 /* IP6 header */
171#define IPPROTO_SDRP 42 /* Source Demand Routing */
172#define IPPROTO_ROUTING 43 /* IP6 routing header */
173#define IPPROTO_FRAGMENT 44 /* IP6 fragmentation header */
174#define IPPROTO_IDRP 45 /* InterDomain Routing*/
159#define IPPROTO_BLT 30 /* Bulk Data Transfer */
160#define IPPROTO_NSP 31 /* Network Services */
161#define IPPROTO_INP 32 /* Merit Internodal */
162#define IPPROTO_SEP 33 /* Sequential Exchange */
163#define IPPROTO_3PC 34 /* Third Party Connect */
164#define IPPROTO_IDPR 35 /* InterDomain Policy Routing */
165#define IPPROTO_XTP 36 /* XTP */
166#define IPPROTO_DDP 37 /* Datagram Delivery */
167#define IPPROTO_CMTP 38 /* Control Message Transport */
168#define IPPROTO_TPXX 39 /* TP++ Transport */
169#define IPPROTO_IL 40 /* IL transport protocol */
170#define IPPROTO_IPV6 41 /* IP6 header */
171#define IPPROTO_SDRP 42 /* Source Demand Routing */
172#define IPPROTO_ROUTING 43 /* IP6 routing header */
173#define IPPROTO_FRAGMENT 44 /* IP6 fragmentation header */
174#define IPPROTO_IDRP 45 /* InterDomain Routing*/
175#define IPPROTO_RSVP 46 /* resource reservation */
175#define IPPROTO_RSVP 46 /* resource reservation */
176#define IPPROTO_GRE 47 /* General Routing Encap. */
177#define IPPROTO_MHRP 48 /* Mobile Host Routing */
178#define IPPROTO_BHA 49 /* BHA */
179#define IPPROTO_ESP 50 /* IP6 Encap Sec. Payload */
180#define IPPROTO_AH 51 /* IP6 Auth Header */
181#define IPPROTO_INLSP 52 /* Integ. Net Layer Security */
182#define IPPROTO_SWIPE 53 /* IP with encryption */
183#define IPPROTO_NHRP 54 /* Next Hop Resolution */
176#define IPPROTO_GRE 47 /* General Routing Encap. */
177#define IPPROTO_MHRP 48 /* Mobile Host Routing */
178#define IPPROTO_BHA 49 /* BHA */
179#define IPPROTO_ESP 50 /* IP6 Encap Sec. Payload */
180#define IPPROTO_AH 51 /* IP6 Auth Header */
181#define IPPROTO_INLSP 52 /* Integ. Net Layer Security */
182#define IPPROTO_SWIPE 53 /* IP with encryption */
183#define IPPROTO_NHRP 54 /* Next Hop Resolution */
184#define IPPROTO_MOBILE 55 /* IP Mobility */
185#define IPPROTO_TLSP 56 /* Transport Layer Security */
186#define IPPROTO_SKIP 57 /* SKIP */
184#define IPPROTO_MOBILE 55 /* IP Mobility */
185#define IPPROTO_TLSP 56 /* Transport Layer Security */
186#define IPPROTO_SKIP 57 /* SKIP */
187#define IPPROTO_ICMPV6 58 /* ICMP6 */
188#define IPPROTO_NONE 59 /* IP6 no next header */
189#define IPPROTO_DSTOPTS 60 /* IP6 destination option */
190#define IPPROTO_AHIP 61 /* any host internal protocol */
191#define IPPROTO_CFTP 62 /* CFTP */
192#define IPPROTO_HELLO 63 /* "hello" routing protocol */
193#define IPPROTO_SATEXPAK 64 /* SATNET/Backroom EXPAK */
194#define IPPROTO_KRYPTOLAN 65 /* Kryptolan */

--- 108 unchanged lines hidden (view full) ---

303#define IPPORT_HILASTAUTO 65535
304
305/*
306 * Scanning for a free reserved port return a value below IPPORT_RESERVED,
307 * but higher than IPPORT_RESERVEDSTART. Traditionally the start value was
308 * 512, but that conflicts with some well-known-services that firewalls may
309 * have a fit if we use.
310 */
187#define IPPROTO_ICMPV6 58 /* ICMP6 */
188#define IPPROTO_NONE 59 /* IP6 no next header */
189#define IPPROTO_DSTOPTS 60 /* IP6 destination option */
190#define IPPROTO_AHIP 61 /* any host internal protocol */
191#define IPPROTO_CFTP 62 /* CFTP */
192#define IPPROTO_HELLO 63 /* "hello" routing protocol */
193#define IPPROTO_SATEXPAK 64 /* SATNET/Backroom EXPAK */
194#define IPPROTO_KRYPTOLAN 65 /* Kryptolan */

--- 108 unchanged lines hidden (view full) ---

303#define IPPORT_HILASTAUTO 65535
304
305/*
306 * Scanning for a free reserved port return a value below IPPORT_RESERVED,
307 * but higher than IPPORT_RESERVEDSTART. Traditionally the start value was
308 * 512, but that conflicts with some well-known-services that firewalls may
309 * have a fit if we use.
310 */
311#define IPPORT_RESERVEDSTART 600
311#define IPPORT_RESERVEDSTART 600
312
313#define IPPORT_MAX 65535
314
315/*
316 * Definitions of bits in internet address integers.
317 * On subnets, the decomposition of addresses to host and net parts
318 * is done according to subnet mask, not the masks here.
319 */

--- 50 unchanged lines hidden (view full) ---

370#define IP_RECVDSTADDR 7 /* bool; receive IP dst addr w/dgram */
371#define IP_SENDSRCADDR IP_RECVDSTADDR /* cmsg_type to set src addr */
372#define IP_RETOPTS 8 /* ip_opts; set/get IP options */
373#define IP_MULTICAST_IF 9 /* u_char; set/get IP multicast i/f */
374#define IP_MULTICAST_TTL 10 /* u_char; set/get IP multicast ttl */
375#define IP_MULTICAST_LOOP 11 /* u_char; set/get IP multicast loopback */
376#define IP_ADD_MEMBERSHIP 12 /* ip_mreq; add an IP group membership */
377#define IP_DROP_MEMBERSHIP 13 /* ip_mreq; drop an IP group membership */
312
313#define IPPORT_MAX 65535
314
315/*
316 * Definitions of bits in internet address integers.
317 * On subnets, the decomposition of addresses to host and net parts
318 * is done according to subnet mask, not the masks here.
319 */

--- 50 unchanged lines hidden (view full) ---

370#define IP_RECVDSTADDR 7 /* bool; receive IP dst addr w/dgram */
371#define IP_SENDSRCADDR IP_RECVDSTADDR /* cmsg_type to set src addr */
372#define IP_RETOPTS 8 /* ip_opts; set/get IP options */
373#define IP_MULTICAST_IF 9 /* u_char; set/get IP multicast i/f */
374#define IP_MULTICAST_TTL 10 /* u_char; set/get IP multicast ttl */
375#define IP_MULTICAST_LOOP 11 /* u_char; set/get IP multicast loopback */
376#define IP_ADD_MEMBERSHIP 12 /* ip_mreq; add an IP group membership */
377#define IP_DROP_MEMBERSHIP 13 /* ip_mreq; drop an IP group membership */
378#define IP_MULTICAST_VIF 14 /* set/get IP mcast virt. iface */
379#define IP_RSVP_ON 15 /* enable RSVP in kernel */
380#define IP_RSVP_OFF 16 /* disable RSVP in kernel */
381#define IP_RSVP_VIF_ON 17 /* set RSVP per-vif socket */
382#define IP_RSVP_VIF_OFF 18 /* unset RSVP per-vif socket */
383#define IP_PORTRANGE 19 /* int; range to choose for unspec port */
378#define IP_MULTICAST_VIF 14 /* set/get IP mcast virt. iface */
379#define IP_RSVP_ON 15 /* enable RSVP in kernel */
380#define IP_RSVP_OFF 16 /* disable RSVP in kernel */
381#define IP_RSVP_VIF_ON 17 /* set RSVP per-vif socket */
382#define IP_RSVP_VIF_OFF 18 /* unset RSVP per-vif socket */
383#define IP_PORTRANGE 19 /* int; range to choose for unspec port */
384#define IP_RECVIF 20 /* bool; receive reception if w/dgram */
385/* for IPSEC */
386#define IP_IPSEC_POLICY 21 /* int; set/get security policy */
387#define IP_FAITH 22 /* bool; accept FAITH'ed connections */
388
389#define IP_ONESBCAST 23 /* bool: send all-ones broadcast */
390
391#define IP_FW_TABLE_ADD 40 /* add entry */
392#define IP_FW_TABLE_DEL 41 /* delete entry */
393#define IP_FW_TABLE_FLUSH 42 /* flush table */
394#define IP_FW_TABLE_GETSIZE 43 /* get table size */
395#define IP_FW_TABLE_LIST 44 /* list table contents */
396
384#define IP_RECVIF 20 /* bool; receive reception if w/dgram */
385/* for IPSEC */
386#define IP_IPSEC_POLICY 21 /* int; set/get security policy */
387#define IP_FAITH 22 /* bool; accept FAITH'ed connections */
388
389#define IP_ONESBCAST 23 /* bool: send all-ones broadcast */
390
391#define IP_FW_TABLE_ADD 40 /* add entry */
392#define IP_FW_TABLE_DEL 41 /* delete entry */
393#define IP_FW_TABLE_FLUSH 42 /* flush table */
394#define IP_FW_TABLE_GETSIZE 43 /* get table size */
395#define IP_FW_TABLE_LIST 44 /* list table contents */
396
397#define IP_FW_ADD 50 /* add a firewall rule to chain */
398#define IP_FW_DEL 51 /* delete a firewall rule from chain */
399#define IP_FW_FLUSH 52 /* flush firewall rule chain */
400#define IP_FW_ZERO 53 /* clear single/all firewall counter(s) */
401#define IP_FW_GET 54 /* get entire firewall rule chain */
397#define IP_FW_ADD 50 /* add a firewall rule to chain */
398#define IP_FW_DEL 51 /* delete a firewall rule from chain */
399#define IP_FW_FLUSH 52 /* flush firewall rule chain */
400#define IP_FW_ZERO 53 /* clear single/all firewall counter(s) */
401#define IP_FW_GET 54 /* get entire firewall rule chain */
402#define IP_FW_RESETLOG 55 /* reset logging counters */
403
404#define IP_DUMMYNET_CONFIGURE 60 /* add/configure a dummynet pipe */
405#define IP_DUMMYNET_DEL 61 /* delete a dummynet pipe from chain */
406#define IP_DUMMYNET_FLUSH 62 /* flush dummynet */
407#define IP_DUMMYNET_GET 64 /* get entire dummynet pipes */
408
409#define IP_RECVTTL 65 /* bool; receive IP TTL w/dgram */

--- 104 unchanged lines hidden (view full) ---

514 * Names for IP sysctl objects
515 */
516#define IPCTL_FORWARDING 1 /* act as router */
517#define IPCTL_SENDREDIRECTS 2 /* may send redirects when forwarding */
518#define IPCTL_DEFTTL 3 /* default TTL */
519#ifdef notyet
520#define IPCTL_DEFMTU 4 /* default MTU */
521#endif
402#define IP_FW_RESETLOG 55 /* reset logging counters */
403
404#define IP_DUMMYNET_CONFIGURE 60 /* add/configure a dummynet pipe */
405#define IP_DUMMYNET_DEL 61 /* delete a dummynet pipe from chain */
406#define IP_DUMMYNET_FLUSH 62 /* flush dummynet */
407#define IP_DUMMYNET_GET 64 /* get entire dummynet pipes */
408
409#define IP_RECVTTL 65 /* bool; receive IP TTL w/dgram */

--- 104 unchanged lines hidden (view full) ---

514 * Names for IP sysctl objects
515 */
516#define IPCTL_FORWARDING 1 /* act as router */
517#define IPCTL_SENDREDIRECTS 2 /* may send redirects when forwarding */
518#define IPCTL_DEFTTL 3 /* default TTL */
519#ifdef notyet
520#define IPCTL_DEFMTU 4 /* default MTU */
521#endif
522#define IPCTL_RTEXPIRE 5 /* cloned route expiration time */
523#define IPCTL_RTMINEXPIRE 6 /* min value for expiration time */
524#define IPCTL_RTMAXCACHE 7 /* trigger level for dynamic expire */
522#define IPCTL_RTEXPIRE 5 /* cloned route expiration time */
523#define IPCTL_RTMINEXPIRE 6 /* min value for expiration time */
524#define IPCTL_RTMAXCACHE 7 /* trigger level for dynamic expire */
525#define IPCTL_SOURCEROUTE 8 /* may perform source routes */
526#define IPCTL_DIRECTEDBROADCAST 9 /* may re-broadcast received packets */
525#define IPCTL_SOURCEROUTE 8 /* may perform source routes */
526#define IPCTL_DIRECTEDBROADCAST 9 /* may re-broadcast received packets */
527#define IPCTL_INTRQMAXLEN 10 /* max length of netisr queue */
527#define IPCTL_INTRQMAXLEN 10 /* max length of netisr queue */
528#define IPCTL_INTRQDROPS 11 /* number of netisr q drops */
529#define IPCTL_STATS 12 /* ipstat structure */
530#define IPCTL_ACCEPTSOURCEROUTE 13 /* may accept source routed packets */
531#define IPCTL_FASTFORWARDING 14 /* use fast IP forwarding code */
532#define IPCTL_KEEPFAITH 15 /* FAITH IPv4->IPv6 translater ctl */
533#define IPCTL_GIF_TTL 16 /* default TTL for gif encap packet */
534#define IPCTL_MAXID 17
535
536#define IPCTL_NAMES { \
537 { 0, 0 }, \
538 { "forwarding", CTLTYPE_INT }, \
539 { "redirect", CTLTYPE_INT }, \
540 { "ttl", CTLTYPE_INT }, \
541 { "mtu", CTLTYPE_INT }, \
542 { "rtexpire", CTLTYPE_INT }, \
543 { "rtminexpire", CTLTYPE_INT }, \
544 { "rtmaxcache", CTLTYPE_INT }, \
545 { "sourceroute", CTLTYPE_INT }, \
528#define IPCTL_INTRQDROPS 11 /* number of netisr q drops */
529#define IPCTL_STATS 12 /* ipstat structure */
530#define IPCTL_ACCEPTSOURCEROUTE 13 /* may accept source routed packets */
531#define IPCTL_FASTFORWARDING 14 /* use fast IP forwarding code */
532#define IPCTL_KEEPFAITH 15 /* FAITH IPv4->IPv6 translater ctl */
533#define IPCTL_GIF_TTL 16 /* default TTL for gif encap packet */
534#define IPCTL_MAXID 17
535
536#define IPCTL_NAMES { \
537 { 0, 0 }, \
538 { "forwarding", CTLTYPE_INT }, \
539 { "redirect", CTLTYPE_INT }, \
540 { "ttl", CTLTYPE_INT }, \
541 { "mtu", CTLTYPE_INT }, \
542 { "rtexpire", CTLTYPE_INT }, \
543 { "rtminexpire", CTLTYPE_INT }, \
544 { "rtmaxcache", CTLTYPE_INT }, \
545 { "sourceroute", CTLTYPE_INT }, \
546 { "directed-broadcast", CTLTYPE_INT }, \
546 { "directed-broadcast", CTLTYPE_INT }, \
547 { "intr-queue-maxlen", CTLTYPE_INT }, \
548 { "intr-queue-drops", CTLTYPE_INT }, \
549 { "stats", CTLTYPE_STRUCT }, \
550 { "accept_sourceroute", CTLTYPE_INT }, \
551 { "fastforwarding", CTLTYPE_INT }, \
552}
553
554#endif /* __BSD_VISIBLE */
555
556#ifdef _KERNEL
557
558struct ifnet; struct mbuf; /* forward declarations for Standard C */
559
560int in_broadcast(struct in_addr, struct ifnet *);
561int in_canforward(struct in_addr);
562int in_localaddr(struct in_addr);
563int in_localip(struct in_addr);
547 { "intr-queue-maxlen", CTLTYPE_INT }, \
548 { "intr-queue-drops", CTLTYPE_INT }, \
549 { "stats", CTLTYPE_STRUCT }, \
550 { "accept_sourceroute", CTLTYPE_INT }, \
551 { "fastforwarding", CTLTYPE_INT }, \
552}
553
554#endif /* __BSD_VISIBLE */
555
556#ifdef _KERNEL
557
558struct ifnet; struct mbuf; /* forward declarations for Standard C */
559
560int in_broadcast(struct in_addr, struct ifnet *);
561int in_canforward(struct in_addr);
562int in_localaddr(struct in_addr);
563int in_localip(struct in_addr);
564char *inet_ntoa(struct in_addr); /* in libkern */
564char *inet_ntoa(struct in_addr); /* in libkern */
565char *inet_ntoa_r(struct in_addr ina, char *buf); /* in libkern */
566
565char *inet_ntoa_r(struct in_addr ina, char *buf); /* in libkern */
566
567#define in_hosteq(s, t) ((s).s_addr == (t).s_addr)
568#define in_nullhost(x) ((x).s_addr == INADDR_ANY)
567#define in_hosteq(s, t) ((s).s_addr == (t).s_addr)
568#define in_nullhost(x) ((x).s_addr == INADDR_ANY)
569
569
570#define satosin(sa) ((struct sockaddr_in *)(sa))
571#define sintosa(sin) ((struct sockaddr *)(sin))
572#define ifatoia(ifa) ((struct in_ifaddr *)(ifa))
570#define satosin(sa) ((struct sockaddr_in *)(sa))
571#define sintosa(sin) ((struct sockaddr *)(sin))
572#define ifatoia(ifa) ((struct in_ifaddr *)(ifa))
573
574#endif /* _KERNEL */
575
576/* INET6 stuff */
577#if __POSIX_VISIBLE >= 200112
578#define __KAME_NETINET_IN_H_INCLUDED_
579#include <netinet6/in6.h>
580#undef __KAME_NETINET_IN_H_INCLUDED_
581#endif
582
583#endif /* !_NETINET_IN_H_*/
573
574#endif /* _KERNEL */
575
576/* INET6 stuff */
577#if __POSIX_VISIBLE >= 200112
578#define __KAME_NETINET_IN_H_INCLUDED_
579#include <netinet6/in6.h>
580#undef __KAME_NETINET_IN_H_INCLUDED_
581#endif
582
583#endif /* !_NETINET_IN_H_*/