Changeset 205809b for lib/format_linux.c
- Timestamp:
- 02/01/07 14:06:43 (14 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:
- d242ea8
- Parents:
- d5a27e8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/format_linux.c
rd5a27e8 r205809b 100 100 socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); 101 101 if (FORMAT(libtrace->format_data)->fd==-1) { 102 trace_set_err(libtrace, TRACE_ERR_INIT_FAILED, "Could not create raw socket"); 102 103 free(libtrace->format_data); 103 104 return -1; … … 109 110 if (addr.sll_ifindex == 0) { 110 111 close(FORMAT(libtrace->format_data)->fd); 112 trace_set_err(libtrace, TRACE_ERR_INIT_FAILED, "Failed to find interface %s", libtrace->uridata); 111 113 free(libtrace->format_data); 112 114 return -1; … … 120 122 (socklen_t)sizeof(addr))==-1) { 121 123 free(libtrace->format_data); 124 trace_set_err(libtrace, TRACE_ERR_INIT_FAILED, "Failed to bind to interface %s", libtrace->uridata); 122 125 return -1; 123 126 } … … 217 220 */ 218 221 } 222 219 223 trace_set_err(libtrace,TRACE_ERR_UNKNOWN_OPTION, 220 224 "Unknown option %i", option);
Note: See TracChangeset
for help on using the changeset viewer.