Home
last modified time | relevance | path

Searched refs:ireq (Results 1 – 13 of 13) sorted by relevance

/net/ipv6/
Dsyncookies.c131 struct inet_request_sock *ireq; in cookie_v6_check() local
177 ireq = inet_rsk(req); in cookie_v6_check()
185 ireq->ir_rmt_port = th->source; in cookie_v6_check()
186 ireq->ir_num = ntohs(th->dest); in cookie_v6_check()
187 ireq->ir_v6_rmt_addr = ipv6_hdr(skb)->saddr; in cookie_v6_check()
188 ireq->ir_v6_loc_addr = ipv6_hdr(skb)->daddr; in cookie_v6_check()
193 ireq->pktopts = skb; in cookie_v6_check()
196 ireq->ir_iif = inet_request_bound_dev_if(sk, skb); in cookie_v6_check()
199 ipv6_addr_type(&ireq->ir_v6_rmt_addr) & IPV6_ADDR_LINKLOCAL) in cookie_v6_check()
200 ireq->ir_iif = tcp_v6_iif(skb); in cookie_v6_check()
[all …]
Dinet6_connection_sock.c32 struct inet_request_sock *ireq = inet_rsk(req); in inet6_csk_route_req() local
39 fl6->daddr = ireq->ir_v6_rmt_addr; in inet6_csk_route_req()
43 fl6->saddr = ireq->ir_v6_loc_addr; in inet6_csk_route_req()
44 fl6->flowi6_oif = ireq->ir_iif; in inet6_csk_route_req()
45 fl6->flowi6_mark = ireq->ir_mark; in inet6_csk_route_req()
46 fl6->fl6_dport = ireq->ir_rmt_port; in inet6_csk_route_req()
47 fl6->fl6_sport = htons(ireq->ir_num); in inet6_csk_route_req()
Dtcp_ipv6.c490 struct inet_request_sock *ireq = inet_rsk(req); in tcp_v6_send_synack() local
505 __tcp_v6_send_check(skb, &ireq->ir_v6_loc_addr, in tcp_v6_send_synack()
506 &ireq->ir_v6_rmt_addr); in tcp_v6_send_synack()
508 fl6->daddr = ireq->ir_v6_rmt_addr; in tcp_v6_send_synack()
509 if (np->repflow && ireq->pktopts) in tcp_v6_send_synack()
510 fl6->flowlabel = ip6_flowlabel(ipv6_hdr(ireq->pktopts)); in tcp_v6_send_synack()
513 opt = ireq->ipv6_opt; in tcp_v6_send_synack()
750 struct inet_request_sock *ireq = inet_rsk(req); in tcp_v6_init_req() local
753 ireq->ir_v6_rmt_addr = ipv6_hdr(skb)->saddr; in tcp_v6_init_req()
754 ireq->ir_v6_loc_addr = ipv6_hdr(skb)->daddr; in tcp_v6_init_req()
[all …]
Daddrconf.c2837 struct in6_ifreq ireq; in addrconf_set_dstaddr() local
2844 if (copy_from_user(&ireq, arg, sizeof(struct in6_ifreq))) in addrconf_set_dstaddr()
2847 dev = __dev_get_by_index(net, ireq.ifr6_ifindex); in addrconf_set_dstaddr()
2860 if (!(ipv6_addr_type(&ireq.ifr6_addr) & IPV6_ADDR_COMPATv4)) in addrconf_set_dstaddr()
2864 p.iph.daddr = ireq.ifr6_addr.s6_addr32[3]; in addrconf_set_dstaddr()
3058 struct in6_ifreq ireq; in addrconf_add_ifaddr() local
3064 if (copy_from_user(&ireq, arg, sizeof(struct in6_ifreq))) in addrconf_add_ifaddr()
3067 cfg.pfx = &ireq.ifr6_addr; in addrconf_add_ifaddr()
3068 cfg.plen = ireq.ifr6_prefixlen; in addrconf_add_ifaddr()
3071 err = inet6_addr_add(net, ireq.ifr6_ifindex, &cfg, NULL); in addrconf_add_ifaddr()
[all …]
/net/ipv4/
Dsyncookies.c67 struct inet_request_sock *ireq; in cookie_init_timestamp() local
71 ireq = inet_rsk(req); in cookie_init_timestamp()
73 options = ireq->wscale_ok ? ireq->snd_wscale : TS_OPT_WSCALE_MASK; in cookie_init_timestamp()
74 if (ireq->sack_ok) in cookie_init_timestamp()
76 if (ireq->ecn_ok) in cookie_init_timestamp()
287 struct inet_request_sock *ireq; in cookie_v4_check() local
333 ireq = inet_rsk(req); in cookie_v4_check()
340 ireq->ir_num = ntohs(th->dest); in cookie_v4_check()
341 ireq->ir_rmt_port = th->source; in cookie_v4_check()
344 ireq->ir_mark = inet_request_mark(sk, skb); in cookie_v4_check()
[all …]
Dtcp_minisocks.c364 struct inet_request_sock *ireq = inet_rsk(req); in tcp_openreq_init_rwin() local
390 mss - (ireq->tstamp_ok ? TCPOLEN_TSTAMP_ALIGNED : 0), in tcp_openreq_init_rwin()
393 ireq->wscale_ok, in tcp_openreq_init_rwin()
396 ireq->rcv_wscale = rcv_wscale; in tcp_openreq_init_rwin()
440 struct inet_request_sock *ireq; in smc_check_reset_syn_req() local
443 ireq = inet_rsk(req); in smc_check_reset_syn_req()
444 if (oldtp->syn_smc && !ireq->smc_ok) in smc_check_reset_syn_req()
461 const struct inet_request_sock *ireq = inet_rsk(req); in tcp_create_openreq_child() local
509 newtp->rx_opt.tstamp_ok = ireq->tstamp_ok; in tcp_create_openreq_child()
510 newtp->rx_opt.sack_ok = ireq->sack_ok; in tcp_create_openreq_child()
[all …]
Dinet_connection_sock.c545 const struct inet_request_sock *ireq = inet_rsk(req); in inet_csk_route_req() local
546 struct net *net = read_pnet(&ireq->ireq_net); in inet_csk_route_req()
551 opt = rcu_dereference(ireq->ireq_opt); in inet_csk_route_req()
553 flowi4_init_output(fl4, ireq->ir_iif, ireq->ir_mark, in inet_csk_route_req()
556 (opt && opt->opt.srr) ? opt->opt.faddr : ireq->ir_rmt_addr, in inet_csk_route_req()
557 ireq->ir_loc_addr, ireq->ir_rmt_port, in inet_csk_route_req()
558 htons(ireq->ir_num), sk->sk_uid); in inet_csk_route_req()
581 const struct inet_request_sock *ireq = inet_rsk(req); in inet_csk_route_child_sock() local
582 struct net *net = read_pnet(&ireq->ireq_net); in inet_csk_route_child_sock()
588 opt = rcu_dereference(ireq->ireq_opt); in inet_csk_route_child_sock()
[all …]
Dtcp_ipv4.c944 const struct inet_request_sock *ireq = inet_rsk(req); in tcp_v4_send_synack() local
956 __tcp_v4_send_check(skb, ireq->ir_loc_addr, ireq->ir_rmt_addr); in tcp_v4_send_synack()
959 err = ip_build_and_send_pkt(skb, sk, ireq->ir_loc_addr, in tcp_v4_send_synack()
960 ireq->ir_rmt_addr, in tcp_v4_send_synack()
961 rcu_dereference(ireq->ireq_opt)); in tcp_v4_send_synack()
1352 struct inet_request_sock *ireq = inet_rsk(req); in tcp_v4_init_req() local
1357 RCU_INIT_POINTER(ireq->ireq_opt, tcp_v4_save_options(net, skb)); in tcp_v4_init_req()
1419 struct inet_request_sock *ireq; in tcp_v4_syn_recv_sock() local
1440 ireq = inet_rsk(req); in tcp_v4_syn_recv_sock()
1441 sk_daddr_set(newsk, ireq->ir_rmt_addr); in tcp_v4_syn_recv_sock()
[all …]
Dtcp_output.c571 const struct inet_request_sock *ireq, in smc_set_option_cond() argument
577 if (tp->syn_smc && ireq->smc_ok) { in smc_set_option_cond()
667 struct inet_request_sock *ireq = inet_rsk(req); in tcp_synack_options() local
680 ireq->tstamp_ok &= !ireq->sack_ok; in tcp_synack_options()
688 if (likely(ireq->wscale_ok)) { in tcp_synack_options()
689 opts->ws = ireq->rcv_wscale; in tcp_synack_options()
693 if (likely(ireq->tstamp_ok)) { in tcp_synack_options()
699 if (likely(ireq->sack_ok)) { in tcp_synack_options()
701 if (unlikely(!ireq->tstamp_ok)) in tcp_synack_options()
717 smc_set_option_cond(tcp_sk(sk), ireq, opts, &remaining); in tcp_synack_options()
[all …]
Dtcp_input.c6373 struct inet_request_sock *ireq = inet_rsk(req); in pr_drop_req() local
6377 &ireq->ir_rmt_addr, port); in pr_drop_req()
6381 &ireq->ir_v6_rmt_addr, port); in pr_drop_req()
6430 struct inet_request_sock *ireq = inet_rsk(req); in tcp_openreq_init() local
6440 ireq->tstamp_ok = rx_opt->tstamp_ok; in tcp_openreq_init()
6441 ireq->sack_ok = rx_opt->sack_ok; in tcp_openreq_init()
6442 ireq->snd_wscale = rx_opt->snd_wscale; in tcp_openreq_init()
6443 ireq->wscale_ok = rx_opt->wscale_ok; in tcp_openreq_init()
6444 ireq->acked = 0; in tcp_openreq_init()
6445 ireq->ecn_ok = 0; in tcp_openreq_init()
[all …]
/net/dccp/
Dipv6.c190 struct inet_request_sock *ireq = inet_rsk(req); in dccp_v6_send_response() local
200 fl6.daddr = ireq->ir_v6_rmt_addr; in dccp_v6_send_response()
201 fl6.saddr = ireq->ir_v6_loc_addr; in dccp_v6_send_response()
203 fl6.flowi6_oif = ireq->ir_iif; in dccp_v6_send_response()
204 fl6.fl6_dport = ireq->ir_rmt_port; in dccp_v6_send_response()
205 fl6.fl6_sport = htons(ireq->ir_num); in dccp_v6_send_response()
226 &ireq->ir_v6_loc_addr, in dccp_v6_send_response()
227 &ireq->ir_v6_rmt_addr); in dccp_v6_send_response()
228 fl6.daddr = ireq->ir_v6_rmt_addr; in dccp_v6_send_response()
230 opt = ireq->ipv6_opt; in dccp_v6_send_response()
[all …]
Dipv4.c400 struct inet_request_sock *ireq; in dccp_v4_request_recv_sock() local
412 ireq = inet_rsk(req); in dccp_v4_request_recv_sock()
413 sk_daddr_set(newsk, ireq->ir_rmt_addr); in dccp_v4_request_recv_sock()
414 sk_rcv_saddr_set(newsk, ireq->ir_loc_addr); in dccp_v4_request_recv_sock()
415 newinet->inet_saddr = ireq->ir_loc_addr; in dccp_v4_request_recv_sock()
416 RCU_INIT_POINTER(newinet->inet_opt, rcu_dereference(ireq->ireq_opt)); in dccp_v4_request_recv_sock()
432 ireq->ireq_opt = NULL; in dccp_v4_request_recv_sock()
490 const struct inet_request_sock *ireq = inet_rsk(req); in dccp_v4_send_response() local
493 dh->dccph_checksum = dccp_v4_csum_finish(skb, ireq->ir_loc_addr, in dccp_v4_send_response()
494 ireq->ir_rmt_addr); in dccp_v4_send_response()
[all …]
/net/netlabel/
Dnetlabel_kapi.c1181 struct inet_request_sock *ireq = inet_rsk(req); in netlbl_req_setattr() local
1187 ireq->ir_rmt_addr); in netlbl_req_setattr()
1208 &ireq->ir_v6_rmt_addr); in netlbl_req_setattr()