diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-10 12:31:24 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-10 12:31:24 +0000 |
commit | 6b3251024eafed21fd1f959dd3403eea5f520cc6 (patch) | |
tree | 71c753c7e8d0c4db5e1bc1fde6ad4e86ffa6f8db /sys/netiso | |
parent | 02ca3f3ee25cc0505314e846136b6e767eb83de8 (diff) |
if_name/if_unit -> if_xname/if_softc
Diffstat (limited to 'sys/netiso')
-rw-r--r-- | sys/netiso/esis.c | 20 | ||||
-rw-r--r-- | sys/netiso/if_eon.c | 8 | ||||
-rw-r--r-- | sys/netiso/iso_snpac.c | 10 |
3 files changed, 19 insertions, 19 deletions
diff --git a/sys/netiso/esis.c b/sys/netiso/esis.c index 634030e10f8..10b4b86674e 100644 --- a/sys/netiso/esis.c +++ b/sys/netiso/esis.c @@ -1,5 +1,5 @@ -/* $OpenBSD: esis.c,v 1.3 1996/04/21 22:29:21 deraadt Exp $ */ -/* $NetBSD: esis.c,v 1.13 1996/04/13 01:34:39 cgd Exp $ */ +/* $OpenBSD: esis.c,v 1.4 1996/05/10 12:31:21 deraadt Exp $ */ +/* $NetBSD: esis.c,v 1.14 1996/05/07 02:45:04 thorpej Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -346,8 +346,8 @@ esis_rdoutput(inbound_shp, inbound_m, inbound_oidx, rd_dstnsap, rt) #ifdef ARGO_DEBUG if (argo_debug[D_ESISOUTPUT]) { printf( - "esis_rdoutput: ifp %p (%s%d), ht %d, m %p, oidx %p\n", - ifp, ifp->if_name, ifp->if_unit, esis_holding_time, + "esis_rdoutput: ifp %p (%s), ht %d, m %p, oidx %p\n", + ifp, ifp->if_xname, esis_holding_time, inbound_m, inbound_oidx); printf("\tdestination: %s\n", clnp_iso_addrp(rd_dstnsap)); printf("\tredirected toward:%s\n", clnp_iso_addrp(rd_gwnsap)); @@ -871,8 +871,8 @@ esis_shoutput(ifp, type, ht, sn_addr, sn_len, isoa) #ifdef ARGO_DEBUG if (argo_debug[D_ESISOUTPUT]) { int i; - printf("esis_shoutput: ifp %p (%s%d), %s, ht %d, to: [%d] ", - ifp, ifp->if_name, ifp->if_unit, + printf("esis_shoutput: ifp %p (%s), %s, ht %d, to: [%d] ", + ifp, ifp->if_xname, type == ESIS_ESH ? "esh" : "ish", ht, sn_len); for (i = 0; i < sn_len; i++) @@ -1022,8 +1022,8 @@ isis_input(m0, va_alist) if (argo_debug[D_ISISINPUT]) { int i; - printf("isis_input: pkt on ifp %p (%s%d): from:", - ifp, ifp->if_name, ifp->if_unit); + printf("isis_input: pkt on ifp %p (%s): from:", + ifp, ifp->if_xname); for (i = 0; i < 6; i++) printf("%x%c", shp->snh_shost[i] & 0xff, (i < 5) ? ':' : ' '); @@ -1103,8 +1103,8 @@ isis_output(m, va_alist) #ifdef ARGO_DEBUG if (argo_debug[D_ISISOUTPUT]) { u_char *cp = (u_char *) LLADDR(sdl), *cplim = cp + sn_len; - printf("isis_output: ifp %p (%s%d), to: ", - ifp, ifp->if_name, ifp->if_unit); + printf("isis_output: ifp %p (%s), to: ", + ifp, ifp->if_xname); while (cp < cplim) { printf("%x", *cp++); printf("%c", (cp < cplim) ? ':' : ' '); diff --git a/sys/netiso/if_eon.c b/sys/netiso/if_eon.c index 26faad42800..223c79c8acc 100644 --- a/sys/netiso/if_eon.c +++ b/sys/netiso/if_eon.c @@ -1,5 +1,5 @@ -/* $OpenBSD: if_eon.c,v 1.3 1996/04/21 22:29:23 deraadt Exp $ */ -/* $NetBSD: if_eon.c,v 1.13 1996/04/13 01:34:44 cgd Exp $ */ +/* $OpenBSD: if_eon.c,v 1.4 1996/05/10 12:31:22 deraadt Exp $ */ +/* $NetBSD: if_eon.c,v 1.14 1996/05/07 02:45:10 thorpej Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -142,9 +142,9 @@ eonattach() printf("eonattach()\n"); } #endif - ifp->if_unit = 0; - ifp->if_name = "eon"; + sprintf(ifp->if_xname, "eon%d", 0); ifp->if_mtu = ETHERMTU; + ifp->if_softc = NULL; /* since everything will go out over ether or token ring */ ifp->if_ioctl = eonioctl; diff --git a/sys/netiso/iso_snpac.c b/sys/netiso/iso_snpac.c index 991ccc25c66..cb720410473 100644 --- a/sys/netiso/iso_snpac.c +++ b/sys/netiso/iso_snpac.c @@ -1,5 +1,5 @@ -/* $OpenBSD: iso_snpac.c,v 1.3 1996/04/21 22:29:32 deraadt Exp $ */ -/* $NetBSD: iso_snpac.c,v 1.12 1996/04/13 01:35:00 cgd Exp $ */ +/* $OpenBSD: iso_snpac.c,v 1.4 1996/05/10 12:31:22 deraadt Exp $ */ +/* $NetBSD: iso_snpac.c,v 1.13 1996/05/07 02:45:16 thorpej Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -268,10 +268,10 @@ iso_setmcasts(ifp, req) } if (doreset) { if (ifp->if_reset) - (*ifp->if_reset) (ifp->if_unit); + (*ifp->if_reset) (ifp); else - printf("iso_setmcasts: %s%d needs reseting to receive iso mcasts\n", - ifp->if_name, ifp->if_unit); + printf("iso_setmcasts: %s needs reseting to receive iso mcasts\n", + ifp->if_xname); } } |