diff options
Diffstat (limited to 'sys/net/if_iso88025subr.c')
| -rw-r--r-- | sys/net/if_iso88025subr.c | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c index 2b4e220c6de1..6849e906f40b 100644 --- a/sys/net/if_iso88025subr.c +++ b/sys/net/if_iso88025subr.c @@ -175,25 +175,27 @@ iso88025_ioctl(struct ifnet *ifp, int command, caddr_t data) /* * XXX - This code is probably wrong */ - case AF_IPX: - { - struct ipx_addr *ina = &(IA_SIPX(ifa)->sipx_addr); - struct arpcom *ac = IFP2AC(ifp); - - if (ipx_nullhost(*ina)) - ina->x_host = *(union ipx_host *)ac->ac_enaddr; - else { - bcopy((caddr_t) ina->x_host.c_host, - (caddr_t) ac->ac_enaddr, - ISO88025_ADDR_LEN); - } - - /* - * Set new address - */ - ifp->if_init(ifp->if_softc); - break; - } + case AF_IPX: { + struct ipx_addr *ina; + struct arpcom *ac; + + ina = &(IA_SIPX(ifa)->sipx_addr); + ac = IFP2AC(ifp); + + if (ipx_nullhost(*ina)) + ina->x_host = *(union ipx_host *) + ac->ac_enaddr; + else + bcopy((caddr_t) ina->x_host.c_host, + (caddr_t) ac->ac_enaddr, + ISO88025_ADDR_LEN); + + /* + * Set new address + */ + ifp->if_init(ifp->if_softc); + } + break; #endif /* IPX */ default: ifp->if_init(ifp->if_softc); |
