Lines Matching refs:cfg
16 int udp_sock_create6(struct net *net, struct udp_port_cfg *cfg, in udp_sock_create6() argument
27 if (cfg->ipv6_v6only) { in udp_sock_create6()
32 if (cfg->bind_ifindex) { in udp_sock_create6()
33 err = sock_bindtoindex(sock->sk, cfg->bind_ifindex, true); in udp_sock_create6()
39 memcpy(&udp6_addr.sin6_addr, &cfg->local_ip6, in udp_sock_create6()
41 udp6_addr.sin6_port = cfg->local_udp_port; in udp_sock_create6()
47 if (cfg->peer_udp_port) { in udp_sock_create6()
50 memcpy(&udp6_addr.sin6_addr, &cfg->peer_ip6, in udp_sock_create6()
52 udp6_addr.sin6_port = cfg->peer_udp_port; in udp_sock_create6()
60 udp_set_no_check6_tx(sock->sk, !cfg->use_udp6_tx_checksums); in udp_sock_create6()
61 udp_set_no_check6_rx(sock->sk, !cfg->use_udp6_rx_checksums); in udp_sock_create6()