miniOS
x86_64 hobby kernel with SMP, VFS, and POSIX process model
Loading...
Searching...
No Matches
main.c File Reference

UDP echo smoke test — sends a datagram to QEMU's built-in echo service (10.0.2.2:7) and prints the round-trip result. More...

#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
Include dependency graph for main.c:

Macros

#define QEMU_GW_ADDR   0x0202000aU /* 10.0.2.2 in network byte order */

Functions

static unsigned short net_htons (unsigned short v)
int main (void)

Detailed Description

UDP echo smoke test — sends a datagram to QEMU's built-in echo service (10.0.2.2:7) and prints the round-trip result.

Macro Definition Documentation

◆ QEMU_GW_ADDR

#define QEMU_GW_ADDR   0x0202000aU /* 10.0.2.2 in network byte order */

Function Documentation

◆ main()

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

◆ net_htons()

unsigned short net_htons ( unsigned short v)
inlinestatic