This is a low-level network debugging utility that utilizes raw packet i/o to construct and deconstruct tcp, udp, ipv4, arp, and icmp packets over ethernet.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

util.h File Reference

util.h File Reference

Primary utility header. More...

Go to the source code of this file.

Functions

bool is_nonzero_mem (u8 *start, unsigned int bytes)
 Is any byte memory at start for bytes nonzero?
bool is_zero_mem (u8 *start, unsigned int bytes)
 Are all bytes at start for bytes zero?
bool is_equal_mem (u8 *a, u8 *b, unsigned int bytes)
 Are the memory locations at and and b equal for bytes?

Detailed Description

Primary utility header.

In addition to providing some utility functions, this file also includes the other utility headers automatically.

Definition in file util.h.


Function Documentation

bool is_equal_mem ( u8 a,
u8 b,
unsigned int  bytes 
)

Are the memory locations at and and b equal for bytes?

Definition at line 30 of file util.h.

bool is_nonzero_mem ( u8 start,
unsigned int  bytes 
)

Is any byte memory at start for bytes nonzero?

Definition at line 16 of file util.h.

bool is_zero_mem ( u8 start,
unsigned int  bytes 
)

Are all bytes at start for bytes zero?

Definition at line 23 of file util.h.