Discussion:
[ipxe-devel] [ipxe/ipxe] Static routes support (#78)
Hazel Smith
2018-08-31 21:10:13 UTC
Permalink
You can view, comment on, or merge this pull request online at:

https://github.com/ipxe/ipxe/pull/78

-- Commit Summary --

* Initial working static route support, with hard coded example static routes for testing
* Tidy up static routing related comments so that they make more sense
* Only create default route if default gateway address is nonzero
* Change discard of non-local unicast packet debug messages to DBGC2 level
* Add support for requesting RFC 3442 Classless Static Route DHCPv4 option, plus settings definition for it.
* Initial code to insert routes based on RFC 3442 option 121 data.
* Fix bug where /32 route receives all-ones netmask instead of all-zeroes.
* Add debug prints to RFC 3442 (option 121) parsing code
* Use htonl(...) when generating subnet mask
* Ensure we always free(rfc3442_data) each time around the for_each_netdev loop
* Debug logging on invalid RFC 3442 data
* Add extra safety checks to RFC 3442/option 121 static routes code
* Revert change to debug level for non-local unicast packet discards
* Remove spurious 'static' keyword from rfc3442_data void pointer

-- File Changes --

M src/include/ipxe/dhcp.h (3)
M src/include/ipxe/ip.h (4)
M src/net/ipv4.c (167)
M src/net/udp/dhcp.c (3)
M src/usr/route_ipv4.c (3)

-- Patch Links --

https://github.com/ipxe/ipxe/pull/78.patch
https://github.com/ipxe/ipxe/pull/78.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/78
Geert Stappers
2018-08-31 21:55:33 UTC
Permalink
Abstract from https://tools.ietf.org/html/rfc3442
a new Dynamic Host Configuration Protocol (DHCP) option which is passed from the DHCP Server to the DHCP Client to configure a list of static routes in the client. The network destinations in these routes are classless - each routing table entr includes a subnet mask.
Further text from RFC3442
Classful routing is no longer in common use, so the DHCP Static Route option is no longer useful. Currently, classless routing is the most commonly-deployed form of routing on the Internet.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/78#issuecomment-417799105
Loading...