Changes in / [f2cb80a:90ba06c] in mainline
- Files:
-
- 13 deleted
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
abi/include/abi/ipc/interfaces.h
rf2cb80a r90ba06c 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,205 203 } iface_t; 206 204 -
uspace/app/meson.build
rf2cb80a r90ba06c 72 72 'nic', 73 73 'nterm', 74 'pcapctl',75 74 'ofw', 76 75 'pci', -
uspace/drv/nic/e1k/e1k.c
rf2cb80a r90ba06c 51 51 #include "e1k.h" 52 52 53 #include "pcapdump_iface.h"54 #include "pcap_iface.h"55 53 #define NAME "e1k" 56 54 … … 176 174 /** Lock for EEPROM access */ 177 175 fibril_mutex_t eeprom_lock; 178 179 176 } e1000_t; 180 177 … … 1192 1189 if (frame != NULL) { 1193 1190 memcpy(frame->data, e1000->rx_frame_virt[next_tail], frame_size); 1194 pcapdump_packet(nic_get_pcap_iface(nic), frame->data, frame->size);1195 1196 1191 nic_received_frame(nic, frame); 1197 1192 } else { … … 2208 2203 goto err_add_to_cat; 2209 2204 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 2219 2205 return EOK; 2220 2206 … … 2380 2366 2381 2367 memcpy(e1000->tx_frame_virt[tdt], data, size); 2382 pcapdump_packet(nic_get_pcap_iface(nic), data, size); 2368 2383 2369 tx_descriptor_addr->phys_addr = PTR_TO_U64(e1000->tx_frame_phys[tdt]); 2384 2370 tx_descriptor_addr->length = size; -
uspace/drv/nic/e1k/meson.build
rf2cb80a r90ba06c 27 27 # 28 28 29 deps = [ 'nic' , 'pcap']29 deps = [ 'nic' ] 30 30 src = files('e1k.c') -
uspace/lib/c/include/ipc/services.h
rf2cb80a r90ba06c 67 67 #define SERVICE_NAME_VBD "vbd" 68 68 #define SERVICE_NAME_VOLSRV "volsrv" 69 #define SERVICE_NAME_DUMPPCAP "dumppcap" 69 70 70 #endif 71 71 -
uspace/lib/meson.build
rf2cb80a r90ba06c 78 78 'minix', 79 79 'nettl', 80 'pcap',81 80 'ofw', 82 81 'pcm', -
uspace/lib/nic/include/nic.h
rf2cb80a r90ba06c 44 44 #include <device/hw_res_parsed.h> 45 45 #include <ops/nic.h> 46 47 #include "pcap_iface.h"48 46 49 47 #define DEVICE_CATEGORY_NIC "nic" … … 280 278 extern void nic_sw_period_stop(nic_t *); 281 279 282 /* pcapdump interface */283 extern pcap_iface_t *nic_get_pcap_iface(nic_t *);284 285 280 #endif // __NIC_H__ 286 281 -
uspace/lib/nic/include/nic_driver.h
rf2cb80a r90ba06c 50 50 #include "nic_rx_control.h" 51 51 #include "nic_wol_virtues.h" 52 #include "pcap/include/pcapdump_iface.h"53 52 54 53 struct sw_poll_info { … … 196 195 */ 197 196 poll_request_handler on_poll_request; 198 199 /** Interface for dumping packets */200 pcap_iface_t pcapdump;201 202 197 /** Data specific for particular driver */ 203 198 void *specific; -
uspace/lib/nic/meson.build
rf2cb80a r90ba06c 27 27 # 28 28 29 deps = [ 'drv' , 'pcap']29 deps = [ 'drv' ] 30 30 c_args = [ '-DLIBNIC_INTERNAL', ] 31 31 src = files( -
uspace/lib/nic/src/nic_driver.c
rf2cb80a r90ba06c 1133 1133 } 1134 1134 1135 pcap_iface_t *nic_get_pcap_iface(nic_t *nic_data)1136 {1137 return &nic_data->pcapdump;1138 }1139 1140 1135 /** @} 1141 1136 */ -
uspace/srv/locsrv/locsrv.c
rf2cb80a r90ba06c 1390 1390 categ_dir_add_cat(&cdir, cat); 1391 1391 1392 cat = category_new("pcap");1393 categ_dir_add_cat(&cdir, cat);1394 1392 return true; 1395 1393 }
Note:
See TracChangeset
for help on using the changeset viewer.