s3:lib: copy speed, cap, and index in add_interface()
authorMichael Adam <obnox@samba.org>
Mon, 25 Jan 2016 13:09:37 +0000 (14:09 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 26 Jan 2016 06:33:16 +0000 (07:33 +0100)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/lib/interface.c

index adf8b429eb2c73303e020d64ef1b08aa3a8a95b7..2e4bf0a9de983b62d6e74407c357df9886d61fe2 100644 (file)
@@ -333,6 +333,9 @@ static void add_interface(const struct iface_struct *ifs)
        iface->ip = ifs->ip;
        iface->netmask = ifs->netmask;
        iface->bcast = ifs->bcast;
+       iface->linkspeed = ifs->linkspeed;
+       iface->capability = ifs->capability;
+       iface->if_index = ifs->if_index;
 
        DLIST_ADD(local_interfaces, iface);