Changeset 811
- Timestamp:
- 05/23/06 13:21:02 (7 years ago)
- File:
-
- 1 edited
-
trunk/tools/tracereport/protocol_report.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/tracereport/protocol_report.c
r501 r811 11 11 void protocol_per_packet(struct libtrace_packet_t *packet) 12 12 { 13 struct libtrace_ip *ip = trace_get_ip(packet);14 if ( !ip)13 uint8_t proto; 14 if (trace_get_transport(packet,&proto,NULL)==NULL) 15 15 return; 16 17 prot_stat[ ip->ip_p].count++;18 prot_stat[ ip->ip_p].bytes+=trace_get_wire_length(packet);16 17 prot_stat[proto].count++; 18 prot_stat[proto].bytes+=trace_get_wire_length(packet); 19 19 } 20 20
Note: See TracChangeset
for help on using the changeset viewer.
