~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to include/net/netlink.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
290
290
 
291
291
/**
292
292
 * nlmsg_data - head of message payload
293
 
 * @nlh: netlink messsage header
 
293
 * @nlh: netlink message header
294
294
 */
295
295
static inline void *nlmsg_data(const struct nlmsghdr *nlh)
296
296
{
856
856
#define NLA_PUT_BE16(skb, attrtype, value) \
857
857
        NLA_PUT_TYPE(skb, __be16, attrtype, value)
858
858
 
 
859
#define NLA_PUT_NET16(skb, attrtype, value) \
 
860
        NLA_PUT_BE16(skb, attrtype | NLA_F_NET_BYTEORDER, value)
 
861
 
859
862
#define NLA_PUT_U32(skb, attrtype, value) \
860
863
        NLA_PUT_TYPE(skb, u32, attrtype, value)
861
864
 
862
865
#define NLA_PUT_BE32(skb, attrtype, value) \
863
866
        NLA_PUT_TYPE(skb, __be32, attrtype, value)
864
867
 
 
868
#define NLA_PUT_NET32(skb, attrtype, value) \
 
869
        NLA_PUT_BE32(skb, attrtype | NLA_F_NET_BYTEORDER, value)
 
870
 
865
871
#define NLA_PUT_U64(skb, attrtype, value) \
866
872
        NLA_PUT_TYPE(skb, u64, attrtype, value)
867
873
 
868
874
#define NLA_PUT_BE64(skb, attrtype, value) \
869
875
        NLA_PUT_TYPE(skb, __be64, attrtype, value)
870
876
 
 
877
#define NLA_PUT_NET64(skb, attrtype, value) \
 
878
        NLA_PUT_BE64(skb, attrtype | NLA_F_NET_BYTEORDER, value)
 
879
 
871
880
#define NLA_PUT_STRING(skb, attrtype, value) \
872
881
        NLA_PUT(skb, attrtype, strlen(value) + 1, value)
873
882