aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ppp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-12-11 19:59:08 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-12-11 19:59:08 +0000
commitfa1750c5390234b15bdf9455508a7224a3939ebb (patch)
tree938d1e8f0908299c76bf04d308d5f1ce9f8a5ac9 /packet-ppp.c
parentdf5d7cdadba9d511f5ea0bf87214102b7b143dbb (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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6779 f5534014-38df-0310-8fa8-9805f1628bb7
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 */