Alin Jerpelea
|
37d5c1b0d9
net: Author Gregory Nutt: update licenses to Apache
|
3 years ago |
Gregory Nutt
|
f6b00e1966
tools/nxstyle.c: Fix logic error that prevent detecion of '/' and '/=' as operators. net/: Minor updates resulting from testing tools/nxstyle.
|
5 years ago |
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.
|
6 years ago |
Gregory Nutt
|
7d2b250cbc
net/netdev: All utility functions that lookup network devices should begin with netdev_findby_. Also correct some comments and the name of a formal parameter.
|
6 years ago |
Jake Choy
|
b1daa22040
net/udp/udp_finddev.c: Fix for network byte-order issue when checking if an address is a multicast address.
|
6 years ago |
Gregory Nutt
|
254924029b
net/udp: Restore some legacy behavior that was lost with the implementation of CONFIG_NET_UDP_BINDTODEVICE: If no device has a local address when the broadcast packet is sent and the UDP socket is not bound to a device, there select some arbitrary device. This is certainly lunacy in the case where there are multiple network devices registered because the wrong device will probably be returned. It works find, however, for the legacy case where only a single network device is registered.
|
6 years ago |
Gregory Nutt
|
cf3dd19352
Fix a typo.
|
6 years ago |
Gregory Nutt
|
8e6afb958a
net/udp: If the interface index of the device bound to a UDP socket is no longer valid because the device has been unregistered, then un-bind the UDP socket.
|
6 years ago |
Sebastien Lorquet
|
65be13bffe
net/udp: Finish support for the UDP_BINDTODEVICE protocol socket option
|
6 years ago |
Gregory Nutt
|
7c1394d814
Squashed commit of the following:
|
6 years ago |
Gregory Nutt
|
589e3aa54e
net/udp: Fix a whole in the address lookup logic.
|
6 years ago |
Gregory Nutt
|
a0e169ad7b
net/: Fix a sixlowpan typo bug recently introduced; Rename g_ipv6_allzeroaddre with the more meaning g_ipv6_unspecaddr since the all-zero address is the IPv6 unspecified address (sometime IN6_ADDR_ANY). Remove more inline tests for IPv6 multicast with tcommint net_is_addr_mcast() macro. Update some comments.
|
6 years ago |
Gregory Nutt
|
5bb216fb90
net/: There are many different checks for IPv6 multicast addresses. Most of the checks are different. RFC 3513 clearly specifies how to detect an IPv6 multilcast address: they should begin with 0xffxx. I did not change some of the checks in ipv6_input.c, however. In that file, the comments indicate that the code should only pick of certain mulicast address that begin withi 0xff02.
|
6 years ago |
Gregory Nutt
|
706a6a2c19
Trivial typo fixes
|
6 years ago |
Gregory Nutt
|
daa04c2eae
net/udp: Fix yet another confusion between raddr and laddr introduced in a recent change.
|
6 years ago |
Gregory Nutt
|
66db9f09f6
Fix a typo introduced in 1b6990b69f974b9ef299c8707713cef80b944374. Also some minor design improvment.
|
6 years ago |
Gregory Nutt
|
1b6990b69f
net/udp: When sending a broadcast (or multicast) packet do not attempt to look up the device by the destination IP address. Rather, use the locally bound address for these cases to select the correct network device.
|
6 years ago |
Gregory Nutt
|
fb8cf9373c
net/udp: Resolve race condition in connection-less UDP sockets with read-ahead buffering.
|
6 years ago |
Gregory Nutt
|
bd7c84b23e
Remove CONFIG_NETDEV_MULTINIC. This increases code size by a little, but greatly reduces the complexity of the network code.
|
7 years ago |
Gregory Nutt
|
2ada7d5892
IPv6: Remove comparisons to the address with all ones set. IPv6 does not support broadcast addresses and certainly not in that form. Replace with multicast addresses beginning with 0xff02.
|
7 years ago |
Gregory Nutt
|
d5207efb5a
Be consistent... Use Name: consistent in function headers vs Function:
|
7 years ago |
Gregory Nutt
|
b0ea870bcc
Remove some empty code section comments
|
8 years ago |
Gregory Nutt
|
04a661a97c
TCP networking: Add support for network driver events
|
9 years ago |
Gregory Nutt
|
ab50e9d04d
Networking: Get rid of g_ipv4_allzeroaddr and g_ipv4_alloneaddr. It is more efficient and more intuitive to use INADDR_ANY and INADDR_BROADCAST
|
9 years ago |
Gregory Nutt
|
34509a9ad5
UDP should use dev=NULL if the address in the lookup is INADDR_ANY
|
9 years ago |
Gregory Nutt
|
2102892e7b
Fix missing file and some compilation errors from the last UDP committ
|
9 years ago |