diff options
author | jkh <jkh@FreeBSD.org> | 1999-02-27 22:37:38 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1999-02-27 22:37:38 +0000 |
commit | 1c94975d98b0e0e6321db0b8d1a543da215806b9 (patch) | |
tree | 73cec30def95885a7738426b9297c3d57a9c91d7 /usr.sbin/natd | |
parent | f5db03383315cdcf83ce94219ebfed415967d651 (diff) | |
download | FreeBSD-src-1c94975d98b0e0e6321db0b8d1a543da215806b9.zip FreeBSD-src-1c94975d98b0e0e6321db0b8d1a543da215806b9.tar.gz |
Make this work with the new alias library since, evidently, we're
not providing the backwards-compatability routines in libalias anymore
(which I think may have been a mistake).
Diffstat (limited to 'usr.sbin/natd')
-rw-r--r-- | usr.sbin/natd/natd.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/natd/natd.c b/usr.sbin/natd/natd.c index 3646a33..7b9ac6f 100644 --- a/usr.sbin/natd/natd.c +++ b/usr.sbin/natd/natd.c @@ -9,7 +9,7 @@ * * Ari Suutari <suutari@iki.fi> * - * $Id$ + * $Id: natd.c,v 1.8 1997/12/27 19:31:11 alex Exp $ */ #include <sys/types.h> @@ -699,7 +699,7 @@ static void SetAliasAddressFromIfName (char* ifName) Quit ("Cannot get interface address."); addr = (struct sockaddr_in*) &req.ifr_addr; - SetPacketAliasAddress (addr->sin_addr); + PacketAliasSetAddress (addr->sin_addr); syslog (LOG_INFO, "Aliasing to %s, mtu %d bytes", inet_ntoa (addr->sin_addr), ifMTU); @@ -1160,6 +1160,7 @@ void SetupPermanentLink (char* parms) char* ptr; struct in_addr srcAddr; struct in_addr dstAddr; + struct in_addr null_address; u_short srcPort; u_short dstPort; u_short aliasPort; @@ -1200,11 +1201,12 @@ void SetupPermanentLink (char* parms) aliasPort = StrToPort (ptr, protoName); - PacketAliasPermanentLink (srcAddr, + null_address.s_addr = 0; + PacketAliasRedirectPort (srcAddr, srcPort, dstAddr, dstPort, - aliasPort, + null_address, aliasPort, proto); } |