Implementation of a simple network protocol stack

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.