Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36776
b: refs/heads/master
c: 00012e5
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Sep 29, 2006
1 parent 1acd8a0 commit cf20e00
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b83738ae003dde613712ddb1e90a8a01f5587b51
refs/heads/master: 00012e5bb9527022cbc843c5d372b282dbe6c4af
12 changes: 12 additions & 0 deletions trunk/include/net/netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,9 @@ static inline int nla_put_msecs(struct sk_buff *skb, int attrtype,
#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_U64(skb, attrtype, value) \
NLA_PUT_TYPE(skb, u64, attrtype, value)

Expand All @@ -852,6 +855,15 @@ static inline u32 nla_get_u32(struct nlattr *nla)
return *(u32 *) nla_data(nla);
}

/**
* nla_get_be32 - return payload of __be32 attribute
* @nla: __be32 netlink attribute
*/
static inline __be32 nla_get_be32(struct nlattr *nla)
{
return *(__be32 *) nla_data(nla);
}

/**
* nla_get_u16 - return payload of u16 attribute
* @nla: u16 netlink attribute
Expand Down

0 comments on commit cf20e00

Please sign in to comment.