icmp6.h (207369) | icmp6.h (222732) |
---|---|
1/* $FreeBSD: head/sys/netinet/icmp6.h 207369 2010-04-29 11:52:42Z bz $ */ | 1/* $FreeBSD: head/sys/netinet/icmp6.h 222732 2011-06-06 03:06:43Z hrs $ */ |
2/* $KAME: icmp6.h,v 1.46 2001/04/27 15:09:48 itojun Exp $ */ 3 4/*- 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 282 unchanged lines hidden (view full) --- 292 /* followed by option specific data*/ 293} __packed; 294 295#define ND_OPT_SOURCE_LINKADDR 1 296#define ND_OPT_TARGET_LINKADDR 2 297#define ND_OPT_PREFIX_INFORMATION 3 298#define ND_OPT_REDIRECTED_HEADER 4 299#define ND_OPT_MTU 5 | 2/* $KAME: icmp6.h,v 1.46 2001/04/27 15:09:48 itojun Exp $ */ 3 4/*- 5 * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 282 unchanged lines hidden (view full) --- 292 /* followed by option specific data*/ 293} __packed; 294 295#define ND_OPT_SOURCE_LINKADDR 1 296#define ND_OPT_TARGET_LINKADDR 2 297#define ND_OPT_PREFIX_INFORMATION 3 298#define ND_OPT_REDIRECTED_HEADER 4 299#define ND_OPT_MTU 5 |
300#define ND_OPT_ROUTE_INFO 24 /* RFC 4191 */ 301#define ND_OPT_RDNSS 25 /* RFC 6016 */ 302#define ND_OPT_DNSSL 31 /* RFC 6016 */ |
|
300 | 303 |
301#define ND_OPT_ROUTE_INFO 200 /* draft-ietf-ipngwg-router-preference, not officially assigned yet */ 302 | |
303struct nd_opt_prefix_info { /* prefix information */ 304 u_int8_t nd_opt_pi_type; 305 u_int8_t nd_opt_pi_len; 306 u_int8_t nd_opt_pi_prefix_len; 307 u_int8_t nd_opt_pi_flags_reserved; 308 u_int32_t nd_opt_pi_valid_time; 309 u_int32_t nd_opt_pi_preferred_time; 310 u_int32_t nd_opt_pi_reserved2; --- 22 unchanged lines hidden (view full) --- 333 u_int8_t nd_opt_rti_type; 334 u_int8_t nd_opt_rti_len; 335 u_int8_t nd_opt_rti_prefixlen; 336 u_int8_t nd_opt_rti_flags; 337 u_int32_t nd_opt_rti_lifetime; 338 /* prefix follows */ 339} __packed; 340 | 304struct nd_opt_prefix_info { /* prefix information */ 305 u_int8_t nd_opt_pi_type; 306 u_int8_t nd_opt_pi_len; 307 u_int8_t nd_opt_pi_prefix_len; 308 u_int8_t nd_opt_pi_flags_reserved; 309 u_int32_t nd_opt_pi_valid_time; 310 u_int32_t nd_opt_pi_preferred_time; 311 u_int32_t nd_opt_pi_reserved2; --- 22 unchanged lines hidden (view full) --- 334 u_int8_t nd_opt_rti_type; 335 u_int8_t nd_opt_rti_len; 336 u_int8_t nd_opt_rti_prefixlen; 337 u_int8_t nd_opt_rti_flags; 338 u_int32_t nd_opt_rti_lifetime; 339 /* prefix follows */ 340} __packed; 341 |
342struct nd_opt_rdnss { /* RDNSS option (RFC 6106) */ 343 u_int8_t nd_opt_rdnss_type; 344 u_int8_t nd_opt_rdnss_len; 345 u_int16_t nd_opt_rdnss_reserved; 346 u_int32_t nd_opt_rdnss_lifetime; 347 /* followed by list of recursive DNS servers */ 348} __packed; 349 350struct nd_opt_dnssl { /* DNSSL option (RFC 6106) */ 351 u_int8_t nd_opt_dnssl_type; 352 u_int8_t nd_opt_dnssl_len; 353 u_int16_t nd_opt_dnssl_reserved; 354 u_int32_t nd_opt_dnssl_lifetime; 355 /* followed by list of DNS search domains */ 356} __packed; 357 |
|
341/* 342 * icmp6 namelookup 343 */ 344 345struct icmp6_namelookup { 346 struct icmp6_hdr icmp6_nl_hdr; 347 u_int8_t icmp6_nl_nonce[8]; 348 int32_t icmp6_nl_ttl; --- 393 unchanged lines hidden --- | 358/* 359 * icmp6 namelookup 360 */ 361 362struct icmp6_namelookup { 363 struct icmp6_hdr icmp6_nl_hdr; 364 u_int8_t icmp6_nl_nonce[8]; 365 int32_t icmp6_nl_ttl; --- 393 unchanged lines hidden --- |