test icmp
Fork of ethspam by
ip.h File Reference
IP Packet header. More...
Go to the source code of this file.
Data Structures | |
| struct | IP_Address |
| IP Address memory map. More... | |
| struct | IP_PacketHeader |
| IP Packet memory map. More... | |
Functions | |
| void | fix_endian_ip (IP_PacketHeader *packet) |
| Convert from wire to host or host to wire endianness. | |
| const char * | ipproto2name (u8 proto) |
| Get a constant string of the given IP protocol (e.g. "ICMP", "TCP", "UDP") if known. | |
| void | print_ip (IP_PacketHeader *packet) |
| Print the IP packet. | |
| void | str2ipaddr (const char *ip, IP_Address *addr) |
| Parse the string (in decimal triple-dot notation) into the IP address structure. | |
Detailed Description
IP Packet header.
This file contains the memory map and associated functions for IP packet header creation and deconstruction.
Definition in file ip.h.
Function Documentation
| void fix_endian_ip | ( | IP_PacketHeader * | packet ) |
| const char* ipproto2name | ( | u8 | proto ) |
| void print_ip | ( | IP_PacketHeader * | packet ) |
| void str2ipaddr | ( | const char * | ip, |
| IP_Address * | addr | ||
| ) |
Generated on Fri Jul 15 2022 02:45:18 by
1.7.2
