AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
byteorder.h File Reference
#include <core/system.h>

Go to the source code of this file.

Macros

#define htons(x)
#define htonl(x)
#define ntohs(x)
#define ntohl(x)

Macro Definition Documentation

◆ htonl

#define htonl ( x)
Value:
((uint32_t) (x))
unsigned int uint32_t
Definition stddef.h:22

Definition at line 11 of file byteorder.h.

Referenced by ifreq_request(), loopback_init(), netif_config(), parse_ipv4(), segment(), and tcp_reply_rst().

◆ htons

#define htons ( x)
Value:
((uint16_t) (x))
unsigned short int uint16_t
Definition stddef.h:21

Definition at line 10 of file byteorder.h.

Referenced by arp_input(), arp_request(), bind_port(), ether_output(), inet_checksum(), inet_checksum_pseudo(), ipv4_output(), segment(), sock_bind(), and socket_inet_send().

◆ ntohl

#define ntohl ( x)
Value:
#define htonl(x)
Definition byteorder.h:11

Definition at line 18 of file byteorder.h.

Referenced by is_loopback(), netif_config(), tcp_input(), and tcp_reply_rst().

◆ ntohs

#define ntohs ( x)
Value:
#define htons(x)
Definition byteorder.h:10

Definition at line 17 of file byteorder.h.

Referenced by arp_input(), ether_input(), icmp_unreachable(), ipv4_input(), socket_inet_bind(), socket_tcp_bind(), tcp_input(), and udp_input().