Home
last modified time | relevance | path

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

1234

/Linux-v5.15/drivers/isdn/mISDN/
Dsocket.c117 sk->sk_protocol); in mISDN_sock_recvmsg()
133 if ((sk->sk_protocol == ISDN_P_LAPD_TE) || in mISDN_sock_recvmsg()
134 (sk->sk_protocol == ISDN_P_LAPD_NT)) { in mISDN_sock_recvmsg()
176 sk->sk_protocol); in mISDN_sock_sendmsg()
209 if ((sk->sk_protocol == ISDN_P_LAPD_TE) || in mISDN_sock_sendmsg()
210 (sk->sk_protocol == ISDN_P_LAPD_NT)) in mISDN_sock_sendmsg()
244 switch (sk->sk_protocol) { in data_sock_release()
296 if ((sk->sk_protocol & ~ISDN_P_B_MASK) == ISDN_P_B_START) { in data_sock_ioctl_bound()
314 if (sk->sk_protocol != ISDN_P_LAPD_NT) { in data_sock_ioctl_bound()
327 if (sk->sk_protocol != ISDN_P_LAPD_NT in data_sock_ioctl_bound()
[all …]
/Linux-v5.15/net/netlink/
Daf_netlink.c266 switch (sk->sk_protocol) { in netlink_filter_tap()
299 nskb->protocol = htons((u16) sk->sk_protocol); in __netlink_deliver_tap_skb()
547 struct netlink_table *tbl = &nl_table[sk->sk_protocol]; in netlink_update_listeners()
570 struct netlink_table *table = &nl_table[sk->sk_protocol]; in netlink_insert()
611 table = &nl_table[sk->sk_protocol]; in netlink_remove()
623 if (sk->sk_protocol == NETLINK_GENERIC) in netlink_remove()
662 sk->sk_protocol = protocol; in __netlink_create()
773 if (sk->sk_protocol == NETLINK_GENERIC && in netlink_release()
785 .protocol = sk->sk_protocol, in netlink_release()
796 BUG_ON(nl_table[sk->sk_protocol].registered == 0); in netlink_release()
[all …]
Ddiag.c60 rep->ndiag_protocol = sk->sk_protocol; in sk_diag_fill()
/Linux-v5.15/include/linux/
Dsock_diag.h56 switch (sk->sk_protocol) { in sock_diag_destroy_group()
68 switch (sk->sk_protocol) { in sock_diag_destroy_group()
Dudp.h160 #define IS_UDPLITE(__sk) (__sk->sk_protocol == IPPROTO_UDPLITE)
/Linux-v5.15/drivers/net/ppp/
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-v5.15/net/ipv4/
Ddatagram.c50 sk->sk_protocol, in __ip4_datagram_connect()
121 inet->inet_sport, sk->sk_protocol, in ip4_datagram_release_cb()
Dinet_connection_sock.c504 if (sk->sk_protocol == IPPROTO_TCP && in inet_csk_accept()
610 sk->sk_protocol, inet_sk_flowi_flags(sk), in inet_csk_route_req()
648 sk->sk_protocol, inet_sk_flowi_flags(sk), in inet_csk_route_child_sock()
734 if (sk->sk_protocol == IPPROTO_TCP && tcp_rsk(nreq)->tfo_listener) in inet_reqsk_clone()
1079 if (sk->sk_protocol == IPPROTO_TCP && tcp_rsk(req)->tfo_listener) { in inet_child_forget()
1267 inet->inet_sport, sk->sk_protocol, in inet_csk_rebuild_route()
Dip_output.c164 iph->protocol = sk->sk_protocol; in ip_build_and_send_pkt()
485 sk->sk_protocol, in __ip_queue_xmit()
508 iph->protocol = sk->sk_protocol; in __ip_queue_xmit()
1523 iph->protocol = sk->sk_protocol; in __ip_make_skb()
1697 sk->sk_protocol = ip_hdr(skb)->protocol; in ip_send_unicast_reply()
/Linux-v5.15/net/ipv6/
Dipv6_sockglue.c432 if (sk->sk_protocol == IPPROTO_UDP || in do_ipv6_setsockopt()
433 sk->sk_protocol == IPPROTO_UDPLITE) { in do_ipv6_setsockopt()
439 } else if (sk->sk_protocol == IPPROTO_TCP) { in do_ipv6_setsockopt()
470 if (sk->sk_protocol == IPPROTO_TCP) { in do_ipv6_setsockopt()
484 if (sk->sk_protocol == IPPROTO_UDPLITE) in do_ipv6_setsockopt()
1131 if (sk->sk_protocol != IPPROTO_UDP && in do_ipv6_getsockopt()
1132 sk->sk_protocol != IPPROTO_UDPLITE && in do_ipv6_getsockopt()
1133 sk->sk_protocol != IPPROTO_TCP) in do_ipv6_getsockopt()
Dinet6_connection_sock.c88 fl6->flowi6_proto = sk->sk_protocol; in inet6_csk_route_socket()
/Linux-v5.15/tools/testing/selftests/bpf/progs/
Dbpf_iter_netlink.c33 BPF_SEQ_PRINTF(seq, "%pK %-3d ", s, s->sk_protocol); in dump_netlink()
/Linux-v5.15/kernel/bpf/
Dreuseport_array.c209 if (nsk->sk_protocol != IPPROTO_UDP && nsk->sk_protocol != IPPROTO_TCP) in reuseport_array_update_check()
/Linux-v5.15/include/trace/events/
Dsock.h168 __entry->protocol = sk->sk_protocol;
229 __entry->protocol = sk->sk_protocol;
/Linux-v5.15/security/apparmor/include/
Dnet.h69 (SK)->sk_protocol)
/Linux-v5.15/net/smc/
Dsmc_diag.c46 if (sk->sk_protocol == SMCPROTO_SMC) { in smc_diag_msg_common_fill()
50 } else if (sk->sk_protocol == SMCPROTO_SMC6) { in smc_diag_msg_common_fill()
/Linux-v5.15/drivers/infiniband/hw/usnic/
Dusnic_transport.c190 *proto = sock->sk->sk_protocol; in usnic_transport_sock_get_addr()
/Linux-v5.15/security/tomoyo/
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-v5.15/net/bluetooth/bnep/
Dsock.c219 sk->sk_protocol = protocol; in bnep_sock_create()
/Linux-v5.15/net/bluetooth/cmtp/
Dsock.c222 sk->sk_protocol = protocol; in cmtp_sock_create()
/Linux-v5.15/drivers/net/ethernet/chelsio/inline_crypto/chtls/
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-v5.15/net/ax25/
Daf_ax25.c248 s->sk->sk_protocol == proto && in ax25_send_to_raw()
882 sk->sk_protocol = protocol; in ax25_create()
918 sk->sk_protocol = osk->sk_protocol; in ax25_make_new()
1579 *(u8 *)skb_push(skb, 1) = sk->sk_protocol; in ax25_sendmsg()
/Linux-v5.15/net/netfilter/
Dnf_conntrack_proto.c253 tuple.dst.protonum = sk->sk_protocol; in getorigdst()
321 tuple.dst.protonum = sk->sk_protocol; in ipv6_getorigdst()
/Linux-v5.15/net/caif/
Dcaif_socket.c561 if (len > cf_sk->maxframe && cf_sk->sk.sk_protocol != CAIFPROTO_RFM) in caif_seqpkt_sendmsg()
699 if (cf_sk->sk.sk_protocol != CAIFPROTO_UTIL) in setsockopt()
1067 sk->sk_protocol = (unsigned char) protocol; in caif_create()
/Linux-v5.15/net/sunrpc/
Dsvcsock.c196 const char *proto_name = sk->sk_protocol == IPPROTO_UDP ? in svc_one_sock_name()
1314 inet->sk_protocol, in svc_setup_socket()
1389 if (so->sk->sk_protocol != IPPROTO_TCP && in svc_addsock()
1390 so->sk->sk_protocol != IPPROTO_UDP) in svc_addsock()

1234