From 24ad51a940ad01cf3624a7dec100e067b2295050 Mon Sep 17 00:00:00 2001 From: Ryan Thomas McBride Date: Tue, 4 Nov 2003 17:16:25 +0000 Subject: - Remove bogus function prototype - Put the correct address family in the BPF header Pointed out by Max Laier. --- sys/netinet/ip_carp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys') 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); -- cgit v1.2.3