Print this page
XXXX adding PID information to netstat output

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/socket_proto.h
          +++ new/usr/src/uts/common/sys/socket_proto.h
↓ open down ↓ 22 lines elided ↑ open up ↑
  23   23   */
  24   24  
  25   25  #ifndef _SYS_SOCKET_PROTO_H_
  26   26  #define _SYS_SOCKET_PROTO_H_
  27   27  
  28   28  #ifdef  __cplusplus
  29   29  extern "C" {
  30   30  #endif
  31   31  
  32   32  #include <sys/socket.h>
       33 +#include <sys/pidnode.h>
  33   34  
  34   35  /*
  35   36   * Generation count
  36   37   */
  37   38  typedef uint64_t sock_connid_t;
  38   39  
  39   40  #define SOCK_CONNID_INIT(id) {  \
  40   41          (id) = 0;               \
  41   42  }
  42   43  #define SOCK_CONNID_BUMP(id)            (++(id))
↓ open down ↓ 150 lines elided ↑ open up ↑
 193  194              uintptr_t);
 194  195          ssize_t (*su_recv)(sock_upper_handle_t, mblk_t *, size_t, int,
 195  196                      int *, boolean_t *);
 196  197          void    (*su_set_proto_props)(sock_upper_handle_t,
 197  198                      struct sock_proto_props *);
 198  199          void    (*su_txq_full)(sock_upper_handle_t, boolean_t);
 199  200          void    (*su_signal_oob)(sock_upper_handle_t, ssize_t);
 200  201          void    (*su_zcopy_notify)(sock_upper_handle_t);
 201  202          void    (*su_set_error)(sock_upper_handle_t, int);
 202  203          void    (*su_closed)(sock_upper_handle_t);
      204 +        mblk_t *(*su_get_sock_pid_mblk)(sock_upper_handle_t);
 203  205  };
 204  206  
 205  207  #define SOCK_UC_VERSION         sizeof (sock_upcalls_t)
 206  208  #define SOCK_DC_VERSION         sizeof (sock_downcalls_t)
 207  209  
 208  210  #define SOCKET_RECVHIWATER      (48 * 1024)
 209  211  #define SOCKET_RECVLOWATER      1024
 210  212  
 211  213  #define SOCKET_NO_RCVTIMER      0
 212  214  #define SOCKET_TIMER_INTERVAL   50
 213  215  
 214  216  #endif /* _KERNEL */
 215  217  
 216  218  #ifdef  __cplusplus
 217  219  }
 218  220  #endif
 219  221  
 220  222  #endif /* _SYS_SOCKET_PROTO_H_ */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX