The NetBSD Project

CVS log for src/sys/nfs/nfs_bootdhcp.c

[BACK] Up to [] / src / sys / nfs

Request diff between arbitrary revisions

Default branch: MAIN
Current tag: MAIN

Revision 1.56 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:16 2016 UTC (5 years, 5 months ago) by ozaki-r
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, netbsd-9-base, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache, HEAD
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored)

Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.

Revision 1.55 / (download) - annotate - [select for diffs], Thu May 21 02:04:22 2015 UTC (6 years, 6 months ago) by rtr
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.54: +11 -15 lines
Diff to previous 1.54 (colored)

change nfs_boot_sendrecv to take sockaddr_in * instead of mbuf *

fixes m_serv (single mbuf leak) leak in kern/subr_tftproot.c

Revision 1.54 / (download) - annotate - [select for diffs], Sat May 9 18:12:19 2015 UTC (6 years, 7 months ago) by rtr
Branch: MAIN
Changes since 1.53: +4 -4 lines
Diff to previous 1.53 (colored)

when calling nfs_boot_sendrecv pass NULL for pointers instead of 0

Revision 1.53 / (download) - annotate - [select for diffs], Fri Mar 27 07:18:11 2015 UTC (6 years, 8 months ago) by hikaru
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.52: +6 -5 lines
Diff to previous 1.52 (colored)

m_pullup() is called in rcvproc callback functions,
so nfs_boot_sendrecv() should keep track of the head of mbuf chain.
fixes kern/48746

Revision 1.52 / (download) - annotate - [select for diffs], Mon Oct 4 23:48:22 2010 UTC (11 years, 2 months ago) by cyber
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-nhusb-base, netbsd-7-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, khorben-n900, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb, netbsd-7, netbsd-6
Changes since 1.51: +24 -3 lines
Diff to previous 1.51 (colored)

Add support to honor MTU settings from DHCP during netboot.

Defines IP_MIN_MTU as 576.

Glanced over quickly by martin@ and joerg@.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Jul 10 12:16:31 2009 UTC (12 years, 5 months ago) by roy
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.50: +33 -46 lines
Diff to previous 1.50 (colored)

Use a function to add extra data to the vendor area so that data added
remains constant for both DISCOVER and REQUEST messages.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jul 10 02:41:39 2009 UTC (12 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.49: +17 -5 lines
Diff to previous 1.49 (colored)

Protect against short IP addresses in the DHCP message.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Jul 10 01:29:54 2009 UTC (12 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.48: +53 -24 lines
Diff to previous 1.48 (colored)

When using DHCP, request the parameters that we need. Fixes PR kern/38830.
Thanks to Tim McIntosh.

Revision 1.48 / (download) - annotate - [select for diffs], Wed May 6 05:34:12 2009 UTC (12 years, 7 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, jym-xensuspend-base
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

correct previous: use %zu for BOOTP_SIZE_(MIN,MAX).
Pointed out by David Holland

Revision 1.47 / (download) - annotate - [select for diffs], Tue May 5 12:48:31 2009 UTC (12 years, 7 months ago) by cegger
Branch: MAIN
Changes since 1.46: +4 -4 lines
Diff to previous 1.46 (colored)

buildfix: use %d for BOOTP_SIZE_(MIN,MAX).
Makes i386 ALL kernel build again.

Revision 1.46 / (download) - annotate - [select for diffs], Sat May 2 21:06:51 2009 UTC (12 years, 7 months ago) by manu
Branch: MAIN
CVS Tags: yamt-nfs-mp-base3
Changes since 1.45: +10 -7 lines
Diff to previous 1.45 (colored)

- Silence warning when running with debug enabled
- Remind the administrator about the required DHCP option when some are
  missing, instead of silently failing, you stupid computer!

Revision 1.45 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:09 2008 UTC (13 years ago) by ad
Branch: MAIN
CVS Tags: nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: jym-xensuspend
Changes since 1.44: +4 -2 lines
Diff to previous 1.44 (colored)

Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime

Revision 1.44 / (download) - annotate - [select for diffs], Mon Oct 27 10:58:22 2008 UTC (13 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.43: +71 -43 lines
Diff to previous 1.43 (colored)

change nfs boot behaviour to automatically try next boot method if boot information are incomplete to succeed.
That way, it is possible combine static and dhcp boot:
  For example, to boot diskless you can specify the nfs-server and the rootpath statically. All other information will be taken via dhcp.

Patch has been presented on port-xen, tech-kern and tech-net:

No comments, no objections.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Oct 24 17:17:12 2008 UTC (13 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: matt-mips64-base2
Branch point for: nick-hppapmap
Changes since 1.42: +10 -19 lines
Diff to previous 1.42 (colored)

- ansify function definition
- de- __P
- u_int32_t -> uint32_t

No functional changes.

Revision 1.42 / (download) - annotate - [select for diffs], Wed Aug 6 15:01:24 2008 UTC (13 years, 4 months ago) by plunky
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, haad-dm-base1
Changes since 1.41: +12 -16 lines
Diff to previous 1.41 (colored)

Convert socket options code to use a sockopt structure
instead of laying everything into an mbuf.

approved by core

Revision 1.41 / (download) - annotate - [select for diffs], Sun Jul 20 02:06:37 2008 UTC (13 years, 4 months ago) by uwe
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.40: +4 -4 lines
Diff to previous 1.40 (colored)

When doing pointer arithmetic to compute limit cast bootp to pointer
type of correct signedness.  Caught by lint.

Revision 1.40 / (download) - annotate - [select for diffs], Fri May 9 06:20:39 2008 UTC (13 years, 7 months ago) by rumble
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, hpcarm-cleanup-nbase
Branch point for: simonb-wapbl, haad-dm
Changes since 1.39: +14 -7 lines
Diff to previous 1.39 (colored)

Fix compilation with DEBUG_NFS_BOOT_DHCP and ssp.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:10 2008 UTC (13 years, 7 months ago) by martin
Branch: MAIN
Branch point for: wrstuden-revivesa
Changes since 1.38: +2 -9 lines
Diff to previous 1.38 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.38 / (download) - annotate - [select for diffs], Thu Apr 24 11:38:39 2008 UTC (13 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

Merge the socket locking patch:

- Socket layer becomes MP safe.
- Unix protocols become MP safe.
- Allows protocol processing interrupts to safely block on locks.
- Fixes a number of race conditions.

With much feedback from matt@ and plunky@.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Dec 20 16:19:38 2007 UTC (13 years, 11 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)


Revision 1.36 / (download) - annotate - [select for diffs], Wed Aug 29 22:55:41 2007 UTC (14 years, 3 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, mjf-devfs, jmcneill-pm-base, jmcneill-base, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.35: +5 -5 lines
Diff to previous 1.35 (colored)

Constify: LLADDR() -> CLLADDR().

Revision 1.35 / (download) - annotate - [select for diffs], Tue May 8 09:29:50 2007 UTC (14 years, 7 months ago) by manu
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, nick-csl-alignment-base, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: nick-csl-alignment, matt-armv6, jmcneill-pm
Changes since 1.34: +2 -4 lines
Diff to previous 1.34 (colored)

Fix buid (broken by a fix introduced in the wrong file...)

Revision 1.34 / (download) - annotate - [select for diffs], Tue May 8 06:10:28 2007 UTC (14 years, 7 months ago) by manu
Branch: MAIN
Changes since 1.33: +17 -2 lines
Diff to previous 1.33 (colored)

Add the TFTPROOT kernel option for TFTP'ing root RAMdisk at root mount time.
This allows working around situations where a kernel with embedded RAMdisk
cannot be booted by the bootloader because the RAMdisk is too big.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:36 2007 UTC (14 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Nov 9 09:53:57 2006 UTC (15 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, netbsd-4
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

remove some __unused in function parameters.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:47 2006 UTC (15 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.30: +3 -6 lines
Diff to previous 1.30 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.30 / (download) - annotate - [select for diffs], Thu Mar 16 15:55:20 2006 UTC (15 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.29: +29 -19 lines
Diff to previous 1.29 (colored)

Don't use DEBUG, add a new DEBUG_NFS_BOOT_DHCP variable to provide more
information. Print more information about what fails.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:16 2005 UTC (16 years ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base2, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, elad-kernelauth
Changes since 1.28: +16 -16 lines
Diff to previous 1.28 (colored)

merge ktrace-lwp.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Feb 26 22:39:50 2005 UTC (16 years, 9 months ago) by perry
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

nuke trailing whitespace

Revision 1.27 / (download) - annotate - [select for diffs], Sat May 22 22:52:15 2004 UTC (17 years, 6 months ago) by jonathan
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.26: +6 -6 lines
Diff to previous 1.26 (colored)

Eliminate several uses of `curproc' from the socket-layer code and from NFS.

Add a new explicit `struct proc *p' argument to socreate(), sosend().
Use that argument instead of curproc. Follow-on changes to pass that
argument to socreate(), sosend(), and (*so->so_send)() calls.
These changes reviewed and independently recoded  by Matt Thomas.

Changes to soreceive() and (*dom->dom_exernalize() from Matt Thomas:
pass soreceive()'s struct uio* uio->uio_procp to unp_externalize().
Eliminate curproc from unp_externalize.   Also, now soreceive() uses
its uio->uio_procp value, pass that same value downward to
((pr->pru_usrreq)() calls for consistency, instead of (struct proc * )0.

Similar changes in sys/nfs to eliminate (most) uses of curproc,
either via the req-> r_procp field of a struct nfsreq *req argument,
or by passing down new explicit struct proc * arguments.

Reviewed by: Matt Thomas, posted to tech-kern.
NB: The (*pr->pru_usrreq)() change should be tested on more (all!) protocols.

Revision 1.26 / (download) - annotate - [select for diffs], Thu May 6 12:32:59 2004 UTC (17 years, 7 months ago) by drochner
Branch: MAIN
Changes since 1.25: +2 -8 lines
Diff to previous 1.25 (colored)

remove duplicated snprintf(vci, ...)

Revision 1.25 / (download) - annotate - [select for diffs], Wed Apr 21 18:40:41 2004 UTC (17 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.24: +6 -4 lines
Diff to previous 1.24 (colored)

kill sprintf, use snprintf

Revision 1.24 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:14 2003 UTC (18 years, 5 months ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Branch point for: ktrace-lwp
Changes since 1.23: +10 -10 lines
Diff to previous 1.23 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:17 2003 UTC (18 years, 5 months ago) by darrenr
Branch: MAIN
Changes since 1.22: +12 -12 lines
Diff to previous 1.22 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.22 / (download) - annotate - [select for diffs], Wed Feb 26 06:31:18 2003 UTC (18 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.21: +3 -3 lines
Diff to previous 1.21 (colored)

Add MBUFTRACE kernel option.
Do a little mbuf rework while here.  Change all uses of MGET*(*, M_WAIT, *)
to m_get*(M_WAIT, *).  These are not performance critical and making them
call m_get saves considerable space.  Add m_clget analogue of MCLGET and
make corresponding change for M_WAIT uses.
Modify netinet, gem, fxp, tulip, nfs to support MBUFTRACE.
Begin to change netstat to use sysctl.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Jun 10 17:45:54 2002 UTC (19 years, 6 months ago) by drochner
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, fvdl_fs64_base
Changes since 1.20: +22 -2 lines
Diff to previous 1.20 (colored)

increase IP TTL for BOOTP/DHCP request packets to avoid dumb
routers dropping the packet
(seems to be a problem with Cisco and its "helper-address" feature;
a Cabletron SSR I tested with didn't have this problem)

Revision 1.20 / (download) - annotate - [select for diffs], Sun May 12 12:52:58 2002 UTC (19 years, 7 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Branch point for: gehenna-devsw
Changes since 1.19: +4 -6 lines
Diff to previous 1.19 (colored)

In bootpcheck(), make sure we m_pullup() all the of bootp header that we
 actually examine.
While here, toss out home-grown ofs() macro and use offsetof().

Revision 1.19 / (download) - annotate - [select for diffs], Wed Mar 20 23:07:37 2002 UTC (19 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.18: +27 -7 lines
Diff to previous 1.18 (colored)

Add a NetBSD Vendor Class Identifier option as proposed on tech-net in
message <>.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Nov 10 10:59:09 2001 UTC (20 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, newlock-base, newlock, ifpoll-base
Changes since 1.17: +4 -1 lines
Diff to previous 1.17 (colored)

add RCSIDs

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jun 2 01:52:10 2001 UTC (20 years, 6 months ago) by kim
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, kqueue
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

It is misleading that the kernel outputs "DHCP server:" followed by
the value of "next-server" from the DHCP (or BOOTP) reply.  This is
not the DHCP server's IP address (except by chance), so instead of
"server" make it print "next-server".

Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 5 17:59:43 2000 UTC (21 years ago) by drochner
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.15: +4 -1 lines
Diff to previous 1.15 (colored)

add a kernel configuration option to set the string passed in bp_file
in diskless BOOTP/DHCP configuration - good for booting different
userland versions depending on the kernel version

Revision 1.15 / (download) - annotate - [select for diffs], Sun May 28 07:01:09 2000 UTC (21 years, 6 months ago) by gmcgarry
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5
Changes since 1.14: +6 -2 lines
Diff to previous 1.14 (colored)

Allow nfs root over token ring.  Closes PR6629.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Mar 29 03:43:34 2000 UTC (21 years, 8 months ago) by simonb
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (colored)

Don't need to include <sys/conf.h> here.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 20 08:34:52 2000 UTC (21 years, 10 months ago) by enami
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.12: +17 -2 lines
Diff to previous 1.12 (colored)

If server name field is overloaded for other purpose, or it just contains
NULL string, don't use it as server name.

Revision 1.12 / (download) - annotate - [select for diffs], Fri May 7 15:10:03 1999 UTC (22 years, 7 months ago) by drochner
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base
Branch point for: thorpej_scsipi
Changes since 1.11: +12 -12 lines
Diff to previous 1.11 (colored)

print diskless boot related IP addresses in dot notation

Revision 1.11 / (download) - annotate - [select for diffs], Sun Feb 21 15:07:49 1999 UTC (22 years, 9 months ago) by drochner
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.10: +27 -59 lines
Diff to previous 1.10 (colored)

restructure the diskless NFS boot code to keep track of the used
interface and the address allocated, to roll everything back if the
mount fails:
-put an interface pointer into "struct nfs_diskless" to have it
 available for cleanup, don't pass it around anymore where the
 "struct nfs_diskless" is already passed
-add a "cleanup" function which shuts the interface down
-in the protocol-specific parts, either return with "everything
 ready" or "completely shut down"
-use common functions for interface initialization and shutdown
-add a function to delete all routes associate to an interface
 (why is this necessary and not done by ~IFF_UP?)
g/c diskless swap stuff
general cleanup

Revision 1.10 / (download) - annotate - [select for diffs], Fri Feb 12 01:38:38 1999 UTC (22 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.9: +5 -5 lines
Diff to previous 1.9 (colored)

Fix printf format problems on Alpha.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Sep 13 13:49:29 1998 UTC (23 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Fix copyright spacing.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Aug 9 21:19:50 1998 UTC (23 years, 4 months ago) by perry
Branch: MAIN
Changes since 1.7: +17 -17 lines
Diff to previous 1.7 (colored)

bzero->memset, bcopy->memcpy, bcmp->memcmp

Revision 1.7 / (download) - annotate - [select for diffs], Fri Apr 24 18:38:30 1998 UTC (23 years, 7 months ago) by drochner
Branch: MAIN
CVS Tags: eeh-paddr_t-base, eeh-paddr_t
Changes since 1.6: +52 -23 lines
Diff to previous 1.6 (colored)

-catch zero and broadcast IP addresses sent by a DHCP server
-warn about them (and other invalid replies)
-print address of BOOTP/DHCP server for better problem tracking

Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 1 07:15:40 1998 UTC (23 years, 9 months ago) by ross
Branch: MAIN
Changes since 1.5: +5 -2 lines
Diff to previous 1.5 (colored)

Sweep up some miscellaneous leftover lite2 integration shrapnel.

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jan 12 21:27:14 1998 UTC (23 years, 11 months ago) by scottr
Branch: MAIN
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Consolidate NFS_BOOT_* options into opt_nfs_boot.h

Revision 1.4 / (download) - annotate - [select for diffs], Sun Jan 11 05:55:41 1998 UTC (23 years, 11 months ago) by scottr
Branch: MAIN
Changes since 1.3: +3 -1 lines
Diff to previous 1.3 (colored)

Make NFS_BOOT_DHCP work as expected.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jan 9 15:13:44 1998 UTC (23 years, 11 months ago) by drochner
Branch: MAIN
Changes since 1.2: +13 -2 lines
Diff to previous 1.2 (colored)

Use interface type to select "hardware type" in bootp header.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Sep 30 20:51:03 1997 UTC (24 years, 2 months ago) by drochner
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH001, netbsd-1-3-BETA, marc-pcmcia-base
Branch point for: netbsd-1-3
Changes since 1.1: +327 -242 lines
Diff to previous 1.1 (colored)

Make this file deserve its name: add DHCP support, conditionalized
Don't increment xid between retries anymore, it is not required and
it increases the response time in case of a slow server.
Use common code with bootparam boot.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 29 16:10:31 1997 UTC (24 years, 3 months ago) by gwr
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal
Branch point for: marc-pcmcia

Add support for nfs_mountroot using BOOTP based on the contributions
of Tor Egge (closes PR kern/2351).

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>