lwIP  2.1.0
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

◆ IP_HDR_GET_VERSION

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

This operates on a void* by loading the first byte