Skip to content

Conversation

@zwtop
Copy link
Collaborator

@zwtop zwtop commented Jan 14, 2025

No description provided.

@zwtop zwtop force-pushed the patch_route_change branch from 745df07 to 003428b Compare January 14, 2025 11:37
@zwtop
Copy link
Collaborator Author

zwtop commented Jan 14, 2025

ip route change:

https://github.com/iproute2/iproute2/blob/v5.5.0/ip/iproute.c#L2296-L2301

and strace output:

sendmsg(3, {msg_name={sa_family=AF_NETLINK, nl_pid=0, nl_groups=00000000}, msg_namelen=12, msg_iov=[{iov_base={{len=72, type=RTM_NEWROUTE, flags=NLM_F_REQUEST|NLM_F_ACK|NLM_F_REPLACE, seq=1736855784, pid=0}, {rtm_family=AF_INET, rtm_dst_len=24, rtm_src_len=0, rtm_tos=0, rtm_table=RT_TABLE_MAIN, rtm_protocol=RTPROT_KERNEL, rtm_scope=RT_SCOPE_LINK, rtm_type=RTN_UNICAST, rtm_flags=0}, [{{nla_len=8, nla_type=RTA_DST}, inet_addr("10.0.18.0")}, {{nla_len=8, nla_type=RTA_PREFSRC}, inet_addr("10.0.18.95")}, {{nla_len=8, nla_type=RTA_OIF}, if_nametoindex("port-storage")}, {{nla_len=20, nla_type=RTA_METRICS}, [{{nla_len=8, nla_type=RTAX_QUICKACK}, 1}, {{nla_len=8, nla_type=RTAX_QUICKACK}, 1}]}]}, iov_len=72}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 72

@zwtop zwtop requested a review from wu-cl January 14, 2025 12:01
@zwtop zwtop merged commit c1a6be8 into everoute:main Jan 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants