Files
libvirt/docs
Laine Stump acd8e9595f conf/util: fix non-specification of IP route destination address
The Linux/libnl version of virNetDevIPRouteAdd() has always had code
that would use "0.0.0.0" (or "::" for IPv6) for the route's
destination address if none was specified, but 1) our validation code
has always required it to be specified anyway, 2) the FreeBSD version
of virnertDevIPRouteAdd() expected that it would be specified, and 3)
virNetDevIPRouteFormat() also expected route->address to be
valid. This patch fixes those 3 deficiencies, so that this XML now
works:

   <route gateway='1.2.3.4'/>

i.e. it is the same as:

   <route address='0.0.0.0' prefix='0' gateway='1.2.3.4'/>

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2026-03-09 01:14:55 -04:00
..
2023-02-21 10:58:59 +01:00
2023-05-17 16:54:23 +02:00
2023-05-17 16:54:23 +02:00
2023-07-17 10:43:29 -05:00
2022-04-07 15:10:26 +02:00
2022-04-07 15:10:26 +02:00
2026-02-19 18:51:23 +01:00
2022-05-24 12:19:16 +02:00
2024-02-26 12:10:27 +01:00
2022-03-08 17:40:47 +01:00
2022-04-01 16:33:19 +02:00
2026-01-06 10:58:23 +00:00
2025-03-17 12:37:48 +01:00
2022-03-08 17:40:47 +01:00
2017-08-02 15:00:28 -04:00
2022-04-14 11:54:28 +02:00
2022-04-07 15:10:26 +02:00
2024-05-13 08:57:05 +02:00
2025-08-13 15:41:05 +02:00
2022-03-08 17:40:47 +01:00