Changeset 87488278 in mainline for uspace/lib/nic/src/nic_driver.c
- Timestamp:
- 2024-06-27T08:07:31Z (6 days ago)
- Parents:
- af3235d (diff), 2a0c827c (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. - git-author:
- boba-buba <120932204+boba-buba@…> (2024-06-27 08:07:31)
- git-committer:
- GitHub <noreply@…> (2024-06-27 08:07:31)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/src/nic_driver.c
raf3235d r87488278 47 47 #include <ops/nic.h> 48 48 #include <errno.h> 49 #include <pcapdump_iface.h> 49 50 50 51 #include "nic_driver.h" … … 522 523 * calls it inside send_frame handler (with locked main lock) 523 524 */ 525 pcapdump_packet(nic_get_pcap_iface(nic_data), frame->data, frame->size); 524 526 fibril_rwlock_read_lock(&nic_data->rxc_lock); 525 527 nic_frame_type_t frame_type; … … 560 562 fibril_rwlock_write_unlock(&nic_data->stats_lock); 561 563 } 564 //pcapdump_packet(nic_get_pcap_iface(nic_data), frame->data, frame->size); 562 565 nic_release_frame(nic_data, frame); 563 566 } … … 648 651 nic_data->dev = device; 649 652 653 errno_t pcap_rc = pcapdump_init(nic_get_pcap_iface(nic_data)); 654 if (pcap_rc != EOK) { 655 printf("Failed creating pcapdump port\n"); 656 } 657 650 658 return nic_data; 651 659 } … … 1133 1141 } 1134 1142 1143 pcap_iface_t *nic_get_pcap_iface(nic_t *nic_data) 1144 { 1145 return &nic_data->pcapdump; 1146 } 1147 1135 1148 /** @} 1136 1149 */
Note:
See TracChangeset
for help on using the changeset viewer.