Module Name:    src
Committed By:   maxv
Date:           Tue May 29 16:29:47 UTC 2018

Modified Files:
        src/sys/netatalk: aarp.c at_extern.h

Log Message:
Remove aarp_clean, unused. By the way this function was probably buggy
since it didn't reset aat_hold to NULL.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/netatalk/aarp.c
cvs rdiff -u -r1.19 -r1.20 src/sys/netatalk/at_extern.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/netatalk/aarp.c
diff -u src/sys/netatalk/aarp.c:1.41 src/sys/netatalk/aarp.c:1.42
--- src/sys/netatalk/aarp.c:1.41	Sat Feb 17 19:10:18 2018
+++ src/sys/netatalk/aarp.c	Tue May 29 16:29:47 2018
@@ -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);
-}

Index: src/sys/netatalk/at_extern.h
diff -u src/sys/netatalk/at_extern.h:1.19 src/sys/netatalk/at_extern.h:1.20
--- src/sys/netatalk/at_extern.h:1.19	Wed Jan 20 21:59:19 2016
+++ src/sys/netatalk/at_extern.h	Tue May 29 16:29:47 2018
@@ -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 m
     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 *);

Reply via email to