diff options
author | Tom Gundersen <teg@jklm.no> | 2014-07-03 10:52:42 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-07-03 11:00:36 +0200 |
commit | 4826dd6850478ddec604787756db26c1ab2c106f (patch) | |
tree | bc0f27a1465cc81ff6774277236d4dfe4570a84c /src/network/networkd.h | |
parent | 30ae9dfda3788cdfaf1b84d124dbc7feb638c77b (diff) |
networkd: tunnels - make tunnel address parsing generic
It had a bug in the typing, fix that and also make it save the address family so we
can print proper error messages.
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index 67ca41b8a4..6a00175157 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -134,9 +134,10 @@ struct NetDev { unsigned ttl; unsigned tos; - struct in_addr local; - struct in_addr remote; - struct in_addr group; + unsigned char family; + union in_addr_union local; + union in_addr_union remote; + union in_addr_union group; LIST_HEAD(netdev_enslave_callback, callbacks); }; |