Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ieee1394 show 16 byte ifaddr instead of EUI-64 at at...
details: https://anonhg.NetBSD.org/src/rev/25b34c0fa4df
branches: trunk
changeset: 504455:25b34c0fa4df
user: onoe <onoe%NetBSD.org@localhost>
date: Sat Mar 03 02:21:26 2001 +0000
description:
show 16 byte ifaddr instead of EUI-64 at attach.
diffstat:
sys/dev/ieee1394/if_fw.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 7586fe70c595 -r 25b34c0fa4df sys/dev/ieee1394/if_fw.c
--- a/sys/dev/ieee1394/if_fw.c Sat Mar 03 02:04:54 2001 +0000
+++ b/sys/dev/ieee1394/if_fw.c Sat Mar 03 02:21:26 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_fw.c,v 1.4 2000/12/14 07:03:50 thorpej Exp $ */
+/* $NetBSD: if_fw.c,v 1.5 2001/03/03 02:21:26 onoe Exp $ */
/* XXX ALTQ XXX */
@@ -166,7 +166,11 @@
ifp->if_baudrate = IF_Mbps(100 << sc->sc_ic.ic_hwaddr.iha_speed);
ifp->if_addrlen = sizeof(struct ieee1394_hwaddr);
- printf(": Id %s\n", ieee1394_sprintf(sc->sc_ic.ic_hwaddr.iha_uid));
+ printf(":");
+ for (i = 0; i < sizeof(sc->sc_ic.ic_hwaddr); i++)
+ printf("%c%02x", (i == 0 ? ' ' : ':'),
+ ((u_int8_t *)&sc->sc_ic.ic_hwaddr)[i]);
+ printf("\n");
if_attach(ifp);
ieee1394_ifattach(ifp, &sc->sc_ic.ic_hwaddr);
(*psc->sc1394_ifinreg)
Home |
Main Index |
Thread Index |
Old Index