Home
last modified time | relevance | path

Searched refs:sk_protocol (Results 1 – 25 of 54) sorted by relevance

123

/linux/drivers/net/ovpn/
H A Dsocket.c27 if (sock->sk->sk_protocol == IPPROTO_UDP) in ovpn_socket_release_kref()
29 else if (sock->sk->sk_protocol == IPPROTO_TCP) in ovpn_socket_release_kref()
94 if (sock->sk->sk_protocol == IPPROTO_UDP) { in ovpn_socket_release()
96 } else if (sock->sk->sk_protocol == IPPROTO_TCP) { in ovpn_socket_release()
119 if (sock->sk->sk_protocol == IPPROTO_UDP) in ovpn_socket_attach()
121 else if (sock->sk->sk_protocol == IPPROTO_TCP) in ovpn_socket_attach()
145 if (sk->sk_protocol == IPPROTO_TCP && sk->sk_user_data) { in ovpn_socket_new()
153 if (sk->sk_protocol == IPPROTO_UDP) { in ovpn_socket_new()
224 if (sk->sk_protocol == IPPROTO_TCP) { in ovpn_socket_new()
228 } else if (sk->sk_protocol == IPPROTO_UDP) { in ovpn_socket_new()
H A Dudp.c155 .flowi4_proto = sk->sk_protocol, in ovpn_udp4_output()
232 .flowi6_proto = sk->sk_protocol, in ovpn_udp6_output()
H A Dio.c144 if (sock && sock->sk->sk_protocol == IPPROTO_UDP) in ovpn_decrypt_post()
280 switch (sock->sk->sk_protocol) { in ovpn_encrypt_post()
H A Dnetlink.c399 if (sock->sk->sk_protocol == IPPROTO_UDP && in ovpn_nl_peer_new_doit()
413 if (sock->sk->sk_protocol == IPPROTO_TCP && in ovpn_nl_peer_new_doit()
504 if (sock && sock->sk->sk_protocol == IPPROTO_TCP && in ovpn_nl_peer_set_doit()
/linux/include/linux/
H A Dsock_diag.h62 switch (sk->sk_protocol) { in sock_diag_destroy_group()
74 switch (sk->sk_protocol) { in sock_diag_destroy_group()
/linux/drivers/net/ppp/
H A Dpppox.c92 rc = pppox_protos[sk->sk_protocol]->ioctl ? in pppox_ioctl()
93 pppox_protos[sk->sk_protocol]->ioctl(sock, cmd, arg) : -ENOTTY; in pppox_ioctl()
/linux/include/trace/events/
H A Dsock.h169 __entry->protocol = sk->sk_protocol;
217 __entry->protocol = sk->sk_protocol;
256 __entry->protocol = sk->sk_protocol;
284 __entry->protocol = sk->sk_protocol;
/linux/security/apparmor/include/
H A Dnet.h75 (SK)->sk_protocol)
108 sk->sk_type, sk->sk_protocol); in aa_profile_af_sk_perm()
/linux/net/mptcp/
H A Dbpf.c17 if (sk && sk_fullsock(sk) && sk->sk_protocol == IPPROTO_TCP && sk_is_mptcp(sk)) in bpf_mptcp_sock_from_subflow()
H A Dtoken_test.c66 sk->sk_protocol = IPPROTO_MPTCP; in build_msk()
/linux/tools/testing/selftests/bpf/progs/
H A Dcgroup_ancestor.c30 if (sk->sk_protocol == IPPROTO_UDP && sk->sk_dport == dport) { in log_cgroup_id()
/linux/kernel/bpf/
H A Dreuseport_array.c200 if (nsk->sk_protocol != IPPROTO_UDP && nsk->sk_protocol != IPPROTO_TCP) in reuseport_array_update_check()
/linux/security/tomoyo/
H A Dnetwork.c710 return tomoyo_check_inet_address(addr, addr_len, sock->sk->sk_protocol, in tomoyo_socket_connect_permission()
745 return tomoyo_check_inet_address(addr, addr_len, sock->sk->sk_protocol, in tomoyo_socket_bind_permission()
776 sock->sk->sk_protocol, &address); in tomoyo_socket_sendmsg_permission()
/linux/drivers/infiniband/hw/usnic/
H A Dusnic_transport.c189 *proto = sock->sk->sk_protocol; in usnic_transport_sock_get_addr()
/linux/net/ipv4/
H A Ddatagram.c50 sk->sk_protocol, inet->inet_sport, in __ip4_datagram_connect()
H A Dip_output.c170 iph->protocol = sk->sk_protocol; in ip_build_and_send_pkt()
180 if (sk->sk_protocol == IPPROTO_TCP) in ip_build_and_send_pkt()
517 iph->protocol = sk->sk_protocol; in __ip_queue_xmit()
1462 iph->protocol = sk->sk_protocol; in __ip_make_skb()
1651 sk->sk_protocol = ip_hdr(skb)->protocol; in ip_send_unicast_reply()
/linux/net/bluetooth/cmtp/
H A Dsock.c222 sk->sk_protocol = protocol; in cmtp_sock_create()
/linux/net/netfilter/
H A Dnf_conntrack_proto.c279 tuple.dst.protonum = sk->sk_protocol; in getorigdst()
337 tuple.dst.protonum = sk->sk_protocol; in ipv6_getorigdst()
/linux/net/caif/
H A Dcaif_socket.c553 if (len > cf_sk->maxframe && cf_sk->sk.sk_protocol != CAIFPROTO_RFM) in caif_seqpkt_sendmsg()
691 if (cf_sk->sk.sk_protocol != CAIFPROTO_UTIL) in setsockopt()
1058 sk->sk_protocol = (unsigned char) protocol; in caif_create()
/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_main.c90 if (sk->sk_protocol != IPPROTO_TCP) in chtls_start_listen()
114 if (sk->sk_protocol != IPPROTO_TCP) in chtls_stop_listen()
/linux/net/netlink/
H A Ddiag.c60 rep->ndiag_protocol = sk->sk_protocol; in sk_diag_fill()
/linux/net/ax25/
H A Daf_ax25.c268 s->sk->sk_protocol == proto && in ax25_send_to_raw()
918 sk->sk_protocol = protocol; in ax25_create()
954 sk->sk_protocol = osk->sk_protocol; in ax25_make_new()
1628 *(u8 *)skb_push(skb, 1) = sk->sk_protocol; in ax25_sendmsg()
/linux/net/sunrpc/
H A Dsvcsock.c210 const char *proto_name = sk->sk_protocol == IPPROTO_UDP ? in svc_one_sock_name()
1459 inet->sk_protocol, in svc_setup_socket()
1523 if (so->sk->sk_protocol != IPPROTO_TCP && in svc_addsock()
1524 so->sk->sk_protocol != IPPROTO_UDP) in svc_addsock()
/linux/net/netrom/
H A Daf_netrom.c447 sk->sk_protocol = protocol; in nr_create()
491 sk->sk_protocol = osk->sk_protocol; in nr_make_new()
/linux/net/bluetooth/
H A Daf_bluetooth.c160 sk->sk_protocol = proto; in bt_sock_alloc()
583 ret = hci_ethtool_ts_info(index, sk->sk_protocol, &ts_info); in bt_ethtool_get_ts_info()

123