Commit Graph

9259 Commits

Author SHA1 Message Date
kleink
681b62c2ce POSIX-2001: Add restrict keywords to gettimeofday(2) and setitimer(2);
further deprecate struct timezone usage by changing `tzp' argument to
gettimeofday() to void *; align utimes(2) declaration by changing `times`
argument from struct timeval * to struct timeval[2].  From Murray
Armfield in PR standards/25331.

In due curse, reflect these changes in futimes(2), lutimes(2), and
settimeofday(2).
2004-04-27 01:12:44 +00:00
jonathan
887b782b0b Initial commit of a port of the FreeBSD implementation of RFC 2385
(MD5 signatures for TCP, as used with BGP).  Credit for original
FreeBSD code goes to Bruce M. Simpson, with FreeBSD sponsorship
credited to sentex.net.  Shortening of the setsockopt() name
attributed to Vincent Jardin.

This commit is a minimal, working version of the FreeBSD code, as
MFC'ed to FreeBSD-4. It has received minimal testing with a ttcp
modified to set the TCP-MD5 option; BMS's additions to tcpdump-current
(tcpdump -M) confirm that the MD5 signatures are correct.  Committed
as-is for further testing between a NetBSD BGP speaker (e.g., quagga)
and industry-standard BGP speakers (e.g., Cisco, Juniper).


NOTE: This version has two potential flaws. First, I do see any code
that verifies recieved TCP-MD5 signatures.  Second, the TCP-MD5
options are internally padded and assumed to be 32-bit aligned. A more
space-efficient scheme is to pack all TCP options densely (and
possibly unaligned) into the TCP header ; then do one final padding to
a 4-byte boundary.  Pre-existing comments note that accounting for
TCP-option space when we add SACK is yet to be done. For now, I'm
punting on that; we can solve it properly, in a way that will handle
SACK blocks, as a separate exercise.

In case a pullup to NetBSD-2 is requested, this adds sys/netipsec/xform_tcp.c
,and modifies:

sys/net/pfkeyv2.h,v 1.15
sys/netinet/files.netinet,v 1.5
sys/netinet/ip.h,v 1.25
sys/netinet/tcp.h,v 1.15
sys/netinet/tcp_input.c,v 1.200
sys/netinet/tcp_output.c,v 1.109
sys/netinet/tcp_subr.c,v 1.165
sys/netinet/tcp_usrreq.c,v 1.89
sys/netinet/tcp_var.h,v 1.109
sys/netipsec/files.netipsec,v 1.3
sys/netipsec/ipsec.c,v 1.11
sys/netipsec/ipsec.h,v 1.7
sys/netipsec/key.c,v 1.11
share/man/man4/tcp.4,v 1.16
lib/libipsec/pfkey.c,v 1.20
lib/libipsec/pfkey_dump.c,v 1.17
lib/libipsec/policy_token.l,v 1.8
sbin/setkey/parse.y,v 1.14
sbin/setkey/setkey.8,v 1.27
sbin/setkey/token.l,v 1.15

Note that the preceding two revisions to tcp.4 will be
required to cleanly apply this diff.
2004-04-25 22:25:03 +00:00
kleink
3e7f30c118 POSIX-2001: Change the `who' argument to [gs]etpriority(2) from int
to id_t.  Partially addressing PR standards/25216 from Murray Armfield.
2004-04-25 22:18:08 +00:00
christos
0b1d0cb383 Add -DSMALL so that this can be used in libhack. 2004-04-25 06:45:29 +00:00
atatat
990f278f7a Remove dynamic sysctl node version 0 from the tree. It seemed okay at
first, but quickly showed its shortcomings.  The version 1 node we're
now using should be good for a while.
2004-04-25 05:47:52 +00:00
kleink
37fa02ea0d Bump to 1.0: incompatible pci_devinfo() argument change. 2004-04-24 09:57:13 +00:00
kleink
7407d114f9 Catch up with the kernel: new buffer length argument to pci_devinfo(). 2004-04-24 09:56:36 +00:00
christos
f0f6798596 sprinkle const. 2004-04-23 17:54:02 +00:00
christos
dea77b1806 sprinkle const 2004-04-23 15:23:26 +00:00
wiz
af1b524517 Bump date for previous. 2004-04-23 14:52:42 +00:00
christos
36d9d2a4de adjust to constification of cgetent() 2004-04-23 14:49:18 +00:00
christos
b3a5c6932f Adjust to constification of db_name vector. 2004-04-23 14:48:07 +00:00
christos
2bab61681c Ansify and add change db_name vector from char ** to const char * const * 2004-04-23 14:47:52 +00:00
christos
75f2f1640d adjust to constification. 2004-04-23 14:47:23 +00:00
simonb
9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
simonb
04680727b1 s/this this/this/. 2004-04-23 02:48:12 +00:00
kleink
8b6d4dd0ae Xref statvfs(5). 2004-04-21 21:25:59 +00:00
wiz
3274408555 Whitespace nits; fix a minus; remove unnecessary {}. 2004-04-21 12:18:23 +00:00
wiz
1c276b3fae Mark up NULL, and fix a minus. 2004-04-21 12:16:00 +00:00
wiz
bb32d7ba63 Drop trailing whitespace. 2004-04-21 12:10:36 +00:00
wiz
6cbd2718d7 Use mdoc macros instead of roff to mark up table;
mark up some more stuff.
2004-04-21 11:45:42 +00:00
jdc
eb71bd67da Add missing mvin* and mvwin* manual pages. 2004-04-21 06:24:32 +00:00
kim
293fb86ada Formatting tweaks to make things line up yet not have columns
run into each other.  Fix one typo while here.
2004-04-21 02:46:34 +00:00
christos
6bd1d6d4db Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
wiz
58da84e9bf Bump date for previous. 2004-04-21 00:21:04 +00:00
wiz
74eeae1bcf Drop trailing whitespace; null -> nul; & -> \*[Am] 2004-04-21 00:19:40 +00:00
christos
887ab9a1b5 bump. 2004-04-21 00:02:46 +00:00
christos
4e510a4ef6 protect fgetstr 2004-04-21 00:02:26 +00:00
christos
6321f42fe9 Add a generalized version of fgetln that can stop at an arbitrary delimiter,
and implement fgetln on top of that.
2004-04-21 00:01:57 +00:00
atatat
b91680c172 The API to hostid that libc provides may involve a "long", but the
interface the kernel provides to libc (and the rest of userland) is an
"int".  Therefore, stop pretending that it's a long, since that can
incur bizarre failure modes if the types also don't have the same size
(sparc64, alpha, etc).
2004-04-19 13:16:42 +00:00
wiz
71cdf6adc0 Fix typo in xref. 2004-04-19 11:27:03 +00:00
lukem
968e09b852 Document RLIMIT_SBSIZE. 2004-04-19 01:53:21 +00:00
matt
d07ed6425d Add sbsize login capability. 2004-04-18 18:21:43 +00:00
lukem
1f560b89c0 Append to AFLAGS rather than setting AINC. 2004-04-18 04:26:15 +00:00
wiz
962fdd9cb4 Remove duplicate word, from jfb@openbsd via jmc@openbsd. 2004-04-15 08:13:29 +00:00
kleink
84c861c7a5 Add documentation for %v. Noted by Havard Eidnes in PR bin/25180. 2004-04-14 21:59:39 +00:00
wiz
6677b3582e Add missing "-". 2004-04-14 13:40:30 +00:00
itojun
05e937a343 remove unneeded refs to rfc2553. jmc 2004-04-14 08:07:29 +00:00
itojun
66909f0052 remove prototype decl for removed function 2004-04-14 04:46:04 +00:00
itojun
777d124a65 remove unused code 2004-04-14 04:45:28 +00:00
itojun
8803684aa2 document AI_NUMERICSERV 2004-04-14 04:42:35 +00:00
itojun
a1b7e86ab4 implement AI_NUMERICSERV (as defined in RFC3493) 2004-04-14 04:37:06 +00:00
wiz
6f852e37a7 One too many punctuation fixed in previous. 2004-04-13 23:03:22 +00:00
wiz
f2d94d5597 Punctuation fixes; mark up NULL. 2004-04-13 23:02:28 +00:00
he
30f13a8751 Avoid using preprocessing conditionals in a macro argument list at least
as long as all ports have not yet been converted to using gcc 3.3.3.

Build bug discovered when building for vax.
2004-04-11 09:10:58 +00:00
atatat
8d5507a13f Weak aliases for sysctlfoobar() functions. 2004-04-08 05:45:26 +00:00
atatat
11d2a71805 Descriptions for user.* sysctl nodes. Mostly copied from sysctl(3). 2004-04-08 04:10:44 +00:00
christos
9717f6662e check fflush() return code (from Julian Coleman) 2004-04-07 17:27:10 +00:00
ross
317058e147 Ignore errors when making tags here with the override target. (Now matches
the default target in bsd.dep.mk, which dashes the ctags commands.)
2004-04-07 03:49:16 +00:00
wiz
2569049f22 Add comma after "i.e.". 2004-04-04 23:41:23 +00:00