Searched refs:udp_conf (Results 1 – 10 of 10) sorted by relevance
/linux/net/rxrpc/ |
H A D | local_object.c | 166 struct udp_port_cfg udp_conf = {0}; in rxrpc_open_socket() local 174 udp_conf.family = srx->transport.family; in rxrpc_open_socket() 175 udp_conf.use_udp_checksums = true; in rxrpc_open_socket() 176 if (udp_conf.family == AF_INET) { in rxrpc_open_socket() 177 udp_conf.local_ip = srx->transport.sin.sin_addr; in rxrpc_open_socket() 178 udp_conf.local_udp_port = srx->transport.sin.sin_port; in rxrpc_open_socket() 181 udp_conf.local_ip6 = srx->transport.sin6.sin6_addr; in rxrpc_open_socket() 182 udp_conf.local_udp_port = srx->transport.sin6.sin6_port; in rxrpc_open_socket() 183 udp_conf.use_udp6_tx_checksums = true; in rxrpc_open_socket() 184 udp_conf.use_udp6_rx_checksums = true; in rxrpc_open_socket() [all …]
|
/linux/net/tipc/ |
H A D | udp_media.c | 671 struct udp_port_cfg udp_conf = {0}; in tipc_udp_enable() local 735 udp_conf.family = AF_INET; in tipc_udp_enable() 739 udp_conf.local_ip.s_addr = htonl(INADDR_ANY); in tipc_udp_enable() 741 udp_conf.local_ip.s_addr = local.ipv4.s_addr; in tipc_udp_enable() 742 udp_conf.use_udp_checksums = false; in tipc_udp_enable() 754 udp_conf.family = AF_INET6; in tipc_udp_enable() 755 udp_conf.use_udp6_tx_checksums = true; in tipc_udp_enable() 756 udp_conf.use_udp6_rx_checksums = true; in tipc_udp_enable() 758 udp_conf.local_ip6 = in6addr_any; in tipc_udp_enable() 760 udp_conf.local_ip6 = local.ipv6; in tipc_udp_enable() [all …]
|
/linux/net/l2tp/ |
H A D | l2tp_core.c | 1457 struct udp_port_cfg udp_conf; in l2tp_tunnel_sock_create() local 1461 memset(&udp_conf, 0, sizeof(udp_conf)); in l2tp_tunnel_sock_create() 1465 udp_conf.family = AF_INET6; in l2tp_tunnel_sock_create() 1466 memcpy(&udp_conf.local_ip6, cfg->local_ip6, in l2tp_tunnel_sock_create() 1467 sizeof(udp_conf.local_ip6)); in l2tp_tunnel_sock_create() 1468 memcpy(&udp_conf.peer_ip6, cfg->peer_ip6, in l2tp_tunnel_sock_create() 1469 sizeof(udp_conf.peer_ip6)); in l2tp_tunnel_sock_create() 1470 udp_conf.use_udp6_tx_checksums = in l2tp_tunnel_sock_create() 1472 udp_conf.use_udp6_rx_checksums = in l2tp_tunnel_sock_create() 1477 udp_conf.family = AF_INET; in l2tp_tunnel_sock_create() [all …]
|
/linux/net/sctp/ |
H A D | protocol.c | 881 struct udp_port_cfg udp_conf = {0}; in sctp_udp_sock_start() local 885 udp_conf.family = AF_INET; in sctp_udp_sock_start() 886 udp_conf.local_ip.s_addr = htonl(INADDR_ANY); in sctp_udp_sock_start() 887 udp_conf.local_udp_port = htons(net->sctp.udp_port); in sctp_udp_sock_start() 888 err = udp_sock_create(net, &udp_conf, &sock); in sctp_udp_sock_start() 901 memset(&udp_conf, 0, sizeof(udp_conf)); in sctp_udp_sock_start() 903 udp_conf.family = AF_INET6; in sctp_udp_sock_start() 904 udp_conf.local_ip6 = in6addr_any; in sctp_udp_sock_start() 905 udp_conf.local_udp_port = htons(net->sctp.udp_port); in sctp_udp_sock_start() 906 udp_conf.use_udp6_rx_checksums = true; in sctp_udp_sock_start() [all …]
|
/linux/drivers/net/ |
H A D | pfcp.c | 157 struct udp_port_cfg udp_conf = { in pfcp_create_sock() local 165 udp_conf.local_udp_port = htons(PFCP_PORT); in pfcp_create_sock() 167 err = udp_sock_create(net, &udp_conf, &sock); in pfcp_create_sock()
|
H A D | bareudp.c | 233 struct udp_port_cfg udp_conf; in bareudp_create_sock() local 237 memset(&udp_conf, 0, sizeof(udp_conf)); in bareudp_create_sock() 240 udp_conf.family = AF_INET6; in bareudp_create_sock() 242 udp_conf.family = AF_INET; in bareudp_create_sock() 244 udp_conf.local_udp_port = port; in bareudp_create_sock() 246 err = udp_sock_create(net, &udp_conf, &sock); in bareudp_create_sock()
|
H A D | gtp.c | 1377 static int gtp_sock_udp_config(struct udp_port_cfg *udp_conf, in gtp_sock_udp_config() argument 1380 udp_conf->family = family; in gtp_sock_udp_config() 1382 switch (udp_conf->family) { in gtp_sock_udp_config() 1384 udp_conf->local_ip.s_addr = nla_get_be32(nla); in gtp_sock_udp_config() 1388 udp_conf->local_ip6 = nla_get_in6_addr(nla); in gtp_sock_udp_config() 1402 struct udp_port_cfg udp_conf = {}; in gtp_create_sock() local 1408 err = gtp_sock_udp_config(&udp_conf, nla, family); in gtp_create_sock() 1412 udp_conf.local_ip.s_addr = htonl(INADDR_ANY); in gtp_create_sock() 1413 udp_conf.family = AF_INET; in gtp_create_sock() 1417 udp_conf.local_udp_port = htons(GTP0_PORT); in gtp_create_sock() [all …]
|
H A D | geneve.c | 467 struct udp_port_cfg udp_conf; in geneve_create_sock() local 470 memset(&udp_conf, 0, sizeof(udp_conf)); in geneve_create_sock() 473 udp_conf.family = AF_INET6; in geneve_create_sock() 474 udp_conf.ipv6_v6only = 1; in geneve_create_sock() 475 udp_conf.use_udp6_rx_checksums = ipv6_rx_csum; in geneve_create_sock() 477 udp_conf.family = AF_INET; in geneve_create_sock() 478 udp_conf.local_ip.s_addr = htonl(INADDR_ANY); in geneve_create_sock() 481 udp_conf.local_udp_port = port; in geneve_create_sock() 484 err = udp_sock_create(net, &udp_conf, &sock); in geneve_create_sock()
|
H A D | amt.c | 2944 struct udp_port_cfg udp_conf; in amt_create_sock() local 2948 memset(&udp_conf, 0, sizeof(udp_conf)); in amt_create_sock() 2949 udp_conf.family = AF_INET; in amt_create_sock() 2950 udp_conf.local_ip.s_addr = htonl(INADDR_ANY); in amt_create_sock() 2952 udp_conf.local_udp_port = port; in amt_create_sock() 2954 err = udp_sock_create(net, &udp_conf, &sock); in amt_create_sock()
|
/linux/drivers/net/vxlan/ |
H A D | vxlan_core.c | 3543 struct udp_port_cfg udp_conf; in vxlan_create_sock() local 3546 memset(&udp_conf, 0, sizeof(udp_conf)); in vxlan_create_sock() 3549 udp_conf.family = AF_INET6; in vxlan_create_sock() 3550 udp_conf.use_udp6_rx_checksums = in vxlan_create_sock() 3552 udp_conf.ipv6_v6only = 1; in vxlan_create_sock() 3554 udp_conf.family = AF_INET; in vxlan_create_sock() 3557 udp_conf.local_udp_port = port; in vxlan_create_sock() 3558 udp_conf.bind_ifindex = ifindex; in vxlan_create_sock() 3561 err = udp_sock_create(net, &udp_conf, &sock); in vxlan_create_sock()
|