• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/xfrm/

Lines Matching refs:nlh

436 static int xfrm_add_sa(struct sk_buff *skb, struct nlmsghdr *nlh,
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,
516 struct xfrm_usersa_id *p = NLMSG_DATA(nlh);
535 c.seq = nlh->nlmsg_seq;
536 c.pid = nlh->nlmsg_pid;
537 c.event = nlh->nlmsg_type;
578 struct nlmsghdr *nlh;
584 nlh = NLMSG_PUT(skb, NETLINK_CB(in_skb).pid,
587 nlh->nlmsg_flags = sp->nlmsg_flags;
589 p = NLMSG_DATA(nlh);
624 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
641 info.nlmsg_seq = cb->nlh->nlmsg_seq;
680 struct nlmsghdr *nlh;
683 nlh = nlmsg_put(skb, pid, seq, XFRM_MSG_NEWSPDINFO, sizeof(u32), 0);
684 if (nlh == NULL) /* shouldnt really happen ... */
687 f = nlmsg_data(nlh);
702 return nlmsg_end(skb, nlh);
705 nlmsg_cancel(skb, nlh);
709 static int xfrm_get_spdinfo(struct sk_buff *skb, struct nlmsghdr *nlh,
713 u32 *flags = NLMSG_DATA(nlh);
715 u32 seq = nlh->nlmsg_seq;
735 struct nlmsghdr *nlh;
738 nlh = nlmsg_put(skb, pid, seq, XFRM_MSG_NEWSADINFO, sizeof(u32), 0);
739 if (nlh == NULL) /* shouldnt really happen ... */
742 f = nlmsg_data(nlh);
752 return nlmsg_end(skb, nlh);
755 nlmsg_cancel(skb, nlh);
759 static int xfrm_get_sadinfo(struct sk_buff *skb, struct nlmsghdr *nlh,
763 u32 *flags = NLMSG_DATA(nlh);
765 u32 seq = nlh->nlmsg_seq;
782 static int xfrm_get_sa(struct sk_buff *skb, struct nlmsghdr *nlh,
785 struct xfrm_usersa_id *p = NLMSG_DATA(nlh);
794 resp_skb = xfrm_state_netlink(skb, x, nlh->nlmsg_seq);
829 static int xfrm_alloc_userspi(struct sk_buff *skb, struct nlmsghdr *nlh,
839 p = NLMSG_DATA(nlh);
871 resp_skb = xfrm_state_netlink(skb, x, nlh->nlmsg_seq);
1124 static int xfrm_add_policy(struct sk_buff *skb, struct nlmsghdr *nlh,
1127 struct xfrm_userpolicy_info *p = NLMSG_DATA(nlh);
1144 /* shouldnt excl be based on nlh flags??
1148 excl = nlh->nlmsg_type == XFRM_MSG_NEWPOLICY;
1159 c.event = nlh->nlmsg_type;
1160 c.seq = nlh->nlmsg_seq;
1161 c.pid = nlh->nlmsg_pid;
1265 struct nlmsghdr *nlh;
1271 nlh = NLMSG_PUT(skb, NETLINK_CB(in_skb).pid,
1274 p = NLMSG_DATA(nlh);
1275 nlh->nlmsg_flags = sp->nlmsg_flags;
1285 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
1301 info.nlmsg_seq = cb->nlh->nlmsg_seq;
1339 static int xfrm_get_policy(struct sk_buff *skb, struct nlmsghdr *nlh,
1349 p = NLMSG_DATA(nlh);
1350 delete = nlh->nlmsg_type == XFRM_MSG_DELPOLICY;
1387 resp_skb = xfrm_policy_netlink(skb, xp, p->dir, nlh->nlmsg_seq);
1403 c.event = nlh->nlmsg_type;
1404 c.seq = nlh->nlmsg_seq;
1405 c.pid = nlh->nlmsg_pid;
1414 static int xfrm_flush_sa(struct sk_buff *skb, struct nlmsghdr *nlh,
1418 struct xfrm_usersa_flush *p = NLMSG_DATA(nlh);
1428 c.event = nlh->nlmsg_type;
1429 c.seq = nlh->nlmsg_seq;
1430 c.pid = nlh->nlmsg_pid;
1440 struct nlmsghdr *nlh;
1444 nlh = NLMSG_PUT(skb, c->pid, c->seq, XFRM_MSG_NEWAE, sizeof(*id));
1445 id = NLMSG_DATA(nlh);
1446 nlh->nlmsg_flags = 0;
1474 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
1483 static int xfrm_get_ae(struct sk_buff *skb, struct nlmsghdr *nlh,
1490 struct xfrm_aevent_id *p = NLMSG_DATA(nlh);
1515 c.seq = nlh->nlmsg_seq;
1516 c.pid = nlh->nlmsg_pid;
1527 static int xfrm_new_ae(struct sk_buff *skb, struct nlmsghdr *nlh,
1533 struct xfrm_aevent_id *p = NLMSG_DATA(nlh);
1541 if (!(nlh->nlmsg_flags&NLM_F_REPLACE))
1557 c.event = nlh->nlmsg_type;
1558 c.seq = nlh->nlmsg_seq;
1559 c.pid = nlh->nlmsg_pid;
1568 static int xfrm_flush_policy(struct sk_buff *skb, struct nlmsghdr *nlh,
1586 c.event = nlh->nlmsg_type;
1587 c.seq = nlh->nlmsg_seq;
1588 c.pid = nlh->nlmsg_pid;
1593 static int xfrm_add_pol_expire(struct sk_buff *skb, struct nlmsghdr *nlh,
1597 struct xfrm_user_polexpire *up = NLMSG_DATA(nlh);
1654 static int xfrm_add_sa_expire(struct sk_buff *skb, struct nlmsghdr *nlh,
1659 struct xfrm_user_expire *ue = NLMSG_DATA(nlh);
1686 static int xfrm_add_acquire(struct sk_buff *skb, struct nlmsghdr *nlh,
1694 struct xfrm_user_acquire *ua = NLMSG_DATA(nlh);
1786 static int xfrm_do_migrate(struct sk_buff *skb, struct nlmsghdr *nlh,
1789 struct xfrm_userpolicy_id *pi = NLMSG_DATA(nlh);
1816 static int xfrm_do_migrate(struct sk_buff *skb, struct nlmsghdr *nlh,
1852 struct nlmsghdr *nlh;
1856 nlh = NLMSG_PUT(skb, 0, 0, XFRM_MSG_MIGRATE, sizeof(*pol_id));
1857 pol_id = NLMSG_DATA(nlh);
1858 nlh->nlmsg_flags = 0;
1873 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
1965 static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
1971 type = nlh->nlmsg_type;
1984 (nlh->nlmsg_flags & NLM_F_DUMP)) {
1988 return netlink_dump_start(xfrm_nl, skb, nlh, link->dump, NULL);
1993 if (nlh->nlmsg_len < (min_len = xfrm_msg_min[type]))
1996 if (nlh->nlmsg_len > min_len) {
1997 int attrlen = nlh->nlmsg_len - NLMSG_ALIGN(min_len);
1998 struct rtattr *attr = (void *) nlh + NLMSG_ALIGN(min_len);
2014 return link->doit(skb, nlh, xfrma);
2032 struct nlmsghdr *nlh;
2035 nlh = NLMSG_PUT(skb, c->pid, 0, XFRM_MSG_EXPIRE,
2037 ue = NLMSG_DATA(nlh);
2038 nlh->nlmsg_flags = 0;
2043 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
2088 struct nlmsghdr *nlh;
2098 nlh = NLMSG_PUT(skb, c->pid, c->seq,
2100 nlh->nlmsg_flags = 0;
2102 p = NLMSG_DATA(nlh);
2105 nlh->nlmsg_len = skb->tail - b;
2134 struct nlmsghdr *nlh;
2152 nlh = NLMSG_PUT(skb, c->pid, c->seq, c->event, headlen);
2153 nlh->nlmsg_flags = 0;
2155 p = NLMSG_DATA(nlh);
2157 id = NLMSG_DATA(nlh);
2180 nlh->nlmsg_len = skb->tail - b;
2219 struct nlmsghdr *nlh;
2223 nlh = NLMSG_PUT(skb, 0, 0, XFRM_MSG_ACQUIRE,
2225 ua = NLMSG_DATA(nlh);
2226 nlh->nlmsg_flags = 0;
2244 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
2338 struct nlmsghdr *nlh;
2342 nlh = NLMSG_PUT(skb, c->pid, 0, XFRM_MSG_POLEXPIRE, sizeof(*upe));
2343 upe = NLMSG_DATA(nlh);
2344 nlh->nlmsg_flags = 0;
2355 nlh->nlmsg_len = skb_tail_pointer(skb) - b;
2389 struct nlmsghdr *nlh;
2410 nlh = NLMSG_PUT(skb, c->pid, c->seq, c->event, headlen);
2412 p = NLMSG_DATA(nlh);
2414 id = NLMSG_DATA(nlh);
2425 nlh->nlmsg_flags = 0;
2433 nlh->nlmsg_len = skb->tail - b;
2446 struct nlmsghdr *nlh;
2461 nlh = NLMSG_PUT(skb, c->pid, c->seq, XFRM_MSG_FLUSHPOLICY, 0);
2462 nlh->nlmsg_flags = 0;
2466 nlh->nlmsg_len = skb->tail - b;
2500 struct nlmsghdr *nlh;
2503 nlh = NLMSG_PUT(skb, 0, 0, XFRM_MSG_REPORT, sizeof(*ur));
2504 ur = NLMSG_DATA(nlh);
2505 nlh->nlmsg_flags = 0;
2513 nlh->nlmsg_len = skb_tail_pointer(skb) - b;