diff options
author | phk <phk@FreeBSD.org> | 2004-08-14 14:21:09 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-08-14 14:21:09 +0000 |
commit | 271672aa9c335d2a4944e53a99960718533d3f22 (patch) | |
tree | 45c8a11c3f1544f78b72c33ed296f57779ac0179 /sys/netinet | |
parent | 1659a5207b9353b648502fc1d7949a8d52db79f4 (diff) | |
download | FreeBSD-src-271672aa9c335d2a4944e53a99960718533d3f22.zip FreeBSD-src-271672aa9c335d2a4944e53a99960718533d3f22.tar.gz |
Fix outgoing ICMP on global instance.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/libalias/alias.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/libalias/alias.c b/sys/netinet/libalias/alias.c index a2c2911..3f52e57 100644 --- a/sys/netinet/libalias/alias.c +++ b/sys/netinet/libalias/alias.c @@ -259,7 +259,7 @@ static int IcmpAliasIn1(struct libalias *, struct ip *); static int IcmpAliasIn2(struct libalias *, struct ip *); static int IcmpAliasIn(struct libalias *, struct ip *); -static int IcmpAliasOut1(struct libalias *, struct ip *); +static int IcmpAliasOut1(struct libalias *, struct ip *, int create); static int IcmpAliasOut2(struct libalias *, struct ip *); static int IcmpAliasOut(struct libalias *, struct ip *, int create); @@ -452,7 +452,7 @@ IcmpAliasIn(struct libalias *la, struct ip *pip) static int -IcmpAliasOut1(struct libalias *la, struct ip *pip) +IcmpAliasOut1(struct libalias *la, struct ip *pip, int create) { /* Alias outgoing echo and timestamp requests. @@ -464,7 +464,7 @@ IcmpAliasOut1(struct libalias *la, struct ip *pip) ic = (struct icmp *)ip_next(pip); /* Save overwritten data for when echo packet returns */ - lnk = FindIcmpOut(la, pip->ip_src, pip->ip_dst, ic->icmp_id, 1); + lnk = FindIcmpOut(la, pip->ip_src, pip->ip_dst, ic->icmp_id, create); if (lnk != NULL) { u_short alias_id; int accumulate; @@ -614,7 +614,7 @@ IcmpAliasOut(struct libalias *la, struct ip *pip, int create) case ICMP_ECHO: case ICMP_TSTAMP: if (ic->icmp_code == 0) { - iresult = IcmpAliasOut1(la, pip); + iresult = IcmpAliasOut1(la, pip, create); } break; case ICMP_UNREACH: @@ -625,7 +625,7 @@ IcmpAliasOut(struct libalias *la, struct ip *pip, int create) break; case ICMP_ECHOREPLY: case ICMP_TSTAMPREPLY: - iresult = IcmpAliasOut1(la, pip); + iresult = IcmpAliasOut1(la, pip, create); } return (iresult); } |