Commit Graph

1924 Commits

Author SHA1 Message Date
mhitch 70a12d51ab Add support for SerDes controllers; from the OpenBSD driver. Tested on a
Dell Blade server by me, and an HP Blade server by Havard.
2008-09-09 20:12:18 +00:00
gmcgarry 0de5da9678 Replace most gcc-specific __attribute__ uses with BSD-style sys/cdef.h
preprocessor macros.
2008-09-08 23:36:53 +00:00
christos 44c100dd00 - more void * removal
- bcopy -> memcpy
- memmove -> memcpy
- explicitly initialize size to 0 on memory allocation failure.
2008-08-28 19:33:24 +00:00
dyoung 734473836e Do not cast to void * unnecessarily. 2008-08-28 18:43:58 +00:00
rmind 67d6ac0a69 tap_attach/tap_detach: selinit/seldestroy the selinfo structure.
Should fix PR/39237.
2008-08-26 11:06:59 +00:00
martin b0f7c9ec03 Backout previous/restore initial fix for PR kern/39280.
The later changes were only cosmetic, cause problems in IPv6-only-
connections (reported by Wolfgang Solfrank in private mail), as well
as reintroducing the original bug again.
2008-08-22 12:13:18 +00:00
joerg 216f1c75dc As the scratch memory is only ever copied to or from A and X, make it
unsigned as well.
2008-08-20 13:01:54 +00:00
martin 7c66311782 Simplify auth failure reconnect a bit and make it more similar to the
session establishment timeout handling.
2008-08-19 22:03:05 +00:00
simonb e50c5ea246 Fix a tyop in a comment and a few #define<tab> nits while here. 2008-08-19 10:41:10 +00:00
martin e9e3618d99 When upper layer asks us to re-establish a connection, don't do so
synchronously, but insert a (varying) delay. Before we have only been
decoupled from the peer via network latency - now we introduce some
explicit delay. This, at least, creates batter serialized debug output.

However, if we have to reconnect because of an authentication failure,
the peer may have just been unable to access it's radius server. (I have
a setup where this seems to happen every now and then, depending on time
of day.) Backoff reconnect in this cases seriously longer - this is better
than hitting the max-auth-failure limit within a few seconds.
2008-08-18 21:43:49 +00:00
martin 11933dbf25 Test and handle memory allocation failure for the access concentrator
cookie.
2008-08-18 20:43:50 +00:00
martin 3c5d438020 Apply patch from Yasuoka Masahiko in PR kern/39321: fix length check
when parsing pppoe discovery phase packets.
2008-08-08 14:31:00 +00:00
plunky fd7356a917 Convert socket options code to use a sockopt structure
instead of laying everything into an mbuf.

approved by core
2008-08-06 15:01:23 +00:00
degroote 64411951db We have a dummy entry for IPV6CP even if the non-INET6 case.
So always reference IDX_IPV6CP
Fix build of if_spppsubr.c if INET6 is not defined.
2008-08-05 23:56:31 +00:00
christos fd2004ecfd keep the loop, but arrange IDX_COUNT to be correct. 2008-08-04 12:03:14 +00:00
martin 2cfed21969 PR kern/39280: Uninitialized callout stopped in if_spppsubr layer
in kernels without options INET6.
2008-08-04 10:17:33 +00:00
matt cc99e2f48f Remove the pcb from the rawcb list before sofree'ing it.
Don't reacquire softnet_lock until after we've freed the pcb.
2008-08-04 06:19:35 +00:00
dsl 34519fcf41 Move the body of VLAN_INPUT_TAG() into a static inline function.
(Maybe it shouldn't even be inline - but I'd have to work out where to put it).
VLAN_INPUT_TAG() now calls vlan_input_tag() and does '_errcase' when it fails.
In reality the callers should all be changed, _errcase is ALWAYS continue,
which used to 'continue' (ie break) the do .. while (0) loop - not the
intended action!
Found by ramming all the kernel sources through a modified lint and grepping
for a specific error.
While here enclose the body of VLAN_OUTPUT_TAG() in ().
2008-07-25 20:04:50 +00:00
christos 0119da7858 PR/39203: Paul Ripke: PPPoE issues with broken MTU/MRU implementations
Allow larger frames for systems that don't negotiate MTU/MRU properly.
2008-07-25 15:10:25 +00:00
dyoung 7e7bddae2b Fix this another way: add the missing case statement. 2008-07-23 06:34:31 +00:00
gmcgarry 1d92605168 Back out rev 1.163 which broke the logic for SIOCSIFFLAGS. PR#38976. 2008-07-23 05:41:47 +00:00
cegger 5a5486f956 make this compile again 2008-07-10 05:15:32 +00:00
joerg 02aa18819c - device/softc split
- remove redundant ;
2008-07-09 13:18:41 +00:00
ad a00bd89dab Replace references to getsock/getvnode. 2008-06-24 11:18:14 +00:00
gmcgarry ccd9038096 ioctl commands are unsigned long. 2008-06-24 10:32:14 +00:00
dyoung 06f20fb7d3 Cosmetic: use LIST_FOREACH(). Join lines. 2008-06-23 03:13:12 +00:00
dyoung c3da8a28e7 Cosmetic: use TAILQ_FOREACH(). Join lines. 2008-06-23 00:56:08 +00:00
yamt fff57c5525 merge yamt-pf42 branch.
(import newer pf from OpenBSD 4.2)

