summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient/bootp_subr.c
Commit message (Collapse)AuthorAgeFilesLines
* Enable use of DHCP extensions.tegge2001-02-021-33/+240
| | | | Reviewed by: Per Kristian Hove <Per.Hove@math.ntnu.no>
* * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT.bmilekic2000-12-211-1/+1
| | | | | | | | | | | | | | | | | | This is because calls with M_WAIT (now M_TRYWAIT) may not wait forever when nothing is available for allocation, and may end up returning NULL. Hopefully we now communicate more of the right thing to developers and make it very clear that it's necessary to check whether calls with M_(TRY)WAIT also resulted in a failed allocation. M_TRYWAIT basically means "try harder, block if necessary, but don't necessarily wait forever." The time spent blocking is tunable with the kern.ipc.mbuf_wait sysctl. M_WAIT is now deprecated but still defined for the next little while. * Fix a typo in a comment in mbuf.h * Fix some code that was actually passing the mbuf subsystem's M_WAIT to malloc(). Made it pass M_WAITOK instead. If we were ever to redefine the value of the M_WAIT flag, this could have became a big problem.
* Remove unneeded #include <sys/proc.h> lines.phk2000-10-291-1/+0
|
* Reduce kernel stack usage by not having large packets on the stack.tegge2000-10-291-516/+1024
| | | | | | Supply correct size parameter to dhcpd. Replace some magic numbers with macro names. Handle more than one interface.
* Eliminate some bitrot (nonexisting member variable names).tegge2000-10-241-5/+5
| | | | Don't use curproc when a proc pointer is available.
* Style fixes.tegge2000-10-241-783/+842
|
* Correctly set the Maximum DHCP Message Size. bootpd now worksps2000-06-131-1/+1
| | | | again as well as ISC dhcpd.
* Include a RFC 1533 "Maximum DHCP Message Size" option in our request.phk2000-05-071-5/+17
| | | | | | ISC DHCP will limit the reply length to 64 bytes for bootp replies unless we explicitly tell it we can do more. We tell it that we can do 1200 bytes.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-271-3/+3
| | | | | | | kernel compile. This commit includes significant work to proper handle const arguments for the DDB symbol routines.
* The "easy" fixes for compiling the kernel -Wunused: remove unreferenced staticarchie1998-12-071-5/+2
| | | | and local variables, goto labels, and functions declared but not defined.
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-041-3/+4
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* Make bootp error message slightly more verbosedillon1998-12-031-2/+2
|
* Yow! Completely change the way socket options are handled, eliminatingwollman1998-08-231-27/+19
| | | | | | another specialized mbuf type in the process. Also clean up some of the cruft surrounding IPFW, multicast routing, RSVP, and other ill-explored corners.
* Fixed printf format errors.bde1998-08-181-3/+3
|
* Eradicate the variable "time" from the kernel, using various measures.phk1998-03-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "time" wasn't a atomic variable, so splfoo() protection were needed around any access to it, unless you just wanted the seconds part. Most uses of time.tv_sec now uses the new variable time_second instead. gettime() changed to getmicrotime(0. Remove a couple of unneeded splfoo() protections, the new getmicrotime() is atomic, (until Bruce sets a breakpoint in it). A couple of places needed random data, so use read_random() instead of mucking about with time which isn't random. Add a new nfs_curusec() function. Mark a couple of bogosities involving the now disappeard time variable. Update ffs_update() to avoid the weird "== &time" checks, by fixing the one remaining call that passwd &time as args. Change profiling in ncr.c to use ticks instead of time. Resolution is the same. Add new function "tvtohz()" to avoid the bogus "splfoo(), add time, call hzto() which subtracts time" sequences. Reviewed by: bde
* Moved some #includes from <sys/param.h> nearer to where they are actuallybde1998-03-281-1/+2
| | | | used.
* Add a BOOTP_WIRED_TO option, for use on machines with multiple networktegge1998-03-141-3/+14
| | | | | cards where the first detected card should not be used for bootp. Submitted by: Doug Ambrisko <ambrisko@whistle.com>
* Update workaround for limitations in the arp code.tegge1998-03-141-4/+4
| | | | | Adjust the RPC timeout message which occured when the old workaround broke to show the correct IP address.
* Staticize.eivind1998-02-091-9/+10
|
* Increase the minimum bootp reply packet size from 16 (bogus) to 300 (correct).tegge1998-01-181-4/+4
|
* Make the BOOTP family new-style options (in opt_bootp.h)eivind1998-01-091-1/+3
|
* Removed unused #includes.bde1997-10-281-4/+1
|
* Fix all areas of the system (or at least all those in LINT) to avoid storingwollman1997-08-161-23/+13
| | | | | | | | socket addresses in mbufs. (Socket buffers are the one exception.) A number of kernel APIs needed to get fixed in order to make this happen. Also, fix three protocol families which kept PCBs in mbufs to not malloc them instead. Delete some old compatibility cruft while we're at it, and add some new routines in the in_cksum family.
* Move commonly used code into static functions in order to reduce kernel bloat.tegge1997-06-121-139/+93
|
* Use same syntax as netboot for root and swap mounts.tegge1997-05-141-163/+155
| | | | | Handle mount options. Ignore T16 (swap server address) and T6 (DNS server).
* Bring in some kernel bootp support. This removes the need for netboottegge1997-05-111-0/+1319
to fill in the nfs_diskless structure, at the cost of some kernel bloat. The advantage is that this code works on a wider range of network adapters than netboot. Several new kernel options are documented in LINT. Obtained from: parts of the code comes from NetBSD.
OpenPOWER on IntegriCloud