11 #include <linux/if_arp.h>
13 #include <linux/module.h>
14 #include <linux/netfilter/x_tables.h>
15 #include <linux/netfilter_bridge/ebtables.h>
22 const __be32 *siptr, *diptr;
26 const unsigned char *shp;
29 ap = skb_header_pointer(skb, 0,
sizeof(_ah), &_ah);
39 shp = skb_header_pointer(skb,
sizeof(_ah),
ETH_ALEN, &_sha);
43 siptr = skb_header_pointer(skb,
sizeof(_ah) +
ETH_ALEN,
48 diptr = skb_header_pointer(skb,
49 sizeof(_ah) + 2 *
ETH_ALEN +
sizeof(_sip),
55 *diptr, shp, info->
mac, shp);
79 .target = ebt_arpreply_tg,
80 .checkentry = ebt_arpreply_tg_check,
85 static int __init ebt_arpreply_init(
void)
90 static void __exit ebt_arpreply_fini(
void)