whitequark
|
51b2f18d11
Keep dispatching packets from a socket as long as there are any.
|
há 7 anos atrás |
Egor Karavaev
|
a2c66fdd88
Factor out TcpSocket::accepts.
|
há 7 anos atrás |
Egor Karavaev
|
44cf21b91b
Factor out UdpSocket::accepts.
|
há 7 anos atrás |
Egor Karavaev
|
5303501173
Factor out RawSocket::accepts.
|
há 7 anos atrás |
whitequark
|
6ebcddd077
According to RFC 1122, unsupported IP options MUST be ignored.
|
há 7 anos atrás |
whitequark
|
3fff475c8f
An unaddressable egress packet should not be a reportable error.
|
há 7 anos atrás |
whitequark
|
017210ea28
Exhaustion of transmit buffers should not be a reportable error.
|
há 7 anos atrás |
whitequark
|
b92708596a
Move the TCP receive window clamping hack downwards in stack.
|
há 7 anos atrás |
whitequark
|
1ece71a774
Return from EthernetInterface::poll() on errors, don't swallow them.
|
há 7 anos atrás |
whitequark
|
39464a53fc
Compute soft deadline in poll() and use nonblocking sockets.
|
há 7 anos atrás |
whitequark
|
2354e0b29d
Clarify a function name.
|
há 7 anos atrás |
whitequark
|
8ae9b21b64
Break up the EthernetInterface::dispatch macro atrocity into functions.
|
há 7 anos atrás |
whitequark
|
43a547fb0c
Factor out packet parsing from Socket::process.
|
há 7 anos atrás |
whitequark
|
3974dc780f
Get rid of unused arguments in Socket::{process,dispatch}.
|
há 7 anos atrás |
whitequark
|
ab0eccd213
Get rid of IpPayload and indirection in Socket::dispatch.
|
há 7 anos atrás |
whitequark
|
ad9fa282e6
Unify EthernetInterface::{send_response,emit} transmit paths.
|
há 7 anos atrás |
whitequark
|
917f89e14b
Use FnOnce, not FnMut, in Socket::dispatch() functions.
|
há 7 anos atrás |
whitequark
|
72359cdd37
Radically simplify and optimize TCP packet dispatch.
|
há 7 anos atrás |
whitequark
|
bc2a894c00
Rework responses to TCP packets and factor in RST replies to TcpSocket.
|
há 7 anos atrás |
whitequark
|
7e6e379e09
Fix a typo that broke ARP replies.
|
há 7 anos atrás |
whitequark
|
77ffe7c065
Simplify ARP handling code in EthernetInterface.
|
há 7 anos atrás |
whitequark
|
ca6fa2d423
Assert that the transmit frame returned by driver has right length.
|
há 7 anos atrás |
whitequark
|
5bf64586cd
Get rid of Result<_, ()>.
|
há 7 anos atrás |
whitequark
|
c5aa37185f
Fix ICMP error returned by EthernetInterface for unknown IP protocols.
|
há 7 anos atrás |
whitequark
|
c6d4823489
Clean up socket error handling in EthernetInterface.
|
há 7 anos atrás |
whitequark
|
ffe2de73c1
Reorganize EthernetInterface impl. NFC.
|
há 7 anos atrás |
whitequark
|
3a656c1529
Inject the current timestamp into Device::{transmit,receive}.
|
há 7 anos atrás |
whitequark
|
5f16fc0032
Fix a typo in 5c3fc493.
|
há 8 anos atrás |
whitequark
|
5c3fc4935e
Discard packets with non-unicast source addresses at IP level.
|
há 8 anos atrás |
Egor Karavaev
|
921f2e36c8
Don't reply to a TCP RST packet with another TCP RST packet.
|
há 8 anos atrás |