diff options
author | 2011-07-08 19:07:18 +0000 | |
---|---|---|
committer | 2011-07-08 19:07:18 +0000 | |
commit | f417ba08902eff06f3dbc451e3d003386c55106b (patch) | |
tree | 16451a4eead688d146865acc3d94105df03fb542 | |
parent | keep the fdplock around copyout in pipe. ok matthew (diff) | |
download | wireguard-openbsd-f417ba08902eff06f3dbc451e3d003386c55106b.tar.xz wireguard-openbsd-f417ba08902eff06f3dbc451e3d003386c55106b.zip |
mark carp advertisements to be queued at priority 6. losing them is bad,
mkay? ok ryan
-rw-r--r-- | sys/netinet/ip_carp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index b5433997653..ac6be8b7459 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_carp.c,v 1.188 2011/07/04 03:13:53 mpf Exp $ */ +/* $OpenBSD: ip_carp.c,v 1.189 2011/07/08 19:07:18 henning Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -254,6 +254,7 @@ struct if_clone carp_cloner = IF_CLONE_INITIALIZER("carp", carp_clone_create, carp_clone_destroy); #define carp_cksum(_m, _l) ((u_int16_t)in_cksum((_m), (_l))) +#define CARP_IFQ_PRIO 6 void carp_hmac_prepare(struct carp_softc *sc) @@ -1150,6 +1151,7 @@ carp_send_ad(void *v) m->m_pkthdr.len = len; m->m_pkthdr.rcvif = NULL; m->m_pkthdr.rdomain = sc->sc_if.if_rdomain; + m->m_pkthdr.pf.prio = CARP_IFQ_PRIO; m->m_len = len; MH_ALIGN(m, m->m_len); ip = mtod(m, struct ip *); @@ -1239,6 +1241,7 @@ carp_send_ad(void *v) len = sizeof(*ip6) + sizeof(ch); m->m_pkthdr.len = len; m->m_pkthdr.rcvif = NULL; + m->m_pkthdr.pf.prio = CARP_IFQ_PRIO; /* XXX m->m_pkthdr.rdomain = sc->sc_if.if_rdomain; */ m->m_len = len; MH_ALIGN(m, m->m_len); |