Changeset 886
- Timestamp:
- 06/23/06 17:15:57 (7 years ago)
- Location:
- trunk/lib
- Files:
-
- 3 edited
-
format_erf.c (modified) (1 diff)
-
format_rt.c (modified) (1 diff)
-
libtrace.h.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/format_erf.c
r853 r886 941 941 do { 942 942 type=libtrace_to_erf_type(trace_get_link_type(packet)); 943 } while(type==(char)-1 && demote_packet( packet));943 } while(type==(char)-1 && demote_packet((libtrace_packet_t *)packet)); 944 944 /* We just don't support this link type sorry */ 945 945 if (type==(char)-1) { -
trunk/lib/format_rt.c
r806 r886 102 102 103 103 if ((he=gethostbyname(RT_INFO->hostname)) == NULL) { 104 perror("gethostbyname"); 105 return -1; 104 trace_set_err(libtrace, TRACE_ERR_INIT_FAILED, 105 "Failed to convert hostname %s to address", 106 RT_INFO->hostname); 107 return -1; 106 108 } 107 109 if ((RT_INFO->input_fd = socket(AF_INET, SOCK_STREAM, 0)) == -1) { 108 perror("socket"); 109 return -1; 110 trace_set_err(libtrace, TRACE_ERR_INIT_FAILED, 111 "Could not create socket"); 112 return -1; 110 113 } 111 114 -
trunk/lib/libtrace.h.in
r876 r886 1143 1143 * @return opaque pointer pointer to a libtrace_filter_t object 1144 1144 * @note The filter is not actually compiled at this point, so no correctness 1145 * tests are performed here. trace_ bpf_setfilter will always return ok, but1145 * tests are performed here. trace_create_filter will always return ok, but 1146 1146 * if the filter is poorly constructed an error will be generated when the 1147 1147 * filter is actually used
Note: See TracChangeset
for help on using the changeset viewer.
