Lines Matching refs:skc
85 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()
115 struct sock_common *skc; in lookup_subflow_by_saddr() local
118 skc = (struct sock_common *)mptcp_subflow_tcp_sock(subflow); in lookup_subflow_by_saddr()
120 mptcp_local_address(skc, &cur); in lookup_subflow_by_saddr()
1133 int mptcp_pm_nl_get_local_id(struct mptcp_sock *msk, struct mptcp_addr_info *skc) in mptcp_pm_nl_get_local_id() argument
1143 if (mptcp_addresses_equal(&entry->addr, skc, entry->addr.port)) { in mptcp_pm_nl_get_local_id()
1157 entry->addr = *skc; in mptcp_pm_nl_get_local_id()
1170 bool mptcp_pm_nl_is_backup(struct mptcp_sock *msk, struct mptcp_addr_info *skc) in mptcp_pm_nl_is_backup() argument
1178 if (mptcp_addresses_equal(&entry->addr, skc, entry->addr.port)) { in mptcp_pm_nl_is_backup()