summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreugen <eugen@FreeBSD.org>2017-05-19 07:28:36 +0000
committereugen <eugen@FreeBSD.org>2017-05-19 07:28:36 +0000
commitb37f72ba9c77ee939fc03352de4f6001d6155132 (patch)
tree8b4945807703612c11a5bd84044fb4023b3e7835
parent0b6e2182ca21c717adaf91232f88a094925df98e (diff)
downloadFreeBSD-src-b37f72ba9c77ee939fc03352de4f6001d6155132.zip
FreeBSD-src-b37f72ba9c77ee939fc03352de4f6001d6155132.tar.gz
MFC r318150:
Fix translation of transit PPtP/GRE connections for ipfw nat/natd "global" case. PR: 218968 Approved by: ae, vsevolod (mentor)
-rw-r--r--sys/netinet/libalias/alias.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/libalias/alias.c b/sys/netinet/libalias/alias.c
index bd36604..dc46d4d 100644
--- a/sys/netinet/libalias/alias.c
+++ b/sys/netinet/libalias/alias.c
@@ -699,12 +699,14 @@ ProtoAliasOut(struct libalias *la, struct in_addr *ip_src,
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;
OpenPOWER on IntegriCloud