/kernel/linux/linux-5.10/net/ipv4/ |
H A D | datagram.c | 103 const struct ip_options_rcu *inet_opt; in ip4_datagram_release_cb() local 116 inet_opt = rcu_dereference(inet->inet_opt); in ip4_datagram_release_cb() 117 if (inet_opt && inet_opt->opt.srr) in ip4_datagram_release_cb() 118 daddr = inet_opt->opt.faddr; in ip4_datagram_release_cb()
|
H A D | ip_output.c | 466 struct ip_options_rcu *inet_opt; in __ip_queue_xmit() local 476 inet_opt = rcu_dereference(inet->inet_opt); in __ip_queue_xmit() 489 if (inet_opt && inet_opt->opt.srr) in __ip_queue_xmit() 490 daddr = inet_opt->opt.faddr; in __ip_queue_xmit() 510 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in __ip_queue_xmit() 514 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt in __ip_queue_xmit() [all...] |
H A D | tcp_ipv4.c | 216 struct ip_options_rcu *inet_opt; in tcp_v4_connect() local 226 inet_opt = rcu_dereference_protected(inet->inet_opt, in tcp_v4_connect() 228 if (inet_opt && inet_opt->opt.srr) { in tcp_v4_connect() 231 nexthop = inet_opt->opt.faddr; in tcp_v4_connect() 253 if (!inet_opt || !inet_opt->opt.srr) in tcp_v4_connect() 272 if (inet_opt) in tcp_v4_connect() 273 inet_csk(sk)->icsk_ext_hdr_len = inet_opt in tcp_v4_connect() 1546 struct ip_options_rcu *inet_opt; tcp_v4_syn_recv_sock() local [all...] |
H A D | af_inet.c | 162 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct() 1244 struct ip_options_rcu *inet_opt; in inet_sk_reselect_saddr() local 1246 inet_opt = rcu_dereference_protected(inet->inet_opt, in inet_sk_reselect_saddr() 1248 if (inet_opt && inet_opt->opt.srr) in inet_sk_reselect_saddr() 1249 daddr = inet_opt->opt.faddr; in inet_sk_reselect_saddr() 1289 struct ip_options_rcu *inet_opt; in inet_sk_rebuild_header() local 1299 inet_opt = rcu_dereference(inet->inet_opt); in inet_sk_rebuild_header() [all...] |
H A D | raw.c | 580 struct ip_options_rcu *inet_opt; in raw_sendmsg() local 583 inet_opt = rcu_dereference(inet->inet_opt); in raw_sendmsg() 584 if (inet_opt) { in raw_sendmsg() 585 memcpy(&opt_copy, inet_opt, in raw_sendmsg() 586 sizeof(*inet_opt) + inet_opt->opt.optlen); in raw_sendmsg()
|
H A D | ping.c | 754 struct ip_options_rcu *inet_opt; in ping_v4_sendmsg() local 757 inet_opt = rcu_dereference(inet->inet_opt); in ping_v4_sendmsg() 758 if (inet_opt) { in ping_v4_sendmsg() 759 memcpy(&opt_copy, inet_opt, in ping_v4_sendmsg() 760 sizeof(*inet_opt) + inet_opt->opt.optlen); in ping_v4_sendmsg()
|
H A D | inet_connection_sock.c | 1115 const struct ip_options_rcu *inet_opt; in inet_csk_rebuild_route() local 1121 inet_opt = rcu_dereference(inet->inet_opt); in inet_csk_rebuild_route() 1122 if (inet_opt && inet_opt->opt.srr) in inet_csk_rebuild_route() 1123 daddr = inet_opt->opt.faddr; in inet_csk_rebuild_route()
|
H A D | ip_sockglue.c | 964 old = rcu_dereference_protected(inet->inet_opt, in do_ip_setsockopt() 983 rcu_assign_pointer(inet->inet_opt, opt); in do_ip_setsockopt() 1550 struct ip_options_rcu *inet_opt; in do_ip_getsockopt() local 1552 inet_opt = rcu_dereference_protected(inet->inet_opt, in do_ip_getsockopt() 1555 if (inet_opt) in do_ip_getsockopt() 1556 memcpy(optbuf, &inet_opt->opt, in do_ip_getsockopt() 1558 inet_opt->opt.optlen); in do_ip_getsockopt()
|
H A D | cipso_ipv4.c | 1883 old = rcu_dereference_protected(sk_inet->inet_opt, in cipso_v4_sock_setattr() 1892 rcu_assign_pointer(sk_inet->inet_opt, opt); in cipso_v4_sock_setattr() 2054 hdr_delta = cipso_v4_delopt(&sk_inet->inet_opt); in cipso_v4_sock_delattr() 2143 opt = rcu_dereference(inet_sk(sk)->inet_opt); in cipso_v4_sock_getattr()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | datagram.c | 103 const struct ip_options_rcu *inet_opt; in ip4_datagram_release_cb() local 116 inet_opt = rcu_dereference(inet->inet_opt); in ip4_datagram_release_cb() 117 if (inet_opt && inet_opt->opt.srr) in ip4_datagram_release_cb() 118 daddr = inet_opt->opt.faddr; in ip4_datagram_release_cb()
|
H A D | ip_output.c | 459 struct ip_options_rcu *inet_opt; in __ip_queue_xmit() local 469 inet_opt = rcu_dereference(inet->inet_opt); in __ip_queue_xmit() 482 if (inet_opt && inet_opt->opt.srr) in __ip_queue_xmit() 483 daddr = inet_opt->opt.faddr; in __ip_queue_xmit() 503 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway) in __ip_queue_xmit() 507 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt in __ip_queue_xmit() [all...] |
H A D | af_inet.c | 157 kfree(rcu_dereference_protected(inet->inet_opt, 1)); in inet_sock_destruct() 1259 struct ip_options_rcu *inet_opt; in inet_sk_reselect_saddr() local 1262 inet_opt = rcu_dereference_protected(inet->inet_opt, in inet_sk_reselect_saddr() 1264 if (inet_opt && inet_opt->opt.srr) in inet_sk_reselect_saddr() 1265 daddr = inet_opt->opt.faddr; in inet_sk_reselect_saddr() 1311 struct ip_options_rcu *inet_opt; in inet_sk_rebuild_header() local 1321 inet_opt = rcu_dereference(inet->inet_opt); in inet_sk_rebuild_header() [all...] |
H A D | ping.c | 749 struct ip_options_rcu *inet_opt; in ping_v4_sendmsg() local 752 inet_opt = rcu_dereference(inet->inet_opt); in ping_v4_sendmsg() 753 if (inet_opt) { in ping_v4_sendmsg() 754 memcpy(&opt_copy, inet_opt, in ping_v4_sendmsg() 755 sizeof(*inet_opt) + inet_opt->opt.optlen); in ping_v4_sendmsg()
|
H A D | raw.c | 552 struct ip_options_rcu *inet_opt; in raw_sendmsg() local 555 inet_opt = rcu_dereference(inet->inet_opt); in raw_sendmsg() 556 if (inet_opt) { in raw_sendmsg() 557 memcpy(&opt_copy, inet_opt, in raw_sendmsg() 558 sizeof(*inet_opt) + inet_opt->opt.optlen); in raw_sendmsg()
|
H A D | tcp_ipv4.c | 207 struct ip_options_rcu *inet_opt; in tcp_v4_connect() local 222 inet_opt = rcu_dereference_protected(inet->inet_opt, in tcp_v4_connect() 224 if (inet_opt && inet_opt->opt.srr) { in tcp_v4_connect() 227 nexthop = inet_opt->opt.faddr; in tcp_v4_connect() 248 if (!inet_opt || !inet_opt->opt.srr) in tcp_v4_connect() 275 if (inet_opt) in tcp_v4_connect() 276 inet_csk(sk)->icsk_ext_hdr_len = inet_opt in tcp_v4_connect() 1572 struct ip_options_rcu *inet_opt; tcp_v4_syn_recv_sock() local [all...] |
H A D | inet_connection_sock.c | 1460 const struct ip_options_rcu *inet_opt; in inet_csk_rebuild_route() local 1466 inet_opt = rcu_dereference(inet->inet_opt); in inet_csk_rebuild_route() 1467 if (inet_opt && inet_opt->opt.srr) in inet_csk_rebuild_route() 1468 daddr = inet_opt->opt.faddr; in inet_csk_rebuild_route()
|
H A D | ip_sockglue.c | 1059 old = rcu_dereference_protected(inet->inet_opt, in do_ip_setsockopt() 1078 rcu_assign_pointer(inet->inet_opt, opt); in do_ip_setsockopt() 1608 struct ip_options_rcu *inet_opt; in do_ip_getsockopt() local 1610 inet_opt = rcu_dereference_protected(inet->inet_opt, in do_ip_getsockopt() 1613 if (inet_opt) in do_ip_getsockopt() 1614 memcpy(optbuf, &inet_opt->opt, in do_ip_getsockopt() 1616 inet_opt->opt.optlen); in do_ip_getsockopt()
|
H A D | cipso_ipv4.c | 1882 old = rcu_dereference_protected(sk_inet->inet_opt, in cipso_v4_sock_setattr() 1891 rcu_assign_pointer(sk_inet->inet_opt, opt); in cipso_v4_sock_setattr() 2053 hdr_delta = cipso_v4_delopt(&sk_inet->inet_opt); in cipso_v4_sock_delattr() 2142 opt = rcu_dereference(inet_sk(sk)->inet_opt); in cipso_v4_sock_getattr()
|
/kernel/linux/linux-5.10/net/dccp/ |
H A D | ipv4.c | 48 struct ip_options_rcu *inet_opt; in dccp_v4_connect() local 60 inet_opt = rcu_dereference_protected(inet->inet_opt, in dccp_v4_connect() 62 if (inet_opt != NULL && inet_opt->opt.srr) { in dccp_v4_connect() 65 nexthop = inet_opt->opt.faddr; in dccp_v4_connect() 83 if (inet_opt == NULL || !inet_opt->opt.srr) in dccp_v4_connect() 93 if (inet_opt) in dccp_v4_connect() 94 inet_csk(sk)->icsk_ext_hdr_len = inet_opt in dccp_v4_connect() [all...] |
/kernel/linux/linux-6.6/net/dccp/ |
H A D | ipv4.c | 55 struct ip_options_rcu *inet_opt; in dccp_v4_connect() local 67 inet_opt = rcu_dereference_protected(inet->inet_opt, in dccp_v4_connect() 69 if (inet_opt != NULL && inet_opt->opt.srr) { in dccp_v4_connect() 72 nexthop = inet_opt->opt.faddr; in dccp_v4_connect() 89 if (inet_opt == NULL || !inet_opt->opt.srr) in dccp_v4_connect() 106 if (inet_opt) in dccp_v4_connect() 107 inet_csk(sk)->icsk_ext_hdr_len = inet_opt in dccp_v4_connect() [all...] |
/kernel/linux/linux-5.10/net/sctp/ |
H A D | protocol.c | 179 struct ip_options_rcu *inet_opt, *newopt = NULL; in sctp_v4_copy_ip_options() local 184 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_copy_ip_options() 185 if (inet_opt) { in sctp_v4_copy_ip_options() 186 newopt = sock_kmalloc(newsk, sizeof(*inet_opt) + in sctp_v4_copy_ip_options() 187 inet_opt->opt.optlen, GFP_ATOMIC); in sctp_v4_copy_ip_options() 189 memcpy(newopt, inet_opt, sizeof(*inet_opt) + in sctp_v4_copy_ip_options() 190 inet_opt->opt.optlen); in sctp_v4_copy_ip_options() 194 RCU_INIT_POINTER(newinet->inet_opt, newop in sctp_v4_copy_ip_options() 202 struct ip_options_rcu *inet_opt; sctp_v4_ip_options_len() local [all...] |
/kernel/linux/linux-6.6/net/l2tp/ |
H A D | l2tp_ip.c | 466 const struct ip_options_rcu *inet_opt; in l2tp_ip_sendmsg() local 468 inet_opt = rcu_dereference(inet->inet_opt); in l2tp_ip_sendmsg() 471 if (inet_opt && inet_opt->opt.srr) in l2tp_ip_sendmsg() 472 daddr = inet_opt->opt.faddr; in l2tp_ip_sendmsg()
|
/kernel/linux/linux-5.10/net/l2tp/ |
H A D | l2tp_ip.c | 464 const struct ip_options_rcu *inet_opt; in l2tp_ip_sendmsg() local 466 inet_opt = rcu_dereference(inet->inet_opt); in l2tp_ip_sendmsg() 469 if (inet_opt && inet_opt->opt.srr) in l2tp_ip_sendmsg() 470 daddr = inet_opt->opt.faddr; in l2tp_ip_sendmsg()
|
/kernel/linux/linux-6.6/net/sctp/ |
H A D | protocol.c | 179 struct ip_options_rcu *inet_opt, *newopt = NULL; in sctp_v4_copy_ip_options() local 184 inet_opt = rcu_dereference(inet->inet_opt); in sctp_v4_copy_ip_options() 185 if (inet_opt) { in sctp_v4_copy_ip_options() 186 newopt = sock_kmalloc(newsk, sizeof(*inet_opt) + in sctp_v4_copy_ip_options() 187 inet_opt->opt.optlen, GFP_ATOMIC); in sctp_v4_copy_ip_options() 189 memcpy(newopt, inet_opt, sizeof(*inet_opt) + in sctp_v4_copy_ip_options() 190 inet_opt->opt.optlen); in sctp_v4_copy_ip_options() 194 RCU_INIT_POINTER(newinet->inet_opt, newop in sctp_v4_copy_ip_options() 202 struct ip_options_rcu *inet_opt; sctp_v4_ip_options_len() local [all...] |
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
H A D | tcp_nip.c | 644 struct ip_options_rcu *inet_opt; in tcp_nip_connect() local 656 inet_opt = rcu_dereference_protected(inet->inet_opt, in tcp_nip_connect() 694 if (inet_opt) in tcp_nip_connect() 695 inet_csk(sk)->icsk_ext_hdr_len = inet_opt->opt.optlen; in tcp_nip_connect() 946 newinet->inet_opt = NULL; in tcp_nip_syn_recv_sock() 982 newinet->inet_opt = NULL; in tcp_nip_syn_recv_sock()
|