Print this page
inet_pton

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ip.h
          +++ new/usr/src/uts/common/inet/ip.h
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  /*
  23   23   * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright (c) 1990 Mentat Inc.
  25   25   */
       26 +/*
       27 + * Copyright 2012 Nexenta Systems, Inc. All rights reserved.
       28 + */
  26   29  
  27   30  #ifndef _INET_IP_H
  28   31  #define _INET_IP_H
  29   32  
  30   33  #ifdef  __cplusplus
  31   34  extern "C" {
  32   35  #endif
  33   36  
  34   37  #include <sys/isa_defs.h>
  35   38  #include <sys/types.h>
↓ open down ↓ 3655 lines elided ↑ open up ↑
3691 3694  extern int      ip_verify_ire(mblk_t *, ip_xmit_attr_t *);
3692 3695  
3693 3696  extern mblk_t   *ip_xmit_attr_to_mblk(ip_xmit_attr_t *);
3694 3697  extern boolean_t ip_xmit_attr_from_mblk(mblk_t *, ip_xmit_attr_t *);
3695 3698  extern mblk_t   *ip_xmit_attr_free_mblk(mblk_t *);
3696 3699  extern mblk_t   *ip_recv_attr_to_mblk(ip_recv_attr_t *);
3697 3700  extern boolean_t ip_recv_attr_from_mblk(mblk_t *, ip_recv_attr_t *);
3698 3701  extern mblk_t   *ip_recv_attr_free_mblk(mblk_t *);
3699 3702  extern boolean_t ip_recv_attr_is_mblk(mblk_t *);
3700 3703  
     3704 +extern char     *inet_ntop(int, const void *, char *, int);
     3705 +extern int      _inet_pton(int, char *, void *);
     3706 +#define inet_pton(x, y, z)      _inet_pton(x, y, z)
     3707 +
3701 3708  /*
3702 3709   * Squeue tags. Tags only need to be unique when the callback function is the
3703 3710   * same to distinguish between different calls, but we use unique tags for
3704 3711   * convenience anyway.
3705 3712   */
3706 3713  #define SQTAG_IP_INPUT                  1
3707 3714  #define SQTAG_TCP_INPUT_ICMP_ERR        2
3708 3715  #define SQTAG_TCP6_INPUT_ICMP_ERR       3
3709 3716  #define SQTAG_IP_TCP_INPUT              4
3710 3717  #define SQTAG_IP6_TCP_INPUT             5
↓ open down ↓ 51 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX