Home | History | Annotate | Download | only in netinet

Lines Matching defs:icmp

485 		   "nat icmp ipftq tab");
940 /* ICMP error message. Such a message, contains in its body the IP header */
944 /* kernel the data section of the ICMP error is just data, and no special */
3113 * In the ICMP query NAT code, we translate the ICMP id fields
3114 * to make them unique. This is indepedent of the ICMP type
3120 * process making the icmp request. (the receiver justs
3560 /* Check if the ICMP error message is related to an existing TCP, UDP or */
3561 /* ICMP query nat entry. It is assumed that the packet is already of the */
3581 * Only a basic IP header (no options) should be with an ICMP error
3604 * outside the ICMP packet, leading to TCP deref's causing problems.
3643 /* see if this is related to an ICMP query */
3653 * ip packet. By definition the icmp error
3711 /* Fix up an ICMP packet which is an error message for an existing NAT */
3714 /* This should *ONLY* be used for incoming ICMP error packets to make sure */
3715 /* a NAT'd ICMP packet gets correctly recognised. */
3725 icmphdr_t *icmp;
3750 icmp = fin->fin_dp;
3751 oip = (ip_t *)&icmp->icmp_ip;
3769 * Need to adjust ICMP header to include the real IP#'s and
3783 * Normally, you would expect that the ICMP checksum of the
3784 * ICMP error message needs to be adjusted as well for the
3786 * However, this is a NOP, because the ICMP checksum is
3787 * calculated over the complete ICMP packet, which includes the
3793 * Inbound ICMP
3815 * Outbound ICMP
3880 * a change may be reflected in the ICMP checksum as well.
3916 * apply to the ICMP header, given the IP address
3921 * then the ICMP checksum changes by the address
3924 * apply the delta in ports to the ICMP checksum.
3947 ipf_fix_incksum(0, &icmp->icmp_cksum, sumd2, 0);
3964 * Fix ICMP checksum (of the offening ICMP
3966 * in the ICMP id of the offending ICMP
3973 * overall icmp->icmp_cksum
3981 } /* nat_dir == NAT_INBOUND is impossible for icmp queries */
4769 /* Check to see if an outcoming packet should be changed. ICMP packets are */
4992 icmphdr_t *icmp;
4999 icmp = NULL;
5068 * correct checksum offset (the ICMP error could be coming from
5195 icmp = fin->fin_dp;
5200 icmp->icmp_id = nat->nat_nicmpid;
5203 icmp->icmp_id = nat->nat_oicmpid;
5262 /* Check to see if an incoming packet should be changed. ICMP packets are */
5279 icmphdr_t *icmp;
5295 icmp = NULL;
5312 icmp = fin->fin_dp;
5320 dport = icmp->icmp_id;
5485 icmphdr_t *icmp;
5672 icmp = fin->fin_dp;
5677 icmp->icmp_id = nat->nat_nicmpid;
5680 icmp->icmp_id = nat->nat_oicmpid;
5723 icmphdr_t *icmp;
5762 icmp = fin->fin_dp;
5765 if (icmp->icmp_cksum != 0)
5766 csump = &icmp->icmp_cksum;
6005 /* Parameters: icmptype(I) - ICMP type number */
6007 /* Tests to see if the ICMP type number passed is a query/response type or */
6015 * For the ICMP query NAT code, it is essential that both the query
6018 * is used for all icmp types with the same src, dest and id, we
6028 /* it would require rewriting the ICMP data section */
7306 * ICMP packets don't get decapsulated, instead what we need
7307 * to do is change the ICMP reply from including (in the data