changeset 4165:278ef87ffd94 draft

OpenBSD: Remove route labelling support It was only added because OpenBSD dhclient did similar .... that was removed so dhcpcd is following suit.
author Roy Marples <roy@marples.name>
date Tue, 10 Oct 2017 21:51:55 +0100
parents 834aba640014
children 3d5e01232bf7
files src/if-bsd.c
diffstat 1 files changed, 0 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/src/if-bsd.c	Tue Oct 10 21:04:27 2017 +0100
+++ b/src/if-bsd.c	Tue Oct 10 21:51:55 2017 +0100
@@ -461,9 +461,6 @@
 	char *bp = rtmsg.buffer;
 	struct sockaddr_dl sdl;
 	bool gateway_unspec;
-#ifdef RTA_LABEL
-	struct sockaddr_rtlabel label;
-#endif
 
 	assert(rt != NULL);
 	ctx = rt->rt_ifp->ctx;
@@ -585,23 +582,6 @@
 	if (rtm->rtm_addrs & RTA_IFA)
 		ADDSA(&rt->rt_ifa);
 
-#ifdef RTA_LABEL
-	if (rtm->rtm_addrs & RTA_LABEL) {
-		int len;
-
-		memset(&label, 0, sizeof(label));
-		label.sr_family = AF_UNSPEC;
-		label.sr_len = sizeof(label);
-		len = snprintf(label.sr_label, sizeof(label.sr_label),
-		    PACKAGE " %d", getpid());
-		/* Don't add the label if we failed to create it. */
-		if (len == -1 || (size_t)len > sizeof(label.sr_label))
-			rtm->rtm_addrs &= ~RTA_LABEL;
-		else
-			ADDSA((struct sockaddr *)&label);
-	}
-#endif
-
 #undef ADDSA
 
 	rtm->rtm_msglen = (unsigned short)(bp - (char *)rtm);