Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet carp: Set ethernet address just before interface...
details: https://anonhg.NetBSD.org/src/rev/b7d9abc2aece
branches: trunk
changeset: 955799:b7d9abc2aece
user: roy <roy%NetBSD.org@localhost>
date: Mon Oct 12 11:07:27 2020 +0000
description:
carp: Set ethernet address just before interface registation
Otherwise ifconfig reports SIOCGLIFADDR errors.
diffstat:
sys/netinet/ip_carp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 4a48edc3a9fc -r b7d9abc2aece sys/netinet/ip_carp.c
--- a/sys/netinet/ip_carp.c Mon Oct 12 11:07:23 2020 +0000
+++ b/sys/netinet/ip_carp.c Mon Oct 12 11:07:27 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ip_carp.c,v 1.111 2020/10/09 08:10:41 roy Exp $ */
+/* $NetBSD: ip_carp.c,v 1.112 2020/10/12 11:07:27 roy Exp $ */
/* $OpenBSD: ip_carp.c,v 1.113 2005/11/04 08:11:54 mcbride Exp $ */
/*
@@ -33,7 +33,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ip_carp.c,v 1.111 2020/10/09 08:10:41 roy Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_carp.c,v 1.112 2020/10/12 11:07:27 roy Exp $");
/*
* TODO:
@@ -887,10 +887,10 @@
return rv;
}
ether_ifattach(ifp, NULL);
- carp_set_enaddr(sc);
/* Overwrite ethernet defaults */
ifp->if_type = IFT_CARP;
ifp->if_output = carp_output;
+ carp_set_enaddr(sc);
if_register(ifp);
return (0);
Home |
Main Index |
Thread Index |
Old Index