#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/sockio.h>
#include <arpa/inet.h>
#include <assert.h>
#include <errno.h>
#include <ifaddrs.h>
#include <netdb.h>
#include <stdlib.h>
#include <string.h>
#include "xcom/simset.h"
#include "xcom/sock_probe.h"
#include "xcom/task.h"
#include "xcom/task_debug.h"
#include "xcom/task_net.h"
#include "xcom/task_os.h"
#include "xcom/x_platform.h"
#include "xcom/xcom_base.h"
#include "xcom/xcom_common.h"
#include "xcom/xcom_memory.h"
#include "xcom/xcom_profile.h"
#include "xcom/xcom_transport.h"
#include "xdr_gen/xcom_vp.h"
 
Go to the source code of this file.
 | 
| static int  | number_of_interfaces (sock_probe *s) | 
|   | 
| static void  | get_sockaddr_address (sock_probe *s, int count, struct sockaddr **out) | 
|   | 
| static void  | get_sockaddr_netmask (sock_probe *s, int count, struct sockaddr **out) | 
|   | 
| static void  | get_sockaddr (sock_probe *s, int count, struct sockaddr **out, SockaddrOp addr_operation) | 
|   | 
| static bool_t  | is_if_running (sock_probe *s, int count) | 
|   | 
| static char *  | get_if_name (sock_probe *s, int count) | 
|   | 
| static int  | init_sock_probe (sock_probe *s) | 
|   | 
| static void  | close_sock_probe (sock_probe *s) | 
|   | 
| static struct ifaddrs *  | get_interface (sock_probe *s, int count) | 
|   | 
◆ BSD_COMP
◆ SockaddrOp
◆ SockaddrOp
| Enumerator | 
|---|
| kSockaddrOpAddress  |  | 
| kSockaddrOpNetmask  |  | 
| kSockaddrOpAddress  |  | 
| kSockaddrOpNetmask  |  | 
 
 
◆ close_sock_probe()
◆ get_if_name()
  
  
      
        
          | static char * get_if_name  | 
          ( | 
          sock_probe *  | 
          s,  | 
         
        
           | 
           | 
          int  | 
          count  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ get_interface()
  
  
      
        
          | static struct ifaddrs * get_interface  | 
          ( | 
          sock_probe *  | 
          s,  | 
         
        
           | 
           | 
          int  | 
          count  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ get_sockaddr()
◆ get_sockaddr_address()
◆ get_sockaddr_netmask()
◆ init_sock_probe()
◆ is_if_running()
◆ number_of_interfaces()