Skip to content

Commit

Permalink
Merge branch 'ipv6'
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Fleenor committed Jan 15, 2011
2 parents b5c8bbb + 206e47d commit ad9104f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packetdispatcher.py
Expand Up @@ -25,7 +25,8 @@ def add(self, ts, buf, eth):
'''
#decide based on pkt.data
# if it's IP...
if isinstance(eth.data, dpkt.ip.IP):
if (isinstance(eth.data, dpkt.ip.IP) or
isinstance(eth.data, dpkt.ip6.IP6)):
ip = eth.data
# if it's TCP
if isinstance(ip.data, dpkt.tcp.TCP):
Expand Down

0 comments on commit ad9104f

Please sign in to comment.