[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <18104.18914.642724.933374@gargle.gargle.HOWL>
Date: Tue, 7 Aug 2007 06:30:58 -0400
From: James Carlson <carlsonj@...kingcode.com>
To: Matt Keenan <tank.en.mate@...il.com>
Cc: Kevin K <k_krieser@...global.net>, linux-ppp@...r.kernel.org,
Linux-kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: sending raw packets via PPP
Matt Keenan writes:
> Kevin K wrote:
> > I'll give it a try to see whether packets sent to 255.255.255.255 can
> > make it to ppp with the IP address unchanged.
You should be able to make DHCP work by sending ordinary unicast UDP
packets to the peer. There shouldn't be any need to hack around with
special broadcast addresses.
Use AF_INET, SOCK_DGRAM, and send away.
> You shouldn't need to run DHCP over PPP, PPP uses LCP to configure
> connections. I suspect the only time you would need to run DHCP over a
> PPP link is if you had a DHCP proxy run the request over the PPP link,
> but that sounds way more complicated than what you are looking for.
I don't think that DHCP over PPP is a bad idea at all, particularly so
with DHCPINFORM messages, which are stateless and don't involve any
sort of address assignment.
PPP is not designed to provide arbitrary client application layer
configuration. The RFC 1877 nonsense is a Microsoft proprietary thing
that doesn't actually work very well -- see my book for a more
substantial list of its flaws.
In contrast, DHCP works everywhere, includes *far* more configuration
information (such as boot servers, print servers, SIP addresses,
domain names, and the like), and is easier to manage than cramming
things into PPP.
> Have
> a quick look at
> http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/ppp.htm that
> should bring you up to speed on how PPP works. You will probably find
> that LCP does everything you need. If you really need some of the
> functionality of DHCP (such as setting up WINS servers et al) you might
> find that you need to hack a way to do this.
The existing pppd already supports the MS proprietary hacks for DNS
and WINS server addresses. Since that's a dead end, you'll need DHCP
if you want to go further.
--
James Carlson 42.703N 71.076W <carlsonj@...kingcode.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists