]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We no longer need this as we don't alias anymore.
authorRoy Marples <roy@marples.name>
Sun, 14 Aug 2016 08:25:32 +0000 (08:25 +0000)
committerRoy Marples <roy@marples.name>
Sun, 14 Aug 2016 08:25:32 +0000 (08:25 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 8b4b263a61ae799bf3a9feb9b685b25c9f4363d5..3d3e1947d6d3a0549ac3c187a13824905918abb8 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -1538,7 +1538,6 @@ dhcp_openudp(struct interface *ifp)
        struct dhcp_state *state;
 #ifdef SO_BINDTODEVICE
        struct ifreq ifr;
-       char *p;
 #endif
 
        if ((s = xsocket(PF_INET, SOCK_DGRAM|SOCK_CLOEXEC, IPPROTO_UDP)) == -1)
@@ -1551,10 +1550,6 @@ dhcp_openudp(struct interface *ifp)
        if (ifp) {
                memset(&ifr, 0, sizeof(ifr));
                strlcpy(ifr.ifr_name, ifp->name, sizeof(ifr.ifr_name));
-               /* We can only bind to the real device */
-               p = strchr(ifr.ifr_name, ':');
-               if (p)
-                       *p = '\0';
                if (setsockopt(s, SOL_SOCKET, SO_BINDTODEVICE, &ifr,
                    sizeof(ifr)) == -1)
                        goto eexit;