diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-02-09 00:35:38 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-02-09 00:35:38 +0000 |
commit | be67db1249ee6fe49ed4943d44a07d0908575482 (patch) | |
tree | 80d9f3e8a36588385000c9c9e0ffd34ab77c7629 /packet-ppp.c | |
parent | b8bd93114db6cebc2ad487fb4d8fad73f26b5500 (diff) |
When doing a capture, decode enough of the incoming packets to correctly
update the packet counts and percentages in the dialog box popped up
during a capture, even for non-Ethernet captures.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@184 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ppp.c')
-rw-r--r-- | packet-ppp.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/packet-ppp.c b/packet-ppp.c index 1a0d1a8c3c..0adf96a66d 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.8 1998/11/17 04:29:03 gerald Exp $ + * $Id: packet-ppp.c,v 1.9 1999/02/09 00:35:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -62,6 +62,18 @@ #define PPP_CBCP 0xc029 /* Callback Control Protocol */ void +capture_ppp( const u_char *pd, guint32 cap_len, packet_counts *ld ) { + switch (pntohs(&pd[2])) { + case PPP_IP: + capture_ip(pd, 4, cap_len, ld); + break; + default: + ld->other++; + break; + } +} + +void dissect_ppp( const u_char *pd, frame_data *fd, GtkTree *tree ) { e_ppphdr ph; GtkWidget *ti, *fh_tree; |