13 lines
200 B
C
13 lines
200 B
C
|
|
#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;
|
||
|
|
return NET_DEVICE(dev);
|
||
|
|
}
|