Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300380
b: refs/heads/master
c: 569a8fc
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Apr 1, 2012
1 parent f4e2fe1 commit 1396dc7
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7f116b5b6c2418e9d9ba2c2ba82cbbad45e36fc5
refs/heads/master: 569a8fc38367dfafd87454f27ac646c8e6b54bca
35 changes: 34 additions & 1 deletion trunk/include/net/netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,17 @@ static inline int nla_put_u16(struct sk_buff *skb, int attrtype, u16 value)
return nla_put(skb, attrtype, sizeof(u16), &value);
}

/**
* nla_put_be16 - Add a __be16 netlink attribute to a socket buffer
* @skb: socket buffer to add attribute to
* @attrtype: attribute type
* @value: numeric value
*/
static inline int nla_put_be16(struct sk_buff *skb, int attrtype, __be16 value)
{
return nla_put(skb, attrtype, sizeof(__be16), &value);
}

/**
* nla_put_u32 - Add a u32 netlink attribute to a socket buffer
* @skb: socket buffer to add attribute to
Expand All @@ -783,7 +794,18 @@ static inline int nla_put_u32(struct sk_buff *skb, int attrtype, u32 value)
}

/**
* nla_put_64 - Add a u64 netlink attribute to a socket buffer
* nla_put_be32 - Add a __be32 netlink attribute to a socket buffer
* @skb: socket buffer to add attribute to
* @attrtype: attribute type
* @value: numeric value
*/
static inline int nla_put_be32(struct sk_buff *skb, int attrtype, __be32 value)
{
return nla_put(skb, attrtype, sizeof(__be32), &value);
}

/**
* nla_put_u64 - Add a u64 netlink attribute to a socket buffer
* @skb: socket buffer to add attribute to
* @attrtype: attribute type
* @value: numeric value
Expand All @@ -793,6 +815,17 @@ static inline int nla_put_u64(struct sk_buff *skb, int attrtype, u64 value)
return nla_put(skb, attrtype, sizeof(u64), &value);
}

/**
* nla_put_be64 - Add a __be64 netlink attribute to a socket buffer
* @skb: socket buffer to add attribute to
* @attrtype: attribute type
* @value: numeric value
*/
static inline int nla_put_be64(struct sk_buff *skb, int attrtype, __be64 value)
{
return nla_put(skb, attrtype, sizeof(__be64), &value);
}

/**
* nla_put_string - Add a string netlink attribute to a socket buffer
* @skb: socket buffer to add attribute to
Expand Down

0 comments on commit 1396dc7

Please sign in to comment.