1.定义IP头部格式

2.定义数据校验协议

    public struct IP_Head
    {
        public char headlength ;
        public char version;
        public char tos;

        public short total_len;
        public short identifier;
        public char ttl;
        public char protocal;
        public short checknum;
        public long sourceIP;
        public long destIP;

    }

    public struct ICMP_Header
    {
        byte type;
        byte code;
        short cknum;
        short id;
        short seq;
    }

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-02
  • 2021-09-21
  • 2021-10-24
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-28
  • 2021-11-16
  • 2021-10-22
  • 2021-06-12
相关资源
相似解决方案