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