Skip to content

Commit

Permalink
core: add PPP support
Browse files Browse the repository at this point in the history
This patch add PPP support. NS3 and real PPP traces are supported now
and the ppp dpkt disector is now enabled. Fixes #8

Reported-by: Clemens John <clemens-john@gmx.de>
Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>
  • Loading branch information
hgn committed Jun 24, 2013
1 parent 634e31a commit bb00a87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions captcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@ def __init__(self, pcap_file_path, pcap_filter):
dpkt.pcap.DLT_LOOP: dpkt.loopback.Loopback,
dpkt.pcap.DLT_NULL: dpkt.loopback.Loopback,
dpkt.pcap.DLT_EN10MB: dpkt.ethernet.Ethernet,
dpkt.pcap.DLT_IEEE802: dpkt.ethernet.Ethernet,
dpkt.pcap.DLT_PPP: dpkt.ppp.PPP,
dpkt.pcap.DLT_LINUX_SLL: dpkt.sll.SLL
}[self.pc.datalink()]
except KeyError:
Expand Down

0 comments on commit bb00a87

Please sign in to comment.