Home
last modified time | relevance | path

Searched refs:inet_opt (Results 1 – 16 of 16) sorted by relevance

/linux-4.1.27/net/ipv4/
Ddatagram.c105 const struct ip_options_rcu *inet_opt; in ip4_datagram_release_cb() local
118 inet_opt = rcu_dereference(inet->inet_opt); in ip4_datagram_release_cb()
119 if (inet_opt && inet_opt->opt.srr) in ip4_datagram_release_cb()
120 daddr = inet_opt->opt.faddr; in ip4_datagram_release_cb()
Daf_inet.c155 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct()
1113 struct ip_options_rcu *inet_opt; in inet_sk_reselect_saddr() local
1115 inet_opt = rcu_dereference_protected(inet->inet_opt, in inet_sk_reselect_saddr()
1117 if (inet_opt && inet_opt->opt.srr) in inet_sk_reselect_saddr()
1118 daddr = inet_opt->opt.faddr; in inet_sk_reselect_saddr()
1159 struct ip_options_rcu *inet_opt; in inet_sk_rebuild_header() local
1169 inet_opt = rcu_dereference(inet->inet_opt); in inet_sk_rebuild_header()
1171 if (inet_opt && inet_opt->opt.srr) in inet_sk_rebuild_header()
1172 daddr = inet_opt->opt.faddr; in inet_sk_rebuild_header()
Dip_output.c373 struct ip_options_rcu *inet_opt; in ip_queue_xmit() local
383 inet_opt = rcu_dereference(inet->inet_opt); in ip_queue_xmit()
396 if (inet_opt && inet_opt->opt.srr) in ip_queue_xmit()
397 daddr = inet_opt->opt.faddr; in ip_queue_xmit()
417 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in ip_queue_xmit()
421 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0)); in ip_queue_xmit()
435 if (inet_opt && inet_opt->opt.optlen) { in ip_queue_xmit()
436 iph->ihl += inet_opt->opt.optlen >> 2; in ip_queue_xmit()
437 ip_options_build(skb, &inet_opt->opt, inet->inet_daddr, rt, 0); in ip_queue_xmit()
Dtcp_ipv4.c151 struct ip_options_rcu *inet_opt; in tcp_v4_connect() local
160 inet_opt = rcu_dereference_protected(inet->inet_opt, in tcp_v4_connect()
162 if (inet_opt && inet_opt->opt.srr) { in tcp_v4_connect()
165 nexthop = inet_opt->opt.faddr; in tcp_v4_connect()
187 if (!inet_opt || !inet_opt->opt.srr) in tcp_v4_connect()
210 if (inet_opt) in tcp_v4_connect()
211 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in tcp_v4_connect()
1259 struct ip_options_rcu *inet_opt; in tcp_v4_syn_recv_sock() local
1277 inet_opt = ireq->opt; in tcp_v4_syn_recv_sock()
1278 rcu_assign_pointer(newinet->inet_opt, inet_opt); in tcp_v4_syn_recv_sock()
[all …]
Dinet_connection_sock.c447 opt = rcu_dereference(newinet->inet_opt); in inet_csk_route_child_sock()
938 const struct ip_options_rcu *inet_opt; in inet_csk_rebuild_route() local
944 inet_opt = rcu_dereference(inet->inet_opt); in inet_csk_rebuild_route()
945 if (inet_opt && inet_opt->opt.srr) in inet_csk_rebuild_route()
946 daddr = inet_opt->opt.faddr; in inet_csk_rebuild_route()
Draw.c558 struct ip_options_rcu *inet_opt; in raw_sendmsg() local
561 inet_opt = rcu_dereference(inet->inet_opt); in raw_sendmsg()
562 if (inet_opt) { in raw_sendmsg()
563 memcpy(&opt_copy, inet_opt, in raw_sendmsg()
564 sizeof(*inet_opt) + inet_opt->opt.optlen); in raw_sendmsg()
Dip_sockglue.c635 old = rcu_dereference_protected(inet->inet_opt, in do_ip_setsockopt()
654 rcu_assign_pointer(inet->inet_opt, opt); in do_ip_setsockopt()
1277 struct ip_options_rcu *inet_opt; in do_ip_getsockopt() local
1279 inet_opt = rcu_dereference_protected(inet->inet_opt, in do_ip_getsockopt()
1282 if (inet_opt) in do_ip_getsockopt()
1283 memcpy(optbuf, &inet_opt->opt, in do_ip_getsockopt()
1285 inet_opt->opt.optlen); in do_ip_getsockopt()
Dping.c756 struct ip_options_rcu *inet_opt; in ping_v4_sendmsg() local
759 inet_opt = rcu_dereference(inet->inet_opt); in ping_v4_sendmsg()
760 if (inet_opt) { in ping_v4_sendmsg()
761 memcpy(&opt_copy, inet_opt, in ping_v4_sendmsg()
762 sizeof(*inet_opt) + inet_opt->opt.optlen); in ping_v4_sendmsg()
Dcipso_ipv4.c1936 old = rcu_dereference_protected(sk_inet->inet_opt, sock_owned_by_user(sk)); in cipso_v4_sock_setattr()
1944 rcu_assign_pointer(sk_inet->inet_opt, opt); in cipso_v4_sock_setattr()
2104 opt = rcu_dereference_protected(sk_inet->inet_opt, 1); in cipso_v4_sock_delattr()
2108 hdr_delta = cipso_v4_delopt(&sk_inet->inet_opt); in cipso_v4_sock_delattr()
2205 opt = rcu_dereference(inet_sk(sk)->inet_opt); in cipso_v4_sock_getattr()
Dudp.c975 struct ip_options_rcu *inet_opt; in udp_sendmsg() local
978 inet_opt = rcu_dereference(inet->inet_opt); in udp_sendmsg()
979 if (inet_opt) { in udp_sendmsg()
980 memcpy(&opt_copy, inet_opt, in udp_sendmsg()
981 sizeof(*inet_opt) + inet_opt->opt.optlen); in udp_sendmsg()
Droute.c536 const struct ip_options_rcu *inet_opt; in build_sk_flow_key() local
540 inet_opt = rcu_dereference(inet->inet_opt); in build_sk_flow_key()
541 if (inet_opt && inet_opt->opt.srr) in build_sk_flow_key()
542 daddr = inet_opt->opt.faddr; in build_sk_flow_key()
/linux-4.1.27/net/dccp/
Dipv4.c52 struct ip_options_rcu *inet_opt; in dccp_v4_connect() local
64 inet_opt = rcu_dereference_protected(inet->inet_opt, in dccp_v4_connect()
66 if (inet_opt != NULL && inet_opt->opt.srr) { in dccp_v4_connect()
69 nexthop = inet_opt->opt.faddr; in dccp_v4_connect()
87 if (inet_opt == NULL || !inet_opt->opt.srr) in dccp_v4_connect()
97 if (inet_opt) in dccp_v4_connect()
98 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in dccp_v4_connect()
413 newinet->inet_opt = ireq->opt; in dccp_v4_request_recv_sock()
Dipv6.c519 newinet->inet_opt = NULL; in dccp_v6_request_recv_sock()
/linux-4.1.27/net/l2tp/
Dl2tp_ip.c456 const struct ip_options_rcu *inet_opt; in l2tp_ip_sendmsg() local
458 inet_opt = rcu_dereference(inet->inet_opt); in l2tp_ip_sendmsg()
461 if (inet_opt && inet_opt->opt.srr) in l2tp_ip_sendmsg()
462 daddr = inet_opt->opt.faddr; in l2tp_ip_sendmsg()
/linux-4.1.27/include/net/
Dinet_sock.h176 struct ip_options_rcu __rcu *inet_opt; member
/linux-4.1.27/net/ipv6/
Dtcp_ipv6.c1107 newinet->inet_opt = NULL; in tcp_v6_syn_recv_sock()