123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- #ifndef _NETINET_IN_H
- # error "Never use <bits/in.h> directly; include <netinet/in.h> instead."
- #endif
- #define IP_OPTIONS 4
- #define IP_HDRINCL 3
- #define IP_TOS 1
- #define IP_TTL 2
- #define IP_RECVOPTS 6
- #define IP_RECVRETOPTS IP_RETOPTS
- #define IP_RETOPTS 7
- #define IP_MULTICAST_IF 32
- #define IP_MULTICAST_TTL 33
- #define IP_MULTICAST_LOOP 34
- #define IP_ADD_MEMBERSHIP 35
- #define IP_DROP_MEMBERSHIP 36
- #define IP_UNBLOCK_SOURCE 37
- #define IP_BLOCK_SOURCE 38
- #define IP_ADD_SOURCE_MEMBERSHIP 39
- #define IP_DROP_SOURCE_MEMBERSHIP 40
- #define IP_MSFILTER 41
- #define MCAST_JOIN_GROUP 42
- #define MCAST_BLOCK_SOURCE 43
- #define MCAST_UNBLOCK_SOURCE 44
- #define MCAST_LEAVE_GROUP 45
- #define MCAST_JOIN_SOURCE_GROUP 46
- #define MCAST_LEAVE_SOURCE_GROUP 47
- #define MCAST_MSFILTER 48
- #define MCAST_EXCLUDE 0
- #define MCAST_INCLUDE 1
- #define IP_ROUTER_ALERT 5
- #define IP_PKTINFO 8
- #define IP_PKTOPTIONS 9
- #define IP_PMTUDISC 10
- #define IP_MTU_DISCOVER 10
- #define IP_RECVERR 11
- #define IP_RECVTTL 12
- #define IP_RECVTOS 13
- #define IP_PMTUDISC_DONT 0
- #define IP_PMTUDISC_WANT 1
- #define IP_PMTUDISC_DO 2
- #define SOL_IP 0
- #define IP_DEFAULT_MULTICAST_TTL 1
- #define IP_DEFAULT_MULTICAST_LOOP 1
- #define IP_MAX_MEMBERSHIPS 20
- struct ip_opts
- {
- struct in_addr ip_dst;
- char ip_opts[40];
- };
- struct ip_mreqn
- {
- struct in_addr imr_multiaddr;
- struct in_addr imr_address;
- int imr_ifindex;
- };
- struct in_pktinfo
- {
- int ipi_ifindex;
- struct in_addr ipi_spec_dst;
- struct in_addr ipi_addr;
- };
- #ifdef __UCLIBC_HAS_IPV6__
- #define IPV6_ADDRFORM 1
- #define IPV6_2292PKTINFO 2
- #define IPV6_2292HOPOPTS 3
- #define IPV6_2292DSTOPTS 4
- #define IPV6_2292RTHDR 5
- #define IPV6_2292PKTOPTIONS 6
- #define IPV6_CHECKSUM 7
- #define IPV6_2292HOPLIMIT 8
- #define SCM_SRCRT IPV6_RXSRCRT
- #define IPV6_NEXTHOP 9
- #define IPV6_AUTHHDR 10
- #define IPV6_UNICAST_HOPS 16
- #define IPV6_MULTICAST_IF 17
- #define IPV6_MULTICAST_HOPS 18
- #define IPV6_MULTICAST_LOOP 19
- #define IPV6_JOIN_GROUP 20
- #define IPV6_LEAVE_GROUP 21
- #define IPV6_ROUTER_ALERT 22
- #define IPV6_MTU_DISCOVER 23
- #define IPV6_MTU 24
- #define IPV6_RECVERR 25
- #define IPV6_V6ONLY 26
- #define IPV6_JOIN_ANYCAST 27
- #define IPV6_LEAVE_ANYCAST 28
- #define IPV6_IPSEC_POLICY 34
- #define IPV6_XFRM_POLICY 35
- #define IPV6_RECVPKTINFO 49
- #define IPV6_PKTINFO 50
- #define IPV6_RECVHOPLIMIT 51
- #define IPV6_HOPLIMIT 52
- #define IPV6_RECVHOPOPTS 53
- #define IPV6_HOPOPTS 54
- #define IPV6_RTHDRDSTOPTS 55
- #define IPV6_RECVRTHDR 56
- #define IPV6_RTHDR 57
- #define IPV6_RECVDSTOPTS 58
- #define IPV6_DSTOPTS 59
- #define IPV6_RECVTCLASS 66
- #define IPV6_TCLASS 67
- #define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
- #define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
- #define IPV6_RXHOPOPTS IPV6_HOPOPTS
- #define IPV6_RXDSTOPTS IPV6_DSTOPTS
- #define IPV6_PMTUDISC_DONT 0
- #define IPV6_PMTUDISC_WANT 1
- #define IPV6_PMTUDISC_DO 2
- #define SOL_IPV6 41
- #define SOL_ICMPV6 58
- #define IPV6_RTHDR_LOOSE 0
- #define IPV6_RTHDR_STRICT 1
- #define IPV6_RTHDR_TYPE_0 0
- #endif
|