/* ebt_mark * * Authors: * Bart De Schuymer * * July, 2002, September 2006 * * Adapted by Arturo Borrero Gonzalez * to use libxtables for ebtables-compat in 2015. */ #include #include #include #include #include #include "iptables/nft.h" #include "iptables/nft-bridge.h" enum { O_SET_MARK = 0, O_AND_MARK, O_OR_MARK, O_XOR_MARK, O_MARK_TARGET, F_SET_MARK = 1 << O_SET_MARK, F_AND_MARK = 1 << O_AND_MARK, F_OR_MARK = 1 << O_OR_MARK, F_XOR_MARK = 1 << O_XOR_MARK, F_ANY = F_SET_MARK | F_AND_MARK | F_OR_MARK | F_XOR_MARK, }; static const struct xt_option_entry brmark_opts[] = { { .name = "mark-target",.id = O_MARK_TARGET, .type = XTTYPE_STRING }, /* an oldtime messup, we should have always used the scheme * -