Gregory Nutt
|
b54ffe858a
Standardization of some function headers.
|
6 years ago |
Gregory Nutt
|
2c2aa94b7d
Squashed commit of the following:
|
7 years ago |
Gregory Nutt
|
cca15891c9
Networking: Fix some errors found by Coverity
|
7 years ago |
Gregory Nutt
|
85b1ae4cf0
Socket interface: Added bind() and connect() interfaces.
|
7 years ago |
Gregory Nutt
|
755b05ff30
TCP/IPv6: Fix a compile issue when IPv6, but not IPv4 is enabled.
|
7 years ago |
Jussi Kivilinna
|
cd3c9634c8
Add user-space networking stack API (usrsock)
|
7 years ago |
Gregory Nutt
|
b52e4e5ecd
Move cancellation point definitions to their own header file.
|
7 years ago |
Gregory Nutt
|
bc3ca25cc7
Cancellation points: Close up some logic to eliminte some race conditions.
|
7 years ago |
Gregory Nutt
|
16be9b332e
More cancellation points
|
7 years ago |
Gregory Nutt
|
7467329a98
Eliminate CONFIG_NO_NOINTS. Lots of files changed -> lots of testing needed.
|
8 years ago |
Gregory Nutt
|
2d057c28c8
net: Disable priority inheritance on all semaphores used for signaling
|
8 years ago |
Gregory Nutt
|
43eb04bb8f
Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info().
|
8 years ago |
Gregory Nutt
|
86b79b33cf
Reserver the name 'err' for other purposes
|
8 years ago |
Gregory Nutt
|
fc3540cffe
Replace all occurrences of vdbg with vinfo
|
8 years ago |
Gregory Nutt
|
6209c51206
net/: More clean-up of spacing/alignment issues
|
9 years ago |
Gregory Nutt
|
b1e09d4847
net/socket and net/tcp: Fix a problem in whent there are multiple network devices. Polls were being sent to all TCP sockets before. This is not good because it means that packets may sometimes be sent out on the wrong device. That is inefficient because it will cause retransmissions and bad performance. But, worse, when one of the devices is not Ethernet, it will have a different MSS and, as a result, incorrect data transfers can cause crashes. The fix is to lock into a single device once the MSS is locked locked down.
|
9 years ago |
Gregory Nutt
|
530d229361
net/udp: Add support for send() with connected UDP sockets
|
9 years ago |
Gregory Nutt
|
fca919f3d2
Networking: Fix some compilation issues noted with network is build with CONFIG_BUILD_KERNEL
|
9 years ago |
Gregory Nutt
|
e22deff1ab
TCP connect. Move the location where the socket is marked as connected in order to avoid a potential race condition
|
9 years ago |
Gregory Nutt
|
b493dde4cf
TCP networking: In the TCP connection operation, it was trying to setup the network monitor BEFORE the socket was successfully connected. This, of course, has ALWAYS failed because the socket is not yet connected and the TCP state is not yet correct for a connected socket. However, because of other changes net_startmonitor(0 no returns a failure condition that causes worse problems when trying to connect. The fix is to move the logic that starts the network monitor to AFTER the socket has been successfully connected.
|
9 years ago |
Gregory Nutt
|
04a661a97c
TCP networking: Add support for network driver events
|
9 years ago |
Gregory Nutt
|
01d176af76
net_startmonitor.c always returned zero. In the case where a socket has already been closed, it correctly handled the disconnetion event but still returned OK. Returning OK causes the callers of net_startmonitor to assume that the connection was okay, undoing the good things that net_startmonitor did and causing the socket to be marked as connected. This behavior was noted by Pelle Windestam.
|
9 years ago |
Gregory Nutt
|
0fc8d2fcc5
Unix domain: Add options to build in stream or datagram support separately
|
9 years ago |
Gregory Nutt
|
62b706fa68
If a Unix domain socket is non-blocking, then the underlying FIFO should also be opened non-blocking
|
9 years ago |
Gregory Nutt
|
ca2102febb
Unix domain: A few fixes from early integration
|
9 years ago |
Gregory Nutt
|
cbf0608513
Various fixes to get Unix domain sockets to build on the simulator without Ethernet
|
9 years ago |
Gregory Nutt
|
c3f2023089
Networking: Add local Unix domain socket connection logic
|
9 years ago |
Gregory Nutt
|
1c8dae4eee
Correct calculation of initial MSS
|
9 years ago |
Gregory Nutt
|
b187b4f381
Networking: Straighten up use if IPv6/IPv4 in TCP connection logic
|
9 years ago |
Gregory Nutt
|
b80cdb3880
Fix a few warnings introduced with the last commit
|
9 years ago |