Changeset 9dc77f3 for lib/protocols_transport.c
- Timestamp:
- 02/02/10 15:52:06 (11 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:
- 6dc74e1
- Parents:
- 226c08b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/protocols_transport.c
rc2afda6 r9dc77f3 184 184 { 185 185 uint32_t remaining; 186 uint8_t proto; 186 187 const struct ports_t *port = 187 188 (const struct ports_t*)trace_get_transport((libtrace_packet_t*)packet, 188 NULL, &remaining);189 &proto, &remaining); 189 190 190 191 /* snapped too early */ 191 192 if (remaining<2) 193 return 0; 194 195 /* ICMP *technically* doesn't have ports */ 196 if (proto == TRACE_IPPROTO_ICMP) 192 197 return 0; 193 198 … … 202 207 { 203 208 uint32_t remaining; 209 uint8_t proto; 204 210 struct ports_t *port = 205 211 (struct ports_t*)trace_get_transport((libtrace_packet_t*)packet, 206 NULL, &remaining);212 &proto, &remaining); 207 213 /* snapped to early */ 208 214 if (remaining<4) 215 return 0; 216 217 /* ICMP *technically* doesn't have ports */ 218 if (proto == TRACE_IPPROTO_ICMP) 209 219 return 0; 210 220
Note: See TracChangeset
for help on using the changeset viewer.