pooka
8f6aa33e32
attach the compat_50_routedomain to make it actually work
2011-02-04 09:57:53 +00:00
matt
4d5d6d9aa5
Add a new AF/PF_ROUTE which is 64-bit clean which makes the routing socket
...
interface (and its associated sysctls) act identically for both 32 and 64 bit
programs. The old unclean one remains for backward compatibility.
2011-02-01 01:39:19 +00:00
pooka
6f53b4a35d
make this happy to compile standalone
2011-01-12 16:12:30 +00:00
pooka
a05de63f6b
Ensure that a) loopback attaches after all the domains have attached
...
b) loopback is configured only after it has attached.
makes tests/net/if_loop work again
2011-01-11 09:24:05 +00:00
pooka
9a17e75e0e
Autoconfigure 127.0.0.1 for lo0.
...
(testing bind/connect/etc. is now possible on a virgin rump kernel
without the need to ifconfig anything)
2011-01-09 12:22:34 +00:00
pooka
284c651488
Separate interface init and domain adding.
2011-01-09 12:20:53 +00:00
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
e7ec49d29a
sockin cannot be loaded the same time as rumpnet_inet because both
...
provide a PF_INET domain. Guess that real inet is more useful and
don't put sockin on the "all components" list.
2010-12-07 17:23:27 +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