Minor bug fixes:
- direction allocation in promisc mode with no net setting - aggregate protocols if port display is turned off.
This commit is contained in:
2
iftop.c
2
iftop.c
@@ -181,7 +181,7 @@ static void handle_ip_packet(struct ip* iptr, int hw_dir)
|
||||
* it was picked up in promisc mode, and account it as incoming.
|
||||
*/
|
||||
else if(iptr->ip_src.s_addr < iptr->ip_dst.s_addr) {
|
||||
assign_addr_pair(&ap, iptr, 0);
|
||||
assign_addr_pair(&ap, iptr, 1);
|
||||
direction = 0;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user