2023-04-03 16:59:14 +01:00
|
|
|
#include <socks/device.h>
|
|
|
|
|
|
|
|
|
|
struct net_device *net_device_create(void)
|
|
|
|
|
{
|
|
|
|
|
struct device *dev = device_alloc();
|
|
|
|
|
if (!dev) {
|
|
|
|
|
return NULL;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dev->dev_type = DEV_TYPE_NET;
|
2023-06-02 19:35:07 +01:00
|
|
|
|
2023-04-03 16:59:14 +01:00
|
|
|
return NET_DEVICE(dev);
|
|
|
|
|
}
|