]> xenbits.xensource.com Git - mini-os.git/commit
mini-os: netfront: Read netmask and gateway from Xenstore
authorCostin Lupu <costin.lupu@cs.pub.ro>
Wed, 19 Aug 2020 12:49:00 +0000 (15:49 +0300)
committerWei Liu <wl@xen.org>
Thu, 27 Aug 2020 13:39:00 +0000 (13:39 +0000)
commit1b8ed31f4ce4001f1525aabb69c4903b58802b90
treea68d8cbccc3d301c90cbe58bddff3ef7039b08b4
parent816701f213678809c48713037d6e1bd459f2927c
mini-os: netfront: Read netmask and gateway from Xenstore

When providing the IP address via the config file, one can also add the
netmask and gateway address, e.g. "ip=192.168.0.2 255.255.255.0
192.168.0.1", which will be further published to Xenstore. This patch adds
support for reading the netmask and gateway values.

Signed-off-by: Costin Lupu <costin.lupu@cs.pub.ro>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
include/netfront.h
lwip-net.c
netfront.c