Changeset f08447b in mainline for uspace/lib/pcap/src/pcap_iface.c
- Timestamp:
- 2024-12-13T08:44:05Z (10 months ago)
- Children:
- 1d14090
- Parents:
- 03cd7a9e
- git-author:
- Nataliia Korop <n.corop08@…> (2024-10-28 10:18:35)
- git-committer:
- Nataliia Korop <n.corop08@…> (2024-12-13 08:44:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcap/src/pcap_iface.c
r03cd7a9e rf08447b 85 85 // } 86 86 87 88 87 // static pcap_writer_ops_t short_file_ops = { 89 88 // .write_u32 = &pcap_short_file_w32, … … 99 98 100 99 /** When try to start when already started, close current and starts new */ 101 if (dumper->to_dump == true) 102 { 100 if (dumper->to_dump == true) { 103 101 pcap_dumper_stop(dumper); 104 102 } 105 103 errno_t rc = pcap_writer_to_file_init(&dumper->writer, name); 106 if (rc == EOK) 107 { 104 if (rc == EOK) { 108 105 dumper->to_dump = true; 109 } 110 else 111 { 106 } else { 112 107 printf("Failed creating pcap dumper: %s", str_error(rc)); 113 108 } … … 121 116 fibril_mutex_lock(&dumper->mutex); 122 117 123 if (dumper->writer.data == NULL || !dumper->to_dump) 124 { 118 if (dumper->writer.data == NULL || !dumper->to_dump) { 125 119 fibril_mutex_unlock(&dumper->mutex); 126 120 return;
Note:
See TracChangeset
for help on using the changeset viewer.