summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Properly calculate the initial number of fragments in a large filesystem.mckusick2002-11-151-1/+2
| | | | Sponsored by: DARPA & NAI Labs.
* headers should not really include "opt_foo.h" (in this case opt_posix.h).alfred2002-11-156-4/+8
| | | | remove it from the header and add it to the files that require it.
* Massive cleanup of the ip_mroute code.luigi2002-11-158-888/+596
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | No functional changes, but: + the mrouting module now should behave the same as the compiled-in version (it did not before, some of the rsvp code was not loaded properly); + netinet/ip_mroute.c is now truly optional; + removed some redundant/unused code; + changed many instances of '0' to NULL and INADDR_ANY as appropriate; + removed several static variables to make the code more SMP-friendly; + fixed some minor bugs in the mrouting code (mostly, incorrect return values from functions). This commit is also a prerequisite to the addition of support for PIM, which i would like to put in before DP2 (it does not change any of the existing APIs, anyways). Note, in the process we found out that some device drivers fail to properly handle changes in IFF_ALLMULTI, leading to interesting behaviour when a multicast router is started. This bug is not corrected by this commit, and will be fixed with a separate commit. Detailed changes: -------------------- netinet/ip_mroute.c all the above. conf/files make ip_mroute.c optional net/route.c fix mrt_ioctl hook netinet/ip_input.c fix ip_mforward hook, move rsvp_input() here together with other rsvp code, and a couple of indentation fixes. netinet/ip_output.c fix ip_mforward and ip_mcast_src hooks netinet/ip_var.h rsvp function hooks netinet/raw_ip.c hooks for mrouting and rsvp functions, plus interface cleanup. netinet/ip_mroute.h remove an unused and optional field from a struct Most of the code is from Pavlin Radoslavov and the XORP project Reviewed by: sam MFC after: 1 week
* A little bit of anti-foot-shooting. Use utimes(2) rather thanpeter2002-11-151-8/+11
| | | | | | | | | the deprecated utime(3). utimes(2) uses timeval, but utime(3) uses time_t's. If you do bad things (like I did) by mixing up include files with libc, then install can do strange things if you mismatch the time_t stuff. utime() is emulated entirely within libc. Approved by: re (jhb)
* utmp.ut_time and lastlog.ll_time are explicitly int32_t rather thanpeter2002-11-154-9/+13
| | | | | | | | | | | | time_t. Deal with the possibility that time_t != int32_t. This boils down to this sort of thing: - time(&ut.ut_time); + ut.ut_time = time(NULL); and similar for ctime(3) etc. I've kept it minimal for the stuff that may need to be portable (or 3rd party code), but used Matt's time32 stuff for cases where that isn't as much of a concern. Approved by: re (jhb)
* Do not assume that time_t is an int.peter2002-11-152-3/+3
| | | | Approved by: re (jhb)
* Test the water. Make time_t long (64 bit) on ia64 since we do not havepeter2002-11-151-1/+1
| | | | | | | | | to worry about ABI vs released systems yet. This is mostly transparent since there is no significant exposure in the syscall interface. The things that go wrong are mostly userland stuff - time(&intvariable). Reviewed by: dfr, marcel Approved by: re (jhb)
* Rework the checking out of the doc, src, and ports trees a bit to make itjhb2002-11-151-19/+31
| | | | | | | | | | | | | | | | | | | | | | more manageable. - Add some helper variables (CVS_{SRC,DOC,PORTS}ARGS) to be used when using CVS to checkout files. We stick release tags in these helper variables if they are defined and then use only one cvs command instead of two cvs commands with an .ifdef to choose between them. - rm the old src/doc/ports directories as separate commands from the CVS comands so that the rm commands don't need to be duplicated. - Simplify the DOMINIMALDOCPORTS case by overriding RELEASEPORTSMODULE to be ${MINIMALDOCPORTS} thus removing yet another nearly-duplicate cvs command in an .ifdef. - Add support for grabbing src/ and doc/ from external directories specified via EXTSRCDIR and EXTDOCDIR instead of from CVS. The same is not done for ports/ quite yet as the DOMINIMALDOCPORTS case is a bit tricky. The rerelease target scripts have not been changed to use the helper variables yet, so there is still some room for improvement. Submitted by: kuriyama (4)
* Document NOCDROM and NO_FLOPPIES.jhb2002-11-151-0/+4
|
* Allow a person to specify NOCDROM to skip the cdrom.1 target during ajhb2002-11-151-2/+5
| | | | | | | release build. PR: 45300 Submitted by: David Yeske <dyeske@yahoo.com>
* Explicitly add lang/perl5 to the disc1 packages. Practically speaking,bmah2002-11-151-0/+1
| | | | | this is unnecessary, because some other port is likely to depend on it anyways. But just to be safe...
* Backout rev. 1.263.ru2002-11-151-2/+0
| | | | Approved by: jmallett
* Back out rev 1.150; things are more complicated than this.sam2002-11-151-1/+1
|
* if_attach should not sleep; change malloc's M_WAITOK to M_NOWAITsam2002-11-151-1/+1
|
* Update sparc64 installation instructions. Because sysinstall nowbmah2002-11-152-14/+83
| | | | | | | | | | | | works on sparc64, this document can now use (almost) the same procedures as i386, et al. CDROM booting instructions are cut-and-pasted from the older sparc64/install.sgml file, which is now unlinked from the document build. This document is a long ways from perfect, but it's better than shipping instructions for an installation procedure that doesn't apply anymore. While here, add some SGML comments to help others navigate the sources.
* Catch up with sam's changes to network interfaces.mux2002-11-151-2/+1
|
* Fixed style(9)nyan2002-11-1514-410/+485
|
* Fix to build for pc98.nyan2002-11-152-2/+2
|
* Fixed two typos in comments.ru2002-11-151-2/+2
|
* Return EWOULDBLOCK for last thread in kse_release().davidxu2002-11-152-0/+2
| | | | Requested by: archie
* When about to do an execve(), don't reset the O_NONBLOCK flag on any filearchie2002-11-151-0/+4
| | | | | | | | | descriptors that have the close-on-exec flag set, as that will have no effect anyway and might screw something else up if the file descriptor happens to be shared with another process. PR: standards/43335 MFC after: 1 week
* update vlandev description; vlan code now auto-recognizes devices thatsam2002-11-151-6/+4
| | | | support h/w tagging
* document auto-recognition of device capabilitiessam2002-11-151-19/+8
|
* o display new interface capability bitssam2002-11-151-1/+1
| | | | | | o capitilize capability bit strings for consistency Approved by: re
* network interface and link layer changes:sam2002-11-1523-161/+102
| | | | | | | | | | | | o on input don't strip the Ethernet header from packets o input packet handling is now done with if_input o track changes to ether_ifattach/ether_ifdetach API o track changes to bpf tapping o call ether_ioctl for default handling of ioctl's o use constants from net/ethernet.h where possible Reviewed by: many Approved by: re
* track changes to ethernet input handling to no longer strip the Ethernet headersam2002-11-141-48/+55
| | | | | Reviewed by: many Approved by: re
* network interface driver changes:sam2002-11-1460-694/+352
| | | | | | | | | | | | | | o don't strip the Ethernet header from inbound packets; pass packets up the stack intact (required significant changes to some drivers) o reference common definitions in net/ethernet.h (e.g. ETHER_ALIGN) o track ether_ifattach/ether_ifdetach API changes o track bpf changes (use BPF_TAP and BPF_MTAP) o track vlan changes (ifnet capabilities, revised processing scheme, etc.) o use if_input to pass packets "up" o call ether_ioctl for default handling of ioctls Reviewed by: many Approved by: re
* o track either_ifattach/ether_ifdetach API changessam2002-11-1419-324/+134
| | | | | | | | | | | o use if_input for input packet processing o don't strip the Ethernet header for input packets o use BPF_* macros bpf tapping o call ether_ioctl to handle default ioctl case o track vlan changes Reviewed by: many Approved by: re
* track changes to not strip the Ethernet header from input packetssam2002-11-141-8/+5
| | | | | Reviewed by: many Approved by: re
* track bpf changessam2002-11-141-2/+2
| | | | | Reviewed by: many Approved by: re
* o track changes to ethernet input packet handlingsam2002-11-143-96/+22
| | | | | | | | o track changes to bpf o track changes to make ng hooks more private Reviewed by: many Approved by: re
* o eliminate separate callback interface for h/w tagged input packets; insteadsam2002-11-142-164/+302
| | | | | | | | | | | | | | | | | | | | | drivers "tag packets" with an m_tag and the input packet handling recognizes such packets and does the right thing o track the number of active vlans on an interface; this lets lots of places only do vlan-specific processing when needed o track changes to ether_ifdetach/ether_ifattach o track bpf changes o eliminate the use of M_PROTO1 for communicating to drivers about tagged packets o eliminate the use of IFF_LINK0 for drivers communicating to the vlan code that they support h/w tagging; replaced by explicit interface capabilities o add ifnet capabilities for h/w tagging and support of "large mtu's" o use new interface capabilities to auto-configure use of large mtu's and h/w tagging o add support for proper handling of promiscuous mode o document driver/vlan communication conventions Reviewed by: many Approved by: re
* o add if_nvlans member to track the number of vlans active on an interfacesam2002-11-141-9/+3
| | | | | | | | o add if_input member for interface drivers to call through to pass packets "up" o remove ethernet-specific function decls (moved to ethernet.h) Reviewed by: many Approved by: re
* o change input packet handling to eliminate the pointer to the structsam2002-11-141-185/+263
| | | | | | | | | | | | | | | | | | | | | ether_header; instead drivers are to leave the Ethernet header at the front of the packet o add declarations for netgraph and vlan hooks that were removed from ethernet.h o change various in-file calling conventions to track change in input API o fixup bridge support to handle Ethernet header no longer being stripped o add consistency checks to ether_input to catch problems with the change in the API; some of these may want to be moved to #ifdef DIAGNOSTIC at a later time (though they are not too expensive to leave as is) o change ether_demux to eliminate the passing of the Ethernet header; it is now expected at the front of the packet a la ether_input o add ether_sprintf compatibility shim o change ether_ifattach API to remove "bpf supported param" and add a pointer to the MAC address to be installed for the LL address (this is for future changes to divest struct arpcom from struct ifnet) o change ether_ifdetach API to remove "bpf support param" Reviewed by: many Approved by: re
* general cleanups mostly aimed at improving portability of driverssam2002-11-141-43/+38
| | | | | | | | | | | | | | o ETHER_* (ETHER_ALIGN, ETHER_MAX_FRAME, ETHER_CRC_LEN, etc.) o M_HASFCS for drivers to indicate packets include FCS o remove global declarations for ng_ether* and vlan_* since these represent a private contract between the if_ethersubr.c code and certain parts of the system that should not normally be abused o add ether_* declarations that were elsewhere o remove ETHER_BPF_* since they are no longer used with the parameter no longer passed to ether_ifattach and ether_ifdetach Reviewed by: many Approved by: re
* o add support for multiple link types per interface (e.g. 802.11 and Ethernet)sam2002-11-143-27/+53
| | | | | | | | | | o introduce BPF_TAP and BPF_MTAP macros to hide implementation details and ease code portability o use m_getcl where appropriate Reviewed by: many Approved by: re Obtained from: NetBSD (multiple link type support)
* Make sure that we don't pick up installed packages on the host whenbmah2002-11-141-0/+5
| | | | | | we print dependencies (required by rev. 1.424 of ports/Mk/bsd.port.mk). Reviewed (and partially submitted) by: kris
* o add IF_*bps macros for netbsd compatibilitysam2002-11-141-0/+11
| | | | | | | o add interface capabilities for vlan use and to signal jumbo frame support Reviewed by: many Approved by: re
* MFbed:ue2002-11-143-5/+23
| | | | | | early-adopter/article.sgml: add lang=de relnotes/common/new.sgml: 1.450 -> 1.451 relnotes/ia64/article.sgml: add lang=de
* Assume that packages passed on stdin are in bzip2 format, not gzip.bmah2002-11-141-1/+2
| | | | | | (sysinstall depends on this feature for package addition.) Comment on hard-coded bzip2 usage in the spirit of rev. 1.58.
* Remove the remaining calls to free(), they are not needed anymore nowcognet2002-11-141-9/+0
| | | | device_get_softc() is used.
* Make dynamic PAM modules depend on dynamic PAM library.ru2002-11-142-6/+20
| | | | Requested by: des, markm
* New release note: SA-02:43.bmah2002-11-142-0/+10
|
* Define `Sudden_Underflow' when compiling for the Alpharobert2002-11-141-0/+3
| | | | | | | | | | | | | | | | | | | | | architecture, mainly to avoid getting a SIGFPE signal sent when calling strtod(3) with certain input. The SIGFPE has been sent because the code was not aware that a Gradual Underflow is handled in software via traps on the Alpha architecture, but is not implemented in our Alpha kernel layer. With `Sudden_Underflow' defined, strtod(3) should not depend on Gradual Underflow and adjust its calculations accordingly, which means that other, more subtle errors than the sending of SIGFPE could be solved by this. Discussed with: bde PR: alpha/12623 PR: alpha/17032 PR: alpha/43567 MFC after: 7 days
* Make the msg_size, msg_bufx and msg_bufr memebers of struct msgbuftmm2002-11-143-17/+15
| | | | | | | | | | | signed, since they describe a ring buffer and signed arithmetic is performed on them. This avoids some evilish casts. Since this changes all but two members of this structure, style(9) those remaining ones, too. Requested by: bde Reviewed by: bde (earlier version)
* Add hints for ISA ATA controllers. At least one Digital AlphaPC 64 hasjhb2002-11-141-0/+6
| | | | | | one such beast. Reported by: Rob Byrnes <rbyrnes@ozemail.com.au>
* bde points out that the LIBC_MAJOR macro doesn't exist and requestsimp2002-11-141-3/+6
| | | | | | | that we not use it here. In its place I've put a comment about the current state of play. Submitted by: bde
* Fix printf() format errors.mux2002-11-142-2/+2
| | | | Reviewed by: imp
* Copy EISA and PCI ahc(4) modules as well.ru2002-11-141-0/+2
|
* Pass correct parameters to bus_space_barrier() instead of 0mux2002-11-141-2/+4
| | | | so that this code compiles on alpha.
OpenPOWER on IntegriCloud