|
Lines 45-50
Link Here
|
| 45 |
|
45 |
|
| 46 |
#include <xtables.h> |
46 |
#include <xtables.h> |
| 47 |
#include <limits.h> /* INT_MAX in ip_tables.h/ip6_tables.h */ |
47 |
#include <limits.h> /* INT_MAX in ip_tables.h/ip6_tables.h */ |
|
|
48 |
#include <netinet/ether.h> /* In case libc defines __UAPI_DEF_ETHHDR */ |
| 48 |
#include <linux/if_ether.h> /* ETH_ALEN */ |
49 |
#include <linux/if_ether.h> /* ETH_ALEN */ |
| 49 |
#include <linux/netfilter_ipv4/ip_tables.h> |
50 |
#include <linux/netfilter_ipv4/ip_tables.h> |
| 50 |
#include <linux/netfilter_ipv6/ip6_tables.h> |
51 |
#include <linux/netfilter_ipv6/ip6_tables.h> |
|
Lines 2245-2252
void xtables_print_num(uint64_t number, unsigned int format)
Link Here
|
| 2245 |
printf(FMT("%4lluT ","%lluT "), (unsigned long long)number); |
2246 |
printf(FMT("%4lluT ","%lluT "), (unsigned long long)number); |
| 2246 |
} |
2247 |
} |
| 2247 |
|
2248 |
|
| 2248 |
#include <netinet/ether.h> |
|
|
| 2249 |
|
| 2250 |
static const unsigned char mac_type_unicast[ETH_ALEN] = {}; |
2249 |
static const unsigned char mac_type_unicast[ETH_ALEN] = {}; |
| 2251 |
static const unsigned char msk_type_unicast[ETH_ALEN] = {1}; |
2250 |
static const unsigned char msk_type_unicast[ETH_ALEN] = {1}; |
| 2252 |
static const unsigned char mac_type_multicast[ETH_ALEN] = {1}; |
2251 |
static const unsigned char mac_type_multicast[ETH_ALEN] = {1}; |