X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=extensions%2Flibipt_TCPLAG.c;h=3042d738354ee93b1c035a5c05e75f4971c2acba;hb=6afea0b41dfbc3824956d11d960ad80097218feb;hp=27361e7c5a217937ded7dc2d8b71b50302499e13;hpb=f7b70cf9e00324b89b02de213bcd0dde7044d035;p=iptables.git diff --git a/extensions/libipt_TCPLAG.c b/extensions/libipt_TCPLAG.c index 27361e7..3042d73 100644 --- a/extensions/libipt_TCPLAG.c +++ b/extensions/libipt_TCPLAG.c @@ -70,18 +70,6 @@ static const struct option opts[] = * our own private data structure (which is at t->data). * Probably we could fiddle with t->tflags too but there is * no great advantage in doing so. - * - * TODO: Find documentation for the above flags which - * can be ored into nfcache... - * - * NFC_IP6_DST_PT - * NFC_IP6_PROTO_UNKNOWN - * NFC_IP6_SRC_PT - * NFC_IP6_TCPFLAGS - * NFC_IP_DST_PT - * NFC_IP_SRC_PT - * NFC_IP_TOS - * NFC_UNKNOWN -- This one seems safest */ static void init( struct ipt_entry_target *t, unsigned int *nfcache ) { @@ -89,7 +77,6 @@ static void init( struct ipt_entry_target *t, unsigned int *nfcache ) memset( el, 0, sizeof( struct ipt_tcplag )); el->level = 4; /* Default to warning level */ strcpy( el->prefix, "TCPLAG:" ); /* Give a reasonable default prefix */ - *nfcache |= NFC_UNKNOWN; } /* @@ -208,7 +195,7 @@ static struct iptables_target targ = { next: 0, name: "TCPLAG", -version: "1.2.3", +version: IPTABLES_VERSION, size: IPT_ALIGN( sizeof( struct ipt_tcplag )), userspacesize: IPT_ALIGN( sizeof( struct ipt_tcplag )), help: &help,