Changeset 6b66de6b in mainline for uspace/lib
- Timestamp:
- 2024-02-14T09:18:19Z (20 months ago)
- Children:
- 86f862c
- Parents:
- dc5c303
- git-author:
- Nataliia Korop <n.corop08@…> (2023-12-19 14:05:46)
- git-committer:
- Nataliia Korop <n.corop08@…> (2024-02-14 09:18:19)
- Location:
- uspace/lib/nic
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/include/nic.h
rdc5c303 r6b66de6b 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
rdc5c303 r6b66de6b 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
rdc5c303 r6b66de6b 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
rdc5c303 r6b66de6b 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 */
Note:
See TracChangeset
for help on using the changeset viewer.