diff options
author | Mike Spengler <mks@FreeBSD.org> | 1999-01-19 23:16:11 +0000 |
---|---|---|
committer | Mike Spengler <mks@FreeBSD.org> | 1999-01-19 23:16:11 +0000 |
commit | 9848a01e47d5d9456ad42f9fc2002a93bbc5fe38 (patch) | |
tree | c9bf14416300533d864496c5edaa08db5e28d471 | |
parent | cfc0e28a51c20e21f838dd2683e5a4cbe088cb56 (diff) |
Notes
-rw-r--r-- | sys/netatm/atm_usrreq.c | 18 | ||||
-rw-r--r-- | sys/netatm/uni/uniarp.c | 9 |
2 files changed, 16 insertions, 11 deletions
diff --git a/sys/netatm/atm_usrreq.c b/sys/netatm/atm_usrreq.c index f5699ceb983bd..278d9f8f85747 100644 --- a/sys/netatm/atm_usrreq.c +++ b/sys/netatm/atm_usrreq.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: atm_usrreq.c,v 1.1 1998/09/15 08:22:59 phk Exp $ + * @(#) $Id: atm_usrreq.c,v 1.2 1998/10/31 20:06:54 phk Exp $ * */ @@ -38,7 +38,7 @@ #include <netatm/kern_include.h> #ifndef lint -__RCSID("@(#) $Id: atm_usrreq.c,v 1.1 1998/09/15 08:22:59 phk Exp $"); +__RCSID("@(#) $Id: atm_usrreq.c,v 1.2 1998/10/31 20:06:54 phk Exp $"); #endif @@ -547,11 +547,17 @@ atm_dgram_info(data) for (pip = atm_interface_head; pip; pip = pip->pif_next) { if (smp = pip->pif_sigmgr) { - err = (*smp->sm_ioctl)(AIOCS_INF_ASV, - data, NULL); + for (nip = pip->pif_nif; nip; + nip = nip->nif_pnext) { + err = (*smp->sm_ioctl) + (AIOCS_INF_ASV, data, + (caddr_t)nip); + if (err) + break; + } + if (err) + break; } - if (err) - break; } } break; diff --git a/sys/netatm/uni/uniarp.c b/sys/netatm/uni/uniarp.c index 9aae374e0e100..2d6006f802b3d 100644 --- a/sys/netatm/uni/uniarp.c +++ b/sys/netatm/uni/uniarp.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: uniarp.c,v 1.3 1998/10/31 20:07:00 phk Exp $ + * @(#) $Id: uniarp.c,v 1.4 1998/12/04 22:54:53 archie Exp $ * */ @@ -43,7 +43,7 @@ #include <netatm/uni/uniip_var.h> #ifndef lint -__RCSID("@(#) $Id: uniarp.c,v 1.3 1998/10/31 20:07:00 phk Exp $"); +__RCSID("@(#) $Id: uniarp.c,v 1.4 1998/12/04 22:54:53 archie Exp $"); #endif @@ -1137,14 +1137,14 @@ updbuf: * Get ARP server information */ aip = (struct atminfreq *)data; + nip = (struct atm_nif *)arg1; buf_addr = aip->air_buf_addr; buf_len = aip->air_buf_len; for (uip = uniip_head; uip; uip = uip->uip_next) { - if ((arg1 != NULL) && - (uip->uip_ipnif->inf_nif != (struct atm_nif *)arg1)) + if (uip->uip_ipnif->inf_nif != nip) continue; /* @@ -1158,7 +1158,6 @@ updbuf: /* * Fill in info to be returned */ - nip = uip->uip_ipnif->inf_nif; (void) snprintf(asr.asp_intf, sizeof(asr.asp_intf), "%s%d", nip->nif_if.if_name, nip->nif_if.if_unit); |