summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-11-04 18:10:42 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-11-04 18:10:42 +0000
commit2ed1b7f1d3cfa89b1dc0d79159bf5091f71e8da0 (patch)
tree4a97d141f12c9a7371700cfdbffdf8bb6f034921
parent676100f65d53c03bdd734acdcbc23f46adfe733d (diff)
Use MGETHDR() instead of m_gethdr()
Patch from Marco Pfatschbacher (Marco_Pfatschbacher at genua dot de)
-rw-r--r--sys/netinet/ip_carp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index ee0eb928909..0cf3cc4a12c 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.19 2003/11/04 17:16:24 mcbride Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.20 2003/11/04 18:10:41 mcbride Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -669,11 +669,10 @@ carp_send_ad(void *v)
#ifdef INET
- /* MGETHDR(m, M_DONTWAIT, MT_HEADER); */
if (sc->sc_ia) {
struct ip *ip;
- m = m_gethdr(M_DONTWAIT, MT_HEADER);
+ MGETHDR(m, M_DONTWAIT, MT_HEADER);
if (m == NULL) {
sc->sc_ac.ac_if.if_oerrors++;
carpstats.carps_onomem++;
@@ -722,11 +721,10 @@ carp_send_ad(void *v)
}
#endif /* INET */
#ifdef INET6
- /* MGETHDR(m, M_DONTWAIT, MT_HEADER); */
if (sc->sc_ia6) {
struct ip6_hdr *ip6;
- m = m_gethdr(M_DONTWAIT, MT_HEADER);
+ MGETHDR(m, M_DONTWAIT, MT_HEADER);
if (m == NULL) {
sc->sc_ac.ac_if.if_oerrors++;
carpstats.carps_onomem++;