openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/systemd/1_242+AUTOINC+db2e367bfc-r0/git/src/network/netdev/netdev.c
static int netdev_create_handler(sd_netlink* rtnl, sd_netlink_message* m,
                                 NetDev* netdev)
{
    int r;

    assert(netdev);
    assert(netdev->state != _NETDEV_STATE_INVALID);

    r = sd_netlink_message_get_errno(m);
    if (r == -EEXIST)
        log_netdev_info(
            netdev,
            "netdev exists, using existing without changing its parameters");
    else if (r < 0)
    {
        log_netdev_warning_errno(netdev, r, "netdev could not be created: %m");
        netdev_drop(netdev);

        return 1;
    }

    log_netdev_debug(netdev, "Created");

    return 1;
}
/* callback for netdev's created without a backing Link */
callback for netdev's created without a backing Link
callback for netdev ' s created without a backing Link
static int netdev_create_handler(sd_netlink* rtnl, sd_netlink_message* m,
                                 NetDev* netdev)
{
    int r;
    assert(netdev);
    assert(netdev->state != _NETDEV_STATE_INVALID);
    r = sd_netlink_message_get_errno(m);
    if (r == -EEXIST)
        log_netdev_info(
            netdev,
            "netdev exists, using existing without changing its parameters");
    else if (r < 0)
    {
        log_netdev_warning_errno(netdev, r, "netdev could not be created: %m");
        netdev_drop(netdev);
        return 1;
    }
    log_netdev_debug(netdev, "Created");
    return 1;
}
static int netdev_create_handler ( sd_netlink * rtnl , sd_netlink_message * m , NetDev * netdev ) { int r ; assert ( netdev ) ; assert ( netdev -> state != _NETDEV_STATE_INVALID ) ; r = sd_netlink_message_get_errno ( m ) ; if ( r == - EEXIST ) log_netdev_info ( netdev , " " ) ; else if ( r < 0 ) { log_netdev_warning_errno ( netdev , r , " " ) ; netdev_drop ( netdev ) ; return 1 ; } log_netdev_debug ( netdev , " " ) ; return 1 ; }
callback for netdev's created without a backing Link
callback for netdev ' s created without a backing Link