]> The Tcpdump Group git mirrors - libpcap/commit
rpcapd: clean up the code to fill in the struct rpcap_findalldevs_if.
authorGuy Harris <[email protected]>
Thu, 22 Jul 2021 08:19:07 +0000 (01:19 -0700)
committerGuy Harris <[email protected]>
Sun, 20 Feb 2022 23:06:26 +0000 (15:06 -0800)
commita352cd0b7e7be56e8091d06fce5e51244bf413e5
treefc1d1a91b467fcd7381499f14081652a6c8c6722
parentf5f0bfcd2bde077857185e250f0693f8cdc7a112
rpcapd: clean up the code to fill in the struct rpcap_findalldevs_if.

Make findalldevs_if the on-the-stack struct rpcap_findalldevs_if, and
fill it in directly.  Once it's completely filled in, check that it fits
in the output buffer and copy it to the output buffer using
sock_bufferize().

This makes the code a little easier to figure out.

(cherry picked from commit 95ab2d72bbb979fd65c6536bf6796c17c5f7404d)
rpcapd/daemon.c