Implement ethtool get/set value operations
Bug: 156784343
Test: manual
Change-Id: I33b23bf9c6639cab6006c756d4ddbe561b9441ba
diff --git a/automotive/can/1.0/default/libnetdevice/common.h b/automotive/can/1.0/default/libnetdevice/common.h
index c521835..1e04d41 100644
--- a/automotive/can/1.0/default/libnetdevice/common.h
+++ b/automotive/can/1.0/default/libnetdevice/common.h
@@ -18,10 +18,28 @@
#include "nlbuf.h"
+#include <linux/can.h>
+#include <net/if.h>
+
#include <string>
namespace android::netdevice {
+namespace socketparams {
+
+struct Params {
+ int domain;
+ int type;
+ int protocol;
+};
+
+constexpr Params general = {AF_INET, SOCK_DGRAM, 0};
+constexpr Params can = {PF_CAN, SOCK_RAW, CAN_RAW};
+
+extern Params current;
+
+} // namespace socketparams
+
/**
* Returns the index of a given network interface.
*