Print this page
5042 stop using deprecated atomic functions

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ipsecah.h
          +++ new/usr/src/uts/common/inet/ipsecah.h
↓ open down ↓ 97 lines elided ↑ open up ↑
  98   98          sadbp_t                 ah_sadb;
  99   99  
 100  100          /* Packet dropper for AH drops. */
 101  101          ipdropper_t             ah_dropper;
 102  102  
 103  103          kstat_t                 *ah_ksp;
 104  104          ah_kstats_t             *ah_kstats;
 105  105  
 106  106          /*
 107  107           * Keysock instance of AH.  There can be only one per stack instance.
 108      -         * Use casptr() on this because I don't set it until KEYSOCK_HELLO
 109      -         * comes down.
      108 +         * Use atomic_cas_ptr() on this because I don't set it until
      109 +         * KEYSOCK_HELLO comes down.
 110  110           * Paired up with the ah_pfkey_q is the ah_event, which will age SAs.
 111  111           */
 112  112          queue_t                 *ah_pfkey_q;
 113  113          timeout_id_t            ah_event;
 114  114  };
 115  115  typedef struct ipsecah_stack ipsecah_stack_t;
 116  116  
 117  117  #endif  /* _KERNEL */
 118  118  
 119  119  /*
↓ open down ↓ 33 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX