Antonio Huete Jimenez [Wed, 15 Aug 2012 01:15:12 +0000]
dhclient - Have only one timeout at once.
- Terminate with extreme prejudice the multiple timeout queuing
mechanism that was a holdover from when dhclient handled multiple
interfaces at once.
- Also move calculation of current time to just before check to see
if the timeout has expired.
Taken-from: OpenBSD
Antonio Huete Jimenez [Tue, 14 Aug 2012 23:06:26 +0000]
dhclient - Add some more paranoia and make code clearer.
- Check that the required length field for the option
is present before using it. Reject lease if no length
field is present.
Taken-from: OpenBSD
Antonio Huete Jimenez [Tue, 14 Aug 2012 22:54:02 +0000]
dhclient - Delete trailing NUL's when parsing NVT ASCII options.
- RFC 2132 says "Options containing NVT ASCII data SHOULD NOT include
a trailing NULL; however, the receiver of such options MUST be
prepared to delete trailing nulls if they exist."
- Should fix odd results when 'append'ing info to such options via
dhclient.conf.
Taken-from: OpenBSD
Antonio Huete Jimenez [Tue, 14 Aug 2012 22:44:47 +0000]
dhclient - Nuke interface_link_status().
- Make use of interface_status() (check IFF_UP|IFF_RUNNING
and media status). The interface is forced up when dhclient
starts so the flags should be correct.
Taken-from: OpenBSD
Antonio Huete Jimenez [Sat, 4 Aug 2012 19:08:44 +0000]
dhclient - Change return code test logic.
Taken from: OpenBSD
Antonio Huete Jimenez [Sat, 4 Aug 2012 19:05:11 +0000]
dhclient - Set state to S_REBOOTING when calling state_reboot().
- Also set state inside state_reboot() to S_INIT when calling
state_init(). Rather than the other way around.
Makes for more consistant idiom and might reduce state confusion.
Taken-from: OpenBSD
Antonio Huete Jimenez [Sat, 4 Aug 2012 18:59:03 +0000]
dhclient - Cancel all timeouts in state_reboot().
- We can get there from any state if a link state change happens.
Fixes a problem where we'd continue to send (corrupted) discover
packets after binding.
Taken-from: OpenBSD
Antonio Huete Jimenez [Sat, 4 Aug 2012 18:55:19 +0000]
dhclient - Try harder to re-initialize parsing state.
- Attempt that nothing accidentally carries over when
a new file (i.e. leases after config) is parsed.
May help with mysterious "Corrupt lease file" messages.
Taken-from: OpenBSD
Antonio Huete Jimenez [Sat, 4 Aug 2012 18:47:39 +0000]
dhclient - Tweak parsing.
- No need to declare, assign and then ignore the token
value when only the token id is required.
Taken-from: OpenBSD
Antonio Huete Jimenez [Sat, 4 Aug 2012 18:36:23 +0000]
dhclient - Tweak leases file handling.
- Write out new leases file every time a lease is obtained. i.e. don't
append 20 leases before cleaning it up.
- Write new leases file after calling dhclient-script to implement
new info. Gets interface configured first, and makes it more likely
the leases file reflects most current configuration.
Taken-from: OpenBSD
Antonio Huete Jimenez [Sat, 4 Aug 2012 18:23:47 +0000]
dhclient - Sequential options processing more friendly.
- Starting DHCP packet options with DHO_DHCP_MESSAGE_TYPE. Now
DHCP-specific options always come after the option identifying
the packet as DHCP rather than BOOTP. Makes at least Nortel NetIP
DHCP server happier. Clean up some code and parameter passing.
Taken-from: OpenBSD
Antonio Huete Jimenez [Fri, 3 Aug 2012 23:26:33 +0000]
dhclient - Only warn on unknown options when appropiate.
- By default we ignore unknown dhcp server options, so don't bother
warning unless we ask dhclient to reject leases with unknown options.
Taken-from: OpenBSD
Antonio Huete Jimenez [Fri, 3 Aug 2012 23:07:20 +0000]
dhclient - Properly handle zero-length option hints.
- There was a possible division by zero if a server
sends us a broken option hints for the proper fix.
Taken-from: OpenBSD
Antonio Huete Jimenez [Fri, 3 Aug 2012 22:55:50 +0000]
dhclient - Remove wrong processing of option 33 (static routes).
- We are incorrectly processing option 33 (static route), treating
is as a host route rather than a classful network route. Too much
trouble to fix such an obsolete feature, so ignore option 33 info.
Taken-from: OpenBSD
Antonio Huete Jimenez [Fri, 3 Aug 2012 22:46:34 +0000]
dhclient-script(8) - Align man page with current reality.
Taken-from: OpenBSD
Antonio Huete Jimenez [Fri, 3 Aug 2012 22:31:40 +0000]
dhclient - Stray '$medium' missed in last commit.
Taken-from: OpenBSD
Antonio Huete Jimenez [Fri, 3 Aug 2012 22:26:45 +0000]
dhclient - Drop medium/alias useless utilization.
- Dump some useless calls to dhclient-script. i.e. MEDIUM, PREINIT,
ARPSEND, ARPCHECK. Drop support for 'media', 'medium' and 'alias'
specifications in dhclient.conf.
- Old leases still parse but these options now have no effect.
- Be more polite and decline all offers we don't accept.
- Fix a IMSG length check.
- Many expressions of support at various bars.
Taken-from: OpenBSD
Antonio Huete Jimenez [Thu, 2 Aug 2012 19:26:34 +0000]
dhclient - Fix interval handling.
- Start at initial_interval instead of exponentially backed
off initial_interval.
- Don't hallucinate that we can send ARP packets without waiting.
- Don't claim to be waiting for ARP packets when not doing so.
- Correctly detect expiry of selecting period.
- Speeds up negotiations.
Taken-from: OpenBSD
Antonio Huete Jimenez [Thu, 2 Aug 2012 19:17:32 +0000]
dhclient.conf(5) - New sentence, new line.
Taken-from: OpenBSD
Antonio Huete Jimenez [Thu, 2 Aug 2012 19:15:43 +0000]
dhclient.conf(5) - Few fixes. Reword a sentence.
Taken-from: OpenBSD
Antonio Huete Jimenez [Thu, 2 Aug 2012 18:15:28 +0000]
dhclient - Make sure an interface is registered before we start using it.
Taken-from: OpenBSD
Antonio Huete Jimenez [Thu, 2 Aug 2012 18:13:02 +0000]
dhclient - Add and ignore DHCP option 66/0x42 TFTP server name.
Taken-from: OpenBSD
Antonio Huete Jimenez [Thu, 2 Aug 2012 17:55:19 +0000]
dhclient(8) - Remove NOTES section.
Taken from: OpenBSD
Antonio Huete Jimenez [Thu, 2 Aug 2012 17:39:08 +0000]
dhclient - Add 'egress' command-line option.
- It can be used to refetch a lease without remembering
which interface dhclient was actually active on.
Taken-from: OpenBSD
Antonio Huete Jimenez [Thu, 2 Aug 2012 09:50:39 +0000]
dhclient - Remove unused function.
Taken-from: OpenBSD
Antonio Huete Jimenez [Thu, 2 Aug 2012 09:46:36 +0000]
dhclient - Use strdup() instead of malloc/strlcpy.
Taken-from: OpenBSD
Antonio Huete Jimenez [Wed, 1 Aug 2012 19:43:24 +0000]
dhclient - Be more strict in check_option().
ISC dhclient had a buffer overflow: http://www.kb.cert.org/vuls/id/410676 and
while our dhclient is not vulnerable to that, it got us looking at how the
subnet mask option is handled.
This limits specific ip address options to length 4 in conformance with RFC 2132.
Taken-from: OpenBSD
Antonio Huete Jimenez [Wed, 1 Aug 2012 19:25:29 +0000]
dhclient - Silence dhclient by immediately exiting if the interface doesn't exist.
Taken-from: OpenBSD
Antonio Huete Jimenez [Wed, 1 Aug 2012 19:12:15 +0000]
dhclient - Make room for trailing \0 on prepend/append for dhcp options.
Taken-from: OpenBSD
Antonio Huete Jimenez [Wed, 1 Aug 2012 19:07:59 +0000]
dhclient - Use addr_eq() when possible.
Taken-from: OpenBSD
Antonio Huete Jimenez [Wed, 1 Aug 2012 19:06:34 +0000]
dhclient - Lets state_panic() check the rest of valid leases.
Taken-from: OpenBSD
Antonio Huete Jimenez [Wed, 1 Aug 2012 18:36:59 +0000]
dhclient - Print out debug messages only when DEBUG is defined.
Taken-from: OpenBSD
Antonio Huete Jimenez [Wed, 1 Aug 2012 18:10:47 +0000]
dhclient - Remove unneeded ARGSUSED
Taken-from: OpenBSD
Antonio Huete Jimenez [Wed, 1 Aug 2012 18:06:32 +0000]
dhclient - Fix old bug that could cause lease mangling.
Taken-from: OpenBSD
Antonio Huete Jimenez [Wed, 1 Aug 2012 17:51:25 +0000]
dhclient - Error out if _dhcp user is missing.
Taken-from: OpenBSD
Antonio Huete Jimenez [Tue, 31 Jul 2012 20:29:29 +0000]
dhclient - Add 6-byte MAC address to the log entries for DHCP ACK/NAK/OFFER.
- Log the packets before checking the client state. Makes it easy to find
MACs for 'surprise' DHCP servers.
- Swap ifi status check logic to be the first one.
Antonio Huete Jimenez [Tue, 31 Jul 2012 20:05:41 +0000]
dhclient - Improve comment about resolv.conf creation.
Taken-from: OpenBSD
Antonio Huete Jimenez [Tue, 31 Jul 2012 19:59:00 +0000]
dhclient - Term consistency about the config script.
- Also fix manpage section for dhclient-scripts.
Taken-from: OpenBSD
Antonio Huete Jimenez [Tue, 31 Jul 2012 19:53:54 +0000]
dhclient - Fix typo.
Taken-from: OpenBSD
Antonio Huete Jimenez [Tue, 31 Jul 2012 19:53:05 +0000]
dhclient - Clarify discussion of option modifiers.
They only affect values passed to dhclient-script. Our default script
only uses a few options so others are unaffected by option modifiers.
Taken-from: OpenBSD
Antonio Huete Jimenez [Tue, 31 Jul 2012 19:44:12 +0000]
dhclient - Fix spurious 'got link'
Taken-from: OpenBSD
Antonio Huete Jimenez [Tue, 31 Jul 2012 19:28:36 +0000]
dhclient - Fix OpenBSD CVS ids to match current version.
Also remove DFly ones.
Sepherosa Ziehau [Tue, 14 Aug 2012 23:40:38 +0000]
bge: Allow max BDs based coalesce to be disabled
Sepherosa Ziehau [Tue, 14 Aug 2012 23:16:27 +0000]
bge: Don't peek at the TX descriptor in txeof()
François Tigeot [Tue, 14 Aug 2012 09:25:19 +0000]
ixgbe: Remove the multicast spinlock
Multicast read/write is serialized by netisr0, there is no need to
add another protection layer.
Advised-by: Sepherosa Ziehau
John Marino [Tue, 14 Aug 2012 14:38:31 +0000]
rtld: Parse notes later (bug# 2376)
Parse notes only after object structure has been allocated.
Taken-from: FreeBSD svn 239019
DragonFly-bug: <http://bugs.dragonflybsd.org/issue/2376>
Sepherosa Ziehau [Tue, 14 Aug 2012 09:27:24 +0000]
bnx: Don't peek at the TX descriptor in txeof()
Which is completely unnecessary and pollute cache badly.
Sepherosa Ziehau [Tue, 14 Aug 2012 08:48:41 +0000]
emx: Pack boolean fields into flags
Sepherosa Ziehau [Tue, 14 Aug 2012 08:21:49 +0000]
igb: Remove no longer referenced code
Sepherosa Ziehau [Tue, 14 Aug 2012 08:17:24 +0000]
igb: Remove unused code; adjust and add comment
Sepherosa Ziehau [Tue, 14 Aug 2012 08:10:26 +0000]
igb: Remove unused field
François Tigeot [Tue, 14 Aug 2012 05:49:31 +0000]
ixgbe: Remove a useless assertion
Found-by: Sascha Wildner
Sascha Wildner [Mon, 13 Aug 2012 18:42:13 +0000]
installer: When setting the slice type for >2TB, ignore fdisk warnings.
With disks >2TB this step will lead to some whining from fdisk(8), but
since we'll boot anyway (with
34ea800d, we resort to the media size
when a maxed out slice size is detected), just ignore any issues which
fdisk(8) reports in this case.
After this commit, installing and booting from that installation on a
disk which is >2TB will work (tested with a 3TB ahci attached drive as
well as with a 4.5TB hptrr(4) RAID).
Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/2264>
Reported-by: ftigeot
Sepherosa Ziehau [Mon, 13 Aug 2012 01:20:52 +0000]
bce: Unbreak LINT building
Reminded-by: swildner@
Sascha Wildner [Mon, 13 Aug 2012 00:33:30 +0000]
ahci(4)/sili(4): Fix for drives >2TB.
CAM will issue the 16 byte version of the READ CAPACITY command when
maxsector is 0xffffffff:
----- scsi_da.c -----
if (maxsector == 0xffffffff) {
softc->state = DA_STATE_PROBE2;
kfree(rdcap, M_SCSIDA);
xpt_release_ccb(done_ccb);
xpt_schedule(periph, /*priority*/5);
return;
}
---------------------
However, we are subtracting 1 from it (presumably because it's a "last
sector on the device" value starting at 0) so in CAM, it ended up being
0xfffffffe, resulting in disks attached via ahci(4) and sili(4) to be
limited to 2TB.
To fix, set the local var to 0 in this case, so that after subtracting 1
from the value (cast to 32 bit) CAM gets 0xffffffff.
Fix-by: dillon
François Tigeot [Sun, 12 Aug 2012 16:57:10 +0000]
ixgbe: replace direct lockmgr calls by macros
Only 3 lines didn't use the IXGBE_CORE_LOCK/UNLOCK() abstractions
Sepherosa Ziehau [Sun, 12 Aug 2012 10:44:28 +0000]
bge: Add TSO support for BCM5755 family chips
Obtained-from: FreeBSD
François Tigeot [Sun, 12 Aug 2012 11:00:20 +0000]
ixgbe(4): remove a lockinit() call
No need to initialize some lockmgr lock twice
Matthew Dillon [Sun, 12 Aug 2012 00:09:11 +0000]
boot - Fix boot probe ordering
* When boot loader support is compiled w/ UFS and HAMMER together, which
is the default (note: HAMMER booting's never worked well)... the probe
order was to check for the hammer volume header first and UFS second.
* Change the probe order to check for UFS first and HAMMER second. The
reason is that a 'newfs' (for UFS) doesn't wipe the hammer volume header
because the ufs's newfs tries to 'skip' the partition reserved area of
the disk.
This is a huge throwback to the original BSD fdisk/disklabel which put
the boot code INSIDE the 'a' partition.
* The DragonFly disklabel64 (which is now the default) does not have this
problem so we could probably at some point adjust the UFS 'newfs' code to
wipe the old 'reserve' area to really put a cap on the problem.
Reported-by: tuxillo
Sascha Wildner [Sat, 11 Aug 2012 20:15:12 +0000]
hptrr.4: Remove unneeded .Pp
Sascha Wildner [Sat, 11 Aug 2012 10:25:10 +0000]
pflogd(8): Raise WARNS to 5.
Sascha Wildner [Sat, 11 Aug 2012 10:14:24 +0000]
libm & rtld: Ansify some remaining functions.
Sascha Wildner [Fri, 10 Aug 2012 21:22:03 +0000]
/usr/src/Makefile: Remove duplicate target.
Sepherosa Ziehau [Fri, 10 Aug 2012 08:22:44 +0000]
bce: Add TSO support
Obatined-from: FreeBSD
With following modification:
These chips can handle ip.ip_len and tcphdr.th_sum, if they are setup
according to Microsoft LSO specification, so ip.ip_len should not be
cleared and tcphdr.th_sum should be left as it is.
According-to: bnx2
Sepherosa Ziehau [Fri, 10 Aug 2012 06:20:49 +0000]
bce: Remove debug stuffs from polling code
Sepherosa Ziehau [Fri, 10 Aug 2012 06:19:15 +0000]
bce: Remove debug stuffs from output path
Antonio Huete Jimenez [Fri, 10 Aug 2012 08:42:07 +0000]
tuxload - Minor modifications.
- Add some output.
- First create the files, then mmap() them
Sepherosa Ziehau [Fri, 10 Aug 2012 04:51:59 +0000]
bce: Set RX interrupt rate ~6000Hz
Sepherosa Ziehau [Fri, 10 Aug 2012 04:36:17 +0000]
bce: Don't loop in the interrupt handler to drain TX/RX
Sepherosa Ziehau [Fri, 10 Aug 2012 02:27:13 +0000]
bce: Remove debug stuffs on RX/TX interrupt path
Sepherosa Ziehau [Fri, 10 Aug 2012 02:19:01 +0000]
bce: Remove debugging stuffs in interrupt handler
Sascha Wildner [Thu, 9 Aug 2012 19:15:53 +0000]
posix_memalign.3: Document aligned_alloc().
Sascha Wildner [Thu, 9 Aug 2012 17:42:46 +0000]
libc: Add a copyright to aligned_alloc.c
Sascha Wildner [Thu, 9 Aug 2012 17:39:11 +0000]
malloc.3: Remove a ,
François Tigeot [Thu, 9 Aug 2012 10:52:34 +0000]
ixgbe(4): Sync with FreeBSD
Update to the ixgbe driver:
- Add a couple of new devices
- Flow control changes in shared and core code
- Bug fix to Flow Director for 82598
- Shared code sync to internal with required core change
François Tigeot [Thu, 9 Aug 2012 08:47:55 +0000]
ixgbe: compilation fix for debug routines
The driver didn't build when DBG was set to 1.
Sascha Wildner [Thu, 9 Aug 2012 07:58:46 +0000]
at_quick_exit.3: Add an ERRORS section.
Submitted-by: vsrinivas
Sascha Wildner [Thu, 9 Aug 2012 07:58:31 +0000]
libc: Add a copyright to quick_exit.c
Reported-by: vsrinivas
Sascha Wildner [Thu, 9 Aug 2012 07:53:03 +0000]
<stdlib.h>: Adjust the visibility of our C11 functions.
Sascha Wildner [Thu, 9 Aug 2012 07:50:14 +0000]
Add at_quick_exit(3) and quick_exit(3) manual pages.
Taken-from: FreeBSD
Sascha Wildner [Thu, 9 Aug 2012 07:40:10 +0000]
mdoc: Let us refer to C11 in manual pages with ".St -isoC-2011".
John Marino [Wed, 8 Aug 2012 23:00:33 +0000]
xterm: Remove ability to restore console after man, less, etc.
Having a man page disappear before the read the end (if it indeed appears
at all) is pretty annoying. Equally annoying is using the "more" command
on a file with few lines only to see nothing. The default behavior of
xterm console had few fans.
This removes the smcup and rmcup codes from xterm-basic, the basis for
the xterm console definitions. Now man pages are left on the screen
after viewing, and the pagers work as expected.
Sepherosa Ziehau [Thu, 9 Aug 2012 06:56:45 +0000]
emx: Status change is protected by main serializer
No need to hold all of the serializers during a status poll
Sascha Wildner [Thu, 9 Aug 2012 00:56:25 +0000]
cut(1): Add back -w (split on whitespace functionality).
Reported-by: Tim Darby <t+dfbsd@timdarby.net>
Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2385>
John Marino [Wed, 8 Aug 2012 21:22:08 +0000]
cut: Sync with FreeBSD
Addresses:
http://bugs.dragonflybsd.org/issues/2385
reported-by: Tim Darby
Sascha Wildner [Wed, 8 Aug 2012 13:42:58 +0000]
hpt27xx(4): Use NULL for pointers.
Sascha Wildner [Wed, 8 Aug 2012 12:18:22 +0000]
Add the hpt27xx(4) driver for HighPoint RocketRAID 27xx SAS controllers.
The manual page mentions the following adapters to be supported:
* RocketRAID 271x
* RocketRAID 272x
* RocketRAID 274x
* RocketRAID 276x
* RocketRAID 278x
I have tested it with a RocketRAID 2720.
Taken-from: FreeBSD
Sepherosa Ziehau [Wed, 8 Aug 2012 13:11:11 +0000]
bnx: Disable RX max BDs based interrupt moderation
The RX max coalesce BDs is limited to 255, which means that the chip will
generate ~5800 interrupts/s when it sinks 1.48Mpps tiny packets. However,
interrupt rate at 4000Hz is already enough for the chip to sink 1.48Mpps
tiny packets, so ticks based RX interrupt moderation should be prefered.
Sepherosa Ziehau [Wed, 8 Aug 2012 11:11:03 +0000]
bnx: Allow TX/RX max coalesce BDs to be 0; mainly for debugging
Sepherosa Ziehau [Wed, 8 Aug 2012 08:35:53 +0000]
bnx: Correct debug messages
Sepherosa Ziehau [Wed, 8 Aug 2012 08:11:11 +0000]
bnx: Rearrange the code to check the spare TX descripors first
While im here, remove the useless fragmentation checksum code, which
is never supported by this driver
Sepherosa Ziehau [Wed, 8 Aug 2012 07:53:30 +0000]
bnx: Increase spare TX descriptors to 33 to incorporate TSO segment
Sepherosa Ziehau [Wed, 8 Aug 2012 05:31:56 +0000]
emx: emx_timer() only requires main serializer
Sepherosa Ziehau [Wed, 8 Aug 2012 05:21:20 +0000]
em/emx: Fix up detach path
- We could release management control only if PCI BAR is mapped
- Release multicase array memory
Sepherosa Ziehau [Wed, 8 Aug 2012 04:18:26 +0000]
emx: Increase spare TX descriprors to 33 incorporate TSO segment
Sepherosa Ziehau [Wed, 8 Aug 2012 04:09:51 +0000]
emx: Make sure that mbuf is changed before busdma sync
This should not be problem for emx, since it does not have any
busdma constraint thus no effective busdma sync will happen.
Sepherosa Ziehau [Wed, 8 Aug 2012 03:49:41 +0000]
igb: Make sure that mbuf is changed before busdma sync
This should not be problem for igb, since it does not have any
busdma constraint thus no effective busdma sync will happen.
Sepherosa Ziehau [Mon, 6 Aug 2012 12:15:15 +0000]
alc: Stablize this driver and fix various porting overlooks
- Use ifnet serializer to protect driver data. This should fix the
various panics that were observed on the network output path.
- Fix busdma setup.
- Always allocate the descriptor rings and status blocks at the lower
4GB. The original way will require the RX/TX bufs to be located at
the lower 4GB, which is a great waste of bounce buffers, cpu cycles
and memory bandwidth.
- Don't mess up M_PKTHDR on RX path.
- Allocate mbuf w/ MB_WAIT on initialization path.
- Enable MSI by default.
John Marino [Tue, 7 Aug 2012 11:35:26 +0000]
ncurses: Fix pkgsrc check and use of ncurses
Without the macro SET_NEED_WCHAR_H defined, the ncurses header will not
include wchar.h which is where the wint_t type is defined. This breaks
any program loading ncurses.h without defining this macro because several
functions use the wint_t type.
Define wint_t as int if wchar.h isn't included. This fixes the ncurses
check on several pkgsrc configuration checks and allows the package to
build with the system ncurses.
Sascha Wildner [Tue, 7 Aug 2012 07:19:35 +0000]
arcmsr(4): Use cam_calc_geometry().