#define DIVERT_NO_LOCALNETS_SRC "(" DIVERT_NO_LOCALNETSv4_SRC " or " DIVERT_NO_LOCALNETSv6_SRC ")"
#define DIVERT_NO_LOCALNETS_DST "(" DIVERT_NO_LOCALNETSv4_DST " or " DIVERT_NO_LOCALNETSv6_DST ")"
#define DIVERT_TCP_NOT_EMPTY "(!tcp or tcp.Syn or tcp.PayloadLength>0)"
#define DIVERT_TCP_INBOUNDS "(tcp.Ack and tcp.Syn or tcp.Rst or tcp.Fin)"
// HTTP/1.? 30(2|7)
@@ -998,6 +999,7 @@ static bool wf_make_filter(
charpf_dst_buf[512],iface[64];
constchar*pf_dst;
constchar*f_tcpin=*pf_tcp_src?dp_list_have_autohostlist(¶ms.desync_profiles)?"("DIVERT_TCP_INBOUNDS" or ("DIVERT_HTTP_REDIRECT"))":DIVERT_TCP_INBOUNDS:"";
constchar*f_tcp_not_empty=*pf_tcp_src?DIVERT_TCP_NOT_EMPTY" and ":"";
snprintf(iface,sizeof(iface)," ifIdx=%u and subIfIdx=%u and",IfIdx,SubIfIdx);