Changeset fc2d593 in mainline for uspace/srv/net/ethip/ethip.c


Ignore:
Timestamp:
2024-12-13T08:33:36Z (10 months ago)
Author:
Nataliia Korop <n.corop08@…>
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)
Message:

ethip/drvs can dump, default ethip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/ethip/ethip.c

    rc7bd3f9e rfc2d593  
    4646#include <stdlib.h>
    4747#include <task.h>
     48#include <pcapdump_iface.h>
    4849#include "arp.h"
    4950#include "ethip.h"
     
    5354
    5455#define NAME "ethip"
     56/** Interface for dumping packets */
     57pcap_iface_t pcapdump;
    5558
    5659static errno_t ethip_open(iplink_srv_t *srv);
     
    9093        }
    9194
     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
    92101        rc = ethip_nic_discovery_start();
    93102        if (rc != EOK)
     
    197206        if (rc != EOK)
    198207                return rc;
    199 
     208        pcapdump_packet(&pcapdump, data, size);
    200209        rc = ethip_nic_send(nic, data, size);
    201210        free(data);
     
    242251                return rc;
    243252        }
     253        pcapdump_packet(&pcapdump, data, size);
    244254
    245255        iplink_recv_sdu_t sdu;
Note: See TracChangeset for help on using the changeset viewer.