diff options
author | mks <mks@FreeBSD.org> | 1999-01-19 23:16:11 +0000 |
---|---|---|
committer | mks <mks@FreeBSD.org> | 1999-01-19 23:16:11 +0000 |
commit | 299738cfe463bd576897811afa3500cf4071ca1f (patch) | |
tree | 4a86968264404e345ac31c29456e8087247f65f0 /sys/netatm/atm_usrreq.c | |
parent | 921f53138df8152d31da7b9760f85e9dccf137b4 (diff) | |
download | FreeBSD-src-299738cfe463bd576897811afa3500cf4071ca1f.zip FreeBSD-src-299738cfe463bd576897811afa3500cf4071ca1f.tar.gz |
Prevent duplicate output lines from 'atm show arpserver' command on systems
with multiple ATM physical interfaces.
Diffstat (limited to 'sys/netatm/atm_usrreq.c')
-rw-r--r-- | sys/netatm/atm_usrreq.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/sys/netatm/atm_usrreq.c b/sys/netatm/atm_usrreq.c index f5699ce..278d9f8 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; |