From: sthen Date: Tue, 3 Oct 2023 10:22:10 +0000 (+0000) Subject: Reinstate setting rtableid based on rdomain for pfsync, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=37f6beb378afe555536a088a13a2c1c835f8d2a6;p=openbsd Reinstate setting rtableid based on rdomain for pfsync, lost during the rewrite, reported by Mark Patruck. ok phessler claudio sashan deraadt --- diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index 0a067bc547f..93d35ab27b0 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.321 2023/09/16 09:33:27 mpi Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.322 2023/10/03 10:22:10 sthen Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -1537,6 +1537,7 @@ pfsync_sendout(struct pfsync_softc *sc, struct mbuf *m) imo.imo_ifidx = sc->sc_sync_ifidx; imo.imo_ttl = PFSYNC_DFLTTL; imo.imo_loop = 0; + m->m_pkthdr.ph_rtableid = sc->sc_if.if_rdomain; if (ip_output(m, NULL, NULL, IP_RAWOUTPUT, &imo, NULL, 0) == 0) { counters_pkt(sc->sc_if.if_counters, ifc_opackets,