diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-10-17 21:27:34 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2003-10-17 21:27:34 +0000 |
commit | b403ef4fd6faf5a142e677c1d7722211a616645b (patch) | |
tree | f348360b1746133c7f6b9e8678c73ee390463d8e /packet-pim.c | |
parent | e58b5aada1c6988207df8ac2719e2395cbc26bf4 (diff) |
From Shinsuke Suzuki: support Address List Option, newly introduced in
draft-ietf-pim-sm-v2-new-08.txt.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8728 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-pim.c')
-rw-r--r-- | packet-pim.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/packet-pim.c b/packet-pim.c index 83c2fc60ac..e629f41f63 100644 --- a/packet-pim.c +++ b/packet-pim.c @@ -2,7 +2,7 @@ * Routines for PIM disassembly * (c) Copyright Jun-ichiro itojun Hagino <itojun@itojun.org> * - * $Id: packet-pim.c,v 1.44 2002/12/27 22:55:40 guy Exp $ + * $Id: packet-pim.c,v 1.45 2003/10/17 21:27:34 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -794,6 +794,25 @@ dissect_pim(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { "Generation ID: %d", opt_value); break; + case 24: /* address list */ + case 65001: /* address list (old implementations) */ + { + int i; + proto_tree_add_text(pimopt_tree, tvb, offset, 4 + opt_len, + "%sAddress List", + hello_opt == 65001 ? "old " : ""); + for (i = offset + 4; i < offset + 4 + opt_len; ) { + int advance; + const char *s; + + s = dissect_pim_addr(tvb, i, pimv2_unicast, &advance); + if (s == NULL) + break; + proto_tree_add_text(pimopt_tree, tvb, offset, + advance, "Address: %s", s); + i += advance; + } + } default: proto_tree_add_text(pimopt_tree, tvb, offset, 4 + opt_len, "Unknown option: %d len: %d value: 0x%x", |