Add support for parsing IP Authentication Header
This commit is contained in:
@@ -40,6 +40,7 @@ static inline uint8_t ipv4_hdr_get_version(const struct ip *hdr)
|
||||
return hdr->ip_v;
|
||||
}
|
||||
|
||||
// IP Options are included in the hdr_len field
|
||||
static inline uint8_t ipv4_hdr_get_hdr_len(const struct ip *hdr)
|
||||
{
|
||||
return hdr->ip_hl << 2;
|
||||
|
||||
Reference in New Issue
Block a user