Commit Graph

19 Commits

Author SHA1 Message Date
wiz
71bde56c0c Actually, we seem to be talking of ourselves, so Fx -> Nx. 2004-04-29 12:47:59 +00:00
wiz
8bf69b0edd FreeBSD -> Fx; use - for hyphen, not \-. 2004-04-29 12:44:46 +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
snj
5450e2b5cf Bump date for last, remove extra space, and new sentence, new line. 2004-04-25 02:48:10 +00:00
jonathan
2aa6745551 We now have more than one TCP socket option: TCP_MAXSEG, with further
socket options (TCP_MD5SIG) in the works. Break TCP socket-options
into a list, and add a list element for TCP_MAXSEG, with text borrowed
from FreeBSD. (NB: our implementation may need improving to match that
rather general text.)

In preparation for adding list elements for TCP_MD5SIG.
2004-04-25 02:13:37 +00:00
jhawk
95b91af82d Wow, Dd had not been bumped in 10 years! By rights this manpage should
discuss our various TCP options and recommended configurations in great
detail...

Add Xr to syctl(3) and a bulletted list summarizing some of the
TCP parameters that may be adjusted that are documented therein.
2003-11-23 07:25:11 +00:00
agc
075022b349 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22309, verified by myself.
2003-08-07 10:30:41 +00:00
wiz
472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
perry
43e0efbdeb "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-04 22:38:15 +00:00
wrstuden
578bd7c516 historical BSD sounds better than BSD historical 2002-07-18 03:22:11 +00:00
wrstuden
b1950d5c05 Update to match change in TCP_NODELAY inheritance for passive sockets. 2002-07-18 03:20:51 +00:00
ross
4fa402f116 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-13 08:17:26 +00:00
wiz
ac61c2aac2 Sort sections, sort SEE ALSO, paragraph fixes and misc. improvements. 2001-09-22 16:36:21 +00:00
itojun
2abe5dee91 refer inet6(4) and ip6(4) where necessary. 2000-05-22 02:01:34 +00:00
garbled
c1d21e28ed More and more of .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-16 01:19:14 +00:00
fair
a576d424e0 Marathon man page editing session to fix broken .Xr's, add important
references, add a little white space here & there for readability,
clean up some mdoc(7) macro usage and so on. Whew!
1998-04-30 08:50:03 +00:00
jtc
d158bf0ae2 Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
1994-11-30 16:22:03 +00:00
mycroft
55b7fa6d0b Add RCS identifiers. 1993-08-01 07:54:52 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00