XINU
|
Go to the source code of this file.
Functions | |
void | eth_hton (struct netpacket *pktptr) |
void | eth_ntoh (struct netpacket *pktptr) |
uint16 | getport () |
void | net_init (void) |
process | netin () |
Variables | |
bpid32 | netbufpool |
struct network | NetData |
uint32 | netportseed |
void eth_hton | ( | struct netpacket * | pktptr | ) |
Definition at line 127 of file net.c.
References htons, and netpacket::net_ethtype.
Referenced by arp_in(), arp_resolve(), and ip_out().
void eth_ntoh | ( | struct netpacket * | pktptr | ) |
Definition at line 139 of file net.c.
References netpacket::net_ethtype, and ntohs.
Referenced by netin().
uint16 getport | ( | void | ) |
Definition at line 150 of file net.c.
References netportseed.
Referenced by tftpget_mb().
void net_init | ( | void | ) |
Definition at line 15 of file net.c.
References arp_init(), control(), create(), ETH_ADDR_LEN, ETH_CTRL_GET_MAC, ETHER0, getticks(), icmp_init(), ICMP_QSIZ, ICMP_SLOTS, ipoqueue, ipout(), iqentry::iqhead, iqentry::iqsem, iqentry::iqtail, memset(), mkbufpool(), netbufpool, NetData, netin(), netportseed, NETPRIO, NETSTK, NULL, NULLCH, PACKLEN, panic(), resume(), semcreate(), SYSERR, udp_init(), UDP_QSIZ, and UDP_SLOTS.
Referenced by nulluser().
process netin | ( | void | ) |
bpid32 netbufpool |
Definition at line 7 of file net.c.
Referenced by icmp_mkpkt(), net_init(), netin(), udp_send(), and udp_sendto().
struct network NetData |
Definition at line 6 of file net.c.
Referenced by arp_in(), arp_resolve(), dhcp_bld_bootp_msg(), dns_geta(), dnslookup(), getlocalip(), getutime(), icmp_mkpkt(), ip_in(), ip_send(), ipout(), net_init(), rdscomm(), startup(), udp_send(), udp_sendto(), and xsh_netinfo().
uint32 netportseed |
Definition at line 8 of file net.c.
Referenced by getport(), and net_init().