Remove aarp_clean, unused. By the way this function was probably buggy

since it didn't reset aat_hold to NULL.
This commit is contained in:
maxv 2018-05-29 16:29:47 +00:00
parent 375907a025
commit 90aec87ff9
2 changed files with 3 additions and 16 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: aarp.c,v 1.41 2018/02/17 19:10:18 rjs Exp $ */
/* $NetBSD: aarp.c,v 1.42 2018/05/29 16:29:47 maxv Exp $ */
/*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.41 2018/02/17 19:10:18 rjs Exp $");
__KERNEL_RCSID(0, "$NetBSD: aarp.c,v 1.42 2018/05/29 16:29:47 maxv Exp $");
#include "opt_mbuftrace.h"
#include "opt_atalk.h"
@ -673,15 +673,3 @@ aarpprobe(void *arp)
aa->aa_probcnt--;
mutex_exit(softnet_lock);
}
void
aarp_clean(void)
{
struct aarptab *aat;
int i;
callout_stop(&aarptimer_callout);
for (i = 0, aat = aarptab; i < AARPTAB_SIZE; i++, aat++)
if (aat->aat_hold)
m_freem(aat->aat_hold);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: at_extern.h,v 1.19 2016/01/20 21:59:19 riastradh Exp $ */
/* $NetBSD: at_extern.h,v 1.20 2018/05/29 16:29:47 maxv Exp $ */
/*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
@ -50,7 +50,6 @@ int aarpresolve(struct ifnet *, struct mbuf *, const struct sockaddr_at *,
u_char *);
void aarpinput(struct ifnet *, struct mbuf *);
int at_broadcast(const struct sockaddr_at *);
void aarp_clean(void);
int at_control(u_long, void *, struct ifnet *);
int at_inithead(void **, int);
void at_purgeaddr(struct ifaddr *);