Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Nov 2018 16:08:36 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r340493 - head/sys/netinet
Message-ID:  <201811171608.wAHG8a9H021238@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Sat Nov 17 16:08:36 2018
New Revision: 340493
URL: https://svnweb.freebsd.org/changeset/base/340493

Log:
  Retire arpresolve_addr(), which is not used anywhere, from if_ether.c.

Modified:
  head/sys/netinet/if_ether.c
  head/sys/netinet/if_ether.h

Modified: head/sys/netinet/if_ether.c
==============================================================================
--- head/sys/netinet/if_ether.c	Sat Nov 17 12:59:59 2018	(r340492)
+++ head/sys/netinet/if_ether.c	Sat Nov 17 16:08:36 2018	(r340493)
@@ -573,21 +573,6 @@ arpresolve_full(struct ifnet *ifp, int is_gw, int flag
 }
 
 /*
- * Resolve an IP address into an ethernet address.
- */
-int
-arpresolve_addr(struct ifnet *ifp, int flags, const struct sockaddr *dst,
-    char *desten, uint32_t *pflags, struct llentry **plle)
-{
-	int error;
-
-	flags |= LLE_ADDRONLY;
-	error = arpresolve_full(ifp, 0, flags, NULL, dst, desten, pflags, plle);
-	return (error);
-}
-
-
-/*
  * Lookups link header based on an IP address.
  * On input:
  *    ifp is the interface we use

Modified: head/sys/netinet/if_ether.h
==============================================================================
--- head/sys/netinet/if_ether.h	Sat Nov 17 12:59:59 2018	(r340492)
+++ head/sys/netinet/if_ether.h	Sat Nov 17 16:08:36 2018	(r340493)
@@ -117,9 +117,6 @@ extern u_char	ether_ipmulticast_max[ETHER_ADDR_LEN];
 struct ifaddr;
 struct llentry;
 
-int	arpresolve_addr(struct ifnet *ifp, int flags,
-	    const struct sockaddr *dst, char *desten, uint32_t *pflags,
-	    struct llentry **plle);
 int	arpresolve(struct ifnet *ifp, int is_gw, struct mbuf *m,
 	    const struct sockaddr *dst, u_char *desten, uint32_t *pflags,
 	    struct llentry **plle);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811171608.wAHG8a9H021238>