Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Oct 1998 19:32:51 -0700 (PDT)
From:      Brian Somers <brian@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   cvs commit: src/usr.sbin/ppp iface.c iface.h Makefile bundle.c bundle.h command.c filter.c ipcp.c ipcp.h main.c ppp.8 route.c tun.c
Message-ID:  <199810220232.TAA15195@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
brian       1998/10/21 19:32:51 PDT

  Modified files:
    usr.sbin/ppp         Makefile bundle.c bundle.h command.c 
                         filter.c ipcp.c ipcp.h main.c ppp.8 
                         route.c tun.c 
  Added files:
    usr.sbin/ppp         iface.c iface.h 
  Log:
  Solve the ``first connection'' problem that occurs on
  demand-dial links with dynamic IP numbers where the program
  that causes the dial bind()s to an interface address that is
  subsequently changed after ppp negotiation.
  
  The problem is defeated by adding negotiated addresses to the
  tun interface as additional alias addresses and providing a set
  of ``iface'' commands for managing the interface.  Libalias is
  also required (and what a name clash!) - it happily IP-aliases
  the address so that the source is that of the primary (negotiated)
  interface and un-IP-aliases it on the way back.
  
  An ``enable iface-alias'' is done implicitly by the -alias command
  line switch.  If -alias isn't given, iface-aliasing is disabled by
  default and can't be enabled 'till an ``alias enable yes'' is done.
  ``alias enable no'' silently disables iface-alias.
  
  So, for dynamic-IP-type-connections, running ``ppp -alias -auto blah''
  will work for the first connection, although existing bindings will
  not survive a disconnect/connect as the TCP peer will be trying to
  send to the old IP address - the packets won't route.
  
  It's now a lot easier to add IPXCP to ppp with minor updates to
  the new iface.[ch] (if anyone ever gets 'round to it).
  
  It's also now possible to manually add interface aliases with
  something like ``iface add 1.2.3.4/24 5.6.7.8''.  This allows
  multi-homed ppp links :-)
  
  Revision  Changes    Path
  1.50      +2 -2      src/usr.sbin/ppp/Makefile
  1.36      +41 -94    src/usr.sbin/ppp/bundle.c
  1.14      +8 -2      src/usr.sbin/ppp/bundle.h
  1.168     +199 -97   src/usr.sbin/ppp/command.c
  1.26      +9 -5      src/usr.sbin/ppp/filter.c
  1.67      +126 -143  src/usr.sbin/ppp/ipcp.c
  1.21      +1 -4      src/usr.sbin/ppp/ipcp.h
  1.144     +5 -2      src/usr.sbin/ppp/main.c
  1.127     +96 -31    src/usr.sbin/ppp/ppp.8
  1.54      +4 -3      src/usr.sbin/ppp/route.c
  1.10      +3 -2      src/usr.sbin/ppp/tun.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?199810220232.TAA15195>