A light-weight DHCP Relay Agent.
Why not the ISC DHCP Relay Agent?
- If your RA has multiple interfaces, you get multiple requests for
each request:
DHCPREQUEST for 10.199.14.216 from 00:10:dc:d1:e6:39 (foo) via 10.199.14.1
DHCPACK on 10.199.14.216 to 00:10:dc:d1:e6:39 (foo) via 10.199.14.1
DHCPREQUEST for 10.199.14.216 from 00:10:dc:d1:e6:39 (foo) via 10.10.3.5: wrong network.
DHCPNAK on 10.199.14.216 to 00:10:dc:d1:e6:39 via 10.10.3.5
This RA sends only one request, coming with the IP address of the
LAN the request came from.
- If your RA has multiple interfaces, the outgoing interfaces to
the WAN needs to be active in the DHCP relay otherwise answers
are not picked up.
This RA uses a unicast socket for returning answers.
- If your RA has non-ethernet interfaces (GIF-tunnels for example,
which VPN back to the central network), the answers are not picked
up by the RA.
WWW: http://www.mavetju.org/networking/
Fix runtime error: Packet type identification on big-endian
machines which prevented it from working correctly on e.g.
MIPS-based routers.
PR: 201382
Submitted by: kp@freebsd.org
Approved by: edwin@mavetju.org (maintainer)
MFH: 2015Q3
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().
In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
The vast majority of pkg-descr files had the following format when they
had both lines:
Author: ...
WWW: ....
So standardize on that, and move them to the end of the file when necessary.
Also fix some more whitespace, and remove more "signature tags" of varying
forms, like -- name, etc.
s/AUTHOR/Author/
A few other various formatting issues
Remove more tags from pkg-descr files fo the form:
- Name
em@i.l
or variations thereof. While I'm here also fix some whitespace and other
formatting errors, including moving WWW: to the last line in the file.
Remove painful examples of foo="", with particular prejudice against
constructions that parse out to [ -z "$foo" ] && foo=""
These are bad examples that get copied and pasted into new code, so the
hope is that with less bad examples there will be less need for me to
bring this up in review.
In a few of these files all that were changed were comments so that next
time I search for these patterns I won't trip on the file for no reason.
In a few places, add $FreeBSD$
No functional changes, so no PORTREVISION bumps
Tune up the rc.d script a bit:
1. Change default variable assignments at the top to comments (two of
them were assigning empty default values).
2. Move the default for _enable to below load_rc_config
3. Add the _ifaces and _server options to command_args which eliminates
the need for the precmd
4. s#/usr/local#%%PREFIX%%#
Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.
We have not checked for this KEYWORD for a long time now, so this
is a complete noop, and thus no PORTREVISION bump. Removing it at
this point is mostly for pedantic reasons, and partly to avoid
perpetuating this anachronism by copy and paste to future scripts.
Add net/dhcprelay, a DHCP Relay Agent.
See the pkg-descr for reasoning why I had to make this one.
WWW: http://www.mavetju.org/networking/
Author: Edwin Groothuis <edwin@mavetju.org>