/linux-4.1.27/drivers/staging/gdm72xx/ |
D | netlink_k.c | 30 #define ND_NLMSG_DATA(nlh) \ argument 31 ((void *)((char *)nlmsg_data(nlh) + ND_IFINDEX_LEN)) 33 #define ND_NLMSG_R_LEN(nlh) (nlh->nlmsg_len-ND_IFINDEX_LEN) argument 34 #define ND_NLMSG_IFIDX(nlh) nlmsg_data(nlh) argument 49 struct nlmsghdr *nlh; in netlink_rcv_cb() local 56 nlh = (struct nlmsghdr *)skb->data; in netlink_rcv_cb() 58 if (skb->len < nlh->nlmsg_len || in netlink_rcv_cb() 59 nlh->nlmsg_len > ND_MAX_MSG_LEN) { in netlink_rcv_cb() 61 skb->len, nlh->nlmsg_len); in netlink_rcv_cb() 65 memcpy(&ifindex, ND_NLMSG_IFIDX(nlh), ND_IFINDEX_LEN); in netlink_rcv_cb() [all …]
|
/linux-4.1.27/drivers/staging/gdm724x/ |
D | netlink_k.c | 35 #define ND_NLMSG_DATA(nlh) ((void *)((char *)NLMSG_DATA(nlh) + \ argument 38 #define ND_NLMSG_R_LEN(nlh) (nlh->nlmsg_len-ND_IFINDEX_LEN) argument 39 #define ND_NLMSG_IFIDX(nlh) NLMSG_DATA(nlh) argument 46 struct nlmsghdr *nlh; in netlink_rcv_cb() local 62 nlh = (struct nlmsghdr *)skb->data; in netlink_rcv_cb() 64 if (skb->len < nlh->nlmsg_len || nlh->nlmsg_len > ND_MAX_MSG_LEN) { in netlink_rcv_cb() 66 skb->len, nlh->nlmsg_len); in netlink_rcv_cb() 70 memcpy(&ifindex, ND_NLMSG_IFIDX(nlh), ND_IFINDEX_LEN); in netlink_rcv_cb() 71 msg = ND_NLMSG_DATA(nlh); in netlink_rcv_cb() 72 mlen = ND_NLMSG_R_LEN(nlh); in netlink_rcv_cb() [all …]
|
/linux-4.1.27/net/netfilter/ |
D | nfnetlink.c | 153 static int nfnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) in nfnetlink_rcv_msg() argument 161 if (nlmsg_len(nlh) < sizeof(struct nfgenmsg)) in nfnetlink_rcv_msg() 164 type = nlh->nlmsg_type; in nfnetlink_rcv_msg() 190 u_int8_t cb_id = NFNL_MSG_TYPE(nlh->nlmsg_type); in nfnetlink_rcv_msg() 192 struct nlattr *attr = (void *)nlh + min_len; in nfnetlink_rcv_msg() 193 int attrlen = nlh->nlmsg_len - min_len; in nfnetlink_rcv_msg() 204 err = nc->call_rcu(net->nfnl, skb, nlh, in nfnetlink_rcv_msg() 215 err = nc->call(net->nfnl, skb, nlh, in nfnetlink_rcv_msg() 229 struct nlmsghdr *nlh; member 233 static int nfnl_err_add(struct list_head *list, struct nlmsghdr *nlh, int err) in nfnl_err_add() argument [all …]
|
D | nfnetlink_cttimeout.c | 72 const struct nlmsghdr *nlh, in cttimeout_new_timeout() argument 97 if (nlh->nlmsg_flags & NLM_F_EXCL) in cttimeout_new_timeout() 113 if (nlh->nlmsg_flags & NLM_F_REPLACE) { in cttimeout_new_timeout() 162 struct nlmsghdr *nlh; in ctnl_timeout_fill_info() local 168 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in ctnl_timeout_fill_info() 169 if (nlh == NULL) in ctnl_timeout_fill_info() 172 nfmsg = nlmsg_data(nlh); in ctnl_timeout_fill_info() 200 nlmsg_end(skb, nlh); in ctnl_timeout_fill_info() 205 nlmsg_cancel(skb, nlh); in ctnl_timeout_fill_info() 230 cb->nlh->nlmsg_seq, in ctnl_timeout_dump() [all …]
|
D | nf_conntrack_netlink.c | 461 struct nlmsghdr *nlh; in ctnetlink_fill_info() local 467 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in ctnetlink_fill_info() 468 if (nlh == NULL) in ctnetlink_fill_info() 471 nfmsg = nlmsg_data(nlh); in ctnetlink_fill_info() 509 nlmsg_end(skb, nlh); in ctnetlink_fill_info() 514 nlmsg_cancel(skb, nlh); in ctnetlink_fill_info() 613 struct nlmsghdr *nlh; in ctnetlink_conntrack_event() local 648 nlh = nlmsg_put(skb, item->portid, 0, type, sizeof(*nfmsg), flags); in ctnetlink_conntrack_event() 649 if (nlh == NULL) in ctnetlink_conntrack_event() 652 nfmsg = nlmsg_data(nlh); in ctnetlink_conntrack_event() [all …]
|
D | nfnetlink_acct.c | 53 const struct nlmsghdr *nlh, const struct nlattr * const tb[]) in nfnl_acct_new() argument 71 if (nlh->nlmsg_flags & NLM_F_EXCL) in nfnl_acct_new() 79 if (nlh->nlmsg_flags & NLM_F_REPLACE) { in nfnl_acct_new() 135 struct nlmsghdr *nlh; in nfnl_acct_fill_info() local 142 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_acct_fill_info() 143 if (nlh == NULL) in nfnl_acct_fill_info() 146 nfmsg = nlmsg_data(nlh); in nfnl_acct_fill_info() 176 nlmsg_end(skb, nlh); in nfnl_acct_fill_info() 181 nlmsg_cancel(skb, nlh); in nfnl_acct_fill_info() 211 cb->nlh->nlmsg_seq, in nfnl_acct_dump() [all …]
|
D | nf_tables_api.c | 93 const struct nlmsghdr *nlh, in nft_ctx_init() argument 105 ctx->report = nlmsg_report(nlh); in nft_ctx_init() 106 ctx->seq = nlh->nlmsg_seq; in nft_ctx_init() 408 struct nlmsghdr *nlh; in nf_tables_fill_table_info() local 412 nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct nfgenmsg), flags); in nf_tables_fill_table_info() 413 if (nlh == NULL) in nf_tables_fill_table_info() 416 nfmsg = nlmsg_data(nlh); in nf_tables_fill_table_info() 426 nlmsg_end(skb, nlh); in nf_tables_fill_table_info() 430 nlmsg_trim(skb, nlh); in nf_tables_fill_table_info() 468 const struct nfgenmsg *nfmsg = nlmsg_data(cb->nlh); in nf_tables_dump_tables() [all …]
|
D | nfnetlink_cthelper.c | 291 const struct nlmsghdr *nlh, const struct nlattr * const tb[]) in nfnl_cthelper_new() argument 323 if (nlh->nlmsg_flags & NLM_F_EXCL) { in nfnl_cthelper_new() 414 struct nlmsghdr *nlh; in nfnl_cthelper_fill_info() local 420 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_cthelper_fill_info() 421 if (nlh == NULL) in nfnl_cthelper_fill_info() 424 nfmsg = nlmsg_data(nlh); in nfnl_cthelper_fill_info() 452 nlmsg_end(skb, nlh); in nfnl_cthelper_fill_info() 457 nlmsg_cancel(skb, nlh); in nfnl_cthelper_fill_info() 484 cb->nlh->nlmsg_seq, in nfnl_cthelper_dump_table() 485 NFNL_MSG_TYPE(cb->nlh->nlmsg_type), in nfnl_cthelper_dump_table() [all …]
|
D | nfnetlink_queue_core.c | 292 struct nlmsghdr *nlh; in nfqnl_build_packet_message() local 362 nlh = nlmsg_put(skb, 0, 0, in nfqnl_build_packet_message() 365 if (!nlh) { in nfqnl_build_packet_message() 370 nfmsg = nlmsg_data(nlh); in nfqnl_build_packet_message() 506 nlh->nlmsg_len = skb->len; in nfqnl_build_packet_message() 809 #define RCV_SKB_FAIL(err) do { netlink_ack(skb, nlh, (err)); return; } while (0) 930 const struct nlmsghdr *nlh, in nfqnl_recv_verdict_batch() argument 933 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_verdict_batch() 980 const struct nlmsghdr *nlh, in nfqnl_recv_verdict() argument 983 struct nfgenmsg *nfmsg = nlmsg_data(nlh); in nfqnl_recv_verdict() [all …]
|
D | nft_compat.c | 492 struct nlmsghdr *nlh; in nfnl_compat_fill_info() local 497 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*nfmsg), flags); in nfnl_compat_fill_info() 498 if (nlh == NULL) in nfnl_compat_fill_info() 501 nfmsg = nlmsg_data(nlh); in nfnl_compat_fill_info() 511 nlmsg_end(skb, nlh); in nfnl_compat_fill_info() 516 nlmsg_cancel(skb, nlh); in nfnl_compat_fill_info() 522 const struct nlmsghdr *nlh, const struct nlattr * const tb[]) in nfnl_compat_get() argument 540 nfmsg = nlmsg_data(nlh); in nfnl_compat_get() 574 nlh->nlmsg_seq, in nfnl_compat_get() 575 NFNL_MSG_TYPE(nlh->nlmsg_type), in nfnl_compat_get()
|
D | nfnetlink_log.c | 354 struct nlmsghdr *nlh = nlmsg_put(inst->skb, 0, 0, in __nfulnl_send() local 358 if (WARN_ONCE(!nlh, "bad nlskb size: %u, tailroom %d\n", in __nfulnl_send() 407 struct nlmsghdr *nlh; in __build_packet_message() local 413 nlh = nlmsg_put(inst->skb, 0, 0, in __build_packet_message() 416 if (!nlh) in __build_packet_message() 418 nfmsg = nlmsg_data(nlh); in __build_packet_message() 593 nlh->nlmsg_len = inst->skb->tail - old_tail; in __build_packet_message() 601 #define RCV_SKB_FAIL(err) do { netlink_ack(skb, nlh, (err)); return; } while (0) 776 const struct nlmsghdr *nlh, in nfulnl_recv_unsupp() argument 800 const struct nlmsghdr *nlh, in nfulnl_recv_config() argument [all …]
|
D | xt_osf.c | 65 const struct nlmsghdr *nlh, in xt_osf_add_callback() argument 75 if (!(nlh->nlmsg_flags & NLM_F_CREATE)) in xt_osf_add_callback() 93 if (nlh->nlmsg_flags & NLM_F_EXCL) in xt_osf_add_callback() 108 const struct nlmsghdr *nlh, in xt_osf_remove_callback() argument
|
/linux-4.1.27/drivers/scsi/ |
D | scsi_netlink.c | 48 struct nlmsghdr *nlh; in scsi_nl_rcv_msg() local 56 nlh = nlmsg_hdr(skb); in scsi_nl_rcv_msg() 57 if ((nlh->nlmsg_len < (sizeof(*nlh) + sizeof(*hdr))) || in scsi_nl_rcv_msg() 58 (skb->len < nlh->nlmsg_len)) { in scsi_nl_rcv_msg() 64 rlen = NLMSG_ALIGN(nlh->nlmsg_len); in scsi_nl_rcv_msg() 68 if (nlh->nlmsg_type != SCSI_TRANSPORT_MSG) { in scsi_nl_rcv_msg() 73 hdr = nlmsg_data(nlh); in scsi_nl_rcv_msg() 85 if (nlh->nlmsg_len < (sizeof(*nlh) + hdr->msglen)) { in scsi_nl_rcv_msg() 113 if ((err) || (nlh->nlmsg_flags & NLM_F_ACK)) in scsi_nl_rcv_msg() 114 netlink_ack(skb, nlh, err); in scsi_nl_rcv_msg()
|
D | scsi_transport_iscsi.c | 2349 struct nlmsghdr *nlh; in iscsi_recv_pdu() local 2369 nlh = __nlmsg_put(skb, 0, 0, 0, (len - sizeof(*nlh)), 0); in iscsi_recv_pdu() 2370 ev = nlmsg_data(nlh); in iscsi_recv_pdu() 2388 struct nlmsghdr *nlh; in iscsi_offload_mesg() local 2399 nlh = __nlmsg_put(skb, 0, 0, 0, (len - sizeof(*nlh)), 0); in iscsi_offload_mesg() 2400 ev = nlmsg_data(nlh); in iscsi_offload_mesg() 2421 struct nlmsghdr *nlh; in iscsi_conn_error_event() local 2438 nlh = __nlmsg_put(skb, 0, 0, 0, (len - sizeof(*nlh)), 0); in iscsi_conn_error_event() 2439 ev = nlmsg_data(nlh); in iscsi_conn_error_event() 2456 struct nlmsghdr *nlh; in iscsi_conn_login_event() local [all …]
|
D | scsi_transport_fc.c | 538 struct nlmsghdr *nlh; in fc_host_post_event() local 557 nlh = nlmsg_put(skb, 0, 0, SCSI_TRANSPORT_MSG, len, 0); in fc_host_post_event() 558 if (!nlh) { in fc_host_post_event() 562 event = nlmsg_data(nlh); in fc_host_post_event() 607 struct nlmsghdr *nlh; in fc_host_post_vendor_event() local 625 nlh = nlmsg_put(skb, 0, 0, SCSI_TRANSPORT_MSG, len, 0); in fc_host_post_vendor_event() 626 if (!nlh) { in fc_host_post_vendor_event() 630 event = nlmsg_data(nlh); in fc_host_post_vendor_event()
|
/linux-4.1.27/include/net/ |
D | netlink.h | 226 struct nlmsghdr *nlh; member 292 static inline void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data() argument 294 return (unsigned char *) nlh + NLMSG_HDRLEN; in nlmsg_data() 301 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len() argument 303 return nlh->nlmsg_len - NLMSG_HDRLEN; in nlmsg_len() 311 static inline struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, in nlmsg_attrdata() argument 314 unsigned char *data = nlmsg_data(nlh); in nlmsg_attrdata() 323 static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen() argument 325 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen() 333 static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok() argument [all …]
|
D | switchdev.h | 77 struct nlmsghdr *nlh, u16 flags); 79 struct nlmsghdr *nlh, u16 flags); 81 struct nlmsghdr *nlh, u16 flags); 83 struct nlmsghdr *nlh, u16 flags); 121 struct nlmsghdr *nlh, in netdev_switch_port_bridge_setlink() argument 128 struct nlmsghdr *nlh, in netdev_switch_port_bridge_dellink() argument 135 struct nlmsghdr *nlh, in ndo_dflt_netdev_switch_port_bridge_dellink() argument 142 struct nlmsghdr *nlh, in ndo_dflt_netdev_switch_port_bridge_setlink() argument
|
D | genetlink.h | 188 u32 group, struct nlmsghdr *nlh, gfp_t flags); 219 static inline int genlmsg_parse(const struct nlmsghdr *nlh, in genlmsg_parse() argument 224 return nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse() 368 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - in genlmsg_len() local 370 return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_len()
|
D | rtnetlink.h | 18 static inline int rtnl_msg_family(const struct nlmsghdr *nlh) in rtnl_msg_family() argument 20 if (nlmsg_len(nlh) >= sizeof(struct rtgenmsg)) in rtnl_msg_family() 21 return ((struct rtgenmsg *) nlmsg_data(nlh))->rtgen_family; in rtnl_msg_family()
|
D | dn_fib.h | 104 const struct nlmsghdr *nlh, int *errp);
|
/linux-4.1.27/net/phonet/ |
D | pn_netlink.c | 64 static int addr_doit(struct sk_buff *skb, struct nlmsghdr *nlh) in addr_doit() argument 81 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_phonet_policy); in addr_doit() 85 ifm = nlmsg_data(nlh); in addr_doit() 97 if (nlh->nlmsg_type == RTM_NEWADDR) in addr_doit() 102 phonet_address_notify(nlh->nlmsg_type, dev, pnaddr); in addr_doit() 110 struct nlmsghdr *nlh; in fill_addr() local 112 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), 0); in fill_addr() 113 if (nlh == NULL) in fill_addr() 116 ifm = nlmsg_data(nlh); in fill_addr() 124 nlmsg_end(skb, nlh); in fill_addr() [all …]
|
/linux-4.1.27/drivers/infiniband/core/ |
D | iwpm_msg.c | 61 struct nlmsghdr *nlh; in iwpm_register_pid() local 72 skb = iwpm_create_nlmsg(RDMA_NL_IWPM_REG_PID, &nlh, nl_client); in iwpm_register_pid() 77 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in iwpm_register_pid() 78 nlmsg_request = iwpm_get_nlmsg_request(nlh->nlmsg_seq, nl_client, GFP_KERNEL); in iwpm_register_pid() 87 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, IWPM_NLA_REG_PID_SEQ); in iwpm_register_pid() 90 ret = ibnl_put_attr(skb, nlh, IWPM_IFNAME_SIZE, in iwpm_register_pid() 94 ret = ibnl_put_attr(skb, nlh, IWPM_DEVNAME_SIZE, in iwpm_register_pid() 98 ret = ibnl_put_attr(skb, nlh, IWPM_ULIBNAME_SIZE, in iwpm_register_pid() 106 ret = ibnl_multicast(skb, nlh, RDMA_NL_GROUP_IWPM, GFP_KERNEL); in iwpm_register_pid() 138 struct nlmsghdr *nlh; in iwpm_add_mapping() local [all …]
|
D | netlink.c | 105 void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq, in ibnl_put_msg() argument 111 *nlh = nlmsg_put(skb, 0, seq, RDMA_NL_GET_TYPE(client, op), in ibnl_put_msg() 113 if (!*nlh) in ibnl_put_msg() 115 (*nlh)->nlmsg_len = skb_tail_pointer(skb) - prev_tail; in ibnl_put_msg() 116 return nlmsg_data(*nlh); in ibnl_put_msg() 124 int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh, in ibnl_put_attr() argument 132 nlh->nlmsg_len += skb_tail_pointer(skb) - prev_tail; in ibnl_put_attr() 136 nlmsg_trim(skb, prev_tail - nlh->nlmsg_len); in ibnl_put_attr() 141 static int ibnl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) in ibnl_rcv_msg() argument 144 int type = nlh->nlmsg_type; in ibnl_rcv_msg() [all …]
|
D | iwpm_util.c | 442 struct sk_buff *iwpm_create_nlmsg(u32 nl_op, struct nlmsghdr **nlh, in iwpm_create_nlmsg() argument 452 if (!(ibnl_put_msg(skb, nlh, 0, 0, nl_client, nl_op, in iwpm_create_nlmsg() 470 ret = nlmsg_validate(cb->nlh, nlh_len, policy_max-1, nlmsg_policy); in iwpm_parse_nlmsg() 475 ret = nlmsg_parse(cb->nlh, nlh_len, nltb, policy_max-1, nlmsg_policy); in iwpm_parse_nlmsg() 584 struct nlmsghdr *nlh; in send_mapinfo_num() local 589 skb = iwpm_create_nlmsg(RDMA_NL_IWPM_MAPINFO_NUM, &nlh, nl_client); in send_mapinfo_num() 594 nlh->nlmsg_seq = iwpm_get_nlmsg_seq(); in send_mapinfo_num() 597 ret = ibnl_put_attr(skb, nlh, sizeof(u32), &msg_seq, IWPM_NLA_MAPINFO_SEQ); in send_mapinfo_num() 600 ret = ibnl_put_attr(skb, nlh, sizeof(u32), in send_mapinfo_num() 604 ret = ibnl_unicast(skb, nlh, iwpm_pid); in send_mapinfo_num() [all …]
|
D | iwpm_util.h | 230 struct sk_buff *iwpm_create_nlmsg(u32 nl_op, struct nlmsghdr **nlh,
|
D | cma.c | 3599 struct nlmsghdr *nlh; in cma_get_id_stats() local 3625 id_stats = ibnl_put_msg(skb, &nlh, cb->nlh->nlmsg_seq, in cma_get_id_stats() 3639 if (ibnl_put_attr(skb, nlh, in cma_get_id_stats() 3644 if (ibnl_put_attr(skb, nlh, in cma_get_id_stats()
|
/linux-4.1.27/include/uapi/linux/ |
D | netlink.h | 84 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument 85 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument 86 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 87 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument 88 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 89 (nlh)->nlmsg_len <= (len)) 90 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
|
/linux-4.1.27/net/decnet/netfilter/ |
D | dn_rtmsg.c | 38 struct nlmsghdr *nlh; in dnrmg_build_message() local 50 nlh = nlmsg_put(skb, 0, 0, 0, size, 0); in dnrmg_build_message() 51 if (!nlh) { in dnrmg_build_message() 56 rtm = (struct nf_dn_rtmsg *)nlmsg_data(nlh); in dnrmg_build_message() 60 nlh->nlmsg_len = skb->tail - old_tail; in dnrmg_build_message() 99 #define RCV_SKB_FAIL(err) do { netlink_ack(skb, nlh, (err)); return; } while (0) 103 struct nlmsghdr *nlh = nlmsg_hdr(skb); in dnrmg_receive_user_skb() local 105 if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh->nlmsg_len) in dnrmg_receive_user_skb()
|
/linux-4.1.27/net/xfrm/ |
D | xfrm_user.c | 590 static int xfrm_add_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_add_sa() argument 594 struct xfrm_usersa_info *p = nlmsg_data(nlh); in xfrm_add_sa() 608 if (nlh->nlmsg_type == XFRM_MSG_NEWSA) in xfrm_add_sa() 621 c.seq = nlh->nlmsg_seq; in xfrm_add_sa() 622 c.portid = nlh->nlmsg_pid; in xfrm_add_sa() 623 c.event = nlh->nlmsg_type; in xfrm_add_sa() 665 static int xfrm_del_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_del_sa() argument 672 struct xfrm_usersa_id *p = nlmsg_data(nlh); in xfrm_del_sa() 691 c.seq = nlh->nlmsg_seq; in xfrm_del_sa() 692 c.portid = nlh->nlmsg_pid; in xfrm_del_sa() [all …]
|
/linux-4.1.27/security/selinux/ |
D | netlink.c | 46 static void selnl_add_payload(struct nlmsghdr *nlh, int len, int msgtype, void *data) in selnl_add_payload() argument 50 struct selnl_msg_setenforce *msg = nlmsg_data(nlh); in selnl_add_payload() 58 struct selnl_msg_policyload *msg = nlmsg_data(nlh); in selnl_add_payload() 75 struct nlmsghdr *nlh; in selnl_notify() local 84 nlh = nlmsg_put(skb, 0, 0, msgtype, len, 0); in selnl_notify() 85 if (!nlh) in selnl_notify() 87 selnl_add_payload(nlh, len, msgtype, data); in selnl_notify() 88 nlh->nlmsg_len = skb->tail - tmp; in selnl_notify()
|
D | hooks.c | 4759 struct nlmsghdr *nlh; in selinux_nlmsg_perm() local 4766 nlh = nlmsg_hdr(skb); in selinux_nlmsg_perm() 4768 err = selinux_nlmsg_lookup(sksec->sclass, nlh->nlmsg_type, &perm); in selinux_nlmsg_perm() 4774 sk->sk_protocol, nlh->nlmsg_type, sksec->sclass); in selinux_nlmsg_perm()
|
/linux-4.1.27/net/ipv4/ |
D | inet_diag.c | 118 struct nlmsghdr *nlh; in inet_sk_diag_fill() local 125 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_sk_diag_fill() 127 if (!nlh) in inet_sk_diag_fill() 130 r = nlmsg_data(nlh); in inet_sk_diag_fill() 241 nlmsg_end(skb, nlh); in inet_sk_diag_fill() 245 nlmsg_cancel(skb, nlh); in inet_sk_diag_fill() 268 struct nlmsghdr *nlh; in inet_twsk_diag_fill() local 271 nlh = nlmsg_put(skb, portid, seq, unlh->nlmsg_type, sizeof(*r), in inet_twsk_diag_fill() 273 if (!nlh) in inet_twsk_diag_fill() 276 r = nlmsg_data(nlh); in inet_twsk_diag_fill() [all …]
|
D | udp_diag.c | 31 cb->nlh->nlmsg_seq, NLM_F_MULTI, cb->nlh); in sk_diag_dump() 35 const struct nlmsghdr *nlh, in udp_dump_one() argument 78 nlh->nlmsg_seq, 0, nlh); in udp_dump_one() 155 static int udp_diag_dump_one(struct sk_buff *in_skb, const struct nlmsghdr *nlh, in udp_diag_dump_one() argument 158 return udp_dump_one(&udp_table, in_skb, nlh, req); in udp_diag_dump_one() 182 static int udplite_diag_dump_one(struct sk_buff *in_skb, const struct nlmsghdr *nlh, in udplite_diag_dump_one() argument 185 return udp_dump_one(&udplite_table, in_skb, nlh, req); in udplite_diag_dump_one()
|
D | devinet.c | 327 int destroy, struct nlmsghdr *nlh, u32 portid) in __inet_del_ifa() argument 361 rtmsg_ifa(RTM_DELADDR, ifa, nlh, portid); in __inet_del_ifa() 398 rtmsg_ifa(RTM_DELADDR, ifa1, nlh, portid); in __inet_del_ifa() 411 rtmsg_ifa(RTM_NEWADDR, promote, nlh, portid); in __inet_del_ifa() 436 static int __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh, in __inet_insert_ifa() argument 487 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, portid); in __inet_insert_ifa() 571 static int inet_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh) in inet_rtm_deladdr() argument 582 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy); in inet_rtm_deladdr() 586 ifm = nlmsg_data(nlh); in inet_rtm_deladdr() 609 __inet_del_ifa(in_dev, ifap, 1, nlh, NETLINK_CB(skb).portid); in inet_rtm_deladdr() [all …]
|
D | fib_frontend.c | 597 struct nlmsghdr *nlh, struct fib_config *cfg) in rtm_to_fib_config() argument 603 err = nlmsg_validate(nlh, sizeof(*rtm), RTA_MAX, rtm_ipv4_policy); in rtm_to_fib_config() 609 rtm = nlmsg_data(nlh); in rtm_to_fib_config() 617 cfg->fc_nlflags = nlh->nlmsg_flags; in rtm_to_fib_config() 620 cfg->fc_nlinfo.nlh = nlh; in rtm_to_fib_config() 628 nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), remaining) { in rtm_to_fib_config() 667 static int inet_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh) in inet_rtm_delroute() argument 674 err = rtm_to_fib_config(net, skb, nlh, &cfg); in inet_rtm_delroute() 689 static int inet_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh) in inet_rtm_newroute() argument 696 err = rtm_to_fib_config(net, skb, nlh, &cfg); in inet_rtm_newroute() [all …]
|
D | tcp_diag.c | 42 static int tcp_diag_dump_one(struct sk_buff *in_skb, const struct nlmsghdr *nlh, in tcp_diag_dump_one() argument 45 return inet_diag_dump_one_icsk(&tcp_hashinfo, in_skb, nlh, req); in tcp_diag_dump_one()
|
D | ipmr.c | 640 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct iphdr)); in ipmr_destroy_unres() local 641 nlh->nlmsg_type = NLMSG_ERROR; in ipmr_destroy_unres() 642 nlh->nlmsg_len = nlmsg_msg_size(sizeof(struct nlmsgerr)); in ipmr_destroy_unres() 643 skb_trim(skb, nlh->nlmsg_len); in ipmr_destroy_unres() 644 e = nlmsg_data(nlh); in ipmr_destroy_unres() 924 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct iphdr)); in ipmr_cache_resolve() local 926 if (__ipmr_fill_mroute(mrt, skb, c, nlmsg_data(nlh)) > 0) { in ipmr_cache_resolve() 927 nlh->nlmsg_len = skb_tail_pointer(skb) - in ipmr_cache_resolve() 928 (u8 *)nlh; in ipmr_cache_resolve() 930 nlh->nlmsg_type = NLMSG_ERROR; in ipmr_cache_resolve() [all …]
|
D | fib_semantics.c | 389 u32 seq = info->nlh ? info->nlh->nlmsg_seq : 0; in rtmsg_fib() 406 info->nlh, GFP_KERNEL); in rtmsg_fib() 994 struct nlmsghdr *nlh; in fib_dump_info() local 997 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags); in fib_dump_info() 998 if (!nlh) in fib_dump_info() 1001 rtm = nlmsg_data(nlh); in fib_dump_info() 1075 nlmsg_end(skb, nlh); in fib_dump_info() 1079 nlmsg_cancel(skb, nlh); in fib_dump_info()
|
D | route.c | 2347 struct nlmsghdr *nlh; in rt_fill_info() local 2352 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*r), flags); in rt_fill_info() 2353 if (!nlh) in rt_fill_info() 2356 r = nlmsg_data(nlh); in rt_fill_info() 2446 nlmsg_end(skb, nlh); in rt_fill_info() 2450 nlmsg_cancel(skb, nlh); in rt_fill_info() 2454 static int inet_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh) in inet_rtm_getroute() argument 2468 err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_ipv4_policy); in inet_rtm_getroute() 2472 rtm = nlmsg_data(nlh); in inet_rtm_getroute() 2537 NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, in inet_rtm_getroute()
|
D | fou.c | 712 cb->nlh->nlmsg_seq, NLM_F_MULTI, in fou_nl_dump()
|
D | tcp_metrics.c | 902 hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in tcp_metrics_dump_info()
|
D | fib_trie.c | 1900 cb->nlh->nlmsg_seq, in fn_trie_dump_leaf()
|
/linux-4.1.27/net/wimax/ |
D | op-msg.c | 186 struct nlmsghdr *nlh = (void *) msg->head; in wimax_msg_data_len() local 189 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr), in wimax_msg_data_len() 208 struct nlmsghdr *nlh = (void *) msg->head; in wimax_msg_data() local 211 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr), in wimax_msg_data() 229 struct nlmsghdr *nlh = (void *) msg->head; in wimax_msg_len() local 232 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr), in wimax_msg_len() 337 struct nlmsghdr *nlh = info->nlhdr; in wimax_gnl_doit_msg_from_user() local 389 nlh->nlmsg_len, nlh->nlmsg_type, nlh->nlmsg_flags, in wimax_gnl_doit_msg_from_user() 390 nlh->nlmsg_seq, nlh->nlmsg_pid); in wimax_gnl_doit_msg_from_user()
|
/linux-4.1.27/Documentation/connector/ |
D | ucon.c | 62 struct nlmsghdr *nlh; in netlink_send() local 70 nlh = (struct nlmsghdr *)buf; in netlink_send() 71 nlh->nlmsg_seq = seq++; in netlink_send() 72 nlh->nlmsg_pid = getpid(); in netlink_send() 73 nlh->nlmsg_type = NLMSG_DONE; in netlink_send() 74 nlh->nlmsg_len = size; in netlink_send() 75 nlh->nlmsg_flags = 0; in netlink_send() 77 m = NLMSG_DATA(nlh); in netlink_send() 84 err = send(s, nlh, size, 0); in netlink_send()
|
D | cn_test.c | 59 struct nlmsghdr *nlh; 72 nlh = nlmsg_put(skb, 0, 0x123, NLMSG_DONE, size - sizeof(*nlh), 0); 73 if (!nlh) { 78 msg = nlmsg_data(nlh);
|
/linux-4.1.27/crypto/ |
D | crypto_user.c | 171 struct nlmsghdr *nlh; in crypto_report_alg() local 175 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, info->nlmsg_seq, in crypto_report_alg() 177 if (!nlh) { in crypto_report_alg() 182 ualg = nlmsg_data(nlh); in crypto_report_alg() 186 nlmsg_cancel(skb, nlh); in crypto_report_alg() 190 nlmsg_end(skb, nlh); in crypto_report_alg() 246 info.nlmsg_seq = cb->nlh->nlmsg_seq; in crypto_dump_report() 266 static int crypto_update_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_update_alg() argument 270 struct crypto_user_alg *p = nlmsg_data(nlh); in crypto_update_alg() 302 static int crypto_del_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_alg() argument [all …]
|
/linux-4.1.27/net/core/ |
D | sock_diag.c | 13 static int (*inet_rcv_compat)(struct sk_buff *skb, struct nlmsghdr *nlh); 107 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_register_inet_compat() argument 115 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_unregister_inet_compat() argument 155 static int __sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) in __sock_diag_rcv_msg() argument 158 struct sock_diag_req *req = nlmsg_data(nlh); in __sock_diag_rcv_msg() 161 if (nlmsg_len(nlh) < sizeof(*req)) in __sock_diag_rcv_msg() 176 err = hndl->dump(skb, nlh); in __sock_diag_rcv_msg() 182 static int sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) in sock_diag_rcv_msg() argument 186 switch (nlh->nlmsg_type) { in sock_diag_rcv_msg() 195 ret = inet_rcv_compat(skb, nlh); in sock_diag_rcv_msg() [all …]
|
D | rtnetlink.c | 642 struct nlmsghdr *nlh, gfp_t flags) in rtnl_notify() argument 647 if (nlh) in rtnl_notify() 648 report = nlmsg_report(nlh); in rtnl_notify() 1027 struct nlmsghdr *nlh; in rtnl_fill_ifinfo() local 1035 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ifm), flags); in rtnl_fill_ifinfo() 1036 if (nlh == NULL) in rtnl_fill_ifinfo() 1039 ifm = nlmsg_data(nlh); in rtnl_fill_ifinfo() 1244 nlmsg_end(skb, nlh); in rtnl_fill_ifinfo() 1248 nlmsg_cancel(skb, nlh); in rtnl_fill_ifinfo() 1338 hdrlen = nlmsg_len(cb->nlh) < sizeof(struct ifinfomsg) ? in rtnl_dump_ifinfo() [all …]
|
D | fib_rules.c | 65 struct fib_rules_ops *ops, struct nlmsghdr *nlh, 265 static int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr* nlh) in fib_nl_newrule() argument 268 struct fib_rule_hdr *frh = nlmsg_data(nlh); in fib_nl_newrule() 274 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*frh))) in fib_nl_newrule() 283 err = nlmsg_parse(nlh, sizeof(*frh), tb, FRA_MAX, ops->policy); in fib_nl_newrule() 410 notify_rule_change(RTM_NEWRULE, rule, ops, nlh, NETLINK_CB(skb).portid); in fib_nl_newrule() 422 static int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr* nlh) in fib_nl_delrule() argument 425 struct fib_rule_hdr *frh = nlmsg_data(nlh); in fib_nl_delrule() 431 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*frh))) in fib_nl_delrule() 440 err = nlmsg_parse(nlh, sizeof(*frh), tb, FRA_MAX, ops->policy); in fib_nl_delrule() [all …]
|
D | net_namespace.c | 496 static int rtnl_net_newid(struct sk_buff *skb, struct nlmsghdr *nlh) in rtnl_net_newid() argument 503 err = nlmsg_parse(nlh, sizeof(struct rtgenmsg), tb, NETNSA_MAX, in rtnl_net_newid() 544 struct nlmsghdr *nlh; in rtnl_net_fill() local 550 nlh = nlmsg_put(skb, portid, seq, cmd, sizeof(*rth), flags); in rtnl_net_fill() 551 if (!nlh) in rtnl_net_fill() 554 rth = nlmsg_data(nlh); in rtnl_net_fill() 567 nlmsg_end(skb, nlh); in rtnl_net_fill() 571 nlmsg_cancel(skb, nlh); in rtnl_net_fill() 575 static int rtnl_net_getid(struct sk_buff *skb, struct nlmsghdr *nlh) in rtnl_net_getid() argument 583 err = nlmsg_parse(nlh, sizeof(struct rtgenmsg), tb, NETNSA_MAX, in rtnl_net_getid() [all …]
|
D | neighbour.c | 1587 static int neigh_delete(struct sk_buff *skb, struct nlmsghdr *nlh) in neigh_delete() argument 1598 if (nlmsg_len(nlh) < sizeof(*ndm)) in neigh_delete() 1601 dst_attr = nlmsg_find_attr(nlh, sizeof(*ndm), NDA_DST); in neigh_delete() 1605 ndm = nlmsg_data(nlh); in neigh_delete() 1644 static int neigh_add(struct sk_buff *skb, struct nlmsghdr *nlh) in neigh_add() argument 1657 err = nlmsg_parse(nlh, sizeof(*ndm), tb, NDA_MAX, NULL); in neigh_add() 1665 ndm = nlmsg_data(nlh); in neigh_add() 1703 if (!(nlh->nlmsg_flags & NLM_F_CREATE)) { in neigh_add() 1714 if (nlh->nlmsg_flags & NLM_F_EXCL) { in neigh_add() 1720 if (!(nlh->nlmsg_flags & NLM_F_REPLACE)) in neigh_add() [all …]
|
D | drop_monitor.c | 141 struct nlmsghdr *nlh; in trace_drop_common() local 156 nlh = (struct nlmsghdr *)dskb->data; in trace_drop_common() 157 nla = genlmsg_data(nlmsg_data(nlh)); in trace_drop_common()
|
/linux-4.1.27/drivers/connector/ |
D | connector.c | 79 struct nlmsghdr *nlh; in cn_netlink_send_mult() local 112 nlh = nlmsg_put(skb, 0, msg->seq, NLMSG_DONE, size, 0); in cn_netlink_send_mult() 113 if (!nlh) { in cn_netlink_send_mult() 118 data = nlmsg_data(nlh); in cn_netlink_send_mult() 144 struct nlmsghdr *nlh; in cn_call_callback() local 152 nlh = nlmsg_hdr(skb); in cn_call_callback() 153 if (nlh->nlmsg_len < NLMSG_HDRLEN + sizeof(struct cn_msg) + msg->len) in cn_call_callback() 183 struct nlmsghdr *nlh; in cn_rx_skb() local 187 nlh = nlmsg_hdr(skb); in cn_rx_skb() 188 len = nlmsg_len(nlh); in cn_rx_skb() [all …]
|
/linux-4.1.27/net/bridge/ |
D | br_mdb.c | 118 struct nlmsghdr *nlh = NULL; in br_mdb_dump() local 135 nlh = nlmsg_put(skb, NETLINK_CB(cb->skb).portid, in br_mdb_dump() 136 cb->nlh->nlmsg_seq, RTM_GETMDB, in br_mdb_dump() 138 if (nlh == NULL) in br_mdb_dump() 141 bpm = nlmsg_data(nlh); in br_mdb_dump() 150 nlmsg_end(skb, nlh); in br_mdb_dump() 157 if (nlh) in br_mdb_dump() 158 nlmsg_end(skb, nlh); in br_mdb_dump() 169 struct nlmsghdr *nlh; in nlmsg_populate_mdb_fill() local 173 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*bpm), 0); in nlmsg_populate_mdb_fill() [all …]
|
D | br_netlink.c | 281 struct nlmsghdr *nlh; in br_fill_ifinfo() local 292 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*hdr), flags); in br_fill_ifinfo() 293 if (nlh == NULL) in br_fill_ifinfo() 296 hdr = nlmsg_data(nlh); in br_fill_ifinfo() 352 nlmsg_end(skb, nlh); in br_fill_ifinfo() 356 nlmsg_cancel(skb, nlh); in br_fill_ifinfo() 587 int br_setlink(struct net_device *dev, struct nlmsghdr *nlh, u16 flags) in br_setlink() argument 595 protinfo = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_PROTINFO); in br_setlink() 596 afspec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC); in br_setlink() 638 ret_offload = netdev_switch_port_bridge_setlink(dev, nlh, in br_setlink() [all …]
|
D | br_fdb.c | 606 struct nlmsghdr *nlh; in fdb_fill_info() local 609 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in fdb_fill_info() 610 if (nlh == NULL) in fdb_fill_info() 613 ndm = nlmsg_data(nlh); in fdb_fill_info() 636 nlmsg_end(skb, nlh); in fdb_fill_info() 640 nlmsg_cancel(skb, nlh); in fdb_fill_info() 717 cb->nlh->nlmsg_seq, in br_fdb_dump()
|
D | br_private.h | 400 int br_fdb_add(struct ndmsg *nlh, struct nlattr *tb[], struct net_device *dev,
|
/linux-4.1.27/net/netlink/ |
D | diag.c | 61 struct nlmsghdr *nlh; in sk_diag_fill() local 65 nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), in sk_diag_fill() 67 if (!nlh) in sk_diag_fill() 70 rep = nlmsg_data(nlh); in sk_diag_fill() 94 nlmsg_end(skb, nlh); in sk_diag_fill() 98 nlmsg_cancel(skb, nlh); in sk_diag_fill() 114 req = nlmsg_data(cb->nlh); in __netlink_diag_dump() 131 cb->nlh->nlmsg_seq, in __netlink_diag_dump() 154 cb->nlh->nlmsg_seq, in __netlink_diag_dump() 174 req = nlmsg_data(cb->nlh); in netlink_diag_dump()
|
D | genetlink.c | 499 struct nlmsghdr *nlh; in genlmsg_put() local 502 nlh = nlmsg_put(skb, portid, seq, family->id, GENL_HDRLEN + in genlmsg_put() 504 if (nlh == NULL) in genlmsg_put() 507 hdr = nlmsg_data(nlh); in genlmsg_put() 544 struct nlmsghdr *nlh) in genl_family_rcv_msg() argument 549 struct genlmsghdr *hdr = nlmsg_data(nlh); in genl_family_rcv_msg() 558 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen)) in genl_family_rcv_msg() 569 if ((nlh->nlmsg_flags & NLM_F_DUMP) == NLM_F_DUMP) { in genl_family_rcv_msg() 585 rc = __netlink_dump_start(net->genl_sock, skb, nlh, &c); in genl_family_rcv_msg() 595 rc = __netlink_dump_start(net->genl_sock, skb, nlh, &c); in genl_family_rcv_msg() [all …]
|
D | af_netlink.c | 2660 struct nlmsghdr *nlh; in __nlmsg_put() local 2663 nlh = (struct nlmsghdr *)skb_put(skb, NLMSG_ALIGN(size)); in __nlmsg_put() 2664 nlh->nlmsg_type = type; in __nlmsg_put() 2665 nlh->nlmsg_len = size; in __nlmsg_put() 2666 nlh->nlmsg_flags = flags; in __nlmsg_put() 2667 nlh->nlmsg_pid = portid; in __nlmsg_put() 2668 nlh->nlmsg_seq = seq; in __nlmsg_put() 2670 memset(nlmsg_data(nlh) + len, 0, NLMSG_ALIGN(size) - size); in __nlmsg_put() 2671 return nlh; in __nlmsg_put() 2685 struct nlmsghdr *nlh; in netlink_dump() local [all …]
|
/linux-4.1.27/include/rdma/ |
D | rdma_netlink.h | 45 void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq, 56 int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh, 66 int ibnl_unicast(struct sk_buff *skb, struct nlmsghdr *nlh, 77 int ibnl_multicast(struct sk_buff *skb, struct nlmsghdr *nlh,
|
/linux-4.1.27/net/ipv6/ |
D | addrlabel.c | 407 static int ip6addrlbl_newdel(struct sk_buff *skb, struct nlmsghdr *nlh) in ip6addrlbl_newdel() argument 416 err = nlmsg_parse(nlh, sizeof(*ifal), tb, IFAL_MAX, ifal_policy); in ip6addrlbl_newdel() 420 ifal = nlmsg_data(nlh); in ip6addrlbl_newdel() 436 switch (nlh->nlmsg_type) { in ip6addrlbl_newdel() 444 nlh->nlmsg_flags & NLM_F_REPLACE); in ip6addrlbl_newdel() 456 static void ip6addrlbl_putmsg(struct nlmsghdr *nlh, in ip6addrlbl_putmsg() argument 459 struct ifaddrlblmsg *ifal = nlmsg_data(nlh); in ip6addrlbl_putmsg() 473 struct nlmsghdr *nlh = nlmsg_put(skb, portid, seq, event, in ip6addrlbl_fill() local 475 if (!nlh) in ip6addrlbl_fill() 478 ip6addrlbl_putmsg(nlh, p->prefixlen, p->ifindex, lseq); in ip6addrlbl_fill() [all …]
|
D | addrconf.c | 488 struct nlmsghdr *nlh; in inet6_netconf_fill_devconf() local 491 nlh = nlmsg_put(skb, portid, seq, event, sizeof(struct netconfmsg), in inet6_netconf_fill_devconf() 493 if (!nlh) in inet6_netconf_fill_devconf() 496 ncm = nlmsg_data(nlh); in inet6_netconf_fill_devconf() 516 nlmsg_end(skb, nlh); in inet6_netconf_fill_devconf() 520 nlmsg_cancel(skb, nlh); in inet6_netconf_fill_devconf() 555 struct nlmsghdr *nlh) in inet6_netconf_get_devconf() argument 567 err = nlmsg_parse(nlh, sizeof(*ncm), tb, NETCONFA_MAX, in inet6_netconf_get_devconf() 602 nlh->nlmsg_seq, RTM_NEWNETCONF, 0, in inet6_netconf_get_devconf() 644 cb->nlh->nlmsg_seq, in inet6_netconf_dump_devconf() [all …]
|
D | route.c | 1546 if (cfg->fc_nlinfo.nlh && in ip6_route_info_create() 1547 !(cfg->fc_nlinfo.nlh->nlmsg_flags & NLM_F_CREATE)) { in ip6_route_info_create() 2034 .fc_nlinfo.nlh = NULL, in rt6_add_route_info() 2084 .fc_nlinfo.nlh = NULL, in rt6_add_dflt_router() 2426 static int rtm_to_fib6_config(struct sk_buff *skb, struct nlmsghdr *nlh, in rtm_to_fib6_config() argument 2434 err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_ipv6_policy); in rtm_to_fib6_config() 2439 rtm = nlmsg_data(nlh); in rtm_to_fib6_config() 2459 cfg->fc_nlinfo.nlh = nlh; in rtm_to_fib6_config() 2582 int replace = (cfg->fc_nlinfo.nlh && in ip6_route_multipath_add() 2583 (cfg->fc_nlinfo.nlh->nlmsg_flags & NLM_F_REPLACE)); in ip6_route_multipath_add() [all …]
|
D | ip6mr.c | 853 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct ipv6hdr)); in ip6mr_destroy_unres() local 854 nlh->nlmsg_type = NLMSG_ERROR; in ip6mr_destroy_unres() 855 nlh->nlmsg_len = nlmsg_msg_size(sizeof(struct nlmsgerr)); in ip6mr_destroy_unres() 856 skb_trim(skb, nlh->nlmsg_len); in ip6mr_destroy_unres() 857 ((struct nlmsgerr *)nlmsg_data(nlh))->error = -ETIMEDOUT; in ip6mr_destroy_unres() 1111 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct ipv6hdr)); in ip6mr_cache_resolve() local 1113 if (__ip6mr_fill_mroute(mrt, skb, c, nlmsg_data(nlh)) > 0) { in ip6mr_cache_resolve() 1114 nlh->nlmsg_len = skb_tail_pointer(skb) - (u8 *)nlh; in ip6mr_cache_resolve() 1116 nlh->nlmsg_type = NLMSG_ERROR; in ip6mr_cache_resolve() 1117 nlh->nlmsg_len = nlmsg_msg_size(sizeof(struct nlmsgerr)); in ip6mr_cache_resolve() [all …]
|
D | ip6_fib.c | 697 int replace = (info->nlh && in fib6_add_rt2node() 698 (info->nlh->nlmsg_flags & NLM_F_REPLACE)); in fib6_add_rt2node() 699 int add = (!info->nlh || in fib6_add_rt2node() 700 (info->nlh->nlmsg_flags & NLM_F_CREATE)); in fib6_add_rt2node() 716 if (info->nlh && in fib6_add_rt2node() 717 (info->nlh->nlmsg_flags & NLM_F_EXCL)) in fib6_add_rt2node() 910 if (info->nlh) { in fib6_add() 911 if (!(info->nlh->nlmsg_flags & NLM_F_CREATE)) in fib6_add() 913 if (info->nlh->nlmsg_flags & NLM_F_REPLACE) in fib6_add()
|
D | ndisc.c | 1025 struct nlmsghdr *nlh; in ndisc_ra_useropt() local 1039 nlh = nlmsg_put(skb, 0, 0, RTM_NEWNDUSEROPT, base_size, 0); in ndisc_ra_useropt() 1040 if (!nlh) { in ndisc_ra_useropt() 1044 ndmsg = nlmsg_data(nlh); in ndisc_ra_useropt() 1055 nlmsg_end(skb, nlh); in ndisc_ra_useropt()
|
/linux-4.1.27/net/netfilter/ipset/ |
D | ip_set_core.c | 714 flag_exist(const struct nlmsghdr *nlh) in flag_exist() argument 716 return nlh->nlmsg_flags & NLM_F_EXCL ? 0 : IPSET_FLAG_EXIST; in flag_exist() 723 struct nlmsghdr *nlh; in start_msg() local 726 nlh = nlmsg_put(skb, portid, seq, cmd | (NFNL_SUBSYS_IPSET << 8), in start_msg() 728 if (nlh == NULL) in start_msg() 731 nfmsg = nlmsg_data(nlh); in start_msg() 736 return nlh; in start_msg() 804 const struct nlmsghdr *nlh, in ip_set_none() argument 812 const struct nlmsghdr *nlh, in ip_set_create() argument 822 u32 flags = flag_exist(nlh); in ip_set_create() [all …]
|
/linux-4.1.27/net/dcb/ |
D | dcbnl.c | 204 struct nlmsghdr *nlh; in dcbnl_newmsg() local 210 nlh = nlmsg_put(skb, port, seq, type, sizeof(*dcb), flags); in dcbnl_newmsg() 211 BUG_ON(!nlh); in dcbnl_newmsg() 213 dcb = nlmsg_data(nlh); in dcbnl_newmsg() 219 *nlhp = nlh; in dcbnl_newmsg() 224 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getstate() argument 235 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfccfg() argument 280 static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getperm_hwaddr() argument 294 static int dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getcap() argument 338 static int dcbnl_getnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getnumtcs() argument [all …]
|
/linux-4.1.27/net/unix/ |
D | diag.c | 115 struct nlmsghdr *nlh; in sk_diag_fill() local 118 nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rep), in sk_diag_fill() 120 if (!nlh) in sk_diag_fill() 123 rep = nlmsg_data(nlh); in sk_diag_fill() 158 nlmsg_end(skb, nlh); in sk_diag_fill() 162 nlmsg_cancel(skb, nlh); in sk_diag_fill() 187 req = nlmsg_data(cb->nlh); in unix_diag_dump() 208 cb->nlh->nlmsg_seq, in unix_diag_dump() 244 const struct nlmsghdr *nlh, in unix_diag_get_exact() argument 273 nlh->nlmsg_seq, 0, req->udiag_ino); in unix_diag_get_exact()
|
/linux-4.1.27/net/switchdev/ |
D | switchdev.c | 142 struct nlmsghdr *nlh, u16 flags) in netdev_switch_port_bridge_setlink() argument 152 return ops->ndo_bridge_setlink(dev, nlh, flags); in netdev_switch_port_bridge_setlink() 167 struct nlmsghdr *nlh, u16 flags) in netdev_switch_port_bridge_dellink() argument 177 return ops->ndo_bridge_dellink(dev, nlh, flags); in netdev_switch_port_bridge_dellink() 192 struct nlmsghdr *nlh, u16 flags) in ndo_dflt_netdev_switch_port_bridge_setlink() argument 202 err = netdev_switch_port_bridge_setlink(lower_dev, nlh, flags); in ndo_dflt_netdev_switch_port_bridge_setlink() 222 struct nlmsghdr *nlh, u16 flags) in ndo_dflt_netdev_switch_port_bridge_dellink() argument 232 err = netdev_switch_port_bridge_dellink(lower_dev, nlh, flags); in ndo_dflt_netdev_switch_port_bridge_dellink()
|
/linux-4.1.27/kernel/ |
D | audit.c | 194 struct nlmsghdr *nlh = nlmsg_hdr(ab->skb); in audit_set_portid() local 195 nlh->nlmsg_pid = portid; in audit_set_portid() 394 struct nlmsghdr *nlh = nlmsg_hdr(skb); in audit_printk_skb() local 395 char *data = nlmsg_data(nlh); in audit_printk_skb() 397 if (nlh->nlmsg_type != AUDIT_EOE) { in audit_printk_skb() 399 pr_notice("type=%d %s\n", nlh->nlmsg_type, data); in audit_printk_skb() 548 struct nlmsghdr *nlh; in audit_make_reply() local 557 nlh = nlmsg_put(skb, portid, seq, t, size, flags); in audit_make_reply() 558 if (!nlh) in audit_make_reply() 560 data = nlmsg_data(nlh); in audit_make_reply() [all …]
|
/linux-4.1.27/net/mpls/ |
D | af_mpls.c | 41 struct nlmsghdr *nlh, struct net *net, u32 portid, 283 struct nlmsghdr *nlh = info ? info->nlh : NULL; in mpls_notify_route() local 290 rtmsg_lfib(event, index, rt, nlh, net, portid, nlm_flags); in mpls_notify_route() 675 static int rtm_to_route_config(struct sk_buff *skb, struct nlmsghdr *nlh, in rtm_to_route_config() argument 683 err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_mpls_policy); in rtm_to_route_config() 688 rtm = nlmsg_data(nlh); in rtm_to_route_config() 716 cfg->rc_nlflags = nlh->nlmsg_flags; in rtm_to_route_config() 718 cfg->rc_nlinfo.nlh = nlh; in rtm_to_route_config() 793 static int mpls_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh) in mpls_rtm_delroute() argument 798 err = rtm_to_route_config(skb, nlh, &cfg); in mpls_rtm_delroute() [all …]
|
/linux-4.1.27/include/linux/ |
D | sock_diag.h | 13 int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh); 19 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)); 20 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
|
D | netlink.h | 67 extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err); 122 const struct nlmsghdr *nlh; member 153 const struct nlmsghdr *nlh, 156 const struct nlmsghdr *nlh, in netlink_dump_start() argument 162 return __netlink_dump_start(ssk, skb, nlh, control); in netlink_dump_start()
|
D | inet_diag.h | 20 const struct nlmsghdr *nlh, 40 struct sk_buff *in_skb, const struct nlmsghdr *nlh,
|
D | rtnetlink.h | 13 u32 group, struct nlmsghdr *nlh, gfp_t flags);
|
D | netdevice.h | 1171 struct nlmsghdr *nlh, 1179 struct nlmsghdr *nlh,
|
/linux-4.1.27/net/packet/ |
D | diag.c | 135 struct nlmsghdr *nlh; in sk_diag_fill() local 139 nlh = nlmsg_put(skb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*rp), flags); in sk_diag_fill() 140 if (!nlh) in sk_diag_fill() 143 rp = nlmsg_data(nlh); in sk_diag_fill() 180 nlmsg_end(skb, nlh); in sk_diag_fill() 184 nlmsg_cancel(skb, nlh); in sk_diag_fill() 197 req = nlmsg_data(cb->nlh); in packet_diag_dump() 211 cb->nlh->nlmsg_seq, NLM_F_MULTI, in packet_diag_dump()
|
/linux-4.1.27/net/decnet/ |
D | dn_fib.c | 264 const struct nlmsghdr *nlh, int *errp) in dn_fib_create_info() argument 501 static int dn_fib_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh) in dn_fib_rtm_delroute() argument 505 struct rtmsg *r = nlmsg_data(nlh); in dn_fib_rtm_delroute() 515 err = nlmsg_parse(nlh, sizeof(*r), attrs, RTA_MAX, rtm_dn_policy); in dn_fib_rtm_delroute() 523 return tb->delete(tb, r, attrs, nlh, &NETLINK_CB(skb)); in dn_fib_rtm_delroute() 526 static int dn_fib_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh) in dn_fib_rtm_newroute() argument 530 struct rtmsg *r = nlmsg_data(nlh); in dn_fib_rtm_newroute() 540 err = nlmsg_parse(nlh, sizeof(*r), attrs, RTA_MAX, rtm_dn_policy); in dn_fib_rtm_newroute() 548 return tb->insert(tb, r, attrs, nlh, &NETLINK_CB(skb)); in dn_fib_rtm_newroute() 555 struct nlmsghdr nlh; in fib_magic() member [all …]
|
D | dn_table.c | 227 static int dn_fib_nh_match(struct rtmsg *r, struct nlmsghdr *nlh, struct nlattr *attrs[], struct dn… in dn_fib_nh_match() argument 304 struct nlmsghdr *nlh; in dn_fib_dump_info() local 306 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), flags); in dn_fib_dump_info() 307 if (!nlh) in dn_fib_dump_info() 310 rtm = nlmsg_data(nlh); in dn_fib_dump_info() 370 nlmsg_end(skb, nlh); in dn_fib_dump_info() 374 nlmsg_cancel(skb, nlh); in dn_fib_dump_info() 380 struct nlmsghdr *nlh, struct netlink_skb_parms *req) in dn_rtmsg_fib() argument 390 err = dn_fib_dump_info(skb, portid, nlh->nlmsg_seq, event, tb_id, in dn_rtmsg_fib() 399 rtnl_notify(skb, &init_net, portid, RTNLGRP_DECnet_ROUTE, nlh, GFP_KERNEL); in dn_rtmsg_fib() [all …]
|
D | dn_dev.c | 568 static int dn_nl_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh) in dn_nl_deladdr() argument 584 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, dn_ifa_policy); in dn_nl_deladdr() 589 ifm = nlmsg_data(nlh); in dn_nl_deladdr() 612 static int dn_nl_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh) in dn_nl_newaddr() argument 628 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, dn_ifa_policy); in dn_nl_newaddr() 635 ifm = nlmsg_data(nlh); in dn_nl_newaddr() 683 struct nlmsghdr *nlh; in dn_nl_fill_ifaddr() local 686 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*ifm), flags); in dn_nl_fill_ifaddr() 687 if (nlh == NULL) in dn_nl_fill_ifaddr() 690 ifm = nlmsg_data(nlh); in dn_nl_fill_ifaddr() [all …]
|
D | dn_route.c | 1555 struct nlmsghdr *nlh; in dn_rt_fill_info() local 1558 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*r), flags); in dn_rt_fill_info() 1559 if (!nlh) in dn_rt_fill_info() 1562 r = nlmsg_data(nlh); in dn_rt_fill_info() 1613 nlmsg_end(skb, nlh); in dn_rt_fill_info() 1617 nlmsg_cancel(skb, nlh); in dn_rt_fill_info() 1638 static int dn_cache_getroute(struct sk_buff *in_skb, struct nlmsghdr *nlh) in dn_cache_getroute() argument 1641 struct rtmsg *rtm = nlmsg_data(nlh); in dn_cache_getroute() 1652 err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_dn_policy); in dn_cache_getroute() 1706 err = dn_rt_fill_info(skb, NETLINK_CB(in_skb).portid, nlh->nlmsg_seq, RTM_NEWROUTE, 0, 0); in dn_cache_getroute() [all …]
|
/linux-4.1.27/net/sched/ |
D | act_api.c | 646 struct nlmsghdr *nlh; in tca_get_fill() local 650 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*t), flags); in tca_get_fill() 651 if (!nlh) in tca_get_fill() 653 t = nlmsg_data(nlh); in tca_get_fill() 667 nlh->nlmsg_len = skb_tail_pointer(skb) - b; in tca_get_fill() 763 struct nlmsghdr *nlh; in tca_action_flush() local 792 nlh = nlmsg_put(skb, portid, n->nlmsg_seq, RTM_DELACTION, sizeof(*t), 0); in tca_action_flush() 793 if (!nlh) in tca_action_flush() 795 t = nlmsg_data(nlh); in tca_action_flush() 812 nlh->nlmsg_len = skb_tail_pointer(skb) - b; in tca_action_flush() [all …]
|
D | cls_api.c | 358 struct nlmsghdr *nlh; in tcf_fill_node() local 361 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tcf_fill_node() 362 if (!nlh) in tcf_fill_node() 364 tcm = nlmsg_data(nlh); in tcf_fill_node() 379 nlh->nlmsg_len = skb_tail_pointer(skb) - b; in tcf_fill_node() 421 a->cb->nlh->nlmsg_seq, NLM_F_MULTI, RTM_NEWTFILTER); in tcf_node_dump() 433 struct tcmsg *tcm = nlmsg_data(cb->nlh); in tc_dump_tfilter() 438 if (nlmsg_len(cb->nlh) < sizeof(*tcm)) in tc_dump_tfilter() 480 cb->nlh->nlmsg_seq, NLM_F_MULTI, in tc_dump_tfilter()
|
D | sch_api.c | 1337 struct nlmsghdr *nlh; in tc_fill_qdisc() local 1344 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_qdisc() 1345 if (!nlh) in tc_fill_qdisc() 1347 tcm = nlmsg_data(nlh); in tc_fill_qdisc() 1385 nlh->nlmsg_len = skb_tail_pointer(skb) - b; in tc_fill_qdisc() 1446 cb->nlh->nlmsg_seq, NLM_F_MULTI, RTM_NEWQDISC) <= 0) in tc_dump_qdisc_root() 1457 cb->nlh->nlmsg_seq, NLM_F_MULTI, RTM_NEWQDISC) <= 0) in tc_dump_qdisc_root() 1657 struct nlmsghdr *nlh; in tc_fill_tclass() local 1663 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*tcm), flags); in tc_fill_tclass() 1664 if (!nlh) in tc_fill_tclass() [all …]
|
/linux-4.1.27/net/ieee802154/ |
D | netlink.c | 63 struct nlmsghdr *nlh = nlmsg_hdr(msg); in ieee802154_nl_mcast() local 64 void *hdr = genlmsg_data(nlmsg_data(nlh)); in ieee802154_nl_mcast() 92 struct nlmsghdr *nlh = nlmsg_hdr(msg); in ieee802154_nl_reply() local 93 void *hdr = genlmsg_data(nlmsg_data(nlh)); in ieee802154_nl_reply()
|
D | nl802154.c | 328 int ret = nlmsg_parse(cb->nlh, GENL_HDRLEN + nl802154_fam.hdrsize, in nl802154_dump_wpan_phy_parse() 396 cb->nlh->nlmsg_seq, NLM_F_MULTI); in nl802154_dump_wpan_phy() 526 cb->nlh->nlmsg_seq, NLM_F_MULTI, in nl802154_dump_interface()
|
D | nl-phy.c | 139 data->cb->nlh->nlmsg_seq, in ieee802154_dump_phy_iter()
|
D | nl-mac.c | 460 cb->nlh->nlmsg_seq, in ieee802154_dump_iface() 802 data.nlmsg_seq = cb->nlh->nlmsg_seq; in ieee802154_llsec_dump_table()
|
/linux-4.1.27/include/linux/netfilter/ |
D | nfnetlink.h | 12 const struct nlmsghdr *nlh, 15 const struct nlmsghdr *nlh, 18 const struct nlmsghdr *nlh,
|
/linux-4.1.27/net/can/ |
D | gw.c | 488 struct nlmsghdr *nlh; in cgw_put_job() local 490 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*rtcan), flags); in cgw_put_job() 491 if (!nlh) in cgw_put_job() 494 rtcan = nlmsg_data(nlh); in cgw_put_job() 578 nlmsg_end(skb, nlh); in cgw_put_job() 582 nlmsg_cancel(skb, nlh); in cgw_put_job() 599 cb->nlh->nlmsg_seq, NLM_F_MULTI) < 0) in cgw_dump_jobs() 625 static int cgw_parse_attr(struct nlmsghdr *nlh, struct cf_mod *mod, in cgw_parse_attr() argument 636 err = nlmsg_parse(nlh, sizeof(struct rtcanmsg), tb, CGW_MAX, in cgw_parse_attr() 801 static int cgw_create_job(struct sk_buff *skb, struct nlmsghdr *nlh) in cgw_create_job() argument [all …]
|
/linux-4.1.27/net/wireless/ |
D | wext-core.c | 421 struct nlmsghdr *nlh; in rtnetlink_ifinfo_prep() local 423 nlh = nlmsg_put(skb, 0, 0, RTM_NEWLINK, sizeof(*r), 0); in rtnetlink_ifinfo_prep() 424 if (!nlh) in rtnetlink_ifinfo_prep() 427 r = nlmsg_data(nlh); in rtnetlink_ifinfo_prep() 438 return nlh; in rtnetlink_ifinfo_prep() 440 nlmsg_cancel(skb, nlh); in rtnetlink_ifinfo_prep() 464 struct nlmsghdr *nlh; in wireless_send_event() local 559 nlh = rtnetlink_ifinfo_prep(dev, skb); in wireless_send_event() 560 if (WARN_ON(!nlh)) { in wireless_send_event() 581 nlmsg_end(skb, nlh); in wireless_send_event() [all …]
|
D | nl80211.c | 491 err = nlmsg_parse(cb->nlh, GENL_HDRLEN + nl80211_fam.hdrsize, in nl80211_prepare_wdev_dump() 1738 int ret = nlmsg_parse(cb->nlh, GENL_HDRLEN + nl80211_fam.hdrsize, in nl80211_dump_wiphy_parse() 1803 cb->nlh->nlmsg_seq, in nl80211_dump_wiphy() 2442 cb->nlh->nlmsg_seq, NLM_F_MULTI, in nl80211_dump_interface() 3887 cb->nlh->nlmsg_seq, NLM_F_MULTI, in nl80211_dump_station() 4627 cb->nlh->nlmsg_seq, NLM_F_MULTI, in nl80211_dump_mpath() 4823 cb->nlh->nlmsg_seq, NLM_F_MULTI, in nl80211_dump_mpp() 5567 err = nl80211_send_regdom(skb, cb, cb->nlh->nlmsg_seq, in nl80211_get_reg_dump() 5584 err = nl80211_send_regdom(skb, cb, cb->nlh->nlmsg_seq, in nl80211_get_reg_dump() 6656 cb->nlh->nlmsg_seq, NLM_F_MULTI, in nl80211_dump_scan() [all …]
|
/linux-4.1.27/tools/hv/ |
D | hv_vss_daemon.c | 148 struct nlmsghdr nlh = { .nlmsg_type = NLMSG_DONE }; in netlink_send() local 155 nlh.nlmsg_pid = getpid(); in netlink_send() 156 nlh.nlmsg_len = NLMSG_LENGTH(size); in netlink_send() 158 iov[0].iov_base = &nlh; in netlink_send() 159 iov[0].iov_len = sizeof(nlh); in netlink_send()
|
D | hv_kvp_daemon.c | 1393 struct nlmsghdr nlh = { .nlmsg_type = NLMSG_DONE }; in netlink_send() local 1400 nlh.nlmsg_pid = getpid(); in netlink_send() 1401 nlh.nlmsg_len = NLMSG_LENGTH(size); in netlink_send() 1403 iov[0].iov_base = &nlh; in netlink_send() 1404 iov[0].iov_len = sizeof(nlh); in netlink_send()
|
/linux-4.1.27/net/dccp/ |
D | diag.c | 58 const struct nlmsghdr *nlh, in dccp_diag_dump_one() argument 61 return inet_diag_dump_one_icsk(&dccp_hashinfo, in_skb, nlh, req); in dccp_diag_dump_one()
|
/linux-4.1.27/net/tipc/ |
D | netlink.c | 151 int tipc_nlmsg_parse(const struct nlmsghdr *nlh, struct nlattr ***attr) in tipc_nlmsg_parse() argument 159 return nlmsg_parse(nlh, GENL_HDRLEN, *attr, maxattr, tipc_nl_policy); in tipc_nlmsg_parse()
|
D | netlink.h | 40 int tipc_nlmsg_parse(const struct nlmsghdr *nlh, struct nlattr ***buf);
|
D | net.c | 194 msg.seq = cb->nlh->nlmsg_seq; in tipc_nl_net_dump()
|
D | bearer.c | 652 msg.seq = cb->nlh->nlmsg_seq; in tipc_nl_bearer_dump() 915 msg.seq = cb->nlh->nlmsg_seq; in tipc_nl_media_dump()
|
D | node.c | 576 msg.seq = cb->nlh->nlmsg_seq; in tipc_nl_node_dump()
|
D | socket.c | 2637 hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in __tipc_nl_add_sk() 2718 hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in __tipc_nl_add_sk_publ() 2803 err = tipc_nlmsg_parse(cb->nlh, &attrs); in tipc_nl_publ_dump()
|
D | name_table.c | 1009 msg.seq = cb->nlh->nlmsg_seq; in tipc_nl_name_table_dump()
|
D | netlink_compat.c | 178 cb.nlh = (struct nlmsghdr *)arg->data; in __tipc_nl_compat_dumpit()
|
D | link.c | 2120 msg.seq = cb->nlh->nlmsg_seq; in tipc_nl_link_dump()
|
/linux-4.1.27/Documentation/networking/ |
D | netlink_mmap.txt | 243 struct nlmsghdr *nlh; 272 nlh = (void *)hdr + NL_MMAP_HDRLEN; 285 nlh = buf; 290 process_msg(nlh); 309 struct nlmsghdr *nlh; 319 nlh = (void *)hdr + NL_MMAP_HDRLEN; 322 build_message(nlh); 325 hdr->nm_len = nlh->nlmsg_len;
|
/linux-4.1.27/net/dsa/ |
D | slave.c | 236 struct nlmsghdr *nlh; in dsa_slave_fill_info() local 239 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in dsa_slave_fill_info() 240 if (!nlh) in dsa_slave_fill_info() 243 ndm = nlmsg_data(nlh); in dsa_slave_fill_info() 258 nlmsg_end(skb, nlh); in dsa_slave_fill_info() 262 nlmsg_cancel(skb, nlh); in dsa_slave_fill_info() 292 cb->nlh->nlmsg_seq, in dsa_slave_fdb_dump()
|
/linux-4.1.27/net/netlabel/ |
D | netlabel_mgmt.c | 481 cb_arg.seq = cb->nlh->nlmsg_seq; in netlbl_mgmt_listall() 608 data = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in netlbl_mgmt_protocols_cb()
|
D | netlabel_unlabeled.c | 1198 cb_arg.seq = cb->nlh->nlmsg_seq; in netlbl_unlabel_staticlist() 1277 cb_arg.seq = cb->nlh->nlmsg_seq; in netlbl_unlabel_staticlistdef()
|
D | netlabel_cipso_v4.c | 669 cb_arg.seq = cb->nlh->nlmsg_seq; in netlbl_cipsov4_listall()
|
/linux-4.1.27/net/openvswitch/ |
D | datapath.c | 1291 struct ovs_header *ovs_header = genlmsg_data(nlmsg_data(cb->nlh)); in ovs_flow_cmd_dump() 1297 err = genlmsg_parse(cb->nlh, &dp_flow_genl_family, a, in ovs_flow_cmd_dump() 1323 cb->nlh->nlmsg_seq, NLM_F_MULTI, in ovs_flow_cmd_dump() 1712 cb->nlh->nlmsg_seq, NLM_F_MULTI, in ovs_dp_cmd_dump() 2065 struct ovs_header *ovs_header = genlmsg_data(nlmsg_data(cb->nlh)); in ovs_vport_cmd_dump() 2084 cb->nlh->nlmsg_seq, in ovs_vport_cmd_dump()
|
/linux-4.1.27/net/nfc/ |
D | netlink.c | 72 hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in nfc_genl_send_target() 119 rc = nlmsg_parse(cb->nlh, GENL_HDRLEN + nfc_genl_family.hdrsize, in __get_device_from_cb() 605 cb->nlh->nlmsg_seq, cb, NLM_F_MULTI); in nfc_genl_dump_devices() 1338 cb->nlh->nlmsg_seq, cb, NLM_F_MULTI); in nfc_genl_dump_ses()
|
/linux-4.1.27/drivers/net/team/ |
D | team.c | 2319 struct nlmsghdr *nlh; in team_nl_send_options_get() local 2368 nlh = nlmsg_put(skb, portid, seq, NLMSG_DONE, 0, flags | NLM_F_MULTI); in team_nl_send_options_get() 2369 if (!nlh) { in team_nl_send_options_get() 2587 struct nlmsghdr *nlh; in team_nl_send_port_list_get() local 2646 nlh = nlmsg_put(skb, portid, seq, NLMSG_DONE, 0, flags | NLM_F_MULTI); in team_nl_send_port_list_get() 2647 if (!nlh) { in team_nl_send_port_list_get()
|
/linux-4.1.27/drivers/net/ |
D | vxlan.c | 313 struct nlmsghdr *nlh; in vxlan_fdb_info() local 317 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in vxlan_fdb_info() 318 if (nlh == NULL) in vxlan_fdb_info() 321 ndm = nlmsg_data(nlh); in vxlan_fdb_info() 366 nlmsg_end(skb, nlh); in vxlan_fdb_info() 370 nlmsg_cancel(skb, nlh); in vxlan_fdb_info() 972 cb->nlh->nlmsg_seq, in vxlan_fdb_dump()
|
/linux-4.1.27/drivers/net/ethernet/rocker/ |
D | rocker.c | 4075 struct nlmsghdr *nlh; in rocker_fdb_fill_info() local 4078 nlh = nlmsg_put(skb, portid, seq, type, sizeof(*ndm), flags); in rocker_fdb_fill_info() 4079 if (!nlh) in rocker_fdb_fill_info() 4082 ndm = nlmsg_data(nlh); in rocker_fdb_fill_info() 4097 nlmsg_end(skb, nlh); in rocker_fdb_fill_info() 4101 nlmsg_cancel(skb, nlh); in rocker_fdb_fill_info() 4131 cb->nlh->nlmsg_seq, in rocker_port_fdb_dump() 4143 struct nlmsghdr *nlh, u16 flags) in rocker_port_bridge_setlink() argument 4150 protinfo = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), in rocker_port_bridge_setlink()
|
/linux-4.1.27/net/l2tp/ |
D | l2tp_netlink.c | 466 cb->nlh->nlmsg_seq, NLM_F_MULTI, in l2tp_nl_cmd_tunnel_dump() 832 cb->nlh->nlmsg_seq, NLM_F_MULTI, in l2tp_nl_cmd_session_dump()
|
/linux-4.1.27/net/netfilter/ipvs/ |
D | ip_vs_ctl.c | 2961 hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in ip_vs_genl_dump_service() 3158 hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in ip_vs_genl_dump_dest() 3188 if (nlmsg_parse(cb->nlh, GENL_HDRLEN, attrs, in ip_vs_genl_dump_dests() 3295 hdr = genlmsg_put(skb, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, in ip_vs_genl_dump_daemon()
|
/linux-4.1.27/drivers/block/drbd/ |
D | drbd_nl.c | 3135 cb->nlh->nlmsg_seq, &drbd_genl_family, in get_one_status() 3216 nla = nla_find(nlmsg_attrdata(cb->nlh, hdrlen), in drbd_adm_get_status_all() 3217 nlmsg_attrlen(cb->nlh, hdrlen), in drbd_adm_get_status_all()
|
/linux-4.1.27/drivers/net/ethernet/emulex/benet/ |
D | be_main.c | 4801 static int be_ndo_bridge_setlink(struct net_device *dev, struct nlmsghdr *nlh, in be_ndo_bridge_setlink() argument 4813 br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC); in be_ndo_bridge_setlink()
|
/linux-4.1.27/drivers/net/wireless/ |
D | mac80211_hwsim.c | 3012 cb->nlh->nlmsg_seq, cb, in hwsim_dump_radio_nl()
|
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_main.c | 8011 struct nlmsghdr *nlh, u16 flags) in ixgbe_ndo_bridge_setlink() argument 8020 br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC); in ixgbe_ndo_bridge_setlink()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
D | i40e_main.c | 7991 struct nlmsghdr *nlh) in i40e_ndo_bridge_setlink() argument 8010 br_spec = nlmsg_find_attr(nlh, sizeof(struct ifinfomsg), IFLA_AF_SPEC); in i40e_ndo_bridge_setlink()
|