Searched refs:nlh (Results 26 - 50 of 68) sorted by relevance

123

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/Documentation/connector/
H A Dcn_test.c51 struct nlmsghdr *nlh; local
66 nlh = NLMSG_PUT(skb, 0, 0x123, NLMSG_DONE, size - sizeof(*nlh));
68 msg = (struct cn_msg *)NLMSG_DATA(nlh);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/netfilter/
H A Dip_queue.c187 struct nlmsghdr *nlh; local
227 nlh = NLMSG_PUT(skb, 0, 0, IPQM_PACKET, size - sizeof(*nlh));
228 pmsg = NLMSG_DATA(nlh);
262 nlh->nlmsg_len = skb->tail - old_tail;
476 #define RCV_SKB_FAIL(err) do { netlink_ack(skb, nlh, (err)); return; } while (0)
482 struct nlmsghdr *nlh; local
485 if (skblen < sizeof(*nlh))
488 nlh = nlmsg_hdr(skb);
489 nlmsglen = nlh
[all...]
H A Dipt_ULOG.c168 struct nlmsghdr *nlh; local
208 nlh = NLMSG_PUT(ub->skb, 0, ub->qlen, ULOG_NL_EVENT,
212 pm = NLMSG_DATA(nlh);
259 ub->lastnlh = nlh;
270 nlh->nlmsg_type = NLMSG_DONE;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv6/netfilter/
H A Dip6_queue.c185 struct nlmsghdr *nlh; local
225 nlh = NLMSG_PUT(skb, 0, 0, IPQM_PACKET, size - sizeof(*nlh));
226 pmsg = NLMSG_DATA(nlh);
260 nlh->nlmsg_len = skb->tail - old_tail;
466 #define RCV_SKB_FAIL(err) do { netlink_ack(skb, nlh, (err)); return; } while (0)
472 struct nlmsghdr *nlh; local
475 if (skblen < sizeof(*nlh))
478 nlh = nlmsg_hdr(skb);
479 nlmsglen = nlh
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/sched/
H A Dact_api.c615 struct nlmsghdr *nlh; local
619 nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*t), flags);
621 t = NLMSG_DATA(nlh);
634 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
727 struct nlmsghdr *nlh; local
758 nlh = NLMSG_PUT(skb, pid, n->nlmsg_seq, RTM_DELACTION, sizeof(*t));
759 t = NLMSG_DATA(nlh);
773 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
774 nlh->nlmsg_flags |= NLM_F_ROOT;
855 struct nlmsghdr *nlh; local
995 struct nlmsghdr *nlh; local
[all...]
H A Dcls_api.c322 struct nlmsghdr *nlh; local
325 nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*tcm), flags);
326 tcm = NLMSG_DATA(nlh);
340 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
379 a->cb->nlh->nlmsg_seq, NLM_F_MULTI, RTM_NEWTFILTER);
389 struct tcmsg *tcm = (struct tcmsg*)NLMSG_DATA(cb->nlh);
394 if (cb->nlh->nlmsg_len < NLMSG_LENGTH(sizeof(*tcm)))
430 cb->nlh->nlmsg_seq, NLM_F_MULTI, RTM_NEWTFILTER) <= 0) {
H A Dsch_api.c816 struct nlmsghdr *nlh; local
820 nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*tcm), flags);
821 tcm = NLMSG_DATA(nlh);
851 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
910 cb->nlh->nlmsg_seq, NLM_F_MULTI, RTM_NEWQDISC) <= 0)
1053 struct nlmsghdr *nlh; local
1058 nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*tcm), flags);
1059 tcm = NLMSG_DATA(nlh);
1079 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
1118 a->cb->nlh
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/lib/
H A Dlibnetlink.c91 struct nlmsghdr nlh; member in struct:__anon280
100 req.nlh.nlmsg_len = sizeof(req);
101 req.nlh.nlmsg_type = type;
102 req.nlh.nlmsg_flags = NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST;
103 req.nlh.nlmsg_pid = 0;
104 req.nlh.nlmsg_seq = rth->dump = ++rth->seq;
123 struct nlmsghdr nlh; local
126 { .iov_base = &nlh, .iov_len = sizeof(nlh) },
139 nlh
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/
H A Ddevinet.c249 int destroy, struct nlmsghdr *nlh, u32 pid)
282 rtmsg_ifa(RTM_DELADDR, ifa, nlh, pid);
307 rtmsg_ifa(RTM_DELADDR, ifa1, nlh, pid);
319 rtmsg_ifa(RTM_NEWADDR, promote, nlh, pid);
340 static int __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh, argument
386 rtmsg_ifa(RTM_NEWADDR, ifa, nlh, pid);
444 static int inet_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument
454 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv4_policy);
458 ifm = nlmsg_data(nlh);
481 __inet_del_ifa(in_dev, ifap, 1, nlh, NETLINK_C
248 __inet_del_ifa(struct in_device *in_dev, struct in_ifaddr **ifap, int destroy, struct nlmsghdr *nlh, u32 pid) argument
490 rtm_to_ifaddr(struct nlmsghdr *nlh) argument
564 inet_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument
1141 struct nlmsghdr *nlh; local
1214 rtmsg_ifa(int event, struct in_ifaddr* ifa, struct nlmsghdr *nlh, u32 pid) argument
[all...]
H A Dfib_frontend.c459 static int rtm_to_fib_config(struct sk_buff *skb, struct nlmsghdr *nlh, argument
466 err = nlmsg_validate(nlh, sizeof(*rtm), RTA_MAX, rtm_ipv4_policy);
472 rtm = nlmsg_data(nlh);
480 cfg->fc_nlflags = nlh->nlmsg_flags;
483 cfg->fc_nlinfo.nlh = nlh;
490 nlmsg_for_each_attr(attr, nlh, sizeof(struct rtmsg), remaining) {
532 static int inet_rtm_delroute(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) argument
538 err = rtm_to_fib_config(skb, nlh, &cfg);
553 static int inet_rtm_newroute(struct sk_buff *skb, struct nlmsghdr* nlh, voi argument
794 struct nlmsghdr *nlh = NULL; local
[all...]
H A Dfib_semantics.c308 u32 seq = info->nlh ? info->nlh->nlmsg_seq : 0;
325 info->nlh, GFP_KERNEL);
962 struct nlmsghdr *nlh; local
965 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*rtm), flags);
966 if (nlh == NULL)
969 rtm = nlmsg_data(nlh);
1035 return nlmsg_end(skb, nlh);
1038 nlmsg_cancel(skb, nlh);
H A Dipmr.c315 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct iphdr)); local
316 nlh->nlmsg_type = NLMSG_ERROR;
317 nlh->nlmsg_len = NLMSG_LENGTH(sizeof(struct nlmsgerr));
318 skb_trim(skb, nlh->nlmsg_len);
319 e = NLMSG_DATA(nlh);
534 struct nlmsghdr *nlh = (struct nlmsghdr *)skb_pull(skb, sizeof(struct iphdr)); local
536 if (ipmr_fill_mroute(skb, c, NLMSG_DATA(nlh)) > 0) {
537 nlh->nlmsg_len = (skb_tail_pointer(skb) -
538 (u8 *)nlh);
540 nlh
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/bridge/netfilter/
H A Debt_ulog.c129 struct nlmsghdr *nlh; local
160 nlh = NLMSG_PUT(ub->skb, 0, ub->qlen, 0,
161 size - NLMSG_ALIGN(sizeof(*nlh)));
164 pm = NLMSG_DATA(nlh);
203 ub->lastnlh = nlh;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/netlink/
H A Daf_netlink.c123 static void netlink_queue_skip(struct nlmsghdr *nlh, struct sk_buff *skb);
1353 struct nlmsghdr *nlh; local
1377 nlh = nlmsg_put_answer(skb, cb, NLMSG_DONE, sizeof(len), NLM_F_MULTI);
1378 if (!nlh)
1381 memcpy(nlmsg_data(nlh), &len, sizeof(len));
1402 struct nlmsghdr *nlh,
1416 cb->nlh = nlh;
1447 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err) argument
1456 payload += nlmsg_len(nlh);
1401 netlink_dump_start(struct sock *ssk, struct sk_buff *skb, struct nlmsghdr *nlh, int (*dump)(struct sk_buff *skb, struct netlink_callback*), int (*done)(struct netlink_callback*)) argument
1483 struct nlmsghdr *nlh; local
1569 netlink_queue_skip(struct nlmsghdr *nlh, struct sk_buff *skb) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/decnet/
H A Ddn_fib.c272 struct dn_fib_info *dn_fib_create_info(const struct rtmsg *r, struct dn_kern_rta *rta, const struct nlmsghdr *nlh, int *errp) argument
507 static int dn_fib_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument
511 struct rtmsg *r = NLMSG_DATA(nlh);
518 return tb->delete(tb, r, (struct dn_kern_rta *)rta, nlh, &NETLINK_CB(skb));
523 static int dn_fib_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument
527 struct rtmsg *r = NLMSG_DATA(nlh);
534 return tb->insert(tb, r, (struct dn_kern_rta *)rta, nlh, &NETLINK_CB(skb));
543 struct nlmsghdr nlh; member in struct:__anon10846
559 req.nlh.nlmsg_len = sizeof(req);
560 req.nlh
[all...]
H A Ddn_table.c226 static int dn_fib_nh_match(struct rtmsg *r, struct nlmsghdr *nlh, struct dn_kern_rta *rta, struct dn_fib_info *fi) argument
298 struct nlmsghdr *nlh; local
301 nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*rtm), flags);
302 rtm = NLMSG_DATA(nlh);
347 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
359 struct nlmsghdr *nlh, struct netlink_skb_parms *req)
369 err = dn_fib_dump_info(skb, pid, nlh->nlmsg_seq, event, tb_id,
378 err = rtnl_notify(skb, pid, RTNLGRP_DECnet_ROUTE, nlh, GFP_KERNEL);
399 cb->nlh->nlmsg_seq,
472 if (NLMSG_PAYLOAD(cb->nlh,
358 dn_rtmsg_fib(int event, struct dn_fib_node *f, int z, u32 tb_id, struct nlmsghdr *nlh, struct netlink_skb_parms *req) argument
[all...]
H A Ddn_dev.c624 static int dn_nl_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument
632 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, dn_ifa_policy);
636 ifm = nlmsg_data(nlh);
656 static int dn_nl_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument
665 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, dn_ifa_policy);
672 ifm = nlmsg_data(nlh);
719 struct nlmsghdr *nlh; local
721 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*ifm), flags);
722 if (nlh == NULL)
725 ifm = nlmsg_data(nlh);
[all...]
H A Ddn_rules.c129 struct nlmsghdr *nlh, struct fib_rule_hdr *frh,
206 struct nlmsghdr *nlh, struct fib_rule_hdr *frh)
128 dn_fib_rule_configure(struct fib_rule *rule, struct sk_buff *skb, struct nlmsghdr *nlh, struct fib_rule_hdr *frh, struct nlattr **tb) argument
205 dn_fib_rule_fill(struct fib_rule *rule, struct sk_buff *skb, struct nlmsghdr *nlh, struct fib_rule_hdr *frh) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/core/
H A Dneighbour.c1444 static int neigh_delete(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument
1452 if (nlmsg_len(nlh) < sizeof(*ndm))
1455 dst_attr = nlmsg_find_attr(nlh, sizeof(*ndm), NDA_DST);
1459 ndm = nlmsg_data(nlh);
1509 static int neigh_add(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument
1517 err = nlmsg_parse(nlh, sizeof(*ndm), tb, NDA_MAX, NULL);
1525 ndm = nlmsg_data(nlh);
1569 if (!(nlh->nlmsg_flags & NLM_F_CREATE)) {
1580 if (nlh->nlmsg_flags & NLM_F_EXCL) {
1586 if (!(nlh
1641 struct nlmsghdr *nlh; local
1726 struct nlmsghdr *nlh; local
1789 neightbl_set(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument
1961 struct nlmsghdr *nlh; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv6/
H A Daddrconf.c3035 inet6_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument
3042 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv6_policy);
3046 ifm = nlmsg_data(nlh);
3092 inet6_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument
3103 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_ipv6_policy);
3107 ifm = nlmsg_data(nlh);
3140 if (nlh->nlmsg_flags & NLM_F_EXCL ||
3141 !(nlh->nlmsg_flags & NLM_F_REPLACE))
3151 static void put_ifaddrmsg(struct nlmsghdr *nlh, u8 prefixlen, u8 flags, argument
3156 ifm = nlmsg_data(nlh);
3201 struct nlmsghdr *nlh; local
3237 struct nlmsghdr *nlh; local
3262 struct nlmsghdr *nlh; local
3393 inet6_rtm_getaddr(struct sk_buff *in_skb, struct nlmsghdr* nlh, void *arg) argument
3559 struct nlmsghdr *nlh; local
3683 struct nlmsghdr *nlh; local
[all...]
H A Droute.c2003 static int rtm_to_fib6_config(struct sk_buff *skb, struct nlmsghdr *nlh, argument
2010 err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_ipv6_policy);
2015 rtm = nlmsg_data(nlh);
2028 cfg->fc_nlinfo.nlh = nlh;
2072 static int inet6_rtm_delroute(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) argument
2077 err = rtm_to_fib6_config(skb, nlh, &cfg);
2084 static int inet6_rtm_newroute(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) argument
2089 err = rtm_to_fib6_config(skb, nlh, &cfg);
2117 struct nlmsghdr *nlh; local
2221 inet6_rtm_getroute(struct sk_buff *in_skb, struct nlmsghdr* nlh, void *arg) argument
2298 struct nlmsghdr *nlh = NULL; local
[all...]
H A Dfib6_rules.c165 struct nlmsghdr *nlh, struct fib_rule_hdr *frh,
224 struct nlmsghdr *nlh, struct fib_rule_hdr *frh)
164 fib6_rule_configure(struct fib_rule *rule, struct sk_buff *skb, struct nlmsghdr *nlh, struct fib_rule_hdr *frh, struct nlattr **tb) argument
223 fib6_rule_fill(struct fib_rule *rule, struct sk_buff *skb, struct nlmsghdr *nlh, struct fib_rule_hdr *frh) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/netfilter/
H A Dnfnetlink_queue.c340 struct nlmsghdr *nlh; local
402 nlh = NLMSG_PUT(skb, 0, 0,
405 nfmsg = NLMSG_DATA(nlh);
518 nlh->nlmsg_len = skb->tail - old_tail;
723 #define RCV_SKB_FAIL(err) do { netlink_ack(skb, nlh, (err)); return; } while (0)
780 struct nlmsghdr *nlh, struct nfattr *nfqa[])
782 struct nfgenmsg *nfmsg = NLMSG_DATA(nlh);
845 struct nlmsghdr *nlh, struct nfattr *nfqa[])
862 struct nlmsghdr *nlh, struct nfattr *nfqa[])
864 struct nfgenmsg *nfmsg = NLMSG_DATA(nlh);
779 nfqnl_recv_verdict(struct sock *ctnl, struct sk_buff *skb, struct nlmsghdr *nlh, struct nfattr *nfqa[]) argument
844 nfqnl_recv_unsupp(struct sock *ctnl, struct sk_buff *skb, struct nlmsghdr *nlh, struct nfattr *nfqa[]) argument
861 nfqnl_recv_config(struct sock *ctnl, struct sk_buff *skb, struct nlmsghdr *nlh, struct nfattr *nfqa[]) argument
[all...]
H A Dnfnetlink_log.c386 struct nlmsghdr *nlh; local
393 nlh = NLMSG_PUT(inst->skb, 0, 0,
396 nfmsg = NLMSG_DATA(nlh);
533 nlh->nlmsg_len = inst->skb->tail - old_tail;
534 inst->lastnlh = nlh;
544 #define RCV_SKB_FAIL(err) do { netlink_ack(skb, nlh, (err)); return; } while (0)
712 struct nlmsghdr *nlh, struct nfattr *nfqa[])
750 struct nlmsghdr *nlh, struct nfattr *nfula[])
752 struct nfgenmsg *nfmsg = NLMSG_DATA(nlh);
757 UDEBUG("entering for msg %u\n", NFNL_MSG_TYPE(nlh
711 nfulnl_recv_unsupp(struct sock *ctnl, struct sk_buff *skb, struct nlmsghdr *nlh, struct nfattr *nfqa[]) argument
749 nfulnl_recv_config(struct sock *ctnl, struct sk_buff *skb, struct nlmsghdr *nlh, struct nfattr *nfula[]) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/IGMP-PROXY/src/
H A Digmpv3.c1827 struct nlmsghdr *nlh = NULL; local
1861 nlh = (struct nlmsghdr *)malloc(NLMSG_SPACE(MAX_DATA_SIZE));
1863 if (nlh == NULL)
1873 nlh->nlmsg_len = NLMSG_SPACE(MAX_DATA_SIZE);
1874 nlh->nlmsg_pid = getpid();
1875 nlh->nlmsg_flags = 0;
1878 memcpy(NLMSG_DATA(nlh), buffer, length);
1879 iov.iov_base = (void *)nlh;
1880 iov.iov_len = nlh->nlmsg_len;
1893 if (nlh)
[all...]

Completed in 344 milliseconds

123