/include/net/ |
D | sock.h | 98 #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \ argument 103 void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) in SOCK_DEBUG() argument 429 void (*sk_state_change)(struct sock *sk); 430 void (*sk_data_ready)(struct sock *sk); 431 void (*sk_write_space)(struct sock *sk); 432 void (*sk_error_report)(struct sock *sk); 433 int (*sk_backlog_rcv)(struct sock *sk, 435 void (*sk_destruct)(struct sock *sk); 438 #define __sk_user_data(sk) ((*((void __rcu **)&(sk)->sk_user_data))) argument 440 #define rcu_dereference_sk_user_data(sk) rcu_dereference(__sk_user_data((sk))) argument [all …]
|
D | llc_c_ev.h | 128 typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb); 129 typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb); 131 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb); 132 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb); 133 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb); 134 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb); 135 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb); 136 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb); 137 int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb); 138 int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb); [all …]
|
D | llc_c_ac.h | 90 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb); 92 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb); 93 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb); 94 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb); 95 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb); 96 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb); 97 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb); 98 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb); 99 int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock *sk, 101 int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock *sk, [all …]
|
D | inet_connection_sock.h | 39 int (*queue_xmit)(struct sock *sk, struct sk_buff *skb, struct flowi *fl); 40 void (*send_check)(struct sock *sk, struct sk_buff *skb); 41 int (*rebuild_header)(struct sock *sk); 42 void (*sk_rx_dst_set)(struct sock *sk, const struct sk_buff *skb); 43 int (*conn_request)(struct sock *sk, struct sk_buff *skb); 44 struct sock *(*syn_recv_sock)(struct sock *sk, struct sk_buff *skb, 50 int (*setsockopt)(struct sock *sk, int level, int optname, 52 int (*getsockopt)(struct sock *sk, int level, int optname, 55 int (*compat_setsockopt)(struct sock *sk, 58 int (*compat_getsockopt)(struct sock *sk, [all …]
|
D | timewait_sock.h | 22 int (*twsk_unique)(struct sock *sk, 24 void (*twsk_destructor)(struct sock *sk); 27 static inline int twsk_unique(struct sock *sk, struct sock *sktw, void *twp) in twsk_unique() argument 29 if (sk->sk_prot->twsk_prot->twsk_unique != NULL) in twsk_unique() 30 return sk->sk_prot->twsk_prot->twsk_unique(sk, sktw, twp); in twsk_unique() 34 static inline void twsk_destructor(struct sock *sk) in twsk_destructor() argument 36 BUG_ON(sk == NULL); in twsk_destructor() 37 BUG_ON(sk->sk_prot == NULL); in twsk_destructor() 38 BUG_ON(sk->sk_prot->twsk_prot == NULL); in twsk_destructor() 39 if (sk->sk_prot->twsk_prot->twsk_destructor != NULL) in twsk_destructor() [all …]
|
D | tcp.h | 53 void tcp_time_wait(struct sock *sk, int state, int timeo); 302 static inline bool tcp_out_of_memory(struct sock *sk) in tcp_out_of_memory() argument 304 if (sk->sk_wmem_queued > SOCK_MIN_SNDBUF && in tcp_out_of_memory() 305 sk_memory_allocated(sk) > sk_prot_mem_limits(sk, 2)) in tcp_out_of_memory() 310 static inline bool tcp_too_many_orphans(struct sock *sk, int shift) in tcp_too_many_orphans() argument 312 struct percpu_counter *ocp = sk->sk_prot->orphan_count; in tcp_too_many_orphans() 323 bool tcp_check_oom(struct sock *sk, int shift); 326 static inline void tcp_synq_overflow(struct sock *sk) in tcp_synq_overflow() argument 328 tcp_sk(sk)->rx_opt.ts_recent_stamp = jiffies; in tcp_synq_overflow() 332 static inline bool tcp_synq_no_recent_overflow(const struct sock *sk) in tcp_synq_no_recent_overflow() argument [all …]
|
D | busy_poll.h | 50 static inline unsigned long sk_busy_loop_end_time(struct sock *sk) in sk_busy_loop_end_time() argument 52 return busy_loop_us_clock() + ACCESS_ONCE(sk->sk_ll_usec); in sk_busy_loop_end_time() 61 static inline bool sk_can_busy_loop(struct sock *sk) in sk_can_busy_loop() argument 63 return sk->sk_ll_usec && sk->sk_napi_id && in sk_can_busy_loop() 78 static inline bool sk_busy_loop(struct sock *sk, int nonblock) in sk_busy_loop() argument 80 unsigned long end_time = !nonblock ? sk_busy_loop_end_time(sk) : 0; in sk_busy_loop() 91 napi = napi_by_id(sk->sk_napi_id); in sk_busy_loop() 107 NET_ADD_STATS_BH(sock_net(sk), in sk_busy_loop() 111 } while (!nonblock && skb_queue_empty(&sk->sk_receive_queue) && in sk_busy_loop() 114 rc = !skb_queue_empty(&sk->sk_receive_queue); in sk_busy_loop() [all …]
|
D | inet6_connection_sock.h | 25 int inet6_csk_bind_conflict(const struct sock *sk, 28 struct dst_entry *inet6_csk_route_req(struct sock *sk, struct flowi6 *fl6, 31 struct request_sock *inet6_csk_search_req(const struct sock *sk, 38 void inet6_csk_reqsk_queue_hash_add(struct sock *sk, struct request_sock *req, 41 void inet6_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr); 43 int inet6_csk_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl); 45 struct dst_entry *inet6_csk_update_pmtu(struct sock *sk, u32 mtu);
|
D | ip.h | 74 struct sock *sk; member 104 int ip_build_and_send_pkt(struct sk_buff *skb, struct sock *sk, 111 int ip_output(struct sock *sk, struct sk_buff *skb); 112 int ip_mc_output(struct sock *sk, struct sk_buff *skb); 117 int ip_local_out_sk(struct sock *sk, struct sk_buff *skb); 120 return ip_local_out_sk(skb->sk, skb); in ip_local_out() 123 int ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl); 125 int ip_append_data(struct sock *sk, struct flowi4 *fl4, 134 ssize_t ip_append_page(struct sock *sk, struct flowi4 *fl4, struct page *page, 136 struct sk_buff *__ip_make_skb(struct sock *sk, struct flowi4 *fl4, [all …]
|
D | dn_nsp.h | 18 void dn_nsp_send_data_ack(struct sock *sk); 19 void dn_nsp_send_oth_ack(struct sock *sk); 20 void dn_nsp_delayed_ack(struct sock *sk); 21 void dn_send_conn_ack(struct sock *sk); 22 void dn_send_conn_conf(struct sock *sk, gfp_t gfp); 23 void dn_nsp_send_disc(struct sock *sk, unsigned char type, 27 void dn_nsp_send_link(struct sock *sk, unsigned char lsflags, char fcval); 28 void dn_nsp_send_conninit(struct sock *sk, unsigned char flags); 30 void dn_nsp_output(struct sock *sk); 31 int dn_nsp_check_xmit_queue(struct sock *sk, struct sk_buff *skb, [all …]
|
D | route.h | 44 #define RT_CONN_FLAGS(sk) (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE)) argument 45 #define RT_CONN_FLAGS_TOS(sk,tos) (RT_TOS(tos) | sock_flag(sk, SOCK_LOCALROUTE)) argument 113 struct sock *sk); 135 struct sock *sk, in ip_route_output_ports() argument 140 flowi4_init_output(fl4, oif, sk ? sk->sk_mark : 0, tos, in ip_route_output_ports() 142 sk ? inet_sk_flowi_flags(sk) : 0, in ip_route_output_ports() 143 daddr, saddr, dport, sport, sock_net_uid(net, sk)); in ip_route_output_ports() 144 if (sk) in ip_route_output_ports() 145 security_sk_classify_flow(sk, flowi4_to_flowi(fl4)); in ip_route_output_ports() 146 return ip_route_output_flow(net, fl4, sk); in ip_route_output_ports() [all …]
|
D | ping.h | 34 int (*ipv6_recv_error)(struct sock *sk, struct msghdr *msg, int len, 36 void (*ip6_datagram_recv_common_ctl)(struct sock *sk, 39 void (*ip6_datagram_recv_specific_ctl)(struct sock *sk, 43 void (*ipv6_icmp_error)(struct sock *sk, struct sk_buff *skb, int err, 67 int ping_get_port(struct sock *sk, unsigned short ident); 68 void ping_hash(struct sock *sk); 69 void ping_unhash(struct sock *sk); 71 int ping_init_sock(struct sock *sk); 72 void ping_close(struct sock *sk, long timeout); 73 int ping_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len); [all …]
|
D | inet_sock.h | 98 static inline struct inet_request_sock *inet_rsk(const struct request_sock *sk) in inet_rsk() argument 100 return (struct inet_request_sock *)sk; in inet_rsk() 103 static inline u32 inet_request_mark(struct sock *sk, struct sk_buff *skb) in inet_request_mark() argument 105 if (!sk->sk_mark && sock_net(sk)->ipv4.sysctl_tcp_fwmark_accept) { in inet_request_mark() 108 return sk->sk_mark; in inet_request_mark() 156 struct sock sk; member 161 #define inet_daddr sk.__sk_common.skc_daddr 162 #define inet_rcv_saddr sk.__sk_common.skc_rcv_saddr 163 #define inet_dport sk.__sk_common.skc_dport 164 #define inet_num sk.__sk_common.skc_num [all …]
|
D | llc_conn.h | 34 struct sock sk; member 83 static inline struct llc_sock *llc_sk(const struct sock *sk) in llc_sk() argument 85 return (struct llc_sock *)sk; in llc_sk() 100 void llc_sk_free(struct sock *sk); 102 void llc_sk_reset(struct sock *sk); 105 int llc_conn_state_process(struct sock *sk, struct sk_buff *skb); 106 void llc_conn_send_pdu(struct sock *sk, struct sk_buff *skb); 107 void llc_conn_rtn_pdu(struct sock *sk, struct sk_buff *skb); 108 void llc_conn_resend_i_pdu_as_cmd(struct sock *sk, u8 nr, u8 first_p_bit); 109 void llc_conn_resend_i_pdu_as_rsp(struct sock *sk, u8 nr, u8 first_f_bit); [all …]
|
D | ip6_route.h | 67 struct dst_entry *ip6_route_output(struct net *net, const struct sock *sk, 113 void ip6_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, __be32 mtu); 118 void ip6_sk_redirect(struct sk_buff *skb, struct sock *sk); 138 static inline void __ip6_dst_store(struct sock *sk, struct dst_entry *dst, in __ip6_dst_store() argument 142 struct ipv6_pinfo *np = inet6_sk(sk); in __ip6_dst_store() 145 sk_setup_caps(sk, dst); in __ip6_dst_store() 153 static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst, in ip6_dst_store() argument 156 spin_lock(&sk->sk_dst_lock); in ip6_dst_store() 157 __ip6_dst_store(sk, dst, daddr, saddr); in ip6_dst_store() 158 spin_unlock(&sk->sk_dst_lock); in ip6_dst_store() [all …]
|
D | transp_v6.h | 33 int udpv6_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len); 36 void ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg, 38 void ip6_datagram_recv_common_ctl(struct sock *sk, struct msghdr *msg, 40 void ip6_datagram_recv_specific_ctl(struct sock *sk, struct msghdr *msg, 43 int ip6_datagram_send_ctl(struct net *net, struct sock *sk, struct msghdr *msg, 55 void inet6_destroy_sock(struct sock *sk);
|
D | udp.h | 131 static inline __wsum udp_csum_outgoing(struct sock *sk, struct sk_buff *skb) in udp_csum_outgoing() argument 135 skb_queue_walk(&sk->sk_write_queue, skb) { in udp_csum_outgoing() 180 static inline void udp_lib_hash(struct sock *sk) in udp_lib_hash() argument 185 void udp_lib_unhash(struct sock *sk); 186 void udp_lib_rehash(struct sock *sk, u16 new_hash); 188 static inline void udp_lib_close(struct sock *sk, long timeout) in udp_lib_close() argument 190 sk_common_release(sk); in udp_lib_close() 193 int udp_lib_get_port(struct sock *sk, unsigned short snum, 228 int udp_get_port(struct sock *sk, unsigned short snum, 232 int udp_abort(struct sock *sk, int err); [all …]
|
/include/linux/ |
D | udp.h | 45 #define udp_port_hash inet.sk.__sk_common.skc_u16hashes[0] 46 #define udp_portaddr_hash inet.sk.__sk_common.skc_u16hashes[1] 47 #define udp_portaddr_node inet.sk.__sk_common.skc_portaddr_node 76 int (*encap_rcv)(struct sock *sk, struct sk_buff *skb); 77 void (*encap_destroy)(struct sock *sk); 80 static inline struct udp_sock *udp_sk(const struct sock *sk) in udp_sk() argument 82 return (struct udp_sock *)sk; in udp_sk() 85 static inline void udp_set_no_check6_tx(struct sock *sk, bool val) in udp_set_no_check6_tx() argument 87 udp_sk(sk)->no_check6_tx = val; in udp_set_no_check6_tx() 90 static inline void udp_set_no_check6_rx(struct sock *sk, bool val) in udp_set_no_check6_rx() argument [all …]
|
D | sock_diag.h | 23 int sock_diag_check_cookie(void *sk, __u32 *cookie); 24 void sock_diag_save_cookie(void *sk, __u32 *cookie); 26 int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attr); 27 int sock_diag_put_filterinfo(bool may_report_filterinfo, struct sock *sk, 30 int sock_diag_destroy(struct sock *sk, int err);
|
D | ipv6.h | 254 extern int inet6_sk_rebuild_header(struct sock *sk); 266 static inline struct raw6_sock *raw6_sk(const struct sock *sk) in raw6_sk() argument 268 return (struct raw6_sock *)sk; in raw6_sk() 282 #define __ipv6_only_sock(sk) (sk->sk_ipv6only) argument 283 #define ipv6_only_sock(sk) (__ipv6_only_sock(sk)) argument 284 #define ipv6_sk_rxinfo(sk) ((sk)->sk_family == PF_INET6 && \ argument 285 inet6_sk(sk)->rxopt.bits.rxinfo) 287 static inline const struct in6_addr *inet6_rcv_saddr(const struct sock *sk) in inet6_rcv_saddr() argument 289 if (sk->sk_family == AF_INET6) in inet6_rcv_saddr() 290 return &sk->sk_v6_rcv_saddr; in inet6_rcv_saddr() [all …]
|
/include/net/phonet/ |
D | gprs.h | 31 int pep_writeable(struct sock *sk); 32 int pep_write(struct sock *sk, struct sk_buff *skb); 33 struct sk_buff *pep_read(struct sock *sk); 35 int gprs_attach(struct sock *sk); 36 void gprs_detach(struct sock *sk);
|
D | phonet.h | 37 struct sock sk; member 43 static inline struct pn_sock *pn_sk(struct sock *sk) in pn_sk() argument 45 return (struct pn_sock *)sk; in pn_sk() 54 void pn_sock_hash(struct sock *sk); 55 void pn_sock_unhash(struct sock *sk); 56 int pn_sock_get_port(struct sock *sk, unsigned short sport); 60 int pn_sock_unbind_res(struct sock *sk, u8 res); 61 void pn_sock_unbind_all_res(struct sock *sk); 63 int pn_skb_send(struct sock *sk, struct sk_buff *skb,
|
/include/linux/can/ |
D | skb.h | 49 sock_put(skb->sk); in can_skb_destructor() 52 static inline void can_skb_set_owner(struct sk_buff *skb, struct sock *sk) in can_skb_set_owner() argument 54 if (sk) { in can_skb_set_owner() 55 sock_hold(sk); in can_skb_set_owner() 57 skb->sk = sk; in can_skb_set_owner() 70 can_skb_set_owner(nskb, skb->sk); in can_create_echo_skb()
|
/include/crypto/ |
D | if_alg.h | 29 struct sock sk; member 54 int (*accept)(void *private, struct sock *sk); 55 int (*accept_nokey)(void *private, struct sock *sk); 72 void af_alg_release_parent(struct sock *sk); 73 int af_alg_accept(struct sock *sk, struct socket *newsock); 84 static inline struct alg_sock *alg_sk(struct sock *sk) in alg_sk() argument 86 return (struct alg_sock *)sk; in alg_sk()
|
/include/trace/events/ |
D | sock.h | 12 TP_PROTO(struct sock *sk, struct sk_buff *skb), 14 TP_ARGS(sk, skb), 23 __entry->rmem_alloc = atomic_read(&sk->sk_rmem_alloc); 25 __entry->sk_rcvbuf = sk->sk_rcvbuf; 34 TP_PROTO(struct sock *sk, struct proto *prot, long allocated), 36 TP_ARGS(sk, prot, allocated), 51 __entry->rmem_alloc = atomic_read(&sk->sk_rmem_alloc);
|