1284 Commits

Author SHA1 Message Date
Baptiste Wicht
96b48c061f Extract checksum 2016-09-13 22:48:01 +02:00
Baptiste Wicht
4f10e262f2 Prepare TCP connect 2016-09-13 22:41:26 +02:00
Baptiste Wicht
5be0a1a22b Prepare TCP connect 2016-09-13 22:10:08 +02:00
Baptiste Wicht
b9f9b9163a Prepare TCP support 2016-09-13 20:57:18 +02:00
Baptiste Wicht
dd6c90dcac Fix flags mess 2016-09-13 19:17:18 +02:00
Baptiste Wicht
7dddb8d2d2 Correct routing through the gateway 2016-09-13 18:16:12 +02:00
Baptiste Wicht
b72e02f81b Fix the gateway 2016-09-13 18:15:18 +02:00
Baptiste Wicht
850361d811 Comment 2016-09-13 18:12:18 +02:00
Baptiste Wicht
51e23df9e9 Better debugging 2016-09-13 18:11:10 +02:00
Baptiste Wicht
8e272895de Remove excessive locking
send_packet is already synchronized, no need for more
2016-09-13 18:06:33 +02:00
Baptiste Wicht
537842ebb8 Add notion of gateway 2016-09-13 17:31:17 +02:00
Baptiste Wicht
b0f1ead106 Refactor 2016-09-13 17:19:22 +02:00
Baptiste Wicht
bebfa90e83 Refactorings 2016-09-13 17:13:36 +02:00
Baptiste Wicht
4e150e1f65 Better packet propagation for DGRAM sockets 2016-09-12 22:06:19 +02:00
Baptiste Wicht
47756c2778 Auto association of the port 2016-09-12 21:57:42 +02:00
Baptiste Wicht
9cf9448c3f Make port counter atomic 2016-09-12 21:51:34 +02:00
Baptiste Wicht
853ca52dd4 Prepare binding 2016-09-12 21:14:46 +02:00
Baptiste Wicht
eabca269b0 Basic nslookup support 2016-09-12 20:05:40 +02:00
Baptiste Wicht
9f27ad8420 Move some constants to tlib 2016-09-12 18:12:36 +02:00
Baptiste Wicht
034a0f32e1 Cleanup 2016-09-11 21:04:54 +02:00
Baptiste Wicht
760c4fbed9 Reformat code 2016-09-11 21:03:34 +02:00
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