diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/in6.h | 56 | ||||
-rw-r--r-- | include/linux/ipv6.h | 2 |
2 files changed, 37 insertions, 21 deletions
diff --git a/include/linux/in6.h b/include/linux/in6.h index bd32b79d6295..304aaedea305 100644 --- a/include/linux/in6.h +++ b/include/linux/in6.h | |||
@@ -198,27 +198,43 @@ struct in6_flowlabel_req | |||
198 | * MCAST_MSFILTER 48 | 198 | * MCAST_MSFILTER 48 |
199 | */ | 199 | */ |
200 | 200 | ||
201 | /* RFC3542 advanced socket options (50-67) */ | 201 | /* |
202 | #define IPV6_RECVPKTINFO 50 | 202 | * Advanced API (RFC3542) (1) |
203 | #define IPV6_PKTINFO 51 | 203 | * |
204 | #if 0 | 204 | * Note: IPV6_RECVRTHDRDSTOPTS does not exist. see net/ipv6/datagram.c. |
205 | #define IPV6_RECVPATHMTU 52 | 205 | */ |
206 | #define IPV6_PATHMTU 53 | 206 | |
207 | #define IPV6_DONTFRAG 54 | 207 | #define IPV6_RECVPKTINFO 49 |
208 | #define IPV6_USE_MIN_MTU 55 | 208 | #define IPV6_PKTINFO 50 |
209 | #endif | 209 | #define IPV6_RECVHOPLIMIT 51 |
210 | #define IPV6_RECVHOPOPTS 56 | 210 | #define IPV6_HOPLIMIT 52 |
211 | #define IPV6_HOPOPTS 57 | 211 | #define IPV6_RECVHOPOPTS 53 |
212 | #if 0 | 212 | #define IPV6_HOPOPTS 54 |
213 | #define IPV6_RECVRTHDRDSTOPTS 58 /* Unused, see net/ipv6/datagram.c */ | 213 | #define IPV6_RTHDRDSTOPTS 55 |
214 | #define IPV6_RECVRTHDR 56 | ||
215 | #define IPV6_RTHDR 57 | ||
216 | #define IPV6_RECVDSTOPTS 58 | ||
217 | #define IPV6_DSTOPTS 59 | ||
218 | #if 0 /* not yet */ | ||
219 | #define IPV6_RECVPATHMTU 60 | ||
220 | #define IPV6_PATHMTU 61 | ||
221 | #define IPV6_DONTFRAG 62 | ||
222 | #define IPV6_USE_MIN_MTU 63 | ||
214 | #endif | 223 | #endif |
215 | #define IPV6_RTHDRDSTOPTS 59 | 224 | |
216 | #define IPV6_RECVRTHDR 60 | 225 | /* |
217 | #define IPV6_RTHDR 61 | 226 | * Netfilter |
218 | #define IPV6_RECVDSTOPTS 62 | 227 | * |
219 | #define IPV6_DSTOPTS 63 | 228 | * Following socket options are used in ip6_tables; |
220 | #define IPV6_RECVHOPLIMIT 64 | 229 | * see include/linux/netfilter_ipv6/ip6_tables.h. |
221 | #define IPV6_HOPLIMIT 65 | 230 | * |
231 | * IP6T_SO_SET_REPLACE / IP6T_SO_GET_INFO 64 | ||
232 | * IP6T_SO_SET_ADD_COUNTERS / IP6T_SO_GET_ENTRIES 65 | ||
233 | */ | ||
234 | |||
235 | /* | ||
236 | * Advanced API (RFC3542) (2) | ||
237 | */ | ||
222 | #define IPV6_RECVTCLASS 66 | 238 | #define IPV6_RECVTCLASS 66 |
223 | #define IPV6_TCLASS 67 | 239 | #define IPV6_TCLASS 67 |
224 | 240 | ||
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index 6c5f7b39a4b0..bb6f88e14061 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h | |||
@@ -68,7 +68,7 @@ struct ipv6_opt_hdr { | |||
68 | 68 | ||
69 | struct rt0_hdr { | 69 | struct rt0_hdr { |
70 | struct ipv6_rt_hdr rt_hdr; | 70 | struct ipv6_rt_hdr rt_hdr; |
71 | __u32 bitmap; /* strict/loose bit map */ | 71 | __u32 reserved; |
72 | struct in6_addr addr[0]; | 72 | struct in6_addr addr[0]; |
73 | 73 | ||
74 | #define rt0_type rt_hdr.type | 74 | #define rt0_type rt_hdr.type |