Home
last modified time | relevance | path

Searched refs:ipn_addr (Results 1 – 9 of 9) sorted by relevance

/freebsd/sbin/ipf/libipf/
H A Dprintpoolnode.c27 printip(np->ipn_addr.adf_family,
28 (u_32_t *)&np->ipn_addr.adf_addr.in4);
29 printmask(np->ipn_addr.adf_family,
33 if (np->ipn_addr.adf_family == AF_INET6) {
38 str = inet_ntop(AF_INET6, &np->ipn_addr.adf_addr.in6,
44 } else if (np->ipn_addr.adf_family == AF_INET) {
46 if (np->ipn_addr.adf_family == AF_INET) {
49 inet_ntoa(np->ipn_addr.adf_addr.in4));
52 np->ipn_addr.adf_family);
54 printmask(np->ipn_addr.adf_family,
H A Dload_poolnode.c37 bcopy((char *)&node->ipn_addr, (char *)&pn.ipn_addr, in load_poolnode()
38 sizeof(pn.ipn_addr)); in load_poolnode()
58 inet_ntop(pn.ipn_addr.adf_family, in load_poolnode()
59 pn.ipn_addr.adf_addr.vptr, ipaddr, in load_poolnode()
H A Dremove_poolnode.c35 bcopy((char *)&node->ipn_addr, (char *)&pn.ipn_addr, in remove_poolnode()
36 sizeof(pn.ipn_addr)); in remove_poolnode()
H A Dprintpoolfield.c48 a = &node->ipn_addr; in printpoolfield()
149 PRINTF("%s", familyname(node->ipn_addr.adf_family)); in printpoolfield()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_pool.c151 node.ipn_addr.adf_family = AF_INET; in main()
153 node.ipn_addr.adf_addr.in4.s_addr = 0x0a010203; in main()
158 node.ipn_addr.adf_addr.in4.s_addr = 0x0a000000; in main()
163 node.ipn_addr.adf_addr.in4.s_addr = 0x0a010100; in main()
168 node.ipn_addr.adf_addr.in4.s_addr = 0x0a010200; in main()
173 node.ipn_addr.adf_addr.in4.s_addr = 0x0a010000; in main()
178 node.ipn_addr.adf_addr.in4.s_addr = 0x0a01020f; in main()
238 c, c->ipn_name, c->ipn_addr.adf_addr.in4.s_addr, in treeprint()
380 if (node.ipn_addr.adf_family == AF_INET) { in ipf_pool_node_add()
381 if (node.ipn_addr.adf_len != offsetof(addrfamily_t, adf_addr) + in ipf_pool_node_add()
[all …]
H A Dip_pool.h20 addrfamily_t ipn_addr; member
/freebsd/sbin/ipf/ippool/
H A Dippool_y.y309 $$->ipn_addr = $1[0];
313 $$->ipn_addr.adf_family =
317 $$->ipn_addr.adf_family =
322 $$->ipn_addr = $2[0];
326 $$->ipn_addr.adf_family =
330 $$->ipn_addr.adf_family =
748 p->ipn_addr.adf_family = AF_INET; in add_poolhosts()
751 p->ipn_addr.adf_family = AF_INET6; in add_poolhosts()
754 setadflen(&p->ipn_addr); in add_poolhosts()
755 p->ipn_addr.adf_addr = a->al_i6addr; in add_poolhosts()
[all …]
H A Dippool.c1082 node->ipn_addr.adf_family = family; in setnodeaddr()
1085 if (node->ipn_addr.adf_family == AF_INET) { in setnodeaddr()
1087 node->ipn_addr.adf_len = offsetof(addrfamily_t, in setnodeaddr()
1090 node->ipn_addr.adf_addr.in4.s_addr = inet_addr(arg); in setnodeaddr()
1093 node->ipn_addr.adf_len = offsetof(addrfamily_t, in setnodeaddr()
1097 &node->ipn_addr.adf_addr.in6.s6_addr); in setnodeaddr()
1100 node->ipn_mask.adf_len = node->ipn_addr.adf_len; in setnodeaddr()
/freebsd/sbin/ipf/common/
H A Dipf_y.y2300 n->ipn_addr.adf_family = AF_INET6; in makepool()
2301 n->ipn_addr.adf_addr = a->al_i6addr; in makepool()
2302 n->ipn_addr.adf_len = offsetof(addrfamily_t, in makepool()
2311 n->ipn_addr.adf_family = AF_INET; in makepool()
2312 n->ipn_addr.adf_addr.in4.s_addr = a->al_1; in makepool()
2313 n->ipn_addr.adf_len = offsetof(addrfamily_t, in makepool()