Attention is currently required from: fixeria.
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-pcap/+/39948?usp=email )
Change subject: client: use pcap_dispatch to avoid extra pkt buffer copy ......................................................................
Patch Set 3:
(2 comments)
File src/osmo_client_core.c:
https://gerrit.osmocom.org/c/osmo-pcap/+/39948/comment/05710340_3502942e?usp... : PS2, Line 464: one
Why not just passing `1`? It needs a value, not a pointer.
Oh indeed, when I saw the example it was using a var so I thought it was similar to a setsockopt. I'll rework this.
https://gerrit.osmocom.org/c/osmo-pcap/+/39948/comment/1926672d_00e7004b?usp... : PS2, Line 464: == -1
Maybe it's better to check `!= 0` instead? Looking at the man page, I see it may return `PCAP_ERROR_ […]
Will have a look thanks.