]> git.ipfire.org Git - thirdparty/dhcpcd.git/commit
linux: Support old kernels by not including linux/if.h
authorRoy Marples <roy@marples.name>
Thu, 10 Oct 2024 13:19:46 +0000 (14:19 +0100)
committerRoy Marples <roy@marples.name>
Thu, 10 Oct 2024 13:19:46 +0000 (14:19 +0100)
commit8ef970d1723ca10d5e2967600b37de028ffd4467
tree6deccb755146a764c46d9335a23fded733226d71
parent3989dbf86d4050efa07f1c1a67f471dacf183106
linux: Support old kernels by not including linux/if.h

I wish the linux team used #defines rather than enums, but heh ho.
Ensure we can test IFF_LOWER_UP, IFF_DORMANT and IFA_FLAGS
based on nearest matching #defines available when the respective
feature was comitted.

Fixes #373.
src/if-linux.c