diff options
Diffstat (limited to 'sys/netatm/uni/uniarp_cache.c')
| -rw-r--r-- | sys/netatm/uni/uniarp_cache.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sys/netatm/uni/uniarp_cache.c b/sys/netatm/uni/uniarp_cache.c index 88a26a59c76b5..6c9537e722c67 100644 --- a/sys/netatm/uni/uniarp_cache.c +++ b/sys/netatm/uni/uniarp_cache.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_cache.c,v 1.2 1998/10/31 20:07:00 phk Exp $ + * @(#) $Id: uniarp_cache.c,v 1.8 1998/08/26 23:29:20 mks Exp $ * */ @@ -35,6 +35,10 @@ * */ +#ifndef lint +static char *RCSid = "@(#) $Id: uniarp_cache.c,v 1.8 1998/08/26 23:29:20 mks Exp $"; +#endif + #include <netatm/kern_include.h> #include <netatm/ipatm/ipatm_var.h> @@ -42,10 +46,6 @@ #include <netatm/uni/unisig_var.h> #include <netatm/uni/uniip_var.h> -#ifndef lint -__RCSID("@(#) $Id: uniarp_cache.c,v 1.2 1998/10/31 20:07:00 phk Exp $"); -#endif - /* * Add data to the arp table cache @@ -79,7 +79,6 @@ uniarp_cache_svc(uip, ip, atm, atmsub, origin) #ifdef DIAGNOSTIC strncpy(abuf, unisig_addr_print(atmsub), sizeof(abuf)); - abuf[sizeof(abuf) - 1] = 0; ATM_DEBUG4("cache_svc: ip=%s, atm=(%s,%s), origin=%d\n", inet_ntoa(*ip), unisig_addr_print(atm), abuf, origin); #endif @@ -157,7 +156,6 @@ uniarp_cache_svc(uip, ip, atm, atmsub, origin) if (ipuap->ua_ivp != NULL) { strncpy(abuf, unisig_addr_print(atmsub), sizeof(abuf)); - abuf[sizeof(abuf) - 1] = 0; log(LOG_WARNING, "uniarp: duplicate IP address %s from %s,%s\n", inet_ntoa(*ip), unisig_addr_print(atm), @@ -187,7 +185,6 @@ uniarp_cache_svc(uip, ip, atm, atmsub, origin) } strncpy(abuf, unisig_addr_print(atmsub), sizeof(abuf)); - abuf[sizeof(abuf) - 1] = 0; log(LOG_WARNING, "uniarp: ATM address for %s changed to %s,%s\n", inet_ntoa(*ip), unisig_addr_print(atm), abuf); @@ -331,7 +328,6 @@ uniarp_cache_pvc(ivp, ip, atm, atmsub) vci = ivp->iv_conn->co_connvc->cvc_vcc->vc_vci; } strncpy(buf, unisig_addr_print(atmsub), sizeof(buf)); - buf[sizeof(buf) - 1] = 0; ATM_DEBUG5("cache_pvc: vcc=(%d,%d), ip=%s, atm=(%s,%s)\n", vpi, vci, inet_ntoa(*ip), unisig_addr_print(atm), buf); #endif |
