View | Details | Raw Unified | Return to bug 225792 | Differences between
and this patch

Collapse All | Expand All

(-)ip_input.c 2019-10-31 08:01:42.938504000 +0800 (-1 / +10 lines)
Lines 37-42 Link Here
37
#include "opt_mpath.h"
Lines 64-69 Link Here
65
#ifdef RADIX_MPATH
66
#include <net/radix_mpath.h>
67
#endif
Lines 115-120 Link Here
115
   &VNET_NAME(ipsendredirects), 0,
119
   &VNET_NAME(ipsendredirects), 0,
116
   "Enable sending IP redirects");
120
   "Enable sending IP redirects");
121
VNET_DEFINE_STATIC(int, ipfastforward_active) = 1;
122
#define V_ipfastforward_active          VNET(ipfastforward_active)
123
SYSCTL_INT(_net_inet_ip, OID_AUTO, fastforwarding, CTLFLAG_VNET | CTLFLAG_RW,
124
     &VNET_NAME(ipfastforward_active), 0, "Enable fast IP forwarding");
125
117
* XXX - Setting ip_checkinterface mostly implements the receive side of
126
* XXX - Setting ip_checkinterface mostly implements the receive side of
118
* the Strong ES model described in RFC 1122, but since the routing table
127
* the Strong ES model described in RFC 1122, but since the routing table
Lines 566-572 Link Here
566
       * case skip another inbound firewall processing and update
575
       * case skip another inbound firewall processing and update
567
       * ip pointer.
576
       * ip pointer.
568
       */
577
       */
569
       if (V_ipforwarding != 0 && V_ipsendredirects == 0
578
       if (V_ipforwarding != 0 && V_ipsendredirects == 0 && V_ipfastforward_active != 0
570
          && (!IPSEC_ENABLED(ipv4) ||
579
          && (!IPSEC_ENABLED(ipv4) ||
571
          IPSEC_CAPS(ipv4, m, IPSEC_CAP_OPERABLE) == 0)
580
          IPSEC_CAPS(ipv4, m, IPSEC_CAP_OPERABLE) == 0)

Return to bug 225792