Date: Fri, 19 May 2017 07:28:37 +0000 (UTC) From: Eugene Grosbein <eugen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r318518 - stable/11/sys/netinet/libalias Message-ID: <201705190728.v4J7Sb2Z082903@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: eugen (ports committer) Date: Fri May 19 07:28:36 2017 New Revision: 318518 URL: https://svnweb.freebsd.org/changeset/base/318518 Log: MFC r318150: Fix translation of transit PPtP/GRE connections for ipfw nat/natd "global" case. PR: 218968 Approved by: ae, vsevolod (mentor) Modified: stable/11/sys/netinet/libalias/alias.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/netinet/libalias/alias.c ============================================================================== --- stable/11/sys/netinet/libalias/alias.c Fri May 19 06:37:16 2017 (r318517) +++ stable/11/sys/netinet/libalias/alias.c Fri May 19 07:28:36 2017 (r318518) @@ -699,12 +699,14 @@ ProtoAliasOut(struct libalias *la, struc struct alias_link *lnk; LIBALIAS_LOCK_ASSERT(la); - (void)create; /* Return if proxy-only mode is enabled */ if (la->packetAliasMode & PKT_ALIAS_PROXY_ONLY) return (PKT_ALIAS_OK); + if (!create) + return (PKT_ALIAS_IGNORED); + lnk = FindProtoOut(la, *ip_src, ip_dst, ip_p); if (lnk != NULL) { struct in_addr alias_address;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705190728.v4J7Sb2Z082903>