Print this page
inet_pton

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.h
          +++ new/usr/src/uts/common/io/scsi/adapters/iscsi/iscsi.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2000 by Cisco Systems, Inc.  All rights reserved.
  23   23   * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
       24 + * Copyright 2012 Nexenta Systems, Inc. All rights reserved.
  24   25   */
  25   26  
  26   27  #ifndef _ISCSI_H
  27   28  #define _ISCSI_H
  28   29  
  29   30  /*
  30   31   * Block comment which describes the contents of this file.
  31   32   */
  32   33  
  33   34  #ifdef __cplusplus
↓ open down ↓ 13 lines elided ↑ open up ↑
  47   48  #include <sys/sdt.h>
  48   49  
  49   50  #include <sys/iscsi_protocol.h>
  50   51  #include <sys/scsi/adapters/iscsi_if.h>
  51   52  #include <iscsiAuthClient.h>
  52   53  #include <iscsi_stats.h>
  53   54  #include <iscsi_thread.h>
  54   55  #include <sys/idm/idm.h>
  55   56  #include <sys/idm/idm_conn_sm.h>
  56   57  #include <nvfile.h>
       58 +#include <inet/ip.h>
  57   59  
  58   60  #ifndef MIN
  59   61  #define MIN(a, b) ((a) < (b) ? (a) : (b))
  60   62  #endif
  61   63  
  62   64  #ifndef TRUE
  63   65  #define TRUE 1
  64   66  #endif
  65   67  
  66   68  #ifndef FALSE
↓ open down ↓ 1329 lines elided ↑ open up ↑
1396 1398      char *subclass, nvlist_t *np);
1397 1399  boolean_t iscsi_reconfig_boot_sess(iscsi_hba_t *ihp);
1398 1400  boolean_t iscsi_chk_bootlun_mpxio(iscsi_hba_t *ihp);
1399 1401  boolean_t iscsi_cmp_boot_ini_name(char *name);
1400 1402  boolean_t iscsi_cmp_boot_tgt_name(char *name);
1401 1403  boolean_t iscsi_client_request_service(iscsi_hba_t *ihp);
1402 1404  void iscsi_client_release_service(iscsi_hba_t *ihp);
1403 1405  
1404 1406  extern void bcopy(const void *s1, void *s2, size_t n);
1405 1407  extern void bzero(void *s, size_t n);
1406      -/*
1407      - * Here we need a contract for inet_ntop() and inet_pton()
1408      - * in uts/common/inet/ip/inet_ntop.c
1409      - */
1410      -extern char *inet_ntop(int af, const void *addr, char *buf, int addrlen);
1411      -extern int inet_pton(int af, char *inp, void *outp);
1412 1408  
1413 1409  #ifdef __cplusplus
1414 1410  }
1415 1411  #endif
1416 1412  
1417 1413  #endif /* _ISCSI_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX