Home
last modified time | relevance | path

Searched refs:hashfd (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dload_hashnode.c21 static int hashfd = -1; variable
34 if ((hashfd == -1) && ((opts & OPT_DONOTHING) == 0))
35 hashfd = open(IPLOOKUP_NAME, O_RDWR);
36 if ((hashfd == -1) && ((opts & OPT_DONOTHING) == 0))
38 if (setzone(hashfd) != 0) {
39 close(hashfd);
60 err = (*iocfunc)(hashfd, SIOCLOOKUPADDNODE, &op);
62 err = (*iocfunc)(hashfd, SIOCLOOKUPDELNODE, &op);
H A Dload_hash.c21 static int hashfd = -1; variable
35 if ((hashfd == -1) && ((opts & OPT_DONOTHING) == 0))
36 hashfd = open(IPLOOKUP_NAME, O_RDWR);
37 if ((hashfd == -1) && ((opts & OPT_DONOTHING) == 0))
39 if (setzone(hashfd) != 0) {
40 close(hashfd);
76 if ((*iocfunc)(hashfd, SIOCLOOKUPADDTABLE, &op))
117 if ((*iocfunc)(hashfd, SIOCLOOKUPDELTABLE, &op))
H A Dremove_hash.c15 static int hashfd = -1; variable
25 if ((hashfd == -1) && ((opts & OPT_DONOTHING) == 0))
26 hashfd = open(IPLOOKUP_NAME, O_RDWR);
27 if ((hashfd == -1) && ((opts & OPT_DONOTHING) == 0))
44 if ((*iocfunc)(hashfd, SIOCLOOKUPDELTABLE, &op))
H A Dremove_hashnode.c15 static int hashfd = -1; variable
27 if ((hashfd == -1) && ((opts & OPT_DONOTHING) == 0))
28 hashfd = open(IPLOOKUP_NAME, O_RDWR);
29 if ((hashfd == -1) && ((opts & OPT_DONOTHING) == 0))
50 if ((*iocfunc)(hashfd, SIOCLOOKUPDELNODE, &op))