changeset 4435:3adc126c82e3 draft

sun: Update the interface index after plumbing Otherwise it's likely zero ....
author Roy Marples <roy@marples.name>
date Sun, 14 Apr 2019 14:01:21 +0300
parents 7d588b6cb52d
children 52c29572025b
files src/if-sun.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/if-sun.c	Sun Apr 14 13:48:29 2019 +0300
+++ b/src/if-sun.c	Sun Apr 14 14:01:21 2019 +0300
@@ -1489,6 +1489,9 @@
 		return -1;
 	}
 
+	/* We need to update the index now */
+	ia->iface->index = if_nametoindex(ia->alias);
+
 	sin_addr = (struct sockaddr_in *)&ss_addr;
 	sin_addr->sin_family = AF_INET;
 	sin_addr->sin_addr = ia->addr;