Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Verlässliche Systemsoftware
projects
osv
Commits
2df8a514
Commit
2df8a514
authored
12 years ago
by
Guy Zana
Browse files
Options
Downloads
Patches
Plain Diff
Call ether_ifdetach() in the test
parent
cf0ce6ec
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bsd/net.cc
+3
-1
3 additions, 1 deletion
bsd/net.cc
bsd/sys/net/route.c
+4
-1
4 additions, 1 deletion
bsd/sys/net/route.c
bsd/sys/net/route.h
+1
-1
1 addition, 1 deletion
bsd/sys/net/route.h
tests/tst-bsd-netdriver.c
+3
-3
3 additions, 3 deletions
tests/tst-bsd-netdriver.c
with
11 additions
and
6 deletions
bsd/net.cc
+
3
−
1
View file @
2df8a514
...
...
@@ -8,6 +8,7 @@ extern "C" {
#include
<bsd/sys/net/if.h>
#include
<bsd/sys/netinet/if_ether.h>
#include
<bsd/sys/net/ethernet.h>
#include
<bsd/sys/net/route.h>
#include
<bsd/machine/param.h>
}
...
...
@@ -22,6 +23,7 @@ void net_init(void)
if_init
(
NULL
);
vnet_if_init
(
NULL
);
domaininit
(
NULL
);
// if_attachdomain(NULL);
route_init
();
vnet_route_init
();
debug
(
"Done!"
);
}
This diff is collapsed.
Click to expand it.
bsd/sys/net/route.c
+
4
−
1
View file @
2df8a514
...
...
@@ -181,6 +181,9 @@ void route_init(void)
if
(
dom
->
dom_maxrtkey
>
max_keylen
)
max_keylen
=
dom
->
dom_maxrtkey
;
/* FIXME: Hack this for now, we don't have domains yet... */
max_keylen
=
sizeof
(
struct
sockaddr_in
);
rn_init
(
max_keylen
);
/* init all zeroes, all ones, mask table */
}
...
...
@@ -188,7 +191,7 @@ void route_init(void)
SYSINIT(route_init, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, route_init, 0);
#endif
void
vnet_route_init
(
const
void
*
__unuse
d
)
void
vnet_route_init
(
voi
d
)
{
struct
domain
*
dom
;
struct
radix_node_head
**
rnh
;
...
...
This diff is collapsed.
Click to expand it.
bsd/sys/net/route.h
+
1
−
1
View file @
2df8a514
...
...
@@ -37,7 +37,7 @@
#include
<osv/mutex.h>
void
route_init
(
void
);
void
vnet_route_init
(
const
void
*
__unuse
d
);
void
vnet_route_init
(
voi
d
);
/*
* Kernel resident routing tables.
...
...
This diff is collapsed.
Click to expand it.
tests/tst-bsd-netdriver.c
+
3
−
3
View file @
2df8a514
...
...
@@ -65,9 +65,9 @@ int create_if(void)
return
(
0
);
}
void
destroy_i
d
(
void
)
void
destroy_i
f
(
void
)
{
/*
ether_ifdetach(pifp);
*/
ether_ifdetach
(
pifp
);
if_free
(
pifp
);
}
...
...
@@ -104,7 +104,7 @@ int main(void)
if_attachdomain
(
NULL
);
// set_address();
destroy_i
d
();
destroy_i
f
();
TLOG
(
"BSD Net Driver Test
\n
"
);
return
(
0
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment