Lines Matching defs:icmph

111 		struct icmphdr icmph;
364 if (icmp_pointers[icmp_param->data.icmph.type].error)
383 struct icmphdr *icmph = icmp_hdr(skb);
388 (char *)icmph,
393 icmph->checksum = csum_fold(csum);
413 int type = icmp_param->data.icmph.type;
414 int code = icmp_param->data.icmph.code;
430 icmp_param->data.icmph.checksum = 0;
738 icmp_param.data.icmph.type = type;
739 icmp_param.data.icmph.code = code;
740 icmp_param.data.icmph.un.gateway = info;
741 icmp_param.data.icmph.checksum = 0;
877 struct icmphdr *icmph;
892 icmph = icmp_hdr(skb);
900 switch (icmph->type) {
902 switch (icmph->code & 15) {
925 info = ntohs(icmph->un.frag.mtu);
935 if (icmph->code > NR_ICMP_UNREACH)
939 info = ntohl(icmph->un.gateway) >> 24;
943 if (icmph->code == ICMP_EXC_FRAGTIME)
970 icmph->type, icmph->code,
1029 icmp_param.data.icmph = *icmp_hdr(skb);
1035 if (icmp_param.data.icmph.type == ICMP_ECHO)
1036 icmp_param.data.icmph.type = ICMP_ECHOREPLY;
1037 else if (!icmp_build_probe(skb, &icmp_param.data.icmph))
1183 icmp_param.data.icmph = *icmp_hdr(skb);
1184 icmp_param.data.icmph.type = ICMP_TIMESTAMPREPLY;
1185 icmp_param.data.icmph.code = 0;
1212 struct icmphdr *icmph;
1224 if (!pskb_may_pull(skb, sizeof(*icmph) + sizeof(struct iphdr)))
1228 skb_set_network_header(skb, sizeof(*icmph));
1244 if (!pskb_pull(skb, sizeof(*icmph)))
1247 icmph = icmp_hdr(skb);
1249 ICMPMSGIN_INC_STATS(net, icmph->type);
1252 if (icmph->type == ICMP_EXT_ECHO) {
1271 if ((icmph->type == ICMP_ECHO ||
1272 icmph->type == ICMP_TIMESTAMP) &&
1277 if (icmph->type != ICMP_ECHO &&
1278 icmph->type != ICMP_TIMESTAMP &&
1279 icmph->type != ICMP_ADDRESS &&
1280 icmph->type != ICMP_ADDRESSREPLY) {
1286 if (icmph->type == ICMP_EXT_ECHOREPLY ||
1287 icmph->type == ICMP_ECHOREPLY) {
1298 if (icmph->type > NR_ICMP_TYPES) {
1303 reason = icmp_pointers[icmph->type].handler(skb);
1361 /* original datagram headers: end of icmph to payload (skb->data) */
1384 struct icmphdr *icmph = (struct icmphdr *)(skb->data + offset);
1393 if (icmph->type != ICMP_ECHOREPLY) {