\doxysection{ip\+\_\+checksum.\+h}
\label{ip__checksum_8h_source}\index{include/osmocom/netif/ip\_checksum.h@{include/osmocom/netif/ip\_checksum.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{1 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{2 \textcolor{preprocessor}{\#include <stdint.h>}}
\DoxyCodeLine{3 \textcolor{preprocessor}{\#include <netinet/in.h>}}
\DoxyCodeLine{4 }
\DoxyCodeLine{5 uint16\_t osmo\_ip\_checksum\_fast\_csum(\textcolor{keyword}{const} \textcolor{keywordtype}{void} *iph, \textcolor{keywordtype}{unsigned} \textcolor{keywordtype}{int} ihl);}
\DoxyCodeLine{6 uint32\_t osmo\_ip\_checksum\_csum\_partial(\textcolor{keyword}{const} \textcolor{keywordtype}{void} *buff, \textcolor{keywordtype}{int} len, uint32\_t wsum);}
\DoxyCodeLine{7 uint16\_t osmo\_ip\_checksum\_compute\_csum(\textcolor{keyword}{const} \textcolor{keywordtype}{void} *buff, \textcolor{keywordtype}{int} len);}
\DoxyCodeLine{8 }
\DoxyCodeLine{9 uint16\_t osmo\_ip\_checksum\_csum\_ipv6\_magic(\textcolor{keyword}{const} \textcolor{keyword}{struct} in6\_addr *saddr,}
\DoxyCodeLine{10                                           \textcolor{keyword}{const} \textcolor{keyword}{struct} in6\_addr *daddr,}
\DoxyCodeLine{11                                           uint32\_t len, uint8\_t proto, uint32\_t csum);}

\end{DoxyCode}
