/linux-master/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | kconfig.c | 49 int sk, ret = 0; local 51 sk = socket(test_family, SOCK_STREAM, IPPROTO_TCP); 52 if (sk < 0) { 64 if (setsockopt(sk, IPPROTO_TCP, TCP_AO_ADD_KEY, &tmp, sizeof(tmp)) < 0) { 69 close(sk); 76 int sk, ret = 0; local 78 sk = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); 79 if (sk < 0) { 89 if (test_set_md5(sk, addr_any, 0, -1, DEFAULT_TEST_PASSWORD)) { 96 close(sk); [all...] |
/linux-master/include/net/ |
H A D | inet_common.h | 36 int inet_send_prepare(struct sock *sk); 43 int __inet_listen_sk(struct sock *sk, int backlog); 44 void inet_sock_destruct(struct sock *sk); 46 int inet_bind_sk(struct sock *sk, struct sockaddr *uaddr, int addr_len); 55 int __inet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len, 60 int inet_ctl_sock_create(struct sock **sk, unsigned short family, 63 int inet_recv_error(struct sock *sk, struct msghdr *msg, int len, 71 static inline void inet_ctl_sock_destroy(struct sock *sk) argument 73 if (sk) 74 sock_release(sk [all...] |
H A D | tcp_ao.h | 209 int tcp_ao_transmit_skb(struct sock *sk, struct sk_buff *skb, 214 const struct sock *sk, const struct sk_buff *skb, 216 int tcp_parse_ao(struct sock *sk, int cmd, unsigned short int family, 220 int tcp_ao_copy_all_matching(const struct sock *sk, struct sock *newsk, 225 void tcp_ao_destroy_sock(struct sock *sk, bool twsk); 227 bool tcp_ao_ignore_icmp(const struct sock *sk, int family, int type, int code); 228 int tcp_ao_get_mkts(struct sock *sk, sockptr_t optval, sockptr_t optlen); 229 int tcp_ao_get_sock_info(struct sock *sk, sockptr_t optval, sockptr_t optlen); 230 int tcp_ao_get_repair(struct sock *sk, sockptr_t optval, sockptr_t optlen); 231 int tcp_ao_set_repair(struct sock *sk, sockptr_ 298 tcp_ao_transmit_skb(struct sock *sk, struct sk_buff *skb, struct tcp_ao_key *key, struct tcphdr *th, __u8 *hash_location) argument 305 tcp_ao_syncookie(struct sock *sk, const struct sk_buff *skb, struct request_sock *req, unsigned short int family) argument 310 tcp_ao_ignore_icmp(const struct sock *sk, int family, int type, int code) argument 316 tcp_inbound_ao_hash(struct sock *sk, const struct sk_buff *skb, unsigned short int family, const struct request_sock *req, int l3index, const struct tcp_ao_hdr *aoh) argument 324 tcp_ao_do_lookup(const struct sock *sk, int l3index, const union tcp_ao_addr *addr, int family, int sndid, int rcvid) argument 331 tcp_ao_destroy_sock(struct sock *sk, bool twsk) argument 335 tcp_ao_established(struct sock *sk) argument 339 tcp_ao_finish_connect(struct sock *sk, struct sk_buff *skb) argument 348 tcp_ao_connect_init(struct sock *sk) argument 352 tcp_ao_get_mkts(struct sock *sk, sockptr_t optval, sockptr_t optlen) argument 357 tcp_ao_get_sock_info(struct sock *sk, sockptr_t optval, sockptr_t optlen) argument 362 tcp_ao_get_repair(struct sock *sk, sockptr_t optval, sockptr_t optlen) argument 368 tcp_ao_set_repair(struct sock *sk, sockptr_t optval, unsigned int optlen) argument [all...] |
H A D | af_unix.h | 45 struct sock *unix_peer_get(struct sock *sk); 77 /* WARNING: sk has to be the first member */ 78 struct sock sk; member in struct:unix_sock 94 #define unix_sk(ptr) container_of_const(ptr, struct unix_sock, sk) 95 #define unix_peer(sk) (unix_sk(sk)->peer) 108 static inline void unix_state_lock_nested(struct sock *sk, argument 111 spin_lock_nested(&unix_sk(sk)->lock, subclass); 116 long unix_inq_len(struct sock *sk); 117 long unix_outq_len(struct sock *sk); [all...] |
/linux-master/net/vmw_vsock/ |
H A D | hyperv_transport.c | 249 struct sock *sk = (struct sock *)ctx; local 250 struct vsock_sock *vsk = vsock_sk(sk); 255 sk->sk_data_ready(sk); 258 sk->sk_write_space(sk); 264 struct sock *sk = sk_vsock(vsk); local 266 sock_set_flag(sk, SOCK_DONE); 269 sk->sk_state = TCP_CLOSING; 270 sk 283 struct sock *sk = get_per_channel_state(chan); local 301 struct sock *sk, *new = NULL; local 445 struct sock *sk = sk_vsock(vsk); local 499 struct sock *sk = sk_vsock(vsk); local 514 struct sock *sk = sk_vsock(vsk); local [all...] |
H A D | vmci_transport.c | 39 static int vmci_transport_recv_listen(struct sock *sk, 42 struct sock *sk, 46 struct sock *sk, 49 struct sock *sk, 52 struct sock *sk, 54 static int vmci_transport_recv_connected(struct sock *sk, 58 static bool vmci_transport_proto_to_notify_struct(struct sock *sk, u16 *proto, 64 struct sock *sk; member in struct:vmci_transport_recv_pkt_info 278 vmci_transport_send_control_pkt(struct sock *sk, argument 288 vsk = vsock_sk(sk); 314 vmci_transport_send_reset(struct sock *sk, struct vmci_transport_packet *pkt) argument 342 vmci_transport_send_negotiate(struct sock *sk, size_t size) argument 352 vmci_transport_send_negotiate2(struct sock *sk, size_t size, u16 version) argument 362 vmci_transport_send_qp_offer(struct sock *sk, struct vmci_handle handle) argument 371 vmci_transport_send_attach(struct sock *sk, struct vmci_handle handle) argument 416 vmci_transport_send_wrote(struct sock *sk) argument 424 vmci_transport_send_read(struct sock *sk) argument 432 vmci_transport_send_waiting_write(struct sock *sk, struct vmci_transport_waiting_info *wait) argument 441 vmci_transport_send_waiting_read(struct sock *sk, struct vmci_transport_waiting_info *wait) argument 460 vmci_transport_send_conn_request(struct sock *sk, size_t size) argument 469 vmci_transport_send_conn_request2(struct sock *sk, size_t size, u16 version) argument 613 struct sock *sk; local 673 struct sock *sk; local 803 vmci_transport_handle_detach(struct sock *sk) argument 895 struct sock *sk; local 940 vmci_transport_recv_listen(struct sock *sk, struct vmci_transport_packet *pkt) argument 1277 vmci_transport_recv_connecting_client(struct sock *sk, struct vmci_transport_packet *pkt) argument 1375 vmci_transport_recv_connecting_client_negotiate( struct sock *sk, struct vmci_transport_packet *pkt) argument 1497 vmci_transport_recv_connecting_client_invalid(struct sock *sk, struct vmci_transport_packet *pkt) argument 1518 vmci_transport_recv_connected(struct sock *sk, struct vmci_transport_packet *pkt) argument 1803 struct sock *sk = &vsk->sk; local 1993 vmci_transport_proto_to_notify_struct(struct sock *sk, u16 *proto, bool old_pkt_proto) argument [all...] |
/linux-master/net/llc/ |
H A D | llc_sap.c | 40 * @sk: socket to allocate frame to 48 struct sk_buff *llc_alloc_frame(struct sock *sk, struct net_device *dev, argument 64 if (sk != NULL) 65 skb_set_owner_w(skb, sk); 70 void llc_save_primitive(struct sock *sk, struct sk_buff *skb, u8 prim) argument 78 addr->sllc_family = sk->sk_family; 199 * if needed(on receiving an UI frame). sk can be null for the 211 if (ev->ind_cfm_flag == LLC_IND && skb->sk->sk_state != TCP_LISTEN) { 212 llc_save_primitive(skb->sk, skb, ev->prim); 215 if (sock_queue_rcv_skb(skb->sk, sk 281 llc_sap_rcv(struct llc_sap *sap, struct sk_buff *skb, struct sock *sk) argument 295 llc_dgram_match(const struct llc_sap *sap, const struct llc_addr *laddr, const struct sock *sk, const struct net *net) argument 354 llc_mcast_match(const struct llc_sap *sap, const struct llc_addr *laddr, const struct sk_buff *skb, const struct sock *sk) argument 398 struct sock *sk; local 436 struct sock *sk = llc_lookup_dgram(sap, &laddr, dev_net(skb->dev)); local [all...] |
/linux-master/net/core/ |
H A D | sock_diag.c | 27 u64 __sock_gen_cookie(struct sock *sk) argument 29 u64 res = atomic64_read(&sk->sk_cookie); 34 atomic64_cmpxchg(&sk->sk_cookie, res, new); 37 res = atomic64_read(&sk->sk_cookie); 42 int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie) argument 49 res = sock_gen_cookie(sk); 57 void sock_diag_save_cookie(struct sock *sk, __u32 *cookie) argument 59 u64 res = sock_gen_cookie(sk); 66 int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attrtype) argument 70 sk_get_meminfo(sk, me 76 sock_diag_put_filterinfo(bool may_report_filterinfo, struct sock *sk, struct sk_buff *skb, int attrtype) argument 115 struct sock *sk; member in struct:broadcast_sk 148 struct sock *sk = bsk->sk; local 176 sock_diag_broadcast_destroy(struct sock *sk) argument 317 sock_diag_destroy(struct sock *sk, int err) argument [all...] |
/linux-master/drivers/net/vxlan/ |
H A D | vxlan_multicast.c | 23 struct sock *sk; local 32 sk = sock4->sock->sk; 33 lock_sock(sk); 34 ret = ip_mc_join_group(sk, &mreq); 35 release_sock(sk); 40 sk = sock6->sock->sk; 41 lock_sock(sk); 42 ret = ipv6_stub->ipv6_sock_mc_join(sk, ifinde 57 struct sock *sk; local [all...] |
/linux-master/net/netfilter/ |
H A D | xt_TPROXY.c | 41 struct sock *sk; local 51 sk = nf_tproxy_get_sock_v4(net, skb, iph->protocol, 61 if (sk && sk->sk_state == TCP_TIME_WAIT) 63 sk = nf_tproxy_handle_time_wait4(net, skb, laddr, lport, sk); 64 else if (!sk) 67 sk = nf_tproxy_get_sock_v4(net, skb, iph->protocol, 72 /* NOTE: assign_sock consumes our sk reference */ 73 if (sk 110 struct sock *sk; local [all...] |
/linux-master/kernel/bpf/ |
H A D | reuseport_array.c | 22 void bpf_sk_reuseport_detach(struct sock *sk) argument 26 write_lock_bh(&sk->sk_callback_lock); 27 socks = __locked_read_sk_user_data_with_flags(sk, SK_USER_DATA_BPF); 29 WRITE_ONCE(sk->sk_user_data, NULL); 32 * sk->sk_callback_lock because there is 38 write_unlock_bh(&sk->sk_callback_lock); 66 struct sock *sk; local 77 sk = rcu_dereference_protected(array->ptrs[index], 79 if (sk) { 80 write_lock_bh(&sk 97 struct sock *sk; local 168 struct sock *sk; local [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | bpf_cubic.c | 164 static __u32 bictcp_clock_us(const struct sock *sk) argument 166 return tcp_sk(sk)->tcp_mstamp; 169 static void bictcp_hystart_reset(struct sock *sk) argument 171 struct tcp_sock *tp = tcp_sk(sk); 172 struct bpf_bictcp *ca = inet_csk_ca(sk); 174 ca->round_start = ca->last_ack = bictcp_clock_us(sk); 181 void BPF_PROG(bpf_cubic_init, struct sock *sk) argument 183 struct bpf_bictcp *ca = inet_csk_ca(sk); 188 bictcp_hystart_reset(sk); 191 tcp_sk(sk) 195 BPF_PROG(bpf_cubic_cwnd_event, struct sock *sk, enum tcp_ca_event event) argument 386 BPF_PROG(bpf_cubic_cong_avoid, struct sock *sk, __u32 ack, __u32 acked) argument 406 BPF_PROG(bpf_cubic_recalc_ssthresh, struct sock *sk) argument 424 BPF_PROG(bpf_cubic_state, struct sock *sk, __u8 new_state) argument 443 hystart_ack_delay(struct sock *sk) argument 454 hystart_update(struct sock *sk, __u32 delay) argument 503 BPF_PROG(bpf_cubic_acked, struct sock *sk, const struct ack_sample *sample) argument 535 BPF_PROG(bpf_cubic_undo_cwnd, struct sock *sk) argument [all...] |
H A D | test_tcp_check_syncookie_kern.c | 26 static __always_inline __s64 gen_syncookie(void *data_end, struct bpf_sock *sk, argument 40 return bpf_tcp_gen_syncookie(sk, iph, ip_size, tcph, thlen); 49 struct bpf_sock *sk; local 82 sk = bpf_skc_lookup_tcp(ctx, &tup, sizeof(tup.ipv4), 84 if (!sk) 87 if (sk->state != BPF_TCP_LISTEN) 90 seq_mss = gen_syncookie(data_end, sk, ipv4h, sizeof(*ipv4h), 93 ret = bpf_tcp_check_syncookie(sk, ipv4h, sizeof(*ipv4h), 114 sk = bpf_skc_lookup_tcp(ctx, &tup, sizeof(tup.ipv6), 116 if (!sk) [all...] |
H A D | local_storage.c | 143 struct sock *sk = sock->sk; local 145 if (pid != monitored_pid || !sk) 148 storage = bpf_sk_storage_get(&sk_storage_map, sk, 0, 0); 159 storage = bpf_sk_storage_get(&sk_storage_map2, sk, 0, 164 if (bpf_sk_storage_delete(&sk_storage_map2, sk)) 167 storage = bpf_sk_storage_get(&sk_storage_map2, sk, 0, 172 if (bpf_sk_storage_delete(&sk_storage_map, sk)) 176 if (!sk->sk_bpf_storage || sk 189 struct sock *sk = sock->sk; local [all...] |
H A D | test_sk_lookup.c | 111 struct bpf_sock *sk; local 117 sk = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_A); 118 if (!sk) 121 err = bpf_sk_assign(ctx, sk, 0); 122 bpf_sk_release(sk); 130 struct bpf_sock *sk; local 140 sk = bpf_map_lookup_elem(&redir_map, &KEY_SERVER_A); 141 if (!sk) 144 err = bpf_sk_assign(ctx, sk, 0); 145 bpf_sk_release(sk); 153 struct bpf_sock *sk; local 178 struct bpf_sock *sk; local 193 struct bpf_sock *sk; local 219 struct bpf_sock *sk; local 252 struct bpf_sock *sk; local 284 struct bpf_sock *sk = NULL; local 393 struct bpf_sock *sk; local 577 struct bpf_sock *sk; local 629 struct bpf_sock *sk; local [all...] |
/linux-master/net/sctp/ |
H A D | diag.c | 22 static void sctp_diag_get_info(struct sock *sk, struct inet_diag_msg *r, 27 struct sock *sk, 39 r->idiag_family = sk->sk_family; 43 sock_diag_save_cookie(sk, r->id.idiag_cookie); 46 if (sk->sk_family == AF_INET6) { 119 static int inet_sctp_diag_fill(struct sock *sk, struct sctp_association *asoc, argument 127 struct sctp_endpoint *ep = sctp_sk(sk)->ep; 141 BUG_ON(!sk_fullsock(sk)); 147 inet_diag_msg_sctpasoc_fill(r, sk, asoc); 149 inet_diag_msg_common_fill(r, sk); 26 inet_diag_msg_sctpasoc_fill(struct inet_diag_msg *r, struct sock *sk, struct sctp_association *asoc) argument 249 struct sock *sk = ep->base.sk; local 289 struct sock *sk = ep->base.sk; local 344 struct sock *sk = ep->base.sk; local 360 struct sock *sk = ep->base.sk; local 404 sctp_diag_get_info(struct sock *sk, struct inet_diag_msg *r, void *info) argument [all...] |
/linux-master/net/kcm/ |
H A D | kcmsock.c | 39 static inline struct kcm_sock *kcm_sk(const struct sock *sk) argument 41 return (struct kcm_sock *)sk; 58 struct sock *csk = psock->sk; 117 static int kcm_queue_rcv_skb(struct sock *sk, struct sk_buff *skb); 133 if (kcm_queue_rcv_skb(&kcm->sk, skb)) { 136 WARN_ON(!sk_rmem_alloc_get(&kcm->sk)); 145 if (kcm_queue_rcv_skb(&kcm->sk, psock->ready_rx_msg)) { 147 WARN_ON(!sk_rmem_alloc_get(&kcm->sk)); 172 struct sock *sk = skb->sk; local 191 kcm_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) argument 349 psock_data_ready(struct sock *sk) argument 405 psock_state_change(struct sock *sk) argument 415 psock_write_space(struct sock *sk) argument 585 struct sock *sk = &kcm->sk; local 714 struct sock *sk = &kcm->sk; local 749 struct sock *sk = sock->sk; local 959 struct sock *sk = sock->sk; local 973 struct sock *sk = sock->sk; local 1023 struct sock *sk = sock->sk; local 1624 struct sock *sk = &kcm->sk; local 1674 struct sock *sk = sock->sk; local 1788 struct sock *sk; local [all...] |
/linux-master/include/linux/ |
H A D | inet_diag.h | 19 void (*idiag_get_info)(struct sock *sk, 23 int (*idiag_get_aux)(struct sock *sk, 27 size_t (*idiag_get_aux_size)(struct sock *sk, 47 int inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk, 62 int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk); 64 void inet_diag_msg_common_fill(struct inet_diag_msg *r, struct sock *sk); 83 int inet_diag_msg_attrs_fill(struct sock *sk, struct sk_buff *skb,
|
H A D | skmsg.h | 52 struct sock *sk; member in struct:sk_msg 84 struct sock *sk; member in struct:sk_psock 102 void (*saved_unhash)(struct sock *sk); 103 void (*saved_destroy)(struct sock *sk); 104 void (*saved_close)(struct sock *sk, long timeout); 105 void (*saved_write_space)(struct sock *sk); 106 void (*saved_data_ready)(struct sock *sk); 112 int (*psock_update_sk_prot)(struct sock *sk, struct sk_psock *psock, 122 int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len, 124 int sk_msg_clone(struct sock *sk, struc 290 sk_psock(const struct sock *sk) argument 314 sock_drop(struct sock *sk, struct sk_buff *skb) argument 383 struct sock *sk = psock->sk; local 397 sk_psock_init_strp(struct sock *sk, struct sk_psock *psock) argument 402 sk_psock_start_strp(struct sock *sk, struct sk_psock *psock) argument 406 sk_psock_stop_strp(struct sock *sk, struct sk_psock *psock) argument 437 sk_psock_restore_proto(struct sock *sk, struct sk_psock *psock) argument 444 sk_psock_get(struct sock *sk) argument 458 sk_psock_put(struct sock *sk, struct sk_psock *psock) argument 464 sk_psock_data_ready(struct sock *sk, struct sk_psock *psock) argument [all...] |
/linux-master/net/can/j1939/ |
H A D | socket.c | 55 static inline void j1939_sock_pending_add(struct sock *sk) argument 57 struct j1939_sock *jsk = j1939_sk(sk); 62 static int j1939_sock_pending_get(struct sock *sk) argument 64 struct j1939_sock *jsk = j1939_sk(sk); 69 void j1939_sock_pending_del(struct sock *sk) argument 71 struct j1939_sock *jsk = j1939_sk(sk); 100 struct j1939_sock *jsk = j1939_sk(session->sk); 108 j1939_sock_pending_add(&jsk->sk); 156 if (!session->sk) 159 jsk = j1939_sk(session->sk); 365 j1939_sk_sock_destruct(struct sock *sk) argument 393 j1939_sk_init(struct sock *sk) argument 447 struct sock *sk; local 605 struct sock *sk = sock->sk; local 627 struct sock *sk = sock->sk; local 684 struct sock *sk = sock->sk; local 759 struct sock *sk = sock->sk; local 810 struct sock *sk = sock->sk; local 868 j1939_sk_alloc_skb(struct net_device *ndev, struct sock *sk, struct msghdr *msg, size_t size, int *errcode) argument 983 __j1939_sk_errqueue(struct j1939_session *session, struct sock *sk, enum j1939_sk_errqueue_type type) argument 1105 j1939_sk_send_loop_abort(struct sock *sk, int err) argument 1117 j1939_sk_send_loop(struct j1939_priv *priv, struct sock *sk, struct msghdr *msg, size_t size) argument 1214 struct sock *sk = sock->sk; local [all...] |
/linux-master/net/ipv4/ |
H A D | tcp_cong.c | 37 void tcp_set_ca_state(struct sock *sk, const u8 ca_state) argument 39 struct inet_connection_sock *icsk = inet_csk(sk); 41 trace_tcp_cong_state_set(sk, ca_state); 44 icsk->icsk_ca_ops->set_state(sk, ca_state); 215 void tcp_assign_congestion_control(struct sock *sk) argument 217 struct net *net = sock_net(sk); 218 struct inet_connection_sock *icsk = inet_csk(sk); 230 INET_ECN_xmit(sk); 232 INET_ECN_dontxmit(sk); 235 void tcp_init_congestion_control(struct sock *sk) argument 249 tcp_reinit_congestion_control(struct sock *sk, const struct tcp_congestion_ops *ca) argument 269 tcp_cleanup_congestion_control(struct sock *sk) argument 410 tcp_set_congestion_control(struct sock *sk, const char *name, bool load, bool cap_net_admin) argument 494 tcp_reno_cong_avoid(struct sock *sk, u32 ack, u32 acked) argument 513 tcp_reno_ssthresh(struct sock *sk) argument 521 tcp_reno_undo_cwnd(struct sock *sk) argument [all...] |
H A D | syncookies.c | 196 struct sock *tcp_get_cookie_sock(struct sock *sk, struct sk_buff *skb, argument 200 struct inet_connection_sock *icsk = inet_csk(sk); 204 child = icsk->icsk_af_ops->syn_recv_sock(sk, skb, req, dst, 215 if (inet_csk_reqsk_queue_add(sk, req, child)) 264 static int cookie_tcp_reqsk_init(struct sock *sk, struct sk_buff *skb, argument 275 ireq->ir_iif = inet_request_bound_dev_if(sk, skb); 276 ireq->ir_mark = inet_request_mark(sk, skb); 290 treq->is_mptcp = sk_is_mptcp(sk); 292 return mptcp_subflow_init_cookie_req(req, sk, skb); 299 struct request_sock *cookie_bpf_check(struct sock *sk, struc argument 316 cookie_tcp_reqsk_alloc(const struct request_sock_ops *ops, struct sock *sk, struct sk_buff *skb, struct tcp_options_received *tcp_opt, int mss, u32 tsoff) argument 356 cookie_tcp_check(struct net *net, struct sock *sk, struct sk_buff *skb) argument 398 cookie_v4_check(struct sock *sk, struct sk_buff *skb) argument [all...] |
H A D | inet_diag.c | 75 void inet_diag_msg_common_fill(struct inet_diag_msg *r, struct sock *sk) argument 77 r->idiag_family = sk->sk_family; 79 r->id.idiag_sport = htons(sk->sk_num); 80 r->id.idiag_dport = sk->sk_dport; 81 r->id.idiag_if = sk->sk_bound_dev_if; 82 sock_diag_save_cookie(sk, r->id.idiag_cookie); 85 if (sk->sk_family == AF_INET6) { 86 *(struct in6_addr *)r->id.idiag_src = sk->sk_v6_rcv_saddr; 87 *(struct in6_addr *)r->id.idiag_dst = sk->sk_v6_daddr; 94 r->id.idiag_src[0] = sk 100 inet_sk_attr_size(struct sock *sk, const struct inet_diag_req_v2 *req, bool net_admin) argument 125 inet_diag_msg_attrs_fill(struct sock *sk, struct sk_buff *skb, struct inet_diag_msg *r, int ext, struct user_namespace *user_ns, bool net_admin) argument 237 inet_sk_diag_fill(struct sock *sk, struct inet_connection_sock *icsk, struct sk_buff *skb, struct netlink_callback *cb, const struct inet_diag_req_v2 *req, u16 nlmsg_flags, bool net_admin) argument 423 inet_twsk_diag_fill(struct sock *sk, struct sk_buff *skb, struct netlink_callback *cb, u16 nlmsg_flags, bool net_admin) argument 464 inet_req_diag_fill(struct sock *sk, struct sk_buff *skb, struct netlink_callback *cb, u16 nlmsg_flags, bool net_admin) argument 504 sk_diag_fill(struct sock *sk, struct sk_buff *skb, struct netlink_callback *cb, const struct inet_diag_req_v2 *r, u16 nlmsg_flags, bool net_admin) argument 523 struct sock *sk; local 571 struct sock *sk; local 782 entry_fill_addrs(struct inet_diag_entry *entry, const struct sock *sk) argument 797 inet_diag_bc_sk(const struct nlattr *bc, struct sock *sk) argument 1029 struct sock *sk; local 1452 inet_diag_handler_get_info(struct sk_buff *skb, struct sock *sk) argument [all...] |
/linux-master/net/nfc/ |
H A D | llcp_core.c | 25 void nfc_llcp_sock_link(struct llcp_sock_list *l, struct sock *sk) argument 28 sk_add_node(sk, &l->head); 32 void nfc_llcp_sock_unlink(struct llcp_sock_list *l, struct sock *sk) argument 35 sk_del_node_init(sk); 58 if (s->sk != &sock->sk) 69 struct sock *sk; local 77 sk_for_each_safe(sk, tmp, &local->sockets.head) { 78 llcp_sock = nfc_llcp_sock(sk); 80 bh_lock_sock(sk); 204 struct sock *sk; local 363 struct sock *sk; local 721 struct sock *sk; local 762 struct sock *sk; local 817 struct sock *sk; local 1068 struct sock *sk; local 1155 struct sock *sk; local 1199 struct sock *sk; local 1233 struct sock *sk; local [all...] |
/linux-master/drivers/net/ppp/ |
H A D | pppox.c | 53 void pppox_unbind_sock(struct sock *sk) argument 57 if (sk->sk_state & (PPPOX_BOUND | PPPOX_CONNECTED)) { 58 ppp_unregister_channel(&pppox_sk(sk)->chan); 59 sk->sk_state = PPPOX_DEAD; 69 struct sock *sk = sock->sk; local 70 struct pppox_sock *po = pppox_sk(sk); 73 lock_sock(sk); 79 if (!(sk->sk_state & PPPOX_CONNECTED)) 88 sk [all...] |