networkd: introduce netdev "Netdevsim" Driver

This "netdevsim" as implied by the name is a tool for network developers and is a simulator.
This simulated networking device is used for testing various networking APIs and at this time
is particularly focused on testing hardware offloading related interfaces.
This commit is contained in:
Susant Sahani
2018-06-03 08:16:11 +05:30
parent 33de6b57a8
commit 56e7fb5088
8 changed files with 44 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
/* SPDX-License-Identifier: LGPL-2.1+ */
#pragma once
/***
This file is part of systemd.
Copyright 2018 Susant Sahani
***/
typedef struct NetDevSim NetDevSim;
#include "netdev/netdev.h"
struct NetDevSim {
NetDev meta;
};
DEFINE_NETDEV_CAST(NETDEVSIM, NetDevSim);
extern const NetDevVTable netdevsim_vtable;