fenner
2163f66f9a
Size temp var correctly; buf[4*sizeof "123"] is not long enough
...
to store "192.252.119.189\0".
1996-05-02 05:31:13 +00:00
ache
8a5de28c05
inet_ntoa buffer was evaluated twice in log_in_vain, fix it.
...
Thanx to: jdp
1996-04-27 18:19:12 +00:00
pst
67931eee29
Logging UDP and TCP connection attempts should not be enabled by default.
...
It's trivial to create a denial of service attack on a box so enabled.
These messages, if enabled at all, must be rate-limited. (!)
1996-04-09 07:01:53 +00:00
phk
1eff72b85f
Log TCP syn packets for ports we don't listen on.
...
Controlled by: sysctl net.inet.tcp.log_in_vain: 1
Log UDP syn packets for ports we don't listen on.
Controlled by: sysctl net.inet.udp.log_in_vain: 1
Suggested by: Warren Toomey <wkt@cs.adfa.oz.au>
1996-04-04 10:46:44 +00:00
dg
3f0638f73b
Move or add #include <queue.h> in preparation for upcoming struct socket
...
changes.
1996-03-11 15:13:58 +00:00
bde
113a24d243
Uniformized pr_ctlinput protosw functions. The third arg is now `void
...
*' instead of caddr_t and it isn't optional (it never was). Most of the
netipx (and netns) pr_ctlinput functions abuse the second arg instead of
using the third arg but fixing this is beyond the scope of this round
of changes.
1995-12-16 02:14:44 +00:00
phk
9cb413a93c
Another mega commit to staticize things.
1995-12-14 09:55:16 +00:00
bde
63875293f2
Removed unnecessary #includes of vm stuff. Most of them were once
...
prerequisites for <sys/sysctl.h>.
subr_prof.c:
Also replaced #include of <sys/user.h> by #include of <sys/resourcevar.h>.
1995-12-06 23:37:44 +00:00
bde
fd57258459
Fixed recent staticizations. Some protypes for static functions were
...
left in headers and not staticized.
1995-11-16 09:51:22 +00:00
phk
db2c71245d
New style sysctl & staticize alot of stuff.
1995-11-14 20:34:56 +00:00
wollman
1d9235770f
Merge 4.4-Lite-2: always check the UDP checksum if it is present, even
...
if we are not generating checksums. (Save a test in the input path.)
1995-09-22 19:56:26 +00:00
olah
a34f5ed305
Add a sanity check for the UDP length field in order to prevent
...
malformed UDP packets to panic the kernel.
Reviewed by: davidg, wollman
Obtained from: dab@berserkly.cray.com (David A. Borman) via end2end list
1995-08-17 22:09:14 +00:00
rgrimes
c86f0c7a71
Remove trailing whitespace.
1995-05-30 08:16:23 +00:00
dg
522567dac1
Replaced some bcopy()'s with memcpy()'s so that gcc while inline/optimize.
1995-05-09 13:35:48 +00:00
dg
b8a73effc2
Changed in_pcblookuphash() to not automatically call in_pcblookup() if
...
the lookup fails. Updated callers to deal with this. Call in_pcblookuphash
instead of in_pcblookup() in in_pcbconnect; this improves performance of
UDP output by about 17% in the standard case.
1995-05-03 07:16:53 +00:00
dg
919fdebd0e
Implemented PCB hashing. Includes new functions in_pcbinshash, in_pcbrehash,
...
and in_pcblookuphash.
1995-04-09 01:29:31 +00:00
bde
289f11acb4
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
...
(except in netccitt, netiso and netns) and most of the warnings from
`gcc -Wnested-externs'. Fix all the bugs found. There were no serious
ones.
1995-03-16 18:17:34 +00:00
wollman
b834398cc6
spl back down in unusual out-of-memory condition in udp_output().
...
Obtained from: Stevens, vol. 2, exercise 23.4 (solution p. 1083)
1995-02-16 01:47:36 +00:00
wollman
021dfc17d7
Don't add back in the IP header length to ip_len; icmp_error will do it
...
for us.
Obtained from: Stevens, vol. 2, p. 774
1995-02-16 01:25:06 +00:00
wollman
d9804d3f5c
Add lots of useful MIB variables and a few not-so-useful ones for
...
completeness.
1995-02-16 00:27:47 +00:00
phk
f3c1ed2327
GCC cleanup.
...
Reviewed by:
Submitted by:
Obtained from:
1994-10-02 17:48:58 +00:00
dg
8d205697aa
Added $Id$
1994-08-02 07:55:43 +00:00
rgrimes
2469c867a1
The big 4.4BSD Lite to FreeBSD 2.0.0 (Development) patch.
...
Reviewed by: Rodney W. Grimes
Submitted by: John Dyson and David Greenman
1994-05-25 09:21:21 +00:00
rgrimes
8fb65ce818
BSD 4.4 Lite Kernel Sources
1994-05-24 10:09:53 +00:00