Changes in uspace/drv/nic/virtio-net/virtio-net.c [6eab537d:192019f] in mainline
- File:
-
- 1 edited
-
uspace/drv/nic/virtio-net/virtio-net.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/virtio-net/virtio-net.c
r6eab537d r192019f 43 43 44 44 #include <virtio-pci.h> 45 #include <pcapdump_iface.h>46 45 #include "pcapdump_iface.h" 46 #include "pcap_iface.h" 47 47 #define NAME "virtio-net" 48 48 … … 93 93 if (frame) { 94 94 memcpy(frame->data, &hdr[1], len - sizeof(*hdr)); 95 pcapdump_packet(nic_get_pcap_iface(nic), frame->data, frame->size); 95 96 nic_received_frame(nic, frame); 96 97 } else { … … 352 353 /* Copy packet data into the buffer just past the header */ 353 354 memcpy(&hdr[1], data, size); 354 355 pcapdump_packet(nic_get_pcap_iface(nic), data, size); 355 356 /* 356 357 * Set the descriptor, put it into the virtqueue and notify the device … … 432 433 ddf_dev_get_name(dev)); 433 434 435 errno_t pcap_rc = pcapdump_init(nic_get_pcap_iface(nic)); 436 437 if (pcap_rc != EOK) { 438 printf("Failed creating pcapdump port\n"); 439 } 434 440 rc = ddf_fun_add_to_category(fun, "pcap"); 435 if (rc != EOK) { 436 ddf_msg(LVL_ERROR, "Failed adding function to category pcap"); 441 if (rc != EOK) 437 442 goto unbind; 438 }439 443 440 444 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.
