Some clarity
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user