chao.an
10acadb64b
netlink: add netlink route notify support
2020-04-16 11:49:53 -06:00
chao.an
755265506c
netlink: replace the operation handle to connection
...
Change-Id: Ie55d65823fe7eb7e917349c095cf8fd4f6326e8f
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-16 17:39:37 +08:00
chao.an
16c0c61e3e
netlink/route: reuse response terminator
...
Change-Id: I19c3d97b088231d96909d415d286c728ffe83881
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-16 17:39:06 +08:00
chao.an
85dce03d22
netlink/route: remove domain check
...
Change-Id: I965788c3bd2e6bfa41048b87d8c26f111f61c48e
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-04-16 17:39:06 +08:00
Xiang Xiao
581dbb22fe
netlink: Fix nxstyle issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-10 08:18:07 -06:00
Xiang Xiao
369a0fa4fb
netlink: all request to NETLINK_ROUTE should use rtgenmsg
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ib7a05dbf08277f56882e19a886a12a153889ca38
2020-04-10 08:18:07 -06:00
Xiang Xiao
70012bc4a2
netlink: Remove netlink_route_recvfrom
...
The same functionality could be implemented in the common place(netlink_recvfrom)
Change-Id: I8aedb29c4f0572f020ca5c0775f06c5e1e17ae4a
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-04-10 08:18:07 -06: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
42d97079de
net/netlink/netlink_route.c: Correct the return value
2020-02-25 07:33:18 -06:00
Xiang Xiao
cde88cabcc
Run codespell -w with the latest dictonary again
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-02-23 22:27:46 +01:00
chao.an
c65d8e6a23
net/socket: add MSG_DONTWAIT support
...
MSG_DONTWAIT (since Linux 2.2)
Enables nonblocking operation; if the operation would block, the
call fails with the error EAGAIN or EWOULDBLOCK. This provides
similar behavior to setting the O_NONBLOCK flag (via the fcntl(2)
F_SETFL operation), but differs in that MSG_DONTWAIT is a per-call
option, whereas O_NONBLOCK is a setting on the open file description
(see open(2)), which will affect all threads in the calling process
and as well as other processes that hold file descriptors referring
to the same open file description.
2020-02-19 12:21:28 -06:00
Gregory Nutt
0b25b96759
net/netlink/netlink_route.c: Fix a typo.
2020-02-13 15:04:45 -03:00
Gregory Nutt
b72f7cf47f
net/netlink/netlink_route.c: Fix a case where #if was used but #ifdef was intended.
2019-11-19 09:47:57 -06:00
Gregory Nutt
936d69da1f
net/netlink and include/nuttx/net/netlink.h: Make netlink_add_response() a globally access part of the network interface. This is necesssary to support netlink components that reside outside of the net/ sandbox.
2019-11-18 21:12:50 -06:00
Gregory Nutt
a7a1b0888e
net/netlink/netlink_route.c: Remove dangling whitespace at the end of lines.
2019-11-18 10:47:35 -06:00
Gregory Nutt
6479775721
net/netlink/netlink_conn.c: Add support for asynchronous Netlink responses.
2019-11-18 09:48:14 -06:00
Gregory Nutt
9d6c607afc
net/netlink/netlink_route.c: Add some comments.
2019-11-12 10:36:05 -06:00
Gregory Nutt
3e1937b49b
net/netlink: Add options to disable individual NETLINK_ROUTE commands. This will probably become quite large and will need to be higher tunable for smaller platforms.
2019-11-12 10:19:42 -06:00
Gregory Nutt
3811a0f5cc
net/netlink/netlink_route.c: Update some comments.
2019-11-12 07:59:43 -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
71a968ad71
net/netlink/netlink_route.c: Add missing routing table list terminating response.
2019-11-10 15:00:05 -06:00
Gregory Nutt
3a8a829088
net/netlink/netlink_route.c: Add support for obtaining the entire routing table.
2019-11-10 14:11:44 -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
dbbabcd33c
Squashed commit of the following:
...
net/netlink/netlink_route.c: Add Netlink socket NETLINK_ROUTE support for getting a snopshot of the Neighbor table.
net/neighbor/neighbor_snapshot.c: Add neighbor_snapshot() that will eventually be used by the Netlink sockets. Also fixed naming violation 'struct neighbor_entry' -> 'struct neighbor_entry_s'.
include/nuttx/net/neighbor.h: Expose format of the IPv6 neighbor table for use with Netlink sockets.
2019-11-08 11:16:04 -06:00
Gregory Nutt
38e527deeb
net/netlink: Fix cosmetic issues, mostly typo fixes.
2019-11-04 14:06:07 -06:00
Gregory Nutt
6d13705e93
net/netlink: The NETLINK_ROUTE logic needs to return the first queued response and not attempt to match up reponses with requests. That is the Linux compatible way. Also, use queue.h functions for list management and fix an error in arp_snapshot().
2019-11-04 09:02:14 -06:00
Gregory Nutt
7bd045130c
net/netlink/: Misc bugfixes from initial testing using NSH 'arp -t' command.
2019-11-03 19:27:58 -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