Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Apr 2000 07:27:34 -0700 (PDT)
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libalias alias.c
Message-ID:  <200004051427.HAA17511@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
ru          2000/04/05 07:27:34 PDT

  Modified files:
    lib/libalias         alias.c 
  Log:
  - Remove unused includes.
  - Minor spelling fixes.
  - Make IcmpAliasOut2() really work.
  
  Before this change:
  
  # natd -v -n PUB_IFACE -p 12345 -redirect_address 192.168.1.1 P.P.P.P
  natd[87923]: Aliasing to A.A.A.A, mtu 1500 bytes
  In  [UDP]  [UDP] X.X.X.X:49562 -> P.P.P.P:50000 aliased to
             [UDP] X.X.X.X:49562 -> 192.168.1.1:50000
  Out [ICMP] [ICMP] 192.168.1.1 -> X.X.X.X 3(3) aliased to
             [ICMP] A.A.A.A -> X.X.X.X 3(3)
  
  # tcpdump -n -t -i PUB_IFACE host X.X.X.X and "(udp or icmp)"
  tcpdump: listening on PUB_IFACE
  X.X.X.X.49562 > P.P.P.P.50000: udp 3
  A.A.A.A > X.X.X.X: icmp: A.A.A.A udp port 50000 unreachable
  
  After this change:
  
  # natd -v -n PUB_IFACE -p 12345 -redirect_address 192.168.1.1 P.P.P.P
  natd[89360]: Aliasing to A.A.A.A, mtu 1500 bytes
  In  [UDP]  [UDP] X.X.X.X:49563 -> P.P.P.P:50000 aliased to
             [UDP] X.X.X.X:49563 -> 192.168.1.1:50000
  Out [ICMP] [ICMP] 192.168.1.1 -> X.X.X.X 3(3) aliased to
             [ICMP] P.P.P.P -> X.X.X.X 3(3)
  
  # tcpdump -n -t -i PUB_IFACE host X.X.X.X and "(udp or icmp)"
  tcpdump: listening on PUB_IFACE
  X.X.X.X.49563 > P.P.P.P.50000: udp 3
  P.P.P.P > X.X.X.X: icmp: P.P.P.P udp port 50000 unreachable
  
  Revision  Changes    Path
  1.17      +97 -25    src/lib/libalias/alias.c



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004051427.HAA17511>