Print this page
dccp: properties

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ip/ip_if.c
          +++ new/usr/src/uts/common/inet/ip/ip_if.c
↓ open down ↓ 96 lines elided ↑ open up ↑
  97   97  #include <sys/mac_flow.h>
  98   98  
  99   99  #include <sys/systeminfo.h>
 100  100  #include <sys/bootconf.h>
 101  101  
 102  102  #include <sys/tsol/tndb.h>
 103  103  #include <sys/tsol/tnet.h>
 104  104  
 105  105  #include <inet/rawip_impl.h> /* needed for icmp_stack_t */
 106  106  #include <inet/udp_impl.h> /* needed for udp_stack_t */
      107 +#include <inet/dccp/dccp_stack.h> /* needed for dccp_stack_t */
 107  108  
 108  109  /* The character which tells where the ill_name ends */
 109  110  #define IPIF_SEPARATOR_CHAR     ':'
 110  111  
 111  112  /* IP ioctl function table entry */
 112  113  typedef struct ipft_s {
 113  114          int     ipft_cmd;
 114  115          pfi_t   ipft_pfi;
 115  116          int     ipft_min_size;
 116  117          int     ipft_flags;
↓ open down ↓ 8733 lines elided ↑ open up ↑
8850 8851  ip_sioctl_getsetprop(queue_t *q, mblk_t *mp)
8851 8852  {
8852 8853          struct iocblk   *iocp = (struct iocblk *)mp->b_rptr;
8853 8854          mblk_t          *mp1 = mp->b_cont;
8854 8855          mod_ioc_prop_t  *pioc;
8855 8856          mod_prop_info_t *ptbl = NULL, *pinfo = NULL;
8856 8857          ip_stack_t      *ipst;
8857 8858          icmp_stack_t    *is;
8858 8859          tcp_stack_t     *tcps;
8859 8860          sctp_stack_t    *sctps;
     8861 +        dccp_stack_t    *dccps;
8860 8862          udp_stack_t     *us;
8861 8863          netstack_t      *stack;
8862 8864          void            *cbarg;
8863 8865          cred_t          *cr;
8864 8866          boolean_t       set;
8865 8867          int             err;
8866 8868  
8867 8869          ASSERT(q->q_next == NULL);
8868 8870          ASSERT(CONN_Q(q));
8869 8871  
↓ open down ↓ 25 lines elided ↑ open up ↑
8895 8897          case MOD_PROTO_UDP:
8896 8898                  us = stack->netstack_udp;
8897 8899                  ptbl = us->us_propinfo_tbl;
8898 8900                  cbarg = us;
8899 8901                  break;
8900 8902          case MOD_PROTO_SCTP:
8901 8903                  sctps = stack->netstack_sctp;
8902 8904                  ptbl = sctps->sctps_propinfo_tbl;
8903 8905                  cbarg = sctps;
8904 8906                  break;
     8907 +        case MOD_PROTO_DCCP:
     8908 +                dccps = stack->netstack_dccp;
     8909 +                ptbl = dccps->dccps_propinfo_tbl;
     8910 +                cbarg = dccps;
8905 8911          default:
8906 8912                  miocnak(q, mp, 0, EINVAL);
8907 8913                  return;
8908 8914          }
8909 8915  
8910 8916          /* search for given property in respective protocol propinfo table */
8911 8917          for (pinfo = ptbl; pinfo->mpi_name != NULL; pinfo++) {
8912 8918                  if (strcmp(pinfo->mpi_name, pioc->mpr_name) == 0 &&
8913 8919                      pinfo->mpi_proto == pioc->mpr_proto)
8914 8920                          break;
↓ open down ↓ 10248 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX