From: James Carlson <carlsonj@workingcode.com>
To: Matt Keenan <tank.en.mate@gmail.com>
Cc: Kevin K <k_krieser@sbcglobal.net>,
linux-ppp@vger.kernel.org,
Linux-kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: sending raw packets via PPP
Date: Tue, 7 Aug 2007 06:30:58 -0400 [thread overview]
Message-ID: <18104.18914.642724.933374@gargle.gargle.HOWL> (raw)
In-Reply-To: Matt Keenan's message of 7 August 2007 09:46:51
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@workingcode.com>
next prev parent reply other threads:[~2007-08-07 10:31 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-06 22:45 Kevin K
2007-08-06 23:30 ` James Carlson
2007-08-07 0:24 ` Kevin K
2007-08-07 0:32 ` Christopher Fowler
2007-08-07 10:33 ` James Carlson
2007-08-07 8:46 ` Matt Keenan
2007-08-07 10:30 ` James Carlson [this message]
2007-08-07 16:53 ` Kevin K
2007-08-19 23:46 ` Kevin K
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=18104.18914.642724.933374@gargle.gargle.HOWL \
--to=carlsonj@workingcode.com \
--cc=k_krieser@sbcglobal.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-ppp@vger.kernel.org \
--cc=tank.en.mate@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®