Print this page
NEX-4233 remove unnecessary libdladm header includes
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Steve Peng <steve.peng@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
          +++ new/usr/src/cmd/cmd-inet/usr.lib/vrrpd/vrrpd.c
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   */
  25   25  
  26   26  /*
  27   27   * Copyright (c) 2012, Joyent, Inc. All rights reserved.
       28 + * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
  28   29   */
  29   30  
  30   31  #include <sys/types.h>
  31   32  #include <sys/socket.h>
  32   33  #include <sys/sockio.h>
  33   34  #include <sys/sysevent/vrrp.h>
  34   35  #include <sys/sysevent/eventdefs.h>
  35   36  #include <sys/varargs.h>
  36   37  #include <auth_attr.h>
  37   38  #include <ctype.h>
↓ open down ↓ 39 lines elided ↑ open up ↑
  77   78   * the router will be stay at the VRRP_STATE_INIT state. If all the above
  78   79   * conditions are met, the VRRP router will be transit to either
  79   80   * the VRRP_STATE_MASTER or the VRRP_STATE_BACKUP state, depends on the VRRP
  80   81   * protocol.
  81   82   */
  82   83  
  83   84  #define skip_whitespace(p)      while (isspace(*(p))) ++(p)
  84   85  
  85   86  #define BUFFSIZE        65536
  86   87  
       88 +#define MAXLINELEN      1024
       89 +
  87   90  #define VRRPCONF        "/etc/inet/vrrp.conf"
  88   91  
  89   92  typedef struct vrrpd_rtsock_s {
  90   93          int             vrt_af;         /* address family */
  91   94          int             vrt_fd;         /* socket for the PF_ROUTE msg */
  92   95          iu_event_id_t   vrt_eid;        /* event ID */
  93   96  } vrrpd_rtsock_t;
  94   97  
  95   98  static ipadm_handle_t   vrrp_ipadm_handle = NULL;       /* libipadm handle */
  96   99  static int              vrrp_logflag = 0;
↓ open down ↓ 4457 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX