summaryrefslogtreecommitdiffstats
path: root/src/internal.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2013-07-05 14:00:08 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-07-05 14:00:08 +0200
commit2765d8c3f09315766a83acc38a29e7f6a7392128 (patch)
treead7aa22e9ad1127474a5c43fdc95fadaf19976d0 /src/internal.h
parentf95e8598af7e3a1641166b4e6be31b87d4690326 (diff)
src: expr: data_reg: fix printing data register content
Before: ip filter output 41 [ payload load 1b @ network header + 9 => reg 1 ] [ cmp eq reg 1 ] Now: ip filter output 41 [ payload load 1b @ network header + 9 => reg 1 ] [ cmp eq reg 1 0x00000006 ] ^^^^^^^^^^ Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/internal.h')
-rw-r--r--src/internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/internal.h b/src/internal.h
index ee09661..b6df4dd 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -73,4 +73,6 @@ struct nft_set_elem {
offset += ret; \
len -= ret;
+#define div_round_up(n, d) (((n) + (d) - 1) / (d))
+
#endif