From cb225e26856accf5661dcbc3cf34d7f77b2f0c36 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 8 May 2011 13:31:19 +0200 Subject: libxtables: XTTYPE_ETHERMAC support Signed-off-by: Jan Engelhardt --- include/xtables.h.in | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/xtables.h.in b/include/xtables.h.in index c3996a09..0fe4b904 100644 --- a/include/xtables.h.in +++ b/include/xtables.h.in @@ -70,6 +70,7 @@ struct in_addr; * %XTTYPE_PORTRC_NE: same as %XTTYPE_PORTRC, stored in network-endian * %XTTYPE_PLEN: prefix length * %XTTYPE_PLENMASK: prefix length (ptr: union nf_inet_addr) + * %XTTYPE_ETHERMAC: Ethernet MAC address in hex form */ enum xt_option_type { XTTYPE_NONE, @@ -95,6 +96,7 @@ enum xt_option_type { XTTYPE_PORTRC_NE, XTTYPE_PLEN, XTTYPE_PLENMASK, + XTTYPE_ETHERMAC, }; /** @@ -164,6 +166,7 @@ struct xt_option_call { struct { uint32_t mark, mask; }; + uint8_t ethermac[6]; } val; /* Wished for a world where the ones below were gone: */ union { -- cgit v1.2.3