Some clarity

This commit is contained in:
Nick Thomas
2013-08-22 03:38:42 +01:00
parent be95b61c87
commit 4c8afca730
2 changed files with 4 additions and 4 deletions

View File

@@ -20,10 +20,10 @@ int process_icmpv4_rloc_update( struct rlocs *reg, struct packet *packet )
return 0;
}
struct rloc *s_rloc;
struct rloc *d_rloc;
struct rloc *s_rloc = NULL;
struct rloc *d_rloc = NULL;
struct icmphdr *icmp = (struct icmphdr *) packet->payload + ( packet->hdr.ip.ihl * 4 );
struct icmphdr *icmp = (struct icmphdr *) ( packet->payload + ( packet->hdr.ip.ihl * 4 ) );
if ( icmp->type != ICMP_DEST_UNREACH && icmp->code != ICMP_FRAG_NEEDED ) {
return 0; // It may be going elsewhere