Changeset 91283e8
- Timestamp:
- 03/11/13 13:46:52 (9 years ago)
- Branches:
- 4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
- Children:
- 501a8eb
- Parents:
- e99ba00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/tracetop/tracetop.cc
re99ba00 r91283e8 306 306 if (use_sip) { 307 307 if (wide_display) 308 printw("%4 6s", "source ip");308 printw("%42s", "source ip"); 309 309 else 310 310 printw("%20s", "source ip"); … … 316 316 } 317 317 if (use_sport) 318 printw("%s \t", "sport");318 printw("%s ", "sport"); 319 319 if (use_dip) { 320 320 if (wide_display) 321 printw("%4 6s", "dest ip");321 printw("%42s", "dest ip"); 322 322 else 323 323 printw("%20s", "dest ip"); … … 328 328 } 329 329 if (use_dport) 330 printw("%s \t", "dport");330 printw("%s ", "dport"); 331 331 if (use_protocol) 332 332 printw("%10s\t", "proto"); … … 351 351 if (use_sip) { 352 352 if (wide_display) { 353 printw("%4 6s",353 printw("%42s", 354 354 trace_sockaddr2string( 355 355 (struct sockaddr*)&pq.top().sip, … … 369 369 } 370 370 if (use_sport) 371 printw("%-5d \t", get_port_from_sockaddr((struct sockaddr*)&pq.top().sip));371 printw("%-5d ", get_port_from_sockaddr((struct sockaddr*)&pq.top().sip)); 372 372 if (use_dip) { 373 373 if (wide_display) { 374 printw("%4 6s",374 printw("%42s", 375 375 trace_sockaddr2string( 376 376 (struct sockaddr*)&pq.top().dip, … … 391 391 } 392 392 if (use_dport) 393 printw("%-5d \t", get_port_from_sockaddr((struct sockaddr*)&pq.top().dip));393 printw("%-5d ", get_port_from_sockaddr((struct sockaddr*)&pq.top().dip)); 394 394 if (use_protocol) { 395 395 struct protoent *proto = getprotobynumber(pq.top().protocol); 396 396 if (proto) 397 printw("%-10s \t", proto->p_name);397 printw("%-10s ", proto->p_name); 398 398 else 399 printw("%10d \t",pq.top().protocol);399 printw("%10d ",pq.top().protocol); 400 400 } 401 401 switch (display_as) {
Note: See TracChangeset
for help on using the changeset viewer.