Lines Matching defs:info
417 /* Do full NAT (replace both source and desination info) on a packet. */
419 ilb_full_nat(int l3, void *iph, int l4, void *tph, ilb_nat_info_t *info,
447 IN6_V4MAPPED_TO_IPADDR(&info->nat_src,
449 IN6_V4MAPPED_TO_IPADDR(&info->nat_dst,
451 *orig_sport = info->nat_sport;
452 *orig_dport = info->nat_dport;
454 IN6_V4MAPPED_TO_IPADDR(&info->vip, ipha->ipha_src);
455 IN6_V4MAPPED_TO_IPADDR(&info->src, ipha->ipha_dst);
456 *orig_sport = info->dport;
457 *orig_dport = info->sport;
468 ip6h->ip6_src = info->nat_src;
469 ip6h->ip6_dst = info->nat_dst;
470 *orig_sport = info->nat_sport;
471 *orig_dport = info->nat_dport;
473 ip6h->ip6_src = info->vip;
474 ip6h->ip6_dst = info->src;
475 *orig_sport = info->dport;
476 *orig_dport = info->sport;
488 /* Do half NAT (only replace the destination info) on a packet. */
490 ilb_half_nat(int l3, void *iph, int l4, void *tph, ilb_nat_info_t *info,
522 IN6_V4MAPPED_TO_IPADDR(&info->nat_dst,
524 *orig_port = info->nat_dport;
526 IN6_V4MAPPED_TO_IPADDR(&info->vip, ipha->ipha_src);
527 *orig_port = info->dport;
538 ip6h->ip6_dst = info->nat_dst;
539 *orig_port = info->nat_dport;
541 ip6h->ip6_src = info->vip;
542 *orig_port = info->dport;
571 in_port_t *sport, in_port_t *dport, ilb_nat_info_t *info, uint32_t sum,
575 IN6_V4MAPPED_TO_IPADDR(&info->nat_src, out_iph->ipha_src);
576 IN6_V4MAPPED_TO_IPADDR(&info->nat_src, in_iph->ipha_dst);
577 *dport = info->nat_sport;
579 IN6_V4MAPPED_TO_IPADDR(&info->nat_dst, out_iph->ipha_dst);
581 IN6_V4MAPPED_TO_IPADDR(&info->nat_dst, in_iph->ipha_src);
582 *sport = info->nat_dport;
591 in_port_t *sport, in_port_t *dport, ilb_nat_info_t *info,
597 out_ip6h->ip6_src = info->nat_src;
598 in_ip6h->ip6_dst = info->nat_src;
599 *dport = info->nat_sport;
601 out_ip6h->ip6_dst = info->nat_dst;
602 in_ip6h->ip6_src = info->nat_dst;
603 *sport = info->nat_dport;