003 File Manager
Current Path:
/usr/src/libexec/bootpd
usr
/
src
/
libexec
/
bootpd
/
📁
..
📄
Announce
(2.36 KB)
📄
Changes
(9.82 KB)
📄
ConvOldTab.sh
(3.69 KB)
📄
Installation
(742 B)
📄
Makefile
(322 B)
📄
Makefile.UNIX
(5.33 KB)
📄
Makefile.depend
(289 B)
📄
Makefile.inc
(52 B)
📄
Problems
(2.59 KB)
📄
README
(5.18 KB)
📄
ToDo
(2.18 KB)
📄
bootp.h
(5.05 KB)
📄
bootpd.8
(7.63 KB)
📄
bootpd.c
(33.69 KB)
📄
bootpd.h
(5.2 KB)
📁
bootpgw
📄
bootptab.5
(10.33 KB)
📄
bootptab.cmu
(4.14 KB)
📄
bootptab.mcs
(2.49 KB)
📄
bptypes.h
(303 B)
📄
dovend.c
(9.87 KB)
📄
dovend.h
(213 B)
📄
dumptab.c
(8.79 KB)
📄
getether.c
(9.06 KB)
📄
getether.h
(82 B)
📄
getif.c
(3.04 KB)
📄
getif.h
(82 B)
📄
hash.c
(9.95 KB)
📄
hash.h
(4.72 KB)
📄
hwaddr.c
(8.8 KB)
📄
hwaddr.h
(900 B)
📄
lookup.c
(2.28 KB)
📄
lookup.h
(243 B)
📄
patchlevel.h
(86 B)
📄
readfile.c
(46.45 KB)
📄
readfile.h
(288 B)
📄
report.c
(2.47 KB)
📄
report.h
(168 B)
📄
rtmsg.c
(6.17 KB)
📄
syslog.conf
(2.08 KB)
📁
tools
📄
trygetea.c
(940 B)
📄
trygetif.c
(1.34 KB)
📄
trylook.c
(817 B)
📄
tzone.c
(951 B)
📄
tzone.h
(66 B)
Editing: ToDo
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 ----------------------------------------------------------------------
Upload File
Create Folder