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
32d56edb
Commit
32d56edb
authored
12 years ago
by
Dor Laor
Browse files
Options
Downloads
Patches
Plain Diff
Add extern "C" defines using BEGIN_DECL for the BSD kernel code.
parent
8f7f4810
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bsd/sys/net/ethernet.h
+4
-0
4 additions, 0 deletions
bsd/sys/net/ethernet.h
bsd/sys/net/if_var.h
+4
-0
4 additions, 0 deletions
bsd/sys/net/if_var.h
with
8 additions
and
0 deletions
bsd/sys/net/ethernet.h
+
4
−
0
View file @
32d56edb
...
...
@@ -370,6 +370,8 @@ struct ether_addr {
#ifdef _KERNEL
__BEGIN_DECLS
struct
ifnet
;
struct
mbuf
;
struct
route
;
...
...
@@ -390,6 +392,8 @@ void ether_vlan_mtap(struct bpf_if *, struct mbuf *,
void
*
,
u_int
);
struct
mbuf
*
ether_vlanencap
(
struct
mbuf
*
,
uint16_t
);
__END_DECLS
#else
/* _KERNEL */
#include
<sys/cdefs.h>
...
...
This diff is collapsed.
Click to expand it.
bsd/sys/net/if_var.h
+
4
−
0
View file @
32d56edb
...
...
@@ -36,6 +36,8 @@
#include
<bsd/porting/rwlock.h>
#include
<bsd/sys/net/if.h>
__BEGIN_DECLS
/*
* Structures defining a network interface, providing a packet
* transport mechanism (ala level 0 of the PUP protocols).
...
...
@@ -830,4 +832,6 @@ void if_deregister_com_alloc(u_char type);
#endif
/* _KERNEL */
__END_DECLS
#endif
/* !_NET_IF_VAR_H_ */
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