tag | line | file | source code |
icmph | 311 | net/ipv4/icmp.c | void (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len); |
icmph | 326 | net/ipv4/icmp.c | struct icmphdr icmph; |
icmph | 455 | net/ipv4/icmp.c | struct icmphdr *icmph; |
icmph | 469 | net/ipv4/icmp.c | csum = csum_partial_copy((void *)&icmp_param->icmph, |
icmph | 475 | net/ipv4/icmp.c | icmph=(struct icmphdr *)to; |
icmph | 476 | net/ipv4/icmp.c | icmph->checksum = csum_fold(csum); |
icmph | 486 | net/ipv4/icmp.c | icmp_param->icmph.checksum=0; |
icmph | 488 | net/ipv4/icmp.c | icmp_out_count(icmp_param->icmph.type); |
icmph | 509 | net/ipv4/icmp.c | struct icmphdr *icmph; |
icmph | 555 | net/ipv4/icmp.c | icmph = (struct icmphdr *)((char *)iph + (iph->ihl<<2)); |
icmph | 560 | net/ipv4/icmp.c | if(icmph->type>18 || icmp_pointers[icmph->type].error) |
icmph | 582 | net/ipv4/icmp.c | icmp_param.icmph.type=type; |
icmph | 583 | net/ipv4/icmp.c | icmp_param.icmph.code=code; |
icmph | 584 | net/ipv4/icmp.c | icmp_param.icmph.un.gateway = info; |
icmph | 601 | net/ipv4/icmp.c | static void icmp_unreach(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
icmph | 608 | net/ipv4/icmp.c | iph = (struct iphdr *) (icmph + 1); |
icmph | 612 | net/ipv4/icmp.c | if(icmph->type==ICMP_DEST_UNREACH) |
icmph | 614 | net/ipv4/icmp.c | switch(icmph->code & 15) |
icmph | 634 | net/ipv4/icmp.c | unsigned short new_mtu = ntohs(icmph->un.echo.sequence); |
icmph | 689 | net/ipv4/icmp.c | if(icmph->code>12) /* Invalid type */ |
icmph | 729 | net/ipv4/icmp.c | ipprot->err_handler(icmph->type, icmph->code, dp, |
icmph | 743 | net/ipv4/icmp.c | static void icmp_redirect(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 source, __u32 daddr, int len) |
icmph | 752 | net/ipv4/icmp.c | iph = (struct iphdr *) (icmph + 1); |
icmph | 763 | net/ipv4/icmp.c | in_ntoa(source), in_ntoa(icmph->un.gateway), dev->name); |
icmph | 765 | net/ipv4/icmp.c | switch(icmph->code & 7) |
icmph | 776 | net/ipv4/icmp.c | ip, 0, icmph->un.gateway, dev,0, 0, 0); |
icmph | 793 | net/ipv4/icmp.c | ip_rt_redirect(source, ip, icmph->un.gateway, dev); |
icmph | 819 | net/ipv4/icmp.c | static void icmp_echo(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
icmph | 823 | net/ipv4/icmp.c | icmp_param.icmph=*icmph; |
icmph | 824 | net/ipv4/icmp.c | icmp_param.icmph.type=ICMP_ECHOREPLY; |
icmph | 825 | net/ipv4/icmp.c | icmp_param.data_ptr=(icmph+1); |
icmph | 841 | net/ipv4/icmp.c | static void icmp_timestamp(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
icmph | 867 | net/ipv4/icmp.c | memcpy((void *)×[0], icmph+1, 4); /* Incoming stamp */ |
icmph | 868 | net/ipv4/icmp.c | icmp_param.icmph=*icmph; |
icmph | 869 | net/ipv4/icmp.c | icmp_param.icmph.type=ICMP_TIMESTAMPREPLY; |
icmph | 870 | net/ipv4/icmp.c | icmp_param.icmph.code=0; |
icmph | 891 | net/ipv4/icmp.c | static void icmp_address(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
icmph | 895 | net/ipv4/icmp.c | icmp_param.icmph.type=ICMP_ADDRESSREPLY; |
icmph | 896 | net/ipv4/icmp.c | icmp_param.icmph.code=0; |
icmph | 897 | net/ipv4/icmp.c | icmp_param.icmph.un.echo.id = icmph->un.echo.id; |
icmph | 898 | net/ipv4/icmp.c | icmp_param.icmph.un.echo.sequence = icmph->un.echo.sequence; |
icmph | 907 | net/ipv4/icmp.c | static void icmp_discard(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len) |
icmph | 920 | net/ipv4/icmp.c | struct icmphdr *icmph=(void *)skb->h.raw; |
icmph | 927 | net/ipv4/icmp.c | if (ip_compute_csum((unsigned char *) icmph, len)) |
icmph | 942 | net/ipv4/icmp.c | if(icmph->type > 18) |
icmph | 960 | net/ipv4/icmp.c | if (icmph->type != ICMP_ECHO) |
icmph | 975 | net/ipv4/icmp.c | (*icmp_pointers[icmph->type].input)++; |
icmph | 976 | net/ipv4/icmp.c | (icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len); |