Changeset 8d9217d in mainline for uspace/drv/nic


Ignore:
Timestamp:
2024-03-20T17:06:29Z (19 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
384f081
Parents:
78edb5e
Message:

nic, drvs, pcapctl

Location:
uspace/drv/nic
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/e1k/e1k.c

    r78edb5e r8d9217d  
    22022202                goto err_fun_bind;
    22032203
    2204         rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
    2205         if (rc != EOK)
    2206                 goto err_add_to_cat;
    2207 
    2208         rc = ddf_fun_add_to_category(fun, "pcap");
     2204        // rc = ddf_fun_add_to_category(fun, DEVICE_CATEGORY_NIC);
     2205        // if (rc != EOK)
     2206        //      goto err_add_to_cat;
     2207
     2208        // rc = ddf_fun_add_to_category(fun, "pcap");
     2209        // if (rc != EOK) {
     2210        //      ddf_msg(LVL_ERROR, "Failed adding function to category pcap");
     2211        //      goto err_add_to_cat;
     2212        // }
     2213        rc = nic_fun_add_to_cats(fun);
    22092214        if (rc != EOK) {
    2210                 ddf_msg(LVL_ERROR, "Failed adding function to category pcap");
    2211                 goto err_add_to_cat;
    2212         }
    2213 
     2215                ddf_msg(LVL_ERROR, "Failed adding function to categories");
     2216                return rc;
     2217        }
    22142218        return EOK;
    22152219
    2216 err_add_to_cat:
    2217         ddf_fun_unbind(fun);
     2220        // err_add_to_cat:
     2221        // ddf_fun_unbind(fun);
    22182222err_fun_bind:
    22192223err_rx_structure:
  • uspace/drv/nic/ne2k/ne2k.c

    r78edb5e r8d9217d  
    449449                return rc;
    450450        }
     451        rc = ddf_fun_add_to_category(fun, "pcap");
     452        if (rc != EOK) {
     453                //ddf_msg(LVL_ERROR, "Failed adding function to category pcap");
     454                ddf_fun_unbind(fun);
     455                ddf_fun_destroy(fun);
     456                return rc;
     457        }
    451458
    452459        return EOK;
  • uspace/drv/nic/rtl8139/driver.c

    r78edb5e r8d9217d  
    4242#include <stdio.h>
    4343#include <str.h>
     44#include <pcapdump_iface.h>
    4445
    4546#include "defs.h"
     
    13131314        }
    13141315
     1316        rc = ddf_fun_add_to_category(fun, "pcap");
     1317        if (rc != EOK) {
     1318                ddf_msg(LVL_ERROR, "Failed adding function to category pcap");
     1319                goto err_fun_bind;
     1320        }
     1321
    13151322        ddf_msg(LVL_NOTE, "The %s device has been successfully initialized.",
    13161323            ddf_dev_get_name(dev));
Note: See TracChangeset for help on using the changeset viewer.