Print this page
Clearview IPMP manpages

Split Close
Expand all
Collapse all
          --- old/./if_nameindex.txt
          +++ new/./if_nameindex.txt
↓ open down ↓ 78 lines elided ↑ open up ↑
  79   79                             name. This pointer is also the  return
  80   80                             value of the function.  If there is no
  81   81                             interface corresponding to the  speci-
  82   82                             fied  index,  NULL  is  returned,  and
  83   83                             errno is set to ENXIO, if there was  a
  84   84                             system  error,  such as running out of
  85   85                             memory, if_indextoname() returns  NULL
  86   86                             and  errno  would be set to the proper
  87   87                             value, for example, ENOMEM.
  88   88  
  89      -
  90      -     *if_nameindex()       The if_nameindex() function returns an
       89 + 
       90 +     if_nameindex()        The if_nameindex() function returns an
  91   91                             array  of if_nameindex structures, one
  92   92                             structure    per    interface.     The
  93   93                             if_nameindex   structure   holds   the
  94   94                             information about a  single  interface
  95   95                             and  is  defined  when  the <net/if.h>
  96   96                             header is included:
  97   97  
  98   98                               struct if_nameindex
  99   99                                 unsigned int   if_index; /* 1, 2, ... */
 100      -                               char          *if_name;  /* null terminated name: "eri0", ... */
      100 +                               char          *if_name;  /* "net0", ... */
 101  101                               };
 102  102  
      103 +                           While   any   IPMP IP  interfaces  are
      104 +                           returned  by    *if_nameindex()*,  the
      105 +                           underlying IP interfaces that comprise
      106 +                           each IPMP group are not returned.
      107 +
 103  108                             The end of the array of structures  is
 104  109                             indicated   by  a  structure  with  an
 105  110                             if_index of 0 and an if_name of  NULL.
 106  111                             The  function  returns  a null pointer
 107  112                             upon an error and sets  errno  to  the
 108  113                             appropriate value. The memory used for
 109  114                             this array of  structures  along  with
 110  115                             the  interface names pointed to by the
 111  116                             if_name members  is  obtained  dynami-
 112  117                             cally.  This  memory  is  freed by the
↓ open down ↓ 83 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX