0.9pre4.
Merged in FreeBSD fixes.
This commit is contained in:
2
iftop.c
2
iftop.c
@@ -134,7 +134,7 @@ void assign_addr_pair(addr_pair* ap, struct ip* iptr, int flip) {
|
||||
unsigned short int dst_port = 0;
|
||||
|
||||
/* Does this protocol use ports? */
|
||||
if(iptr->ip_p == IPPROTO_TCP || IP_HL(iptr) == IPPROTO_UDP) {
|
||||
if(iptr->ip_p == IPPROTO_TCP || iptr->ip_p == IPPROTO_UDP) {
|
||||
/* We take a slight liberty here by treating UDP the same as TCP */
|
||||
|
||||
/* Find the TCP/UDP header */
|
||||
|
||||
Reference in New Issue
Block a user