freebsd-skq/sys/net
archie 982e80577d Examine all occurrences of sprintf(), strcat(), and str[n]cpy()
for possible buffer overflow problems. Replaced most sprintf()'s
with snprintf(); for others cases, added terminating NUL bytes where
appropriate, replaced constants like "16" with sizeof(), etc.

These changes include several bug fixes, but most changes are for
maintainability's sake. Any instance where it wasn't "immediately
obvious" that a buffer overflow could not occur was made safer.

Reviewed by:	Bruce Evans <bde@zeta.org.au>
Reviewed by:	Matthew Dillon <dillon@apollo.backplane.com>
Reviewed by:	Mike Spengler <mks@networkcs.com>
1998-12-04 22:54:57 +00:00
..
bpf_compat.h Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are not 1997-02-22 09:48:43 +00:00
bpf_filter.c * Use explicitly sized types for grovelling around inside packets. 1998-10-31 10:45:03 +00:00
bpf.c Installed the second patch attached to kern/7899 with some changes suggested 1998-11-11 10:04:13 +00:00
bpf.h Change BPF_ALIGNMENT to long, necessary for correct alignment on Alpha. 1998-10-04 21:53:59 +00:00
bpfdesc.h I got another batch of suggestions for cosmetic changes from bde. 1998-11-11 10:56:07 +00:00
bridge.c fix an mbuf leak when using ipfw to filger bridged packets 1998-09-18 20:55:50 +00:00
bridge.h Bring in files for bridging support. 1998-09-12 22:07:47 +00:00
bsd_comp.c
ethernet.h Add preliminary support for IEEE 802.1Q VLAN tagging. It doesn't actually 1998-03-18 01:40:12 +00:00
fddi.h
hostcache.c Back out DIAGNOSTIC changes. 1998-02-06 12:14:30 +00:00
hostcache.h Last major round (Unless Bruce thinks of somthing :-) of malloc changes. 1997-10-12 20:26:33 +00:00
if_arp.h Fixed change prerequisites for <net/if_arp.h>: 1998-01-10 07:29:10 +00:00
if_atm.h update ATM driver. (base version: midway.c 1.67 --> 1.68) 1998-07-29 05:35:16 +00:00
if_atmsubr.c Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
if_disc.c This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
if_dl.h
if_ethersubr.c fix broken loopback code for ddp (again) 1998-08-04 23:17:05 +00:00
if_fddisubr.c Removed unused includes. 1998-06-21 14:53:44 +00:00
if_llc.h
if_loop.c Make sure the packet is aligned correctly for the alpha in if_simloop. 1998-07-12 16:46:52 +00:00
if_media.c Staticize. 1998-02-09 06:11:36 +00:00
if_media.h
if_mib.c Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
if_mib.h
if_ppp.c Merge ppp changes from 2.3.3 -> 2.3.5. I have spotted some more 1998-06-20 16:28:04 +00:00
if_ppp.h
if_pppvar.h This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
if_sl.c Cast pointers to uintptr_t/intptr_t instead of to u_long/long, 1998-07-15 02:32:35 +00:00
if_slvar.h Remove bogus #ifdef INET - SLIP doesn't compile without INET. 1997-12-20 16:44:51 +00:00
if_sppp.h Fixed yet more ioctl breakage due to the type of the `cmd' arg changing 1998-08-15 21:58:09 +00:00
if_spppsubr.c Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
if_tun.c Installed the second patch attached to kern/7899 with some changes suggested 1998-11-11 10:04:13 +00:00
if_tun.h Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108. 1998-04-17 22:37:19 +00:00
if_tunvar.h I got another batch of suggestions for cosmetic changes from bde. 1998-11-11 10:56:07 +00:00
if_types.h
if_var.h Go through the loopback code with a broom.. 1998-06-12 03:48:19 +00:00
if_vlan_var.h Add preliminary support for IEEE 802.1Q VLAN tagging. It doesn't actually 1998-03-18 01:40:12 +00:00
if_vlan.c Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
if.c Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
if.h On most other systems "out there", <net/if.h> does not require the caller 1998-03-21 13:36:20 +00:00
netisr.h Fixed pedantic syntax errors caused by a trailing semicolon in a macro 1998-06-07 11:52:17 +00:00
ppp_comp.h Merge ppp changes from 2.3.3 -> 2.3.5. I have spotted some more 1998-06-20 16:28:04 +00:00
ppp_deflate.c Zap what appears to be a relic of the older version of zlib. The other 1998-06-20 16:55:44 +00:00
ppp_defs.h
ppp_tty.c Missing splx(). 1998-06-20 16:39:35 +00:00
radix.c Fixed printf format errors. 1998-07-11 10:51:01 +00:00
radix.h Unstaticized rn_delete() and rn_lookup(). They are used in dark corners 1997-11-24 13:50:24 +00:00
raw_cb.c Added a used include (in ifdefed code). 1998-06-07 12:02:59 +00:00
raw_cb.h Added #include of <sys/queue.h> so that this file is more "self"-sufficent. 1998-02-03 22:19:35 +00:00
raw_usrreq.c Remove a bunch of variables which were unused both in GENERIC and LINT. 1997-11-07 08:53:44 +00:00
route.c Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108. 1998-04-17 22:37:19 +00:00
route.h Added a forward struct declaration so that this file is less 1998-03-23 13:58:02 +00:00
rtsock.c
slcompress.c Cast pointers to uintptr_t/intptr_t instead of to u_long/long, 1998-07-15 02:32:35 +00:00
slcompress.h Merge ppp changes from 2.3.3 -> 2.3.5. I have spotted some more 1998-06-20 16:28:04 +00:00
slip.h
zlib.c Merge ppp changes from 2.3.3 -> 2.3.5. I have spotted some more 1998-06-20 16:28:04 +00:00
zlib.h Update kernel parts of ppp to ppp-2.3.3. Not much has changed except 1998-03-21 20:56:16 +00:00