Searched refs:nlh (Results 1 - 25 of 68) sorted by relevance

123

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/
H A Dscsi_netlink.c45 struct nlmsghdr *nlh; local
53 nlh = nlmsg_hdr(skb);
54 if ((nlh->nlmsg_len < (sizeof(*nlh) + sizeof(*hdr))) ||
55 (skb->len < nlh->nlmsg_len)) {
61 rlen = NLMSG_ALIGN(nlh->nlmsg_len);
65 if (nlh->nlmsg_type != SCSI_TRANSPORT_MSG) {
70 hdr = NLMSG_DATA(nlh);
82 if (nlh->nlmsg_len < (sizeof(*nlh)
[all...]
H A Dscsi_transport_iscsi.c532 struct nlmsghdr *nlh; local
552 nlh = __nlmsg_put(skb, priv->daemon_pid, 0, 0, (len - sizeof(*nlh)), 0);
553 ev = NLMSG_DATA(nlh);
569 struct nlmsghdr *nlh; local
586 nlh = __nlmsg_put(skb, priv->daemon_pid, 0, 0, (len - sizeof(*nlh)), 0);
587 ev = NLMSG_DATA(nlh);
606 struct nlmsghdr *nlh; local
614 nlh
621 iscsi_if_get_stats(struct iscsi_transport *transport, struct nlmsghdr *nlh) argument
698 struct nlmsghdr *nlh; local
759 struct nlmsghdr *nlh; local
957 iscsi_if_recv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) argument
1076 struct nlmsghdr *nlh; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/net/
H A Drtnetlink.h17 static inline int rtnl_msg_family(struct nlmsghdr *nlh) argument
19 if (nlmsg_len(nlh) >= sizeof(struct rtgenmsg))
20 return ((struct rtgenmsg *) nlmsg_data(nlh))->rtgen_family;
H A Dnetlink.h20 * nlmsg_data(nlh)---^ ^
21 * nlmsg_next(nlh)-----------------------+
24 * <---------------------- nlmsg_len(nlh) --------------------->
25 * <------ hdrlen ------> <- nlmsg_attrlen(nlh, hdrlen) ->
29 * nlmsg_attrdata(nlh, hdrlen)---^
55 * nlmsg_data(nlh) head of message payload
56 * nlmsg_len(nlh) length of message payload
57 * nlmsg_attrdata(nlh, hdrlen) head of attributes data
58 * nlmsg_attrlen(nlh, hdrlen) length of attributes data
61 * nlmsg_ok(nlh, remainin
213 struct nlmsghdr *nlh; member in struct:nl_info
286 nlmsg_data(const struct nlmsghdr *nlh) argument
295 nlmsg_len(const struct nlmsghdr *nlh) argument
305 nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen) argument
317 nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) argument
327 nlmsg_ok(const struct nlmsghdr *nlh, int remaining) argument
342 nlmsg_next(struct nlmsghdr *nlh, int *remaining) argument
361 nlmsg_parse(struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy) argument
380 nlmsg_find_attr(struct nlmsghdr *nlh, int hdrlen, int attrtype) argument
394 nlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype, const struct nla_policy *policy) argument
410 nlmsg_report(struct nlmsghdr *nlh) argument
492 nlmsg_end(struct sk_buff *skb, struct nlmsghdr *nlh) argument
533 nlmsg_cancel(struct sk_buff *skb, struct nlmsghdr *nlh) argument
[all...]
H A Dgenetlink.h93 struct nlmsghdr *nlh; local
96 nlh = nlmsg_put(skb, pid, seq, family->id, GENL_HDRLEN +
98 if (nlh == NULL)
101 hdr = nlmsg_data(nlh);
196 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - local
198 return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/include/linux/
H A Dnetlink.h74 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
75 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
76 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
77 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
78 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
79 (nlh)->nlmsg_len <= (len))
80 #define NLMSG_PAYLOAD(nlh,le
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/
H A Dnetlink.h80 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
81 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
82 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
83 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
84 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
85 (nlh)->nlmsg_len <= (len))
86 #define NLMSG_PAYLOAD(nlh,le
198 struct nlmsghdr *nlh; member in struct:netlink_callback
214 struct nlmsghdr *nlh; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/security/selinux/
H A Dnetlink.c42 static void selnl_add_payload(struct nlmsghdr *nlh, int len, int msgtype, void *data) argument
46 struct selnl_msg_setenforce *msg = NLMSG_DATA(nlh);
54 struct selnl_msg_policyload *msg = NLMSG_DATA(nlh);
71 struct nlmsghdr *nlh; local
80 nlh = NLMSG_PUT(skb, 0, 0, msgtype, len);
81 selnl_add_payload(nlh, len, msgtype, data);
82 nlh->nlmsg_len = skb->tail - tmp;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/ecryptfs/
H A Dnetlink.c51 struct nlmsghdr *nlh; local
63 nlh = NLMSG_PUT(skb, daemon_pid, msg_ctx ? msg_ctx->counter : 0,
65 nlh->nlmsg_flags = msg_flags;
67 msg = (struct ecryptfs_message *)NLMSG_DATA(nlh);
100 struct nlmsghdr *nlh = nlmsg_hdr(skb); local
101 struct ecryptfs_message *msg = NLMSG_DATA(nlh);
111 NETLINK_CREDS(skb)->pid, nlh->nlmsg_seq);
171 struct nlmsghdr *nlh; local
184 nlh = nlmsg_hdr(skb);
185 if (!NLMSG_OK(nlh, sk
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/bridge/
H A Dbr_netlink.c39 struct nlmsghdr *nlh; local
45 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*hdr), flags);
46 if (nlh == NULL)
49 hdr = nlmsg_data(nlh);
71 return nlmsg_end(skb, nlh);
74 nlmsg_cancel(skb, nlh);
119 cb->nlh->nlmsg_seq, RTM_NEWLINK,
135 static int br_rtm_setlink(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument
143 if (nlmsg_len(nlh) < sizeof(*ifm))
146 ifm = nlmsg_data(nlh);
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/Documentation/connector/
H A Ducon.c56 struct nlmsghdr *nlh; local
64 nlh = (struct nlmsghdr *)buf;
65 nlh->nlmsg_seq = seq++;
66 nlh->nlmsg_pid = getpid();
67 nlh->nlmsg_type = NLMSG_DONE;
68 nlh->nlmsg_len = NLMSG_LENGTH(size - sizeof(*nlh));
69 nlh->nlmsg_flags = 0;
71 m = NLMSG_DATA(nlh);
74 err = send(s, nlh, siz
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/decnet/netfilter/
H A Ddn_rtmsg.c37 struct nlmsghdr *nlh; local
47 nlh = NLMSG_PUT(skb, 0, 0, 0, size - sizeof(*nlh));
48 rtm = (struct nf_dn_rtmsg *)NLMSG_DATA(nlh);
52 nlh->nlmsg_len = skb->tail - old_tail;
101 #define RCV_SKB_FAIL(err) do { netlink_ack(skb, nlh, (err)); return; } while (0)
105 struct nlmsghdr *nlh = nlmsg_hdr(skb); local
107 if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iptables-1.4.12.1/libipq/
H A Dlibipq.c129 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:__anon459
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...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/iptables-1.x/libipq/
H A Dlibipq.c127 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:__anon11509
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...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/xfrm/
H A Dxfrm_user.c436 static int xfrm_add_sa(struct sk_buff *skb, struct nlmsghdr *nlh, argument
439 struct xfrm_usersa_info *p = NLMSG_DATA(nlh);
453 if (nlh->nlmsg_type == XFRM_MSG_NEWSA)
467 c.seq = nlh->nlmsg_seq;
468 c.pid = nlh->nlmsg_pid;
469 c.event = nlh->nlmsg_type;
510 static int xfrm_del_sa(struct sk_buff *skb, struct nlmsghdr *nlh, argument
516 struct xfrm_usersa_id *p = NLMSG_DATA(nlh);
535 c.seq = nlh->nlmsg_seq;
536 c.pid = nlh
578 struct nlmsghdr *nlh; local
680 struct nlmsghdr *nlh; local
709 xfrm_get_spdinfo(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
735 struct nlmsghdr *nlh; local
759 xfrm_get_sadinfo(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
782 xfrm_get_sa(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
829 xfrm_alloc_userspi(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
1124 xfrm_add_policy(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
1265 struct nlmsghdr *nlh; local
1339 xfrm_get_policy(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
1414 xfrm_flush_sa(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
1440 struct nlmsghdr *nlh; local
1483 xfrm_get_ae(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
1527 xfrm_new_ae(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
1568 xfrm_flush_policy(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
1593 xfrm_add_pol_expire(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
1654 xfrm_add_sa_expire(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
1686 xfrm_add_acquire(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
1786 xfrm_do_migrate(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
1816 xfrm_do_migrate(struct sk_buff *skb, struct nlmsghdr *nlh, struct rtattr **xfrma) argument
1852 struct nlmsghdr *nlh; local
1965 xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) argument
2032 struct nlmsghdr *nlh; local
2088 struct nlmsghdr *nlh; local
2134 struct nlmsghdr *nlh; local
2219 struct nlmsghdr *nlh; local
2338 struct nlmsghdr *nlh; local
2389 struct nlmsghdr *nlh; local
2446 struct nlmsghdr *nlh; local
2500 struct nlmsghdr *nlh; local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/netfilter/
H A Dnfnetlink.c151 struct nlmsghdr *nlh, struct nfattr *cda[])
154 u_int8_t cb_id = NFNL_MSG_TYPE(nlh->nlmsg_type);
158 if (likely(nlh->nlmsg_len > min_len)) {
159 struct nfattr *attr = NFM_NFA(NLMSG_DATA(nlh));
160 int attrlen = nlh->nlmsg_len - NLMSG_ALIGN(min_len);
198 static int nfnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) argument
208 if (nlh->nlmsg_len < NLMSG_SPACE(sizeof(struct nfgenmsg)))
211 type = nlh->nlmsg_type;
232 ss->cb[NFNL_MSG_TYPE(nlh->nlmsg_type)].attr_count;
237 err = nfnetlink_check_attributes(ss, nlh, cd
150 nfnetlink_check_attributes(struct nfnetlink_subsystem *subsys, struct nlmsghdr *nlh, struct nfattr *cda[]) argument
[all...]
H A Dnf_conntrack_netlink.c272 struct nlmsghdr *nlh; local
278 nlh = NLMSG_PUT(skb, pid, seq, event, sizeof(struct nfgenmsg));
279 nfmsg = NLMSG_DATA(nlh);
281 nlh->nlmsg_flags = (nowait && pid) ? NLM_F_MULTI : 0;
308 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
321 struct nlmsghdr *nlh; local
357 nlh = NLMSG_PUT(skb, 0, 0, type, sizeof(struct nfgenmsg));
358 nfmsg = NLMSG_DATA(nlh);
360 nlh->nlmsg_flags = flags;
406 nlh
666 ctnetlink_del_conntrack(struct sock *ctnl, struct sk_buff *skb, struct nlmsghdr *nlh, struct nfattr *cda[]) argument
714 ctnetlink_get_conntrack(struct sock *ctnl, struct sk_buff *skb, struct nlmsghdr *nlh, struct nfattr *cda[]) argument
1010 ctnetlink_new_conntrack(struct sock *ctnl, struct sk_buff *skb, struct nlmsghdr *nlh, struct nfattr *cda[]) argument
1151 struct nlmsghdr *nlh; local
1180 struct nlmsghdr *nlh; local
1261 ctnetlink_get_expect(struct sock *ctnl, struct sk_buff *skb, struct nlmsghdr *nlh, struct nfattr *cda[]) argument
1323 ctnetlink_del_expect(struct sock *ctnl, struct sk_buff *skb, struct nlmsghdr *nlh, struct nfattr *cda[]) argument
1457 ctnetlink_new_expect(struct sock *ctnl, struct sk_buff *skb, struct nlmsghdr *nlh, struct nfattr *cda[]) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/networking/libiproute/
H A Dlibnetlink.c52 struct nlmsghdr nlh; member in struct:__anon11359
60 req.nlh.nlmsg_len = sizeof(req);
61 req.nlh.nlmsg_type = type;
62 req.nlh.nlmsg_flags = NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST;
63 req.nlh.nlmsg_pid = 0;
64 req.nlh.nlmsg_seq = rth->dump = ++rth->seq;
83 struct nlmsghdr nlh; local
85 struct iovec iov[2] = { { &nlh, sizeof(nlh) }, { req, len } };
96 nlh
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/
H A Dinet_diag.c61 struct nlmsghdr *nlh; local
70 nlh = NLMSG_PUT(skb, pid, seq, unlh->nlmsg_type, sizeof(*r));
71 nlh->nlmsg_flags = nlmsg_flags;
73 r = NLMSG_DATA(nlh);
151 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
168 struct nlmsghdr *nlh = NLMSG_PUT(skb, pid, seq, local
171 r = NLMSG_DATA(nlh);
174 nlh->nlmsg_flags = nlmsg_flags;
209 nlh->nlmsg_len = skb_tail_pointer(skb) - previous_tail;
228 const struct nlmsghdr *nlh)
227 inet_diag_get_exact(struct sk_buff *in_skb, const struct nlmsghdr *nlh) argument
541 struct nlmsghdr *nlh; local
809 inet_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/dhcp6/
H A Difaddrs.c52 struct nlmsghdr *nlh; member in struct:nlmsg_list
307 struct nlmsghdr *nlh = NULL; local
318 status = nl_getmsg (sd, request, seq, &nlh, &done);
321 if (nlh)
328 free (nlh);
335 nlm_next->nlh = (struct nlmsghdr *) nlh;
366 if (nlm->nlh)
367 free (nlm->nlh);
467 struct nlmsghdr *nlh, *nlh local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/core/
H A Dfib_rules.c20 struct fib_rules_ops *ops, struct nlmsghdr *nlh,
198 static int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) argument
200 struct fib_rule_hdr *frh = nlmsg_data(nlh);
206 if (nlh->nlmsg_len < nlmsg_msg_size(sizeof(*frh)))
215 err = nlmsg_parse(nlh, sizeof(*frh), tb, FRA_MAX, ops->policy);
283 err = ops->configure(rule, skb, nlh, frh, tb);
322 notify_rule_change(RTM_NEWRULE, rule, ops, nlh, NETLINK_CB(skb).pid);
334 static int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) argument
336 struct fib_rule_hdr *frh = nlmsg_data(nlh);
342 if (nlh
445 struct nlmsghdr *nlh; local
548 notify_rule_change(int event, struct fib_rule *rule, struct fib_rules_ops *ops, struct nlmsghdr *nlh, u32 pid) argument
[all...]
H A Drtnetlink.c318 struct nlmsghdr *nlh, gfp_t flags)
322 if (nlh)
323 report = nlmsg_report(nlh);
463 struct nlmsghdr *nlh; local
465 nlh = nlmsg_put(skb, pid, seq, type, sizeof(*ifm), flags);
466 if (nlh == NULL)
469 ifm = nlmsg_data(nlh);
525 return nlmsg_end(skb, nlh);
528 nlmsg_cancel(skb, nlh);
544 cb->nlh
317 rtnl_notify(struct sk_buff *skb, u32 pid, u32 group, struct nlmsghdr *nlh, gfp_t flags) argument
564 rtnl_setlink(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) argument
730 rtnl_getlink(struct sk_buff *skb, struct nlmsghdr* nlh, void *arg) argument
823 rtnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/kernel/
H A Daudit.c154 struct nlmsghdr *nlh = nlmsg_hdr(ab->skb); local
155 nlh->nlmsg_pid = pid;
448 struct nlmsghdr *nlh; local
458 nlh = NLMSG_PUT(skb, pid, seq, t, size);
459 nlh->nlmsg_flags = flags;
460 data = NLMSG_DATA(nlh);
530 static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) argument
537 u16 msg_type = nlh->nlmsg_type;
561 seq = nlh->nlmsg_seq;
562 data = NLMSG_DATA(nlh);
749 struct nlmsghdr *nlh; local
866 struct nlmsghdr *nlh; local
1270 struct nlmsghdr *nlh = nlmsg_hdr(ab->skb); local
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/connector/
H A Dconnector.c78 struct nlmsghdr *nlh; local
110 nlh = NLMSG_PUT(skb, 0, msg->seq, NLMSG_DONE, size - sizeof(*nlh));
112 data = NLMSG_DATA(nlh);
185 static int __cn_rx_skb(struct sk_buff *skb, struct nlmsghdr *nlh) argument
192 seq = nlh->nlmsg_seq;
194 msg = NLMSG_DATA(nlh);
207 struct nlmsghdr *nlh; local
215 nlh = nlmsg_hdr(skb);
217 if (nlh
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/netlink/
H A Dgenetlink.c298 static int genl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) argument
303 struct genlmsghdr *hdr = nlmsg_data(nlh);
306 family = genl_family_find_byid(nlh->nlmsg_type);
311 if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen))
322 if (nlh->nlmsg_flags & NLM_F_DUMP) {
326 return netlink_dump_start(genl_sock, skb, nlh,
334 err = nlmsg_parse(nlh, hdrlen, family->attrbuf, family->maxattr,
340 info.snd_seq = nlh->nlmsg_seq;
342 info.nlhdr = nlh;
343 info.genlhdr = nlmsg_data(nlh);
[all...]

Completed in 182 milliseconds

123