Home
last modified time | relevance | path

Searched refs:skc (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dbpf_iter_setsockopt.c8 #define bpf_tcp_sk(skc) ({ \ argument
9 struct sock_common *_skc = skc; \
Dtest_tcp_custom_syncookie.c508 struct bpf_sock *skc; in tcp_handle_ack() local
529 skc = bpf_skc_lookup_tcp(ctx->skb, &tuple, tuple_size, -1, 0); in tcp_handle_ack()
530 if (!skc) in tcp_handle_ack()
533 if (skc->state != TCP_LISTEN) in tcp_handle_ack()
536 sk = (struct sock *)bpf_skc_to_tcp_sock(skc); in tcp_handle_ack()
553 bpf_sk_release(skc); in tcp_handle_ack()
/linux-6.12.1/net/mptcp/
Dpm_netlink.c85 void mptcp_local_address(const struct sock_common *skc, struct mptcp_addr_info *addr) in mptcp_local_address() argument
87 addr->family = skc->skc_family; in mptcp_local_address()
88 addr->port = htons(skc->skc_num); in mptcp_local_address()
90 addr->addr.s_addr = skc->skc_rcv_saddr; in mptcp_local_address()
93 addr->addr6 = skc->skc_v6_rcv_saddr; in mptcp_local_address()
97 static void remote_address(const struct sock_common *skc, in remote_address() argument
100 addr->family = skc->skc_family; in remote_address()
101 addr->port = skc->skc_dport; in remote_address()
103 addr->addr.s_addr = skc->skc_daddr; in remote_address()
106 addr->addr6 = skc->skc_v6_daddr; in remote_address()
[all …]
Dpm.c400 int mptcp_pm_get_local_id(struct mptcp_sock *msk, struct sock_common *skc) in mptcp_pm_get_local_id() argument
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() argument
425 mptcp_local_address((struct sock_common *)skc, &skc_local); in mptcp_pm_is_backup()
Dpm_userspace.c124 struct mptcp_addr_info *skc) in mptcp_userspace_pm_get_local_id() argument
132 if (mptcp_addresses_equal(&e->addr, skc, false)) { in mptcp_userspace_pm_get_local_id()
142 new_entry.addr = *skc; in mptcp_userspace_pm_get_local_id()
153 struct mptcp_addr_info *skc) in mptcp_userspace_pm_is_backup() argument
160 if (mptcp_addresses_equal(&entry->addr, skc, false)) { in mptcp_userspace_pm_is_backup()
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);
1117 int mptcp_pm_nl_get_local_id(struct mptcp_sock *msk, struct mptcp_addr_info *skc);
1118 int mptcp_userspace_pm_get_local_id(struct mptcp_sock *msk, struct mptcp_addr_info *skc);
1119 bool mptcp_pm_is_backup(struct mptcp_sock *msk, struct sock_common *skc);
1120 bool mptcp_pm_nl_is_backup(struct mptcp_sock *msk, struct mptcp_addr_info *skc);
1121 bool mptcp_userspace_pm_is_backup(struct mptcp_sock *msk, struct mptcp_addr_info *skc);