From owner-freebsd-arch Thu Jun 22 15:27:33 2000 Delivered-To: freebsd-arch@freebsd.org Received: from critter.freebsd.dk (fw2.aub.dk [195.24.1.195]) by hub.freebsd.org (Postfix) with ESMTP id 22FFF37C2EB for ; Thu, 22 Jun 2000 15:27:26 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id AAA01596; Fri, 23 Jun 2000 00:26:47 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Brian Somers Cc: Archie Cobbs , tlambert@primenet.com (Terry Lambert), winter@jurai.net (Matthew N. Dodd), arch@FreeBSD.org, brian@hak.lan.awfulhak.org Subject: Re: Software detection of link integrity In-reply-to: Your message of "Thu, 22 Jun 2000 23:20:00 BST." <200006222220.XAA02751@hak.lan.Awfulhak.org> Date: Fri, 23 Jun 2000 00:26:47 +0200 Message-ID: <1594.961712807@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200006222220.XAA02751@hak.lan.Awfulhak.org>, Brian Somers writes: >> On the InterJet, if it's dynamic IP and there is no other IP address >> to use, we actually make one up! Once connected, we renumber the >> interface of course. > >How do you deal with the first connection problem - where that first >packet that causes the dial ends up with an incorrect src address ? > >ppp(8) does it when NAT is enabled by keeping the old interface >address as an alias and just NATing the first connection. If you want to get dirty, you can actually reach backwards and poke the actual IP# into the pcb (unless it's a ping packet). -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message