Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Go
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Stiemerling
Go
Commits
310b1ea4
Commit
310b1ea4
authored
7 months ago
by
Martin Stiemerling
Browse files
Options
Downloads
Patches
Plain Diff
Added params for netlink on freebsd
parent
96d8ff00
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/syscall/types_freebsd.go
+49
-0
49 additions, 0 deletions
src/syscall/types_freebsd.go
with
49 additions
and
0 deletions
src/syscall/types_freebsd.go
+
49
−
0
View file @
310b1ea4
...
...
@@ -43,6 +43,8 @@ package syscall
#include <netinet/in.h>
#include <netinet/icmp6.h>
#include <netinet/tcp.h>
#include <netlink/netlink.h>
#include <netlink/netlink_route.h>
enum {
sizeofPtr = sizeof(void*),
...
...
@@ -321,3 +323,50 @@ const (
// Terminal handling
type
Termios
C
.
struct_termios
// Netlink handling
const
(
SizeofNlMsghdr
=
C
.
sizeof_struct_nlmsghdr
SizeofNlMsgerr
=
C
.
sizeof_struct_nlmsgerr
SizeofRtGenmsg
=
C
.
sizeof_struct_rtgenmsg
SizeofNlAttr
=
C
.
sizeof_struct_nlattr
SizeofRtAttr
=
C
.
sizeof_struct_rtattr
SizeofIfInfomsg
=
C
.
sizeof_struct_ifinfomsg
SizeofIfAddrmsg
=
C
.
sizeof_struct_ifaddrmsg
SizeofRtMsg
=
C
.
sizeof_struct_rtmsg
SizeofRtNexthop
=
C
.
sizeof_struct_rtnexthop
NETLINK_ROUTE
=
C
.
NETLINK_ROUTE
NLMSG_ALIGNTO
=
C
.
NLMSG_ALIGNTO
NLMSG_HDRLEN
=
C
.
NLMSG_HDRLEN
NLMSG_DONE
=
C
.
NLMSG_DONE
NLMSG_ERROR
=
C
.
NLMSG_ERROR
NLM_F_DUMP
=
C
.
NLM_F_DUMP
NLM_F_REQUEST
=
C
.
NLM_F_REQUEST
RTA_ALIGNTO
=
C
.
RTA_ALIGNTO
RTM_DELLINK
=
C
.
RTM_DELLINK
RTM_NEWLINK
=
C
.
RTM_NEWLINK
RTM_NEWROUTE
=
C
.
RTM_NEWROUTE
RTM_DELROUTE
=
C
.
RTM_DELROUTE
)
type
NlMsghdr
C
.
struct_nlmsghdr
type
NlMsgerr
C
.
struct_nlmsgerr
type
RtGenmsg
C
.
struct_rtgenmsg
type
NlAttr
C
.
struct_nlattr
type
RtAttr
C
.
struct_rtattr
type
IfInfomsg
C
.
struct_ifinfomsg
type
IfAddrmsg
C
.
struct_ifaddrmsg
type
RtMsg
C
.
struct_rtmsg
type
RtNexthop
C
.
struct_rtnexthop
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