Changeset View
Changeset View
Standalone View
Standalone View
sbin/ifconfig/af_inet.c
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
#include <netinet/in_var.h> | #include <netinet/in_var.h> | ||||
#include <arpa/inet.h> | #include <arpa/inet.h> | ||||
#include <netdb.h> | #include <netdb.h> | ||||
#include "ifconfig.h" | #include "ifconfig.h" | ||||
static struct in_aliasreq in_addreq; | static struct in_aliasreq in_addreq; | ||||
static struct ifreq in_ridreq; | static struct ifreq in_ridreq; | ||||
static char addr_buf[MAXHOSTNAMELEN *2 + 1]; /*for getnameinfo()*/ | static char addr_buf[NI_MAXHOST]; /*for getnameinfo()*/ | ||||
extern char *f_inet, *f_addr; | extern char *f_inet, *f_addr; | ||||
static void | static void | ||||
in_status(int s __unused, const struct ifaddrs *ifa) | in_status(int s __unused, const struct ifaddrs *ifa) | ||||
{ | { | ||||
struct sockaddr_in *sin, null_sin; | struct sockaddr_in *sin, null_sin; | ||||
int error, n_flags; | int error, n_flags; | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |