Gregory Nutt
68a115aed9
net/icmpv6/icmpv6_autoconfig.c and icmpv6_rnotify.c: Don't take the network device down when reconfiguring only the IP address from within ICMPv6 logic. Recommended by Xiang Xiao in order to avoid the long delays of bringing some networks back up.
...
Normally it is required that the network be in the "down" state when re-configuring the network interface. This is thought not to be a necessary here because.
1. The ICMPv6 logic here runs with the network locked so there can be no outgoing packets with bad source IP addresses from any asynchronous network activity using the device being reconfigured.
2. Incoming packets depend only upon the MAC filtering. Network drivers do not use the IP address; they filter incoming packets using only the MAC address which is not being changed here.
2018-11-10 07:13:54 -06:00
Gregory Nutt
ae29df7445
net/devif/ipv6_input.c: Remove an old, outdated comment.
2018-11-09 17:53:31 -06:00
Xiang Xiao
f64741faca
drivers/timers/arch_rtc.c: up_rtc_set_lowerhalf call clock_synchronize() for external RTC.
2018-11-09 16:34:07 -06:00
Gregory Nutt
a583488829
net/devif/ipv6_input.c: Fix a logic error when the received IPv6 srcaddr is a multicast address. Exiting logic only supported UDP multicast. But MLD and certain other ICMPv6 packets also require acceptance of multicast packets.
2018-11-09 16:26:49 -06:00
Gregory Nutt
8527fcf4c5
net/icmpv6/icmpv6_input.c: Fix some ICMPv6 introduced with recent changes.
2018-11-09 16:10:19 -06:00
Xiang Xiao
71e1056e6d
net/icmpv6, neighbor, and netdev: Rename netdev_dev_lladdrsize() to netdev_lladdrsize() and move the prototype to include/nuttx/nex/netdev.h, giving is global scope within the OS. Reviewer: This degrades the integrity of the modular architecture by introducing a new coupling via C function call. Not a good thing at all.
2018-11-09 16:05:11 -06:00
Xiang Xiao
a139b7f9b1
net/arp and icmpv6: Double the delay time on each iteration for ARP/ICMP to fight work jitter better.
2018-11-09 15:55:38 -06:00
Xiang Xiao
4f25b83f8f
et/icmpv6: Remove the coupling between ICMPv6 and Ethernet by moving all Ethernet stuff to neighbor_ethernet_out.c and make the mac address as first field.
2018-11-09 15:41:23 -06:00
Xiang Xiao
a3cda3867b
net/icmpv6/icmpv6_linkipaddr.c: Encapsulate the link scope address generation into icmpv6_linkipaddr()
2018-11-09 15:28:58 -06:00
Xiang Xiao
52021a5300
net/icmpv6/icmpv6_conn.c: icmpv6_free() remove reference count operation since it's already done in icmpv6_close().
2018-11-09 15:22:25 -06:00
Xiang Xiao
688ccb156a
net/icmpv6/icmpv6_neighbor.c: icmpv6_neighbor shouldn't use the out of scope variable(dripaddr)
2018-11-09 15:18:17 -06:00
Gregory Nutt
915c2ecd4b
Documentation: Trivial update to the 'About NuttX' document.
2018-11-09 14:34:00 -06:00
Gregory Nutt
b93c3c13c4
net/: Fix some compile errors introduce with recent networking patches. Found in build testing.
2018-11-09 14:25:44 -06:00
Xiang Xiao
e294162697
net/neighbor: Support neighbor_out() for multiple link layer at the same time
2018-11-09 14:21:49 -06:00
Xiang Xiao
0a6e234962
net/neighbor: neighbor_lookup() checks if the target IP belongs to one of the local network devices.
2018-11-09 14:14:15 -06:00
Xiang Xiao
0a673d78dc
net/neighbor/neighbor_dumpentry.c: Simplify neighbor_dumpentry() implementation
2018-11-09 14:10:18 -06:00
Xiang Xiao
7f8496c643
net/neighbor: Simplify the neighbor table aging process
2018-11-09 14:08:18 -06:00
Xiang Xiao
eb31dc69ac
net/: Remove the unnecessary arp.h inclusion
2018-11-09 14:01:12 -06:00
Xiang Xiao
9711f6c668
Remove dup definition in nuttx/net/arp.h and include/nuttx/net/ioctl.h
2018-11-09 13:59:45 -06:00
Xiang Xiao
bdf93a8abf
net/arp/arp_send.c: Check ifname match before sending packet
2018-11-09 13:57:16 -06:00
Xiang Xiao
43706cd797
net/arp: Redesign ARP table aging to simplify the net initialization
2018-11-09 13:54:55 -06:00
Gregory Nutt
9d09b5aad7
Eliminate a warning found in build testing.
2018-11-09 13:23:12 -06:00
Xiang Xiao
a6f64725af
include/arpa/inet.h: Remove the dup INET[6]_ADDRSTRLEN from arpa.inet.h already define in netinet/in.h
2018-11-09 11:52:30 -06:00
Xiang Xiao
e0e18fcc74
include/net and include/sys: align the constant values with values in the linux kernel which makes targeting the usrsock server to Linux kernel easier.
2018-11-09 11:50:00 -06:00
Gregory Nutt
25f24c2743
include/netinet/in.h: Add Linux IP_PKTINFO and IPV6_PKTINFO definitions, but not yet realized.
2018-11-09 11:46:57 -06:00
Gregory Nutt
6ca2bcb577
net/icmpv6/icmpv6_input.c: Fix yet another build issue in this file found by build testing.
2018-11-09 11:44:01 -06:00
ligd
4a8b750ecd
ibs/libc/net: Add basic implementation for recvmsg and sendmsg per OpenGroup.org specification.
2018-11-09 11:39:05 -06:00
Xiang Xiao
b8b90b5c4f
net/usrsock/usrsock_accept.c: Mark newconn ready before issue accept request to avoid the event get discarded due to the socket in the invalid state
2018-11-09 11:28:19 -06:00
Xiang Xiao
44bcd2c44d
net/: add NET_ICMP[v6]_NO_STACK for usrsock case
2018-11-09 11:25:57 -06:00
Xiang Xiao
26ae4176f0
net/arp and net/icmpv6: don't call d_txavail directly since it may point to NULL
2018-11-09 11:22:58 -06:00
zhangyuan7
f036e2a32a
net/tcp/tcp_backlog.c: Add SOMAXCONN definition and implementaton per OpenGroup.org.
2018-11-09 11:20:33 -06:00
Xiang Xiao
d2cfd398ba
Fix compiler error and warning when CONFIG_NET_SENDFILE=y
2018-11-09 11:17:43 -06:00
Gregory Nutt
9d2e6cf66a
net/icmpv6/icmpv6_input.c: Fix a recently introduced error found in build testing.
2018-11-09 11:08:51 -06:00
Xiang Xiao
9e42bede2f
net/udp/udp_finddev.c: Fallback to netdev_default device if the device is not found, rather than arbitrary using the device at the head of the list of devices.
2018-11-09 11:05:45 -06:00
Gregory Nutt
0d13cb5055
Remove deletion of Eclipse project files from make distclean target per request of David Sidrane.
2018-11-09 10:39:18 -06:00
Gregory Nutt
2b6b3724fb
drivers/usbdev/Kconfig: Fix misplaced endif.
2018-11-09 10:26:33 -06:00
Juha Niskanen
e37f260d67
arch/arm/src/stm32l4: add initial support for STM32L412 and STM32L422 chips
2018-11-09 09:54:20 -06:00
Xiang Xiao
8193c28e91
drivers/net/tun.c: Call ipv[4|6]_input dynamically by checking packet header and remove the code duplication
2018-11-09 09:50:10 -06:00
Xiang Xiao
3f1b6543db
drivers/net/slip.c: Add IPv6 support and fix minor issue
2018-11-09 09:41:24 -06:00
Xiang Xiao
f65e7a4097
drivers/net/lan91c111.c: Reuse lan91c111_reply for ARP case
2018-11-09 09:38:59 -06:00
Xiang Xiao
cb095ea3d3
libs/libc/misc/lib_envpath.c: Fix typo error
2018-11-09 09:35:25 -06:00
Xiang Xiao
ae6797aabb
include/nuttx/fs/fs.h: register_mtddriver should depend on CONFIG_MTD not CONFIG_MTD_PARTITION
2018-11-09 09:29:41 -06:00
ligd
712540b6a0
sched/wdog: improve accuracy of wd_gettime() in tickless mode
2018-11-09 09:27:40 -06:00
ligd
441cf6c207
sched/wdog: improve accuracy of wd_gettime() in tickless mode
2018-11-09 09:26:34 -06:00
Xiang Xiao
74c4d4f3d7
include/nuttx/signal.h: Fix nxsig_notification comment
2018-11-09 09:15:00 -06:00
Xiang Xiao
28abd336da
arch/sim/src/up_hostfs.c: Support S_IFSOCK, DT_LNK, O_DIRECT and O_SYNC
2018-11-09 09:13:55 -06:00
Xiang Xiao
a82f073892
Fixes warnings from header files:
...
include/nuttx/clock.h: Fix uptime wrong if DEBUG_FEATURES and SCHED_TICKLESS enabled
include/nuttx/arch.h: fix CONFIG_ARCH_INTERRUPTSTACK not defined warning
include/nuttx/audio/audio_i2s.h: Fix warning: struct i2s_dev_s declared inside parameter list
2018-11-09 09:10:28 -06:00
anchao
c68f44dc44
Fix typographical error in endian.h and resource.h
2018-11-09 09:05:48 -06:00
zhangyuan7
e922d339c8
include/netdb.h Add NO_ADDRESS definition
2018-11-09 09:04:21 -06:00
Xiang Xiao
7828dff2ea
drivers/syslog: syslog_initialize initialize dev/syslog too and call syslog to add the prefix and timestamp
2018-11-09 08:49:07 -06:00