pooka
3589617ac9
agr(4) support
2010-12-08 20:20:16 +00:00
pooka
7ed2407316
Actually, unlike e.g. carp, bridge can be its own component since
...
it doesn't want to join the protosw party. We can deal with other
linkhappy stuff with weak symbols.
(where is our modular networking stack?)
2010-12-08 18:06:43 +00:00
pooka
9b108f4af3
Support bridging. As usual, it would be nice if this could be a
...
separate component, but King Ifdef doesn't let us.
2010-12-07 20:39:07 +00:00
pooka
53fd187690
Allow creation with NULL busname (to be later set with SIOCSLINKSTR).
2010-12-06 10:48:18 +00:00
pooka
7e29270f53
claim ENOTTY for PRU_CONTROL for now
2010-12-05 18:01:46 +00:00
pooka
fdb9b6e9bf
Revert previous: it introduces a dependency between sockin and the
...
netinet rump components and will have to be done another way.
2010-12-05 17:59:12 +00:00
pooka
6292852036
Rename Makefile.rump${x} to Makefile.rump${x}comp for consistency.
2010-12-05 16:53:46 +00:00
pooka
2665f62b03
use in_control() for PRU_CONTROL
2010-12-05 15:54:50 +00:00
pooka
cac1c6e392
Don't bother asserting: if we create the thread without KTHREAD_MPSAFE,
...
it's not going to be MPSAFE.
2010-12-01 15:13:24 +00:00
pooka
d9aab6f8fc
Support destroy in shmif.
2010-11-17 17:51:22 +00:00
pooka
b4e3a3178b
Use vmem for keeping track of unit numbers so that wildcard allocation
...
works correctly.
2010-11-16 20:08:24 +00:00
pooka
891314e269
"fix" completely crackheaded code w/ uninitialized use,
...
missed as usual by the wonderful -g -O0
2010-11-15 23:59:06 +00:00
pooka
d6787585af
remember to commit this file too
2010-11-15 23:51:06 +00:00
pooka
32b08b37e0
un-\240
2010-11-15 22:49:33 +00:00
pooka
9f725ef6cb
* make interface a cloner
...
* use SIOCSLINKSTR for supplying bus filename in case of cloned if
TODO: downing interface, unclone, and some tweaks for robustness
2010-11-15 22:48:06 +00:00
pooka
4a79b4abf7
add -h which prints only the bus header info
2010-11-15 22:45:23 +00:00
pooka
1ff4490a1c
Make interface support ifconfig {down,destroy} and generally make
...
it a little less eager to panic.
2010-11-15 20:23:11 +00:00
pooka
62d92a1913
support compat ioctl's (OOOOOlalaSIOC stuff)
2010-11-07 19:47:18 +00:00
pooka
a500a55cf2
Make virtif a cloner so that it can be brough to life also with
...
"ifconfig create". As previously, virt<n> interfaces with the
host's /dev/tap<n> (I guess it could be made explicit with
"ifconfig media", but leave it this way for now).
2010-10-19 19:19:41 +00:00
pooka
cb4b70f7d6
Attach PF_LINK domain. ifconfig wants to play with it, plus there's
...
no reason not to anyway.
2010-10-19 15:40:15 +00:00
pooka
942c727880
Prefault bus pages in driver attachment. This seems to work around
...
weird corruption I've been seeing (most likely a host kernel bug).
For more details, see thread at:
http://mail-index.netbsd.org/tech-kern/2010/08/17/msg008749.html
2010-08-17 20:42:47 +00:00
pooka
c2fbfedc83
Fix hopefully last off-by-one: if we fill the bus, we must also
...
advance the "first" pointer. This problem triggered only if the
bus was filled in the first round, since the first pointer is at
the end-of-bus only for the bootstrap round.
2010-08-17 12:59:53 +00:00
pooka
86ea9bb1a9
* fix off-by-wrap case where current datagram aligns exactly with
...
the end of the bus
* clarify the "can we still use the device's next pointer" calculation
and move it to its own routine
* sprinkle dprintf
2010-08-17 11:35:23 +00:00
pooka
1108237392
simplify, improve, etc.
2010-08-16 17:33:52 +00:00
pooka
d2a293bcc2
reset pktsize each loop
2010-08-15 21:57:58 +00:00
pooka
962bc2f851
reset wrap where necessary
2010-08-15 21:41:39 +00:00
pooka
50fa67ff5f
Move the lockops together with the interface -- they are needed
...
only at runtime.
2010-08-15 18:55:03 +00:00
pooka
9ae53a340e
Take kernel lock before passing data to if_input. This is in line
...
with IPL_NET interrupts generally not being MPSAFE.
2010-08-15 18:48:38 +00:00
pooka
dc24e61692
introduce a sleep to trying to grab the bus
2010-08-15 18:47:38 +00:00
pooka
b1559dbb99
Don't do timestamping with buslock held. it's the little things ...
2010-08-15 18:40:41 +00:00
pooka
86d75f6695
truncate pcap output file
2010-08-13 11:45:47 +00:00
pooka
b97bdf9424
Include a timestamp in the frame header. When converting to pcap,
...
it can give some idea of when packets were sent.
nb. it's the sending host's timestamp, not an observer timestamp
like in the typical pcap case.
2010-08-13 10:13:44 +00:00
pooka
ce68b7ae71
Include a pointer to the beginning of the buffer and add support
...
to the packet dumper. This helps in situations where the juicy
details are in a bus multiple generations old.
2010-08-12 21:41:47 +00:00
pooka
38800eaa1c
further simplify & fix calculations
2010-08-12 18:39:54 +00:00
pooka
6461f6dd05
Recognize ``-'' for stdout. allows piping output to tcpdump -r -
2010-08-12 18:22:40 +00:00
pooka
d5a83df798
* include a magic number in the bus format
...
* simplify offset calculations by making them start from beginning of data
2010-08-12 18:17:23 +00:00
pooka
36e63e6874
Make shmif memory access slightly more sane. Create a header which
...
is shared by the interface and the bus analyzer.
2010-08-12 17:33:55 +00:00
pooka
3b2b85fd24
pass Wall
2010-08-12 17:00:41 +00:00
pooka
65028c6bf3
Add a little utility to convert shmif bus traffic to a pcap file
...
which can be then examined with tcpdump -r, wireshark, etc.
2010-08-11 12:41:09 +00:00
pooka
e2f111efb1
* remove some magic numbers from the code
...
* include bus version number in header just in case we want to examine
bus traffic at some point in the future
2010-08-11 12:10:39 +00:00
pooka
855ec3e9a1
Change bus header a little: reserve only 32bits for the lock and
...
use 32bit atomic ops to handle it. Begin data from 0x10 instead
of 0x14.
2010-08-11 10:30:30 +00:00
pooka
6fe4bb4ba8
Support carp. It would be nice to support this as its own component,
...
but there's about 1000 lines of #ifdef which disagree with my wish.
2010-08-10 21:50:10 +00:00
pooka
10881f3354
Attach 1 loop instead of 0.
...
not tested on animals
2010-08-10 21:48:23 +00:00
pooka
066824f414
* use atomic ops instead of __cpu_simple_luck
...
* this interface is un-IFF_SIMPLEX
2010-08-10 18:17:12 +00:00
pooka
8a20e6b473
* improve diagnostic print
...
* deal with a tap quirk when it returns 0 bytes
2010-08-10 18:06:10 +00:00
pooka
316bb4eafe
* print interface number, backend path and ethernet address for dmesg
...
* make kassert more demanding
2010-07-29 22:48:11 +00:00
pooka
334470517a
* increase bus size so that we don't wrap so quickly when NFS
...
flushes writes
* verbosize debug print a bit
2010-07-29 18:30:39 +00:00
rmind
bcc65ff09f
Split-off IPv4 re-assembly mechanism into a separate module. Abstract
...
into ip_reass_init(), ip_reass_lookup(), etc (note: abstraction is not
yet complete). No functional changes to the actual mechanism.
OK matt@
2010-07-13 22:16:10 +00:00
kefren
826653c190
Add MPLS support, proposed on tech-net@ a couple of days ago
...
Welcome to 5.99.33
2010-06-26 14:24:27 +00:00
joerg
936abdd9c5
Fix typo
2010-04-05 16:35:30 +00:00