dyoung
2d794b9ed5
Remove needless "link state changed to DOWN/UP" message.
2006-05-01 18:17:42 +00:00
tron
ed14057f29
Adapt maximum MTU permitted on pppoe(4) interfaces to the MTU of the
...
connected ethernet interface.
2006-04-27 20:04:26 +00:00
tron
7604b6a404
Don't allow to connect a non ethernet interface to a PPPoE interface.
2006-04-27 13:19:04 +00:00
simonb
22d1f42229
One __KERNEL_RCSID() should be enough for this file.
2006-04-22 04:58:49 +00:00
christos
667e91e30f
Add an empty attach function. Reported by David Boggs
2006-04-20 17:03:35 +00:00
christos
74e3aa75eb
Perry reports that buf can be NULL, so deal with it.
2006-04-19 15:13:34 +00:00
rpaulo
994567415c
Fix another typo... I must be on drugs...
2006-04-18 19:30:49 +00:00
christos
17db7d5dd6
Don't use KASSERT, return an error instead to fix the build.
2006-04-15 04:45:01 +00:00
christos
a302c8092d
Coverity CID 2728: Add KASSERT before NULL deref.
2006-04-15 02:38:19 +00:00
christos
d3b0d78d54
Coverity CID 1193: Add KASSERT before negative array deref.
2006-04-15 02:35:22 +00:00
christos
e1b8701a82
Coverity CID 1147: Protect against NULL deref.
2006-04-15 02:27:25 +00:00
christos
ef31177b25
Coverity CID 1146: Protect against NULL deref.
2006-04-15 02:26:17 +00:00
christos
2973de5c38
Coverity CID 1145: Protect against NULL deref.
2006-04-15 02:25:24 +00:00
christos
bd7ea99daf
Don't try to free a NULL mbuf.
2006-04-15 02:22:44 +00:00
christos
29a12667b7
Coverity CID 855: Add a KASSERT for null route from successful rtrequest.
2006-04-15 02:19:00 +00:00
christos
3a59edd545
Coverity CID 854: Add KASSERT before deref.
2006-04-15 02:14:44 +00:00
christos
36d8e665b9
Coverity CID 853: Prevent NULL deref.
2006-04-15 02:07:34 +00:00
christos
c0b744d148
Coverity CID 756: Remove bogus NULL checks.
2006-04-15 02:03:36 +00:00
christos
e7bb1b7128
Coverity CID 755: Protect against NULL deref.
2006-04-15 02:01:50 +00:00
christos
4bb7462638
PR/33231: Anraud Degroote: Miscellaneous cleanups in the route code:
...
- use of 0 instead of NULL
- questionnable macros
2006-04-10 19:06:37 +00:00
rpaulo
58e5792e6a
IFHEAD and PREPADDR are mutually exclusive. From FreeBSD.
2006-04-08 12:14:42 +00:00
rpaulo
b5d1102290
Add another bit from FreeBSD that I forgot: in tun_output, don't try to send
...
an AF_INET packet if TUN_IFHEAD is not set.
From FreeBSD and spotted (again) by DEGROOTE Arnaud.
2006-04-04 15:43:23 +00:00
rpaulo
ca98b087a8
Fix a if-clause botched in a previous revision now that we have TUN_IFHEAD.
...
Spotted by DEGROOTE Arnaud <degroote@enseirb.fr>.
2006-04-04 11:33:15 +00:00
rpaulo
11a20f0dec
Change the number of TUN[GS]IFHEAD to avoid collision with if_pp.
...
Noticed by Simon Burge.
2006-04-04 11:23:59 +00:00
rpaulo
0dcbc9b794
Implement TUN_IFHEAD, the missing piece that was breaking old applications.
2006-04-03 23:29:39 +00:00
rpaulo
782e550804
Add missing break tunwrite() which was causing EAFNOSUPPORT to be
...
returned, thus making IPv6 support broken.
!@#$%^...
2006-03-29 19:29:00 +00:00
thorpej
2be6494fc9
Use device_cfdata().
2006-03-29 04:16:44 +00:00
thorpej
39cd836ee1
Use device_unit().
2006-03-28 17:38:24 +00:00
christos
cbff0fb84a
Add a new function called ether_snprintf() which takes an external buffer
...
and a length. The buffer should be 3 * addrlen.
Remove local tap_ether_sprintf(), and use ether_snprintf() instead.
2006-03-16 15:57:59 +00:00
christos
cbf41b4afc
Remove duplicate and slightly different declaration of ether_sprintf, which
...
really should be in if_ether.h like all the other ether_ functions.
2006-03-16 15:56:28 +00:00
lukem
a1f606d3fd
Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
...
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
msaitoh
1e5874b3c2
fix memory leak when resetting the source address and destination address.
2006-03-08 03:09:33 +00:00
rpaulo
d5648da4c6
Some minor KNF.
2006-03-03 19:57:37 +00:00
rpaulo
ece0242b47
Fix typo in comment.
2006-03-03 19:46:35 +00:00
christos
02b2f1b2b5
Provide ppp like statistics instead of grovelling through the kernel
...
symbols.
2006-03-02 17:20:07 +00:00
rpaulo
a0814a3043
Add full support for IPv6 tunnels. From DEGROOTE Arnaud in PR 32944.
...
The PR submitter and the PR handler were unable to test this code
using Teredo userland clients such as Miredo. However, the PR handler
dumped and analyzed some of the packets produced by Miredo and they
seemed fine.
(On a side note: I was unable to setup Teredo in Windows XP and the
problem seemed similar to what I currently see in NetBSD: lack of
replies from the Teredo relay).
2006-02-28 00:38:35 +00:00
drochner
be8cb1f8b9
add missing DLTs from the libpcap-0.9.4 distribution
2006-02-27 14:22:26 +00:00
drochner
4cf9c4d0dc
fix bpf_validate():
...
a missing "break" caused any bpf filter containing
a division to be rejected
2006-02-27 11:42:58 +00:00
wiz
1ad8067cb3
Fix typos, reported by Alexey Dobriyan ("Gathered from Linux"),
...
forwarded by jmc@openbsd.
2006-02-25 00:58:34 +00:00
pooka
833be9a435
comment police: p_dupfd is now known as l_dupfd and lives in struct lwp
2006-02-24 12:54:48 +00:00
rpaulo
08d09ff6c5
In sysctl_iflist() don't assume TAILQ_FIRST() will never be NULL.
...
Prevents crash found by Uwe and fix confirmed working by Jeff Ito (all
on tech-net).
2006-02-21 22:01:17 +00:00
perry
fbae48b901
Change "inline" back to "__inline" in .h files -- C99 is still too
...
new, and some apps compile things in C89 mode. C89 keywords stay.
As per core@.
2006-02-16 20:17:12 +00:00
bjh21
24b46da494
Make Econet code compile again.
2006-02-12 10:32:46 +00:00
wiz
9037345f22
Add a /* CONSTCOND */ for lint.
2006-02-07 20:10:48 +00:00
rpaulo
be72809857
Add preliminary/not tested support for IPv6.
2006-02-05 16:44:55 +00:00
cube
97047d48dd
Properly dispose of cfdata memory when unloading the tap(4) LKM.
2006-02-01 05:51:58 +00:00
martin
0975a4b449
Make sure error messages (received from the access concentrator) are
...
zero terminated.
2006-01-31 23:50:15 +00:00
rpaulo
219ca2b318
Replace the comment that came from if_loop.c many years ago by
...
something that matches reality.
2006-01-31 22:27:15 +00:00
christos
f0551e03f4
PR/32676: Yves-Emmanuel JUTARD: faithprefix should only be defined with INET6
2006-01-31 17:15:20 +00:00
jdolecek
8ce024013a
fix VLAN_ATTACHED() macro, it was always true due to condition bug
...
Fixes PR kern/32645 by Pavel Cahyna
2006-01-29 09:57:59 +00:00