• Home
  • Raw
  • Download

Lines Matching refs:attrtype

441 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype);
447 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
448 struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype,
451 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
452 struct nlattr *nla_reserve_64bit(struct sk_buff *skb, int attrtype,
455 void __nla_put(struct sk_buff *skb, int attrtype, int attrlen,
457 void __nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen,
460 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data);
461 int nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen,
739 int hdrlen, int attrtype) in nlmsg_find_attr() argument
742 nlmsg_attrlen(nlh, hdrlen), attrtype); in nlmsg_find_attr()
1122 nla_find_nested(const struct nlattr *nla, int attrtype) in nla_find_nested() argument
1124 return nla_find(nla_data(nla), nla_len(nla), attrtype); in nla_find_nested()
1176 static inline int nla_put_u8(struct sk_buff *skb, int attrtype, u8 value) in nla_put_u8() argument
1181 return nla_put(skb, attrtype, sizeof(u8), &tmp); in nla_put_u8()
1190 static inline int nla_put_u16(struct sk_buff *skb, int attrtype, u16 value) in nla_put_u16() argument
1194 return nla_put(skb, attrtype, sizeof(u16), &tmp); in nla_put_u16()
1203 static inline int nla_put_be16(struct sk_buff *skb, int attrtype, __be16 value) in nla_put_be16() argument
1207 return nla_put(skb, attrtype, sizeof(__be16), &tmp); in nla_put_be16()
1216 static inline int nla_put_net16(struct sk_buff *skb, int attrtype, __be16 value) in nla_put_net16() argument
1220 return nla_put_be16(skb, attrtype | NLA_F_NET_BYTEORDER, tmp); in nla_put_net16()
1229 static inline int nla_put_le16(struct sk_buff *skb, int attrtype, __le16 value) in nla_put_le16() argument
1233 return nla_put(skb, attrtype, sizeof(__le16), &tmp); in nla_put_le16()
1242 static inline int nla_put_u32(struct sk_buff *skb, int attrtype, u32 value) in nla_put_u32() argument
1246 return nla_put(skb, attrtype, sizeof(u32), &tmp); in nla_put_u32()
1255 static inline int nla_put_be32(struct sk_buff *skb, int attrtype, __be32 value) in nla_put_be32() argument
1259 return nla_put(skb, attrtype, sizeof(__be32), &tmp); in nla_put_be32()
1268 static inline int nla_put_net32(struct sk_buff *skb, int attrtype, __be32 value) in nla_put_net32() argument
1272 return nla_put_be32(skb, attrtype | NLA_F_NET_BYTEORDER, tmp); in nla_put_net32()
1281 static inline int nla_put_le32(struct sk_buff *skb, int attrtype, __le32 value) in nla_put_le32() argument
1285 return nla_put(skb, attrtype, sizeof(__le32), &tmp); in nla_put_le32()
1295 static inline int nla_put_u64_64bit(struct sk_buff *skb, int attrtype, in nla_put_u64_64bit() argument
1300 return nla_put_64bit(skb, attrtype, sizeof(u64), &tmp, padattr); in nla_put_u64_64bit()
1310 static inline int nla_put_be64(struct sk_buff *skb, int attrtype, __be64 value, in nla_put_be64() argument
1315 return nla_put_64bit(skb, attrtype, sizeof(__be64), &tmp, padattr); in nla_put_be64()
1325 static inline int nla_put_net64(struct sk_buff *skb, int attrtype, __be64 value, in nla_put_net64() argument
1330 return nla_put_be64(skb, attrtype | NLA_F_NET_BYTEORDER, tmp, in nla_put_net64()
1341 static inline int nla_put_le64(struct sk_buff *skb, int attrtype, __le64 value, in nla_put_le64() argument
1346 return nla_put_64bit(skb, attrtype, sizeof(__le64), &tmp, padattr); in nla_put_le64()
1355 static inline int nla_put_s8(struct sk_buff *skb, int attrtype, s8 value) in nla_put_s8() argument
1359 return nla_put(skb, attrtype, sizeof(s8), &tmp); in nla_put_s8()
1368 static inline int nla_put_s16(struct sk_buff *skb, int attrtype, s16 value) in nla_put_s16() argument
1372 return nla_put(skb, attrtype, sizeof(s16), &tmp); in nla_put_s16()
1381 static inline int nla_put_s32(struct sk_buff *skb, int attrtype, s32 value) in nla_put_s32() argument
1385 return nla_put(skb, attrtype, sizeof(s32), &tmp); in nla_put_s32()
1395 static inline int nla_put_s64(struct sk_buff *skb, int attrtype, s64 value, in nla_put_s64() argument
1400 return nla_put_64bit(skb, attrtype, sizeof(s64), &tmp, padattr); in nla_put_s64()
1409 static inline int nla_put_string(struct sk_buff *skb, int attrtype, in nla_put_string() argument
1412 return nla_put(skb, attrtype, strlen(str) + 1, str); in nla_put_string()
1420 static inline int nla_put_flag(struct sk_buff *skb, int attrtype) in nla_put_flag() argument
1422 return nla_put(skb, attrtype, 0, NULL); in nla_put_flag()
1432 static inline int nla_put_msecs(struct sk_buff *skb, int attrtype, in nla_put_msecs() argument
1437 return nla_put_64bit(skb, attrtype, sizeof(u64), &tmp, padattr); in nla_put_msecs()
1447 static inline int nla_put_in_addr(struct sk_buff *skb, int attrtype, in nla_put_in_addr() argument
1452 return nla_put_be32(skb, attrtype, tmp); in nla_put_in_addr()
1462 static inline int nla_put_in6_addr(struct sk_buff *skb, int attrtype, in nla_put_in6_addr() argument
1465 return nla_put(skb, attrtype, sizeof(*addr), addr); in nla_put_in6_addr()
1683 int attrtype) in nla_nest_start_noflag() argument
1687 if (nla_put(skb, attrtype, 0, NULL) < 0) in nla_nest_start_noflag()
1703 static inline struct nlattr *nla_nest_start(struct sk_buff *skb, int attrtype) in nla_nest_start() argument
1705 return nla_nest_start_noflag(skb, attrtype | NLA_F_NESTED); in nla_nest_start()