diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-27 00:39:19 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2018-04-27 00:39:19 +0200 |
commit | 284a60cf65523b3a868a58cf2edc97d190a95608 (patch) | |
tree | e51a5502faf49a5ab94f7249ca43a8bd340089a7 /slides/images/udp-packet.pgf | |
parent | 02e2780d233c2d73fcbd32a2a970d5a6f3696224 (diff) | |
download | iot-workshop-284a60cf65523b3a868a58cf2edc97d190a95608.tar.gz iot-workshop-284a60cf65523b3a868a58cf2edc97d190a95608.tar.bz2 iot-workshop-284a60cf65523b3a868a58cf2edc97d190a95608.tar.xz iot-workshop-284a60cf65523b3a868a58cf2edc97d190a95608.zip |
wip
Diffstat (limited to 'slides/images/udp-packet.pgf')
-rw-r--r-- | slides/images/udp-packet.pgf | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/slides/images/udp-packet.pgf b/slides/images/udp-packet.pgf new file mode 100644 index 0000000..405f805 --- /dev/null +++ b/slides/images/udp-packet.pgf @@ -0,0 +1,32 @@ +\scalebox{0.5}{ + +\begin{tikzpicture}[ +every node/.style={font=\bfseries} +] + +\path +(-6.5em, 2em) node[draw, rectangle, minimum width=5em, minimum height=2em] {Offsets} +(-6.5em, 0em) node[draw, rectangle, minimum width=5em, minimum height=2em] {Octet} +(-2em, 2em) node[draw, rectangle, minimum width=4em, minimum height=2em] {Octet} +(-2em, 0em) node[draw, rectangle, minimum width=4em, minimum height=2em] {Bit} + +(16em, -2em) node[draw, rectangle, minimum width=32em, minimum height=2em] {source port} +(48em, -2em) node[draw, rectangle, minimum width=32em, minimum height=2em] {destination port} +(16em, -4em) node[draw, rectangle, minimum width=32em, minimum height=2em] {length} +(48em, -4em) node[draw, rectangle, minimum width=32em, minimum height=2em] {checksum} +; + +\foreach \x in {0,...,3} + \node[draw, rectangle, minimum width=16em, minimum height=2em] at (\x * 16em + 8em, 2em) {\scriptsize \x}; +\foreach \x in {0,...,31} + \node[draw, rectangle, minimum width=2em, minimum height=2em] at (\x * 2em + 1em, 0em) {\scriptsize \x}; + +\node[draw, rectangle, minimum width=4em, minimum height=2em] at (-2em, -2em) {\scriptsize 0}; +\node[draw, rectangle, minimum width=4em, minimum height=2em] at (-2em, -4em) {\scriptsize 32}; + +\node[draw, rectangle, minimum width=5em, minimum height=2em] at (-6.5em, -2em) {\scriptsize 0}; +\node[draw, rectangle, minimum width=5em, minimum height=2em] at (-6.5em, -4em) {\scriptsize 4}; + +\end{tikzpicture} + +} |