Home
last modified time | relevance | path

Searched refs:sock_common (Results 1 – 21 of 21) sorted by relevance

/linux/tools/testing/selftests/bpf/progs/
H A Dsock_destroy_prog.c11 int bpf_sock_destroy(struct sock_common *sk) __ksym;
51 struct sock_common *sk_common = ctx->sk_common; in iter_tcp6_client()
76 struct sock_common *sk_common = ctx->sk_common; in iter_tcp6_server()
121 bpf_sock_destroy((struct sock_common *)sk); in iter_udp6_client()
140 bpf_sock_destroy((struct sock_common *)sk); in iter_udp6_server()
H A Dsock_destroy_prog_fail.c11 int bpf_sock_destroy(struct sock_common *sk) __ksym;
18 bpf_sock_destroy((struct sock_common *)sk); in BPF_PROG()
H A Dtest_tcp_estats.c54 struct sock_common { struct
75 struct sock_common __sk_common; argument
H A Dbpf_iter_bpf_sk_storage_helpers.c52 struct sock_common *sk_common = ctx->sk_common; in negate_socket_local_storage()
H A Dbpf_iter_setsockopt.c9 struct sock_common *_skc = skc; \
H A Dbpf_iter.h93 struct sock_common *sk_common;
H A Dbpf_iter_tcp4.c198 struct sock_common *sk_common = ctx->sk_common; in dump_tcp4()
H A Dbpf_iter_tcp6.c214 struct sock_common *sk_common = ctx->sk_common; in dump_tcp6()
/linux/net/mptcp/
H A Dpm.c400 int mptcp_pm_get_local_id(struct mptcp_sock *msk, struct sock_common *skc) in mptcp_pm_get_local_id()
411 mptcp_local_address((struct sock_common *)msk, &msk_local); in mptcp_pm_get_local_id()
412 mptcp_local_address((struct sock_common *)skc, &skc_local); in mptcp_pm_get_local_id()
421 bool mptcp_pm_is_backup(struct mptcp_sock *msk, struct sock_common *skc) in mptcp_pm_is_backup()
425 mptcp_local_address((struct sock_common *)skc, &skc_local); in mptcp_pm_is_backup()
H A Dpm_netlink.c85 void mptcp_local_address(const struct sock_common *skc, struct mptcp_addr_info *addr) in mptcp_local_address()
97 static void remote_address(const struct sock_common *skc, in remote_address()
115 struct sock_common *skc; in lookup_subflow_by_saddr()
118 skc = (struct sock_common *)mptcp_subflow_tcp_sock(subflow); in lookup_subflow_by_saddr()
141 remote_address((struct sock_common *)ssk, &cur); in lookup_subflow_by_daddr()
276 mptcp_local_address((struct sock_common *)sk, &saddr); in mptcp_pm_sport_in_anno_list()
431 remote_address((struct sock_common *)sk, &remote); in fill_remote_addresses_vec()
458 remote_address((struct sock_common *)ssk, &addrs[i]); in fill_remote_addresses_vec()
557 mptcp_local_address((struct sock_common *)msk->first, &mpc_addr); in mptcp_pm_create_subflow_or_signal_addr()
675 mptcp_local_address((struct sock_common *)msk, &mpc_addr); in fill_local_addresses_vec()
[all …]
H A Dprotocol.h732 void mptcp_local_address(const struct sock_common *skc, struct mptcp_addr_info *addr);
1116 int mptcp_pm_get_local_id(struct mptcp_sock *msk, struct sock_common *skc);
1119 bool mptcp_pm_is_backup(struct mptcp_sock *msk, struct sock_common *skc);
H A Dsubflow.c97 local_id = mptcp_pm_get_local_id(msk, (struct sock_common *)req); in subflow_token_join_request()
103 subflow_req->request_bkup = mptcp_pm_is_backup(msk, (struct sock_common *)req); in subflow_token_join_request()
634 err = mptcp_pm_get_local_id(msk, (struct sock_common *)sk); in subflow_chk_local_id()
639 subflow->request_bkup = mptcp_pm_is_backup(msk, (struct sock_common *)sk); in subflow_chk_local_id()
/linux/net/core/
H A Dfilter.c9750 BUILD_BUG_ON(sizeof_field(struct sock_common, skc_family) != 2); in bpf_convert_ctx_access()
9756 bpf_target_off(struct sock_common, in bpf_convert_ctx_access()
9761 BUILD_BUG_ON(sizeof_field(struct sock_common, skc_daddr) != 4); in bpf_convert_ctx_access()
9767 bpf_target_off(struct sock_common, in bpf_convert_ctx_access()
9772 BUILD_BUG_ON(sizeof_field(struct sock_common, in bpf_convert_ctx_access()
9779 bpf_target_off(struct sock_common, in bpf_convert_ctx_access()
9786 BUILD_BUG_ON(sizeof_field(struct sock_common, in bpf_convert_ctx_access()
9796 offsetof(struct sock_common, in bpf_convert_ctx_access()
9806 BUILD_BUG_ON(sizeof_field(struct sock_common, in bpf_convert_ctx_access()
9816 offsetof(struct sock_common, in bpf_convert_ctx_access()
[all …]
/linux/include/net/
H A Dinet_timewait_sock.h38 struct sock_common __tw_common;
H A Drequest_sock.h56 struct sock_common __req_common;
H A Dsock.h150 struct sock_common { struct
347 struct sock_common __sk_common;
/linux/tools/include/linux/
H A Dbtf_ids.h184 BTF_SOCK_TYPE(BTF_SOCK_TYPE_SOCK_COMMON, sock_common) \
/linux/tools/testing/selftests/bpf/bpf_testmod/
H A Dbpf_testmod_kfunc.h148 struct sk_buff *bpf_kfunc_nested_acquire_zero_offset_test(struct sock_common *ptr) __ksym;
H A Dbpf_testmod.c192 __bpf_kfunc struct sk_buff *bpf_kfunc_nested_acquire_zero_offset_test(struct sock_common *ptr) in bpf_kfunc_nested_acquire_zero_offset_test()
/linux/include/linux/
H A Dbtf_ids.h249 BTF_SOCK_TYPE(BTF_SOCK_TYPE_SOCK_COMMON, sock_common) \
/linux/net/ipv4/
H A Dtcp_ipv4.c3011 __bpf_md_ptr(struct sock_common *, sk_common);
3016 struct sock_common *sk_common, uid_t uid)
3567 struct sock_common *sk_common, uid_t uid)