- Timestamp:
- 04/28/05 16:33:54 (17 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:
- b33a242
- Parents:
- b13027e
- Location:
- lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/strndup.c
r808a478 r8d1956e 4 4 #include "../config.h" 5 5 6 #if def HAVE_STRNDUP6 #ifndef HAVE_STRNDUP 7 7 8 8 #include <stdlib.h> -
lib/trace.c
ra6badc2 r8d1956e 273 273 (*libtrace)->format=RTCLIENT; 274 274 } else if (!strncasecmp(scan,"wagint",6)) { 275 struct ports_t *port; 275 276 (*libtrace)->format=WAGINT; 276 277 } else if (!strncasecmp(scan,"wag",3)) { … … 1681 1682 #ifdef DLT_LINUX_SLL 1682 1683 case TRACE_TYPE_LINUX_SLL: 1683 pcap = pcap_open_dead(DLT_LINUX_SLL, 1500);1684 pcap = (pcap_t *)pcap_open_dead(DLT_LINUX_SLL, 1500); 1684 1685 break; 1685 1686 #endif 1686 1687 #ifdef DLT_PFLOG 1687 1688 case TRACE_TYPE_PFLOG: 1688 pcap = pcap_open_dead(DLT_PFLOG, 1500);1689 pcap = (pcap_t *)pcap_open_dead(DLT_PFLOG, 1500); 1689 1690 break; 1690 1691 #endif … … 1833 1834 { 1834 1835 struct libtrace_ip *ip = trace_get_ip(packet); 1836 struct ports_t *port; 1835 1837 if (6 != ip->ip_p 1836 1838 && 17 != ip->ip_p) … … 1839 1841 return 0; 1840 1842 1841 struct ports_t *port;1842 1843 port = (struct ports_t *)((ptrdiff_t)ip + (ip->ip_hl * 4)); 1843 1844 … … 1849 1850 { 1850 1851 struct libtrace_ip *ip = trace_get_ip(packet); 1852 struct ports_t *port; 1851 1853 1852 1854 if (6 != ip->ip_p … … 1857 1859 return 0; 1858 1860 1859 struct ports_t *port;1860 1861 port = (struct ports_t *)((ptrdiff_t)ip + (ip->ip_hl * 4)); 1861 1862
Note: See TracChangeset
for help on using the changeset viewer.