\hypertarget{struct__ntp__packet__t}{}\doxysection{\+\_\+ntp\+\_\+packet\+\_\+t Struct Reference}
\label{struct__ntp__packet__t}\index{\_ntp\_packet\_t@{\_ntp\_packet\_t}}


A custom data type to represent N\+TP packet header format.  




Collaboration diagram for \+\_\+ntp\+\_\+packet\+\_\+t\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=185pt]{struct__ntp__packet__t__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
uint8\+\_\+t \mbox{\hyperlink{struct__ntp__packet__t_a0665ba424dc8f578bfadcab0de4997d0}{li\+\_\+vn\+\_\+mode}}
\item 
uint8\+\_\+t \mbox{\hyperlink{struct__ntp__packet__t_a2e9258b657f047baa0f97f5710a8e1f5}{stratum}}
\item 
uint8\+\_\+t \mbox{\hyperlink{struct__ntp__packet__t_afd6444192598a7f42eb00cf2750bf167}{poll}}
\item 
uint8\+\_\+t \mbox{\hyperlink{struct__ntp__packet__t_a3458b6b16680f42207559b619b9abe78}{precision}}
\item 
uint32\+\_\+t \mbox{\hyperlink{struct__ntp__packet__t_a0eabfa8de093575327623755f1b20c4e}{root\+\_\+delay}}
\item 
uint32\+\_\+t \mbox{\hyperlink{struct__ntp__packet__t_a1f2906d66bcc51888fd96289dafe2de7}{root\+\_\+dispersion}}
\item 
uint32\+\_\+t \mbox{\hyperlink{struct__ntp__packet__t_a105a9985f70ee5ba4bf14209a001e13e}{ref\+\_\+id}}
\item 
\mbox{\hyperlink{ntputil_8c_a2c0a80096a0661d352a513a192ab45db}{ntp\+\_\+timestamp\+\_\+t}} \mbox{\hyperlink{struct__ntp__packet__t_a6ae40a7c937ee5681d50baeff64c278e}{ref\+\_\+ts}}
\item 
\mbox{\hyperlink{ntputil_8c_a2c0a80096a0661d352a513a192ab45db}{ntp\+\_\+timestamp\+\_\+t}} \mbox{\hyperlink{struct__ntp__packet__t_a0afa24cf6ef7aee007276057690da4f5}{org\+\_\+ts}}
\item 
\mbox{\hyperlink{ntputil_8c_a2c0a80096a0661d352a513a192ab45db}{ntp\+\_\+timestamp\+\_\+t}} \mbox{\hyperlink{struct__ntp__packet__t_a6ec3b61a8bce58a51f8a3d04fabcd664}{recv\+\_\+ts}}
\item 
\mbox{\hyperlink{ntputil_8c_a2c0a80096a0661d352a513a192ab45db}{ntp\+\_\+timestamp\+\_\+t}} \mbox{\hyperlink{struct__ntp__packet__t_a44dee7de5e85a5c89866c10f66548a31}{xmit\+\_\+ts}}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
A custom data type to represent N\+TP packet header format. 

N\+TP Packet Header Format (\href{https://www.ietf.org/rfc/rfc5905.txt}{\texttt{ https\+://www.\+ietf.\+org/rfc/rfc5905.\+txt}} p.\+18) 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+ $\vert$\+LI $\vert$ VN $\vert$\+Mode $\vert$ Stratum $\vert$ Poll $\vert$ Precision $\vert$ +-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+ $\vert$ Root Delay $\vert$ +-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+ $\vert$ Root Dispersion $\vert$ +-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+ $\vert$ Reference ID $\vert$ +-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+ $\vert$ $\vert$
\begin{DoxyItemize}
\item Reference Timestamp (64) + $\vert$ $\vert$ +-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+ $\vert$ $\vert$
\item Origin Timestamp (64) + $\vert$ $\vert$ +-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+ $\vert$ $\vert$
\item Receive Timestamp (64) + $\vert$ $\vert$ +-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+ $\vert$ $\vert$
\item Transmit Timestamp (64) + $\vert$ $\vert$ +-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+ $\vert$ $\vert$ . . . Extension Field 1 (variable) . . . $\vert$ $\vert$ +-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+ $\vert$ $\vert$ . . . Extension Field 2 (variable) . . . $\vert$ $\vert$ +-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+ $\vert$ Key Identifier $\vert$ +-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+ $\vert$ $\vert$ $\vert$ dgst (128) $\vert$ $\vert$ $\vert$ +-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+-\/+ 
\end{DoxyItemize}

Definition at line 100 of file ntputil.\+c.



\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{struct__ntp__packet__t_a0665ba424dc8f578bfadcab0de4997d0}\label{struct__ntp__packet__t_a0665ba424dc8f578bfadcab0de4997d0}} 
\index{\_ntp\_packet\_t@{\_ntp\_packet\_t}!li\_vn\_mode@{li\_vn\_mode}}
\index{li\_vn\_mode@{li\_vn\_mode}!\_ntp\_packet\_t@{\_ntp\_packet\_t}}
\doxysubsubsection{\texorpdfstring{li\_vn\_mode}{li\_vn\_mode}}
{\footnotesize\ttfamily uint8\+\_\+t \+\_\+ntp\+\_\+packet\+\_\+t\+::li\+\_\+vn\+\_\+mode}



Definition at line 102 of file ntputil.\+c.

\mbox{\Hypertarget{struct__ntp__packet__t_a0afa24cf6ef7aee007276057690da4f5}\label{struct__ntp__packet__t_a0afa24cf6ef7aee007276057690da4f5}} 
\index{\_ntp\_packet\_t@{\_ntp\_packet\_t}!org\_ts@{org\_ts}}
\index{org\_ts@{org\_ts}!\_ntp\_packet\_t@{\_ntp\_packet\_t}}
\doxysubsubsection{\texorpdfstring{org\_ts}{org\_ts}}
{\footnotesize\ttfamily \mbox{\hyperlink{ntputil_8c_a2c0a80096a0661d352a513a192ab45db}{ntp\+\_\+timestamp\+\_\+t}} \+\_\+ntp\+\_\+packet\+\_\+t\+::org\+\_\+ts}



Definition at line 110 of file ntputil.\+c.

\mbox{\Hypertarget{struct__ntp__packet__t_afd6444192598a7f42eb00cf2750bf167}\label{struct__ntp__packet__t_afd6444192598a7f42eb00cf2750bf167}} 
\index{\_ntp\_packet\_t@{\_ntp\_packet\_t}!poll@{poll}}
\index{poll@{poll}!\_ntp\_packet\_t@{\_ntp\_packet\_t}}
\doxysubsubsection{\texorpdfstring{poll}{poll}}
{\footnotesize\ttfamily uint8\+\_\+t \+\_\+ntp\+\_\+packet\+\_\+t\+::poll}



Definition at line 104 of file ntputil.\+c.

\mbox{\Hypertarget{struct__ntp__packet__t_a3458b6b16680f42207559b619b9abe78}\label{struct__ntp__packet__t_a3458b6b16680f42207559b619b9abe78}} 
\index{\_ntp\_packet\_t@{\_ntp\_packet\_t}!precision@{precision}}
\index{precision@{precision}!\_ntp\_packet\_t@{\_ntp\_packet\_t}}
\doxysubsubsection{\texorpdfstring{precision}{precision}}
{\footnotesize\ttfamily uint8\+\_\+t \+\_\+ntp\+\_\+packet\+\_\+t\+::precision}



Definition at line 105 of file ntputil.\+c.

\mbox{\Hypertarget{struct__ntp__packet__t_a6ec3b61a8bce58a51f8a3d04fabcd664}\label{struct__ntp__packet__t_a6ec3b61a8bce58a51f8a3d04fabcd664}} 
\index{\_ntp\_packet\_t@{\_ntp\_packet\_t}!recv\_ts@{recv\_ts}}
\index{recv\_ts@{recv\_ts}!\_ntp\_packet\_t@{\_ntp\_packet\_t}}
\doxysubsubsection{\texorpdfstring{recv\_ts}{recv\_ts}}
{\footnotesize\ttfamily \mbox{\hyperlink{ntputil_8c_a2c0a80096a0661d352a513a192ab45db}{ntp\+\_\+timestamp\+\_\+t}} \+\_\+ntp\+\_\+packet\+\_\+t\+::recv\+\_\+ts}



Definition at line 111 of file ntputil.\+c.

\mbox{\Hypertarget{struct__ntp__packet__t_a105a9985f70ee5ba4bf14209a001e13e}\label{struct__ntp__packet__t_a105a9985f70ee5ba4bf14209a001e13e}} 
\index{\_ntp\_packet\_t@{\_ntp\_packet\_t}!ref\_id@{ref\_id}}
\index{ref\_id@{ref\_id}!\_ntp\_packet\_t@{\_ntp\_packet\_t}}
\doxysubsubsection{\texorpdfstring{ref\_id}{ref\_id}}
{\footnotesize\ttfamily uint32\+\_\+t \+\_\+ntp\+\_\+packet\+\_\+t\+::ref\+\_\+id}



Definition at line 108 of file ntputil.\+c.

\mbox{\Hypertarget{struct__ntp__packet__t_a6ae40a7c937ee5681d50baeff64c278e}\label{struct__ntp__packet__t_a6ae40a7c937ee5681d50baeff64c278e}} 
\index{\_ntp\_packet\_t@{\_ntp\_packet\_t}!ref\_ts@{ref\_ts}}
\index{ref\_ts@{ref\_ts}!\_ntp\_packet\_t@{\_ntp\_packet\_t}}
\doxysubsubsection{\texorpdfstring{ref\_ts}{ref\_ts}}
{\footnotesize\ttfamily \mbox{\hyperlink{ntputil_8c_a2c0a80096a0661d352a513a192ab45db}{ntp\+\_\+timestamp\+\_\+t}} \+\_\+ntp\+\_\+packet\+\_\+t\+::ref\+\_\+ts}



Definition at line 109 of file ntputil.\+c.

\mbox{\Hypertarget{struct__ntp__packet__t_a0eabfa8de093575327623755f1b20c4e}\label{struct__ntp__packet__t_a0eabfa8de093575327623755f1b20c4e}} 
\index{\_ntp\_packet\_t@{\_ntp\_packet\_t}!root\_delay@{root\_delay}}
\index{root\_delay@{root\_delay}!\_ntp\_packet\_t@{\_ntp\_packet\_t}}
\doxysubsubsection{\texorpdfstring{root\_delay}{root\_delay}}
{\footnotesize\ttfamily uint32\+\_\+t \+\_\+ntp\+\_\+packet\+\_\+t\+::root\+\_\+delay}



Definition at line 106 of file ntputil.\+c.

\mbox{\Hypertarget{struct__ntp__packet__t_a1f2906d66bcc51888fd96289dafe2de7}\label{struct__ntp__packet__t_a1f2906d66bcc51888fd96289dafe2de7}} 
\index{\_ntp\_packet\_t@{\_ntp\_packet\_t}!root\_dispersion@{root\_dispersion}}
\index{root\_dispersion@{root\_dispersion}!\_ntp\_packet\_t@{\_ntp\_packet\_t}}
\doxysubsubsection{\texorpdfstring{root\_dispersion}{root\_dispersion}}
{\footnotesize\ttfamily uint32\+\_\+t \+\_\+ntp\+\_\+packet\+\_\+t\+::root\+\_\+dispersion}



Definition at line 107 of file ntputil.\+c.

\mbox{\Hypertarget{struct__ntp__packet__t_a2e9258b657f047baa0f97f5710a8e1f5}\label{struct__ntp__packet__t_a2e9258b657f047baa0f97f5710a8e1f5}} 
\index{\_ntp\_packet\_t@{\_ntp\_packet\_t}!stratum@{stratum}}
\index{stratum@{stratum}!\_ntp\_packet\_t@{\_ntp\_packet\_t}}
\doxysubsubsection{\texorpdfstring{stratum}{stratum}}
{\footnotesize\ttfamily uint8\+\_\+t \+\_\+ntp\+\_\+packet\+\_\+t\+::stratum}



Definition at line 103 of file ntputil.\+c.

\mbox{\Hypertarget{struct__ntp__packet__t_a44dee7de5e85a5c89866c10f66548a31}\label{struct__ntp__packet__t_a44dee7de5e85a5c89866c10f66548a31}} 
\index{\_ntp\_packet\_t@{\_ntp\_packet\_t}!xmit\_ts@{xmit\_ts}}
\index{xmit\_ts@{xmit\_ts}!\_ntp\_packet\_t@{\_ntp\_packet\_t}}
\doxysubsubsection{\texorpdfstring{xmit\_ts}{xmit\_ts}}
{\footnotesize\ttfamily \mbox{\hyperlink{ntputil_8c_a2c0a80096a0661d352a513a192ab45db}{ntp\+\_\+timestamp\+\_\+t}} \+\_\+ntp\+\_\+packet\+\_\+t\+::xmit\+\_\+ts}



Definition at line 112 of file ntputil.\+c.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
mqtt/\mbox{\hyperlink{ntputil_8c}{ntputil.\+c}}\end{DoxyCompactItemize}
