]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: ipv6: Fix IPv6 netmask parsing
authorSean Edmond <seanedmond@microsoft.com>
Fri, 6 Jan 2023 22:22:55 +0000 (14:22 -0800)
committerTom Rini <trini@konsulko.com>
Thu, 2 Feb 2023 19:44:53 +0000 (14:44 -0500)
commit796e549822bdb49128578d8ae82d28a5249b4816
tree54a13359ccbbec21a22e6f0be24b9f082ba65f87
parent878a20aa15880e8b0cc2009331e7b207b7c668c0
net: ipv6: Fix IPv6 netmask parsing

It should be possible to specify a netmask when
setting a static IPv6 address.  For example:
setenv ip6addr 2001:cafe:cafe:cafe::100/64

The net_prefix_length and net_ip6 should be updated
properly.

Signed-off-by: Sean Edmond <seanedmond@microsoft.com>
Reviewed-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
net/net6.c