tag | line | file | source code |
icmph | 148 | net/ipv4/icmp.c | void (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len); |
icmph | 162 | net/ipv4/icmp.c | struct icmphdr icmph; |
icmph | 198 | net/ipv4/icmp.c | struct icmphdr *icmph; |
icmph | 208 | net/ipv4/icmp.c | icmp_param->csum=csum_partial_copy((void *)&icmp_param->icmph, to, sizeof(struct icmphdr), |
icmph | 212 | net/ipv4/icmp.c | icmph=(struct icmphdr *)to; |
icmph | 213 | net/ipv4/icmp.c | icmph->checksum = csum_fold(icmp_param->csum); |
icmph | 215 | net/ipv4/icmp.c | memcpy(to, &icmp_param->icmph, sizeof(struct icmphdr)); |
icmph | 217 | net/ipv4/icmp.c | icmph=(struct icmphdr *)to; |
icmph | 218 | net/ipv4/icmp.c | icmph->checksum=ip_compute_csum(to, fraglen); |
icmph | 232 | net/ipv4/icmp.c | icmp_param->icmph.checksum=0; |
icmph | 233 | net/ipv4/icmp.c | icmp_out_count(icmp_param->icmph.type); |
icmph | 253 | net/ipv4/icmp.c | struct icmphdr *icmph; |
icmph | 299 | net/ipv4/icmp.c | icmph = (struct icmphdr *)((char *)iph + (iph->ihl<<2)); |
icmph | 304 | net/ipv4/icmp.c | if(icmph->type>18 || icmp_pointers[icmph->type].error) |
icmph | 317 | net/ipv4/icmp.c | icmp_param.icmph.type=type; |
icmph | 318 | net/ipv4/icmp.c | icmp_param.icmph.code=code; |
icmph | 319 | net/ipv4/icmp.c | icmp_param.icmph.type=type; |
icmph | 320 | net/ipv4/icmp.c | icmp_param.icmph.un.gateway=0; |
icmph | 336 | 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 | 343 | net/ipv4/icmp.c | iph = (struct iphdr *) (icmph + 1); |
icmph | 347 | net/ipv4/icmp.c | if(icmph->type==ICMP_DEST_UNREACH) |
icmph | 349 | net/ipv4/icmp.c | switch(icmph->code & 15) |
icmph | 371 | net/ipv4/icmp.c | if(icmph->code>12) /* Invalid type */ |
icmph | 411 | net/ipv4/icmp.c | ipprot->err_handler(icmph->type, icmph->code, dp, |
icmph | 425 | 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 | 437 | net/ipv4/icmp.c | iph = (struct iphdr *) (icmph + 1); |
icmph | 446 | net/ipv4/icmp.c | switch(icmph->code & 7) |
icmph | 456 | net/ipv4/icmp.c | ip, 0, icmph->un.gateway, dev,0, 0, 0); |
icmph | 472 | net/ipv4/icmp.c | ((icmph->un.gateway^dev->pa_addr)&dev->pa_mask) || |
icmph | 473 | net/ipv4/icmp.c | ip_chk_addr(icmph->un.gateway)) |
icmph | 477 | net/ipv4/icmp.c | ip, 0, icmph->un.gateway, dev,0, 0, 0, 0); |
icmph | 502 | 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 | 505 | net/ipv4/icmp.c | icmp_param.icmph=*icmph; |
icmph | 506 | net/ipv4/icmp.c | icmp_param.icmph.type=ICMP_ECHOREPLY; |
icmph | 507 | net/ipv4/icmp.c | icmp_param.data_ptr=(icmph+1); |
icmph | 521 | 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 | 543 | net/ipv4/icmp.c | memcpy((void *)×[0], icmph+1, 4); /* Incoming stamp */ |
icmph | 544 | net/ipv4/icmp.c | icmp_param.icmph=*icmph; |
icmph | 545 | net/ipv4/icmp.c | icmp_param.icmph.type=ICMP_TIMESTAMPREPLY; |
icmph | 546 | net/ipv4/icmp.c | icmp_param.icmph.code=0; |
icmph | 566 | 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 | 571 | net/ipv4/icmp.c | icmp_param.icmph.type=ICMP_ADDRESSREPLY; |
icmph | 572 | net/ipv4/icmp.c | icmp_param.icmph.code=0; |
icmph | 573 | net/ipv4/icmp.c | icmp_param.icmph.un.echo.id = icmph->un.echo.id; |
icmph | 574 | net/ipv4/icmp.c | icmp_param.icmph.un.echo.sequence = icmph->un.echo.sequence; |
icmph | 582 | 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 | 595 | net/ipv4/icmp.c | struct icmphdr *icmph=(void *)skb->h.raw; |
icmph | 602 | net/ipv4/icmp.c | if (ip_compute_csum((unsigned char *) icmph, len)) |
icmph | 617 | net/ipv4/icmp.c | if(icmph->type > 18) |
icmph | 635 | net/ipv4/icmp.c | if (icmph->type != ICMP_ECHO) |
icmph | 645 | net/ipv4/icmp.c | (*icmp_pointers[icmph->type].input)++; |
icmph | 646 | net/ipv4/icmp.c | (icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len); |