2033 Commits

Author SHA1 Message Date
Baptiste Wicht
60a6ac57a2 Generate windows on the fly 2016-09-10 19:24:07 +02:00
Baptiste Wicht
96cb067608 Generate window color randomly 2016-09-10 19:20:05 +02:00
Baptiste Wicht
89997be334 Simple program to generate random numbers 2016-09-10 18:36:11 +02:00
Baptiste Wicht
2e978f15ba Basic random capabilities 2016-09-10 18:35:55 +02:00
Baptiste Wicht
3ef31e9718 Use the new API 2016-09-10 17:32:02 +02:00
Baptiste Wicht
8a12f79453 Better tlib file API 2016-09-10 17:31:57 +02:00
Baptiste Wicht
de2574bd40 Fix file descriptor handling 2016-09-10 16:24:36 +02:00
Baptiste Wicht
4a8644b480 Start fd at 1 2016-09-10 16:01:26 +02:00
Baptiste Wicht
61305cfa48 Fix error messages 2016-09-10 15:51:56 +02:00
Baptiste Wicht
2ad062c464 ifconfig program 2016-09-10 15:46:57 +02:00
Baptiste Wicht
54a5669fad Fixes memory issues with network interface
When the vector grows, it invalidates the network interface pointers
2016-09-09 17:42:59 +02:00
Baptiste Wicht
b2f77b6036 Better names 2016-09-09 17:22:35 +02:00
Baptiste Wicht
5e8c59d9b1 Publish more network information 2016-09-09 17:18:03 +02:00
Baptiste Wicht
091edbcd4a Fix the indentation 2016-09-09 17:08:25 +02:00
Baptiste Wicht
f8ac9a81a3 Smarter selection of the interface 2016-09-09 16:55:37 +02:00
Baptiste Wicht
3093a82f68 Prepare loopback interface support 2016-09-09 16:15:50 +02:00
Baptiste Wicht
e11c114bbe Reply to ICMP replies 2016-09-08 21:04:31 +02:00
Baptiste Wicht
5594d03ac6 Tag the packet with the indices of the headers 2016-09-08 20:52:13 +02:00
Baptiste Wicht
ab53488091 Wait for several packets if necessary 2016-09-08 19:25:53 +02:00
Baptiste Wicht
8b092bed75 Better logging 2016-09-08 19:25:46 +02:00
Baptiste Wicht
02ba9365a5 Forward packets to self mac address correctly 2016-09-08 18:46:37 +02:00
Baptiste Wicht
8c5ede6339 Support for emplace_push 2016-09-08 18:46:13 +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
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