diff options
author | Patrick McHardy <kaber@trash.net> | 2015-04-11 02:27:33 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-04-13 17:17:25 +0200 |
commit | fad136ea0d32ead1f62e3e2a3d436c26d74e5289 (patch) | |
tree | 19a333e4408f08281e31c59f307e9fb023ec03d7 /net/netfilter/nft_byteorder.c | |
parent | 1ca2e1702c050aff352cb3efc8a649363dbaeab2 (diff) | |
download | op-kernel-dev-fad136ea0d32ead1f62e3e2a3d436c26d74e5289.zip op-kernel-dev-fad136ea0d32ead1f62e3e2a3d436c26d74e5289.tar.gz |
netfilter: nf_tables: convert expressions to u32 register pointers
Simple conversion to use u32 pointers to the beginning of the registers
to keep follow up patches smaller.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_byteorder.c')
-rw-r--r-- | net/netfilter/nft_byteorder.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/netfilter/nft_byteorder.c b/net/netfilter/nft_byteorder.c index 48fbfa3..d6290db 100644 --- a/net/netfilter/nft_byteorder.c +++ b/net/netfilter/nft_byteorder.c @@ -30,13 +30,13 @@ static void nft_byteorder_eval(const struct nft_expr *expr, const struct nft_pktinfo *pkt) { const struct nft_byteorder *priv = nft_expr_priv(expr); - struct nft_data *src = ®s->data[priv->sreg]; - struct nft_data *dst = ®s->data[priv->dreg]; + u32 *src = ®s->data[priv->sreg].data[0]; + u32 *dst = ®s->data[priv->dreg].data[0]; union { u32 u32; u16 u16; } *s, *d; unsigned int i; - s = (void *)src->data; - d = (void *)dst->data; + s = (void *)src; + d = (void *)dst; switch (priv->size) { case 4: |