Changeset e846bec in mainline for uspace/lib/pcap
- Timestamp:
- 2024-03-10T10:46:00Z (2 years ago)
- Children:
- e4cc266
- Parents:
- 325ea9c (diff), 6eab537d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/lib/pcap
- Files:
-
- 3 edited
-
include/pcap.h (modified) (1 diff)
-
src/pcap.c (modified) (2 diffs)
-
src/pcap_iface.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcap/include/pcap.h
r325ea9c re846bec 64 64 uint32_t snaplen; 65 65 uint32_t additional; /** The LinkType and additional information field is in the form */ 66 } __attribute__((packed, aligned(4)))pcap_file_header_t;66 } pcap_file_header_t; 67 67 68 68 typedef struct pcap_packet_header { -
uspace/lib/pcap/src/pcap.c
r325ea9c re846bec 35 35 * @brief Headers and functions for .pcap file and packets to be dumped 36 36 */ 37 38 #define LOGGER(msg, ...) \39 fprintf(stderr, \40 "[PCAP %s:%d]: " msg "\n", \41 __FILE__, __LINE__, \42 ##__VA_ARGS__\43 )44 37 45 38 #include "pcap.h" … … 108 101 if (writer->data == NULL) { 109 102 rc = EINVAL; 110 LOGGER("Failed to create %s: %s.", filename, str_error(rc));111 103 return rc; 112 104 } -
uspace/lib/pcap/src/pcap_iface.c
r325ea9c re846bec 82 82 } 83 83 84 void pcap_close_file( )84 void pcap_close_file(void) 85 85 { 86 86 pcap_writer.ops->close(&pcap_writer);
Note:
See TracChangeset
for help on using the changeset viewer.
