tag | line | file | source code |
icmph | 149 | net/ipv4/icmp.c | void (*handler)(struct icmphdr *icmph, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr, int len); |
icmph | 163 | net/ipv4/icmp.c | struct icmphdr icmph; |
icmph | 201 | net/ipv4/icmp.c | struct icmphdr *icmph; |
icmph | 215 | net/ipv4/icmp.c | csum = csum_partial_copy((void *)&icmp_param->icmph, |
icmph | 221 | net/ipv4/icmp.c | icmph=(struct icmphdr *)to; |
icmph | 222 | net/ipv4/icmp.c | icmph->checksum = csum_fold(csum); |
icmph | 232 | net/ipv4/icmp.c | icmp_param->icmph.checksum=0; |
icmph | 234 | net/ipv4/icmp.c | icmp_out_count(icmp_param->icmph.type); |
icmph | 254 | net/ipv4/icmp.c | struct icmphdr *icmph; |
icmph | 300 | net/ipv4/icmp.c | icmph = (struct icmphdr *)((char *)iph + (iph->ihl<<2)); |
icmph | 305 | net/ipv4/icmp.c | if(icmph->type>18 || icmp_pointers[icmph->type].error) |
icmph | 318 | net/ipv4/icmp.c | icmp_param.icmph.type=type; |
icmph | 319 | net/ipv4/icmp.c | icmp_param.icmph.code=code; |
icmph | 320 | net/ipv4/icmp.c | icmp_param.icmph.un.gateway = info; |
icmph | 337 | 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 | 344 | net/ipv4/icmp.c | iph = (struct iphdr *) (icmph + 1); |
icmph | 348 | net/ipv4/icmp.c | if(icmph->type==ICMP_DEST_UNREACH) |
icmph | 350 | net/ipv4/icmp.c | switch(icmph->code & 15) |
icmph | 372 | net/ipv4/icmp.c | if(icmph->code>12) /* Invalid type */ |
icmph | 412 | net/ipv4/icmp.c | ipprot->err_handler(icmph->type, icmph->code, dp, |
icmph | 426 | 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 | 438 | net/ipv4/icmp.c | iph = (struct iphdr *) (icmph + 1); |
icmph | 447 | net/ipv4/icmp.c | switch(icmph->code & 7) |
icmph | 457 | net/ipv4/icmp.c | ip, 0, icmph->un.gateway, dev,0, 0, 0); |
icmph | 477 | net/ipv4/icmp.c | ((icmph->un.gateway^dev->pa_addr)&dev->pa_mask) || |
icmph | 478 | net/ipv4/icmp.c | ip_chk_addr(icmph->un.gateway)) |
icmph | 482 | net/ipv4/icmp.c | ip, 0, icmph->un.gateway, dev,0, 0, 0, 0); |
icmph | 507 | 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 | 510 | net/ipv4/icmp.c | icmp_param.icmph=*icmph; |
icmph | 511 | net/ipv4/icmp.c | icmp_param.icmph.type=ICMP_ECHOREPLY; |
icmph | 512 | net/ipv4/icmp.c | icmp_param.data_ptr=(icmph+1); |
icmph | 527 | 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 | 553 | net/ipv4/icmp.c | memcpy((void *)×[0], icmph+1, 4); /* Incoming stamp */ |
icmph | 554 | net/ipv4/icmp.c | icmp_param.icmph=*icmph; |
icmph | 555 | net/ipv4/icmp.c | icmp_param.icmph.type=ICMP_TIMESTAMPREPLY; |
icmph | 556 | net/ipv4/icmp.c | icmp_param.icmph.code=0; |
icmph | 577 | 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 | 582 | net/ipv4/icmp.c | icmp_param.icmph.type=ICMP_ADDRESSREPLY; |
icmph | 583 | net/ipv4/icmp.c | icmp_param.icmph.code=0; |
icmph | 584 | net/ipv4/icmp.c | icmp_param.icmph.un.echo.id = icmph->un.echo.id; |
icmph | 585 | net/ipv4/icmp.c | icmp_param.icmph.un.echo.sequence = icmph->un.echo.sequence; |
icmph | 594 | 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 | 607 | net/ipv4/icmp.c | struct icmphdr *icmph=(void *)skb->h.raw; |
icmph | 614 | net/ipv4/icmp.c | if (ip_compute_csum((unsigned char *) icmph, len)) |
icmph | 629 | net/ipv4/icmp.c | if(icmph->type > 18) |
icmph | 647 | net/ipv4/icmp.c | if (icmph->type != ICMP_ECHO) |
icmph | 662 | net/ipv4/icmp.c | (*icmp_pointers[icmph->type].input)++; |
icmph | 663 | net/ipv4/icmp.c | (icmp_pointers[icmph->type].handler)(icmph,skb,skb->dev,saddr,daddr,len); |