libiproute: band-aid for old uclibc missing IFA_FLAGS
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
fecb1693cc
commit
ec9a5e6083
@ -21,10 +21,15 @@
|
|||||||
#define IFF_LOWER_UP 0x10000 /* driver signals L1 up */
|
#define IFF_LOWER_UP 0x10000 /* driver signals L1 up */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* for old uclibc */
|
||||||
#ifndef IFA_F_NOPREFIXROUTE
|
#ifndef IFA_F_NOPREFIXROUTE
|
||||||
# define IFA_FLAGS 8
|
# define IFA_FLAGS 8
|
||||||
/* ifa_flags */
|
|
||||||
# define IFA_F_NOPREFIXROUTE 0x200
|
# define IFA_F_NOPREFIXROUTE 0x200
|
||||||
|
enum { /* can't do this with preporcessor, IFA_MAX is an (enum - 1), not preprocessor constant */
|
||||||
|
REAL_IFA_MAX = (IFA_MAX >= IFA_FLAGS) ? IFA_MAX : IFA_FLAGS,
|
||||||
|
};
|
||||||
|
# undef IFA_MAX
|
||||||
|
# define IFA_MAX REAL_IFA_MAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct filter_t {
|
struct filter_t {
|
||||||
|
Loading…
Reference in New Issue
Block a user