diff options
author | Ermal <eri@pfsense.org> | 2011-04-06 10:42:21 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-04-06 10:42:21 +0000 |
commit | 5766add89187bf47c225f67697e37ca25b0dbc71 (patch) | |
tree | a12c202e01dbd593b2a4226eda9ec4abda86902b /sbin/dhclient-script | |
parent | 262595f0d5756ad4411e3e83023b24db1de8fdac (diff) | |
download | pfsense-5766add89187bf47c225f67697e37ca25b0dbc71.zip pfsense-5766add89187bf47c225f67697e37ca25b0dbc71.tar.gz |
If the supplied gateway is all ones(255.255.255.255) do not report it as a gateway since its useless.
Diffstat (limited to 'sbin/dhclient-script')
-rwxr-xr-x | sbin/dhclient-script | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/dhclient-script b/sbin/dhclient-script index e7fee7a..e51132e 100755 --- a/sbin/dhclient-script +++ b/sbin/dhclient-script @@ -192,7 +192,10 @@ add_new_routes() { if [ "$new_ip_address" = "$router" -o "$router" = "255.255.255.255" ]; then $ROUTE add default -iface $interface echo $ROUTE add default -iface $interface | $LOGGER - echo $router > /tmp/${interface}_router + # NOTE: Do not activate this for all ones address since pf(4) will try to forward packets to it. + if [ "$new_ip_address" = "$router" ]; then + echo $router > /tmp/${interface}_router + fi else $ROUTE add default $router echo $ROUTE add default $router | $LOGGER |