mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-02 19:04:46 +00:00
iplink_geneve: correct size of message to avoid spurious errors
Commit6c4b672738("iplink_geneve: Get rid of inet_get_addr()") inadvertently changed the parameter to addattr_l() resulting in: addattr_l ERROR: message exceeded bound of 4 when remote is specified. Fixes:6c4b672738("iplink_geneve: Get rid of inet_get_addr()") Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
This commit is contained in:
parent
260a92afe6
commit
f5393225f9
@ -199,7 +199,7 @@ static int geneve_parse_opt(struct link_util *lu, int argc, char **argv,
|
||||
if (is_addrtype_inet(&daddr)) {
|
||||
int type = (daddr.family == AF_INET) ? IFLA_GENEVE_REMOTE :
|
||||
IFLA_GENEVE_REMOTE6;
|
||||
addattr_l(n, sizeof(1024), type, daddr.data, daddr.bytelen);
|
||||
addattr_l(n, 1024, type, daddr.data, daddr.bytelen);
|
||||
}
|
||||
if (!set_op || GENEVE_ATTRSET(attrs, IFLA_GENEVE_LABEL))
|
||||
addattr32(n, 1024, IFLA_GENEVE_LABEL, label);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user