1. Structure diagram
2. Program function:
The network protocol stack mainly contains the following parts of the protocol support:
- Support for Ethernet
- Support for IP protocols
- Support for ICMP protocol
- Support for UDP protocol
- Support for the protocol abstraction layer
- Support for user interfaces
3. Source code structure diagram
Source code Address: Https://github.com/panzhengguang/Unix_Net_Programming/tree/master/SimpleStack
Src
|---Makefile
|---sip.h
|---sip.c "main program"
|---sip_arp.h "ARP protocol"
|---sip_arp.c
|---sip_ether.h "Ethernet"
|---sip_ether.c
|---sip_icmp.h "ICMP protocol"
|---sip_icmp.c
|---sip_igmp.h "IGMP protocol"
|---sip_igmp.c
|---sip_sock.h "sock operation"
|---sip_sock.c
|---sip_socket.h "Application Layer Interface"
|---sip_socket.c
|---sip_udp.h "UDP protocol"
|---sip_udp.c
|---sip_skbuff.h "message buffer"
4. Reference
"Linux Network Programming"
author : Simandou XIAOP
Source : http://www.cnblogs.com/panweishadow/
For non-commercial purposes, you are free to reprint, but please retain the original author information and article link URL.
Implementation of a simple network protocol stack