Lines Matching defs:icmp
944 int minicmpsz = sizeof(struct icmp);
945 icmphdr_t *icmp;
960 * This is a right place to set icmp pointer, since the memory
962 * rely on fact icmp variable always points to ICMP header.
964 icmp = fin->fin_dp;
965 fin->fin_data[0] = *(u_short *)icmp;
966 fin->fin_data[1] = icmp->icmp_id;
968 switch (icmp->icmp_type)
997 if (icmp->icmp_code == ICMP_UNREACH_NEEDFRAG) {
998 if (icmp->icmp_nextmtu < ifs->ifs_fr_icmpminfragmtu)
2640 * pass return-icmp in proto udp ...
4251 /* Returns: int - 1 if "icmp" is a valid reply to "ic" else 0. */
4254 /* icmp(I) - ICMP packet header */
4257 /* Check if the ICMP packet defined by the header pointed to by icmp is a */
4261 int fr_matchicmpqueryreply(v, ic, icmp, rev)
4264 icmphdr_t *icmp;
4276 if ((!rev && (icmp->icmp_type == ictype)) ||
4277 (rev && (icmpreplytype4[ictype] == icmp->icmp_type))) {
4278 if (icmp->icmp_type != ICMP_ECHOREPLY)
4280 if (icmp->icmp_id == ic->ici_id)
4286 if ((!rev && (icmp->icmp_type == ictype)) ||
4287 (rev && (icmpreplytype6[ictype] == icmp->icmp_type))) {
4288 if (icmp->icmp_type != ICMP6_ECHO_REPLY)
4290 if (icmp->icmp_id == ic->ici_id)
6031 csump = &((struct icmp *)fin->fin_dp)->icmp_cksum;