mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-28 20:02:17 +00:00
![Linus Torvalds](/assets/img/avatar_default.png)
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
26 lines
547 B
C
26 lines
547 B
C
#ifndef _ARPT_MANGLE_H
|
|
#define _ARPT_MANGLE_H
|
|
#include <linux/netfilter_arp/arp_tables.h>
|
|
|
|
#define ARPT_MANGLE_ADDR_LEN_MAX sizeof(struct in_addr)
|
|
struct arpt_mangle
|
|
{
|
|
char src_devaddr[ARPT_DEV_ADDR_LEN_MAX];
|
|
char tgt_devaddr[ARPT_DEV_ADDR_LEN_MAX];
|
|
union {
|
|
struct in_addr src_ip;
|
|
} u_s;
|
|
union {
|
|
struct in_addr tgt_ip;
|
|
} u_t;
|
|
u_int8_t flags;
|
|
int target;
|
|
};
|
|
|
|
#define ARPT_MANGLE_SDEV 0x01
|
|
#define ARPT_MANGLE_TDEV 0x02
|
|
#define ARPT_MANGLE_SIP 0x04
|
|
#define ARPT_MANGLE_TIP 0x08
|
|
#define ARPT_MANGLE_MASK 0x0f
|
|
|
|
#endif /* _ARPT_MANGLE_H */
|