ok'ed by peter@.  requested by core@
2008-06-18 09:06:25 +00:00
cube addeaf5d06 Fix previous: a well hidden assignment was lost. 2008-06-15 20:36:55 +00:00
christos 4f8bb168f6 that should read if_alloc. 2008-06-15 18:40:55 +00:00
christos bc168f2766 - add if_alloc (ours just mallocs), and if_initname and use them (from FreeBSD)
- kill memsets where M_ZERO can be used.
2008-06-15 16:37:21 +00:00
christos 34c1ed7571 remove unnecessary casts. 2008-06-15 16:35:35 +00:00
christos ab4f03ff74 - Add more definitions from FreeBSD
- Add ifmedia_removeall from FreeBSD
2008-06-15 16:33:58 +00:00
cegger fc8fd752ef device_private(device_lookup()) -> device_lookup_private()
ok cube@
2008-06-10 22:53:08 +00:00
dyoung 6190990146 Destroy condition variable sc_fp_condvar. 2008-06-02 23:07:13 +00:00
christos 5d9f99db06 Don't obliterate the whole message, preserve the data we have just written
and only zero out the rest.
2008-06-01 22:05:47 +00:00
christos 56fe2d1f4d PR/38791: J.T. Conklin: routing socket event header not cleared 2008-05-29 17:53:01 +00:00
dyoung 7b1d20d162 Delete local variable 'sockets', whose value is never used. Reported
by J.T. Conklin.
2008-05-29 17:26:56 +00:00
mrg c2b95373bf remove clause #3 from my license where there are no other
copyright holders involved.
2008-05-29 14:51:25 +00:00
dyoung d4ff34dc53 In tap_clone_destroy(), don't treat a pointer to the tap(4) softc
like it is a device_t.

In tap_clone_creator(), set cf_fstate to FSTATE_FOUND instead of
_NOTFOUND to avoid a panic in config_detach() on a DIAGNOSTIC
kernel.  XXX I'm not sure that that is the right fix.

These changes should put a stop to the crash described in kern/38759.
2008-05-28 06:28:12 +00:00
ad 5e4b324300 Properly fix the "hanging in tty" bug that was worked around with cv_wakeup()
some time again.
2008-05-25 19:22:21 +00:00
dholland b152b21d9a fix typo 2008-05-25 01:59:55 +00:00
christos 45c4cacf02 Coverity CID 5013: Add diagnostic test for bad cmd parameter. 2008-05-24 18:51:41 +00:00
dyoung 89429568e1 Add ETHER_IS_LOCAL(). Tests for "local" ethernet addresses. 2008-05-22 01:15:33 +00:00
ad 6b51302cb8 Acquire kernel_lock in tap's fileops. 2008-05-21 13:56:15 +00:00
ad 323763b5d6 Acquire kernel_lock in the bpf fileops. 2008-05-21 13:48:52 +00:00
yamt 6ddc56271b agr_ioctl_filter: comment the intention. 2008-05-19 02:53:47 +00:00
dyoung ab6934acf9 Note both my contribution and NSF funding. 2008-05-15 04:03:53 +00:00
dyoung 9fa4982002 Get rid of gre_sosend()'s lwp argument. 2008-05-15 01:30:48 +00:00
dyoung e6c098fa6e rtinit() should pass RTM_ADD to ifa->ifa_rtrequest instead of cmd,
after all.
2008-05-13 20:49:33 +00:00