mirror of
https://passt.top/passt
synced 2025-05-21 08:45:36 +02:00
treewide: Remove misleading and redundant endianness notes
In general, it's much less error-prone to have the endianness of values implied by the type, rather than just noting it in comments. We can't always easily avoid it, because C, but we can do so when possible. struct in_addr and in6_addr are always encoded network endian, so noting it explicitly isn't useful. Remove them. In some cases we also have endianness notes on uint8_t parameters, which doesn't make sense: for a single byte endianness is irrelevant. Remove those too. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
5d37dab012
commit
1095a7b0c9
3 changed files with 16 additions and 16 deletions
8
passt.h
8
passt.h
|
@ -124,10 +124,10 @@ enum passt_modes {
|
|||
* @addr: IPv4 address for external, routable interface
|
||||
* @addr_seen: Latest IPv4 address seen as source from tap
|
||||
* @prefixlen: IPv4 prefix length (netmask)
|
||||
* @gw: Default IPv4 gateway, network order
|
||||
* @dns: DNS addresses for DHCP, zero-terminated, network order
|
||||
* @dns_match: Forward DNS query if sent to this address, network order
|
||||
* @dns_host: Use this DNS on the host for forwarding, network order
|
||||
* @gw: Default IPv4 gateway
|
||||
* @dns: DNS addresses for DHCP, zero-terminated
|
||||
* @dns_match: Forward DNS query if sent to this address
|
||||
* @dns_host: Use this DNS on the host for forwarding
|
||||
* @addr_out: Optional source address for outbound traffic
|
||||
* @ifname_out: Optional interface name to bind outbound sockets to
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue