diff options
| author | jdolecek <jdolecek@NetBSD.org> | 2001-06-19 07:19:35 +0000 |
|---|---|---|
| committer | jdolecek <jdolecek@NetBSD.org> | 2001-06-19 07:19:35 +0000 |
| commit | a7d6a8f2f160c7f321b4aff45136493ceafaa957 (patch) | |
| tree | 0a4a1edab7b1dc16ff46eab8198890e921f58cef /sys/dev | |
| parent | 97b16e911f6c78835680941f38d013a38a90e957 (diff) | |
The ifa is needed for CCITT&&LLC case, provide it in that case
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ic/lance.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ic/lance.c b/sys/dev/ic/lance.c index 147dd075e10..e2eec1a8410 100644 --- a/sys/dev/ic/lance.c +++ b/sys/dev/ic/lance.c @@ -1,4 +1,4 @@ -/* $NetBSD: lance.c,v 1.21 2001/06/18 13:47:18 onoe Exp $ */ +/* $NetBSD: lance.c,v 1.22 2001/06/19 07:19:35 jdolecek Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -580,12 +580,16 @@ lance_ioctl(ifp, cmd, data) #if defined(CCITT) && defined(LLC) case SIOCSIFCONF_X25: + { + struct ifaddr *ifa = (struct ifaddr *) data; + ifp->if_flags |= IFF_UP; ifa->ifa_rtrequest = cons_rtrequest; /* XXX */ error = x25_llcglue(PRC_IFUP, ifa->ifa_addr); if (error == 0) lance_init(&sc->sc_ethercom.ec_if); break; + } #endif /* CCITT && LLC */ case SIOCADDMULTI: |
