unix: add constants for raw CAN sockets

Fixes golang/go#41091

Change-Id: Icae9ad639599474144b286510f744f4a283aba06
GitHub-Last-Rev: 541bdb97bb22a8179534244dbc2f75a91ef6bab4
GitHub-Pull-Request: golang/sys#83
Reviewed-on: https://go-review.googlesource.com/c/sys/+/251357
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Matt Layher <mdlayher@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Stephan Klatt
2020-08-28 15:00:25 +00:00
committed by Matt Layher
parent 131dc92a58
commit 8dfe04af21
4 changed files with 23 additions and 0 deletions
+12
View File
@@ -81,6 +81,7 @@ struct termios2 {
#include <linux/blkpg.h>
#include <linux/bpf.h>
#include <linux/can.h>
#include <linux/can/raw.h>
#include <linux/capability.h>
#include <linux/cgroupstats.h>
#include <linux/cryptouser.h>
@@ -2481,3 +2482,14 @@ const (
NHA_GROUPS = C.NHA_GROUPS
NHA_MASTER = C.NHA_MASTER
)
// raw CAN sockets
const (
CAN_RAW_FILTER = C.CAN_RAW_FILTER
CAN_RAW_ERR_FILTER = C.CAN_RAW_ERR_FILTER
CAN_RAW_LOOPBACK = C.CAN_RAW_LOOPBACK
CAN_RAW_RECV_OWN_MSGS = C.CAN_RAW_RECV_OWN_MSGS
CAN_RAW_FD_FRAMES = C.CAN_RAW_FD_FRAMES
CAN_RAW_JOIN_FILTERS = C.CAN_RAW_JOIN_FILTERS
)