ad
42d611dd37
arp_drain: no reason to complain if arp_lock is already held.
2008-10-21 11:22:21 +00:00
hans
c25473a894
if_input needs to be called at splnet(). ok by cube.
2008-10-19 23:28:31 +00:00
hans
b0d4e5c1a7
include bpf headers so that the bpf calls actually do something. ok by cube.
2008-10-16 18:56:56 +00:00
ad
978e1181ad
Use designated initializers for struct accept_filter.
2008-10-14 13:05:44 +00:00
pooka
4a2061c973
POOL_INIT -> pool_init
2008-10-13 19:44:21 +00:00
plunky
d2fcfe2b55
update ip_pcbopts() to use sockopt(9) API.
...
cleans up function and one small fix is that we now stop copying user
options to the mbuf when the _EOL is given, previously this function
would continue to copy options.
2008-10-12 11:15:54 +00:00
plunky
dba87c3cd4
do not sleep while allocating memory here as socket lock is held
2008-10-12 10:23:18 +00:00
pooka
7e5aba5af0
Move uidinfo to its own module in kern_uidinfo.c and include in rump.
...
No functional change to uidinfo.
2008-10-11 13:40:57 +00:00
ad
a92b113db4
tcp_close: rearrange sequence of events slightly to make this atomic.
...
It was possible for a half-destroyed tcpcb to be visble, as softnet_lock
was being dropped.
2008-10-10 10:23:34 +00:00
ad
9fa0e0f258
tcp_delack: test for TF_DELACK.
2008-10-10 10:21:05 +00:00
pooka
308b8af180
POOL_INIT -> pool_init
2008-10-04 00:09:34 +00:00
pooka
e0b14794fc
Hallo, pool_init(). Auf wiedersehen & byebye, link set POOL_INIT().
2008-10-03 16:22:33 +00:00
rmind
b312c56767
PR/39664: Dave Huang: ip_mrouter_done: free hash using hashdone(9).
2008-10-01 16:01:51 +00:00
pooka
03c29b39c0
Don't wrap whole file in INET.
2008-09-25 15:48:57 +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
seanb
f36e2df47a
Wrong route being consulted in one place
...
in ip_forward() after change to rtcache_*().
Restore previous behaviour.
2008-09-05 13:39:12 +00:00
uebayasi
77444ed2d8
Missing "\n" in log(9) messages.
2008-08-28 07:58:05 +00:00
matt
34cedfb2bf
Make the sysctl routines take out softnet_lock before dealing with
...
any data structures.
Change inet6ctlerrmap and zeroin6_addr to const.
2008-08-20 18:35:20 +00:00
plunky
8094317b1b
constify sockopt in the PRCO_SETOPT path
2008-08-16 21:51:43 +00:00
tls
dba208aabd
Change copyright statement to NetBSD 2-clause with correct attribution.
2008-08-10 14:07:41 +00:00
cegger
bbae282081
make this compile as proposed by dholland@
2008-08-07 06:20:14 +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
spz
79462c037e
typo fix in comment (drops the ' in drop's :)
2008-08-04 07:01:05 +00:00
matt
3e368ad90b
Free the socket only after disposing of the PCB.
2008-08-04 06:29:58 +00:00
tls
c5ddeafa76
Unlock reassembly queue before calling sorwakeup(), not after. In unusual
...
cases with in-kernel consumers which might send data on the same socket,
we can deadlock on the reassembly queue otherwise (observed while testing
accept filters).
2008-08-04 04:08:47 +00:00
tls
717f903a98
Add accept filters, ported from FreeBSD by Coyote Point Systems. Add inetd
...
support for specifying an accept filter for a service (mostly as a usage
example, but it can be handy for other things). Manual pages to follow
in a day or so.
OK core@.
2008-08-04 03:55:47 +00:00
matt
34ac358652
Reacquire softnet_lock after calling soabort which returns with the socket
...
unlocked.
2008-07-28 18:41:07 +00:00
cyber
76c8d40dd1
Add IANA allocation and header for RFC 5006 (RA RDNSS) IPv6 Router
...
Advertisement option.
2008-07-11 07:35:05 +00:00
ad
c4e6bfaf85
tcp_input: add a couple of assertions.
2008-07-04 18:22:21 +00:00
ad
4c75eca868
syn_cache_get: remove new endpoint's socket from head's queue if aborting
...
the connection. Should fix KASSERT(so->so_head == NULL).
2008-07-03 15:35:28 +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
dyoung
a8ad22e5d9
Don't cast to void * unnecessarily.
2008-05-22 01:06:39 +00:00
dyoung
518ccec3d5
bzero -> memset, bcopy -> memcpy.
2008-05-13 18:24:01 +00:00
dyoung
0f58320be0
Cosmetic: use __arraycount(). s/0/NULL/ where appropriate. Pass
...
"null" instead of 0 to printf %s. Remove superfluous parentheses
in return statements. Compare pointers with NULL instead of "testing
truth."
2008-05-13 17:51:26 +00:00
dyoung
62c140415f
Cosmetic: compare sa_family with AF_UNSPEC instead of testing truth.
...
Join a line. Compare sa_len with 0 instead of testing truth.
2008-05-11 20:17:59 +00:00
dyoung
df0b11bb4e
Use memset() instead of Bzero().
...
In arplookup1(), put the static sockaddr_inarp onto the stack, and
zero it before use.
2008-05-11 20:16:12 +00:00
taca
fd376618e5
Make sure to clear csum_flags before forward the packet.
...
This change should be fix DIAGNOSTIC kernel's panic when the machine act
as multicast router.
Advised from tls@ and approved by thorpej@.
2008-05-08 08:00:55 +00:00
ad
e071d39c84
- Convert hashinit() to use kmem_alloc(). The hash tables can be large
...
and it's better to not have them in kmem_map.
- Convert a couple of minor items along the way to kmem_alloc().
- Fix some memory leaks.
2008-05-05 17:11:16 +00:00
thorpej
b129a80c20
Simplify the interface to netstat_sysctl() and allocate space for
...
the collated counters using kmem_alloc().
PR kern/38577
2008-05-04 07:22:14 +00:00
ad
2830fe3488
PR kern/38497 Out of memory allocating ksiginfo
...
Work around: don't acquire softnet_lock in protocol drain routines.
2008-05-02 13:40:32 +00:00
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
yamt
4f47226d42
udp_init: don't forget to allocate udp6stat_percpu.
2008-04-26 08:13:59 +00:00
yamt
167fe02fc8
tcp_init: don't forget to allocate tcpstat_percpu.
2008-04-26 08:13:35 +00:00
ad
15e29e981b
Merge the socket locking patch:
...
- Socket layer becomes MP safe.
- Unix protocols become MP safe.
- Allows protocol processing interrupts to safely block on locks.
- Fixes a number of race conditions.
With much feedback from matt@ and plunky@.
2008-04-24 11:38:36 +00:00
thorpej
caf49ea572
Make IPSEC and FAST_IPSEC stats per-cpu. Use <net/net_stats.h> and
...
netstat_sysctl().
2008-04-23 06:09:04 +00:00
thorpej
33326077b1
Use <net/net_stats.h> / netstat_sysctl().
2008-04-23 05:26:50 +00:00
dyoung
71455e2d0d
C99 does not allow u_int8_t bitfields, so use unsigned int, instead.
2008-04-16 20:58:35 +00:00
thorpej
83dd106948
Make IGMP stats per-cpu.
2008-04-15 16:02:03 +00:00
thorpej
881a947288
Make ARP stats per-cpu.
2008-04-15 15:17:54 +00:00
thorpej
1121526b25
Make CARP status per-cpu.
2008-04-15 06:03:28 +00:00