Changes in / [90ba06c:f2cb80a] in mainline
- Files:
-
- 13 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/abi/ipc/interfaces.h
r90ba06c rf2cb80a 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
r90ba06c rf2cb80a 72 72 'nic', 73 73 'nterm', 74 'pcapctl', 74 75 'ofw', 75 76 'pci', -
uspace/drv/nic/e1k/e1k.c
r90ba06c rf2cb80a 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 176 179 } e1000_t; 177 180 … … 1189 1192 if (frame != NULL) { 1190 1193 memcpy(frame->data, e1000->rx_frame_virt[next_tail], frame_size); 1194 pcapdump_packet(nic_get_pcap_iface(nic), frame->data, frame->size); 1195 1191 1196 nic_received_frame(nic, frame); 1192 1197 } else { … … 2203 2208 goto err_add_to_cat; 2204 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 } 2215 rc = ddf_fun_add_to_category(fun, "pcap"); 2216 if (rc != EOK) 2217 goto err_add_to_cat; 2218 2205 2219 return EOK; 2206 2220 … … 2366 2380 2367 2381 memcpy(e1000->tx_frame_virt[tdt], data, size); 2368 2382 pcapdump_packet(nic_get_pcap_iface(nic), data, size); 2369 2383 tx_descriptor_addr->phys_addr = PTR_TO_U64(e1000->tx_frame_phys[tdt]); 2370 2384 tx_descriptor_addr->length = size; -
uspace/drv/nic/e1k/meson.build
r90ba06c rf2cb80a 27 27 # 28 28 29 deps = [ 'nic' ]29 deps = [ 'nic' , 'pcap' ] 30 30 src = files('e1k.c') -
uspace/lib/c/include/ipc/services.h
r90ba06c rf2cb80a 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
r90ba06c rf2cb80a 78 78 'minix', 79 79 'nettl', 80 'pcap', 80 81 'ofw', 81 82 'pcm', -
uspace/lib/nic/include/nic.h
r90ba06c rf2cb80a 44 44 #include <device/hw_res_parsed.h> 45 45 #include <ops/nic.h> 46 47 #include "pcap_iface.h" 46 48 47 49 #define DEVICE_CATEGORY_NIC "nic" … … 278 280 extern void nic_sw_period_stop(nic_t *); 279 281 282 /* pcapdump interface */ 283 extern pcap_iface_t *nic_get_pcap_iface(nic_t *); 284 280 285 #endif // __NIC_H__ 281 286 -
uspace/lib/nic/include/nic_driver.h
r90ba06c rf2cb80a 50 50 #include "nic_rx_control.h" 51 51 #include "nic_wol_virtues.h" 52 #include "pcap/include/pcapdump_iface.h" 52 53 53 54 struct sw_poll_info { … … 195 196 */ 196 197 poll_request_handler on_poll_request; 198 199 /** Interface for dumping packets */ 200 pcap_iface_t pcapdump; 201 197 202 /** Data specific for particular driver */ 198 203 void *specific; -
uspace/lib/nic/meson.build
r90ba06c rf2cb80a 27 27 # 28 28 29 deps = [ 'drv' ]29 deps = [ 'drv' , 'pcap' ] 30 30 c_args = [ '-DLIBNIC_INTERNAL', ] 31 31 src = files( -
uspace/lib/nic/src/nic_driver.c
r90ba06c rf2cb80a 1133 1133 } 1134 1134 1135 pcap_iface_t *nic_get_pcap_iface(nic_t *nic_data) 1136 { 1137 return &nic_data->pcapdump; 1138 } 1139 1135 1140 /** @} 1136 1141 */ -
uspace/srv/locsrv/locsrv.c
r90ba06c rf2cb80a 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.