-
Notifications
You must be signed in to change notification settings - Fork 161
Description
--- CapTipper-master/pcapparser/constant.py 2015-08-06 16:42:26.000000000 -0700
+++ CapTipper-fix/pcapparser/constant.py 2015-08-13 15:28:32.170656700 -0700
@@ -14,6 +14,7 @@ class LinkLayerType(object):
"""LinkType"""
ETHERNET = 1
LINUX_SLL = 113
- RAWIP = 101
--- CapTipper-master/pcapparser/packet_parser.py 2015-08-06 16:42:26.000000000 -0700
+++ CapTipper-fix/pcapparser/packet_parser.py 2015-08-13 15:31:03.883334100 -0700
@@ -78,6 +78,10 @@ def dl_parse_ethernet(link_packet):
pass
return n_protocol, link_packet[eth_header_len:]
+def dl_parse_rawip(link_packet):
- """parse raw ip packet"""
- raw_ip_header_len=0
- return NetworkProtocol.IP,link_packet
def dl_parse_linux_sll(link_packet):
@@ -178,6 +182,8 @@ def get_link_layer_parser(link_type):
return dl_parse_ethernet
elif link_type == LinkLayerType.LINUX_SLL:
return dl_parse_linux_sll
- elif link_type == LinkLayerType.RAWIP:
-
else:
return dl_parse_rawip
return None