Changes in uspace/drv/nic/e1k/e1k.c [6eab537d:86f862c] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/e1k/e1k.c
r6eab537d r86f862c 49 49 #include <nic.h> 50 50 #include <ops/nic.h> 51 #include <pcapdump_iface.h>52 51 #include "e1k.h" 53 52 53 #include "pcapdump_iface.h" 54 #include "pcap_iface.h" 54 55 #define NAME "e1k" 55 56 … … 1191 1192 if (frame != NULL) { 1192 1193 memcpy(frame->data, e1000->rx_frame_virt[next_tail], frame_size); 1194 pcapdump_packet(nic_get_pcap_iface(nic), frame->data, frame->size); 1193 1195 1194 1196 nic_received_frame(nic, frame); … … 2206 2208 goto err_add_to_cat; 2207 2209 2210 errno_t pcap_rc = pcapdump_init(nic_get_pcap_iface(nic)); 2211 2212 if (pcap_rc != EOK) { 2213 printf("Failed creating pcapdump port\n"); 2214 } 2208 2215 rc = ddf_fun_add_to_category(fun, "pcap"); 2209 if (rc != EOK) { 2210 ddf_msg(LVL_ERROR, "Failed adding function to category pcap"); 2216 if (rc != EOK) 2211 2217 goto err_add_to_cat; 2212 }2213 2218 2214 2219 return EOK; … … 2375 2380 2376 2381 memcpy(e1000->tx_frame_virt[tdt], data, size); 2382 pcapdump_packet(nic_get_pcap_iface(nic), data, size); 2377 2383 tx_descriptor_addr->phys_addr = PTR_TO_U64(e1000->tx_frame_phys[tdt]); 2378 2384 tx_descriptor_addr->length = size;
Note:
See TracChangeset
for help on using the changeset viewer.