mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 17:52:26 -05:00
a017a77442
The first userland networking program will be "ping" :^)
22 lines
303 B
C
22 lines
303 B
C
#pragma once
|
|
|
|
#include <sys/cdefs.h>
|
|
#include <stdint.h>
|
|
|
|
__BEGIN_DECLS
|
|
|
|
struct icmphdr {
|
|
uint8_t type;
|
|
uint8_t code;
|
|
uint16_t checksum;
|
|
union {
|
|
struct {
|
|
uint16_t id;
|
|
uint16_t sequence;
|
|
} echo;
|
|
uint32_t gateway;
|
|
} un;
|
|
};
|
|
|
|
__END_DECLS
|
|
|