Without `_GNU_SOURCE`, the `dest` field on `tcphdr` is not present:
nft-rule-add.c: In function 'setup_rule':
nft-rule-add.c:108:21: error: 'struct tcphdr' has no member named 'dest'
Signed-off-by: Anna Wilcox <AWilcox@Wilcox-Tech.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
* This software has been sponsored by Sophos Astaro <http://www.sophos.com>
*/
* This software has been sponsored by Sophos Astaro <http://www.sophos.com>
*/
+#define _GNU_SOURCE /* for tcphdr.dest */
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>