summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-11-04 17:16:25 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-11-04 17:16:25 +0000
commit24ad51a940ad01cf3624a7dec100e067b2295050 (patch)
tree8b47481e65a17b44290075d5e8a241f364f05e4f /sys
parent745f24e8a82d0cd6996431426eb812bff7b93cae (diff)
- Remove bogus function prototype
- Put the correct address family in the BPF header Pointed out by Max Laier.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_carp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index ce2423db0e1..ee0eb928909 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.18 2003/11/04 03:19:22 mickey Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.19 2003/11/04 17:16:24 mcbride Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -155,7 +155,6 @@ int carp_prepare_ad(struct mbuf *, struct carp_softc *,
void carp_send_ad(void *);
void carp_send_arp(struct carp_softc *);
void carp_master_down(void *);
-int carp_sluggish(struct carp_softc *, struct carp_header *);
int carp_ioctl(struct ifnet *, u_long, caddr_t);
void carp_start(struct ifnet *);
void carp_setrun(struct carp_softc *, sa_family_t);
@@ -412,7 +411,7 @@ carp_input_c(struct mbuf *m, struct carp_softc *sc,
* try to free it or keep a pointer to it).
*/
struct mbuf m0;
- u_int32_t af = htonl(AF_INET6);
+ u_int32_t af = htonl(af);
m0.m_next = m;
m0.m_len = sizeof(af);