]> The Tcpdump Group git mirrors - libpcap/commit
If we can't allocate a DLT_ list, fail. 1201/head
authorGuy Harris <[email protected]>
Sun, 25 Jun 2023 06:35:45 +0000 (23:35 -0700)
committerGuy Harris <[email protected]>
Sun, 25 Jun 2023 06:35:45 +0000 (23:35 -0700)
commit8f1f6fcbe4b4c17d965b42374a2f170452a93289
tree52c8f4835f8ff0ff4c854f5e3c5757020b04caf2
parentd130479e5b2c024a70e1f7446a228eb19243114e
If we can't allocate a DLT_ list, fail.

Some code already was doing that (for example, pcap-bpf.c if fetching
the DLT list with an ioctl), and, if you can't allocate a DLT_ list,
which is usually pretty small, you may have other memory allocation
problems later, so letting the program open an interface (and not get a
correct list of all link-layer types supported) may not be worth it.
dlpisubs.c
pcap-bpf.c
pcap-linux.c
pcap-netfilter-linux.c
pcap-nit.c
pcap-npf.c
pcap-pf.c
pcap-snit.c
pcap-snoop.c
pcap-tc.c