I want to do something like that:

But I'm having a hard time with the arrow. I was wondering if there was a way to do it without hardcoding every coordinates.
Here is the code of the multipart rectangle:
\documentclass[]{article}
\usepackage{tikz}
\usepackage[skip=2pt]{caption}
\usetikzlibrary{positioning,decorations.pathreplacing, shapes, arrows}
\settowidth{\textwidth}{Multipart rectangles with no line shortening}
\begin{document}
\begin{tikzpicture}[auto, node distance=1cm,
rect/.style={
rectangle split,
rectangle split parts=3,
rectangle split horizontal,
rectangle split part fill={green!50,green!50,gray!50},
draw=black,
rounded corners,
text width = 3cm
}]
% Split Rectangle
\node[rect] {
\centerline{ether}
\nodepart {two} \centerline{ip}
\nodepart[text width=5cm]{three}
};
\end{tikzpicture}
\end{document}

etherandip. How should I do since there is nofoo.first? (also what manual are you talking about ? I searched for tikz manual on google but didn't found anything) – irevoire Jun 20 '19 at 18:31foo.text split north. The PGF & TikZ manual is here, see around page 796 (in version 3.1.1). You might be interested in this question too. – frougon Jun 20 '19 at 19:13