/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/net/phonet/ |
H A D | pn_netlink.c | 64 static int addr_doit(struct sk_buff *skb, struct nlmsghdr *nlh, void *attr) argument 78 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_phonet_policy); 82 ifm = nlmsg_data(nlh); 94 if (nlh->nlmsg_type == RTM_NEWADDR) 99 phonet_address_notify(nlh->nlmsg_type, dev, pnaddr); 107 struct nlmsghdr *nlh; local 109 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*ifm), 0); 110 if (nlh == NULL) 113 ifm = nlmsg_data(nlh); 120 return nlmsg_end(skb, nlh); 170 struct nlmsghdr *nlh; local 222 route_doit(struct sk_buff *skb, struct nlmsghdr *nlh, void *attr) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/net/decnet/netfilter/ |
H A D | dn_rtmsg.c | 38 struct nlmsghdr *nlh; local 48 nlh = NLMSG_PUT(skb, 0, 0, 0, size - sizeof(*nlh)); 49 rtm = (struct nf_dn_rtmsg *)NLMSG_DATA(nlh); 53 nlh->nlmsg_len = skb->tail - old_tail; 102 #define RCV_SKB_FAIL(err) do { netlink_ack(skb, nlh, (err)); return; } while (0) 106 struct nlmsghdr *nlh = nlmsg_hdr(skb); local 108 if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/net/decnet/netfilter/ |
H A D | dn_rtmsg.c | 38 struct nlmsghdr *nlh; local 48 nlh = NLMSG_PUT(skb, 0, 0, 0, size - sizeof(*nlh)); 49 rtm = (struct nf_dn_rtmsg *)NLMSG_DATA(nlh); 53 nlh->nlmsg_len = skb->tail - old_tail; 102 #define RCV_SKB_FAIL(err) do { netlink_ack(skb, nlh, (err)); return; } while (0) 106 struct nlmsghdr *nlh = nlmsg_hdr(skb); local 108 if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/Documentation/connector/ |
H A D | ucon.c | 62 struct nlmsghdr *nlh; local 70 nlh = (struct nlmsghdr *)buf; 71 nlh->nlmsg_seq = seq++; 72 nlh->nlmsg_pid = getpid(); 73 nlh->nlmsg_type = NLMSG_DONE; 74 nlh->nlmsg_len = NLMSG_LENGTH(size - sizeof(*nlh)); 75 nlh->nlmsg_flags = 0; 77 m = NLMSG_DATA(nlh); 80 err = send(s, nlh, siz [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/Documentation/connector/ |
H A D | ucon.c | 62 struct nlmsghdr *nlh; local 70 nlh = (struct nlmsghdr *)buf; 71 nlh->nlmsg_seq = seq++; 72 nlh->nlmsg_pid = getpid(); 73 nlh->nlmsg_type = NLMSG_DONE; 74 nlh->nlmsg_len = NLMSG_LENGTH(size - sizeof(*nlh)); 75 nlh->nlmsg_flags = 0; 77 m = NLMSG_DATA(nlh); 80 err = send(s, nlh, siz [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/iptables/libipq/ |
H A D | libipq.c | 127 struct nlmsghdr *nlh; local 183 nlh = (struct nlmsghdr *)buf; 184 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) { 271 struct nlmsghdr nlh; member in struct:__anon3767 276 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req)); 277 req.nlh.nlmsg_flags = NLM_F_REQUEST; 278 req.nlh.nlmsg_type = IPQM_MODE; 279 req.nlh.nlmsg_pid = h->local.nl_pid; 282 return ipq_netlink_sendto(h, (void *)&req, req.nlh 320 struct nlmsghdr nlh; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/iptables-1.4.x/libipq/ |
H A D | libipq.c | 129 struct nlmsghdr *nlh; local 185 nlh = (struct nlmsghdr *)buf; 186 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) { 272 struct nlmsghdr nlh; member in struct:__anon3925 277 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req)); 278 req.nlh.nlmsg_flags = NLM_F_REQUEST; 279 req.nlh.nlmsg_type = IPQM_MODE; 280 req.nlh.nlmsg_pid = h->local.nl_pid; 283 return ipq_netlink_sendto(h, (void *)&req, req.nlh 321 struct nlmsghdr nlh; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/iptables/libipq/ |
H A D | libipq.c | 127 struct nlmsghdr *nlh; local 183 nlh = (struct nlmsghdr *)buf; 184 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) { 271 struct nlmsghdr nlh; member in struct:__anon4672 276 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req)); 277 req.nlh.nlmsg_flags = NLM_F_REQUEST; 278 req.nlh.nlmsg_type = IPQM_MODE; 279 req.nlh.nlmsg_pid = h->local.nl_pid; 282 return ipq_netlink_sendto(h, (void *)&req, req.nlh 320 struct nlmsghdr nlh; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/iptables-1.4.x/libipq/ |
H A D | libipq.c | 129 struct nlmsghdr *nlh; local 185 nlh = (struct nlmsghdr *)buf; 186 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) { 272 struct nlmsghdr nlh; member in struct:__anon4830 277 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req)); 278 req.nlh.nlmsg_flags = NLM_F_REQUEST; 279 req.nlh.nlmsg_type = IPQM_MODE; 280 req.nlh.nlmsg_pid = h->local.nl_pid; 283 return ipq_netlink_sendto(h, (void *)&req, req.nlh 321 struct nlmsghdr nlh; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/iptables/libipq/ |
H A D | libipq.c | 127 struct nlmsghdr *nlh; local 183 nlh = (struct nlmsghdr *)buf; 184 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) { 271 struct nlmsghdr nlh; member in struct:__anon38697 276 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req)); 277 req.nlh.nlmsg_flags = NLM_F_REQUEST; 278 req.nlh.nlmsg_type = IPQM_MODE; 279 req.nlh.nlmsg_pid = h->local.nl_pid; 282 return ipq_netlink_sendto(h, (void *)&req, req.nlh 320 struct nlmsghdr nlh; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/iptables-1.4.x/libipq/ |
H A D | libipq.c | 129 struct nlmsghdr *nlh; local 185 nlh = (struct nlmsghdr *)buf; 186 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) { 272 struct nlmsghdr nlh; member in struct:__anon38855 277 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req)); 278 req.nlh.nlmsg_flags = NLM_F_REQUEST; 279 req.nlh.nlmsg_type = IPQM_MODE; 280 req.nlh.nlmsg_pid = h->local.nl_pid; 283 return ipq_netlink_sendto(h, (void *)&req, req.nlh 321 struct nlmsghdr nlh; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/scsi/ |
H A D | scsi_netlink.c | 81 struct nlmsghdr *nlh; local 90 nlh = nlmsg_hdr(skb); 91 if ((nlh->nlmsg_len < (sizeof(*nlh) + sizeof(*hdr))) || 92 (skb->len < nlh->nlmsg_len)) { 98 rlen = NLMSG_ALIGN(nlh->nlmsg_len); 102 if (nlh->nlmsg_type != SCSI_TRANSPORT_MSG) { 107 hdr = NLMSG_DATA(nlh); 119 if (nlh->nlmsg_len < (sizeof(*nlh) 220 struct nlmsghdr *nlh = nlmsg_hdr(skb); local 553 struct nlmsghdr *nlh; local 628 struct nlmsghdr *nlh; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/scsi/ |
H A D | scsi_netlink.c | 81 struct nlmsghdr *nlh; local 90 nlh = nlmsg_hdr(skb); 91 if ((nlh->nlmsg_len < (sizeof(*nlh) + sizeof(*hdr))) || 92 (skb->len < nlh->nlmsg_len)) { 98 rlen = NLMSG_ALIGN(nlh->nlmsg_len); 102 if (nlh->nlmsg_type != SCSI_TRANSPORT_MSG) { 107 hdr = NLMSG_DATA(nlh); 119 if (nlh->nlmsg_len < (sizeof(*nlh) 220 struct nlmsghdr *nlh = nlmsg_hdr(skb); local 553 struct nlmsghdr *nlh; local 628 struct nlmsghdr *nlh; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/net/dcb/ |
H A D | dcbnl.c | 176 struct nlmsghdr *nlh; local 183 nlh = NLMSG_NEW(dcbnl_skb, pid, seq, event, sizeof(*dcb), flags); 185 dcb = NLMSG_DATA(nlh); 195 nlmsg_end(dcbnl_skb, nlh); 226 struct nlmsghdr *nlh; local 247 nlh = NLMSG_NEW(dcbnl_skb, pid, seq, RTM_GETDCB, sizeof(*dcb), flags); 249 dcb = NLMSG_DATA(nlh); 275 nlmsg_end(dcbnl_skb, nlh); 293 struct nlmsghdr *nlh; local 305 nlh 334 struct nlmsghdr *nlh; local 400 struct nlmsghdr *nlh; local 551 struct nlmsghdr *nlh; local 665 struct nlmsghdr *nlh; local 1001 struct nlmsghdr *nlh; local 1121 dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/net/dcb/ |
H A D | dcbnl.c | 176 struct nlmsghdr *nlh; local 183 nlh = NLMSG_NEW(dcbnl_skb, pid, seq, event, sizeof(*dcb), flags); 185 dcb = NLMSG_DATA(nlh); 195 nlmsg_end(dcbnl_skb, nlh); 226 struct nlmsghdr *nlh; local 247 nlh = NLMSG_NEW(dcbnl_skb, pid, seq, RTM_GETDCB, sizeof(*dcb), flags); 249 dcb = NLMSG_DATA(nlh); 275 nlmsg_end(dcbnl_skb, nlh); 293 struct nlmsghdr *nlh; local 305 nlh 334 struct nlmsghdr *nlh; local 400 struct nlmsghdr *nlh; local 551 struct nlmsghdr *nlh; local 665 struct nlmsghdr *nlh; local 1001 struct nlmsghdr *nlh; local 1121 dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/net/wimax/ |
H A D | op-msg.c | 185 struct nlmsghdr *nlh = (void *) msg->head; local 188 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr), 207 struct nlmsghdr *nlh = (void *) msg->head; local 210 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr), 228 struct nlmsghdr *nlh = (void *) msg->head; local 231 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr), 348 struct nlmsghdr *nlh = info->nlhdr; local 401 nlh->nlmsg_len, nlh->nlmsg_type, nlh [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/net/wimax/ |
H A D | op-msg.c | 185 struct nlmsghdr *nlh = (void *) msg->head; local 188 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr), 207 struct nlmsghdr *nlh = (void *) msg->head; local 210 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr), 228 struct nlmsghdr *nlh = (void *) msg->head; local 231 nla = nlmsg_find_attr(nlh, sizeof(struct genlmsghdr), 348 struct nlmsghdr *nlh = info->nlhdr; local 401 nlh->nlmsg_len, nlh->nlmsg_type, nlh [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/ebtables/examples/ulog/ |
H A D | test_ulog.c | 86 static struct nlmsghdr *nlh = NULL; local 92 if (!nlh) { 110 nlh = (struct nlmsghdr *)buf; 111 if (nlh->nlmsg_flags & MSG_TRUNC || len > BUFLEN) { 115 if (!NLMSG_OK(nlh, BUFLEN)) { 121 msg = NLMSG_DATA(nlh); 123 remain_len = (len - ((char *)nlh - buf)); 124 if (nlh->nlmsg_flags & NLM_F_MULTI && nlh->nlmsg_type != NLMSG_DONE) 125 nlh [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/ebtables/examples/ulog/ |
H A D | test_ulog.c | 86 static struct nlmsghdr *nlh = NULL; local 92 if (!nlh) { 110 nlh = (struct nlmsghdr *)buf; 111 if (nlh->nlmsg_flags & MSG_TRUNC || len > BUFLEN) { 115 if (!NLMSG_OK(nlh, BUFLEN)) { 121 msg = NLMSG_DATA(nlh); 123 remain_len = (len - ((char *)nlh - buf)); 124 if (nlh->nlmsg_flags & NLM_F_MULTI && nlh->nlmsg_type != NLMSG_DONE) 125 nlh [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/ebtables/examples/ulog/ |
H A D | test_ulog.c | 86 static struct nlmsghdr *nlh = NULL; local 92 if (!nlh) { 110 nlh = (struct nlmsghdr *)buf; 111 if (nlh->nlmsg_flags & MSG_TRUNC || len > BUFLEN) { 115 if (!NLMSG_OK(nlh, BUFLEN)) { 121 msg = NLMSG_DATA(nlh); 123 remain_len = (len - ((char *)nlh - buf)); 124 if (nlh->nlmsg_flags & NLM_F_MULTI && nlh->nlmsg_type != NLMSG_DONE) 125 nlh [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/miniupnpd/netfilter/ |
H A D | nfct_get.c | 20 static int data_cb(const struct nlmsghdr *nlh, void *data) argument 29 nfct_nlmsg_parse(nlh, ct); 45 struct nlmsghdr *nlh; local 74 nlh = mnl_nlmsg_put_header(buf); 75 nlh->nlmsg_type = (NFNL_SUBSYS_CTNETLINK << 8) | IPCTNL_MSG_CT_GET; 76 nlh->nlmsg_flags = NLM_F_REQUEST|NLM_F_ACK; 77 nlh->nlmsg_seq = seq = time(NULL); 79 nfh = mnl_nlmsg_put_extra_header(nlh, sizeof(struct nfgenmsg)); 107 nfct_nlmsg_build(nlh, ct); 109 ret = mnl_socket_sendto(nl, nlh, nl [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/miniupnpd/netfilter_nft/ |
H A D | nfct_get.c | 20 static int data_cb(const struct nlmsghdr *nlh, void *data) argument 29 nfct_nlmsg_parse(nlh, ct); 45 struct nlmsghdr *nlh; local 74 nlh = mnl_nlmsg_put_header(buf); 75 nlh->nlmsg_type = (NFNL_SUBSYS_CTNETLINK << 8) | IPCTNL_MSG_CT_GET; 76 nlh->nlmsg_flags = NLM_F_REQUEST|NLM_F_ACK; 77 nlh->nlmsg_seq = seq = time(NULL); 79 nfh = mnl_nlmsg_put_extra_header(nlh, sizeof(struct nfgenmsg)); 107 nfct_nlmsg_build(nlh, ct); 109 ret = mnl_socket_sendto(nl, nlh, nl [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/miniupnpd/netfilter/ |
H A D | nfct_get.c | 20 static int data_cb(const struct nlmsghdr *nlh, void *data) argument 29 nfct_nlmsg_parse(nlh, ct); 45 struct nlmsghdr *nlh; local 74 nlh = mnl_nlmsg_put_header(buf); 75 nlh->nlmsg_type = (NFNL_SUBSYS_CTNETLINK << 8) | IPCTNL_MSG_CT_GET; 76 nlh->nlmsg_flags = NLM_F_REQUEST|NLM_F_ACK; 77 nlh->nlmsg_seq = seq = time(NULL); 79 nfh = mnl_nlmsg_put_extra_header(nlh, sizeof(struct nfgenmsg)); 107 nfct_nlmsg_build(nlh, ct); 109 ret = mnl_socket_sendto(nl, nlh, nl [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/miniupnpd/netfilter_nft/ |
H A D | nfct_get.c | 20 static int data_cb(const struct nlmsghdr *nlh, void *data) argument 29 nfct_nlmsg_parse(nlh, ct); 45 struct nlmsghdr *nlh; local 74 nlh = mnl_nlmsg_put_header(buf); 75 nlh->nlmsg_type = (NFNL_SUBSYS_CTNETLINK << 8) | IPCTNL_MSG_CT_GET; 76 nlh->nlmsg_flags = NLM_F_REQUEST|NLM_F_ACK; 77 nlh->nlmsg_seq = seq = time(NULL); 79 nfh = mnl_nlmsg_put_extra_header(nlh, sizeof(struct nfgenmsg)); 107 nfct_nlmsg_build(nlh, ct); 109 ret = mnl_socket_sendto(nl, nlh, nl [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/net/bridge/ |
H A D | br_netlink.c | 42 struct nlmsghdr *nlh; local 48 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*hdr), flags); 49 if (nlh == NULL) 52 hdr = nlmsg_data(nlh); 74 return nlmsg_end(skb, nlh); 77 nlmsg_cancel(skb, nlh); 128 cb->nlh->nlmsg_seq, RTM_NEWLINK, 144 static int br_rtm_setlink(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument 153 if (nlmsg_len(nlh) < sizeof(*ifm)) 156 ifm = nlmsg_data(nlh); [all...] |