1413 Commits

Author SHA1 Message Date
Baptiste Wicht
d654a7a3ab Use the new emplace_back 2016-09-11 21:03:16 +02:00
Baptiste Wicht
3b38aed314 Start socket fd at 1 2016-09-11 20:06:37 +02:00
Baptiste Wicht
897497c9d4 Reformat code 2016-09-11 19:13:51 +02:00
Baptiste Wicht
0a9442aeb9 Improve VFS interface 2016-09-11 18:12:25 +02:00
Baptiste Wicht
9374fded2d Full DNS decoding
"Full" :)
2016-09-11 16:18:30 +02:00
Baptiste Wicht
283b7a460e Fix tags handling 2016-09-11 15:24:41 +02:00
Baptiste Wicht
b20b689d17 Improve decoding 2016-09-11 15:04:55 +02:00
Baptiste Wicht
12bf0aba4c Propagate packet from IP -> UDP 2016-09-11 14:49:42 +02:00
Baptiste Wicht
294bab5c58 Fix the checksum 2016-09-11 14:47:49 +02:00
Baptiste Wicht
c30d95714c Complete DNS query 2016-09-11 13:33:43 +02:00
Baptiste Wicht
c258de32ad Use alpha to test DNS 2016-09-11 11:58:01 +02:00
Baptiste Wicht
6b69ecb94b Move alpha system call 2016-09-11 11:32:10 +02:00
Baptiste Wicht
f4e5c43bf9 Prepare DNS encoding 2016-09-11 11:21:32 +02:00
Baptiste Wicht
3eef5e0699 Prepare DNS decoding 2016-09-11 11:05:46 +02:00
Baptiste Wicht
5eeed9b206 UDP Checksum 2016-09-11 10:40:10 +02:00
Baptiste Wicht
a7b3b45f38 Prepare UDP encoding 2016-09-10 20:52:06 +02:00
Baptiste Wicht
cc475a7e28 Prepare DNS decoding 2016-09-10 20:43:47 +02:00
Baptiste Wicht
9b064fe6b9 Prepare UDP support 2016-09-10 20:40:41 +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
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
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
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