/dports/net/wireguard-tools/wireguard-tools-1.0.20210914/src/ |
H A D | netlink.h | 44 #define mnl_attr_for_each(attr, nlh, offset) \ argument 90 struct nlmsghdr *nlh = buf; in mnl_nlmsg_put_header() local 106 static void *mnl_nlmsg_get_payload(const struct nlmsghdr *nlh) in mnl_nlmsg_get_payload() 116 static bool mnl_nlmsg_ok(const struct nlmsghdr *nlh, int len) in mnl_nlmsg_ok() 129 static void *mnl_nlmsg_get_payload_tail(const struct nlmsghdr *nlh) in mnl_nlmsg_get_payload_tail() 431 const struct nlmsghdr *nlh = buf; in __mnl_cb_run() local 613 struct nlmsghdr *nlh; in __mnlg_msg_prepare() local 640 static int mnlg_cb_noop(const struct nlmsghdr *nlh, void *data) in mnlg_cb_noop() 647 static int mnlg_cb_error(const struct nlmsghdr *nlh, void *data) in mnlg_cb_error() 665 static int mnlg_cb_stop(const struct nlmsghdr *nlh, void *data) in mnlg_cb_stop() [all …]
|
H A D | ipc-linux.h | 55 static int read_devices_cb(const struct nlmsghdr *nlh, void *data) in read_devices_cb() 81 struct nlmsghdr *nlh; in kernel_get_wireguard_interfaces() local 148 struct nlmsghdr *nlh; in kernel_set_device() local 449 static int read_device_cb(const struct nlmsghdr *nlh, void *data) in read_device_cb() 479 struct nlmsghdr *nlh; in kernel_get_device() local
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/staging/gdm724x/ |
H A D | netlink_k.c | 20 #define ND_NLMSG_DATA(nlh) ((void *)((char *)NLMSG_DATA(nlh) + \ argument 23 #define ND_NLMSG_R_LEN(nlh) (nlh->nlmsg_len - ND_IFINDEX_LEN) argument 24 #define ND_NLMSG_IFIDX(nlh) NLMSG_DATA(nlh) argument 31 struct nlmsghdr *nlh; in netlink_rcv_cb() local 97 struct nlmsghdr *nlh; in netlink_send() local
|
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/staging/gdm724x/ |
H A D | netlink_k.c | 20 #define ND_NLMSG_DATA(nlh) ((void *)((char *)NLMSG_DATA(nlh) + \ argument 23 #define ND_NLMSG_R_LEN(nlh) (nlh->nlmsg_len - ND_IFINDEX_LEN) argument 24 #define ND_NLMSG_IFIDX(nlh) NLMSG_DATA(nlh) argument 31 struct nlmsghdr *nlh; in netlink_rcv_cb() local 97 struct nlmsghdr *nlh; in netlink_send() local
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/staging/gdm724x/ |
H A D | netlink_k.c | 20 #define ND_NLMSG_DATA(nlh) ((void *)((char *)NLMSG_DATA(nlh) + \ argument 23 #define ND_NLMSG_R_LEN(nlh) (nlh->nlmsg_len - ND_IFINDEX_LEN) argument 24 #define ND_NLMSG_IFIDX(nlh) NLMSG_DATA(nlh) argument 31 struct nlmsghdr *nlh; in netlink_rcv_cb() local 97 struct nlmsghdr *nlh; in netlink_send() local
|
/dports/net/wireguard-tools/wireguard-tools-1.0.20210914/contrib/embeddable-wg-library/ |
H A D | wireguard.c | 105 #define mnl_attr_for_each(attr, nlh, offset) \ argument 151 struct nlmsghdr *nlh = buf; in mnl_nlmsg_put_header() local 167 static void *mnl_nlmsg_get_payload(const struct nlmsghdr *nlh) in mnl_nlmsg_get_payload() 177 static bool mnl_nlmsg_ok(const struct nlmsghdr *nlh, int len) in mnl_nlmsg_ok() 492 const struct nlmsghdr *nlh = buf; in __mnl_cb_run() local 674 struct nlmsghdr *nlh; in __mnlg_msg_prepare() local 795 struct nlmsghdr *nlh; in mnlg_socket_open() local 944 struct nlmsghdr *nlh; in fetch_device_names() local 1011 struct nlmsghdr *nlh; in add_del_iface() local 1070 struct nlmsghdr *nlh; in wg_set_device() local [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/net/dcb/ |
H A D | dcbnl.c | 187 struct nlmsghdr *nlh; in dcbnl_newmsg() local 207 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getstate() 218 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfccfg() 277 static int dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getcap() 322 static int dcbnl_getnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getnumtcs() 369 static int dcbnl_setnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setnumtcs() 431 static int dcbnl_getapp(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getapp() 501 static int dcbnl_setapp(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setapp() 747 static int dcbnl_setall(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setall() 1375 struct nlmsghdr *nlh; in dcbnl_notify() local [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/dcb/ |
H A D | dcbnl.c | 187 struct nlmsghdr *nlh; in dcbnl_newmsg() local 207 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getstate() 218 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfccfg() 277 static int dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getcap() 322 static int dcbnl_getnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getnumtcs() 369 static int dcbnl_setnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setnumtcs() 431 static int dcbnl_getapp(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getapp() 501 static int dcbnl_setapp(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setapp() 747 static int dcbnl_setall(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setall() 1375 struct nlmsghdr *nlh; in dcbnl_notify() local [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/dcb/ |
H A D | dcbnl.c | 187 struct nlmsghdr *nlh; in dcbnl_newmsg() local 207 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getstate() 218 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfccfg() 277 static int dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getcap() 322 static int dcbnl_getnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getnumtcs() 369 static int dcbnl_setnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setnumtcs() 431 static int dcbnl_getapp(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getapp() 501 static int dcbnl_setapp(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setapp() 747 static int dcbnl_setall(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setall() 1375 struct nlmsghdr *nlh; in dcbnl_notify() local [all …]
|
/dports/devel/wasi-libc/wasi-libc-ad5133410f66b93a2381db5b542aad5e0964db96/libc-top-half/musl/src/network/ |
H A D | netlink.h | 79 #define NLMSG_DATA(nlh) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr))) argument 80 #define NLMSG_DATALEN(nlh) ((nlh)->nlmsg_len-sizeof(struct nlmsghdr)) argument 81 #define NLMSG_DATAEND(nlh) ((char*)(nlh)+(nlh)->nlmsg_len) argument 82 #define NLMSG_NEXT(nlh) (struct nlmsghdr*)((char*)(nlh)+NETLINK_ALIGN((nlh)->nlmsg_len)) argument 83 #define NLMSG_OK(nlh,end) ((char*)(end)-(char*)(nlh) >= sizeof(struct nlmsghdr)) argument 89 #define RTA_OK(nlh,end) ((char*)(end)-(char*)(rta) >= sizeof(struct rtattr)) argument 91 #define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len))) argument 92 #define NLMSG_RTAOK(rta,nlh) RTA_OK(rta,NLMSG_DATAEND(nlh)) argument
|
/dports/lang/zig/zig-0.9.0/lib/libc/wasi/libc-top-half/musl/src/network/ |
H A D | netlink.h | 79 #define NLMSG_DATA(nlh) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr))) argument 80 #define NLMSG_DATALEN(nlh) ((nlh)->nlmsg_len-sizeof(struct nlmsghdr)) argument 81 #define NLMSG_DATAEND(nlh) ((char*)(nlh)+(nlh)->nlmsg_len) argument 82 #define NLMSG_NEXT(nlh) (struct nlmsghdr*)((char*)(nlh)+NETLINK_ALIGN((nlh)->nlmsg_len)) argument 83 #define NLMSG_OK(nlh,end) ((char*)(end)-(char*)(nlh) >= sizeof(struct nlmsghdr)) argument 89 #define RTA_OK(nlh,end) ((char*)(end)-(char*)(rta) >= sizeof(struct rtattr)) argument 91 #define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len))) argument 92 #define NLMSG_RTAOK(rta,nlh) RTA_OK(rta,NLMSG_DATAEND(nlh)) argument
|
/dports/lang/zig-devel/zig-0.9.0/lib/libc/musl/src/network/ |
H A D | netlink.h | 79 #define NLMSG_DATA(nlh) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr))) argument 80 #define NLMSG_DATALEN(nlh) ((nlh)->nlmsg_len-sizeof(struct nlmsghdr)) argument 81 #define NLMSG_DATAEND(nlh) ((char*)(nlh)+(nlh)->nlmsg_len) argument 82 #define NLMSG_NEXT(nlh) (struct nlmsghdr*)((char*)(nlh)+NETLINK_ALIGN((nlh)->nlmsg_len)) argument 83 #define NLMSG_OK(nlh,end) ((char*)(end)-(char*)(nlh) >= sizeof(struct nlmsghdr)) argument 89 #define RTA_OK(nlh,end) ((char*)(end)-(char*)(rta) >= sizeof(struct rtattr)) argument 91 #define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len))) argument 92 #define NLMSG_RTAOK(rta,nlh) RTA_OK(rta,NLMSG_DATAEND(nlh)) argument
|
/dports/lang/zig-devel/zig-0.9.0/lib/libc/wasi/libc-top-half/musl/src/network/ |
H A D | netlink.h | 79 #define NLMSG_DATA(nlh) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr))) argument 80 #define NLMSG_DATALEN(nlh) ((nlh)->nlmsg_len-sizeof(struct nlmsghdr)) argument 81 #define NLMSG_DATAEND(nlh) ((char*)(nlh)+(nlh)->nlmsg_len) argument 82 #define NLMSG_NEXT(nlh) (struct nlmsghdr*)((char*)(nlh)+NETLINK_ALIGN((nlh)->nlmsg_len)) argument 83 #define NLMSG_OK(nlh,end) ((char*)(end)-(char*)(nlh) >= sizeof(struct nlmsghdr)) argument 89 #define RTA_OK(nlh,end) ((char*)(end)-(char*)(rta) >= sizeof(struct rtattr)) argument 91 #define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len))) argument 92 #define NLMSG_RTAOK(rta,nlh) RTA_OK(rta,NLMSG_DATAEND(nlh)) argument
|
/dports/lang/zig/zig-0.9.0/lib/libc/musl/src/network/ |
H A D | netlink.h | 79 #define NLMSG_DATA(nlh) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr))) argument 80 #define NLMSG_DATALEN(nlh) ((nlh)->nlmsg_len-sizeof(struct nlmsghdr)) argument 81 #define NLMSG_DATAEND(nlh) ((char*)(nlh)+(nlh)->nlmsg_len) argument 82 #define NLMSG_NEXT(nlh) (struct nlmsghdr*)((char*)(nlh)+NETLINK_ALIGN((nlh)->nlmsg_len)) argument 83 #define NLMSG_OK(nlh,end) ((char*)(end)-(char*)(nlh) >= sizeof(struct nlmsghdr)) argument 89 #define RTA_OK(nlh,end) ((char*)(end)-(char*)(rta) >= sizeof(struct rtattr)) argument 91 #define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len))) argument 92 #define NLMSG_RTAOK(rta,nlh) RTA_OK(rta,NLMSG_DATAEND(nlh)) argument
|
/dports/devel/emscripten/emscripten-2.0.3/system/lib/libc/musl/src/network/ |
H A D | netlink.h | 79 #define NLMSG_DATA(nlh) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr))) argument 80 #define NLMSG_DATALEN(nlh) ((nlh)->nlmsg_len-sizeof(struct nlmsghdr)) argument 81 #define NLMSG_DATAEND(nlh) ((char*)(nlh)+(nlh)->nlmsg_len) argument 82 #define NLMSG_NEXT(nlh) (struct nlmsghdr*)((char*)(nlh)+NETLINK_ALIGN((nlh)->nlmsg_len)) argument 83 #define NLMSG_OK(nlh,end) ((char*)(end)-(char*)(nlh) >= sizeof(struct nlmsghdr)) argument 89 #define RTA_OK(nlh,end) ((char*)(end)-(char*)(rta) >= sizeof(struct rtattr)) argument 91 #define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len))) argument 92 #define NLMSG_RTAOK(rta,nlh) RTA_OK(rta,NLMSG_DATAEND(nlh)) argument
|
/dports/devel/tinygo/tinygo-0.14.1/lib/wasi-libc/libc-top-half/musl/src/network/ |
H A D | netlink.h | 79 #define NLMSG_DATA(nlh) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr))) argument 80 #define NLMSG_DATALEN(nlh) ((nlh)->nlmsg_len-sizeof(struct nlmsghdr)) argument 81 #define NLMSG_DATAEND(nlh) ((char*)(nlh)+(nlh)->nlmsg_len) argument 82 #define NLMSG_NEXT(nlh) (struct nlmsghdr*)((char*)(nlh)+NETLINK_ALIGN((nlh)->nlmsg_len)) argument 83 #define NLMSG_OK(nlh,end) ((char*)(end)-(char*)(nlh) >= sizeof(struct nlmsghdr)) argument 89 #define RTA_OK(nlh,end) ((char*)(end)-(char*)(rta) >= sizeof(struct rtattr)) argument 91 #define NLMSG_RTA(nlh,len) ((void*)((char*)(nlh)+sizeof(struct nlmsghdr)+NETLINK_ALIGN(len))) argument 92 #define NLMSG_RTAOK(rta,nlh) RTA_OK(rta,NLMSG_DATAEND(nlh)) argument
|
/dports/net-mgmt/collectd5/collectd-5.12.0/src/utils/taskstats/ |
H A D | taskstats.c | 43 static int nlmsg_errno(struct nlmsghdr *nlh, size_t sz) { in nlmsg_errno() 91 static int get_taskstats_msg_cb(const struct nlmsghdr *nlh, void *data) { in get_taskstats_msg_cb() 101 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buffer); in get_taskstats() local 169 static int get_family_id_msg_cb(const struct nlmsghdr *nlh, void *data) { in get_family_id_msg_cb() 180 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buffer); in get_family_id() local
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/netfilter/ |
H A D | nf-queue.c | 77 static int queue_cb(const struct nlmsghdr *nlh, void *data) in queue_cb() 123 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_request() local 147 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_params() local 174 struct nlmsghdr *nlh; in nfq_build_verdict() local 212 struct nlmsghdr *nlh; in open_queue() local 274 struct nlmsghdr *nlh; in mainloop() local
|
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/netfilter/ |
H A D | nf-queue.c | 77 static int queue_cb(const struct nlmsghdr *nlh, void *data) in queue_cb() 123 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_request() local 147 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_params() local 174 struct nlmsghdr *nlh; in nfq_build_verdict() local 212 struct nlmsghdr *nlh; in open_queue() local 274 struct nlmsghdr *nlh; in mainloop() local
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/netfilter/ |
H A D | nf-queue.c | 77 static int queue_cb(const struct nlmsghdr *nlh, void *data) in queue_cb() 123 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_request() local 147 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_params() local 174 struct nlmsghdr *nlh; in nfq_build_verdict() local 212 struct nlmsghdr *nlh; in open_queue() local 274 struct nlmsghdr *nlh; in mainloop() local
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/zebra/ |
H A D | zebra_netns_id.c | 67 struct nlmsghdr *nlh; in initiate_nlh() local 80 static int send_receive(int sock, struct nlmsghdr *nlh, unsigned int seq, in send_receive() 134 static ns_id_t extract_nsid(struct nlmsghdr *nlh, char *buf) in extract_nsid() 206 struct nlmsghdr *nlh; in zebra_ns_id_get() local
|
/dports/net/frr7/frr-frr-7.5.1/zebra/ |
H A D | zebra_netns_id.c | 67 struct nlmsghdr *nlh; in initiate_nlh() local 80 static int send_receive(int sock, struct nlmsghdr *nlh, unsigned int seq, in send_receive() 134 static ns_id_t extract_nsid(struct nlmsghdr *nlh, char *buf) in extract_nsid() 206 struct nlmsghdr *nlh; in zebra_ns_id_get() local
|
/dports/dns/knot3/knot-3.1.5/src/contrib/libbpf/bpf/ |
H A D | netlink.c | 191 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg() 317 struct nlmsghdr nlh; in libbpf_nl_get_link() member 335 static int __dump_class_nlmsg(struct nlmsghdr *nlh, in __dump_class_nlmsg() 355 struct nlmsghdr nlh; in libbpf_nl_get_class() member 374 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh, in __dump_qdisc_nlmsg() 394 struct nlmsghdr nlh; in libbpf_nl_get_qdisc() member 413 static int __dump_filter_nlmsg(struct nlmsghdr *nlh, in __dump_filter_nlmsg() 433 struct nlmsghdr nlh; in libbpf_nl_get_filter() member
|
/dports/dns/knot3-lib/knot-3.1.5/src/contrib/libbpf/bpf/ |
H A D | netlink.c | 191 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg() 317 struct nlmsghdr nlh; in libbpf_nl_get_link() member 335 static int __dump_class_nlmsg(struct nlmsghdr *nlh, in __dump_class_nlmsg() 355 struct nlmsghdr nlh; in libbpf_nl_get_class() member 374 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh, in __dump_qdisc_nlmsg() 394 struct nlmsghdr nlh; in libbpf_nl_get_qdisc() member 413 static int __dump_filter_nlmsg(struct nlmsghdr *nlh, in __dump_filter_nlmsg() 433 struct nlmsghdr nlh; in libbpf_nl_get_filter() member
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/phonet/ |
H A D | pn_netlink.c | 51 static int addr_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in addr_doit() 99 struct nlmsghdr *nlh; in fill_addr() local 164 struct nlmsghdr *nlh; in fill_route() local 218 static int route_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in route_doit()
|