From: Vadim Kochan <vadi...@gmail.com> In case if regular user opens pcap file then netsniff-ng tries to setup socket memory which causes warning about failing because of permissions.
So lets do not tune socket memory on pcap-read-only mode. Signed-off-by: Vadim Kochan <vadi...@gmail.com> --- netsniff-ng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/netsniff-ng.c b/netsniff-ng.c index efcba74..57edc43 100644 --- a/netsniff-ng.c +++ b/netsniff-ng.c @@ -1557,6 +1557,7 @@ int main(int argc, char **argv) if (!ops_touched) ctx.pcap = PCAP_OPS_MM; } else { + setsockmem = false; main_loop = read_pcap; if (!ops_touched) ctx.pcap = PCAP_OPS_SG; -- 2.4.2 -- You received this message because you are subscribed to the Google Groups "netsniff-ng" group. To unsubscribe from this group and stop receiving emails from it, send an email to netsniff-ng+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.