aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ppp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-12-11 19:59:08 +0000
committerGuy Harris <guy@alum.mit.edu>2002-12-11 19:59:08 +0000
commit202253482635a37f548e5ac245161a28cc1d8b0d (patch)
tree938d1e8f0908299c76bf04d308d5f1ce9f8a5ac9 /packet-ppp.c
parent79275e0079add5b9a2af9bcf08dac9fe10a2e03b (diff)
From Andreas Trauer: dissect the L2TP AVPs Initial Received LCP CONFREQ,
Last Received LCP CONFREQ, Last Sent LCP CONFREQ, and correct some AVP names. svn path=/trunk/; revision=6779
Diffstat (limited to 'packet-ppp.c')
-rw-r--r--packet-ppp.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/packet-ppp.c b/packet-ppp.c
index 76276b2d90..d78ebd9bc3 100644
--- a/packet-ppp.c
+++ b/packet-ppp.c
@@ -1,7 +1,7 @@
/* packet-ppp.c
* Routines for ppp packet disassembly
*
- * $Id: packet-ppp.c,v 1.102 2002/11/28 22:18:53 guy Exp $
+ * $Id: packet-ppp.c,v 1.103 2002/12/11 19:59:08 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -2506,6 +2506,13 @@ dissect_ppp_common( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
}
static void
+dissect_lcp_options(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
+{
+ dissect_ip_tcp_options(tvb, 0, tvb_reported_length(tvb), lcp_opts, N_LCP_OPTS,
+ -1, pinfo, tree);
+}
+
+static void
dissect_lcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
dissect_cp(tvb, proto_lcp, ett_lcp, lcp_vals, ett_lcp_options,
@@ -3265,6 +3272,7 @@ proto_register_ppp(void)
"PPP protocol", FT_UINT16, BASE_HEX);
register_dissector("ppp_hdlc", dissect_ppp_hdlc, proto_ppp);
+ register_dissector("ppp_lcp_options", dissect_lcp_options, proto_ppp);
register_dissector("ppp", dissect_ppp, proto_ppp);
/* Register the preferences for the ppp protocol */