mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-07 17:36:26 +00:00

In order to support these new flags add current linux/if.h into the directory with the local copies. This caused troubles with outdated redefinitions from net/if.h so I've removed the dependency on it. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
27 lines
614 B
C
27 lines
614 B
C
/* This is the userspace/kernel interface for Generic IP Chains,
|
|
required for libc6. */
|
|
#ifndef _FWCHAINS_KERNEL_HEADERS_H
|
|
#define _FWCHAINS_KERNEL_HEADERS_H
|
|
|
|
#include <limits.h>
|
|
|
|
#if defined(__GLIBC__) && __GLIBC__ == 2
|
|
#include <netinet/ip.h>
|
|
#include <netinet/in.h>
|
|
#include <netinet/ip_icmp.h>
|
|
#include <netinet/tcp.h>
|
|
#include <netinet/udp.h>
|
|
#include <sys/types.h>
|
|
#else /* libc5 */
|
|
#include <sys/socket.h>
|
|
#include <linux/ip.h>
|
|
#include <linux/in.h>
|
|
#include <linux/if.h>
|
|
#include <linux/icmp.h>
|
|
#include <linux/tcp.h>
|
|
#include <linux/udp.h>
|
|
#include <linux/types.h>
|
|
#include <linux/in6.h>
|
|
#endif
|
|
#endif
|