Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/linux/addrs: fix point-to-point peer address bug #1239

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

sreimers
Copy link
Member

@sreimers sreimers commented Dec 23, 2024

For point-to-point interfaces IFA_ADDRESS points to the peer address instead of the local address.

Important comment:
IFA_ADDRESS is prefix address, rather than local interface address.
It makes no difference for normally configured broadcast interfaces,
but for point-to-point IFA_ADDRESS is DESTINATION address,
local address is supplied in IFA_LOCAL attribute.

On point-to-point networks IFA_ADDRESS points to the peer address
instead of the local address.

    /*
     * Important comment:
     * IFA_ADDRESS is prefix address, rather than local interface address.
     * It makes no difference for normally configured broadcast interfaces,
     * but for point-to-point IFA_ADDRESS is DESTINATION address,
     * local address is supplied in IFA_LOCAL attribute.
    */
@sreimers sreimers force-pushed the netlink_fix_ifa_local branch from 3bd3d24 to a54a490 Compare December 23, 2024 19:23
@sreimers sreimers merged commit 1a58d37 into main Dec 23, 2024
38 checks passed
@sreimers sreimers deleted the netlink_fix_ifa_local branch December 23, 2024 19:29
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.

1 participant