summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/arp.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2004-09-05 01:46:52 +0000
committerbrian <brian@FreeBSD.org>2004-09-05 01:46:52 +0000
commit6f864d0a973a7f3987d73132be311b7cfbd1ccfc (patch)
treefb5af1860e245ef67196527d9ba46e5c9e284bf6 /usr.sbin/ppp/arp.c
parent2f8e87b45e5735ee9774fce8bc8ffaf1fdc72657 (diff)
downloadFreeBSD-src-6f864d0a973a7f3987d73132be311b7cfbd1ccfc.zip
FreeBSD-src-6f864d0a973a7f3987d73132be311b7cfbd1ccfc.tar.gz
Make ppp WARNS=5 clean
Diffstat (limited to 'usr.sbin/ppp/arp.c')
-rw-r--r--usr.sbin/ppp/arp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/ppp/arp.c b/usr.sbin/ppp/arp.c
index 2c51352..02dce51 100644
--- a/usr.sbin/ppp/arp.c
+++ b/usr.sbin/ppp/arp.c
@@ -97,7 +97,7 @@ static struct {
} arpmsg;
static int
-arp_ProxySub(struct bundle *bundle, struct in_addr addr, int add, int s)
+arp_ProxySub(struct bundle *bundle, struct in_addr addr, int add)
{
int routes;
@@ -107,7 +107,7 @@ arp_ProxySub(struct bundle *bundle, struct in_addr addr, int add, int s)
*/
memset(&arpmsg, 0, sizeof arpmsg);
- if (!arp_EtherAddr(s, addr, &arpmsg.hwa, 0)) {
+ if (!arp_EtherAddr(addr, &arpmsg.hwa, 0)) {
log_Printf(LogWARN, "%s: Cannot determine ethernet address for proxy ARP\n",
inet_ntoa(addr));
return 0;
@@ -145,18 +145,18 @@ arp_ProxySub(struct bundle *bundle, struct in_addr addr, int add, int s)
}
int
-arp_SetProxy(struct bundle *bundle, struct in_addr addr, int s)
+arp_SetProxy(struct bundle *bundle, struct in_addr addr)
{
- return (arp_ProxySub(bundle, addr, 1, s));
+ return (arp_ProxySub(bundle, addr, 1));
}
/*
* arp_ClearProxy - Delete the proxy ARP entry for the peer.
*/
int
-arp_ClearProxy(struct bundle *bundle, struct in_addr addr, int s)
+arp_ClearProxy(struct bundle *bundle, struct in_addr addr)
{
- return (arp_ProxySub(bundle, addr, 0, s));
+ return (arp_ProxySub(bundle, addr, 0));
}
#else /* RTM_VERSION */
@@ -179,7 +179,7 @@ arp_SetProxy(struct bundle *bundle, struct in_addr addr, int s)
* Get the hardware address of an interface on the same subnet as our local
* address.
*/
- if (!arp_EtherAddr(s, addr, &dls.sdl, 1)) {
+ if (!arp_EtherAddr(addr, &dls.sdl, 1)) {
log_Printf(LOG_PHASE_BIT, "Cannot determine ethernet address for "
"proxy ARP\n");
return 0;
@@ -226,7 +226,7 @@ arp_ClearProxy(struct bundle *bundle, struct in_addr addr, int s)
*/
int
-arp_EtherAddr(int s, struct in_addr ipaddr, struct sockaddr_dl *hwaddr,
+arp_EtherAddr(struct in_addr ipaddr, struct sockaddr_dl *hwaddr,
int verbose)
{
int mib[6], skip;
OpenPOWER on IntegriCloud