• Home
  • Raw
  • Download

Lines Matching refs:c

686 	struct km_event c;  in xfrm_add_sa()  local
714 c.seq = nlh->nlmsg_seq; in xfrm_add_sa()
715 c.portid = nlh->nlmsg_pid; in xfrm_add_sa()
716 c.event = nlh->nlmsg_type; in xfrm_add_sa()
718 km_state_notify(x, &c); in xfrm_add_sa()
764 struct km_event c; in xfrm_del_sa() local
784 c.seq = nlh->nlmsg_seq; in xfrm_del_sa()
785 c.portid = nlh->nlmsg_pid; in xfrm_del_sa()
786 c.event = nlh->nlmsg_type; in xfrm_del_sa()
787 km_state_notify(x, &c); in xfrm_del_sa()
1806 struct km_event c; in xfrm_add_policy() local
1835 c.event = nlh->nlmsg_type; in xfrm_add_policy()
1836 c.seq = nlh->nlmsg_seq; in xfrm_add_policy()
1837 c.portid = nlh->nlmsg_pid; in xfrm_add_policy()
1838 km_policy_notify(xp, p->dir, &c); in xfrm_add_policy()
2120 struct km_event c; in xfrm_get_policy() local
2183 c.data.byid = p->index; in xfrm_get_policy()
2184 c.event = nlh->nlmsg_type; in xfrm_get_policy()
2185 c.seq = nlh->nlmsg_seq; in xfrm_get_policy()
2186 c.portid = nlh->nlmsg_pid; in xfrm_get_policy()
2187 km_policy_notify(xp, p->dir, &c); in xfrm_get_policy()
2199 struct km_event c; in xfrm_flush_sa() local
2209 c.data.proto = p->proto; in xfrm_flush_sa()
2210 c.event = nlh->nlmsg_type; in xfrm_flush_sa()
2211 c.seq = nlh->nlmsg_seq; in xfrm_flush_sa()
2212 c.portid = nlh->nlmsg_pid; in xfrm_flush_sa()
2213 c.net = net; in xfrm_flush_sa()
2214 km_state_notify(NULL, &c); in xfrm_flush_sa()
2233 static int build_aevent(struct sk_buff *skb, struct xfrm_state *x, const struct km_event *c) in build_aevent() argument
2239 nlh = nlmsg_put(skb, c->portid, c->seq, XFRM_MSG_NEWAE, sizeof(*id), 0); in build_aevent()
2251 id->flags = c->data.aevent; in build_aevent()
2302 struct km_event c; in xfrm_get_ae() local
2326 c.data.aevent = p->flags; in xfrm_get_ae()
2327 c.seq = nlh->nlmsg_seq; in xfrm_get_ae()
2328 c.portid = nlh->nlmsg_pid; in xfrm_get_ae()
2330 err = build_aevent(r_skb, x, &c); in xfrm_get_ae()
2344 struct km_event c; in xfrm_new_ae() local
2379 c.event = nlh->nlmsg_type; in xfrm_new_ae()
2380 c.seq = nlh->nlmsg_seq; in xfrm_new_ae()
2381 c.portid = nlh->nlmsg_pid; in xfrm_new_ae()
2382 c.data.aevent = XFRM_AE_CU; in xfrm_new_ae()
2383 km_state_notify(x, &c); in xfrm_new_ae()
2394 struct km_event c; in xfrm_flush_policy() local
2409 c.data.type = type; in xfrm_flush_policy()
2410 c.event = nlh->nlmsg_type; in xfrm_flush_policy()
2411 c.seq = nlh->nlmsg_seq; in xfrm_flush_policy()
2412 c.portid = nlh->nlmsg_pid; in xfrm_flush_policy()
2413 c.net = net; in xfrm_flush_policy()
2414 km_policy_notify(NULL, 0, &c); in xfrm_flush_policy()
2946 struct netlink_dump_control c = { in xfrm_user_rcv_msg() local
2957 err = netlink_dump_start(net->xfrm.nlsk, skb, nlh, &c); in xfrm_user_rcv_msg()
3004 static int build_expire(struct sk_buff *skb, struct xfrm_state *x, const struct km_event *c) in build_expire() argument
3010 nlh = nlmsg_put(skb, c->portid, 0, XFRM_MSG_EXPIRE, sizeof(*ue), 0); in build_expire()
3016 ue->hard = (c->data.hard != 0) ? 1 : 0; in build_expire()
3032 static int xfrm_exp_state_notify(struct xfrm_state *x, const struct km_event *c) in xfrm_exp_state_notify() argument
3041 if (build_expire(skb, x, c) < 0) { in xfrm_exp_state_notify()
3049 static int xfrm_aevent_state_notify(struct xfrm_state *x, const struct km_event *c) in xfrm_aevent_state_notify() argument
3059 err = build_aevent(skb, x, c); in xfrm_aevent_state_notify()
3065 static int xfrm_notify_sa_flush(const struct km_event *c) in xfrm_notify_sa_flush() argument
3067 struct net *net = c->net; in xfrm_notify_sa_flush()
3077 nlh = nlmsg_put(skb, c->portid, c->seq, XFRM_MSG_FLUSHSA, sizeof(*p), 0); in xfrm_notify_sa_flush()
3084 p->proto = c->data.proto; in xfrm_notify_sa_flush()
3138 static int xfrm_notify_sa(struct xfrm_state *x, const struct km_event *c) in xfrm_notify_sa() argument
3150 if (c->event == XFRM_MSG_DELSA) { in xfrm_notify_sa()
3161 nlh = nlmsg_put(skb, c->portid, c->seq, c->event, headlen, 0); in xfrm_notify_sa()
3167 if (c->event == XFRM_MSG_DELSA) { in xfrm_notify_sa()
3197 static int xfrm_send_state_notify(struct xfrm_state *x, const struct km_event *c) in xfrm_send_state_notify() argument
3200 switch (c->event) { in xfrm_send_state_notify()
3202 return xfrm_exp_state_notify(x, c); in xfrm_send_state_notify()
3204 return xfrm_aevent_state_notify(x, c); in xfrm_send_state_notify()
3208 return xfrm_notify_sa(x, c); in xfrm_send_state_notify()
3210 return xfrm_notify_sa_flush(c); in xfrm_send_state_notify()
3213 c->event); in xfrm_send_state_notify()
3358 int dir, const struct km_event *c) in build_polexpire() argument
3361 int hard = c->data.hard; in build_polexpire()
3365 nlh = nlmsg_put(skb, c->portid, 0, XFRM_MSG_POLEXPIRE, sizeof(*upe), 0); in build_polexpire()
3390 static int xfrm_exp_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) in xfrm_exp_policy_notify() argument
3400 err = build_polexpire(skb, xp, dir, c); in xfrm_exp_policy_notify()
3406 static int xfrm_notify_policy(struct xfrm_policy *xp, int dir, const struct km_event *c) in xfrm_notify_policy() argument
3418 if (c->event == XFRM_MSG_DELPOLICY) { in xfrm_notify_policy()
3430 nlh = nlmsg_put(skb, c->portid, c->seq, c->event, headlen, 0); in xfrm_notify_policy()
3436 if (c->event == XFRM_MSG_DELPOLICY) { in xfrm_notify_policy()
3442 if (c->data.byid) in xfrm_notify_policy()
3475 static int xfrm_notify_policy_flush(const struct km_event *c) in xfrm_notify_policy_flush() argument
3477 struct net *net = c->net; in xfrm_notify_policy_flush()
3486 nlh = nlmsg_put(skb, c->portid, c->seq, XFRM_MSG_FLUSHPOLICY, 0, 0); in xfrm_notify_policy_flush()
3490 err = copy_to_user_policy_type(c->data.type, skb); in xfrm_notify_policy_flush()
3503 static int xfrm_send_policy_notify(struct xfrm_policy *xp, int dir, const struct km_event *c) in xfrm_send_policy_notify() argument
3506 switch (c->event) { in xfrm_send_policy_notify()
3510 return xfrm_notify_policy(xp, dir, c); in xfrm_send_policy_notify()
3512 return xfrm_notify_policy_flush(c); in xfrm_send_policy_notify()
3514 return xfrm_exp_policy_notify(xp, dir, c); in xfrm_send_policy_notify()
3517 c->event); in xfrm_send_policy_notify()
3624 static bool xfrm_is_alive(const struct km_event *c) in xfrm_is_alive() argument
3626 return (bool)xfrm_acquire_is_on(c->net); in xfrm_is_alive()