/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ip_tftp_pxy.c | 158 ipnat_t *ipn; in ipf_p_tftp_new() local 170 KMALLOCS(ipn, ipnat_t *, size); in ipf_p_tftp_new() 171 if (ipn == NULL) { in ipf_p_tftp_new() 179 bzero((char *)ipn, size); in ipf_p_tftp_new() 180 ti->ti_rule = ipn; in ipf_p_tftp_new() 186 ipn->in_size = size; in ipf_p_tftp_new() 187 ipn->in_apr = NULL; in ipf_p_tftp_new() 188 ipn->in_use = 1; in ipf_p_tftp_new() 189 ipn->in_hits = 1; in ipf_p_tftp_new() 190 ipn->in_ippip = 1; in ipf_p_tftp_new() [all …]
|
H A D | ip_proxy.c | 749 ipnat_t *ipn; in ipf_proxy_match() local 752 ipn = nat->nat_ptr; in ipf_proxy_match() 756 (u_long)ipn); in ipf_proxy_match() 765 apr = ipn->in_apr; in ipf_proxy_match() 1279 ipnat_t *ipn; in ipf_proxy_rule_rev() local 1285 KMALLOCS(ipn, ipnat_t *, size); in ipf_proxy_rule_rev() 1286 if (ipn == NULL) in ipf_proxy_rule_rev() 1289 bzero((char *)ipn, size); in ipf_proxy_rule_rev() 1291 ipn->in_use = 1; in ipf_proxy_rule_rev() 1292 ipn->in_hits = 1; in ipf_proxy_rule_rev() [all …]
|
H A D | ip_ipsec_pxy.c | 135 ipnat_t *ipn, *np; in ipf_p_ipsec_new() local 166 KMALLOCS(ipn, ipnat_t *, size); in ipf_p_ipsec_new() 167 if (ipn == NULL) { in ipf_p_ipsec_new() 175 bzero((char *)ipn, size); in ipf_p_ipsec_new() 176 ipsec->ipsc_rule = ipn; in ipf_p_ipsec_new() 183 ipn->in_size = size; in ipf_p_ipsec_new() 185 ipn->in_tqehead[0] = ipf_nat_add_tq(softc, ttl); in ipf_p_ipsec_new() 186 ipn->in_tqehead[1] = ipf_nat_add_tq(softc, ttl); in ipf_p_ipsec_new() 187 ipn->in_ifps[0] = fin->fin_ifp; in ipf_p_ipsec_new() 188 ipn->in_apr = NULL; in ipf_p_ipsec_new() [all …]
|
H A D | ip_pptp_pxy.c | 113 ipnat_t *ipn; in ipf_p_pptp_new() local 138 KMALLOCS(ipn, ipnat_t *, size); in ipf_p_pptp_new() 139 if (ipn == NULL) { in ipf_p_pptp_new() 147 bzero((char *)ipn, size); in ipf_p_pptp_new() 148 pptp->pptp_rule = ipn; in ipf_p_pptp_new() 155 ipn->in_size = size; in ipf_p_pptp_new() 156 ipn->in_ifps[0] = fin->fin_ifp; in ipf_p_pptp_new() 157 ipn->in_apr = NULL; in ipf_p_pptp_new() 158 ipn->in_use = 1; in ipf_p_pptp_new() 159 ipn->in_hits = 1; in ipf_p_pptp_new() [all …]
|
H A D | ip_rpcb_pxy.c | 1104 ipnat_t *ipn, ipnat; in ipf_p_rpcb_getnat() local 1111 ipn = nat->nat_ptr; in ipf_p_rpcb_getnat() 1183 bcopy((char *)ipn, (char *)&ipnat, sizeof(ipnat)); in ipf_p_rpcb_getnat() 1184 ipn->in_flags = nflags & IPN_TCPUDP; in ipf_p_rpcb_getnat() 1185 ipn->in_apr = NULL; in ipf_p_rpcb_getnat() 1186 ipn->in_pr[0] = proto; in ipf_p_rpcb_getnat() 1187 ipn->in_pr[1] = proto; in ipf_p_rpcb_getnat() 1188 ipn->in_dpmin = fi.fin_dport; in ipf_p_rpcb_getnat() 1189 ipn->in_dpmax = fi.fin_dport; in ipf_p_rpcb_getnat() 1190 ipn->in_dpnext = fi.fin_dport; in ipf_p_rpcb_getnat() [all …]
|
H A D | ip_rcmd_pxy.c | 70 ipnat_t *ipn; in ipf_p_rcmd_new() local 88 ipn = ipf_proxy_rule_rev(nat); in ipf_p_rcmd_new() 89 if (ipn == NULL) { in ipf_p_rcmd_new() 98 rc->rcmd_rule = ipn; in ipf_p_rcmd_new()
|
H A D | ip_ftp_pxy.c | 437 ipnat_t *ipn; in ipf_p_ftp_addport() local 527 ipn = ipf_proxy_rule_rev(nat); in ipf_p_ftp_addport() 528 if (ipn == NULL) in ipf_p_ftp_addport() 530 ipn->in_use = 0; in ipf_p_ftp_addport() 560 nat2 = ipf_nat6_add(&fi, ipn, &ftp->ftp_pendnat, flags, in ipf_p_ftp_addport() 564 nat2 = ipf_nat_add(&fi, ipn, &ftp->ftp_pendnat, flags, in ipf_p_ftp_addport() 569 KFREES(ipn, ipn->in_size); in ipf_p_ftp_addport() 818 ipnat_t *ipn; in ipf_p_ftp_pasvreply() local 850 ipn in ipf_p_ftp_pasvreply() [all...] |
H A D | ip_nat.c | 1757 nat_save_t *ipn, ipns; in ipf_nat_getent() local 1769 KMALLOCS(ipn, nat_save_t *, ipns.ipn_dsize); in ipf_nat_getent() 1770 if (ipn == NULL) { in ipf_nat_getent() 1779 ipn->ipn_dsize = ipns.ipn_dsize; in ipf_nat_getent() 1805 ipn->ipn_next = nat->nat_next; in ipf_nat_getent() 1810 bcopy((char *)nat, &ipn->ipn_nat, sizeof(*nat)); in ipf_nat_getent() 1816 bcopy((char *)nat->nat_ptr, (char *)&ipn->ipn_ipnat, in ipf_nat_getent() 1824 bcopy((char *)nat->nat_fr, (char *)&ipn->ipn_fr, in ipf_nat_getent() 1825 sizeof(ipn->ipn_fr)); in ipf_nat_getent() 1833 outsize = ipn->ipn_dsize - sizeof(*ipn) + sizeof(ipn->ipn_data); in ipf_nat_getent() [all …]
|
H A D | ip_pool.c | 1183 ipf_pool_node_deref(ipf_pool_softc_t *softp, ip_pool_node_t *ipn) in ipf_pool_node_deref() argument 1186 ipn->ipn_ref--; in ipf_pool_node_deref() 1188 if (ipn->ipn_ref == 0) { in ipf_pool_node_deref() 1189 KFREE(ipn); in ipf_pool_node_deref()
|
H A D | ip_nat6.c | 1873 ipnat_t *ipn; in ipf_nat6_inlookup() local 1965 ipn = nat->nat_ptr; in ipf_nat6_inlookup() 1967 if ((ipn != NULL) && (nat->nat_aps != NULL)) in ipf_nat6_inlookup() 2196 ipnat_t *ipn; in ipf_nat6_outlookup() local 2283 ipn = nat->nat_ptr; in ipf_nat6_outlookup() 2285 if ((ipn != NULL) && (nat->nat_aps != NULL)) in ipf_nat6_outlookup()
|
H A D | fil.c | 3836 u_32_t ipn; in count4bits() local 3839 ip = ipn = ntohl(ip); in count4bits() 3840 for (i = 32; i; i--, ipn *= 2) in count4bits() 3841 if (ipn & 0x80000000) in count4bits() 3845 ipn = 0; in count4bits() 3847 ipn *= 2; in count4bits() 3849 ipn++; in count4bits() 3851 if (ipn == ip) in count4bits()
|
/freebsd/share/examples/ipfilter/l4check/ |
H A D | l4check.c | 100 ipnat_t *ipn = &l4->l4_nat; in addnat() local 102 printf("Add NAT rule for %s/%#x,%u -> ", inet_ntoa(ipn->in_out[0]), in addnat() 103 ipn->in_outmsk, ntohs(ipn->in_pmin)); in addnat() 104 printf("%s,%u\n", inet_ntoa(ipn->in_in[0]), ntohs(ipn->in_pnext)); in addnat() 106 if (ioctl(natfd, SIOCADNAT, &ipn) == -1) in addnat() 115 ipnat_t *ipn = &l4->l4_nat; in delnat() local 118 inet_ntoa(ipn->in_out[0]), ipn->in_outmsk, ipn->in_pmin); in delnat() 119 printf("%s,%u\n", inet_ntoa(ipn->in_in[0]), ipn->in_pnext); in delnat() 121 if (ioctl(natfd, SIOCRMNAT, &ipn) == -1) in delnat() 486 ipnat_t *ipn; in readconfig() local [all …]
|
/freebsd/sbin/ipf/libipf/ |
H A D | count4bits.c | 22 u_int ipn; in count4bits() local 24 ip = ipn = ntohl(ip); in count4bits() 25 for (i = 32; i; i--, ipn *= 2) in count4bits() 26 if (ipn & 0x80000000) in count4bits() 30 ipn = 0; in count4bits() 32 ipn *= 2; in count4bits() 34 ipn++; in count4bits() 36 if (ipn == ip) in count4bits()
|
H A D | printpool.c | 15 ip_pool_node_t *ipnp, *ipnpn, ipn, **pnext; in printpool() local 36 (*copyfunc)(ipnpn, ipnp, sizeof(ipn)); in printpool()
|
/freebsd/sbin/ipf/ipfs/ |
H A D | ipfs.c | 151 nat_save_t ipn; in changenatif() local 162 nat = &ipn.ipn_nat; in changenatif() 173 for (pos = 0; read(fd, &ipn, sizeof(ipn)) == sizeof(ipn); ) { in changenatif() 188 if (write(fd, &ipn, sizeof(ipn)) != sizeof(ipn)) { in changenatif() 536 nat_save_t ipn, *in, *ipnhead = NULL, *in1, *ipntail = NULL; in readnat() local 558 bzero((char *)&ipn, sizeof(ipn)); in readnat() 564 i = read(nfd, &ipn, sizeof(ipn)); in readnat() 571 if (i != sizeof(ipn)) { in readnat() 573 i, (int)sizeof(ipn)); in readnat() 577 in = (nat_save_t *)malloc(ipn.ipn_dsize); in readnat() [all …]
|
/freebsd/sbin/ipf/ipnat/ |
H A D | ipnat.c | 329 ipnat_t ipn; in dostats_dead() local 335 if (kmemcpy((char *)&ipn, (long)nsp->ns_list, in dostats_dead() 336 sizeof(ipn))) { in dostats_dead() 341 printf("%lu ", ipn.in_hits); in dostats_dead() 342 printnat(&ipn, opts & (OPT_DEBUG|OPT_VERBOSE)); in dostats_dead() 343 nsp->ns_list = ipn.in_next; in dostats_dead() 519 ipnat_t *ipn; in dostats_live() local 532 ipn = (ipnat_t *)buffer; in dostats_live() 543 printf("%lu ", ipn->in_hits); in dostats_live() 544 printnat(ipn, opts & (OPT_DEBUG|OPT_VERBOSE)); in dostats_live() [all …]
|
H A D | ipnat_y.y | 1465 ipnat_t *ipn; in ipnat_addrule() local 1467 ipn = ptr; in ipnat_addrule() 1470 obj.ipfo_size = ipn->in_size; in ipnat_addrule() 1489 printnat(ipn, opts); in ipnat_addrule() 1492 binprint(ipn, ipn->in_size); in ipnat_addrule() 1500 ipn->in_flineno); in ipnat_addrule() 1504 PRINTF("hits %lu ", ipn->in_hits); in ipnat_addrule() 1507 ipn->in_bytes[0] + ipn->in_bytes[1]); in ipnat_addrule() 1510 ipn->in_bytes[0] + ipn->in_bytes[1]); in ipnat_addrule() 1512 printnat(ipn, opts); in ipnat_addrule() [all …]
|
/freebsd/sbin/ipf/ippool/ |
H A D | ippool_y.y | 775 ip_pool_node_t *ntop, *ipn, node, *last; in read_whoisfile() local 790 ipn = calloc(1, sizeof(*ipn)); in read_whoisfile() 791 if (ipn == NULL) in read_whoisfile() 793 ipn->ipn_addr = node.ipn_addr; in read_whoisfile() 794 ipn->ipn_mask = node.ipn_mask; in read_whoisfile() 796 ntop = ipn; in read_whoisfile() 798 last->ipn_next = ipn; in read_whoisfile() 799 last = ipn; in read_whoisfile()
|
/freebsd/sbin/ipf/ipftest/ |
H A D | ipftest.c | 523 ipnat_t *ipn; in dumpnat() local 527 for (ipn = softn->ipf_nat_list; ipn != NULL; ipn = ipn->in_next) in dumpnat() 528 printnat(ipn, opts & (OPT_DEBUG|OPT_VERBOSE)); in dumpnat()
|
/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | d3.c | 1414 u8 ipn[6]; 1882 BUILD_BUG_ON(sizeof(seq->aes_gmac.pn) != sizeof(key->ipn)); in iwl_mvm_d3_update_keys() 1883 memcpy(seq->aes_gmac.pn, key->ipn, sizeof(seq->aes_gmac.pn)); in iwl_mvm_d3_update_keys() 1887 BUILD_BUG_ON(sizeof(seq->aes_cmac.pn) != sizeof(key->ipn)); in iwl_mvm_d3_update_keys() 1888 memcpy(seq->aes_cmac.pn, key->ipn, sizeof(seq->aes_cmac.pn)); in iwl_mvm_d3_update_keys() 2426 BUILD_BUG_ON(sizeof(status->igtk.ipn) != sizeof(data->ipn)); in iwl_mvm_query_wakeup_reasons() 2440 for (i = 0; i < sizeof(data->ipn); i++) 2441 status->igtk.ipn[i] = data->ipn[sizeo 1391 u8 ipn[6]; global() member [all...] |
/freebsd/share/examples/ipfilter/samples/ |
H A D | proxy.c | 143 ipnat_t *ipn; local
|
/freebsd/sys/contrib/dev/iwlwifi/fw/api/ |
H A D | d3.h | 623 * @ipn: the IGTK packet number (replay counter) 633 u8 ipn[6]; 630 u8 ipn[6]; global() member
|
/freebsd/contrib/wpa/src/ap/ |
H A D | wpa_auth.c | 4206 os_memset(info->ipn, 0, sizeof(info->ipn)); 4208 os_memcpy(info->ipn, rsc, sizeof(info->ipn)); 4361 sizeof(ml_key_info.links[i].ipn) + 4372 os_memcpy(pos, ml_key_info.links[i].ipn, 4373 sizeof(ml_key_info.links[i].ipn)); 4374 pos += sizeof(ml_key_info.links[i].ipn);
|
H A D | wpa_auth.h | 326 u8 ipn[6]; member
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | ieee80211.h | 54 uint8_t ipn[6]; member
|