root/include/uapi/linux/netfilter_arp/arpt_mangle.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
   2 #ifndef _ARPT_MANGLE_H
   3 #define _ARPT_MANGLE_H
   4 #include <linux/netfilter_arp/arp_tables.h>
   5 
   6 #define ARPT_MANGLE_ADDR_LEN_MAX sizeof(struct in_addr)
   7 struct arpt_mangle
   8 {
   9         char src_devaddr[ARPT_DEV_ADDR_LEN_MAX];
  10         char tgt_devaddr[ARPT_DEV_ADDR_LEN_MAX];
  11         union {
  12                 struct in_addr src_ip;
  13         } u_s;
  14         union {
  15                 struct in_addr tgt_ip;
  16         } u_t;
  17         __u8 flags;
  18         int target;
  19 };
  20 
  21 #define ARPT_MANGLE_SDEV 0x01
  22 #define ARPT_MANGLE_TDEV 0x02
  23 #define ARPT_MANGLE_SIP 0x04
  24 #define ARPT_MANGLE_TIP 0x08
  25 #define ARPT_MANGLE_MASK 0x0f
  26 
  27 #endif /* _ARPT_MANGLE_H */

/* [<][>][^][v][top][bottom][index][help] */