aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet/netfilter/dn_rtmsg.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-04-25 19:08:35 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-25 22:26:34 -0700
commitb529ccf2799c14346d1518e9bdf1f88f03643e99 (patch)
treef899a5a5d66d2ca21724c1871ee3afeda6c4a670 /net/decnet/netfilter/dn_rtmsg.c
parent[IPV4]: fib_trie root node settings (diff)
downloadlinux-dev-b529ccf2799c14346d1518e9bdf1f88f03643e99.tar.xz
linux-dev-b529ccf2799c14346d1518e9bdf1f88f03643e99.zip
[NETLINK]: Introduce nlmsg_hdr() helper
For the common "(struct nlmsghdr *)skb->data" sequence, so that we reduce the number of direct accesses to skb->data and for consistency with all the other cast skb member helpers. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet/netfilter/dn_rtmsg.c')
-rw-r--r--net/decnet/netfilter/dn_rtmsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/decnet/netfilter/dn_rtmsg.c b/net/decnet/netfilter/dn_rtmsg.c
index ceefd9dd0c92..9e8256a2361e 100644
--- a/net/decnet/netfilter/dn_rtmsg.c
+++ b/net/decnet/netfilter/dn_rtmsg.c
@@ -102,7 +102,7 @@ static unsigned int dnrmg_hook(unsigned int hook,
static inline void dnrmg_receive_user_skb(struct sk_buff *skb)
{
- struct nlmsghdr *nlh = (struct nlmsghdr *)skb->data;
+ struct nlmsghdr *nlh = nlmsg_hdr(skb);
if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh->nlmsg_len)
return;