Commit 28978713 authored by Bjorn Andersson's avatar Bjorn Andersson Committed by David S. Miller

net: qrtr: Move constants to header file

The constants are used by both the name server and clients, so clarify
their value and move them to the uapi header.
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ae85bfa8
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
#include <linux/socket.h> #include <linux/socket.h>
#include <linux/types.h> #include <linux/types.h>
#define QRTR_NODE_BCAST 0xffffffffu
#define QRTR_PORT_CTRL 0xfffffffeu
struct sockaddr_qrtr { struct sockaddr_qrtr {
__kernel_sa_family_t sq_family; __kernel_sa_family_t sq_family;
__u32 sq_node; __u32 sq_node;
......
...@@ -61,8 +61,6 @@ struct qrtr_hdr { ...@@ -61,8 +61,6 @@ struct qrtr_hdr {
} __packed; } __packed;
#define QRTR_HDR_SIZE sizeof(struct qrtr_hdr) #define QRTR_HDR_SIZE sizeof(struct qrtr_hdr)
#define QRTR_NODE_BCAST ((unsigned int)-1)
#define QRTR_PORT_CTRL ((unsigned int)-2)
struct qrtr_sock { struct qrtr_sock {
/* WARNING: sk must be the first member */ /* WARNING: sk must be the first member */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment