On Thu, 29 Mar 2001, Tom Rauschenbach wrote:
> I don't think it makes sense to talk about ppp over DHCP. What I want to
> do is see the negoatiation between my ISP and my machine that assigns my
> machine its IP address. Since this happens before interface ppp0 is up,
> my packet sniffer can't see it. This may require either a kenel hack or
> invasive hardware.
Um, I think you have the wrong idea. A packet sniffer listens on the layer
two network interface (e.g., your Ethernet driver). PPP does not really have
such a thing; the "ppp?" interface springs into existence *after* the PPP link
is setup, in order to give the IP layer something to work with. So there is
nothing for a sniffer to sniff.
As I said before, what you want to do is turn on the "debug" option in pppd.
To quote the man page, when pppd debugging is turned on, "pppd will log the
contents of all control packets sent or received in a readable form".
The only way to do for PPP what a packet sniffer does for Ethernet would be
to intercept communications between pppd and the modem it is talking to. You
could modify the kernel serial driver, setup a pseudo-tty capture, or -- if
you have an external modem -- use an RS-232 serial debugger. Any of which
would be overkill for what you're trying to do. :-)
--
Ben Scott <[EMAIL PROTECTED]>
| The opinions expressed in this message are those of the author and do not |
| necessarily represent the views or policy of any other person, entity or |
| organization. All information is provided without warranty of any kind. |
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************