1284 Commits

Author SHA1 Message Date
Baptiste Wicht
02ba9365a5 Forward packets to self mac address correctly 2016-09-08 18:46:37 +02:00
Baptiste Wicht
4ace048537 Cleanup interface 2016-09-08 16:40:19 +02:00
Baptiste Wicht
0bd37a93cb Better interface 2016-09-08 16:29:32 +02:00
Baptiste Wicht
b7d3793bd0 Review the interface 2016-09-08 16:20:08 +02:00
Baptiste Wicht
9311f5cd4d Improve network interface 2016-09-08 16:15:10 +02:00
Baptiste Wicht
80300ea7ee Improve the interface 2016-09-08 12:58:30 +02:00
Baptiste Wicht
1e8fe35905 Add timeout support to packet waiting 2016-09-08 12:39:07 +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
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
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
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
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
4e105e2971 Cleanup 2016-09-03 23:27:56 +02:00
Baptiste Wicht
72b68463a4 Add note 2016-09-03 22:32:16 +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
7ea54ce2df Expose net structures to the tlib 2016-09-03 17:16:29 +02:00
Baptiste Wicht
b581eb2fc6 Fix the link order 2016-09-03 14:52:48 +02:00
Baptiste Wicht
9b5793da64 Refactorings 2016-08-25 22:57:57 +02:00
Baptiste Wicht
0cf3b6e5b9 Reformat 2016-08-25 22:54:04 +02:00
Baptiste Wicht
6da4df0065 Fix 2016-08-25 22:53:37 +02:00
Baptiste Wicht
623294dd35 Some cleanup 2016-08-25 22:49:43 +02:00
Baptiste Wicht
d936fbae19 Cleanup 2016-08-25 22:36:50 +02:00
Baptiste Wicht
c122390a58 Refactor 2016-08-25 22:34:38 +02:00
Baptiste Wicht
5f8580a5a7 Cleanup 2016-08-25 22:30:57 +02:00
Baptiste Wicht
032b20d122 Improve namespaces of tlib 2016-08-25 22:28:39 +02:00
Baptiste Wicht
d1f01df46c Use a namespace for the tlib 2016-08-25 21:30:14 +02:00
Baptiste Wicht
9f70247a4a Add socket_open and socket_close system calls 2016-08-25 19:19:13 +02:00