remoted diagrams
This commit is contained in:
parent
b5d400ec10
commit
42658c5e5f
1
diags/.gitignore
vendored
1
diags/.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
*.png
|
*.png
|
||||||
|
*.pdf
|
||||||
|
@ -22,22 +22,22 @@ do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# PKTDIAG=pktdiag
|
PKTDIAG=pktdiag
|
||||||
# for i in *\.$PKTDIAG
|
for i in *\.$PKTDIAG
|
||||||
# do
|
do
|
||||||
# PNG=$(echo ${i} | sed "s/$PKTDIAG$/pdf/")
|
PNG=$(echo ${i} | sed "s/$PKTDIAG$/pdf/")
|
||||||
#
|
|
||||||
# if [ ! -f ${PNG} ] || [ $(stat -c "%X" ${PNG}) -lt $(stat -c "%X" ${i}) ]
|
if [ ! -f ${PNG} ] || [ $(stat -c "%X" ${PNG}) -lt $(stat -c "%X" ${i}) ]
|
||||||
# then
|
then
|
||||||
#
|
|
||||||
# echo seqdiag ${i}
|
echo seqdiag ${i}
|
||||||
# packetdiag -Tpdf -a -f $FONT ${i}
|
packetdiag -Tpdf -a -f $FONT ${i}
|
||||||
#
|
|
||||||
# echo touch ${PNG}
|
echo touch ${PNG}
|
||||||
# touch ${PNG}
|
touch ${PNG}
|
||||||
# fi
|
fi
|
||||||
# done
|
done
|
||||||
#
|
|
||||||
# GDOT="gviz-dot"
|
# GDOT="gviz-dot"
|
||||||
# for i in *\.$GDOT
|
# for i in *\.$GDOT
|
||||||
# do
|
# do
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
diagram {
|
diagram {
|
||||||
edge_length = 300;
|
edge_length = 300;
|
||||||
default_fontsize = 13; // default value is 11
|
default_fontsize = 16; // default value is 11
|
||||||
span_height = 10; // default value is 40
|
span_height = 8; // default value is 40
|
||||||
|
node_height = 60; // default value is 40
|
||||||
activation = none;
|
activation = none;
|
||||||
|
|
||||||
// Numbering edges automaticaly
|
// Numbering edges automaticaly
|
||||||
@ -11,12 +12,26 @@ diagram {
|
|||||||
default_note_color = lightblue;
|
default_note_color = lightblue;
|
||||||
|
|
||||||
|
|
||||||
client; remoted; transportd; service;
|
client [label = "client\nlocal"];
|
||||||
|
remoted [label = "remoted\nlocal"];
|
||||||
|
transportd [label = "transportd\n(ex: tcpd)\nlocal"];
|
||||||
|
transportd2 [label = "transportd\n(ex: tcpd)\nremote"];
|
||||||
|
remoted2 [label = "remoted\nremote"];
|
||||||
|
service [label = "service\nremote"];
|
||||||
|
|
||||||
client -> remoted [label = "service-name"];
|
client -> remoted [label = "service-name (ex: pongd)"];
|
||||||
client -> remoted [label = "REMOTED_VAR=URI"];
|
client -> remoted [label = "REMOTED_VAR=URI
|
||||||
client -> remoted [label = "END"];
|
ex: tcp://user:password@example.com:9000", fontsize=13];
|
||||||
remoted -> transportd [label = "connect URI"];
|
client -> remoted [label = "END (mark the end of the options)"
|
||||||
|
, rightnote = "Remoted: authenticates, authorizes, determines the right transport daemon and
|
||||||
|
applies forwarding rules", fontsize=13];
|
||||||
|
remoted -> transportd [label = "connect URI + service name"];
|
||||||
|
transportd -> transportd2 [label = "connection init
|
||||||
|
service name + URI"];
|
||||||
|
transportd2 -> remoted2 [label = "connection request
|
||||||
|
service name + URI"];
|
||||||
|
remoted2 -> transportd2 [label = "authorization (yes|no)"];
|
||||||
|
transportd2 -> transportd [label = "connection established"];
|
||||||
transportd -> remoted [label = "socket"];
|
transportd -> remoted [label = "socket"];
|
||||||
remoted -> client [label = "socket"];
|
remoted -> client [label = "socket"];
|
||||||
client -> service [label = "connection"];
|
client -> service [label = "connection"];
|
||||||
|
Binary file not shown.
13
diags/remoted_end.pktdiag
Normal file
13
diags/remoted_end.pktdiag
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
packetdiag {
|
||||||
|
colwidth = 64
|
||||||
|
node_height = 60
|
||||||
|
node_width = 15
|
||||||
|
default_fontsize = 16; // default value is 11
|
||||||
|
|
||||||
|
// basic header (type then length)
|
||||||
|
0-7: type\n1 byte [color = "#CCEECC"]
|
||||||
|
8-23: length\n2 bytes [color = "#CCEECC"]
|
||||||
|
|
||||||
|
// payload
|
||||||
|
24-63: END\n3 bytes [color = "#CCCCEE"]
|
||||||
|
}
|
13
diags/remoted_init.pktdiag
Normal file
13
diags/remoted_init.pktdiag
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
packetdiag {
|
||||||
|
colwidth = 64
|
||||||
|
node_height = 60
|
||||||
|
node_width = 15
|
||||||
|
default_fontsize = 16; // default value is 11
|
||||||
|
|
||||||
|
// basic header (type then length)
|
||||||
|
0-7: type\n1 byte [color = "#CCEECC"]
|
||||||
|
8-23: length\n2 bytes [color = "#CCEECC"]
|
||||||
|
|
||||||
|
// payload
|
||||||
|
24-63: service name\nn bytes [color = "#CCCCEE"]
|
||||||
|
}
|
13
diags/remoted_options.pktdiag
Normal file
13
diags/remoted_options.pktdiag
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
packetdiag {
|
||||||
|
colwidth = 64
|
||||||
|
node_height = 60
|
||||||
|
node_width = 15
|
||||||
|
default_fontsize = 16; // default value is 11
|
||||||
|
|
||||||
|
// basic header (type then length)
|
||||||
|
0-7: type\n1 byte [color = "#CCEECC"]
|
||||||
|
8-23: length\n2 bytes [color = "#CCEECC"]
|
||||||
|
|
||||||
|
// payload
|
||||||
|
24-63: environment variable (one per packet)\nex: REMOTED_URI=tcp://user:pass@host.example.com:9000\nn bytes [color = "#CCCCEE"]
|
||||||
|
}
|
Reference in New Issue
Block a user