diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-07-11 09:30:49 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-07-11 09:30:49 +0000 |
commit | 0c88f96ca0052e98a42b2bd6195771273c62c1db (patch) | |
tree | 6401b632d69ea20ddd51849cae79cafc769dd275 /packet-mip6.h | |
parent | 48b1ab757e38eca38cb489e7576bc104c95bae2e (diff) |
Add a routine "dissect_ipv6_options()" that works like
"dissect_ip_tcp_options()" but for options that are like IPv6 options
(i.e., the length byte has a value that doesn't include the option code
or length byte).
Add an "ip_opts.h" header to declare it, and move the declaration of
stuff used by it and "dissect_ip_tcp_options()", and the declaration of
"dissect_ip_tcp_options()", to that header.
Use "dissect_ipv6_options()" for Mobile IPv6 options.
Get rid of the unused "mip6_opt_types[]" array in "packet-mip6.h".
svn path=/trunk/; revision=8015
Diffstat (limited to 'packet-mip6.h')
-rw-r--r-- | packet-mip6.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/packet-mip6.h b/packet-mip6.h index 38fda0e2b1..9cee274c1e 100644 --- a/packet-mip6.h +++ b/packet-mip6.h @@ -1,6 +1,6 @@ /* packet-mip6.h * - * $Id: packet-mip6.h,v 1.1 2003/02/04 20:16:57 guy Exp $ + * $Id: packet-mip6.h,v 1.2 2003/07/11 09:30:48 guy Exp $ * * Definitions for Mobile IPv6 dissection (draft-ietf-mobileip-ipv6-20.txt) * Copyright 2003 Oy L M Ericsson Ab <teemu.rinta-aho@ericsson.fi> @@ -61,16 +61,6 @@ typedef enum { BAD = 5 } optTypes; -static const value_string mip6_opt_types[]= { - {PAD1, "Pad1"}, - {PADN, "PadN"}, - {BRA, "Binding Refresh Advice"}, - {ACOA, "Alternate Care-of Address"}, - {NI, "Nonce Indices"}, - {BAD, "Binding Authorization Data"}, - {0, NULL} -}; - /* Binding Update flag description */ static const true_false_string mip6_bu_a_flag_value = { "Binding Acknowledgement requested", @@ -199,19 +189,4 @@ static const value_string mip6_be_status_value[] = { #define MIP6_BE_RES_LEN 1 #define MIP6_BE_HOA_LEN 16 -/* Field offsets & lengths for mobility options */ -#define MIP6_BRA_RI_OFF 2 -#define MIP6_BRA_RI_LEN 2 - -#define MIP6_ACOA_ACOA_OFF 2 -#define MIP6_ACOA_ACOA_LEN 16 - -#define MIP6_NI_HNI_OFF 2 -#define MIP6_NI_CNI_OFF 4 -#define MIP6_NI_HNI_LEN 2 -#define MIP6_NI_CNI_LEN 2 - -#define MIP6_BAD_AUTH_OFF 2 -#define MIP6_BAD_AUTH_LEN 12 - #endif /* __PACKET_MIP6_H_DEFINED__ */ |