ngrep in LXC container
Get segmentation fault using ngrep on LXC container.
ngrep -s0 -d eth0 port 5060 -qtWbyline
interface: eth0 (10.1.1.0/255.255.255.0)
Segmentation fault
Tcpdump does work.
Ngrep does work on the parent host.
The parent has bonded nics with vlans.
(from redmine: issue id 4466, created on 2015-07-23, closed on 2015-08-04)
- Changesets:
- Revision 25948a45 by Natanael Copa on 2015-07-24T08:55:08Z:
main/ngrep: fix segfault on invalid filters and add -dbg
A comment in configure.in says:
> dnl For libpcap's that don't need the restart function called for
> dnl multiple lexer passes, allow them to turn it off here. This option
> dnl exists solely to address a very rude email from the maintainer
> dnl indicating that it shouldn't be called directly (and of course he
> dnl was wrong because this is still needed).
This indicates that you should not really call pcap_restart() directly,
so we use this --disable-pcap-restart.
This fixes segfault when the filter is invalid.
ref #4466
- Revision 5e67aa40 by Natanael Copa on 2015-07-24T09:00:21Z:
main/ngrep: fix segfault on invalid filters and add -dbg
A comment in configure.in says:
> dnl For libpcap's that don't need the restart function called for
> dnl multiple lexer passes, allow them to turn it off here. This option
> dnl exists solely to address a very rude email from the maintainer
> dnl indicating that it shouldn't be called directly (and of course he
> dnl was wrong because this is still needed).
This indicates that you should not really call pcap_restart() directly,
so we use this --disable-pcap-restart.
This fixes segfault when the filter is invalid.
fixes #4466
(cherry picked from commit 25948a450ec1e10d2d4d52b2cd50e032d0a8e732)