diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-02 15:24:48 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-02 15:24:48 -0800 |
commit | 8fe73503fae8cb8f00c80dd6444c1ddcd19257bd (patch) | |
tree | 39cc6d38a628c445da7d52c006df6930a2c58411 /include/net/netlink.h | |
parent | ipv4: Rename fib_hash_* locals in fib_semantics.c (diff) | |
parent | netfilter: xtables: add device group match (diff) | |
download | linux-dev-8fe73503fae8cb8f00c80dd6444c1ddcd19257bd.tar.xz linux-dev-8fe73503fae8cb8f00c80dd6444c1ddcd19257bd.zip |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6
Diffstat (limited to 'include/net/netlink.h')
-rw-r--r-- | include/net/netlink.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h index 373f1a900cf4..8a3906a08f5f 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h @@ -856,18 +856,27 @@ static inline int nla_put_msecs(struct sk_buff *skb, int attrtype, #define NLA_PUT_BE16(skb, attrtype, value) \ NLA_PUT_TYPE(skb, __be16, attrtype, value) +#define NLA_PUT_NET16(skb, attrtype, value) \ + NLA_PUT_BE16(skb, attrtype | NLA_F_NET_BYTEORDER, value) + #define NLA_PUT_U32(skb, attrtype, value) \ NLA_PUT_TYPE(skb, u32, attrtype, value) #define NLA_PUT_BE32(skb, attrtype, value) \ NLA_PUT_TYPE(skb, __be32, attrtype, value) +#define NLA_PUT_NET32(skb, attrtype, value) \ + NLA_PUT_BE32(skb, attrtype | NLA_F_NET_BYTEORDER, value) + #define NLA_PUT_U64(skb, attrtype, value) \ NLA_PUT_TYPE(skb, u64, attrtype, value) #define NLA_PUT_BE64(skb, attrtype, value) \ NLA_PUT_TYPE(skb, __be64, attrtype, value) +#define NLA_PUT_NET64(skb, attrtype, value) \ + NLA_PUT_BE64(skb, attrtype | NLA_F_NET_BYTEORDER, value) + #define NLA_PUT_STRING(skb, attrtype, value) \ NLA_PUT(skb, attrtype, strlen(value) + 1, value) |