diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-03-20 08:51:05 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2012-03-20 08:51:05 +0000 |
commit | fa68273f40887ee75e2dbbbc67c964934e8eefae (patch) | |
tree | 1263ba9d78997ead82b19f45d0217e44a50e5606 /epan/ip_opts.h | |
parent | b7cfa1359d4b5bd9d4bd962d97b9ca1123f96847 (diff) |
Add Quick Start IPv6 Option ( And shared Quick Start option between IPv4/IPv6/TCP )
svn path=/trunk/; revision=41681
Diffstat (limited to 'epan/ip_opts.h')
-rw-r--r-- | epan/ip_opts.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/epan/ip_opts.h b/epan/ip_opts.h index e39aced53d..7fe4a31964 100644 --- a/epan/ip_opts.h +++ b/epan/ip_opts.h @@ -57,4 +57,37 @@ extern void dissect_ip_tcp_options(tvbuff_t *, int, guint, const ip_tcp_opt *, int, int, packet_info *, proto_tree *, proto_item *); +/* Quick-Start option, as defined by RFC4782 */ +#define QS_FUNC_MASK 0xf0 +#define QS_RATE_MASK 0x0f +#define QS_RATE_REQUEST 0 +#define QS_RATE_REPORT 8 + +static const value_string qs_func_vals[] = { + {QS_RATE_REQUEST, "Rate request"}, + {QS_RATE_REPORT, "Rate report"}, + {0, NULL} +}; + +static const value_string qs_rate_vals[] = { + { 0, "0 bit/s"}, + { 1, "80 Kbit/s"}, + { 2, "160 Kbit/s"}, + { 3, "320 Kbit/s"}, + { 4, "640 Kbit/s"}, + { 5, "1.28 Mbit/s"}, + { 6, "2.56 Mbit/s"}, + { 7, "5.12 Mbit/s"}, + { 8, "10.24 Mbit/s"}, + { 9, "20.48 Mbit/s"}, + {10, "40.96 Mbit/s"}, + {11, "81.92 Mbit/s"}, + {12, "163.84 Mbit/s"}, + {13, "327.68 Mbit/s"}, + {14, "655.36 Mbit/s"}, + {15, "1.31072 Gbit/s"}, + {0, NULL} +}; + + #endif |