Searched refs:sock (Results 201 - 225 of 1083) sorted by relevance

1234567891011>>

/linux-master/include/linux/can/
H A Dcore.h27 * @ops: pointer to struct proto_ops for sock->ops.
53 void *data, char *ident, struct sock *sk);
61 void can_sock_destruct(struct sock *sk);
/linux-master/net/ipv4/
H A Dtcp_veno.c45 static inline void veno_enable(struct sock *sk)
55 static inline void veno_disable(struct sock *sk)
63 static void tcp_veno_init(struct sock *sk)
73 static void tcp_veno_pkts_acked(struct sock *sk,
96 static void tcp_veno_state(struct sock *sk, u8 ca_state)
113 static void tcp_veno_cwnd_event(struct sock *sk, enum tcp_ca_event event)
119 static void tcp_veno_cong_avoid(struct sock *sk, u32 ack, u32 acked)
195 static u32 tcp_veno_ssthresh(struct sock *sk)
H A Dtcp_scalable.c18 static void tcp_scalable_cong_avoid(struct sock *sk, u32 ack, u32 acked)
34 static u32 tcp_scalable_ssthresh(struct sock *sk)
H A Dinet_connection_sock.c91 bool inet_rcv_saddr_equal(const struct sock *sk, const struct sock *sk2,
111 bool inet_rcv_saddr_any(const struct sock *sk)
130 bool inet_sk_get_local_port_range(const struct sock *sk, int *low, int *high)
156 static bool inet_use_bhash2_on_bind(const struct sock *sk)
172 static bool inet_bind_conflict(const struct sock *sk, struct sock *sk2,
202 static bool __inet_bhash2_conflict(const struct sock *sk, struct sock *sk2,
220 static bool inet_bhash2_conflict(const struct sock *s
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_bpf_sk_storage_map.c24 struct sock *sk = ctx->sk;
43 struct sock *sk = ctx->sk;
H A Dtest_sk_storage_trace_itself.c16 int BPF_PROG(trace_bpf_sk_storage_free, struct sock *sk)
H A Dbpf_dctcp_release.c16 void BPF_STRUCT_OPS(dctcp_nouse_release, struct sock *sk)
H A Dmptcp_sock.c15 struct sock *sk;
17 struct sock *first;
75 storage->sk = (struct sock *)sk;
82 const struct sock *ssk, int server_side)
H A Dsocket_cookie_prog.c79 int BPF_PROG(update_cookie_tracing, struct socket *sock, argument
87 p = bpf_sk_storage_get(&socket_cookies, sock->sk, 0, 0);
91 if (p->cookie_key != bpf_get_socket_cookie(sock->sk))
/linux-master/include/net/
H A Dip.h44 struct sock;
130 struct sock *sk;
132 void (*destructor)(struct sock *);
133 struct sock *saved_sk;
158 int ip_build_and_send_pkt(struct sk_buff *skb, const struct sock *sk,
168 int ip_output(struct net *net, struct sock *sk, struct sk_buff *skb);
169 int ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb);
170 int ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
171 int (*output)(struct net *, struct sock *, struct sk_buff *));
211 int __ip_local_out(struct net *net, struct sock *s
[all...]
H A Dipv6.h214 #include <net/sock.h>
288 struct sock *sk;
290 void (*destructor)(struct sock *);
376 const struct sock *sk)
408 struct ip6_flowlabel *__fl6_sock_lookup(struct sock *sk, __be32 label);
411 static inline struct ip6_flowlabel *fl6_sock_lookup(struct sock *sk,
425 void fl6_free_socklist(struct sock *sk);
426 int ipv6_flowlabel_opt(struct sock *sk, sockptr_t optval, int optlen);
427 int ipv6_flowlabel_opt_get(struct sock *sk, struct in6_flowlabel_req *freq,
431 bool ip6_autoflowlabel(struct net *net, const struct sock *s
[all...]
H A Dudp_tunnel.h67 typedef int (*udp_tunnel_encap_rcv_t)(struct sock *sk, struct sk_buff *skb);
68 typedef int (*udp_tunnel_encap_err_lookup_t)(struct sock *sk,
70 typedef void (*udp_tunnel_encap_err_rcv_t)(struct sock *sk,
73 typedef void (*udp_tunnel_encap_destroy_t)(struct sock *sk);
74 typedef struct sk_buff *(*udp_tunnel_gro_receive_t)(struct sock *sk,
77 typedef int (*udp_tunnel_gro_complete_t)(struct sock *sk, struct sk_buff *skb,
92 /* Setup the given (UDP) sock to receive UDP encapsulated packets */
93 void setup_udp_tunnel_sock(struct net *net, struct socket *sock,
126 void udp_tunnel_push_rx_port(struct net_device *dev, struct socket *sock,
128 void udp_tunnel_drop_rx_port(struct net_device *dev, struct socket *sock,
[all...]
/linux-master/security/landlock/
H A Dnet.c64 static int current_check_access_socket(struct socket *const sock, argument
83 if (sock->type != SOCK_STREAM)
142 if (sock->sk->__sk_common.skc_family != AF_INET)
158 if (address->sa_family != sock->sk->__sk_common.skc_family)
175 static int hook_socket_bind(struct socket *const sock, argument
178 return current_check_access_socket(sock, address, addrlen,
182 static int hook_socket_connect(struct socket *const sock, argument
186 return current_check_access_socket(sock, address, addrlen,
/linux-master/net/vmw_vsock/
H A Dvmci_transport_notify.c11 #include <net/sock.h>
105 vmci_transport_handle_waiting_read(struct sock *sk,
135 vmci_transport_handle_waiting_write(struct sock *sk,
165 vmci_transport_handle_read(struct sock *sk,
180 static bool send_waiting_read(struct sock *sk, u64 room_needed)
222 static bool send_waiting_write(struct sock *sk, u64 room_needed)
259 static int vmci_transport_send_read_notification(struct sock *sk)
301 vmci_transport_handle_wrote(struct sock *sk,
313 static void vmci_transport_notify_pkt_socket_init(struct sock *sk)
338 vmci_transport_notify_pkt_poll_in(struct sock *s
[all...]
/linux-master/net/caif/
H A Dcaif_socket.c24 #include <net/sock.h>
49 struct sock sk; /* must be first member */
88 static void caif_read_lock(struct sock *sk)
95 static void caif_read_unlock(struct sock *sk)
108 static void caif_flow_ctrl(struct sock *sk, int mode)
117 * Copied from sock.c:sock_queue_rcv_skb(), but changed so packets are
120 static void caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
250 static void caif_check_flow_release(struct sock *sk)
267 static int caif_seqpkt_recvmsg(struct socket *sock, struct msghdr *m, argument
271 struct sock *s
343 caif_stream_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int flags) argument
514 caif_seqpkt_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument
586 caif_stream_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument
665 setsockopt(struct socket *sock, int lvl, int opt, sockptr_t ov, unsigned int ol) argument
737 caif_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) argument
891 caif_release(struct socket *sock) argument
930 caif_poll(struct file *file, struct socket *sock, poll_table *wait) argument
1017 caif_create(struct net *net, struct socket *sock, int protocol, int kern) argument
[all...]
/linux-master/net/sunrpc/
H A Dsunrpc.h26 static inline int sock_is_loopback(struct sock *sk)
/linux-master/net/dccp/
H A Dfeat.h107 int dccp_feat_init(struct sock *sk);
108 int dccp_feat_register_sp(struct sock *sk, u8 feat, u8 is_local,
110 int dccp_feat_parse_options(struct sock *, struct dccp_request_sock *,
128 u64 dccp_feat_nn_get(struct sock *sk, u8 feat);
/linux-master/tools/testing/selftests/bpf/bpf_testmod/
H A Dbpf_testmod_kfunc.h87 __u64 bpf_kfunc_call_test1(struct sock *sk, __u32 a, __u64 b,
89 int bpf_kfunc_call_test2(struct sock *sk, __u32 a, __u32 b) __ksym;
90 struct sock *bpf_kfunc_call_test3(struct sock *sk) __ksym;
/linux-master/drivers/vhost/
H A Dnet.c33 #include <net/sock.h>
341 static bool vhost_sock_zcopy(struct socket *sock) argument
344 sock_flag(sock->sk, SOCK_ZEROCOPY);
347 static bool vhost_sock_xdp(struct socket *sock) argument
349 return sock_flag(sock->sk, SOCK_XDP);
439 struct socket *sock; local
441 sock = vhost_vq_get_backend(vq);
442 if (!sock)
445 return vhost_poll_start(poll, sock->file);
462 struct socket *sock,
460 vhost_tx_batch(struct vhost_net *net, struct vhost_net_virtqueue *nvq, struct socket *sock, struct msghdr *msghdr) argument
497 sock_has_rx_data(struct socket *sock) argument
527 struct socket *sock; local
664 struct socket *sock = vhost_vq_get_backend(vq); local
737 handle_tx_copy(struct vhost_net *net, struct socket *sock) argument
827 handle_tx_zerocopy(struct vhost_net *net, struct socket *sock) argument
940 struct socket *sock; local
1106 struct socket *sock; local
1332 struct socket *sock; local
1400 struct socket *sock = sockfd_lookup(fd, &r); local
1438 struct socket *sock; local
1453 struct socket *sock; local
1469 struct socket *sock, *oldsock; local
[all...]
/linux-master/drivers/pcmcia/
H A Dtcic.h102 #define TCIC_PWR_VCC(sock) (0x01<<(sock))
104 #define TCIC_PWR_VPP(sock) (0x08<<(sock))
185 #define TCIC_SCF1(sock) ((sock)<<3)
186 #define TCIC_SCF2(sock) (((sock)<<3)+2)
217 #define TCIC_MWIN(sock,map) (0x100+(((map)+((sock)<<
[all...]
/linux-master/net/netlabel/
H A Dnetlabel_calipso.h117 int calipso_sock_getattr(struct sock *sk, struct netlbl_lsm_secattr *secattr);
118 int calipso_sock_setattr(struct sock *sk,
121 void calipso_sock_delattr(struct sock *sk);
/linux-master/net/dccp/ccids/
H A Dccid2.h75 struct sock *sk;
112 static inline struct ccid2_hc_tx_sock *ccid2_hc_tx_sk(const struct sock *sk)
117 static inline struct ccid2_hc_rx_sock *ccid2_hc_rx_sk(const struct sock *sk)
H A Dccid3.h96 struct sock *sk;
102 static inline struct ccid3_hc_tx_sock *ccid3_hc_tx_sk(const struct sock *sk)
141 static inline struct ccid3_hc_rx_sock *ccid3_hc_rx_sk(const struct sock *sk)
/linux-master/include/net/netfilter/
H A Dbr_netfilter.h25 int br_nf_hook_thresh(unsigned int hook, struct net *net, struct sock *sk,
28 int (*okfn)(struct net *, struct sock *,
41 int br_nf_pre_routing_finish_bridge(struct net *net, struct sock *sk, struct sk_buff *skb);
/linux-master/net/bluetooth/cmtp/
H A Dcmtp.h40 int sock; /* Connected socket */ member in struct:cmtp_connadd_req
61 int cmtp_add_connection(struct cmtp_connadd_req *req, struct socket *sock);
73 struct socket *sock; member in struct:cmtp_session

Completed in 191 milliseconds

1234567891011>>