| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
completely fail.
Obtained from: The isdn4bsd project (original author unknown right now)
Notes:
svn path=/head/; revision=39981
|
|
|
|
|
|
|
| |
bpf_mcopy() and catchpacket() prototypes accordingly.
Notes:
svn path=/head/; revision=39964
|
|
|
|
| |
Notes:
svn path=/head/; revision=39963
|
|
|
|
|
|
|
| |
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=39955
|
|
|
|
|
|
|
| |
(from -stable, since this code is not yet active in -current)
Notes:
svn path=/head/; revision=39464
|
|
|
|
| |
Notes:
svn path=/head/; revision=39296
|
|
|
|
| |
Notes:
svn path=/head/; revision=39120
|
|
|
|
|
|
|
|
|
| |
another specialized mbuf type in the process. Also clean up some
of the cruft surrounding IPFW, multicast routing, RSVP, and other
ill-explored corners.
Notes:
svn path=/head/; revision=38482
|
|
|
|
| |
Notes:
svn path=/head/; revision=38423
|
|
|
|
|
|
|
| |
broken, version of inet_ntoa(). It should go away.
Notes:
svn path=/head/; revision=38372
|
|
|
|
|
|
|
| |
from int to u_long but not changing here.
Notes:
svn path=/head/; revision=38343
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ioctl() routine at the end of if_delmulti() so that interfaces with
hardware multicast filtering can update their filters in a timely
manner.
If the interface doesn't support hardware multicast filtering, then
reception of multicast frames is done using 'promiscious mode' or
'capture all multicast frames' mode and software filtering in the
kernel. In this case, it doesn't matter if if_delmulti() ever does
an SCIODELMULTI on the interface or not: if MULTICAST support is
enabled, then we join the 'all hosts' group when the interface is
configured, and remain in it until the interface is brought down.
Without hardware filtering, joining one group means joining all
groups, so it makes no difference if we call the SIOCDELMULTI
routine.
If the interface does support hardware multicast filtering, then
by not reprogramming the hardware filter in if_delmulti(), we have
to wait until somebody calls if_setmulti(), during which time the
interface is receiving frames for multicast groups in which we are
no longer interested.
Notes:
svn path=/head/; revision=38293
|
|
|
|
|
|
|
| |
Submitted by: Stefan Bethke <stb@hanse.de>
Notes:
svn path=/head/; revision=38114
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
several new features are added:
- support vc/vp shaping
- support pvc shadow interface
code cleanup:
- remove WMAYBE related code. ENI WMAYBE DMA doen't work.
- remove updating if_lastchange for every packet.
- BPF related code is moved to midway.c as it should be.
(bpfwrite should work if atm_pseudohdr and LLC/SNAP are
prepended.)
- BPF link type is changed to DLT_ATM_RFC1483.
BPF now understands only LLC/SNAP!! (because bpf can't
handle variable link header length.)
It is recommended to use LLC/SNAP instead of NULL
encapsulation for various reasons. (BPF, IPv6,
interoperability, etc.)
the code has been used for months in ALTQ and KAME IPv6.
OKed by phk long time ago.
Notes:
svn path=/head/; revision=37939
|
|
|
|
| |
Notes:
svn path=/head/; revision=37778
|
|
|
|
|
|
|
|
|
|
| |
respectively. Most of the longs should probably have been
u_longs, but this changes is just to prevent warnings about
casts between pointers and integers of different sizes, not
to fix poorly chosen types.
Notes:
svn path=/head/; revision=37649
|
|
|
|
|
|
|
|
|
|
|
| |
sizeof(struct bpf_hdr) > 20. 20 is normal on 32-bit systems with
32-bit alignment, but we still assume that the last 2 bytes of the
struct are unnecessary padding on such systems. On systems with
64-bit longs, struct timeval is bloated to 16 bytes, so bpf headers
certainly don't fit in 18 bytes.
Notes:
svn path=/head/; revision=37619
|
|
|
|
| |
Notes:
svn path=/head/; revision=37600
|
|
|
|
| |
Notes:
svn path=/head/; revision=37560
|
|
|
|
| |
Notes:
svn path=/head/; revision=37094
|
|
|
|
|
|
|
| |
maintained mbuf based ppp-deflate.c's have removed this.
Notes:
svn path=/head/; revision=37067
|
|
|
|
| |
Notes:
svn path=/head/; revision=37066
|
|
|
|
|
|
|
| |
problems, which I'll have a go at shortly.
Notes:
svn path=/head/; revision=37065
|
|
|
|
|
|
|
|
| |
left a "break;" out of the last patch
it complains for every loopback packet..
Notes:
svn path=/head/; revision=36994
|
|
|
|
| |
Notes:
svn path=/head/; revision=36992
|
|
|
|
|
|
|
|
| |
even if it looks like it should (backwards compatibility with
old broken code) should get rid of some annoying messags.
Notes:
svn path=/head/; revision=36940
|
|
|
|
| |
Notes:
svn path=/head/; revision=36933
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove lots'o'hacks.
looutput is now static.
Other callers who want to use loopback to allow shortcutting
should call the special entrypoint for this, if_simloop(), which is
specifically designed for this purpose. Using looutput for this purpose
was problematic, particularly with bpf and trying to keep track
of whether one should be using the charateristics of the loopback interface
or the interface (e.g. if_ethersubr.c) that was requesting the loopback.
There was a whole class of errors due to this mis-use each of which had
hacks to cover them up.
Consists largly of hack removal :-)
Notes:
svn path=/head/; revision=36908
|
|
|
|
|
|
|
| |
it may be in the text segment and write protected.
Notes:
svn path=/head/; revision=36775
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
FreeBSD/alpha. The most significant item is to change the command
argument to ioctl functions from int to u_long. This change brings us
inline with various other BSD versions. Driver writers may like to
use (__FreeBSD_version == 300003) to detect this change.
The prototype FreeBSD/alpha machdep will follow in a couple of days
time.
Notes:
svn path=/head/; revision=36735
|
|
|
|
| |
Notes:
svn path=/head/; revision=36726
|
|
|
|
|
|
|
| |
definition.
Notes:
svn path=/head/; revision=36724
|
|
|
|
|
|
|
| |
ipflow(fastforward -> ipflow_fastforward
Notes:
svn path=/head/; revision=36265
|
|
|
|
| |
Notes:
svn path=/head/; revision=36256
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
NetBSD, ported to FreeBSD by Pierre Beyssac <pb@fasterix.freenix.org> and
minorly tweaked by me.
This is a standard part of FreeBSD, but must be enabled with:
"sysctl -w net.inet.ip.fastforwarding=1" ...and of course forwarding must
also be enabled. This should probably be modified to use the zone
allocator for speed and space efficiency. The current algorithm also
appears to lose if the number of active paths exceeds IPFLOW_MAX (256),
in which case it wastes lots of time trying to figure out which cache
entry to drop.
Notes:
svn path=/head/; revision=36192
|
|
|
|
|
|
|
|
|
| |
s/microruntime/microuptime/g
Reviewed by: bde
Notes:
svn path=/head/; revision=36119
|
|
|
|
|
|
|
| |
the warning message before.)
Notes:
svn path=/head/; revision=36078
|
|
|
|
|
|
|
| |
not `__i386'.
Notes:
svn path=/head/; revision=35596
|
|
|
|
|
|
|
|
|
|
|
| |
ioctl handler.
PR: 6466
Reviewed by: phk
Submitted by: Ruslan Ermilov <ru@ucb.crimea.ua>
Notes:
svn path=/head/; revision=35563
|
|
|
|
|
|
|
|
|
|
|
| |
$ ls -l /dev/tun25[4-7]
crw------- 1 fax dialer 52, 254 Apr 27 02:27 /dev/tun254
crw------- 1 fax dialer 52, 255 Apr 27 02:27 /dev/tun255
crw------- 1 fax dialer 52, 0x00010000 Apr 27 02:31 /dev/tun256
crw------- 1 fax dialer 52, 0x00010001 Apr 27 02:31 /dev/tun257
Notes:
svn path=/head/; revision=35472
|
|
|
|
| |
Notes:
svn path=/head/; revision=35256
|
|
|
|
| |
Notes:
svn path=/head/; revision=35210
|
|
|
|
| |
Notes:
svn path=/head/; revision=35067
|
|
|
|
| |
Notes:
svn path=/head/; revision=35064
|
|
|
|
| |
Notes:
svn path=/head/; revision=35060
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Figure out UTC relative to boottime. Four new functions provide
time relative to boottime.
* move "runtime" into struct proc. This helps fix the calcru()
problem in SMP.
* kill mono_time.
* add timespec{add|sub|cmp} macros to time.h. (XXX: These may change!)
* nanosleep, select & poll takes long sleeps one day at a time
Reviewed by: bde
Tested by: ache and others
Notes:
svn path=/head/; revision=35029
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"time" wasn't a atomic variable, so splfoo() protection were needed
around any access to it, unless you just wanted the seconds part.
Most uses of time.tv_sec now uses the new variable time_second instead.
gettime() changed to getmicrotime(0.
Remove a couple of unneeded splfoo() protections, the new getmicrotime()
is atomic, (until Bruce sets a breakpoint in it).
A couple of places needed random data, so use read_random() instead
of mucking about with time which isn't random.
Add a new nfs_curusec() function.
Mark a couple of bogosities involving the now disappeard time variable.
Update ffs_update() to avoid the weird "== &time" checks, by fixing the
one remaining call that passwd &time as args.
Change profiling in ncr.c to use ticks instead of time. Resolution is
the same.
Add new function "tvtohz()" to avoid the bogus "splfoo(), add time, call
hzto() which subtracts time" sequences.
Reviewed by: bde
Notes:
svn path=/head/; revision=34961
|
|
|
|
|
|
|
| |
used.
Notes:
svn path=/head/; revision=34924
|
|
|
|
|
|
|
|
| |
on a frequent enough rate to be annoying. There is a real bug somewhere,
but it looks harmless enough.
Notes:
svn path=/head/; revision=34885
|
|
|
|
|
|
|
| |
self-insufficient.
Notes:
svn path=/head/; revision=34823
|