aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ppp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-06-15 20:23:41 +0000
committerGuy Harris <guy@alum.mit.edu>2001-06-15 20:23:41 +0000
commit4a5b324abb476e0ada0cebfafde8769be9bfc2aa (patch)
treec49d051e4e66f815732d787a915b68aa89f8636c /packet-ppp.c
parent738fe781f90b0eeb2553d17c13cf39a0fe8a9f17 (diff)
Explain why we have to be ready to handle Ethernet frames with
protocol type values that are PPP protocol types. svn path=/trunk/; revision=3554
Diffstat (limited to 'packet-ppp.c')
-rw-r--r--packet-ppp.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/packet-ppp.c b/packet-ppp.c
index 5456edf968..cecb97d79b 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.64 2001/06/14 20:05:12 guy Exp $
+ * $Id: packet-ppp.c,v 1.65 2001/06/15 20:23:41 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1492,6 +1492,23 @@ void
proto_reg_handoff_lcp(void)
{
dissector_add("ppp.protocol", PPP_LCP, dissect_lcp, proto_lcp);
+
+ /*
+ * NDISWAN on Windows translates Ethernet frames from higher-level
+ * protocols into PPP frames to hand to the PPP driver, and translates
+ * PPP frames from the PPP driver to hand to the higher-level protocols.
+ *
+ * Apparently the PPP driver, on at least some versions of Windows,
+ * passes frames for internal-to-PPP protocols up through NDISWAN;
+ * the protocol type field appears to be passed through unchanged
+ * (unlike what's done with, for example, the protocol type field
+ * for IP, which is mapped from its PPP value to its Ethernet value).
+ *
+ * This means that we may see, on Ethernet captures, frames for
+ * protocols internal to PPP, so we register PPP_LCP with the
+ * "ethertype" dissector table as well as the PPP protocol dissector
+ * table.
+ */
dissector_add("ethertype", PPP_LCP, dissect_lcp, proto_lcp);
}
@@ -1514,5 +1531,10 @@ void
proto_reg_handoff_ipcp(void)
{
dissector_add("ppp.protocol", PPP_IPCP, dissect_ipcp, proto_ipcp);
+
+ /*
+ * See above comment about NDISWAN for an explanation of why we're
+ * registering with the "ethertype" dissector table.
+ */
dissector_add("ethertype", PPP_IPCP, dissect_ipcp, proto_ipcp);
}