Added control() function (as NULL pointer).
Fixed warnings. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5029 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -29,7 +29,7 @@ static struct core_module_info *core = NULL;
|
|||||||
static struct protosw *proto[IPPROTO_MAX];
|
static struct protosw *proto[IPPROTO_MAX];
|
||||||
static struct ifnet *me = NULL;
|
static struct ifnet *me = NULL;
|
||||||
|
|
||||||
int loopback_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *sa,
|
static int loopback_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *sa,
|
||||||
struct rtentry *rt)
|
struct rtentry *rt)
|
||||||
{
|
{
|
||||||
/* turn it straight back... */
|
/* turn it straight back... */
|
||||||
@@ -46,7 +46,7 @@ int loopback_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *sa,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void loopback_input(struct mbuf *buf)
|
static void loopback_input(struct mbuf *buf)
|
||||||
{
|
{
|
||||||
if (!buf)
|
if (!buf)
|
||||||
return;
|
return;
|
||||||
@@ -147,6 +147,7 @@ struct kernel_net_module_info device_info = {
|
|||||||
},
|
},
|
||||||
loopback_module_init,
|
loopback_module_init,
|
||||||
NULL,
|
NULL,
|
||||||
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
// #pragma mark -
|
// #pragma mark -
|
||||||
|
|||||||
Reference in New Issue
Block a user