]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commit
init: Support parsing of IPv4 CIDR (`UK_NETDEV_IPV4_CIDR`)
authorSimon Kuenzer <simon@unikraft.io>
Thu, 7 Dec 2023 23:18:00 +0000 (00:18 +0100)
committerRazvan Deaconescu <razvan.deaconescu@upb.ro>
Tue, 16 Jan 2024 18:16:01 +0000 (20:16 +0200)
commit5ea209de65819c5b5f7889aa87581cd65a385ac9
tree86c05259644eff6c9538ba1e556bad547012c373
parent8b4e7544a1dd0ea6c507c0d3c84134275e05406e
init: Support parsing of IPv4 CIDR (`UK_NETDEV_IPV4_CIDR`)

This commit introduces support for parsing a statically assigned IP address
from the the netdev's extended information (einfo) field:
`UK_NETDEV_IPV4_CIDR`. The CIDR notation is provided in preference by
`lib/uknetdev` and must be read before looking into `UK_NETDEV_IPV4_ADDR`
and `UK_NETDEV_IPV4_MASK` fields.

Signed-off-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #42
init.c