/linux-4.4.14/drivers/block/drbd/ |
H A D | drbd_nla.h | 6 extern struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype);
|
H A D | drbd_nla.c | 42 struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype) drbd_nla_find_nested() argument 53 return nla_find_nested(nla, attrtype); drbd_nla_find_nested()
|
/linux-4.4.14/include/net/ |
H A D | netlink.h | 241 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype); 246 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); 248 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); 250 void __nla_put(struct sk_buff *skb, int attrtype, int attrlen, 253 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data); 383 * @attrtype: type of attribute to look for 388 int hdrlen, int attrtype) nlmsg_find_attr() 391 nlmsg_attrlen(nlh, hdrlen), attrtype); nlmsg_find_attr() 714 * @attrtype: type of attribute to look for 719 nla_find_nested(const struct nlattr *nla, int attrtype) nla_find_nested() argument 721 return nla_find(nla_data(nla), nla_len(nla), attrtype); nla_find_nested() 743 * @attrtype: attribute type 746 static inline int nla_put_u8(struct sk_buff *skb, int attrtype, u8 value) nla_put_u8() argument 748 return nla_put(skb, attrtype, sizeof(u8), &value); nla_put_u8() 754 * @attrtype: attribute type 757 static inline int nla_put_u16(struct sk_buff *skb, int attrtype, u16 value) nla_put_u16() argument 759 return nla_put(skb, attrtype, sizeof(u16), &value); nla_put_u16() 765 * @attrtype: attribute type 768 static inline int nla_put_be16(struct sk_buff *skb, int attrtype, __be16 value) nla_put_be16() argument 770 return nla_put(skb, attrtype, sizeof(__be16), &value); nla_put_be16() 776 * @attrtype: attribute type 779 static inline int nla_put_net16(struct sk_buff *skb, int attrtype, __be16 value) nla_put_net16() argument 781 return nla_put_be16(skb, attrtype | NLA_F_NET_BYTEORDER, value); nla_put_net16() 787 * @attrtype: attribute type 790 static inline int nla_put_le16(struct sk_buff *skb, int attrtype, __le16 value) nla_put_le16() argument 792 return nla_put(skb, attrtype, sizeof(__le16), &value); nla_put_le16() 798 * @attrtype: attribute type 801 static inline int nla_put_u32(struct sk_buff *skb, int attrtype, u32 value) nla_put_u32() argument 803 return nla_put(skb, attrtype, sizeof(u32), &value); nla_put_u32() 809 * @attrtype: attribute type 812 static inline int nla_put_be32(struct sk_buff *skb, int attrtype, __be32 value) nla_put_be32() argument 814 return nla_put(skb, attrtype, sizeof(__be32), &value); nla_put_be32() 820 * @attrtype: attribute type 823 static inline int nla_put_net32(struct sk_buff *skb, int attrtype, __be32 value) nla_put_net32() argument 825 return nla_put_be32(skb, attrtype | NLA_F_NET_BYTEORDER, value); nla_put_net32() 831 * @attrtype: attribute type 834 static inline int nla_put_le32(struct sk_buff *skb, int attrtype, __le32 value) nla_put_le32() argument 836 return nla_put(skb, attrtype, sizeof(__le32), &value); nla_put_le32() 842 * @attrtype: attribute type 845 static inline int nla_put_u64(struct sk_buff *skb, int attrtype, u64 value) nla_put_u64() argument 847 return nla_put(skb, attrtype, sizeof(u64), &value); nla_put_u64() 853 * @attrtype: attribute type 856 static inline int nla_put_be64(struct sk_buff *skb, int attrtype, __be64 value) nla_put_be64() argument 858 return nla_put(skb, attrtype, sizeof(__be64), &value); nla_put_be64() 864 * @attrtype: attribute type 867 static inline int nla_put_net64(struct sk_buff *skb, int attrtype, __be64 value) nla_put_net64() argument 869 return nla_put_be64(skb, attrtype | NLA_F_NET_BYTEORDER, value); nla_put_net64() 875 * @attrtype: attribute type 878 static inline int nla_put_le64(struct sk_buff *skb, int attrtype, __le64 value) nla_put_le64() argument 880 return nla_put(skb, attrtype, sizeof(__le64), &value); nla_put_le64() 886 * @attrtype: attribute type 889 static inline int nla_put_s8(struct sk_buff *skb, int attrtype, s8 value) nla_put_s8() argument 891 return nla_put(skb, attrtype, sizeof(s8), &value); nla_put_s8() 897 * @attrtype: attribute type 900 static inline int nla_put_s16(struct sk_buff *skb, int attrtype, s16 value) nla_put_s16() argument 902 return nla_put(skb, attrtype, sizeof(s16), &value); nla_put_s16() 908 * @attrtype: attribute type 911 static inline int nla_put_s32(struct sk_buff *skb, int attrtype, s32 value) nla_put_s32() argument 913 return nla_put(skb, attrtype, sizeof(s32), &value); nla_put_s32() 919 * @attrtype: attribute type 922 static inline int nla_put_s64(struct sk_buff *skb, int attrtype, s64 value) nla_put_s64() argument 924 return nla_put(skb, attrtype, sizeof(s64), &value); nla_put_s64() 930 * @attrtype: attribute type 933 static inline int nla_put_string(struct sk_buff *skb, int attrtype, nla_put_string() argument 936 return nla_put(skb, attrtype, strlen(str) + 1, str); nla_put_string() 942 * @attrtype: attribute type 944 static inline int nla_put_flag(struct sk_buff *skb, int attrtype) nla_put_flag() argument 946 return nla_put(skb, attrtype, 0, NULL); nla_put_flag() 952 * @attrtype: attribute type 955 static inline int nla_put_msecs(struct sk_buff *skb, int attrtype, nla_put_msecs() argument 959 return nla_put(skb, attrtype, sizeof(u64), &tmp); nla_put_msecs() 966 * @attrtype: attribute type 969 static inline int nla_put_in_addr(struct sk_buff *skb, int attrtype, nla_put_in_addr() argument 972 return nla_put_be32(skb, attrtype, addr); nla_put_in_addr() 979 * @attrtype: attribute type 982 static inline int nla_put_in6_addr(struct sk_buff *skb, int attrtype, nla_put_in6_addr() argument 985 return nla_put(skb, attrtype, sizeof(*addr), addr); nla_put_in6_addr() 1172 * @attrtype: attribute type of container 1176 static inline struct nlattr *nla_nest_start(struct sk_buff *skb, int attrtype) nla_nest_start() argument 1180 if (nla_put(skb, attrtype, 0, NULL) < 0) nla_nest_start() 387 nlmsg_find_attr(const struct nlmsghdr *nlh, int hdrlen, int attrtype) nlmsg_find_attr() argument
|
H A D | garp.h | 14 u8 attrtype; member in struct:garp_msg_hdr
|
H A D | mrp.h | 11 u8 attrtype; member in struct:mrp_msg_hdr
|
/linux-4.4.14/lib/ |
H A D | nlattr.c | 218 * @attrtype: type of attribute to look for 222 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype) nla_find() argument 228 if (nla_type(nla) == attrtype) nla_find() 334 * @attrtype: attribute type 343 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen) __nla_reserve() argument 348 nla->nla_type = attrtype; __nla_reserve() 381 * @attrtype: attribute type 390 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen) nla_reserve() argument 395 return __nla_reserve(skb, attrtype, attrlen); nla_reserve() 421 * @attrtype: attribute type 428 void __nla_put(struct sk_buff *skb, int attrtype, int attrlen, __nla_put() argument 433 nla = __nla_reserve(skb, attrtype, attrlen); __nla_put() 459 * @attrtype: attribute type 466 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data) nla_put() argument 471 __nla_put(skb, attrtype, attrlen, data); nla_put()
|
/linux-4.4.14/net/802/ |
H A D | garp.c | 265 static int garp_pdu_append_msg(struct garp_applicant *app, u8 attrtype) garp_pdu_append_msg() argument 272 gm->attrtype = attrtype; garp_pdu_append_msg() 273 garp_cb(app->pdu)->cur_type = attrtype; garp_pdu_append_msg() 429 u8 attrtype) garp_pdu_parse_attr() 447 if (attrtype > app->app->maxattr) garp_pdu_parse_attr() 474 attr = garp_attr_lookup(app, ga->data, dlen, attrtype); garp_pdu_parse_attr() 488 if (gm->attrtype == 0) garp_pdu_parse_msg() 493 if (garp_pdu_parse_attr(app, skb, gm->attrtype) < 0) garp_pdu_parse_msg() 428 garp_pdu_parse_attr(struct garp_applicant *app, struct sk_buff *skb, u8 attrtype) garp_pdu_parse_attr() argument
|
H A D | mrp.c | 358 u8 attrtype, u8 attrlen) mrp_pdu_append_msg_hdr() 372 mh->attrtype = attrtype; mrp_pdu_append_msg_hdr() 413 mrp_cb(app->pdu)->mh->attrtype != attr->type || mrp_pdu_append_vecattr_event() 643 mrp_cb(skb)->mh->attrtype); mrp_pdu_parse_vecattr_event() 756 if (mrp_cb(skb)->mh->attrtype == 0 || mrp_pdu_parse_msg() 757 mrp_cb(skb)->mh->attrtype > app->app->maxattr || mrp_pdu_parse_msg() 357 mrp_pdu_append_msg_hdr(struct mrp_applicant *app, u8 attrtype, u8 attrlen) mrp_pdu_append_msg_hdr() argument
|
/linux-4.4.14/net/core/ |
H A D | sock_diag.c | 58 int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attrtype) sock_diag_put_meminfo() argument 71 return nla_put(skb, attrtype, sizeof(mem), &mem); sock_diag_put_meminfo() 76 struct sk_buff *skb, int attrtype) sock_diag_put_filterinfo() 85 nla_reserve(skb, attrtype, 0); sock_diag_put_filterinfo() 100 attr = nla_reserve(skb, attrtype, flen); sock_diag_put_filterinfo() 75 sock_diag_put_filterinfo(bool may_report_filterinfo, struct sock *sk, struct sk_buff *skb, int attrtype) sock_diag_put_filterinfo() argument
|
/linux-4.4.14/include/linux/ |
H A D | sock_diag.h | 31 struct sk_buff *skb, int attrtype);
|
/linux-4.4.14/net/mpls/ |
H A D | internal.h | 123 int nla_put_labels(struct sk_buff *skb, int attrtype, u8 labels,
|
H A D | af_mpls.c | 986 int nla_put_labels(struct sk_buff *skb, int attrtype, nla_put_labels() argument 993 nla = nla_reserve(skb, attrtype, labels*4); nla_put_labels()
|
/linux-4.4.14/net/openvswitch/ |
H A D | flow_netlink.h | 70 int ovs_nla_add_action(struct sw_flow_actions **sfa, int attrtype,
|
H A D | flow_netlink.c | 1776 int attrtype, void *data, int len, bool log) __add_action() 1784 a->nla_type = attrtype; __add_action() 1794 int ovs_nla_add_action(struct sw_flow_actions **sfa, int attrtype, void *data, ovs_nla_add_action() argument 1799 a = __add_action(sfa, attrtype, data, len, log); ovs_nla_add_action() 1805 int attrtype, bool log) add_nested_action_start() 1810 err = ovs_nla_add_action(sfa, attrtype, NULL, 0, log); add_nested_action_start() 1775 __add_action(struct sw_flow_actions **sfa, int attrtype, void *data, int len, bool log) __add_action() argument 1804 add_nested_action_start(struct sw_flow_actions **sfa, int attrtype, bool log) add_nested_action_start() argument
|
/linux-4.4.14/drivers/net/ethernet/rocker/ |
H A D | rocker.c | 803 int attrtype, int attrlen, const void *data) rocker_tlv_put() 814 tlv->type = attrtype; rocker_tlv_put() 822 int attrtype, u8 value) rocker_tlv_put_u8() 824 return rocker_tlv_put(desc_info, attrtype, sizeof(u8), &value); rocker_tlv_put_u8() 828 int attrtype, u16 value) rocker_tlv_put_u16() 830 return rocker_tlv_put(desc_info, attrtype, sizeof(u16), &value); rocker_tlv_put_u16() 834 int attrtype, __be16 value) rocker_tlv_put_be16() 836 return rocker_tlv_put(desc_info, attrtype, sizeof(__be16), &value); rocker_tlv_put_be16() 840 int attrtype, u32 value) rocker_tlv_put_u32() 842 return rocker_tlv_put(desc_info, attrtype, sizeof(u32), &value); rocker_tlv_put_u32() 846 int attrtype, __be32 value) rocker_tlv_put_be32() 848 return rocker_tlv_put(desc_info, attrtype, sizeof(__be32), &value); rocker_tlv_put_be32() 852 int attrtype, u64 value) rocker_tlv_put_u64() 854 return rocker_tlv_put(desc_info, attrtype, sizeof(u64), &value); rocker_tlv_put_u64() 858 rocker_tlv_nest_start(struct rocker_desc_info *desc_info, int attrtype) rocker_tlv_nest_start() argument 862 if (rocker_tlv_put(desc_info, attrtype, 0, NULL) < 0) rocker_tlv_nest_start() 802 rocker_tlv_put(struct rocker_desc_info *desc_info, int attrtype, int attrlen, const void *data) rocker_tlv_put() argument 821 rocker_tlv_put_u8(struct rocker_desc_info *desc_info, int attrtype, u8 value) rocker_tlv_put_u8() argument 827 rocker_tlv_put_u16(struct rocker_desc_info *desc_info, int attrtype, u16 value) rocker_tlv_put_u16() argument 833 rocker_tlv_put_be16(struct rocker_desc_info *desc_info, int attrtype, __be16 value) rocker_tlv_put_be16() argument 839 rocker_tlv_put_u32(struct rocker_desc_info *desc_info, int attrtype, u32 value) rocker_tlv_put_u32() argument 845 rocker_tlv_put_be32(struct rocker_desc_info *desc_info, int attrtype, __be32 value) rocker_tlv_put_be32() argument 851 rocker_tlv_put_u64(struct rocker_desc_info *desc_info, int attrtype, u64 value) rocker_tlv_put_u64() argument
|
/linux-4.4.14/fs/btrfs/ |
H A D | send.c | 594 #define TLV_PUT(sctx, attrtype, attrlen, data) \ 596 ret = tlv_put(sctx, attrtype, attrlen, data); \ 601 #define TLV_PUT_INT(sctx, attrtype, bits, value) \ 603 ret = tlv_put_u##bits(sctx, attrtype, value); \ 608 #define TLV_PUT_U8(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 8, data) 609 #define TLV_PUT_U16(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 16, data) 610 #define TLV_PUT_U32(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 32, data) 611 #define TLV_PUT_U64(sctx, attrtype, data) TLV_PUT_INT(sctx, attrtype, 64, data) 612 #define TLV_PUT_STRING(sctx, attrtype, str, len) \ 614 ret = tlv_put_string(sctx, attrtype, str, len); \ 618 #define TLV_PUT_PATH(sctx, attrtype, p) \ 620 ret = tlv_put_string(sctx, attrtype, p->start, \ 625 #define TLV_PUT_UUID(sctx, attrtype, uuid) \ 627 ret = tlv_put_uuid(sctx, attrtype, uuid); \ 631 #define TLV_PUT_BTRFS_TIMESPEC(sctx, attrtype, eb, ts) \ 633 ret = tlv_put_btrfs_timespec(sctx, attrtype, eb, ts); \
|
/linux-4.4.14/net/bridge/ |
H A D | br_netlink.c | 608 int attrtype, unsigned long mask) br_set_port_flag() 610 if (tb[attrtype]) { br_set_port_flag() 611 u8 flag = nla_get_u8(tb[attrtype]); br_set_port_flag() 607 br_set_port_flag(struct net_bridge_port *p, struct nlattr *tb[], int attrtype, unsigned long mask) br_set_port_flag() argument
|
/linux-4.4.14/net/netfilter/ |
H A D | nf_conntrack_netlink.c | 131 ctnetlink_dump_zone_id(struct sk_buff *skb, int attrtype, ctnetlink_dump_zone_id() argument 136 if (nla_put_be16(skb, attrtype, htons(zone->id))) ctnetlink_dump_zone_id()
|
/linux-4.4.14/net/ipv6/ |
H A D | addrconf.c | 4744 static void snmp6_fill_stats(u64 *stats, struct inet6_dev *idev, int attrtype, snmp6_fill_stats() argument 4747 switch (attrtype) { snmp6_fill_stats()
|