Lines Matching refs:cfg
10 int udp_sock_create4(struct net *net, struct udp_port_cfg *cfg, in udp_sock_create4() argument
21 if (cfg->bind_ifindex) { in udp_sock_create4()
22 err = sock_bindtoindex(sock->sk, cfg->bind_ifindex, true); in udp_sock_create4()
28 udp_addr.sin_addr = cfg->local_ip; in udp_sock_create4()
29 udp_addr.sin_port = cfg->local_udp_port; in udp_sock_create4()
35 if (cfg->peer_udp_port) { in udp_sock_create4()
37 udp_addr.sin_addr = cfg->peer_ip; in udp_sock_create4()
38 udp_addr.sin_port = cfg->peer_udp_port; in udp_sock_create4()
45 sock->sk->sk_no_check_tx = !cfg->use_udp_checksums; in udp_sock_create4()
61 struct udp_tunnel_sock_cfg *cfg) in setup_udp_tunnel_sock() argument
71 rcu_assign_sk_user_data(sk, cfg->sk_user_data); in setup_udp_tunnel_sock()
73 udp_sk(sk)->encap_type = cfg->encap_type; in setup_udp_tunnel_sock()
74 udp_sk(sk)->encap_rcv = cfg->encap_rcv; in setup_udp_tunnel_sock()
75 udp_sk(sk)->encap_err_rcv = cfg->encap_err_rcv; in setup_udp_tunnel_sock()
76 udp_sk(sk)->encap_err_lookup = cfg->encap_err_lookup; in setup_udp_tunnel_sock()
77 udp_sk(sk)->encap_destroy = cfg->encap_destroy; in setup_udp_tunnel_sock()
78 udp_sk(sk)->gro_receive = cfg->gro_receive; in setup_udp_tunnel_sock()
79 udp_sk(sk)->gro_complete = cfg->gro_complete; in setup_udp_tunnel_sock()