|
54 | 54 | #define IFF_POINTOPOINT (1 << 6) /* Is point-to-point link */
|
55 | 55 | #define IFF_NOARP (1 << 7) /* ARP is not required for this packet */
|
56 | 56 | #define IFF_NAT (1 << 8) /* NAT is enabled for this interface */
|
| 57 | +#define IFF_SLAVE (1 << 11) /* Slave of a load balancer. */ |
57 | 58 | #define IFF_MULTICAST (1 << 12) /* Supports multicast. */
|
58 | 59 | #define IFF_BROADCAST (1 << 13) /* Broadcast address valid. */
|
| 60 | +#define IFF_DYNAMIC (1 << 15) /* Dialup device with changing addresses. */ |
59 | 61 |
|
60 | 62 | /* Interface flag helpers */
|
61 | 63 |
|
|
67 | 69 | #define IFF_SET_POINTOPOINT(f) do { (f) |= IFF_POINTOPOINT; } while (0)
|
68 | 70 | #define IFF_SET_MULTICAST(f) do { (f) |= IFF_MULTICAST; } while (0)
|
69 | 71 | #define IFF_SET_BROADCAST(f) do { (f) |= IFF_BROADCAST; } while (0)
|
| 72 | +#define IFF_SET_SLAVE(f) do { (f) |= IFF_SLAVE; } while (0) |
| 73 | +#define IFF_SET_DYNAMIC(f) do { (f) |= IFF_DYNAMIC; } while (0) |
70 | 74 |
|
71 | 75 | #define IFF_CLR_UP(f) do { (f) &= ~IFF_UP; } while (0)
|
72 | 76 | #define IFF_CLR_RUNNING(f) do { (f) &= ~IFF_RUNNING; } while (0)
|
|
76 | 80 | #define IFF_CLR_POINTOPOINT(f) do { (f) &= ~IFF_POINTOPOINT; } while (0)
|
77 | 81 | #define IFF_CLR_MULTICAST(f) do { (f) &= ~IFF_MULTICAST; } while (0)
|
78 | 82 | #define IFF_CLR_BROADCAST(f) do { (f) &= ~IFF_BROADCAST; } while (0)
|
| 83 | +#define IFF_CLR_SLAVE(f) do { (f) &= ~IFF_SLAVE; } while (0) |
| 84 | +#define IFF_CLR_DYNAMIC(f) do { (f) &= ~IFF_DYNAMIC; } while (0) |
79 | 85 |
|
80 | 86 | #define IFF_IS_UP(f) (((f) & IFF_UP) != 0)
|
81 | 87 | #define IFF_IS_RUNNING(f) (((f) & IFF_RUNNING) != 0)
|
|
85 | 91 | #define IFF_IS_POINTOPOINT(f) (((f) & IFF_POINTOPOINT) != 0)
|
86 | 92 | #define IFF_IS_MULTICAST(f) (((f) & IFF_MULTICAST) != 0)
|
87 | 93 | #define IFF_IS_BROADCAST(f) (((f) & IFF_BROADCAST) != 0)
|
| 94 | +#define IFF_IS_SLAVE(f) (((f) & IFF_SLAVE) != 0) |
| 95 | +#define IFF_IS_DYNAMIC(f) (((f) & IFF_DYNAMIC) != 0) |
88 | 96 |
|
89 | 97 | /* We only need to manage the IPv6 bit if both IPv6 and IPv4 are supported.
|
90 | 98 | * Otherwise, we can save a few bytes by ignoring it.
|
|
0 commit comments