jdolecek
b10eb8758b
Disable the H.323 proxy again - it's too buggy to be supported option
...
for now. Suggested by Matthew Green and Bernd Ernesti.
2002-04-01 18:07:10 +00:00
jdolecek
af2aedbe22
put back ip_h323_pxy.c - the QNX licence seems to be okay upon
...
further examination
2002-04-01 16:50:08 +00:00
jdolecek
c56211c431
add __KERNEL_RCSID()
2002-04-01 16:47:46 +00:00
jdolecek
69b18217c3
add RCS IDs
2002-04-01 16:45:24 +00:00
jdolecek
905b8db7c7
add __KERNEL_RCSID()
2002-04-01 16:44:28 +00:00
jdolecek
cedc0276dc
Import H.323 proxy of IPFilter 3.4.25. Upon closer examination,
...
the QNX licence seems to be allow both non-commercial and commercial
use actually.
According to Darren, the H.323 proxy code is buggy ATM, but is imported
here for reference anyway.
2002-04-01 16:29:31 +00:00
itojun
2f227734df
do not consider /32 address itself as broadcast.
...
with /32 address, in_addr == in_broadaddr.
2002-03-30 00:40:32 +00:00
christos
4f0742e306
Change the multicast/broadcast test to happen later, and when we are
...
in listen mode. Fixes panic with telnet ::1 port, where the port is an
ipv4 open port.
2002-03-24 17:09:01 +00:00
itojun
bd5373f4e2
no need to check in_broadaddr/IN_MULTICAST in dropwithreset label.
...
suggested by enami
2002-03-22 04:31:01 +00:00
itojun
1f14081709
make sure we don't touch "ip" in IPv6 path
2002-03-22 03:21:13 +00:00
christos
9c8babbd46
Drop connections to the broadcast address. From BUGTRAQ. This is a security
...
issue because it can by-pass ipf rules unintentionally.
2002-03-19 14:35:20 +00:00
itojun
38f3d28842
have tcp6_drain
2002-03-15 09:25:41 +00:00
martin
58d564bc8c
Add MSS clamping to the IP Filter NAT subsystem.
...
Configured by a new option "mssclamp" in NAT rules, like:
map pppoe0 192.168.1.0/24 -> 0/32 mssclamp 1452
This is based on work by Xiaodan Tang <xtang@qnx.com>.
2002-03-14 21:46:54 +00:00
martti
dd7a744e5a
Added (char *) for pointer arithmetic
2002-03-14 12:34:29 +00:00
martti
3e033bc0f1
Removed unused proxy file
2002-03-14 12:34:25 +00:00
martti
83b3487b70
Upgraded IPFilter to 3.4.25
2002-03-14 12:32:36 +00:00
itojun
7f7fe98c2c
support tcp_log_refused for IPv6. From: Andrew Brown <atatat@atatdot.net>
2002-03-12 04:36:47 +00:00
martin
0039b1300a
KNFify my last change.
2002-03-11 10:06:12 +00:00
thorpej
a180cee23b
Pool deals fairly well with physical memory shortage, but it doesn't
...
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map). Try to deal with this:
* Group all information about the backend allocator for a pool in a
separate structure. The pool references this structure, rather than
the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
to become available, but will still fail if it cannot callocate KVA
space for the pages. If this happens, carefully drain all pools using
the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
some pages, and use that information to make draining easier and more
efficient.
* Get rid of PR_URGENT. There was only one use of it, and it could be
dealt with by the caller.
From art@openbsd.org .
2002-03-08 20:48:27 +00:00
itojun
ac36f7cb2c
bring in latest ALTQ from kjc. ALTQify some of the drivers.
2002-03-05 04:12:57 +00:00
sommerfeld
3406f0a3dd
The "gif*" tunnelling interface does everything ipip does.
...
Move usage example from ipip.4 to gif.4
Excise ipip and stitch up the scars.
2002-03-04 13:24:06 +00:00
thorpej
1caa35aa0f
In tcp_segsize(), move a label so that option length is considered
...
when using the default TCP MSS as well. From Matt Thomas.
2002-03-01 22:54:09 +00:00
thorpej
10444ca48f
In in_savemkludge() and in_restoremkludge(), don't insert into a new
...
list without removing from the old one first.
From Matt Thomas.
2002-03-01 22:51:28 +00:00
martin
75c5a16cfc
Enforce a lower bound of 32 for tcp_mssdflt.
...
This avoids kernel crashes when we don't handle nonsensial values
like 0 gracefully. Better check here once beforehand than having to
check for non meaningful values in time critical paths (like tcp_output).
Fixes PR 15709.
2002-02-28 20:26:17 +00:00
itojun
8832af6e59
correctly enforce ipsec policy check on forwarding case.
...
From: Greg Troxel <gdt@ir.bbn.com>, Bill Chiarchiaro <wjc@work.cleartech.com>
2002-02-25 02:17:55 +00:00
martin
a7d662b71c
Clear M_BCAST and M_MCAST on outgoing mbufs.
...
Don't copy ttl from the inner packet to the encapsulating packet. Make
the outer ttl sysctl'able. This should close PR 14269 from Jasper Wallace
(change partly from there) and it makes traceroute work over gre tunnels.
2002-02-24 17:22:20 +00:00
christos
61e29fb60a
Sean amended his patch not to include the IFAFREE()
2002-02-21 22:39:17 +00:00
christos
2446cd0b68
PR/15662: Sean Boudreau: make sure we clean all routes of an interface when
...
we change its ip address.
2002-02-21 21:59:16 +00:00
itojun
9c68db2bfc
suppress source quence message, based on router-req RFC (also could be abused
...
as DoS traffic generator). from kjc/kame
2002-02-21 08:39:33 +00:00
thorpej
35a343b018
IFF_POINTTOPOINT interfaces can also transmit packets to broadcast
...
destinations.
2002-02-07 21:47:45 +00:00
thorpej
eb79ee01a8
ip_mloopback(): process the delayed checksum on the copy, not
...
the original mbuf.
2002-02-06 18:00:01 +00:00
itojun
d303c80bfb
correct bad ip checksum on multicast loopback packet. PR14597
2002-01-31 07:45:22 +00:00
martti
b035470c38
Fixed initialization
2002-01-24 08:24:59 +00:00
martti
7a8f11612c
Re-sync with IPFilter
2002-01-24 08:23:40 +00:00
martti
b9920d0f43
Upgraded IPFilter to 3.4.23
2002-01-24 08:21:30 +00:00
martti
b0499f9062
Import IPFilter 3.4.23
2002-01-24 08:18:28 +00:00
itojun
a709c83618
place NRL copyright notice itself, not a reference to it.
2002-01-24 02:12:29 +00:00
itojun
ae1b9c29e9
make sure to check address family on route cache. with IPv4 mapped
...
address we can see both AF_INET/INET6.
2002-01-22 03:53:55 +00:00
itojun
1cc58965b6
don't panic when there's no interface address exist for the specified multicast
...
outgoing interface (ia == NULL after IFP_TO_IA).
historic behavior (up to revision 1.43) was to use 0.0.0.0 as source address,
but it seems like a mistake according to RFC1112/1122.
2002-01-08 10:05:13 +00:00
itojun
28922b9973
use radix table for inbound tunnel lookup (would increase performance
...
for machines with a lot of tunnels).
update route cache for IPvX-over-IPv6 tunnel on path MTU discovery.
snyc with kame
2001-12-21 06:30:43 +00:00
itojun
af7e7f7b93
whitespace. protect from multiple inclusion. sync with kame
2001-12-21 04:11:24 +00:00
itojun
9fe96e61e6
call rip_ctlinput on icmp4 inputs
2001-12-21 04:07:25 +00:00
itojun
745e191850
move protosw fragment for gif/stf to their own source code.
...
reduce #ifdef in stf code. sync with kame
2001-12-21 03:21:50 +00:00
itojun
f05aaf1533
have packed attribute to protocol structs. sync with kame
2001-12-21 02:52:18 +00:00
itojun
dde7f16c1c
have rip_ctlinput to notify routing changes to raw sockets
...
(protosw change to be done). sync with kame
2001-12-21 02:51:47 +00:00
itojun
f504aee318
comment and whitespace. sync with kame
2001-12-21 02:51:08 +00:00
itojun
a36173e7a6
whitespace. sync with kame
2001-12-21 02:50:28 +00:00
itojun
33429d0612
correct timing to increment icmp6 MIB variables. sync with kame
2001-12-07 10:10:43 +00:00
jmcneill
078a8c0cc3
Fix TCP segment size computation. From Rick Byersm, PR kern/14799.
2001-12-03 01:45:43 +00:00
darrenr
dd626d89c9
recompute hlen after calling pfil_run_hooks() in case ip_hl was changed.
2001-11-28 09:25:13 +00:00
itojun
c23ea6c341
update outgoing ifp, only if tunnel mode ipsec is used. this is to
...
honor IP_MULTICAST_IF setsockopt on ipsec-over-multicast. sync with kame
2001-11-21 06:28:08 +00:00
lukem
0fa231134c
- replace "defopt" with "defparam" for options which must take a value,
...
as config(8) will warn for value-less defparam options
- minor whitespace/formatting cleanup
- consolidate opt_tcp_recvspace.h and opt_tcp_sendspace.h into opt_tcp_space.h
2001-11-20 14:34:18 +00:00
lukem
2565646230
don't need <sys/types.h> when including <sys/param.h>
2001-11-15 09:47:59 +00:00
lukem
ea1cd7eb08
add RCSIDs
2001-11-13 00:32:34 +00:00
itojun
e2df911079
do not grab packet to joined multicast group, when ip6_dst and in6p_laddr
...
mismatches. it makes the behavior more closer to 4.4BSD IPv4 code.
sync with kame
2001-11-07 06:30:50 +00:00
matt
da5a70805c
Convert netinet to not use the internal <sys/queue.h> field names
...
but instead the access macros. Use the FOREACH macros where appropriate.
2001-11-04 20:55:25 +00:00
matt
47577dca93
Change a few variable/tables to const since they are read-only.
2001-11-04 13:42:27 +00:00
matt
af71a3871d
Keep only one mtu_table (the two were identical except for
...
one value - 65280).
2001-11-04 13:38:50 +00:00
itojun
e4b5b62a3d
array boundary overflow on the use of IPv4 mapped address. from simonb
2001-11-02 02:37:50 +00:00
kml
77c99e8c60
Add in support for timing out IPv4 routes added due to redirects,
...
as discussed in tech-net several weeks ago. It turned out that
KAME had already added this functionality to the IPv6 stack, so
I followed their example in adding the sysctl variables
net.inet.icmp.rediraccept and net.inet.icmp.redirtimeout.
2001-10-30 06:41:09 +00:00
simonb
5f717f7c33
Don't need to include <uvm/uvm_extern.h> just to include <sys/sysctl.h>
...
anymore.
2001-10-29 07:02:30 +00:00
itojun
c7e6405a34
remove unused codepath (unifdef -UUDP6)
2001-10-24 06:04:08 +00:00
itojun
7bbe09e1d4
it may fix PR14124.
2001-10-24 05:56:49 +00:00
matt
bd61b6ad50
Make tcp_outflags & tcpstates const.
2001-10-20 03:19:41 +00:00
matt
fa2b333dc7
Make the two MTU tables const and change their type to u_int (one was int
...
and one was u_long!).
2001-10-20 03:18:17 +00:00
thorpej
e45efd967f
Deprecate the "m_act" alias of "m_nextpkt" (m_act is a historical
...
name), and just use m_nextpkt everywhere.
2001-10-18 20:17:24 +00:00
itojun
91498ffec5
implement IPV6_V6ONLY socket option from draft-ietf-ipngwg-rfc2553bis-03.txt.
...
IPV6_BINDV6ONLY (netbsd only) is deprecated, but still work just like before.
2001-10-15 09:51:15 +00:00
chs
80373b7e54
don't depend on other headers to include sys/proc.h for us.
2001-09-28 11:59:51 +00:00
thorpej
d679590033
Split the pre-computed ifnet checksum flags into Tx and Rx directions.
...
Add capabilities bits that indicate an interface can only perform
in-bound TCPv4 or UDPv4 checksums. There is at least one Gig-E chip
for which this is true (Level One LXT-1001), and this is also the
case for the Intel i82559 10/100 Ethernet chips.
2001-09-17 17:26:59 +00:00
wiz
456dff6cb8
Spell 'occurred' with two 'r's.
2001-09-16 16:34:23 +00:00
martin
7ac197f6e6
Fix typo in comment.
2001-09-16 08:49:50 +00:00
thorpej
050e9de009
Use callouts for SYN cache timers, rather than traversing time queues
...
in tcp_slowtimo().
2001-09-11 21:03:20 +00:00
thorpej
4745c7f252
Update copyrights.
2001-09-10 22:45:46 +00:00
thorpej
6d0e813f6c
Use callouts for TCP timers, rather than traversing the list of
...
all open TCP connections in tcp_slowtimo() (which is called 2x
per second). It's fairly rare for TCP timers to actually fire,
so saving this list traversal is good, especially if you want
to scale to thousands of open connections.
2001-09-10 22:14:26 +00:00
thorpej
413e5cb878
Initialize TCP timer variables in a new function, tcp_timer_init().
2001-09-10 20:36:43 +00:00
thorpej
3d9c42775e
Add explicit initialization of TCP timer state. A noop right now.
2001-09-10 20:19:54 +00:00
thorpej
45e02f5ee8
Split tcp_timers() into multiple functions, one for each timer,
...
and call it directly from tcp_slowtimo() (via a table) rather
than going through tcp_userreq().
This will allow us to call TCP timers directly from callouts,
in a future revision.
2001-09-10 20:15:14 +00:00
thorpej
7446fd2bc8
Change the way receive idle time and round trip time are measured.
...
Instead of incrementing t_idle and t_rtt in tcp_slowtimo(), we now
take a timstamp (via tcp_now) and use subtraction to compute the
delta when we actually need it (using unsigned arithmetic so that
tcp_now wrapping is handled correctly).
Based on similar changes in FreeBSD.
2001-09-10 15:23:09 +00:00
thorpej
7a89a34393
Enable Congestion Window Monitoring by default.
2001-09-10 04:43:35 +00:00
thorpej
783db90019
Use a callout for the delayed ACK timer, and delete tcp_fasttimo().
...
Expose the delayed ACK timer as net.inet.tcp.delack_ticks.
2001-09-10 04:24:24 +00:00
itojun
ef0be725b3
if I'm bridging and got a packet to interface address on if A from if B,
...
advertise MAC address for if A with ARP reply.
2001-08-20 03:13:45 +00:00
thorpej
c82b0994e7
Permit weaker interface matches for incoming ARP packets if the packet was
...
received on an interface that is part of a bridge and we find an ifaddr on
an interface that is part of the same bridge.
2001-08-17 21:47:57 +00:00
itojun
74ad87bc53
gif interface now uses generic software interrupt
...
(on archs that support it). also, make gif ALTQ-capable on outgoing.
sync with kame, comments from thorpej.
2001-08-16 17:45:25 +00:00
yamt
5d1c2fff55
fix cksum error of udp and tcp packet with ip options
2001-08-11 12:26:50 +00:00
itojun
57030e2f12
cache IPsec policy on in6?pcb. most of the lookup operations can be bypassed,
...
especially when it is a connected SOCK_STREAM in6?pcb. sync with kame.
2001-08-06 10:25:00 +00:00
thorpej
35df06a642
Carve off the code that builds a TCP data packet into its own
...
function, and inline it, except when profiling... so we can
profile it.
2001-07-31 02:25:22 +00:00
thorpej
938720eea4
Count the number of times we "self-quench" (ip_output() returns
...
ENOBUFS), and don't inline tcp_segsize() if profiling.
2001-07-31 00:57:45 +00:00
itojun
cad488d032
sync gif interface code with latest kame.
...
IFF_RUNNING is clearified. attach/detach logic is more clearner.
the old code mistakenly set IFF_UP by itself, now the behavior is gone.
2001-07-29 05:08:32 +00:00
itojun
66c75f4967
do not check in_dstaddr on in_{add,scrub}prefix, otherwise linklocal
...
address manipulation could choke. sync with kame
2001-07-27 02:04:08 +00:00
thorpej
52654926a4
Slight cosmetic change.
2001-07-26 21:47:04 +00:00
itojun
fd5e7077a3
allocate ipsec policy buffer attached to pcb in in*_pcballoc, before
...
giving anyone accesses to pcb (do not reveal an inconsistent ones).
sync with kame
2001-07-25 23:28:02 +00:00
itojun
49f2e6958f
g/c #if 0'ed fragment. sync with kame.
2001-07-25 06:05:16 +00:00
enami
4b21362a47
Remove an obsolete comment.
2001-07-25 00:13:16 +00:00
itojun
ddf920093e
wrap IPv6 code by #ifdef INET6
2001-07-23 15:20:41 +00:00
itojun
489df53efe
use in6_maxmtu, not in_maxmtu, for IPv6 mss computation
2001-07-23 15:17:58 +00:00
itojun
6338419cfb
manage IFA_ROUTE on interface address better, so that we can
...
provide a better support for multiple address with the same prefix better.
(like 10.0.0.1/8 and 10.0.0.2/8 on the same interface)
continuation of PR 13311.
remove irrelevant #if 0'ed segment for PR 10427.
2001-07-22 16:18:31 +00:00
wiz
a9356936b4
seperate -> separate
2001-07-22 13:33:58 +00:00
enami
5e40498018
Add missing counting up of ``socket buffer is full'' counter when
...
failed to sbappendaddr().
2001-07-17 02:44:00 +00:00
itojun
09ddb6a1f1
do not #ifdef in headers. usr.sbin/trpt needs it.
2001-07-09 07:53:20 +00:00
abs
03aaf3d8b4
Rename TCPDEBUG to TCP_DEBUG, defopt TCP_DEBUG and TCP_NDEBUG, and
...
make all usage of tcp_trace dependent on TCP_DEBUG - resulting in
a 31K saving on an INET enabled i386 kernel.
2001-07-08 16:18:56 +00:00