kernel: fix xt_connmark.h
authorMartin Schiller <ms@dev.tdt.de>
Wed, 5 Feb 2020 07:12:54 +0000 (08:12 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 22 Feb 2020 15:38:41 +0000 (16:38 +0100)
Commit a1cfe0dcbb24 (kernel: connmark set-dscpmark follow upstreamimg
attempt") broke the usage of xt_connmark.h in user-space (e.g.
strongswan), because the BIT() macro is unknown there.

Fixes: a1cfe0dcbb24 (kernel: connmark set-dscpmark follow upstreamimg attempt")
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
target/linux/generic/hack-4.19/645-netfilter-connmark-introduce-set-dscpmark.patch

index a4f246d1127e561bd5c31fb6d6f777bd1dd11a0d..ca98187059ba9924e5123cbbc976ccd9cce2cd55 100644 (file)
@@ -87,8 +87,8 @@ Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
  };
  
  enum {
-+      XT_CONNMARK_VALUE = BIT(0),
-+      XT_CONNMARK_DSCP = BIT(1)
++      XT_CONNMARK_VALUE = (1 << 0),
++      XT_CONNMARK_DSCP = (1 << 1)
 +};
 +
 +enum {