You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement setsockopt/getsockopt support for IPV6_UNICAST_HOPS in MPTCP:
1. Adds mptcp_setsockopt_v6_set_hops() to handle IPV6_UNICAST_HOPS:
- Applies hop limit to the MPTCP socket
- Propagates hop limit to all IPv6 subflows
- Uses conditional compilation for CONFIG_MPTCP_IPV6
2. Adds getsockopt handler for IPV6_UNICAST_HOPS:
- Retrieves hop limit from inet6_sk(sk)->hop_limit
- Falls back to net->ipv6.devconf_all->hop_limit when not set
3. Syncs hop limit to new subflows in sync_socket_options()
4. Maintains option sequence counter for consistency
This enables applications to control IPv6 hop limits in MPTCP connections
using standard IPv6 socket options, ensuring consistent behavior across
all subflows.
Closes: multipath-tcp/mptcp_net-next#296
Signed-off-by: Geliang Tang <[email protected]>
0 commit comments