Changeset e846bec in mainline for uspace/lib/nic/src/nic_driver.c
- Timestamp:
- 2024-03-10T10:46:00Z (10 months 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/src/nic_driver.c
r325ea9c re846bec 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 } … … 647 650 648 651 nic_data->dev = device; 652 errno_t pcap_rc = pcapdump_init(nic_get_pcap_iface(nic_data)); 653 654 if (pcap_rc != EOK) { 655 printf("Failed creating pcapdump port\n"); 656 } 649 657 650 658 return nic_data;
Note:
See TracChangeset
for help on using the changeset viewer.