Skip to content

Welcome.ip and Welcome.home omit byte-order specification, unlike Peer.ip #16

@bibonix

Description

@bibonix

Both `Welcome.ip` (field 2) and `Welcome.home` (field 7) are documented as "4 raw bytes" but do not specify endianness. `Peer.ip` (pong.proto field 1) explicitly says "four raw bytes (network byte order)", establishing the pattern. A developer reading only `welcome.proto` has no stated byte-order contract for the two fields.

The absence matters because `Welcome.ip` is used to configure the TUN interface source address, and `Welcome.home` is compared against the client's local IP to detect NAT. An implementation that uses host byte order (little-endian on x86) instead of network byte order would configure a reversed IP address, causing the tunnel to send malformed packets or silently misreport NAT state.

Add "network byte order" to the comments of both fields in `welcome.proto`, mirroring the wording already present in `Peer.ip`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions