Changeset db161c0
- Timestamp:
- 11/27/08 17:44:48 (13 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:
- c5a35e6
- Parents:
- 1311310
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/protocols_transport.c
r1311310 rdb161c0 29 29 (libtrace_ip_t*)transport, proto, remaining); 30 30 /* IPv6 */ 31 if (transport && *proto == 41) {31 if (transport && *proto == TRACE_IPPROTO_IPV6) { 32 32 transport=trace_get_payload_from_ip6( 33 33 (libtrace_ip6_t*)transport, proto,remaining); … … 52 52 tcp=(libtrace_tcp_t*)trace_get_transport(packet,&proto,NULL); 53 53 54 if (!tcp || proto != 6)54 if (!tcp || proto != TRACE_IPPROTO_TCP) 55 55 return NULL; 56 56 … … 86 86 libtrace_udp_t *udpptr = 0; 87 87 88 if (ip->ip_p == 17) {88 if (ip->ip_p == TRACE_IPPROTO_UDP) { 89 89 udpptr = (libtrace_udp_t *) 90 90 trace_get_payload_from_ip(ip, NULL, remaining); … … 100 100 icmp=(libtrace_icmp_t*)trace_get_transport(packet,&proto,NULL); 101 101 102 if (!icmp || proto != 1)102 if (!icmp || proto != TRACE_IPPROTO_ICMP) 103 103 return NULL; 104 104 … … 110 110 libtrace_icmp_t *icmpptr = 0; 111 111 112 if (ip->ip_p == 1) {112 if (ip->ip_p == TRACE_IPPROTO_ICMP) { 113 113 icmpptr = (libtrace_icmp_t *)trace_get_payload_from_ip(ip, 114 114 NULL, remaining);
Note: See TracChangeset
for help on using the changeset viewer.