- Timestamp:
- 01/10/12 14:15:58 (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:
- 8753bb8
- Parents:
- a0ec6f1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/tutorial/headerdemo.c
rd025ff7 ra3041a4 219 219 uint32_t remaining; 220 220 uint32_t prev_rem; 221 libtrace_ip_t *ip;222 221 libtrace_ip6_t *ip6; 223 222 … … 243 242 case 0x0800: /* IPv4 */ 244 243 /* Skip past the IPv4 header */ 245 ip = (libtrace_ip_t *)ip_hdr;246 244 nexthdr = trace_get_payload_from_ip(ip_hdr, &protocol, 247 245 &remaining); … … 332 330 } 333 331 332 /* If we don't have any post-transport payload, just return the 333 * transport header size */ 334 if (!nexthdr) 335 return trans_size; 336 334 337 /* Determine how many bytes we just skipped over and add it to the 335 338 * total transport size */
Note: See TracChangeset
for help on using the changeset viewer.