Skip to content

Commit

Permalink
Merge pull request #3489 from grafnu/tcpdumpfix
Browse files Browse the repository at this point in the history
Disable tcpdump user change
  • Loading branch information
gizmoguy authored Mar 12, 2020
2 parents b73ec09 + b1072ff commit e71a4a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clib/tcpdump_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def __init__(self, tcpdump_host, tcpdump_filter, funcs=None,
self.intf_name = self.intf_name.split('.')[0]

tcpdump_flags = vflags
tcpdump_flags += ' -Z root'
tcpdump_flags += ' -c %u' % packets if packets else ''
tcpdump_flags += ' -w %s' % pcap_out if pcap_out else ''
tcpdump_cmd = 'tcpdump -i %s %s --immediate-mode -e -n -U %s' % (
Expand Down

0 comments on commit e71a4a6

Please sign in to comment.