|
Embedded Xinu Operating System
An ongoing research project and educational operating system.
|
Internet Protocol Version 4. More...
Functions | |
| syscall | dot2ipv4 (const char *str, struct netaddr *ip) |
| syscall | ipv4Recv (struct packet *pkt) |
| syscall | ipv4Send (struct packet *pkt, struct netaddr *src, struct netaddr *dst, uchar proto) |
Internet Protocol Version 4.
| syscall dot2ipv4 | ( | const char * | str, |
| struct netaddr * | ip | ||
| ) |
Convert an IPv4 address in dotted-decimal notation into a netaddr.
| str | The dotted-decimal IPv4 address string to convert. |
| ip | The netaddr structure for conversion result. |
| syscall ipv4Recv | ( | struct packet * | pkt | ) |
Process an incoming IPv4 packet.
| pkt | pointer to the incoming packet |
| syscall ipv4Send | ( | struct packet * | pkt, |
| struct netaddr * | src, | ||
| struct netaddr * | dst, | ||
| uchar | proto | ||
| ) |
file ipv4Send.c
Send an outgoing IPv4 packet.
| packet | packet being sent |
| src | source IP address |
| dst | destination IP address |
| proto | the protocol of the ip pkt |
1.8.5