lwIP  2.0.1
Lightweight IP stack
ip.h File Reference
#include "lwip/arch.h"

Macros

#define IP_HDR_GET_VERSION(ptr)   ((*(u8_t*)(ptr)) >> 4)
 

Detailed Description

IP protocol definitions

Macro Definition Documentation

#define IP_HDR_GET_VERSION (   ptr)    ((*(u8_t*)(ptr)) >> 4)

This operates on a void* by loading the first byte