summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorHervé Boisse <admin@netgeek.ovh>2023-01-17 10:43:35 +0100
committerHervé Boisse <admin@netgeek.ovh>2023-01-17 12:15:51 +0100
commit19979c4541ddcc817c64ea911a309ee71a8cc250 (patch)
treea5049ee8ea83d7eb642171006a3aec0dcc1102fc /sample
parent8e8e0f71162ef33b045bf424bb1bd83411a9ac6a (diff)
downloadlibnet-19979c4541ddcc817c64ea911a309ee71a8cc250.tar.gz
Remove support for SOCK_PACKET sockets
The current code has a build-time check to verify that PF_PACKET sockets are supported on Linux systems and if not, fallback on SOCK_PACKET sockets. The test implementation relies on FTM (Feature Test Macros) to detect glibc and its version to include correct headers. But, some libc such as the musl libc do not have such macros, making the test program compilation fail and libnet fallback on SOCK_PACKET. Since PF_PACKET support is present in kernel for more than 20 years now, the simplest solution and safe choice is to just drop support for SOCK_PACKET and assume PF_PACKET is always available on any Linux system. Signed-off-by: Hervé Boisse <admin@netgeek.ovh>
Diffstat (limited to 'sample')
0 files changed, 0 insertions, 0 deletions