Home
last modified time | relevance | path

Searched refs:nlmsg_type (Results 1 – 25 of 63) sorted by relevance

123

/third_party/ltp/lib/
Dtst_crypto.c50 nh->nlmsg_type, nh->nlmsg_seq, ses->seq_num); in tst_crypto_recv_ack()
56 if (nh->nlmsg_type == NLMSG_ERROR) in tst_crypto_recv_ack()
60 nh->nlmsg_type, nh->nlmsg_seq); in tst_crypto_recv_ack()
73 .nlmsg_type = CRYPTO_MSG_NEWALG, in tst_crypto_add_alg()
91 .nlmsg_type = CRYPTO_MSG_DELALG, in tst_crypto_del_alg()
/third_party/ltp/testcases/kernel/crypto/
Dcrypto_user01.c143 nh->nlmsg_type, nh->nlmsg_seq, ses.seq_num); in validate_alg_list()
145 if (nh->nlmsg_type == NLMSG_DONE) in validate_alg_list()
147 if (nh->nlmsg_type != CRYPTO_MSG_GETALG) { in validate_alg_list()
150 nh->nlmsg_type, nh->nlmsg_seq); in validate_alg_list()
161 .nlmsg_type = CRYPTO_MSG_GETALG, in run()
/third_party/libwebsockets/lib/roles/netlink/
Dops-netlink.c119 lwsl_cx_netlink(cx, "RTM %d", h->nlmsg_type); in rops_handle_POLLIN_netlink()
133 switch (h->nlmsg_type) { in rops_handle_POLLIN_netlink()
193 h->nlmsg_type == RTM_NEWADDR ? in rops_handle_POLLIN_netlink()
206 h->nlmsg_type == RTM_NEWROUTE ? in rops_handle_POLLIN_netlink()
216 lwsl_cx_netlink(cx, "%s", h->nlmsg_type == in rops_handle_POLLIN_netlink()
243 h->nlmsg_type); in rops_handle_POLLIN_netlink()
306 switch (h->nlmsg_type) { in rops_handle_POLLIN_netlink()
411 (h->nlmsg_type == RTM_DELROUTE) ? in rops_handle_POLLIN_netlink()
561 req.hdr.nlmsg_type = RTM_GETROUTE; in rops_pt_init_destroy_netlink()
/third_party/libnl/lib/
Dmsg.c332 new->nlmsg_type = hdr->nlmsg_type; in nlmsg_inherit()
352 .nlmsg_type = nlmsgtype, in nlmsg_alloc_simple()
519 nlh->nlmsg_type = type; in nlmsg_put()
741 nlmsg_hdr(msg)->nlmsg_type); in nl_msg_parse()
809 ops = nl_cache_ops_associate_safe(nlmsg_get_proto(msg), nlh->nlmsg_type); in print_hdr()
811 mt = nl_msgtype_lookup(ops, nlh->nlmsg_type); in print_hdr()
818 nl_nlmsgtype2str(nlh->nlmsg_type, buf, sizeof(buf)); in print_hdr()
820 fprintf(ofd, " .type = %d <%s>\n", nlh->nlmsg_type, buf); in print_hdr()
944 hdr->nlmsg_type); in print_msg()
986 if (hdr->nlmsg_type == NLMSG_ERROR) in nl_msg_dump()
Dnl.c895 if (hdr->nlmsg_type == NLMSG_DONE || in recvmsgs()
896 hdr->nlmsg_type == NLMSG_ERROR || in recvmsgs()
897 hdr->nlmsg_type == NLMSG_NOOP || in recvmsgs()
898 hdr->nlmsg_type == NLMSG_OVERRUN) { in recvmsgs()
936 if (hdr->nlmsg_type == NLMSG_DONE) { in recvmsgs()
946 else if (hdr->nlmsg_type == NLMSG_NOOP) { in recvmsgs()
956 else if (hdr->nlmsg_type == NLMSG_OVERRUN) { in recvmsgs()
966 else if (hdr->nlmsg_type == NLMSG_ERROR) { in recvmsgs()
/third_party/musl/src/network/
Dnetlink.c23 u.req.nlh.nlmsg_type = type; in __netlink_enumerate()
34 if (h->nlmsg_type == NLMSG_DONE) return 0; in __netlink_enumerate()
35 if (h->nlmsg_type == NLMSG_ERROR) return -1; in __netlink_enumerate()
Dgetifaddrs.c114 if (h->nlmsg_type == RTM_NEWLINK) { in netlink_msg_to_ifaddr()
130 if (h->nlmsg_type == RTM_NEWLINK) { in netlink_msg_to_ifaddr()
Dnetlink.h9 uint16_t nlmsg_type; member
/third_party/ltp/testcases/kernel/containers/netns/
Dnetns_netlink.c73 if (nlh->nlmsg_type == RTM_NEWLINK || in child_func()
74 nlh->nlmsg_type == RTM_DELLINK) { in child_func()
/third_party/ltp/testcases/kernel/controllers/cgroup/
Dcgroup_regression_getdelays.c123 int send_cmd(int sd, __u16 nlmsg_type, __u32 nlmsg_pid, in send_cmd() argument
134 msg.n.nlmsg_type = nlmsg_type; in send_cmd()
183 if (ans.n.nlmsg_type == NLMSG_ERROR || in get_family_id()
422 if (msg.n.nlmsg_type == NLMSG_ERROR || in main()
/third_party/libnl/lib/netfilter/
Dnfnl.c137 return NFNL_SUBSYS_ID(nlh->nlmsg_type); in nfnlmsg_subsys()
146 return NFNL_MSG_TYPE(nlh->nlmsg_type); in nfnlmsg_subtype()
/third_party/toybox/toys/pending/
Dip.c171 req.nlh.nlmsg_type = type; in send_nlmesg()
631 request.mhdr.nlmsg_type = RTM_NEWLINK; in linkupdate()
633 request.mhdr.nlmsg_type = RTM_DELLINK; in linkupdate()
972 request.mhdr.nlmsg_type = RTM_GETLINK; in link_show()
1029 h->nlmsg_type = RTM_DELADDR; in print_addrinfo()
1036 if (h->nlmsg_type == RTM_DELADDR) printf("Deleted "); in print_addrinfo()
1126 req.nlm.nlmsg_type = cmd; in ipaddrupdate()
1260 if (addr_ptr->nlmsg_type == NLMSG_DONE) in ipaddrupdate()
1262 if (addr_ptr->nlmsg_type == NLMSG_ERROR) in ipaddrupdate()
1449 if ((addr_ptr->nlmsg_type == RTM_NEWADDR)) in ipaddr_print()
[all …]
/third_party/glib/gio/
Dgnetworkmonitornetlink.c174 n->nlmsg_type = RTM_GETROUTE; in request_dump()
358 switch (msg->nlmsg_type) in read_netlink_messages()
398 if (msg->nlmsg_type == RTM_NEWROUTE) in read_netlink_messages()
428 msg->nlmsg_type); in read_netlink_messages()
/third_party/iptables/libipq/
Dlibipq.c279 req.nlh.nlmsg_type = IPQM_MODE; in ipq_set_mode()
298 return ((struct nlmsghdr*)buf)->nlmsg_type; in ipq_message_type()
328 nlh.nlmsg_type = IPQM_VERDICT; in ipq_set_verdict()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/drivers/
Dnetlink.c59 switch (h->nlmsg_type) { in netlink_receive()
184 req.hdr.nlmsg_type = RTM_SETLINK; in netlink_send_oper_ifla()
Dpriv_netlink.h87 u16 nlmsg_type; member
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/drivers/
Dnetlink.c59 switch (h->nlmsg_type) { in netlink_receive()
184 req.hdr.nlmsg_type = RTM_SETLINK; in netlink_send_oper_ifla()
Dpriv_netlink.h87 u16 nlmsg_type; member
/third_party/selinux/libselinux/src/
Davc_internal.c207 switch (nlh->nlmsg_type) { in avc_netlink_process()
240 avc_prefix, nlh->nlmsg_type); in avc_netlink_process()
/third_party/iptables/iptables/
Dxtables-monitor.c50 uint32_t type = nlh->nlmsg_type & 0xFF; in table_cb()
80 uint32_t type = nlh->nlmsg_type & 0xFF; in rule_cb()
125 uint32_t type = nlh->nlmsg_type & 0xFF; in chain_cb()
552 uint32_t type = nlh->nlmsg_type & 0xFF; in monitor_cb()
/third_party/libnl/include/netlink/
Dnetlink-kernel.h46 uint16_t nlmsg_type;
/third_party/ltp/testcases/cve/
Dcve-2017-16939.c59 p->msg.nlmsg_type = XFRM_MSG_GETPOLICY; in setup()
/third_party/libnl/src/
Dnf-ct-events.c46 enum cntl_msg_types type = (enum cntl_msg_types) NFNL_MSG_TYPE(hdr->nlmsg_type); in nf_conntrack_event_callback()
/third_party/ltp/testcases/kernel/connectors/pec/
Dpec_listener.c92 nlhdr->nlmsg_type = NLMSG_DONE; in netlink_send()
339 switch (nlhdr->nlmsg_type) { in main()
/third_party/ltp/testcases/kernel/containers/share/
Dns_ifmove.c106 req.nh.nlmsg_type = RTM_NEWLINK; in main()

123