Skip to content

Commit 9c6cd9c

Browse files
committed
ethtool: Older kernels don't have IFF_DYNAMIC
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 2db1ec9 commit 9c6cd9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python-ethtool/ethtool.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@
2626
#include <sys/ioctl.h>
2727
#include <sys/types.h>
2828

29+
#ifndef IFF_DYNAMIC
30+
#define IFF_DYNAMIC 0x8000 /* dialup device with changing addresses*/
31+
#endif
32+
2933
typedef unsigned long long u64;
3034
typedef __uint32_t u32;
3135
typedef __uint16_t u16;

0 commit comments

Comments
 (0)