1857 Commits

Author SHA1 Message Date
Baptiste Wicht
1aa9ccf37c Add make_unexpected 2016-09-08 16:05:47 +02:00
Baptiste Wicht
80300ea7ee Improve the interface 2016-09-08 12:58:30 +02:00
Baptiste Wicht
587dd7cb90 Fix typo 2016-09-08 12:49:48 +02:00
Baptiste Wicht
e2dc653863 Add static assertions on the size of expected 2016-09-08 12:44:29 +02:00
Baptiste Wicht
1e8fe35905 Add timeout support to packet waiting 2016-09-08 12:39:07 +02:00
Baptiste Wicht
25625b44af Better handling for ARP timeout error 2016-09-08 12:25:09 +02:00
Baptiste Wicht
1505fe2f70 Add default timeout for ARP resolution 2016-09-08 12:20:53 +02:00
Baptiste Wicht
026406da50 Use explicit error for timeout 2016-09-08 12:17:32 +02:00
Baptiste Wicht
ebbc9e63cd Propagate ARP errors 2016-09-08 12:15:39 +02:00
Baptiste Wicht
84240bd87c Propagate the error 2016-09-08 12:09:01 +02:00
Baptiste Wicht
175bda1ad2 prepare_packet can fail 2016-09-08 11:06:47 +02:00
Baptiste Wicht
1d4b202224 Handle ARP requests to self 2016-09-08 10:47:06 +02:00
Baptiste Wicht
625fde7496 Make the makefile more portable 2016-09-06 15:21:15 +02:00
Baptiste Wicht
5c4222c6b5 Add version with timeout to forced ARP cache 2016-09-05 23:25:58 +02:00
Baptiste Wicht
10efba4956 Wait for ARP packet with timeout 2016-09-05 23:24:12 +02:00
Baptiste Wicht
4bc88f79a4 Doc 2016-09-05 23:11:22 +02:00
Baptiste Wicht
b21d14c03b Fix packet memory leak 2016-09-05 23:08:46 +02:00
Baptiste Wicht
1ece2b76b5 Handle network card interrupts better
It seems that a single interrupt can be used for both a transmit and
a receive
2016-09-05 22:56:54 +02:00
Baptiste Wicht
fccc10bf4b Better logging 2016-09-05 22:56:21 +02:00
Baptiste Wicht
dc5daa4752 Fix some warnings 2016-09-05 22:32:15 +02:00
Baptiste Wicht
d18dcfb162 Change License to MIT 2016-09-05 21:53:42 +02:00
Baptiste Wicht
18b6e17893 Send several pings 2016-09-05 20:44:17 +02:00
Baptiste Wicht
f50b495e2d Use user memory for user packets 2016-09-05 20:38:46 +02:00
Baptiste Wicht
1dd36c193a Add missing include 2016-09-05 20:35:51 +02:00
Baptiste Wicht
f3dcfcb7b6 Add missing include 2016-09-05 20:35:28 +02:00
Baptiste Wicht
9e1aebc44d Prepare packet receiving in user mode 2016-09-04 22:08:30 +02:00
Baptiste Wicht
5a051b234c Socket access 2016-09-04 21:37:52 +02:00
Baptiste Wicht
da9139d42b Prepare wait for packet infrastructure 2016-09-04 21:21:39 +02:00
Baptiste Wicht
116488b2a6 Fix missing include 2016-09-04 21:16:32 +02:00
Baptiste Wicht
af9248e43b Refactor sleep_queue 2016-09-04 21:16:13 +02:00
Baptiste Wicht
6ef733cce9 Use user memory for user network packets 2016-09-04 11:44:35 +02:00
Baptiste Wicht
928f45adf2 Refactorings 2016-09-04 11:09:13 +02:00
Baptiste Wicht
6841823de9 Implement back_inserter and front_inserter 2016-09-04 11:09:09 +02:00
Baptiste Wicht
e513bb3256 Better usage of the STL 2016-09-04 10:51:14 +02:00
Baptiste Wicht
0d37453045 Refactorings 2016-09-03 23:30:15 +02:00
Baptiste Wicht
5878ec6bec Add missing include 2016-09-03 23:28:06 +02:00
Baptiste Wicht
4e105e2971 Cleanup 2016-09-03 23:27:56 +02:00
Baptiste Wicht
860bb1618d Cleanup 2016-09-03 23:27:08 +02:00
Baptiste Wicht
d22b782949 Use own initializer list 2016-09-03 23:26:30 +02:00
Baptiste Wicht
00d00d930e Tests for std::vector 2016-09-03 23:14:09 +02:00
Baptiste Wicht
4bdec39c35 std::find(-if) / std::remove(-if) algorithms 2016-09-03 23:13:14 +02:00
Baptiste Wicht
b646873678 Better erase capabilities in vector 2016-09-03 23:11:55 +02:00
Baptiste Wicht
270648b447 Let a vector be constructed from initializer list 2016-09-03 23:00:39 +02:00
Baptiste Wicht
72b68463a4 Add note 2016-09-03 22:32:16 +02:00
Baptiste Wicht
521f5b7912 Complete ping program 2016-09-03 22:30:37 +02:00
Baptiste Wicht
abd56314b8 Fix finalize_packet 2016-09-03 22:30:18 +02:00
Baptiste Wicht
a3b0fba454 Better logging 2016-09-03 22:29:22 +02:00
Baptiste Wicht
cea2a6c624 Complete the network sending support 2016-09-03 22:17:55 +02:00
Baptiste Wicht
2a85cdccce get_socket returns a reference 2016-09-03 22:01:22 +02:00
Baptiste Wicht
849a269fde Tests for std::tuple 2016-09-03 21:28:30 +02:00