Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 78532
b: refs/heads/master
c: 838965b
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Jan 28, 2008
1 parent 4fc4690 commit 4cc6653
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: c7212e9d3938258abe3fd17d15bb0d5c1856b8df
refs/heads/master: 838965ba22066c7fcdbacfc543c387d0eb76c14c
12 changes: 12 additions & 0 deletions trunk/include/net/netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,9 @@ static inline int nla_put_msecs(struct sk_buff *skb, int attrtype,
#define NLA_PUT_LE16(skb, attrtype, value) \
NLA_PUT_TYPE(skb, __le16, attrtype, value)

#define NLA_PUT_BE16(skb, attrtype, value) \
NLA_PUT_TYPE(skb, __be16, attrtype, value)

#define NLA_PUT_U32(skb, attrtype, value) \
NLA_PUT_TYPE(skb, u32, attrtype, value)

Expand Down Expand Up @@ -926,6 +929,15 @@ static inline u16 nla_get_u16(struct nlattr *nla)
return *(u16 *) nla_data(nla);
}

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

/**
* nla_get_le16 - return payload of __le16 attribute
* @nla: __le16 netlink attribute
Expand Down

0 comments on commit 4cc6653

Please sign in to comment.