yintao
d2fc3f21de
net/rpmsg: use hash to handle rp_name
...
expand the user's rpname size
hash when exceed RPMSG_SOCKET_NAME_LEN due to the limitation of eptname
Signed-off-by: yintao <yintao@xiaomi.com>
2024-10-13 11:33:04 +08:00
Bowen Wang
b5b0430c39
net/vsock: add AF_VSOCK address family
...
Add AF_VSOCK address family support, This is the vsock framework
preparation patch.
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-13 02:02:03 +08:00
Xiang Xiao
6493022047
netlink: Remove the dead code in netlink_close
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-09 12:38:54 +08:00
Xiang Xiao
06d5fe6b33
netlink: Format and algin netlink.h
...
refactor only, no functional change.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-09 12:38:54 +08:00
Alin Jerpelea
cd2fcf5252
include: migrate to SPDX identifier
...
Most tools used for compliance and SBOM generation use SPDX identifiers
This change brings us a step closer to an easy SBOM generation.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2024-10-04 08:18:42 +08:00
Xiang Xiao
fcb3e84c24
can: Merge netpacket/can.h into nuttx/can.h
...
To align with the layout of Linux can header file.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-08-26 05:05:31 -04:00
meijian
4702a09538
net/netlink: Add RTM preifx notify support
...
Signed-off-by: meijian <meijian@xiaomi.com>
2024-05-14 10:05:37 -03:00
Zhe Weng
3a844d8dd7
net/netlink: Add NETLINK_NETFILTER's CONNTRACK support
...
Now we only supports conntrack info from NAT entries, to let our apps in user space know the mapping status in NAT.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2024-04-18 13:03:59 +08:00
Xiang Xiao
ca5a9c711a
Remove @ and % tag from all comments
...
and format the multiple line comments
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-12-11 17:00:10 -03:00
simbit18
9681c52517
Fix nuttx coding style
...
Remove TABs
Fix indentation
2023-07-11 23:32:17 +08:00
zhanghongyu
3538d1b313
netlink: add some definition
...
In order to support the compilation of third-party library, we encounter
some situations where the macro is not defined, refer to the common
implementation of other systems and add relevant definitions.
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-07-08 11:12:41 -03:00
zhanghongyu
f917416340
netlink: add statistics-related struct definitions
...
In order to support the compilation of third-party library, we encounter
some situations where the macro is not defined, refer to the common
implementation of other systems and add relevant definitions.
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-07-08 11:12:41 -03:00
zhanghongyu
fdc6dbf176
netlink: add RTM_NEWADDR, RTM_DELADDR and RTM_GETADDR
...
We have projects that need to sense ip address changes in time,
and set ip address or clear ip address through netlink
so the relevant implementation is added.
The usage and command structure are consistent with linux
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-04-22 01:35:18 +08:00
zhanghongyu
725a1f1e20
netlink: add RTA_MAX definition
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-01-06 22:20:19 +08:00
zhanghongyu
b978ff245e
netlink: add struct nlmsgerr definition
...
Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2023-01-06 22:20:19 +08:00
chao.an
f66b17091c
netpacket/sockaddr_ll: complete the members of sockaddr_ll
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-06-03 13:04:09 +08:00
JacobCrabill
4610aee973
net/netdev: Add CONFIG_NETDEV_CAN_FILTER_IOCTL
2022-05-06 08:54:58 +02:00
ligd
00ef4fca51
rpmgs_socket: set RPMSG_SOCKET_NAME_SIZE to 16 for handing prefix
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-11-04 13:29:51 -05:00
buyuer
0f77a30b22
Add include header file <sys/types.h> to rpmsg.h.
...
When use netpacket/rpmsg.h,the compiler prompt that sa_family_t is not defined.
Signed-off-by: buyuer <dingddding@163.com>
2021-07-06 05:23:46 -05:00
Alin Jerpelea
8034289cf6
include: update licenses to Apache
...
Gregory Nutt is the copyright holder for those files and he has submitted the
SGA as a result we can migrate the licenses to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-05-27 08:07:25 +09:00
Gustavo Henrique Nihei
330eff36d7
sourcefiles: Fix relative path in file header
2021-03-09 23:18:28 +08:00
ligd
70442d1f9d
net/socket_rpmsg: add net socket rpmsg support
...
Change-Id: Ie23ee4c0052cf2fc66972ea9bc5f11c070fbcf8a
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-03-07 01:45:51 -08:00
Alin Jerpelea
9b9be7e1f0
include: Author: Gregory Nutt: update licenses to Apache 2.0
...
Update files from Gregory Nutt to Apache 2.0 license.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2021-02-04 03:33:58 -08:00
chao.an
92259cb194
netpacket/if_addr: add interface address header
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-16 22:52:39 -08:00
Matias N
5386f972fa
bluetooth: Add support for HCI RAW channel; make host layer optional
2020-10-25 17:04:25 -07:00
Yoshinori Sugino
3ac90fca79
Remove tabs and spaces at the end of lines
2020-10-24 09:38:21 +01:00
Brennan Ashton
797bf447d1
net: For Bluetooth sockets use the Linux sockaddr types
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-08-29 14:04:54 -06:00
chao.an
b296adc3bb
socket/SOL: sync the SOL index with linux
...
Change-Id: I32b9eb7cc3bc1428f0ff7bf5e60d7fff52621db2
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-06-29 11:34:43 -05:00
Peter van der Perk
55d9e5f7af
net: Add SocketCAN support
2020-06-15 08:07:19 -06:00
chao.an
bd4bccbe27
netlink: add netlink multicast group define
...
Change-Id: I0cedbee311f83320ba396a1004e12075e835cccf
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-16 17:39:06 +08:00
Xiang Xiao
5708015674
netlink: Sync the macro with Linux definition
...
Change-Id: I0c0895fa17e167c67fb12acfdfc6dc3a7fb63b3b
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-10 08:18:07 -06:00
chao.an
55907b0062
netlink: fix nxstyle warning
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-03 10:33:31 +02:00
chao.an
9a9d76744b
netlink: add NLMSG_OK definition
...
Change-Id: I4ab4cabd1e6950802eda360d972d2ef5cea30da2
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-03 10:33:31 +02:00
chao.an
80c90399e6
netlink: fix typo
...
Change-Id: Ic4e44374945c925b880ba4058f795317f2816107
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-03 10:33:31 +02:00
Xiang Xiao
bd4e8e19d3
Run codespell -w against all files
...
and fix the wrong correction
2020-02-22 14:45:07 -06:00
Xiang Xiao
80277d1630
Refine the preprocessor conditional guard style ( #190 )
2020-01-31 19:07:39 +01:00
Gregory Nutt
ab78f0ca0a
include/netpacket/netlink.h: Backout some preliminary NETLINK_CRYPTO definitions. These are premature (but may come back).
2019-11-17 10:47:24 -06:00
Gregory Nutt
8f726181ed
include/sys/syscall.h: Should be SYS_getitimer and SYS_setitimer, not SYS_getitime and SYS_setitime.
2019-11-14 10:47:11 -06:00
Gregory Nutt
46818f4064
include/netpacket/netlink.h: NETLINK_CRYPTO messages numbers must no overlap NETLINK_ROUTE message numbers.
2019-11-14 10:00:41 -06:00
Gregory Nutt
741fa461c1
syscall/: Implementation of sysclal for new getitimer and setitimer were incomplete.
2019-11-14 09:48:56 -06:00
Gregory Nutt
82a4111a2b
include/netpacket/netlink.h: Add definitions that will be needed for future NETLINK_CRYPTO support.
2019-11-14 09:18:11 -06:00
Gregory Nutt
5344fff515
include/netpacket/netlink.h: Additional general clean-up.
2019-11-12 14:21:18 -06:00
Gregory Nutt
73b86ee458
include/netpacket/netlink.h: General clean-up and re-organization.
2019-11-12 13:27:19 -06:00
Gregory Nutt
ecbd5a85d7
net/netlink: Fixes from testing with new apps/examples/netlink_route.
2019-11-11 13:38:11 -06:00
Gregory Nutt
bda0a9c6a7
net/netlink: Fix offset in rtattr. include/net/route.h: Correct form and naming of sruct rtentry. include/netpacket/netlink.h: Add some definitions that will be needed to access routing tables.
2019-11-10 12:35:15 -06:00
Gregory Nutt
8c85ecf531
net/netlink/netlink_route.c: Add support for the NETLINK_ROUTE RTM_GETLINK command that is used to obtain a list of all devices in the UP state.
2019-11-09 17:36:30 -06:00
Gregory Nutt
fa98b268ec
include/netpacket/netlink.h: Some cosmetic reorganization.
2019-11-03 16:15:59 -06:00
Gregory Nutt
2991987018
net/netlink/netlink_route.c (mostly): This completes a minimal netlink implementation that will retrieve the ARP table.
...
net/netlink: Add basic hooks (only) to support the NETLINK_ROUTE protocol.
2019-11-03 13:59:42 -06:00
Gregory Nutt
056d704cf9
This commit brings in a fragmentary, experimental implementation of NETLINK sockets. There is not too much to that socket support on this initial commit, just the netlink socketer framework. However, I decided to bring it into master because there is a enough that I would not want to lose what is in place. And since it is dependent on CONFIG_EXPERIMENATL, its presence on master should be innocuous.
...
Squashed commit of the following:
net/netlink: Mark netlink support as EXPERIMENTAL.
net/netlink/netlink_sockif.c: Add netlink_getpeername to the socket interface.
net: Add getpeeername() support for netlink sockets.
include/netpacket/netlink.h: Add a few more definitions and structures used at the NetLink interface. Still missing many.
net/netlink: Add basic framework for Netlink socket support.
include/: Add basic Netlink definitions.
2018-08-03 13:22:36 -06:00
Gregory Nutt
fd844f8eac
include/nuttx/wireless/bluetooth: Move Bluetooth header files from include/nuttx/wireless to include/nuttx/wireless/bluetooth for symmetry with other wireless technologies.
2018-04-29 12:43:09 -06:00