Page MenuHomeFreeBSD

D18483.id51753.diff
No OneTemporary

D18483.id51753.diff

Index: sys/netpfil/pf/pf_lb.c
===================================================================
--- sys/netpfil/pf/pf_lb.c
+++ sys/netpfil/pf/pf_lb.c
@@ -328,6 +328,12 @@
src node was created just a moment ago in pf_create_state and it
needs to be filled in with routing decision calculated here. */
if (*sn != NULL && !PF_AZERO(&(*sn)->raddr, af)) {
+ /* If the supplied address is the same as the current one we've
+ * been asked before, so tell the caller that there's no other
+ * address to be had. */
+ if (PF_AEQ(naddr, &(*sn)->raddr, af))
+ return (1);
+
PF_ACPY(naddr, &(*sn)->raddr, af);
if (V_pf_status.debug >= PF_DEBUG_MISC) {
printf("pf_map_addr: src tracking maps ");

File Metadata

Mime Type
text/plain
Expires
Thu, Jul 16, 7:06 AM (10 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35128413
Default Alt Text
D18483.id51753.diff (715 B)

Event Timeline