Changeset fc2d593 in mainline for uspace/srv/net/ethip/ethip.c
- Timestamp:
- 2024-12-13T08:33:36Z (10 months ago)
- Children:
- 1333dfc
- Parents:
- c7bd3f9e
- git-author:
- Nataliia Korop <n.corop08@…> (2024-05-08 13:47:52)
- git-committer:
- Nataliia Korop <n.corop08@…> (2024-12-13 08:33:36)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/ethip/ethip.c
rc7bd3f9e rfc2d593 46 46 #include <stdlib.h> 47 47 #include <task.h> 48 #include <pcapdump_iface.h> 48 49 #include "arp.h" 49 50 #include "ethip.h" … … 53 54 54 55 #define NAME "ethip" 56 /** Interface for dumping packets */ 57 pcap_iface_t pcapdump; 55 58 56 59 static errno_t ethip_open(iplink_srv_t *srv); … … 90 93 } 91 94 95 rc = pcapdump_init(&pcapdump); 96 if (rc != EOK) { 97 log_msg(LOG_DEFAULT, LVL_ERROR, "Failed initializing dumping interface."); 98 return rc; 99 } 100 92 101 rc = ethip_nic_discovery_start(); 93 102 if (rc != EOK) … … 197 206 if (rc != EOK) 198 207 return rc; 199 208 pcapdump_packet(&pcapdump, data, size); 200 209 rc = ethip_nic_send(nic, data, size); 201 210 free(data); … … 242 251 return rc; 243 252 } 253 pcapdump_packet(&pcapdump, data, size); 244 254 245 255 iplink_recv_sdu_t sdu;
Note:
See TracChangeset
for help on using the changeset viewer.