• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/net/ipv4/

Lines Matching defs:icmph

107 		struct icmphdr icmph;
321 if (icmp_pointers[icmp_param->data.icmph.type].error)
340 struct icmphdr *icmph = icmp_hdr(skb);
348 (char *)icmph,
350 icmph->checksum = csum_fold(csum);
377 icmp_param->data.icmph.checksum = 0;
398 if (icmpv4_xrlim_allow(net, rt, icmp_param->data.icmph.type,
399 icmp_param->data.icmph.code))
532 icmp_param.data.icmph.type = type;
533 icmp_param.data.icmph.code = code;
534 icmp_param.data.icmph.un.gateway = info;
535 icmp_param.data.icmph.checksum = 0;
662 struct icmphdr *icmph;
679 icmph = icmp_hdr(skb);
685 if (icmph->type == ICMP_DEST_UNREACH) {
686 switch (icmph->code & 15) {
698 ntohs(icmph->un.frag.mtu),
711 if (icmph->code > NR_ICMP_UNREACH)
713 } else if (icmph->type == ICMP_PARAMETERPROB)
714 info = ntohl(icmph->un.gateway) >> 24;
741 icmph->type, icmph->code,
835 icmp_param.data.icmph = *icmp_hdr(skb);
836 icmp_param.data.icmph.type = ICMP_ECHOREPLY;
871 icmp_param.data.icmph = *icmp_hdr(skb);
872 icmp_param.data.icmph.type = ICMP_TIMESTAMPREPLY;
873 icmp_param.data.icmph.code = 0;
972 struct icmphdr *icmph;
984 if (!pskb_may_pull(skb, sizeof(*icmph) + sizeof(struct iphdr)))
988 skb_set_network_header(skb, sizeof(*icmph));
1009 if (!pskb_pull(skb, sizeof(*icmph)))
1012 icmph = icmp_hdr(skb);
1014 ICMPMSGIN_INC_STATS_BH(net, icmph->type);
1021 if (icmph->type > NR_ICMP_TYPES)
1036 if ((icmph->type == ICMP_ECHO ||
1037 icmph->type == ICMP_TIMESTAMP) &&
1041 if (icmph->type != ICMP_ECHO &&
1042 icmph->type != ICMP_TIMESTAMP &&
1043 icmph->type != ICMP_ADDRESS &&
1044 icmph->type != ICMP_ADDRESSREPLY) {
1049 icmp_pointers[icmph->type].handler(skb);