Skip to content
Commit fd1a154c authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

libceph: make sure our addr->port is zero and addr->nonce is non-zero



Our messenger instance addr->port is normally zero -- anything else is
nonsensical because as a client we connect to multiple servers and don't
listen on any port.  However, a user can supply an arbitrary addr:port
via ip option and the port is currently preserved.  Zero it.

Conversely, make sure our addr->nonce is non-zero.  A zero nonce is
special: in combination with a zero port, it is used to blocklist the
entire ip.

Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 771294fe
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment