netlink.h (c57107c7f59fe438f8c5bb0ce50af857505276b8) netlink.h (e7479122befd7026cf0fb3b3740f17ebd9c64d35)
1#ifndef __NET_NETLINK_H
2#define __NET_NETLINK_H
3
4#include <linux/types.h>
5#include <linux/netlink.h>
6#include <linux/jiffies.h>
7#include <linux/in6.h>
8

--- 864 unchanged lines hidden (view full) ---

873 * @value: numeric value
874 */
875static inline int nla_put_net64(struct sk_buff *skb, int attrtype, __be64 value)
876{
877 return nla_put_be64(skb, attrtype | NLA_F_NET_BYTEORDER, value);
878}
879
880/**
1#ifndef __NET_NETLINK_H
2#define __NET_NETLINK_H
3
4#include <linux/types.h>
5#include <linux/netlink.h>
6#include <linux/jiffies.h>
7#include <linux/in6.h>
8

--- 864 unchanged lines hidden (view full) ---

873 * @value: numeric value
874 */
875static inline int nla_put_net64(struct sk_buff *skb, int attrtype, __be64 value)
876{
877 return nla_put_be64(skb, attrtype | NLA_F_NET_BYTEORDER, value);
878}
879
880/**
881 * nla_put_le64 - Add a __le64 netlink attribute to a socket buffer
881 * nla_put_le64 - Add a __le64 netlink attribute to a socket buffer and align it
882 * @skb: socket buffer to add attribute to
883 * @attrtype: attribute type
884 * @value: numeric value
882 * @skb: socket buffer to add attribute to
883 * @attrtype: attribute type
884 * @value: numeric value
885 * @padattr: attribute type for the padding
885 */
886 */
886static inline int nla_put_le64(struct sk_buff *skb, int attrtype, __le64 value)
887static inline int nla_put_le64(struct sk_buff *skb, int attrtype, __le64 value,
888 int padattr)
887{
889{
888 return nla_put(skb, attrtype, sizeof(__le64), &value);
890 return nla_put_64bit(skb, attrtype, sizeof(__le64), &value, padattr);
889}
890
891/**
892 * nla_put_s8 - Add a s8 netlink attribute to a socket buffer
893 * @skb: socket buffer to add attribute to
894 * @attrtype: attribute type
895 * @value: numeric value
896 */

--- 431 unchanged lines hidden ---
891}
892
893/**
894 * nla_put_s8 - Add a s8 netlink attribute to a socket buffer
895 * @skb: socket buffer to add attribute to
896 * @attrtype: attribute type
897 * @value: numeric value
898 */

--- 431 unchanged lines hidden ---