Browse Source

Plan 9 from Bell Labs 2013-10-03

David du Colombier 7 years ago
2 changed files with 150 additions and 0 deletions
  1. 3 0
  2. 147 0

+ 3 - 0

@@ -119,6 +119,9 @@
+.\" avoid a lone heading at page bottom 3v
 .}X 0 "\\$1"
 .nr)E 2
 \&\Xhtml <H4>\\$1 \|\\$2 \|\\$3 \|\\$4 \|\\$5 \|\\$6\Xhtml </H4>

+ 147 - 0

@@ -0,0 +1,147 @@
+.TH SDP 3
+sdp \- secure datagram protocol
+.B bind -a #E\fIspec\fP /net
+.sp 0.3v
+.B /net/sdp/clone
+.B /net/sdp/log
+.BI /net/sdp/ n
+.BI /net/sdp/ n /data
+.BI /net/sdp/ n /control
+.BI /net/sdp/ n /ctl
+.BI /net/sdp/ n /rstats
+.BI /net/sdp/ n /stats
+.BI /net/sdp/ n /status
+.I sdp
+device provides the interface to the Secure Datagram Protocol (SDP).
+SDP (un)compresses and (de-)encrypts packets.
+.I Spec
+is an integer from 0 to 15 identifying a stack.
+Each stack is independent of all others:
+the only information transfer between them is via programs that
+mount multiple stacks.
+Normally a system uses only one stack.
+However multiple stacks can be used for debugging
+new networks or implementing firewalls or proxy
+The top level directory contains a
+.B clone
+file, a
+.B log
+file, and subdirectories numbered from zero to the number of connections
+opened for this protocol.
+Opening the
+.B clone
+file reserves a connection.  The file descriptor returned from the
+.IR open (2)
+will point to the control file,
+.BR ctl ,
+of the newly allocated connection.
+.B ctl
+returns a text
+string representing the number of the
+Connections may be used either to listen for incoming calls
+or to initiate calls to other machines.
+A connection is controlled by writing text strings to the associated
+.B ctl
+After a connection has been established data may be read from
+and written to
+.BR data .
+A connection can be actively established using the
+.B connect
+message (see also
+.IR dial (2)).
+A connection can be established passively by first
+using an
+.B announce
+message (see
+.IR dial (2))
+to bind to a local port and then
+opening the
+.B listen
+file (see
+.IR dial (2))
+to receive incoming calls.
+The following control messages are supported:
+.TF "outsecret \fIsecret
+.BI accept " file"
+Accept an incoming encrypted connection on
+.IR file ,
+typically a
+.B data
+.BI dial " file"
+Initiate a new encrypted connection on
+.IR file ,
+typically a UDP
+.B data
+.BI drop " permil"
+Randomly drop approximately one of every
+.I permil
+output packets,
+thus simulating network errors.
+.BI cipher " algorithm"
+Use ciphering
+.IR algorithm ;
+choices are
+.LR null ,
+.LR des_56_cbc ,
+.LR rc4_128 ,
+.LR rc4_256 .
+.BI auth " algorithm"
+Use authentication
+.IR algorithm ;
+choices are
+.LR null ,
+.LR hmac_sha1_96 ,
+.LR hmac_md5_96 .
+.BI comp " algorithm"
+Use compression
+.IR algorithm ;
+choices are
+.L null
+.LR thwack .
+.BI insecret " secret"
+.I secret
+to decrypt incoming packets.
+.BI outsecret " secret"
+.I secret
+to encrypt outgoing packets.
+.IR dial (2),
+.IR ip (3)
+.IR "Robust Data Compression of Network Packets" ,
+Sean Dorward and Sean Quilan, Bell Labs, Lucent Technologies,
+.BR .
+.B /sys/src/9/port/devsdp.c