/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | cgrp_ls_attach_cgroup.c | 28 struct bpf_sock *sk; local 33 sk = ctx->sk; 34 if (!sk) 37 tcp_sk = bpf_skc_to_tcp_sock(sk); 42 tcp_sk->inet_conn.icsk_inet.sk.sk_cgrp_data.cgroup, 0, 57 struct bpf_sock *sk; local 62 sk = ctx->sk; 63 if (!sk) [all...] |
H A D | test_sk_storage_tracing.c | 33 int BPF_PROG(trace_inet_sock_set_state, struct sock *sk, int oldstate, argument 41 stg = bpf_sk_storage_get(&sk_stg_map, sk, 0, 48 bpf_sk_storage_delete(&del_sk_stg_map, sk); 53 static void set_task_info(struct sock *sk) argument 58 stg = bpf_sk_storage_get(&sk_stg_map, sk, 0, 71 int BPF_PROG(trace_inet_csk_listen_start, struct sock *sk) argument 73 set_task_info(sk); 79 int BPF_PROG(trace_tcp_connect, struct sock *sk) argument 81 set_task_info(sk); 87 int BPF_PROG(inet_csk_accept, struct sock *sk, struc argument 96 BPF_PROG(tcp_retransmit_synack, struct sock* sk, struct request_sock* req) argument [all...] |
H A D | verifier_sockmap_mutate.c | 18 struct sock *sk; member in union:bpf_iter__sockmap::__anon298 46 static __always_inline void test_sockmap_update(void *sk) argument 48 if (sk) { 49 bpf_map_update_elem(&sockmap, &zero, sk, BPF_ANY); 50 bpf_map_update_elem(&sockhash, &zero, sk, BPF_ANY); 56 struct bpf_sock *sk = bpf_map_lookup_elem(&sockmap, &zero); local 58 if (sk) { 59 test_sockmap_update(sk); 60 bpf_sk_release(sk); 64 static __always_inline void test_sockmap_mutate(void *sk) argument [all...] |
H A D | bpf_iter_unix.c | 10 static long sock_i_ino(const struct sock *sk) argument 12 const struct socket *sk_socket = sk->sk_socket; 28 struct sock *sk = (struct sock *)unix_sk; local 42 sk->sk_refcnt.refs.counter, 44 sk->sk_state == TCP_LISTEN ? __SO_ACCEPTCON : 0, 45 sk->sk_type, 46 sk->sk_socket ? 47 (sk->sk_state == TCP_ESTABLISHED ? SS_CONNECTED : SS_UNCONNECTED) : 48 (sk->sk_state == TCP_ESTABLISHED ? SS_CONNECTING : SS_DISCONNECTING), 49 sock_i_ino(sk)); [all...] |
H A D | bpf_dctcp.c | 68 void BPF_PROG(dctcp_init, struct sock *sk) argument 70 const struct tcp_sock *tp = tcp_sk(sk); 71 struct bpf_dctcp *ca = inet_csk_ca(sk); 76 if (bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, 84 if (bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, 89 if (bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, 94 tcp_cdg_res = bpf_setsockopt(sk, SOL_TCP, TCP_CONGESTION, 96 bpf_getsockopt(sk, SOL_TCP, TCP_CONGESTION, 115 __u32 BPF_PROG(dctcp_ssthresh, struct sock *sk) argument 117 struct bpf_dctcp *ca = inet_csk_ca(sk); 125 BPF_PROG(dctcp_update_alpha, struct sock *sk, __u32 flags) argument 154 dctcp_react_to_loss(struct sock *sk) argument 164 BPF_PROG(dctcp_state, struct sock *sk, __u8 new_state) argument 174 dctcp_ece_ack_cwr(struct sock *sk, __u32 ce_state) argument 189 dctcp_ece_ack_update(struct sock *sk, enum tcp_ca_event evt, __u32 *prior_rcv_nxt, __u32 *ce_state) argument 211 BPF_PROG(dctcp_cwnd_event, struct sock *sk, enum tcp_ca_event ev) argument 230 BPF_PROG(dctcp_cwnd_undo, struct sock *sk) argument 240 BPF_PROG(dctcp_cong_avoid, struct sock *sk, __u32 ack, __u32 acked) argument [all...] |
/linux-master/net/tls/ |
H A D | tls_toe.c | 46 static void tls_toe_sk_destruct(struct sock *sk) argument 48 struct inet_connection_sock *icsk = inet_csk(sk); 49 struct tls_context *ctx = tls_get_ctx(sk); 51 ctx->sk_destruct(sk); 54 tls_ctx_free(sk, ctx); 57 int tls_toe_bypass(struct sock *sk) argument 66 ctx = tls_ctx_create(sk); 70 ctx->sk_destruct = sk->sk_destruct; 71 sk->sk_destruct = tls_toe_sk_destruct; 74 update_sk_prot(sk, ct 84 tls_toe_unhash(struct sock *sk) argument 103 tls_toe_hash(struct sock *sk) argument [all...] |
H A D | trace.h | 17 TP_PROTO(struct sock *sk, int dir, u32 tcp_seq, u8 *rec_no, int ret), 19 TP_ARGS(sk, dir, tcp_seq, rec_no, ret), 22 __field( struct sock *, sk ) 30 __entry->sk = sk; 38 "sk=%p direction=%d tcp_seq=%u rec_no=%llu ret=%d", 39 __entry->sk, __entry->dir, __entry->tcp_seq, __entry->rec_no, 46 TP_PROTO(struct sock *sk, u32 tcp_seq, u8 *rec_no, u32 rec_len, 49 TP_ARGS(sk, tcp_seq, rec_no, rec_len, encrypted, decrypted), 52 __field( struct sock *, sk ) [all...] |
/linux-master/include/net/ |
H A D | tcp.h | 57 void tcp_time_wait(struct sock *sk, int state, int timeo); 274 static inline bool tcp_under_memory_pressure(const struct sock *sk) argument 276 if (mem_cgroup_sockets_enabled && sk->sk_memcg && 277 mem_cgroup_under_socket_pressure(sk->sk_memcg)) 299 static inline void tcp_wmem_free_skb(struct sock *sk, struct sk_buff *skb) argument 301 sk_wmem_queued_add(sk, -skb->truesize); 303 sk_mem_uncharge(sk, skb->truesize); 305 sk_mem_uncharge(sk, SKB_TRUESIZE(skb_end_offset(skb))); 309 void sk_forced_mem_schedule(struct sock *sk, int size); 311 bool tcp_check_oom(const struct sock *sk, in 357 tcp_dec_quickack_mode(struct sock *sk) argument 529 tcp_synq_overflow(const struct sock *sk) argument 553 tcp_synq_no_recent_overflow(const struct sock *sk) argument 626 cookie_bpf_check(struct net *net, struct sock *sk, struct sk_buff *skb) argument 687 tcp_clear_xmit_timers(struct sock *sk) argument 741 tcp_bound_rto(struct sock *sk) argument 768 tcp_fast_path_check(struct sock *sk) argument 782 tcp_rto_min(const struct sock *sk) argument 792 tcp_rto_min_us(const struct sock *sk) argument 1228 tcp_ca_needs_ecn(const struct sock *sk) argument 1235 tcp_ca_event(struct sock *sk, const enum tcp_ca_event event) argument 1323 tcp_in_cwnd_reduction(const struct sock *sk) argument 1333 tcp_current_ssthresh(const struct sock *sk) argument 1378 tcp_is_cwnd_limited(const struct sock *sk) argument 1398 tcp_needs_internal_pacing(const struct sock *sk) argument 1406 tcp_pacing_delay(const struct sock *sk) argument 1413 tcp_reset_xmit_timer(struct sock *sk, const int what, unsigned long when, const unsigned long max_when) argument 1428 tcp_probe0_base(const struct sock *sk) argument 1434 tcp_probe0_when(const struct sock *sk, unsigned long max_when) argument 1444 tcp_check_probe_timer(struct sock *sk) argument 1493 tcp_slow_start_after_idle_check(struct sock *sk) argument 1520 tcp_win_from_space(const struct sock *sk, int space) argument 1534 tcp_space_from_win(const struct sock *sk, int win) argument 1544 tcp_scaling_ratio_init(struct sock *sk) argument 1550 tcp_space(const struct sock *sk) argument 1557 tcp_full_space(const struct sock *sk) argument 1562 __tcp_adjust_rcv_ssthresh(struct sock *sk, u32 new_ssthresh) argument 1573 tcp_adjust_rcv_ssthresh(struct sock *sk) argument 1587 tcp_rmem_pressure(const struct sock *sk) argument 1600 tcp_epollin_ready(const struct sock *sk, int target) argument 1664 tcp_fin_time(const struct sock *sk) argument 1840 tcp_md5_do_lookup(const struct sock *sk, int l3index, const union tcp_md5_addr *addr, int family) argument 1849 tcp_md5_do_lookup_any_l3index(const struct sock *sk, const union tcp_md5_addr *addr, int family) argument 1866 tcp_md5_do_lookup(const struct sock *sk, int l3index, const union tcp_md5_addr *addr, int family) argument 1873 tcp_md5_do_lookup_any_l3index(const struct sock *sk, const union tcp_md5_addr *addr, int family) argument 1880 tcp_inbound_md5_hash(const struct sock *sk, const struct sk_buff *skb, const void *saddr, const void *daddr, int family, int l3index, const __u8 *hash_location) argument 1946 tcp_fastopen_get_ctx(const struct sock *sk) argument 2006 tcp_rtx_queue_head(const struct sock *sk) argument 2011 tcp_rtx_queue_tail(const struct sock *sk) argument 2016 tcp_write_queue_tail(const struct sock *sk) argument 2024 tcp_send_head(const struct sock *sk) argument 2029 tcp_skb_is_last(const struct sock *sk, const struct sk_buff *skb) argument 2042 tcp_write_queue_empty(const struct sock *sk) argument 2049 tcp_rtx_queue_empty(const struct sock *sk) argument 2054 tcp_rtx_and_write_queues_empty(const struct sock *sk) argument 2059 tcp_add_write_queue_tail(struct sock *sk, struct sk_buff *skb) argument 2069 tcp_insert_write_queue_before(struct sk_buff *new, struct sk_buff *skb, struct sock *sk) argument 2076 tcp_unlink_write_queue(struct sk_buff *skb, struct sock *sk) argument 2084 tcp_rtx_queue_unlink(struct sk_buff *skb, struct sock *sk) argument 2090 tcp_rtx_queue_unlink_and_free(struct sk_buff *skb, struct sock *sk) argument 2097 tcp_push_pending_frames(struct sock *sk) argument 2121 tcp_advance_highest_sack(struct sock *sk, struct sk_buff *skb) argument 2126 tcp_highest_sack(struct sock *sk) argument 2131 tcp_highest_sack_reset(struct sock *sk) argument 2137 tcp_highest_sack_replace(struct sock *sk, struct sk_buff *old, struct sk_buff *new) argument 2146 inet_sk_transparent(const struct sock *sk) argument 2303 cookie_init_sequence(const struct tcp_request_sock_ops *ops, const struct sock *sk, struct sk_buff *skb, __u16 *mss) argument 2312 cookie_init_sequence(const struct tcp_request_sock_ops *ops, const struct sock *sk, struct sk_buff *skb, __u16 *mss) argument 2337 tcp_get_current_key(const struct sock *sk, struct tcp_key *out) argument 2423 tcp_plb_init(const struct sock *sk, struct tcp_plb_state *plb) argument 2435 tcp_rto_delta_us(const struct sock *sk) argument 2480 tcp_inq(struct sock *sk) argument 2527 tcp_listendrop(const struct sock *sk) argument 2587 tcp_eat_skb(struct sock *sk, struct sk_buff *skb) argument 2597 tcp_bpf_clone(const struct sock *sk, struct sock *newsk) argument 2624 tcp_call_bpf(struct sock *sk, int op, u32 nargs, u32 *args) argument 2648 tcp_call_bpf_2arg(struct sock *sk, int op, u32 arg1, u32 arg2) argument 2655 tcp_call_bpf_3arg(struct sock *sk, int op, u32 arg1, u32 arg2, u32 arg3) argument 2664 tcp_call_bpf(struct sock *sk, int op, u32 nargs, u32 *args) argument 2669 tcp_call_bpf_2arg(struct sock *sk, int op, u32 arg1, u32 arg2) argument 2674 tcp_call_bpf_3arg(struct sock *sk, int op, u32 arg1, u32 arg2, u32 arg3) argument 2682 tcp_timeout_init(struct sock *sk) argument 2693 tcp_rwnd_init_bpf(struct sock *sk) argument 2704 tcp_bpf_ca_needs_ecn(struct sock *sk) argument 2709 tcp_bpf_rtt(struct sock *sk, long mrtt, u32 srtt) argument 2737 tcp_transmit_time(const struct sock *sk) argument 2771 tcp_ao_required(struct sock *sk, const void *saddr, int family, int l3index, bool stat_inc) argument 2800 tcp_inbound_hash(struct sock *sk, const struct request_sock *req, const struct sk_buff *skb, const void *saddr, const void *daddr, int family, int dif, int sdif) argument [all...] |
H A D | inet_sock.h | 103 static inline struct inet_request_sock *inet_rsk(const struct request_sock *sk) argument 105 return (struct inet_request_sock *)sk; 108 static inline u32 inet_request_mark(const struct sock *sk, struct sk_buff *skb) argument 110 u32 mark = READ_ONCE(sk->sk_mark); 112 if (!mark && READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_fwmark_accept)) 118 static inline int inet_request_bound_dev_if(const struct sock *sk, argument 121 int bound_dev_if = READ_ONCE(sk->sk_bound_dev_if); 123 struct net *net = sock_net(sk); 132 static inline int inet_sk_bound_l3mdev(const struct sock *sk) argument 135 struct net *net = sock_net(sk); 211 struct sock sk; member in struct:inet_sock 318 sk_to_full_sk(struct sock *sk) argument 328 sk_const_to_full_sk(const struct sock *sk) argument 361 inet_sk_state_load(const struct sock *sk) argument 395 inet_sk_flowi_flags(const struct sock *sk) argument 404 inet_inc_convert_csum(struct sock *sk) argument 409 inet_dec_convert_csum(struct sock *sk) argument 415 inet_get_convert_csum(struct sock *sk) argument [all...] |
/linux-master/net/netrom/ |
H A D | nr_out.c | 32 void nr_output(struct sock *sk, struct sk_buff *skb) argument 46 if ((skbn = sock_alloc_send_skb(sk, frontlen + NR_MAX_PACKET_SIZE, 0, &err)) == NULL) 64 skb_queue_tail(&sk->sk_write_queue, skbn); /* Throw it on the queue */ 69 skb_queue_tail(&sk->sk_write_queue, skb); /* Throw it on the queue */ 72 nr_kick(sk); 79 static void nr_send_iframe(struct sock *sk, struct sk_buff *skb) argument 81 struct nr_sock *nr = nr_sk(sk); 92 nr_start_idletimer(sk); 94 nr_transmit_buffer(sk, skb); 97 void nr_send_nak_frame(struct sock *sk) argument 122 nr_kick(struct sock *sk) argument 185 nr_transmit_buffer(struct sock *sk, struct sk_buff *skb) argument 220 nr_establish_data_link(struct sock *sk) argument 238 nr_enquiry_response(struct sock *sk) argument 256 nr_check_iframes_acked(struct sock *sk, unsigned short nr) argument [all...] |
H A D | af_netrom.c | 91 static void nr_remove_socket(struct sock *sk) argument 94 sk_del_node_init(sk); 134 static void nr_insert_socket(struct sock *sk) argument 137 sk_add_node(sk, &nr_list); 215 struct sock *sk; local 222 if ((sk=nr_find_socket(i, j)) == NULL) 224 sock_put(sk); 243 struct sock *sk = from_timer(sk, t, sk_timer); local 244 bh_lock_sock(sk); 257 nr_destroy_socket(struct sock *sk) argument 299 struct sock *sk = sock->sk; local 351 struct sock *sk = sock->sk; local 400 struct sock *sk = sock->sk; local 429 struct sock *sk; local 475 struct sock *sk; local 520 struct sock *sk = sock->sk; local 566 struct sock *sk = sock->sk; local 638 struct sock *sk = sock->sk; local 781 struct sock *sk; local 842 struct sock *sk = sock->sk; local 873 struct sock *sk; local 1044 struct sock *sk = sock->sk; local 1154 struct sock *sk = sock->sk; local 1210 struct sock *sk = sock->sk; local [all...] |
/linux-master/net/mptcp/ |
H A D | protocol.c | 46 static void __mptcp_destroy_sock(struct sock *sk); 47 static void mptcp_check_send_data_fin(struct sock *sk); 58 static const struct proto_ops *mptcp_fallback_tcp_ops(const struct sock *sk) argument 61 if (sk->sk_prot == &tcpv6_prot) 64 WARN_ON_ONCE(sk->sk_prot != &tcp_prot); 71 struct sock *sk = (struct sock *)msk; local 75 err = mptcp_subflow_create_socket(sk, sk->sk_family, &ssock); 79 msk->scaling_ratio = tcp_sk(ssock->sk)->scaling_ratio; 80 WRITE_ONCE(msk->first, ssock->sk); 100 struct sock *sk = (struct sock *)msk; local 115 mptcp_drop(struct sock *sk, struct sk_buff *skb) argument 121 mptcp_rmem_fwd_alloc_add(struct sock *sk, int size) argument 127 mptcp_rmem_charge(struct sock *sk, int size) argument 132 mptcp_try_coalesce(struct sock *sk, struct sk_buff *to, struct sk_buff *from) argument 167 __mptcp_rmem_reclaim(struct sock *sk, int amount) argument 174 mptcp_rmem_uncharge(struct sock *sk, int size) argument 190 struct sock *sk = skb->sk; local 196 mptcp_set_owner_r(struct sk_buff *skb, struct sock *sk) argument 211 struct sock *sk = (struct sock *)msk; local 320 mptcp_rmem_schedule(struct sock *sk, struct sock *ssk, int size) argument 343 struct sock *sk = (struct sock *)msk; local 392 mptcp_stop_rtx_timer(struct sock *sk) argument 400 mptcp_close_wake_up(struct sock *sk) argument 414 mptcp_pending_data_fin_ack(struct sock *sk) argument 423 mptcp_check_data_fin_ack(struct sock *sk) argument 446 mptcp_pending_data_fin(struct sock *sk, u64 *seq) argument 466 mptcp_set_datafin_timeout(struct sock *sk) argument 477 __mptcp_set_timeout(struct sock *sk, long tout) argument 490 mptcp_set_timeout(struct sock *sk) argument 556 struct sock *sk = (struct sock *)msk; local 571 mptcp_check_data_fin(struct sock *sk) argument 626 struct sock *sk = (struct sock *)msk; local 718 struct sock *sk = (struct sock *)msk; local 761 __mptcp_subflow_error_report(struct sock *sk, struct sock *ssk) argument 791 __mptcp_error_report(struct sock *sk) argument 806 struct sock *sk = (struct sock *)msk; local 828 mptcp_data_ready(struct sock *sk, struct sock *ssk) argument 868 struct sock *sk = (struct sock *)msk; local 887 __mptcp_flush_join_list(struct sock *sk, struct list_head *join_list) argument 903 mptcp_rtx_timer_pending(struct sock *sk) argument 908 mptcp_reset_rtx_timer(struct sock *sk) argument 921 mptcp_schedule_work(struct sock *sk) argument 977 dfrag_uncharge(struct sock *sk, int len) argument 983 dfrag_clear(struct sock *sk, struct mptcp_data_frag *dfrag) argument 993 __mptcp_clean_una(struct sock *sk) argument 1052 __mptcp_clean_una_wakeup(struct sock *sk) argument 1060 mptcp_clean_una_wakeup(struct sock *sk) argument 1067 mptcp_enter_memory_pressure(struct sock *sk) argument 1088 mptcp_page_frag_refill(struct sock *sk, struct page_frag *pfrag) argument 1155 __mptcp_do_alloc_tx_skb(struct sock *sk, gfp_t gfp) argument 1174 __mptcp_alloc_tx_skb(struct sock *sk, struct sock *ssk, gfp_t gfp) argument 1191 mptcp_alloc_tx_skb(struct sock *sk, struct sock *ssk, bool data_lock_held) argument 1228 mptcp_sendmsg_frag(struct sock *sk, struct sock *ssk, struct mptcp_data_frag *dfrag, struct mptcp_sendmsg_info *info) argument 1411 struct sock *sk = (struct sock *)msk; local 1514 mptcp_check_and_set_pending(struct sock *sk) argument 1523 __subflow_push_pending(struct sock *sk, struct sock *ssk, struct mptcp_sendmsg_info *info) argument 1567 __mptcp_push_pending(struct sock *sk, unsigned int flags) argument 1632 __mptcp_subflow_push_pending(struct sock *sk, struct sock *ssk, bool first) argument 1701 mptcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg, size_t len, int *copied_syn) argument 1757 do_copy_data_nocache(struct sock *sk, int copy, struct iov_iter *from, char *to) argument 1774 mptcp_send_limit(const struct sock *sk) argument 1793 mptcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) argument 1985 struct sock *sk = (struct sock *)msk; local 2077 __mptcp_update_rmem(struct sock *sk) argument 2089 __mptcp_splice_receive_queue(struct sock *sk) argument 2098 struct sock *sk = (struct sock *)msk; local 2139 mptcp_inq_hint(const struct sock *sk) argument 2160 mptcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags, int *addr_len) argument 2279 struct sock *sk = &icsk->icsk_inet.sk; local 2297 struct sock *sk = from_timer(sk, t, sk_timer); local 2344 __mptcp_retransmit_pending_data(struct sock *sk) argument 2413 __mptcp_close_ssk(struct sock *sk, struct sock *ssk, struct mptcp_subflow_context *subflow, unsigned int flags) argument 2506 mptcp_close_ssk(struct sock *sk, struct sock *ssk, struct mptcp_subflow_context *subflow) argument 2520 mptcp_sync_mss(struct sock *sk, u32 pmtu) argument 2525 __mptcp_close_subflow(struct sock *sk) argument 2547 mptcp_close_tout_expired(const struct sock *sk) argument 2560 struct sock *sk = (struct sock *)msk; local 2606 __mptcp_retrans(struct sock *sk) argument 2690 struct sock *sk = (struct sock *)msk; local 2723 mptcp_do_fastclose(struct sock *sk) argument 2737 struct sock *sk = (struct sock *)msk; local 2779 __mptcp_init_sock(struct sock *sk) argument 2812 mptcp_ca_reset(struct sock *sk) argument 2825 mptcp_init_sock(struct sock *sk) argument 2857 __mptcp_clear_xmit(struct sock *sk) argument 2867 mptcp_cancel_work(struct sock *sk) argument 2875 mptcp_subflow_shutdown(struct sock *sk, struct sock *ssk, int how) argument 2910 mptcp_set_state(struct sock *sk, int state) argument 2950 mptcp_close_state(struct sock *sk) argument 2960 mptcp_check_send_data_fin(struct sock *sk) argument 2985 __mptcp_wr_shutdown(struct sock *sk) argument 3000 __mptcp_destroy_sock(struct sock *sk) argument 3023 __mptcp_unaccepted_force_close(struct sock *sk) argument 3030 mptcp_check_readable(struct sock *sk) argument 3035 mptcp_check_listen_stop(struct sock *sk) argument 3055 __mptcp_close(struct sock *sk, long timeout) argument 3126 mptcp_close(struct sock *sk, long timeout) argument 3163 mptcp_disconnect(struct sock *sk, int flags) argument 3212 mptcp_inet6_sk(const struct sock *sk) argument 3219 mptcp_copy_ip6_options(struct sock *newsk, const struct sock *sk) argument 3239 mptcp_copy_ip_options(struct sock *newsk, const struct sock *sk) argument 3262 mptcp_sk_clone_init(const struct sock *sk, const struct mptcp_options_received *mp_opt, struct sock *ssk, struct request_sock *req) argument 3362 struct sock *sk = (struct sock *)msk; local 3387 mptcp_destroy(struct sock *sk) argument 3397 __mptcp_data_acked(struct sock *sk) argument 3405 __mptcp_check_push(struct sock *sk, struct sock *ssk) argument 3451 __mptcp_retrans(sk); variable 3458 __mptcp_clean_una_wakeup(sk); variable 3467 __mptcp_error_report(sk); variable 3469 __mptcp_sync_sndbuf(sk); variable 3472 __mptcp_update_rmem(sk); variable 3504 struct sock *sk = subflow->conn; local 3526 mptcp_hash(struct sock *sk) argument 3535 mptcp_unhash(struct sock *sk) argument 3540 mptcp_get_port(struct sock *sk, unsigned short snum) argument 3555 struct sock *sk; local 3574 mptcp_sock_graft(struct sock *sk, struct socket *parent) argument 3634 mptcp_shutdown(struct sock *sk, int how) argument 3642 mptcp_forward_alloc_get(const struct sock *sk) argument 3650 const struct sock *sk = (void *)msk; local 3677 mptcp_ioctl(struct sock *sk, int cmd, int *karg) argument 3716 mptcp_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) argument 3826 struct sock *ssk, *sk = sock->sk; local 3853 struct sock *sk = sock->sk; local 3977 struct sock *sk = (struct sock *)msk; local 3993 struct sock *sk = sock->sk; local [all...] |
/linux-master/net/ipv4/ |
H A D | tcp.c | 25 * sk->inuse=1 and was trying to connect 51 * Alan Cox : sk->keepopen now seems to work 53 * Alan Cox : Fixed assorted sk->rqueue->next errors 113 * Alan Cox : Changed the semantics of sk->socket to 166 * Marc Tamsky : Various sk->prot->retransmits and 167 * sk->retransmits misupdating fixed. 336 void tcp_enter_memory_pressure(struct sock *sk) argument 347 NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPMEMORYPRESSURES); 351 void tcp_leave_memory_pressure(struct sock *sk) argument 359 NET_ADD_STATS(sock_net(sk), LINUX_MIB_TCPMEMORYPRESSURESCHRON 419 tcp_init_sock(struct sock *sk) argument 474 tcp_tx_timestamp(struct sock *sk, u16 tsflags) argument 490 tcp_stream_is_readable(struct sock *sk, int target) argument 507 struct sock *sk = sock->sk; local 611 tcp_ioctl(struct sock *sk, int cmd, int *karg) argument 669 tcp_skb_entail(struct sock *sk, struct sk_buff *skb) argument 702 tcp_should_autocork(struct sock *sk, struct sk_buff *skb, int size_goal) argument 712 tcp_push(struct sock *sk, int flags, int mss_now, int nonagle, int size_goal) argument 760 __tcp_splice_read(struct sock *sk, struct tcp_splice_state *tss) argument 787 struct sock *sk = sock->sk; local 874 tcp_stream_alloc_skb(struct sock *sk, gfp_t gfp, bool force_schedule) argument 904 tcp_xmit_size_goal(struct sock *sk, u32 mss_now, int large_allowed) argument 928 tcp_send_mss(struct sock *sk, int *size_goal, int flags) argument 944 tcp_remove_empty_skb(struct sock *sk) argument 957 tcp_downgrade_zcopy_pure(struct sock *sk, struct sk_buff *skb) argument 973 tcp_wmem_schedule(struct sock *sk, int copy) argument 998 tcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg, int *copied, size_t size, struct ubuf_info *uarg) argument 1045 tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size) argument 1346 tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size) argument 1360 struct sock *sk = sock->sk; local 1379 tcp_recv_urg(struct sock *sk, struct msghdr *msg, int len, int flags) argument 1423 tcp_peek_sndq(struct sock *sk, struct msghdr *msg, int len) argument 1452 __tcp_cleanup_rbuf(struct sock *sk, int copied) argument 1502 tcp_cleanup_rbuf(struct sock *sk, int copied) argument 1513 tcp_eat_recv_skb(struct sock *sk, struct sk_buff *skb) argument 1525 tcp_recv_skb(struct sock *sk, u32 seq, u32 *off) argument 1561 tcp_read_sock(struct sock *sk, read_descriptor_t *desc, sk_read_actor_t recv_actor) argument 1635 tcp_read_skb(struct sock *sk, skb_read_actor_t recv_actor) argument 1665 tcp_read_done(struct sock *sk, size_t len) argument 1711 tcp_set_rcvlowat(struct sock *sk, int val) argument 1825 tcp_zerocopy_set_hint_for_skb(struct sock *sk, struct tcp_zerocopy_receive *zc, struct sk_buff *skb, u32 offset) argument 1865 receive_fallback_to_copy(struct sock *sk, struct tcp_zerocopy_receive *zc, int inq, struct scm_timestamping_internal *tss) argument 1925 tcp_zc_handle_leftover(struct tcp_zerocopy_receive *zc, struct sock *sk, struct sk_buff *skb, u32 *seq, s32 copybuf_len, struct scm_timestamping_internal *tss) argument 2033 tcp_zc_finalize_rx_tstamp(struct sock *sk, struct tcp_zerocopy_receive *zc, struct scm_timestamping_internal *tss) argument 2085 tcp_zerocopy_receive(struct sock *sk, struct tcp_zerocopy_receive *zc, struct scm_timestamping_internal *tss) argument 2231 tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk, struct scm_timestamping_internal *tss) argument 2296 tcp_inq_hint(struct sock *sk) argument 2325 tcp_recvmsg_locked(struct sock *sk, struct msghdr *msg, size_t len, int flags, struct scm_timestamping_internal *tss, int *cmsg_flags) argument 2575 tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags, int *addr_len) argument 2607 tcp_set_state(struct sock *sk, int state) argument 2702 tcp_close_state(struct sock *sk) argument 2717 tcp_shutdown(struct sock *sk, int how) argument 2763 tcp_out_of_memory(const struct sock *sk) argument 2771 tcp_check_oom(const struct sock *sk, int shift) argument 2785 __tcp_close(struct sock *sk, long timeout) argument 2956 tcp_close(struct sock *sk, long timeout) argument 2976 tcp_rtx_queue_purge(struct sock *sk) argument 2993 tcp_write_queue_purge(struct sock *sk) argument 3009 tcp_disconnect(struct sock *sk, int flags) argument 3142 tcp_can_repair_sock(const struct sock *sk) argument 3180 tcp_repair_options_est(struct sock *sk, sockptr_t optbuf, unsigned int len) argument 3254 __tcp_sock_set_cork(struct sock *sk, bool on) argument 3268 tcp_sock_set_cork(struct sock *sk, bool on) argument 3282 __tcp_sock_set_nodelay(struct sock *sk, bool on) argument 3292 tcp_sock_set_nodelay(struct sock *sk) argument 3300 __tcp_sock_set_quickack(struct sock *sk, int val) argument 3317 tcp_sock_set_quickack(struct sock *sk, int val) argument 3325 tcp_sock_set_syncnt(struct sock *sk, int val) argument 3335 tcp_sock_set_user_timeout(struct sock *sk, int val) argument 3348 tcp_sock_set_keepidle_locked(struct sock *sk, int val) argument 3371 tcp_sock_set_keepidle(struct sock *sk, int val) argument 3382 tcp_sock_set_keepintvl(struct sock *sk, int val) argument 3392 tcp_sock_set_keepcnt(struct sock *sk, int val) argument 3403 tcp_set_window_clamp(struct sock *sk, int val) argument 3438 do_tcp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, unsigned int optlen) argument 3758 tcp_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, unsigned int optlen) argument 3791 tcp_get_info(struct sock *sk, struct tcp_info *info) argument 3967 tcp_get_timestamping_opt_stats(const struct sock *sk, const struct sk_buff *orig_skb, const struct sk_buff *ack_skb) argument 4033 do_tcp_getsockopt(struct sock *sk, int level, int optname, sockptr_t optval, sockptr_t optlen) argument 4399 tcp_getsockopt(struct sock *sk, int level, int optname, char __user *optval, int __user *optlen) argument 4465 tcp_inbound_md5_hash(const struct sock *sk, const struct sk_buff *skb, const void *saddr, const void *daddr, int family, int l3index, const __u8 *hash_location) argument 4522 tcp_done(struct sock *sk) argument 4549 tcp_abort(struct sock *sk, int err) argument [all...] |
H A D | tcp_output.c | 63 static bool tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle, 67 static void tcp_event_new_data_sent(struct sock *sk, struct sk_buff *skb) argument 69 struct inet_connection_sock *icsk = inet_csk(sk); 70 struct tcp_sock *tp = tcp_sk(sk); 75 __skb_unlink(skb, &sk->sk_write_queue); 76 tcp_rbtree_insert(&sk->tcp_rtx_queue, skb); 83 tcp_rearm_rto(sk); 85 NET_ADD_STATS(sock_net(sk), LINUX_MIB_TCPORIGDATASENT, 87 tcp_check_space(sk); 97 static inline __u32 tcp_acceptable_seq(const struct sock *sk) argument 123 tcp_advertise_mss(struct sock *sk) argument 144 tcp_cwnd_restart(struct sock *sk, s32 delta) argument 163 tcp_event_data_sent(struct tcp_sock *tp, struct sock *sk) argument 182 tcp_event_ack_sent(struct sock *sk, u32 rcv_nxt) argument 207 tcp_select_initial_window(const struct sock *sk, int __space, __u32 mss, __u32 *rcv_wnd, __u32 *__window_clamp, int wscale_ok, __u8 *rcv_wscale, __u32 init_rcv_wnd) argument 260 tcp_select_window(struct sock *sk) argument 320 tcp_ecn_send_synack(struct sock *sk, struct sk_buff *skb) argument 333 tcp_ecn_send_syn(struct sock *sk, struct sk_buff *skb) argument 357 tcp_ecn_clear_syn(struct sock *sk, struct sk_buff *skb) argument 376 tcp_ecn_send(struct sock *sk, struct sk_buff *skb, struct tcphdr *th, int tcp_header_len) argument 483 bpf_skops_hdr_opt_len(struct sock *sk, struct sk_buff *skb, struct request_sock *req, struct sk_buff *syn_skb, enum tcp_synack_type synack_type, struct tcp_out_options *opts, unsigned int *remaining) argument 546 bpf_skops_write_hdr_opt(struct sock *sk, struct sk_buff *skb, struct request_sock *req, struct sk_buff *syn_skb, enum tcp_synack_type synack_type, struct tcp_out_options *opts) argument 590 bpf_skops_hdr_opt_len(struct sock *sk, struct sk_buff *skb, struct request_sock *req, struct sk_buff *syn_skb, enum tcp_synack_type synack_type, struct tcp_out_options *opts, unsigned int *remaining) argument 599 bpf_skops_write_hdr_opt(struct sock *sk, struct sk_buff *skb, struct request_sock *req, struct sk_buff *syn_skb, enum tcp_synack_type synack_type, struct tcp_out_options *opts) argument 814 tcp_syn_options(struct sock *sk, struct sk_buff *skb, struct tcp_out_options *opts, struct tcp_key *key) argument 897 tcp_synack_options(const struct sock *sk, struct request_sock *req, unsigned int mss, struct sk_buff *skb, struct tcp_out_options *opts, const struct tcp_key *key, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type, struct sk_buff *syn_skb) argument 973 tcp_established_options(struct sock *sk, struct sk_buff *skb, struct tcp_out_options *opts, struct tcp_key *key) argument 1066 tcp_tsq_write(struct sock *sk) argument 1084 tcp_tsq_handler(struct sock *sk) argument 1106 struct sock *sk; local 1137 tcp_release_cb(struct sock *sk) argument 1190 struct sock *sk = skb->sk; local 1238 struct sock *sk = (struct sock *)tp; local 1246 tcp_update_skb_after_send(struct sock *sk, struct sk_buff *skb, u64 prior_wstamp) argument 1285 __tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it, gfp_t gfp_mask, u32 rcv_nxt) argument 1481 tcp_transmit_skb(struct sock *sk, struct sk_buff *skb, int clone_it, gfp_t gfp_mask) argument 1493 tcp_queue_skb(struct sock *sk, struct sk_buff *skb) argument 1527 tcp_adjust_pcount(struct sock *sk, const struct sk_buff *skb, int decr) argument 1582 tcp_insert_write_queue_after(struct sk_buff *skb, struct sk_buff *buff, struct sock *sk, enum tcp_queue tcp_queue) argument 1598 tcp_fragment(struct sock *sk, enum tcp_queue tcp_queue, struct sk_buff *skb, u32 len, unsigned int mss_now, gfp_t gfp) argument 1726 tcp_trim_head(struct sock *sk, struct sk_buff *skb, u32 len) argument 1750 __tcp_mtu_to_mss(struct sock *sk, int pmtu) argument 1775 tcp_mtu_to_mss(struct sock *sk, int pmtu) argument 1784 tcp_mss_to_mtu(struct sock *sk, int mss) argument 1797 tcp_mtup_init(struct sock *sk) argument 1835 tcp_sync_mss(struct sock *sk, u32 pmtu) argument 1860 tcp_current_mss(struct sock *sk) argument 1895 tcp_cwnd_application_limited(struct sock *sk) argument 1913 tcp_cwnd_validate(struct sock *sk, bool is_cwnd_limited) argument 2013 tcp_tso_autosize(const struct sock *sk, unsigned int mss_now, int min_tso_segs) argument 2033 tcp_tso_segs(struct sock *sk, unsigned int mss_now) argument 2047 tcp_mss_split_point(const struct sock *sk, const struct sk_buff *skb, unsigned int mss_now, unsigned int max_segs, int nonagle) argument 2157 tso_fragment(struct sock *sk, struct sk_buff *skb, unsigned int len, unsigned int mss_now, gfp_t gfp) argument 2209 tcp_tso_should_defer(struct sock *sk, struct sk_buff *skb, bool *is_cwnd_limited, bool *is_rwnd_limited, u32 max_segs) argument 2311 tcp_mtu_check_reprobe(struct sock *sk) argument 2336 tcp_can_coalesce_send_queue_head(struct sock *sk, int len) argument 2356 tcp_clone_payload(struct sock *sk, struct sk_buff *to, int probe_size) argument 2411 tcp_eat_one_skb(struct sock *sk, struct sk_buff *dst, struct sk_buff *src) argument 2431 tcp_mtu_probe(struct sock *sk) argument 2562 tcp_pacing_check(struct sock *sk) argument 2581 tcp_rtx_queue_empty_or_single_skb(const struct sock *sk) argument 2604 tcp_small_queue_check(struct sock *sk, const struct sk_buff *skb, unsigned int factor) argument 2662 tcp_chrono_start(struct sock *sk, const enum tcp_chrono type) argument 2675 tcp_chrono_stop(struct sock *sk, const enum tcp_chrono type) argument 2696 tcp_grow_skb(struct sock *sk, struct sk_buff *skb, int amount) argument 2736 tcp_write_xmit(struct sock *sk, unsigned int mss_now, int nonagle, int push_one, gfp_t gfp) argument 2866 tcp_schedule_loss_probe(struct sock *sk, bool advancing_rto) argument 2919 skb_still_in_host_queue(struct sock *sk, const struct sk_buff *skb) argument 2937 tcp_send_loss_probe(struct sock *sk) argument 3004 __tcp_push_pending_frames(struct sock *sk, unsigned int cur_mss, int nonagle) argument 3022 tcp_push_one(struct sock *sk, unsigned int mss_now) argument 3083 __tcp_select_window(struct sock *sk) argument 3220 tcp_collapse_retrans(struct sock *sk, struct sk_buff *skb) argument 3261 tcp_can_collapse(const struct sock *sk, const struct sk_buff *skb) argument 3277 tcp_retrans_try_collapse(struct sock *sk, struct sk_buff *to, int space) argument 3318 __tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs) argument 3445 tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb, int segs) argument 3475 tcp_xmit_retransmit_queue(struct sock *sk) argument 3556 sk_forced_mem_schedule(struct sock *sk, int size) argument 3575 tcp_send_fin(struct sock *sk) argument 3626 tcp_send_active_reset(struct sock *sk, gfp_t priority, enum sk_rst_reason reason) argument 3661 tcp_send_synack(struct sock *sk) argument 3705 tcp_make_synack(const struct sock *sk, struct dst_entry *dst, struct request_sock *req, struct tcp_fastopen_cookie *foc, enum tcp_synack_type synack_type, struct sk_buff *syn_skb) argument 3853 tcp_ca_dst_init(struct sock *sk, const struct dst_entry *dst) argument 3873 tcp_connect_init(struct sock *sk) argument 3946 tcp_connect_queue_skb(struct sock *sk, struct sk_buff *skb) argument 3966 tcp_send_syn_data(struct sock *sk, struct sk_buff *syn) argument 4063 tcp_connect(struct sock *sk) argument 4164 tcp_delack_max(const struct sock *sk) argument 4182 tcp_send_delayed_ack(struct sock *sk) argument 4235 __tcp_send_ack(struct sock *sk, u32 rcv_nxt) argument 4277 tcp_send_ack(struct sock *sk) argument 4293 tcp_xmit_probe_skb(struct sock *sk, int urgent, int mib) argument 4316 tcp_send_window_probe(struct sock *sk) argument 4326 tcp_write_wakeup(struct sock *sk, int mib) argument 4372 tcp_send_probe0(struct sock *sk) argument 4406 tcp_rtx_synack(const struct sock *sk, struct request_sock *req) argument [all...] |
H A D | raw.c | 19 * Alan Cox : Checks sk->broadcast. 91 int raw_hash_sk(struct sock *sk) argument 93 struct raw_hashinfo *h = sk->sk_prot->h.raw_hash; 96 hlist = &h->ht[raw_hashfunc(sock_net(sk), inet_sk(sk)->inet_num)]; 99 sk_add_node_rcu(sk, hlist); 100 sock_set_flag(sk, SOCK_RCU_FREE); 102 sock_prot_inuse_add(sock_net(sk), sk->sk_prot, 1); 108 void raw_unhash_sk(struct sock *sk) argument 119 raw_v4_match(struct net *net, const struct sock *sk, unsigned short num, __be32 raddr, __be32 laddr, int dif, int sdif) argument 137 icmp_filter(const struct sock *sk, const struct sk_buff *skb) argument 170 struct sock *sk; local 208 raw_err(struct sock *sk, struct sk_buff *skb, u32 info) argument 279 struct sock *sk; local 296 raw_rcv_skb(struct sock *sk, struct sk_buff *skb) argument 311 raw_rcv(struct sock *sk, struct sk_buff *skb) argument 326 raw_send_hdrinc(struct sock *sk, struct flowi4 *fl4, struct msghdr *msg, size_t length, struct rtable **rtp, unsigned int flags, const struct sockcm_cookie *sockc) argument 482 raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) argument 682 raw_close(struct sock *sk, long timeout) argument 692 raw_destroy(struct sock *sk) argument 700 raw_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) argument 739 raw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags, int *addr_len) argument 792 raw_sk_init(struct sock *sk) argument 801 raw_seticmpfilter(struct sock *sk, sockptr_t optval, int optlen) argument 810 raw_geticmpfilter(struct sock *sk, char __user *optval, int __user *optlen) argument 829 do_raw_setsockopt(struct sock *sk, int optname, sockptr_t optval, unsigned int optlen) argument 841 raw_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, unsigned int optlen) argument 849 do_raw_getsockopt(struct sock *sk, int optname, char __user *optval, int __user *optlen) argument 861 raw_getsockopt(struct sock *sk, int level, int optname, char __user *optval, int __user *optlen) argument 869 raw_ioctl(struct sock *sk, int cmd, int *karg) argument 899 compat_raw_ioctl(struct sock *sk, unsigned int cmd, unsigned long arg) argument 915 raw_abort(struct sock *sk, int err) argument 963 struct sock *sk; local 976 raw_get_next(struct seq_file *seq, struct sock *sk) argument 991 struct sock *sk = raw_get_first(seq, 0); local 1012 struct sock *sk; local [all...] |
/linux-master/net/iucv/ |
H A D | af_iucv.c | 56 #define __iucv_sock_wait(sk, condition, timeo, ret) \ 61 prepare_to_wait(sk_sleep(sk), &__wait, TASK_INTERRUPTIBLE); \ 71 release_sock(sk); \ 73 lock_sock(sk); \ 74 ret = sock_error(sk); \ 78 finish_wait(sk_sleep(sk), &__wait); \ 81 #define iucv_sock_wait(sk, condition, timeo) \ 85 __iucv_sock_wait(sk, condition, timeo, __ret); \ 91 static void iucv_sock_kill(struct sock *sk); 92 static void iucv_sock_close(struct sock *sk); 150 iucv_sock_in_state(struct sock *sk, int state, int state2) argument 163 iucv_below_msglim(struct sock *sk) argument 179 iucv_sock_wake_msglim(struct sock *sk) argument 267 struct sock *sk; local 276 iucv_sock_destruct(struct sock *sk) argument 295 struct sock *sk; local 306 iucv_sock_link(struct iucv_sock_list *l, struct sock *sk) argument 313 iucv_sock_unlink(struct iucv_sock_list *l, struct sock *sk) argument 321 iucv_sock_kill(struct sock *sk) argument 332 iucv_sever_path(struct sock *sk, int with_user_data) argument 352 iucv_send_ctrl(struct sock *sk, u8 flags) argument 378 iucv_sock_close(struct sock *sk) argument 441 iucv_sock_init(struct sock *sk, struct sock *parent) argument 451 struct sock *sk; local 493 iucv_accept_enqueue(struct sock *parent, struct sock *sk) argument 506 iucv_accept_unlink(struct sock *sk) argument 523 struct sock *sk; local 569 struct sock *sk = sock->sk; local 647 iucv_sock_autobind(struct sock *sk) argument 672 struct sock *sk = sock->sk; local 719 struct sock *sk = sock->sk; local 774 struct sock *sk = sock->sk; local 801 struct sock *sk = sock->sk, *nsk; local 855 struct sock *sk = sock->sk; local 901 struct sock *sk = sock->sk; local 1140 iucv_process_message(struct sock *sk, struct sk_buff *skb, struct iucv_path *path, struct iucv_message *msg) argument 1201 iucv_process_message_q(struct sock *sk) argument 1222 struct sock *sk = sock->sk; local 1341 struct sock *sk; local 1356 struct sock *sk = sock->sk; local 1394 struct sock *sk = sock->sk; local 1462 struct sock *sk = sock->sk; local 1479 struct sock *sk = sock->sk; local 1529 struct sock *sk = sock->sk; local 1582 struct sock *sk, *nsk; local 1675 struct sock *sk = path->private; local 1683 struct sock *sk = path->private; local 1728 struct sock *sk = path->private; local 1772 struct sock *sk = path->private; local 1790 struct sock *sk = path->private; local 1833 afiucv_hs_callback_syn(struct sock *sk, struct sk_buff *skb) argument 1898 afiucv_hs_callback_synack(struct sock *sk, struct sk_buff *skb) argument 1919 afiucv_hs_callback_synfin(struct sock *sk, struct sk_buff *skb) argument 1939 afiucv_hs_callback_fin(struct sock *sk, struct sk_buff *skb) argument 1962 afiucv_hs_callback_win(struct sock *sk, struct sk_buff *skb) argument 1980 afiucv_hs_callback_rx(struct sock *sk, struct sk_buff *skb) argument 2029 struct sock *sk; local 2131 afiucv_hs_callback_txnotify(struct sock *sk, enum iucv_tx_notify n) argument 2174 struct sock *sk; local 2226 struct sock *sk; local [all...] |
/linux-master/net/dccp/ |
H A D | ccid.h | 56 int (*ccid_hc_rx_init)(struct ccid *ccid, struct sock *sk); 57 int (*ccid_hc_tx_init)(struct ccid *ccid, struct sock *sk); 58 void (*ccid_hc_rx_exit)(struct sock *sk); 59 void (*ccid_hc_tx_exit)(struct sock *sk); 60 void (*ccid_hc_rx_packet_recv)(struct sock *sk, 62 int (*ccid_hc_rx_parse_options)(struct sock *sk, u8 pkt, 64 int (*ccid_hc_rx_insert_options)(struct sock *sk, 66 void (*ccid_hc_tx_packet_recv)(struct sock *sk, 68 int (*ccid_hc_tx_parse_options)(struct sock *sk, u8 pkt, 70 int (*ccid_hc_tx_send_packet)(struct sock *sk, 163 ccid_hc_tx_send_packet(struct ccid *ccid, struct sock *sk, struct sk_buff *skb) argument 171 ccid_hc_tx_packet_sent(struct ccid *ccid, struct sock *sk, unsigned int len) argument 178 ccid_hc_rx_packet_recv(struct ccid *ccid, struct sock *sk, struct sk_buff *skb) argument 185 ccid_hc_tx_packet_recv(struct ccid *ccid, struct sock *sk, struct sk_buff *skb) argument 199 ccid_hc_tx_parse_options(struct ccid *ccid, struct sock *sk, u8 pkt, u8 opt, u8 *val, u8 len) argument 211 ccid_hc_rx_parse_options(struct ccid *ccid, struct sock *sk, u8 pkt, u8 opt, u8 *val, u8 len) argument 219 ccid_hc_rx_insert_options(struct ccid *ccid, struct sock *sk, struct sk_buff *skb) argument 227 ccid_hc_rx_get_info(struct ccid *ccid, struct sock *sk, struct tcp_info *info) argument 234 ccid_hc_tx_get_info(struct ccid *ccid, struct sock *sk, struct tcp_info *info) argument 241 ccid_hc_rx_getsockopt(struct ccid *ccid, struct sock *sk, const int optname, int len, u32 __user *optval, int __user *optlen) argument 252 ccid_hc_tx_getsockopt(struct ccid *ccid, struct sock *sk, const int optname, int len, u32 __user *optval, int __user *optlen) argument [all...] |
/linux-master/net/ipv6/ |
H A D | udp.c | 62 static void udpv6_destruct_sock(struct sock *sk) argument 64 udp_destruct_common(sk); 65 inet6_sock_destruct(sk); 68 int udpv6_init_sock(struct sock *sk) argument 70 udp_lib_init_sock(sk); 71 sk->sk_destruct = udpv6_destruct_sock; 72 set_bit(SOCK_SUPPORT_ZC, &sk->sk_socket->flags); 97 int udp_v6_get_port(struct sock *sk, unsigned short snum) argument 100 ipv6_portaddr_hash(sock_net(sk), &in6addr_any, snum); 102 ipv6_portaddr_hash(sock_net(sk), 109 udp_v6_rehash(struct sock *sk) argument 118 compute_score(struct sock *sk, struct net *net, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, unsigned short hnum, int dif, int sdif) argument 170 struct sock *sk, *result; local 230 struct sock *result, *sk; local 307 struct sock *sk; local 332 udpv6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags, int *addr_len) argument 513 __udp6_lib_err_encap(struct net *net, const struct ipv6hdr *hdr, int offset, struct udphdr *uh, struct udp_table *udptable, struct sock *sk, struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, __be32 info) argument 578 struct sock *sk; local 647 __udpv6_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) argument 691 udpv6_queue_rcv_one_skb(struct sock *sk, struct sk_buff *skb) argument 783 udpv6_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) argument 805 __udp_v6_is_mcast_sock(struct net *net, const struct sock *sk, __be16 loc_port, const struct in6_addr *loc_addr, __be16 rmt_port, const struct in6_addr *rmt_addr, int dif, int sdif, unsigned short hnum) argument 847 struct sock *sk, *first = NULL; local 912 udp6_sk_rx_dst_set(struct sock *sk, struct dst_entry *dst) argument 921 udp6_unicast_rcv_skb(struct sock *sk, struct sk_buff *skb, struct udphdr *uh) argument 944 struct sock *sk; local 1072 struct sock *sk; local 1093 struct sock *sk; local 1139 udp_v6_flush_pending_frames(struct sock *sk) argument 1152 udpv6_pre_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) argument 1182 udp6_hwcsum_outgoing(struct sock *sk, struct sk_buff *skb, const struct in6_addr *saddr, const struct in6_addr *daddr, int len) argument 1226 struct sock *sk = skb->sk; local 1308 udp_v6_push_pending_frames(struct sock *sk) argument 1329 udpv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) argument 1658 struct sock *sk = sock->sk; local 1670 udpv6_destroy_sock(struct sock *sk) argument 1697 udpv6_setsockopt(struct sock *sk, int level, int optname, sockptr_t optval, unsigned int optlen) argument 1707 udpv6_getsockopt(struct sock *sk, int level, int optname, char __user *optval, int __user *optlen) argument [all...] |
H A D | inet6_connection_sock.c | 27 struct dst_entry *inet6_csk_route_req(const struct sock *sk, argument 33 const struct ipv6_pinfo *np = inet6_sk(sk); 48 fl6->flowi6_uid = sk->sk_uid; 51 dst = ip6_dst_lookup_flow(sock_net(sk), sk, fl6, final_p); 59 void inet6_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr) argument 64 sin6->sin6_addr = sk->sk_v6_daddr; 65 sin6->sin6_port = inet_sk(sk)->inet_dport; 69 sk->sk_bound_dev_if); 74 struct dst_entry *__inet6_csk_dst_check(struct sock *sk, u3 argument 79 inet6_csk_route_socket(struct sock *sk, struct flowi6 *fl6) argument 114 inet6_csk_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl_unused) argument 142 inet6_csk_update_pmtu(struct sock *sk, u32 mtu) argument [all...] |
/linux-master/net/vmw_vsock/ |
H A D | af_vsock.c | 78 * - sk->sk_state uses the TCP state constants because they are widely used by 116 static int __vsock_bind(struct sock *sk, struct sockaddr_vm *addr); 117 static void vsock_sk_destruct(struct sock *sk); 118 static int vsock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb); 189 struct sock *sk = sk_vsock(vsk); local 195 return __vsock_bind(sk, &local_addr); 212 sock_hold(&vsk->sk); 219 sock_hold(&vsk->sk); 226 sock_put(&vsk->sk); 232 sock_put(&vsk->sk); 306 struct sock *sk; local 322 struct sock *sk; local 342 vsock_for_each_connected_socket(struct vsock_transport *transport, void (*fn)(struct sock *sk)) argument 442 struct sock *sk = sk_vsock(vsk); local 556 vsock_is_accept_queue_empty(struct sock *sk) argument 562 vsock_is_pending(struct sock *sk) argument 568 vsock_send_shutdown(struct sock *sk, int mode) argument 580 struct sock *sk; local 688 __vsock_bind(struct sock *sk, struct sockaddr_vm *addr) argument 734 struct sock *sk; local 797 __vsock_release(struct sock *sk, int level) argument 834 vsock_sk_destruct(struct sock *sk) argument 849 vsock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) argument 875 struct sock *sk = sk_vsock(vsk); local 890 vsock_data_ready(struct sock *sk) argument 913 struct sock *sk; local 932 struct sock *sk; local 974 struct sock *sk; local 1025 struct sock *sk; local 1140 vsock_read_skb(struct sock *sk, skb_read_actor_t read_actor) argument 1151 struct sock *sk; local 1225 struct sock *sk; local 1280 struct sock *sk; local 1326 struct sock *sk; local 1350 struct sock *sk; local 1591 struct sock *sk; local 1649 struct sock *sk; local 1761 struct sock *sk = sock->sk; local 1821 struct sock *sk; local 1980 vsock_connectible_wait_data(struct sock *sk, struct wait_queue_entry *wait, long timeout, struct vsock_transport_recv_notify_data *recv_data, size_t target) argument 2047 __vsock_stream_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags) argument 2126 __vsock_seqpacket_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags) argument 2180 struct sock *sk; local 2255 vsock_set_rcvlowat(struct sock *sk, int val) argument 2326 struct sock *sk; local [all...] |
/linux-master/net/bluetooth/ |
H A D | l2cap_sock.c | 46 static void l2cap_sock_init(struct sock *sk, struct sock *parent); 85 struct sock *sk = sock->sk; local 86 struct l2cap_chan *chan = l2cap_pi(sk)->chan; 90 BT_DBG("sk %p", sk); 113 lock_sock(sk); 115 if (sk->sk_state != BT_OPEN) { 174 sk->sk_state = BT_BOUND; 177 release_sock(sk); 184 struct sock *sk = sock->sk; local 274 struct sock *sk = sock->sk; local 333 struct sock *sk = sock->sk, *nsk; local 389 struct sock *sk = sock->sk; local 438 struct sock *sk = sock->sk; local 558 struct sock *sk = sock->sk; local 728 struct sock *sk = sock->sk; local 881 struct sock *sk = sock->sk; local 1105 struct sock *sk = sock->sk; local 1136 struct sock *sk = chan->data; local 1165 struct sock *sk = sock->sk; local 1235 l2cap_sock_kill(struct sock *sk) argument 1249 __l2cap_wait_ack(struct sock *sk, struct l2cap_chan *chan) argument 1296 struct sock *sk = sock->sk; local 1398 struct sock *sk = sock->sk; local 1427 struct sock *sk; local 1453 struct sock *sk, *parent = chan->data; local 1484 struct sock *sk = chan->data; local 1544 struct sock *sk = chan->data; local 1554 struct sock *sk = chan->data; local 1609 struct sock *sk = chan->data; local 1621 struct sock *sk = chan->data; local 1649 struct sock *sk = chan->data; local 1669 struct sock *parent, *sk = chan->data; local 1682 struct sock *sk = chan->data; local 1695 struct sock *sk = chan->data; local 1704 struct sock *sk = chan->data; local 1711 struct sock *sk = chan->data; local 1718 struct sock *sk = chan->data; local 1726 struct sock *sk = chan->data; local 1755 l2cap_sock_destruct(struct sock *sk) argument 1789 l2cap_sock_init(struct sock *sk, struct sock *parent) argument 1866 struct sock *sk; local 1894 struct sock *sk; local [all...] |
/linux-master/net/xfrm/ |
H A D | espintcp.c | 16 struct sock *sk) 18 if (atomic_read(&sk->sk_rmem_alloc) >= sk->sk_rcvbuf || 19 !sk_rmem_schedule(sk, skb, skb->truesize)) { 20 XFRM_INC_STATS(sock_net(sk), LINUX_MIB_XFRMINERROR); 25 skb_set_owner_r(skb, sk); 29 ctx->saved_data_ready(sk); 32 static void handle_esp(struct sk_buff *skb, struct sock *sk) argument 42 skb->dev = dev_get_by_index_rcu(sock_net(sk), skb->skb_iif); 45 if (sk 15 handle_nonesp(struct espintcp_ctx *ctx, struct sk_buff *skb, struct sock *sk) argument 135 espintcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int flags, int *addr_len) argument 169 espintcp_queue_out(struct sock *sk, struct sk_buff *skb) argument 186 espintcp_sendskb_locked(struct sock *sk, struct espintcp_msg *emsg, int flags) argument 207 espintcp_sendskmsg_locked(struct sock *sk, struct espintcp_msg *emsg, int flags) argument 259 espintcp_push_msgs(struct sock *sk, int flags) argument 288 espintcp_push_skb(struct sock *sk, struct sk_buff *skb) argument 322 espintcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size) argument 405 espintcp_data_ready(struct sock *sk) argument 418 struct sock *sk = ctx->strp.sk; local 426 espintcp_write_space(struct sock *sk) argument 434 espintcp_destruct(struct sock *sk) argument 442 tcp_is_ulp_esp(struct sock *sk) argument 452 espintcp_init_sk(struct sock *sk) argument 512 espintcp_release(struct sock *sk) argument 527 espintcp_close(struct sock *sk, long timeout) argument 557 struct sock *sk = sock->sk; local [all...] |
/linux-master/tools/testing/selftests/net/tcp_ao/ |
H A D | key-management.c | 40 int sk = socket(test_family, SOCK_STREAM, IPPROTO_TCP); local 42 if (sk < 0) 45 if (test_add_key(sk, DEFAULT_TEST_PASSWORD, this_ip_dest, 49 if (addr && test_add_key(sk, SECOND_PASSWORD, *addr, 53 return sk; 58 int sk = prepare_sk(addr, sndid, rcvid); local 60 if (listen(sk, 10)) 63 return sk; 66 static int test_del_key(int sk, uint8_t sndid, uint8_t rcvid, bool async, argument 89 err = setsockopt(sk, IPPROTO_TC 114 try_delete_key(char *tst_name, int sk, uint8_t sndid, uint8_t rcvid, bool async, int current_key, int rnext_key, fault_t inj) argument 142 test_set_key(int sk, int current_keyid, int rnext_keyid) argument 168 test_add_current_rnext_key(int sk, const char *key, uint8_t keyflags, union tcp_addr in_addr, uint8_t prefix, bool set_current, bool set_rnext, uint8_t sndid, uint8_t rcvid) argument 191 __try_add_current_rnext_key(int sk, const char *key, uint8_t keyflags, union tcp_addr in_addr, uint8_t prefix, bool set_current, bool set_rnext, uint8_t sndid, uint8_t rcvid) argument 213 try_add_current_rnext_key(char *tst_name, int sk, const char *key, uint8_t keyflags, union tcp_addr in_addr, uint8_t prefix, bool set_current, bool set_rnext, uint8_t sndid, uint8_t rcvid, fault_t inj) argument 236 int sk; local 277 assert_no_current_rnext(const char *tst_msg, int sk) argument 299 int sk, err; local 322 int sk, err; local 521 test_add_key_cr(int sk, const char *pwd, unsigned int pwd_len, union tcp_addr addr, uint8_t vrf, uint8_t sndid, uint8_t rcvid, uint8_t maclen, const char *alg, bool set_current, bool set_rnext) argument 549 verify_current_rnext(const char *tst, int sk, int current_keyid, int rnext_keyid) argument 583 int sk; local 679 verify_keys(const char *tst_name, int sk, bool is_listen_sk, bool server) argument 799 int sk, lsk; local 832 end_server(const char *tst_name, int sk, struct tcp_ao_counters *begin) argument 852 int sk; local 865 int sk; local 892 int sk; local 944 end_client(const char *tst_name, int sk, unsigned int nr_keys, int current_index, int rnext_index, struct tcp_ao_counters *start) argument 968 try_unmatched_keys(int sk, int *rnext_index) argument 1049 int sk; local 1079 int sk; local 1108 int sk; local 1121 int sk; local [all...] |
H A D | seq-ext.c | 6 * on a connected socket, but migrates it to another sk+port number, so 45 int sk; local 47 sk = socket(test_family, SOCK_STREAM, IPPROTO_TCP); 48 if (sk < 0) 51 test_enable_repair(sk); 52 test_sock_restore(sk, img, saddr, daddr, dport); 53 if (test_add_repaired_key(sk, DEFAULT_TEST_PASSWORD, 0, daddr, -1, 100, 100)) 55 test_ao_restore(sk, ao_img); 57 if (test_get_tcp_ao_counters(sk, cnt)) 60 test_disable_repair(sk); 73 int sk, lsk; local 171 int sk; local [all...] |
/linux-master/net/rose/ |
H A D | rose_out.c | 30 static void rose_send_iframe(struct sock *sk, struct sk_buff *skb) argument 32 struct rose_sock *rose = rose_sk(sk); 40 rose_start_idletimer(sk); 45 void rose_kick(struct sock *sk) argument 47 struct rose_sock *rose = rose_sk(sk); 57 if (!skb_peek(&sk->sk_write_queue)) 73 skb = skb_dequeue(&sk->sk_write_queue); 77 skb_queue_head(&sk->sk_write_queue, skb); 81 skb_set_owner_w(skbn, sk); 86 rose_send_iframe(sk, skb 109 rose_enquiry_response(struct sock *sk) argument [all...] |