/include/net/ |
D | sock.h | 71 #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \ argument 76 SOCK_DEBUG(struct sock *sk, const char *msg, ...) in SOCK_DEBUG() argument 288 void (*sk_state_change)(struct sock *sk); 289 void (*sk_data_ready)(struct sock *sk, int bytes); 290 void (*sk_write_space)(struct sock *sk); 291 void (*sk_error_report)(struct sock *sk); 292 int (*sk_backlog_rcv)(struct sock *sk, 294 void (*sk_destruct)(struct sock *sk); 320 static inline struct sock *sk_next(const struct sock *sk) in sk_next() argument 322 return sk->sk_node.next ? in sk_next() [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 extern int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb); 132 extern int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb); 133 extern int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb); 134 extern int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb); 135 extern int llc_conn_ev_local_busy_detected(struct sock *sk, 137 extern int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb); 138 extern int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb); 139 extern int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *sk, [all …]
|
D | llc_c_ac.h | 90 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb); 92 extern int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb); 93 extern int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb); 94 extern int llc_conn_ac_conn_confirm(struct sock* sk, struct sk_buff *skb); 95 extern int llc_conn_ac_data_ind(struct sock* sk, struct sk_buff *skb); 96 extern int llc_conn_ac_disc_ind(struct sock* sk, struct sk_buff *skb); 97 extern int llc_conn_ac_rst_ind(struct sock* sk, struct sk_buff *skb); 98 extern int llc_conn_ac_rst_confirm(struct sock* sk, struct sk_buff *skb); 99 extern int llc_conn_ac_clear_remote_busy_if_f_eq_1(struct sock* sk, 101 extern int llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2(struct sock* sk, [all …]
|
D | inet_connection_sock.h | 40 void (*send_check)(struct sock *sk, int len, 42 int (*rebuild_header)(struct sock *sk); 43 int (*conn_request)(struct sock *sk, struct sk_buff *skb); 44 struct sock *(*syn_recv_sock)(struct sock *sk, struct sk_buff *skb, 47 int (*remember_stamp)(struct sock *sk); 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, 62 void (*addr2sockaddr)(struct sock *sk, struct sockaddr *); [all …]
|
D | timewait_sock.h | 21 int (*twsk_unique)(struct sock *sk, 23 void (*twsk_destructor)(struct sock *sk); 26 static inline int twsk_unique(struct sock *sk, struct sock *sktw, void *twp) in twsk_unique() argument 28 if (sk->sk_prot->twsk_prot->twsk_unique != NULL) in twsk_unique() 29 return sk->sk_prot->twsk_prot->twsk_unique(sk, sktw, twp); in twsk_unique() 33 static inline void twsk_destructor(struct sock *sk) in twsk_destructor() argument 35 BUG_ON(sk == NULL); in twsk_destructor() 36 BUG_ON(sk->sk_prot == NULL); in twsk_destructor() 37 BUG_ON(sk->sk_prot->twsk_prot == NULL); in twsk_destructor() 38 if (sk->sk_prot->twsk_prot->twsk_destructor != NULL) in twsk_destructor() [all …]
|
D | tcp.h | 50 extern void tcp_time_wait(struct sock *sk, int state, int timeo); 261 static inline int tcp_too_many_orphans(struct sock *sk, int num) in tcp_too_many_orphans() argument 264 (sk->sk_wmem_queued > SOCK_MIN_SNDBUF && in tcp_too_many_orphans() 277 extern void tcp_shutdown (struct sock *sk, int how); 281 extern int tcp_v4_remember_stamp(struct sock *sk); 289 extern int tcp_ioctl(struct sock *sk, 293 extern int tcp_rcv_state_process(struct sock *sk, 298 extern int tcp_rcv_established(struct sock *sk, 303 extern void tcp_rcv_space_adjust(struct sock *sk); 305 extern void tcp_cleanup_rbuf(struct sock *sk, int copied); [all …]
|
D | udp.h | 104 static inline __wsum udp_csum_outgoing(struct sock *sk, struct sk_buff *skb) in udp_csum_outgoing() argument 108 skb_queue_walk(&sk->sk_write_queue, skb) { in udp_csum_outgoing() 115 static inline void udp_lib_hash(struct sock *sk) in udp_lib_hash() argument 120 extern void udp_lib_unhash(struct sock *sk); 122 static inline void udp_lib_close(struct sock *sk, long timeout) in udp_lib_close() argument 124 sk_common_release(sk); in udp_lib_close() 127 extern int udp_lib_get_port(struct sock *sk, unsigned short snum, 131 extern int udp_get_port(struct sock *sk, unsigned short snum, 135 extern int udp_sendmsg(struct kiocb *iocb, struct sock *sk, 137 extern void udp_flush_pending_frames(struct sock *sk); [all …]
|
D | dn_nsp.h | 18 extern void dn_nsp_send_data_ack(struct sock *sk); 19 extern void dn_nsp_send_oth_ack(struct sock *sk); 20 extern void dn_nsp_delayed_ack(struct sock *sk); 21 extern void dn_send_conn_ack(struct sock *sk); 22 extern void dn_send_conn_conf(struct sock *sk, gfp_t gfp); 23 extern void dn_nsp_send_disc(struct sock *sk, unsigned char type, 27 extern void dn_nsp_send_link(struct sock *sk, unsigned char lsflags, char fcval); 28 extern void dn_nsp_send_conninit(struct sock *sk, unsigned char flags); 30 extern void dn_nsp_output(struct sock *sk); 31 extern int dn_nsp_check_xmit_queue(struct sock *sk, struct sk_buff *skb, struct sk_buff_head *q, un… [all …]
|
D | llc_conn.h | 34 struct sock sk; member 81 static inline struct llc_sock *llc_sk(const struct sock *sk) in llc_sk() argument 83 return (struct llc_sock *)sk; in llc_sk() 98 extern void llc_sk_free(struct sock *sk); 100 extern void llc_sk_reset(struct sock *sk); 103 extern int llc_conn_state_process(struct sock *sk, struct sk_buff *skb); 104 extern void llc_conn_send_pdu(struct sock *sk, struct sk_buff *skb); 105 extern void llc_conn_rtn_pdu(struct sock *sk, struct sk_buff *skb); 106 extern void llc_conn_resend_i_pdu_as_cmd(struct sock *sk, u8 nr, 108 extern void llc_conn_resend_i_pdu_as_rsp(struct sock *sk, u8 nr, [all …]
|
D | inet6_hashtables.h | 43 static inline int inet6_sk_ehashfn(const struct sock *sk) in inet6_sk_ehashfn() argument 45 const struct inet_sock *inet = inet_sk(sk); in inet6_sk_ehashfn() 46 const struct ipv6_pinfo *np = inet6_sk(sk); in inet6_sk_ehashfn() 51 struct net *net = sock_net(sk); in inet6_sk_ehashfn() 56 extern void __inet6_hash(struct sock *sk); 86 struct sock *sk = __inet6_lookup_established(net, hashinfo, saddr, in __inet6_lookup() local 88 if (sk) in __inet6_lookup() 89 return sk; in __inet6_lookup() 99 struct sock *sk; in __inet6_lookup_skb() local 101 if (unlikely(sk = skb_steal_sock(skb))) in __inet6_lookup_skb() [all …]
|
D | ip.h | 65 struct sock *sk; member 92 extern int ip_build_and_send_pkt(struct sk_buff *skb, struct sock *sk, 108 extern int ip_append_data(struct sock *sk, 116 extern ssize_t ip_append_page(struct sock *sk, struct page *page, 118 extern int ip_push_pending_frames(struct sock *sk); 119 extern void ip_flush_pending_frames(struct sock *sk); 122 extern int ip4_datagram_connect(struct sock *sk, 158 void ip_send_reply(struct sock *sk, struct sk_buff *skb, struct ip_reply_arg *arg, 222 int ip_dont_fragment(struct sock *sk, struct dst_entry *dst) in ip_dont_fragment() argument 224 return (inet_sk(sk)->pmtudisc == IP_PMTUDISC_DO || in ip_dont_fragment() [all …]
|
D | inet6_connection_sock.h | 25 extern int inet6_csk_bind_conflict(const struct sock *sk, 28 extern struct request_sock *inet6_csk_search_req(const struct sock *sk, 35 extern void inet6_csk_reqsk_queue_hash_add(struct sock *sk, 39 extern void inet6_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr);
|
D | inet_sock.h | 80 static inline struct inet_request_sock *inet_rsk(const struct request_sock *sk) in inet_rsk() argument 82 return (struct inet_request_sock *)sk; in inet_rsk() 110 struct sock sk; member 151 static inline struct inet_sock *inet_sk(const struct sock *sk) in inet_sk() argument 153 return (struct inet_sock *)sk; in inet_sk() 171 extern int inet_sk_rebuild_header(struct sock *sk); 186 static inline int inet_sk_ehashfn(const struct sock *sk) in inet_sk_ehashfn() argument 188 const struct inet_sock *inet = inet_sk(sk); in inet_sk_ehashfn() 193 struct net *net = sock_net(sk); in inet_sk_ehashfn() 208 static inline __u8 inet_sk_flowi_flags(const struct sock *sk) in inet_sk_flowi_flags() argument [all …]
|
D | route.h | 48 #define RT_CONN_FLAGS(sk) (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE)) argument 117 …route_output_flow(struct net *, struct rtable **rp, struct flowi *flp, struct sock *sk, int flags); 149 __be16 sport, __be16 dport, struct sock *sk, in ip_route_connect() argument 153 .mark = sk->sk_mark, in ip_route_connect() 163 struct net *net = sock_net(sk); in ip_route_connect() 165 if (inet_sk(sk)->transparent) in ip_route_connect() 177 security_sk_classify_flow(sk, &fl); in ip_route_connect() 178 return ip_route_output_flow(net, rp, &fl, sk, flags); in ip_route_connect() 182 __be16 sport, __be16 dport, struct sock *sk) in ip_route_newports() argument 194 security_sk_classify_flow(sk, &fl); in ip_route_newports() [all …]
|
D | inet_hashtables.h | 231 extern void inet_bind_hash(struct sock *sk, struct inet_bind_bucket *tb, 240 static inline int inet_sk_listen_hashfn(const struct sock *sk) in inet_sk_listen_hashfn() argument 242 return inet_lhashfn(sock_net(sk), inet_sk(sk)->num); in inet_sk_listen_hashfn() 246 extern void __inet_inherit_port(struct sock *sk, struct sock *child); 248 extern void inet_put_port(struct sock *sk); 252 extern void __inet_hash_nolisten(struct sock *sk); 253 extern void inet_hash(struct sock *sk); 254 extern void inet_unhash(struct sock *sk); 354 struct sock *sk = __inet_lookup_established(net, hashinfo, in __inet_lookup() local 357 return sk ? : __inet_lookup_listener(net, hashinfo, daddr, hnum, dif); in __inet_lookup() [all …]
|
D | udplite.h | 26 static inline int udplite_sk_init(struct sock *sk) in udplite_sk_init() argument 28 udp_sk(sk)->pcflag = UDPLITE_BIT; in udplite_sk_init() 99 static inline __wsum udplite_csum_outgoing(struct sock *sk, struct sk_buff *skb) in udplite_csum_outgoing() argument 101 int cscov = udplite_sender_cscov(udp_sk(sk), udp_hdr(skb)); in udplite_csum_outgoing() 106 skb_queue_walk(&sk->sk_write_queue, skb) { in udplite_csum_outgoing() 119 extern int udplite_get_port(struct sock *sk, unsigned short snum,
|
D | ip6_route.h | 44 struct sock *sk, 121 static inline void __ip6_dst_store(struct sock *sk, struct dst_entry *dst, in __ip6_dst_store() argument 124 struct ipv6_pinfo *np = inet6_sk(sk); in __ip6_dst_store() 127 sk_setup_caps(sk, dst); in __ip6_dst_store() 135 static inline void ip6_dst_store(struct sock *sk, struct dst_entry *dst, in ip6_dst_store() argument 138 write_lock(&sk->sk_dst_lock); in ip6_dst_store() 139 __ip6_dst_store(sk, dst, daddr, saddr); in ip6_dst_store() 140 write_unlock(&sk->sk_dst_lock); in ip6_dst_store()
|
D | ipv6.h | 153 struct sock *sk; member 208 extern struct ip6_flowlabel *fl6_sock_lookup(struct sock *sk, __be32 label); 212 extern void fl6_free_socklist(struct sock *sk); 213 extern int ipv6_flowlabel_opt(struct sock *sk, char __user *optval, int optlen); 223 extern int ip6_ra_control(struct sock *sk, int sel); 227 extern struct ipv6_txoptions * ipv6_dup_options(struct sock *sk, struct ipv6_txoptions *opt); 228 extern struct ipv6_txoptions * ipv6_renew_options(struct sock *sk, struct ipv6_txoptions *opt, 235 extern int ipv6_opt_accepted(struct sock *sk, struct sk_buff *skb); 449 extern int ip6_xmit(struct sock *sk, 455 extern int ip6_nd_hdr(struct sock *sk, [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 42 static inline struct pn_sock *pn_sk(struct sock *sk) in pn_sk() argument 44 return (struct pn_sock *)sk; in pn_sk() 51 void pn_sock_hash(struct sock *sk); 52 void pn_sock_unhash(struct sock *sk); 53 int pn_sock_get_port(struct sock *sk, unsigned short sport); 55 int pn_skb_send(struct sock *sk, struct sk_buff *skb,
|
/include/net/netfilter/ |
D | nf_tproxy_core.h | 19 nf_tproxy_put_sock(struct sock *sk) in nf_tproxy_put_sock() argument 22 if ((sk->sk_protocol == IPPROTO_TCP) && (sk->sk_state == TCP_TIME_WAIT)) in nf_tproxy_put_sock() 23 inet_twsk_put(inet_twsk(sk)); in nf_tproxy_put_sock() 25 sock_put(sk); in nf_tproxy_put_sock() 30 nf_tproxy_assign_sock(struct sk_buff *skb, struct sock *sk);
|
/include/linux/ |
D | ipv6.h | 383 extern int inet6_sk_rebuild_header(struct sock *sk); 415 static inline struct raw6_sock *raw6_sk(const struct sock *sk) in raw6_sk() argument 417 return (struct raw6_sock *)sk; in raw6_sk() 431 #define __ipv6_only_sock(sk) (inet6_sk(sk)->ipv6only) argument 432 #define ipv6_only_sock(sk) ((sk)->sk_family == PF_INET6 && __ipv6_only_sock(sk)) argument 450 static inline struct inet6_timewait_sock *inet6_twsk(const struct sock *sk) in inet6_twsk() argument 452 return (struct inet6_timewait_sock *)(((u8 *)sk) + in inet6_twsk() 453 inet_twsk(sk)->tw_ipv6_offset); in inet6_twsk() 456 static inline struct in6_addr *__inet6_rcv_saddr(const struct sock *sk) in __inet6_rcv_saddr() argument 458 return likely(sk->sk_state != TCP_TIME_WAIT) ? in __inet6_rcv_saddr() [all …]
|
D | if_ec.h | 52 struct sock sk; member 60 static inline struct econet_sock *ec_sk(const struct sock *sk) in ec_sk() argument 62 return (struct econet_sock *)sk; in ec_sk()
|
/include/net/iucv/ |
D | af_iucv.h | 63 struct sock sk; member 88 int iucv_sock_wait_state(struct sock *sk, int state, int state2, 90 int iucv_sock_wait_cnt(struct sock *sk, unsigned long timeo); 91 void iucv_accept_enqueue(struct sock *parent, struct sock *sk); 92 void iucv_accept_unlink(struct sock *sk);
|
/include/net/sctp/ |
D | sctp.h | 135 int sctp_backlog_rcv(struct sock *sk, struct sk_buff *skb); 137 void sctp_write_space(struct sock *sk); 168 void sctp_icmp_proto_unreachable(struct sock *sk, 220 #define sctp_lock_sock(sk) lock_sock(sk) argument 221 #define sctp_release_sock(sk) release_sock(sk) argument 222 #define sctp_bh_lock_sock(sk) bh_lock_sock(sk) argument 223 #define sctp_bh_unlock_sock(sk) bh_unlock_sock(sk) argument 405 struct sctp_association *sctp_id2assoc(struct sock *sk, sctp_assoc_t id); 452 static inline void sctp_skb_set_owner_r(struct sk_buff *skb, struct sock *sk) in sctp_skb_set_owner_r() argument 456 skb->sk = sk; in sctp_skb_set_owner_r() [all …]
|