INET Framework for OMNeT++/OMNEST
lwip_icmp.h File Reference
#include "lwip/opt.h"
#include "lwip/pbuf.h"
#include "lwip/ip_addr.h"
#include "lwip/netif.h"

Classes

struct  inet::tcp::icmp_echo_hdr
 This is the standard ICMP header only that the u32_t data is splitted to two u16_t like ICMP echo needs it. More...
 

Namespaces

 inet
 Copyright (c) 2005 Jan Ringo�, www.ringos.cz.
 
 inet::tcp
 

Macros

#define ICMP_ER   0 /* echo reply */
 
#define ICMP_DUR   3 /* destination unreachable */
 
#define ICMP_SQ   4 /* source quench */
 
#define ICMP_RD   5 /* redirect */
 
#define ICMP_ECHO   8 /* echo */
 
#define ICMP_TE   11 /* time exceeded */
 
#define ICMP_PP   12 /* parameter problem */
 
#define ICMP_TS   13 /* timestamp */
 
#define ICMP_TSR   14 /* timestamp reply */
 
#define ICMP_IRQ   15 /* information request */
 
#define ICMP_IR   16 /* information reply */
 
#define ICMPH_TYPE(hdr)   ((hdr)->type)
 
#define ICMPH_CODE(hdr)   ((hdr)->code)
 
#define ICMPH_TYPE_SET(hdr, t)   ((hdr)->type = (t))
 Combines type and code to an u16_t. More...
 
#define ICMPH_CODE_SET(hdr, c)   ((hdr)->code = (c))
 

Enumerations

enum  inet::tcp::icmp_dur_type {
  inet::tcp::ICMP_DUR_NET = 0, inet::tcp::ICMP_DUR_HOST = 1, inet::tcp::ICMP_DUR_PROTO = 2, inet::tcp::ICMP_DUR_PORT = 3,
  inet::tcp::ICMP_DUR_FRAG = 4, inet::tcp::ICMP_DUR_SR = 5
}
 
enum  inet::tcp::icmp_te_type { inet::tcp::ICMP_TE_TTL = 0, inet::tcp::ICMP_TE_FRAG = 1 }
 

Macro Definition Documentation

◆ ICMP_DUR

#define ICMP_DUR   3 /* destination unreachable */

◆ ICMP_ECHO

#define ICMP_ECHO   8 /* echo */

◆ ICMP_ER

#define ICMP_ER   0 /* echo reply */

◆ ICMP_IR

#define ICMP_IR   16 /* information reply */

◆ ICMP_IRQ

#define ICMP_IRQ   15 /* information request */

◆ ICMP_PP

#define ICMP_PP   12 /* parameter problem */

◆ ICMP_RD

#define ICMP_RD   5 /* redirect */

◆ ICMP_SQ

#define ICMP_SQ   4 /* source quench */

◆ ICMP_TE

#define ICMP_TE   11 /* time exceeded */

◆ ICMP_TS

#define ICMP_TS   13 /* timestamp */

◆ ICMP_TSR

#define ICMP_TSR   14 /* timestamp reply */

◆ ICMPH_CODE

#define ICMPH_CODE (   hdr)    ((hdr)->code)

◆ ICMPH_CODE_SET

#define ICMPH_CODE_SET (   hdr,
 
)    ((hdr)->code = (c))

◆ ICMPH_TYPE

#define ICMPH_TYPE (   hdr)    ((hdr)->type)

◆ ICMPH_TYPE_SET

#define ICMPH_TYPE_SET (   hdr,
 
)    ((hdr)->type = (t))

Combines type and code to an u16_t.