Lines Matching refs:cfg

285 nat64_check_private_ip4(const struct nat64_config *cfg, in_addr_t ia)
288 if (cfg->flags & NAT64_ALLOW_PRIVATE)
292 if (cfg->flags & NAT64_WKPFX) {
845 int offset, struct nat64_config *cfg)
860 NAT64STAT_INC(&cfg->stats, nomem);
1000 nat64_check_private_ip4(cfg, ip.ip_src.s_addr) != 0 ||
1001 nat64_check_private_ip4(cfg, ip.ip_dst.s_addr) != 0) {
1036 NAT64STAT_INC(&cfg->stats, nomem);
1051 MPASS(cfg->flags & NAT64_PLATPFX);
1052 nat64_embed_ip4(&eip6->ip6_dst, cfg->plat_plen, ip.ip_dst.s_addr);
1122 NAT64STAT_INC(&cfg->stats, dropped);
1170 struct in6_addr *daddr, uint16_t lport, struct nat64_config *cfg,
1187 ICMP_TIMXCEED_INTRANS, 0, &cfg->stats, logdata);
1205 ICMP_PARAMPROB_LENGTH, 0, &cfg->stats, logdata);
1211 NAT64STAT_INC(&cfg->stats, dropped);
1217 NAT64STAT_INC(&cfg->stats, noroute6);
1219 &cfg->stats, logdata);
1225 FRAGSZ(nh.nh_mtu) + sizeof(struct ip), &cfg->stats, logdata);
1264 m = nat64_icmp_translate(m, &ip6, lport, hlen, cfg);
1271 nat64_fragment6(&cfg->stats, &ip6, &mq, m, nh.nh_mtu, ip_id, ip_off);
1274 &cfg->stats, logdata) != 0)
1276 NAT64STAT_INC(&cfg->stats, opcnt46);
1284 struct nat64_config *cfg, void *logdata)
1304 NAT64STAT_INC(&cfg->stats, dropped);
1334 NAT64STAT_INC(&cfg->stats, dropped);
1346 NAT64STAT_INC(&cfg->stats, dropped);
1391 NAT64STAT_INC(&cfg->stats, dropped);
1402 NAT64STAT_INC(&cfg->stats, dropped);
1409 NAT64STAT_INC(&cfg->stats, dropped);
1415 NAT64STAT_INC(&cfg->stats, dropped);
1442 NAT64STAT_INC(&cfg->stats, nomem);
1481 ip.ip_src.s_addr = nat64_extract_ip4(&ip6i->ip6_src, cfg->plat_plen);
1490 nat64_icmp_reflect(m, type, code, (uint16_t)mtu, &cfg->stats,
1499 NAT64STAT_INC(&cfg->stats, dropped);
1505 struct nat64_config *cfg, void *logdata)
1532 NAT64STAT_INC(&cfg->stats, dropped);
1536 ip.ip_dst.s_addr = nat64_extract_ip4(&ip6->ip6_dst, cfg->plat_plen);
1538 NAT64STAT_INC(&cfg->stats, dropped);
1544 ICMP6_TIME_EXCEED_TRANSIT, 0, &cfg->stats, logdata);
1553 NAT64STAT_INC(&cfg->stats, dropped);
1562 NAT64STAT_INC(&cfg->stats, dropped);
1571 NAT64STAT_INC(&cfg->stats, dropped);
1579 offsetof(struct ip6_hdr, ip6_plen), &cfg->stats,
1588 NAT64STAT_INC(&cfg->stats, dropped);
1598 cfg, logdata));
1602 NAT64STAT_INC(&cfg->stats, noroute4);
1604 ICMP6_DST_UNREACH_NOROUTE, 0, &cfg->stats, logdata);
1609 &cfg->stats, logdata);
1663 &cfg->stats, logdata) == 0)
1664 NAT64STAT_INC(&cfg->stats, opcnt64);