A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/ncbi__ifconf_8c_source.html below:

NCBI C++ ToolKit: src/connect/ext/ncbi_ifconf.c Source File

35 #include "../ncbi_assert.h" 44 #include <sys/ioctl.h> 45 #include <sys/socket.h> 46 #ifdef HAVE_SYS_SOCKIO_H 47 # include <sys/sockio.h> 52 #ifdef NCBI_OS_SOLARIS 54 # define ifr_mtu ifr_metric 59  int

flag,

unsigned int

hint)

81  if

((

n

= ioctl(s, SIOCGIFCONF, &ifc)) >= 0

82

&& (size_t) ifc.ifc_len + (

sizeof

(ifr) << 1) <

size

) {

87  if

(

n

< 0 && errno != EINVAL)

106  for

(p =

buf

; p <

buf

+ ifc.ifc_len; p +=

size

) {

109

memcpy(&ifr, p,

sizeof

(ifr));

110 #ifdef _SIZEOF_ADDR_IFREQ 111  size

= _SIZEOF_ADDR_IFREQ(ifr);

116  if

(ioctl(s, SIOCGIFADDR, &ifr) < 0)

120  if

(ifr.ifr_addr.sa_family != AF_INET) {

125  addr

= ((

struct

sockaddr_in*) &ifr.ifr_addr)->sin_addr.s_addr;

137  if

(ioctl(s, SIOCGIFFLAGS, &ifr) < 0)

139  if

((ifr.ifr_flags & IFF_LOOPBACK) ||

141

(ifr.ifr_flags & IFF_PRIVATE) ||

143

!(ifr.ifr_flags & IFF_UP) ||

144

!(ifr.ifr_flags & IFF_RUNNING) ||

145

(flag && !(ifr.ifr_flags & flag))) {

148  if

(ioctl(s, SIOCGIFNETMASK, &ifr) < 0)

151  mask

= ((

struct

sockaddr_in*) &ifr.ifr_addr)->sin_addr.s_addr;

165

mtu = ioctl(s, SIOCGIFMTU, &ifr) < 0

166

|| ifr.ifr_mtu < 0 ? 0 : (size_t) ifr.ifr_mtu;

178  a

==

b

? 0 : (

a

&

b

) | ~

b

);

189  int

s = socket(AF_INET, SOCK_STREAM, 0);

205  const unsigned char

*

b

= (

const unsigned char

*) &c.

address

;

211

(

unsigned

)

b

[0], (

unsigned

)

b

[1],

212

(

unsigned

)

b

[2], (

unsigned

)

b

[3]) > 0);

ncbi::TMaskedQueryRegions mask

static const char * str(char *buf, int n)

int SOCK_IsLoopbackAddress(unsigned int ip)

Check whether an address is a loopback one.

unsigned int

A callback function used to compare two keys in a database.

if(yy_accept[yy_current_state])

const struct ncbi::grid::netcache::search::fields::SIZE size

int NcbiGetHostIfConfEx(SNcbiIfConf *c, int s, int flag, unsigned int hint)

int NcbiGetHostIfConf(SNcbiIfConf *c)

char * NcbiGetHostIP(char *buf, size_t bufsize)

int NcbiIsAPIPA(unsigned int ip)

Return non-zero (true) if the IP address (in network byte order) provided as an agrument,...

static PCRE2_SIZE bufsize

voidp calloc(uInt items, uInt size)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4