zoukankan      html  css  js  c++  java
  • inetsw_array的定义中有四个元素IPPROTO_TCP,IPPROTO_UDP,IPPROTO_ICMP,IPPROTO_IP

    static struct inet_protosw inetsw_array[] =  
        {  
            {  
                .type =       SOCK_STREAM,  
                .protocol =   IPPROTO_TCP,  
                .prot =       &tcp_prot,  
                .ops =        &inet_stream_ops,  
                .no_check =   0,  
                .flags =      INET_PROTOSW_PERMANENT |  
                          INET_PROTOSW_ICSK,  
            },  
          
            {  
                .type =       SOCK_DGRAM,  
                .protocol =   IPPROTO_UDP,  
                .prot =       &udp_prot,  
                .ops =        &inet_dgram_ops,  
                .no_check =   UDP_CSUM_DEFAULT,  
                .flags =      INET_PROTOSW_PERMANENT,  
               },  
          
               {  
                .type =       SOCK_DGRAM,  
                .protocol =   IPPROTO_ICMP,  
                .prot =       &ping_prot,  
                .ops =        &inet_dgram_ops,  
                .no_check =   UDP_CSUM_DEFAULT,  
                .flags =      INET_PROTOSW_REUSE,  
               },  
          
               {  
                   .type =       SOCK_RAW,  
                   .protocol =   IPPROTO_IP,    /* wild card */  
                   .prot =       &raw_prot,  
                   .ops =        &inet_sockraw_ops,  
                   .no_check =   UDP_CSUM_DEFAULT,  
                   .flags =      INET_PROTOSW_REUSE,  
               }  
        };  
        

  • 相关阅读:
    webpack学习总结
    jquery弹出下拉列表插件(实现kindeditor的@功能)
    html meta标签使用总结
    Techparty-广州Javascript技术专场(学习分享)
    一个三年工作经验的软件工程师的经验之谈
    cf--------(div1)1A. Theatre Square
    离线网页制作器(beta1.0)
    uva---(11549)CALCULATOR CONUNDRUM
    CF---(452)A. Eevee
    Uva----------(11078)Open Credit System
  • 原文地址:https://www.cnblogs.com/mull/p/4477857.html
Copyright © 2011-2022 走看看