Changeset 42c2e65 in mainline
- Timestamp:
- 2023-12-13T08:35:34Z (13 months ago)
- Children:
- dc5c303
- Parents:
- 7cf5ddb
- Files:
-
- 13 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/abi/ipc/interfaces.h
r7cf5ddb r42c2e65 201 201 INTERFACE_WNDMGT_CB = 202 202 FOURCC_COMPACT('w', 'm', 'g', 't') | IFACE_EXCHANGE_SERIALIZE | IFACE_MOD_CALLBACK, 203 INTERFACE_PCAP_CONTROL = 204 FOURCC_COMPACT('p', 'c', 't', 'l') | IFACE_EXCHANGE_SERIALIZE, 203 205 } iface_t; 204 206 -
uspace/app/meson.build
r7cf5ddb r42c2e65 71 71 'nic', 72 72 'nterm', 73 'pcapctl', 73 74 'pci', 74 75 'ping', -
uspace/drv/nic/e1k/e1k.c
r7cf5ddb r42c2e65 51 51 #include "e1k.h" 52 52 53 #include "pcapdump_iface.h" 54 #include "pcap_iface.h" 53 55 #define NAME "e1k" 54 56 … … 174 176 /** Lock for EEPROM access */ 175 177 fibril_mutex_t eeprom_lock; 178 179 /** Interface for dumping packets */ 180 pcap_iface_t pcapdump; 181 176 182 } e1000_t; 177 183 … … 1189 1195 if (frame != NULL) { 1190 1196 memcpy(frame->data, e1000->rx_frame_virt[next_tail], frame_size); 1197 pcapdump_packet(&e1000->pcapdump, frame->data, frame->size); 1198 1191 1199 nic_received_frame(nic, frame); 1192 1200 } else { … … 2203 2211 goto err_add_to_cat; 2204 2212 2213 errno_t pcap_rc = pcapdump_init(&e1000->pcapdump); 2214 2215 if (pcap_rc != EOK) { 2216 printf("Failed creating pcapdump port\n"); 2217 } 2218 rc = ddf_fun_add_to_category(fun, "pcap"); 2219 if (rc != EOK) 2220 goto err_add_to_cat; 2221 2205 2222 return EOK; 2206 2223 … … 2366 2383 2367 2384 memcpy(e1000->tx_frame_virt[tdt], data, size); 2368 2385 pcapdump_packet(&e1000->pcapdump, data, size); 2369 2386 tx_descriptor_addr->phys_addr = PTR_TO_U64(e1000->tx_frame_phys[tdt]); 2370 2387 tx_descriptor_addr->length = size; -
uspace/drv/nic/e1k/meson.build
r7cf5ddb r42c2e65 27 27 # 28 28 29 deps = [ 'nic' ]29 deps = [ 'nic' , 'pcap' ] 30 30 src = files('e1k.c') -
uspace/lib/c/include/ipc/services.h
r7cf5ddb r42c2e65 67 67 #define SERVICE_NAME_VBD "vbd" 68 68 #define SERVICE_NAME_VOLSRV "volsrv" 69 69 #define SERVICE_NAME_DUMPPCAP "dumppcap" 70 70 #endif 71 71 -
uspace/lib/meson.build
r7cf5ddb r42c2e65 72 72 'minix', 73 73 'nettl', 74 'pcap', 74 75 'pcm', 75 76 'pcut', -
uspace/srv/locsrv/locsrv.c
r7cf5ddb r42c2e65 1390 1390 categ_dir_add_cat(&cdir, cat); 1391 1391 1392 cat = category_new("pcap"); 1393 categ_dir_add_cat(&cdir, cat); 1392 1394 return true; 1393 1395 }
Note:
See TracChangeset
for help on using the changeset viewer.