Changeset 4b6495c3 for lib/format_linux.c
- Timestamp:
- 09/28/09 10:58:05 (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:
- dfda78f
- Parents:
- 66cf27f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_linux.c
r1aa4bf7 r4b6495c3 130 130 socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); 131 131 if (FORMAT(libtrace->format_data)->fd==-1) { 132 trace_set_err(libtrace, TRACE_ERR_INIT_FAILED, "Could not create raw socket");132 trace_set_err(libtrace, errno, "Could not create raw socket"); 133 133 free(libtrace->format_data); 134 134 return -1; … … 152 152 (socklen_t)sizeof(addr))==-1) { 153 153 free(libtrace->format_data); 154 trace_set_err(libtrace, TRACE_ERR_INIT_FAILED, "Failed to bind to interface %s", libtrace->uridata);154 trace_set_err(libtrace, errno, "Failed to bind to interface %s", libtrace->uridata); 155 155 return -1; 156 156 } … … 258 258 if (FORMAT(libtrace->format_data)->filter != NULL) 259 259 free(FORMAT(libtrace->format_data)->filter); 260 free(libtrace->format_data); 260 if (libtrace->format_data) 261 free(libtrace->format_data); 261 262 262 263 return 0;
Note: See TracChangeset
for help on using the changeset viewer.