diff options
author | pst <pst@FreeBSD.org> | 1996-01-23 01:35:04 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1996-01-23 01:35:04 +0000 |
commit | accc2aa38fbbf04568a6d3941e897dc34aee7930 (patch) | |
tree | 9d4d2f644df6a63fbb148e0952fdf7f3ae9aebf5 /libexec/bootpd/ToDo | |
parent | 6b42e1664561f04b1d3f497ecd5ccad48fd8c3b4 (diff) | |
download | FreeBSD-src-accc2aa38fbbf04568a6d3941e897dc34aee7930.zip FreeBSD-src-accc2aa38fbbf04568a6d3941e897dc34aee7930.tar.gz |
Import bootpd-2.4.3 from ftp.mc.com
Diffstat (limited to 'libexec/bootpd/ToDo')
-rw-r--r-- | libexec/bootpd/ToDo | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/libexec/bootpd/ToDo b/libexec/bootpd/ToDo new file mode 100644 index 0000000..261d24c --- /dev/null +++ b/libexec/bootpd/ToDo @@ -0,0 +1,61 @@ +ToDo: -*- text -*- + +---------------------------------------------------------------------- +Memory allocation locality: + +Currently mallocs memory in a very haphazard manner. As such, most of +the program ends up core-resident all the time just to follow all the +stupid pointers around. . . . + +---------------------------------------------------------------------- +Input parser: + +The reader implemented in readfile.c could use improvement. Some sort +of "data-driven" parser should be used so the big switch statements +would have only one case for each data type instead of one case for +every recognized option symbol. Then adding a new tag would involve +only adding a new element to the data table describing known symbols. +Hopefully, this would shrink the code a bit too. -gwr + +---------------------------------------------------------------------- +SLIP Initialization via BOOTP: + +In the function handle_request(), both in bootpd and bootpgw, +we might want to add code like the following just before testing +the client IP address field for zero. (bp->bp_ciaddr == 0) +(David suggests we leave this out for now. -gwr) + +#if 1 /* XXX - Experimental */ + /* + * SLIP initialization support. + * + * If this packet came from a SLIP driver that does + * automatic IP address initialization, then the socket + * will have the IP address and the packet will + * have zeros for both the IP and HW addresses. + * + * Thanks to David P. Maynard <dpm@depend.com> + * for explaining how this works. -gwr + */ + if ((bp->bp_ciaddr.s_addr == 0) && + (bp->bp_htype == 0)) + { + /* Pretend the client knows its address. It will soon. */ + bp->bp_ciaddr = recv_addr.sin_addr; + if (debug) + report(LOG_INFO, "fixed blank request from IP addr %s", + inet_ntoa(recv_addr.sin_addr)); + } +#endif + +---------------------------------------------------------------------- +DHCP Support: + +There is a set of patches from Jeanette Pauline Middelink +<middelin@calvin.polyware.iaf.nl> to add DHCP support. + +Those patches will be integrated into the BOOTP release stream +very soon, but if you can't wait, you can get them from: +nimbus.anu.edu.au:/pub/tridge/samba/contributed/DHCP.patch + +---------------------------------------------------------------------- |