Open carfieldca opened 9 years ago
--- 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
--- 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):
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
--- 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
--- 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):
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