miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
main.c File Reference
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
Include dependency graph for main.c:

Macros

#define SOCK_RAW   3
#define IPPROTO_ICMP   1
#define QEMU_GW_ADDR   0x0202000aU

Functions

static void rprint (const char *s)
static void rprint_int (long val)
static void rprint_hex_byte (unsigned char v)
static void rprint_hex_dump (const unsigned char *buf, int len)
static unsigned short icmp_checksum (const void *data, int len)
int main (void)

Macro Definition Documentation

◆ IPPROTO_ICMP

#define IPPROTO_ICMP   1

◆ QEMU_GW_ADDR

#define QEMU_GW_ADDR   0x0202000aU

◆ SOCK_RAW

#define SOCK_RAW   3

Function Documentation

◆ icmp_checksum()

unsigned short icmp_checksum ( const void * data,
int len )
static

◆ main()

int main ( void )
Here is the call graph for this function:

◆ rprint()

void rprint ( const char * s)
static
Here is the call graph for this function:

◆ rprint_hex_byte()

void rprint_hex_byte ( unsigned char v)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rprint_hex_dump()

void rprint_hex_dump ( const unsigned char * buf,
int len )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rprint_int()

void rprint_int ( long val)
static
Here is the call graph for this function: