Correct inaccurate comments on ip[46]_ctx::addr
These fields are described as being an address for an external, routable interface. That's not necessarily the case when using -a. But, more importantly, saying where the value comes from is not as useful as what it's used for. The real purpose of this field is as the address which we assign to the guest via DHCP or --config-net. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
fecb1b65b1
commit
86bdd968ea
1 changed files with 2 additions and 2 deletions
4
passt.h
4
passt.h
|
@ -91,7 +91,7 @@ enum passt_modes {
|
|||
|
||||
/**
|
||||
* struct ip4_ctx - IPv4 execution context
|
||||
* @addr: IPv4 address for external, routable interface
|
||||
* @addr: IPv4 address assigned to guest
|
||||
* @addr_seen: Latest IPv4 address seen as source from tap
|
||||
* @prefixlen: IPv4 prefix length (netmask)
|
||||
* @gw: Default IPv4 gateway
|
||||
|
@ -121,7 +121,7 @@ struct ip4_ctx {
|
|||
|
||||
/**
|
||||
* struct ip6_ctx - IPv6 execution context
|
||||
* @addr: IPv6 address for external, routable interface
|
||||
* @addr: IPv6 address assigned to guest
|
||||
* @addr_ll: Link-local IPv6 address on external, routable interface
|
||||
* @addr_seen: Latest IPv6 global/site address seen as source from tap
|
||||
* @addr_ll_seen: Latest IPv6 link-local address seen as source from tap
|
||||
|
|
Loading…
Reference in a new issue