Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/dhcpcd/dist add a patch from upstream, fixing a...
details: https://anonhg.NetBSD.org/src/rev/e3d16960b4ee
branches: trunk
changeset: 789869:e3d16960b4ee
user: drochner <drochner%NetBSD.org@localhost>
date: Wed Sep 11 18:50:00 2013 +0000
description:
add a patch from upstream, fixing a regression which obstructed link
status detection on BSD virtual interfaces (observed with xennet)
diffstat:
external/bsd/dhcpcd/dist/net.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r ec3e6e255cb4 -r e3d16960b4ee external/bsd/dhcpcd/dist/net.c
--- a/external/bsd/dhcpcd/dist/net.c Wed Sep 11 18:27:44 2013 +0000
+++ b/external/bsd/dhcpcd/dist/net.c Wed Sep 11 18:50:00 2013 +0000
@@ -1,5 +1,5 @@
#include <sys/cdefs.h>
- __RCSID("$NetBSD: net.c,v 1.1.1.22 2013/06/21 19:33:07 roy Exp $");
+ __RCSID("$NetBSD: net.c,v 1.2 2013/09/11 18:50:00 drochner Exp $");
/*
* dhcpcd - DHCP client daemon
@@ -170,7 +170,7 @@
#endif
if (ioctl(socket_afnet, SIOCGIFFLAGS, &ifr) == -1)
- return -1;
+ return LINK_UNKNOWN;
iface->flags = ifr.ifr_flags;
ret = LINK_UNKNOWN;
@@ -318,7 +318,7 @@
/* Bring the interface up if not already */
if (!(ifp->flags & IFF_UP)
#ifdef SIOCGIFMEDIA
- && carrier_status(ifp) != -1
+ && carrier_status(ifp) != LINK_UNKNOWN
#endif
)
{
Home |
Main Index |
Thread Index |
Old Index