netutils: add NETLIB_SOCK_TYPE for AF_RPMSG
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
5a5448df04
commit
5c1626c764
@ -110,6 +110,8 @@
|
||||
# define NETLIB_SOCK_FAMILY AF_INET
|
||||
#elif defined(CONFIG_NET_NETLINK)
|
||||
# define NETLIB_SOCK_FAMILY AF_NETLINK
|
||||
#elif defined(CONFIG_NET_RPMSG)
|
||||
# define NETLIB_SOCK_FAMILY AF_RPMSG
|
||||
#else
|
||||
# define NETLIB_SOCK_FAMILY AF_UNSPEC
|
||||
#endif
|
||||
@ -162,6 +164,8 @@
|
||||
# define NETLIB_SOCK_TYPE SOCK_RAW
|
||||
#elif NETLIB_SOCK_FAMILY == AF_NETLINK
|
||||
# define NETLIB_SOCK_TYPE SOCK_DGRAM
|
||||
#elif NETLIB_SOCK_FAMILY == AF_RPMSG
|
||||
# define NETLIB_SOCK_TYPE SOCK_STREAM
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user