tag | line | file | source code |
icmph | 152 | net/ipv4/icmp.c | void (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len); |
icmph | 166 | net/ipv4/icmp.c | struct icmphdr icmph; |
icmph | 204 | net/ipv4/icmp.c | struct icmphdr *icmph; |
icmph | 218 | net/ipv4/icmp.c | csum = csum_partial_copy((void *)&icmp_param->icmph, |
icmph | 224 | net/ipv4/icmp.c | icmph=(struct icmphdr *)to; |
icmph | 225 | net/ipv4/icmp.c | icmph->checksum = csum_fold(csum); |
icmph | 235 | net/ipv4/icmp.c | icmp_param->icmph.checksum=0; |
icmph | 237 | net/ipv4/icmp.c | icmp_out_count(icmp_param->icmph.type); |
icmph | 257 | net/ipv4/icmp.c | struct icmphdr *icmph; |
icmph | 303 | net/ipv4/icmp.c | icmph = (struct icmphdr *)((char *)iph + (iph->ihl<<2)); |
icmph | 308 | net/ipv4/icmp.c | if(icmph->type>18 || icmp_pointers[icmph->type].error) |
icmph | 321 | net/ipv4/icmp.c | icmp_param.icmph.type=type; |
icmph | 322 | net/ipv4/icmp.c | icmp_param.icmph.code=code; |
icmph | 323 | net/ipv4/icmp.c | icmp_param.icmph.un.gateway = info; |
icmph | 340 | 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 | 347 | net/ipv4/icmp.c | iph = (struct iphdr *) (icmph + 1); |
icmph | 351 | net/ipv4/icmp.c | if(icmph->type==ICMP_DEST_UNREACH) |
icmph | 353 | net/ipv4/icmp.c | switch(icmph->code & 15) |
icmph | 373 | net/ipv4/icmp.c | unsigned short new_mtu = ntohs(icmph->un.echo.sequence); |
icmph | 428 | net/ipv4/icmp.c | if(icmph->code>12) /* Invalid type */ |
icmph | 468 | net/ipv4/icmp.c | ipprot->err_handler(icmph->type, icmph->code, dp, |
icmph | 482 | 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 | 491 | net/ipv4/icmp.c | iph = (struct iphdr *) (icmph + 1); |
icmph | 500 | net/ipv4/icmp.c | switch(icmph->code & 7) |
icmph | 510 | net/ipv4/icmp.c | ip, 0, icmph->un.gateway, dev,0, 0, 0); |
icmph | 527 | net/ipv4/icmp.c | ip_rt_redirect(source, ip, icmph->un.gateway, dev); |
icmph | 552 | 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 | 555 | net/ipv4/icmp.c | icmp_param.icmph=*icmph; |
icmph | 556 | net/ipv4/icmp.c | icmp_param.icmph.type=ICMP_ECHOREPLY; |
icmph | 557 | net/ipv4/icmp.c | icmp_param.data_ptr=(icmph+1); |
icmph | 572 | 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 | 598 | net/ipv4/icmp.c | memcpy((void *)×[0], icmph+1, 4); /* Incoming stamp */ |
icmph | 599 | net/ipv4/icmp.c | icmp_param.icmph=*icmph; |
icmph | 600 | net/ipv4/icmp.c | icmp_param.icmph.type=ICMP_TIMESTAMPREPLY; |
icmph | 601 | net/ipv4/icmp.c | icmp_param.icmph.code=0; |
icmph | 622 | 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 | 627 | net/ipv4/icmp.c | icmp_param.icmph.type=ICMP_ADDRESSREPLY; |
icmph | 628 | net/ipv4/icmp.c | icmp_param.icmph.code=0; |
icmph | 629 | net/ipv4/icmp.c | icmp_param.icmph.un.echo.id = icmph->un.echo.id; |
icmph | 630 | net/ipv4/icmp.c | icmp_param.icmph.un.echo.sequence = icmph->un.echo.sequence; |
icmph | 639 | 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 | 652 | net/ipv4/icmp.c | struct icmphdr *icmph=(void *)skb->h.raw; |
icmph | 659 | net/ipv4/icmp.c | if (ip_compute_csum((unsigned char *) icmph, len)) |
icmph | 674 | net/ipv4/icmp.c | if(icmph->type > 18) |
icmph | 692 | net/ipv4/icmp.c | if (icmph->type != ICMP_ECHO) |
icmph | 707 | net/ipv4/icmp.c | (*icmp_pointers[icmph->type].input)++; |
icmph | 708 | net/ipv4/icmp.c | (icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len); |