XINU
|
#include <xinu.h>
Go to the source code of this file.
Functions | |
status | ip_enqueue (struct netpacket *pktptr) |
void | ip_hton (struct netpacket *pktptr) |
void | ip_in (struct netpacket *pktptr) |
void | ip_local (struct netpacket *pktptr) |
void | ip_ntoh (struct netpacket *pktptr) |
status | ip_out (struct netpacket *pktptr) |
status | ip_send (struct netpacket *pktptr) |
uint16 | ipcksum (struct netpacket *pkt) |
process | ipout (void) |
Variables | |
struct iqentry | ipoqueue |
ネットワーク送信キュー More... | |
Definition at line 439 of file ip.c.
References disable(), freebuf(), IP_OQSIZ, ipoqueue, iqentry::iqbuf, iqentry::iqsem, iqentry::iqtail, kprintf(), OK, restore(), semcount(), signal(), and SYSERR.
Referenced by icmp_in().
void ip_hton | ( | struct netpacket * | pktptr | ) |
Definition at line 338 of file ip.c.
References htonl, htons, netpacket::net_ipdst, netpacket::net_ipfrag, netpacket::net_ipid, netpacket::net_iplen, and netpacket::net_ipsrc.
Referenced by ip_out().
void ip_in | ( | struct netpacket * | pktptr | ) |
Definition at line 13 of file ip.c.
References freebuf(), icmp_cksum(), icmp_ntoh(), IP_BCAST, IP_HDR_LEN, IP_ICMP, ip_local(), ip_ntoh(), IP_UDP, network::ipbcast, ipcksum(), network::ipucast, network::ipvalid, kprintf(), netpacket::net_ictype, netpacket::net_ipdst, netpacket::net_iplen, netpacket::net_ipproto, netpacket::net_ipvh, NetData, and udp_ntoh().
Referenced by netin().
void ip_local | ( | struct netpacket * | pktptr | ) |
void ip_ntoh | ( | struct netpacket * | pktptr | ) |
Definition at line 323 of file ip.c.
References netpacket::net_ipdst, netpacket::net_ipfrag, netpacket::net_ipid, netpacket::net_iplen, netpacket::net_ipsrc, ntohl, and ntohs.
Referenced by ip_in().
Definition at line 213 of file ip.c.
References ETH_HDR_LEN, eth_hton(), ETHER0, freebuf(), htons, icmp_cksum(), icmp_hton(), IP_HDR_LEN, ip_hton(), IP_ICMP, IP_UDP, ipcksum(), netpacket::net_iccksum, netpacket::net_ictype, netpacket::net_ipcksum, netpacket::net_iplen, netpacket::net_ipproto, netpacket::net_udpcksum, OK, SYSERR, udp_hton(), and write().
Referenced by ip_send(), and ipout().
Definition at line 103 of file ip.c.
References arp_resolve(), disable(), ETH_ADDR_LEN, network::ethbcast, freebuf(), IP_BCAST, ip_local(), ip_out(), network::ipbcast, network::ipmask, network::ipprefix, network::iprouter, network::ipucast, memcpy(), netpacket::net_ethdst, netpacket::net_ipdst, NetData, OK, restore(), and SYSERR.
Referenced by icmp_send(), udp_send(), and udp_sendto().
process ipout | ( | void | ) |
Definition at line 356 of file ip.c.
References arp_resolve(), ETH_ADDR_LEN, network::ethucast, freebuf(), IP_BCAST, ip_local(), IP_OQSIZ, ip_out(), network::ipbcast, network::ipmask, ipoqueue, network::ipprefix, network::iprouter, network::ipucast, iqentry::iqbuf, iqentry::iqhead, iqentry::iqsem, kprintf(), memcpy(), netpacket::net_ethdst, netpacket::net_ethsrc, netpacket::net_ipdst, NetData, OK, and wait().
Referenced by net_init().
struct iqentry ipoqueue |