Print this page
dccp: starting module template

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ip.h
          +++ new/usr/src/uts/common/inet/ip.h
↓ open down ↓ 76 lines elided ↑ open up ↑
  77   77  #define UDP_MOD_NAME    "udp"
  78   78  #define UDP_DEV_NAME    "/dev/udp"
  79   79  #define UDP6_DEV_NAME   "/dev/udp6"
  80   80  
  81   81  #define TCP_MOD_NAME    "tcp"
  82   82  #define TCP_DEV_NAME    "/dev/tcp"
  83   83  #define TCP6_DEV_NAME   "/dev/tcp6"
  84   84  
  85   85  #define SCTP_MOD_NAME   "sctp"
  86   86  
       87 +#define DCCP_MOD_NAME   "dccp"
       88 +#define DCCP_DEV_NAME   "/dev/dccp"
       89 +#define DCCP6_DEV_NAME  "/dev/dccp6"
       90 +
  87   91  #ifndef _IPADDR_T
  88   92  #define _IPADDR_T
  89   93  typedef uint32_t ipaddr_t;
  90   94  #endif
  91   95  
  92   96  /* Number of bits in an address */
  93   97  #define IP_ABITS                32
  94   98  #define IPV4_ABITS              IP_ABITS
  95   99  #define IPV6_ABITS              128
  96  100  #define IP_MAX_HW_LEN   40
↓ open down ↓ 113 lines elided ↑ open up ↑
 210  214   * Test to determine whether this is a module instance of IP or a
 211  215   * driver instance of IP.
 212  216   */
 213  217  #define CONN_Q(q)       (WR(q)->q_next == NULL)
 214  218  
 215  219  #define Q_TO_CONN(q)    ((conn_t *)(q)->q_ptr)
 216  220  #define Q_TO_TCP(q)     (Q_TO_CONN((q))->conn_tcp)
 217  221  #define Q_TO_UDP(q)     (Q_TO_CONN((q))->conn_udp)
 218  222  #define Q_TO_ICMP(q)    (Q_TO_CONN((q))->conn_icmp)
 219  223  #define Q_TO_RTS(q)     (Q_TO_CONN((q))->conn_rts)
      224 +#define Q_TO_DCCP(q)    (Q_TO_CONN((q))->conn_dccp)
 220  225  
 221  226  #define CONNP_TO_WQ(connp)      ((connp)->conn_wq)
 222  227  #define CONNP_TO_RQ(connp)      ((connp)->conn_rq)
 223  228  
 224  229  #define GRAB_CONN_LOCK(q)       {                               \
 225  230          if (q != NULL && CONN_Q(q))                             \
 226  231                  mutex_enter(&(Q_TO_CONN(q))->conn_lock);        \
 227  232  }
 228  233  
 229  234  #define RELEASE_CONN_LOCK(q)    {                               \
↓ open down ↓ 3511 lines elided ↑ open up ↑
3741 3746  #define SQTAG_TCP_KSSL_INPUT            36
3742 3747  #define SQTAG_TCP_DROP_Q0               37
3743 3748  #define SQTAG_TCP_CONN_REQ_2            38
3744 3749  #define SQTAG_IP_INPUT_RX_RING          39
3745 3750  #define SQTAG_SQUEUE_CHANGE             40
3746 3751  #define SQTAG_CONNECT_FINISH            41
3747 3752  #define SQTAG_SYNCHRONOUS_OP            42
3748 3753  #define SQTAG_TCP_SHUTDOWN_OUTPUT       43
3749 3754  #define SQTAG_TCP_IXA_CLEANUP           44
3750 3755  #define SQTAG_TCP_SEND_SYNACK           45
     3756 +#define SQTAG_IP_DCCP_INPUT             46
     3757 +#define SQTAG_DCCP_OUTPUT               47
     3758 +#define SQTAG_DCCP_CONN_REQ_UNBOUND     48
3751 3759  
3752 3760  extern sin_t    sin_null;       /* Zero address for quick clears */
3753 3761  extern sin6_t   sin6_null;      /* Zero address for quick clears */
3754 3762  
3755 3763  #endif  /* _KERNEL */
3756 3764  
3757 3765  #ifdef  __cplusplus
3758 3766  }
3759 3767  #endif
3760 3768  
3761 3769  #endif  /* _INET_IP_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX