MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_foreach

Function acl_foreach

lib_acl/samples/ifconf/main.cpp:20–27  ·  view source on GitHub ↗

����������������Ϣ */

Source from the content-addressed store, hash-verified

18
19 /* ����������������Ϣ */
20 acl_foreach(iter, ifconf) {
21 ifaddr = (ACL_IFADDR*) iter.data;
22 printf(">>>name=%s, addr=%s, type=%s\r\n",
23 ifaddr->name, ifaddr->addr,
24 ifaddr->saddr.sa.sa_family == AF_INET ?
25 "AF_INET" : (ifaddr->saddr.sa.sa_family == AF_INET6 ?
26 "AF_INET6" : "unknown"));
27 }
28
29 /* �ͷŲ�ѯ��� */
30 acl_free_ifaddrs(ifconf);

Callers 15

resolveFunction · 0.50
test6Function · 0.50
test7Function · 0.50
mainFunction · 0.50
test_selectFunction · 0.50
htable_iter2Function · 0.50
binhash_iter2Function · 0.50
fifo_iterFunction · 0.50
fifo_iter2Function · 0.50
argv_iterFunction · 0.50
array_iterFunction · 0.50
dlink_iterFunction · 0.50

Calls 2

acl_argv_addFunction · 0.85
acl_valid_hostaddrFunction · 0.85

Tested by 7

test_selectFunction · 0.40
test_getElementByIdFunction · 0.40
test_getElementByIdFunction · 0.40
test_getElementByIdFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…