Print this page
4596 Callers of ip_srcid_find_id() need to be more careful

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ip.h
          +++ new/usr/src/uts/common/inet/ip.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 1990 Mentat Inc.
  24   24   * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
  25   25   * Copyright (c) 2012, Joyent, Inc. All rights reserved.
  26   26   * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
       27 + * Copyright 2014, OmniTI Computer Consulting, Inc. All rights reserved.
  27   28   */
  28   29  
  29   30  #ifndef _INET_IP_H
  30   31  #define _INET_IP_H
  31   32  
  32   33  #ifdef  __cplusplus
  33   34  extern "C" {
  34   35  #endif
  35   36  
  36   37  #include <sys/isa_defs.h>
↓ open down ↓ 3409 lines elided ↑ open up ↑
3446 3447  #ifdef DEBUG
3447 3448  extern  boolean_t th_trace_ref(const void *, ip_stack_t *);
3448 3449  extern  void    th_trace_unref(const void *);
3449 3450  extern  void    th_trace_cleanup(const void *, boolean_t);
3450 3451  extern  void    ire_trace_ref(ire_t *);
3451 3452  extern  void    ire_untrace_ref(ire_t *);
3452 3453  #endif
3453 3454  
3454 3455  extern int      ip_srcid_insert(const in6_addr_t *, zoneid_t, ip_stack_t *);
3455 3456  extern int      ip_srcid_remove(const in6_addr_t *, zoneid_t, ip_stack_t *);
3456      -extern void     ip_srcid_find_id(uint_t, in6_addr_t *, zoneid_t, netstack_t *);
     3457 +extern boolean_t ip_srcid_find_id(uint_t, in6_addr_t *, zoneid_t, boolean_t,
     3458 +    netstack_t *);
3457 3459  extern uint_t   ip_srcid_find_addr(const in6_addr_t *, zoneid_t, netstack_t *);
3458 3460  
3459 3461  extern uint8_t  ipoptp_next(ipoptp_t *);
3460 3462  extern uint8_t  ipoptp_first(ipoptp_t *, ipha_t *);
3461 3463  extern int      ip_opt_get_user(conn_t *, uchar_t *);
3462 3464  extern int      ipsec_req_from_conn(conn_t *, ipsec_req_t *, int);
3463 3465  extern int      ip_snmp_get(queue_t *q, mblk_t *mctl, int level, boolean_t);
3464 3466  extern int      ip_snmp_set(queue_t *q, int, int, uchar_t *, int);
3465 3467  extern void     ip_process_ioctl(ipsq_t *, queue_t *, mblk_t *, void *);
3466 3468  extern void     ip_quiesce_conn(conn_t *);
↓ open down ↓ 317 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX