Erik Ekman
3ebcd29b13
Add support for using an unspecified RR type
...
Add PRIVATE query type with id 65399 (private use range).
According to RFC3597 the reply data in a query with unspecified RR type must be handled
as unstructured binary data, which means it can contain raw packet data just like the NULL type.
Since the reply format is optimal it is ordered just after NULL in the priority order.
2014-06-09 20:06:36 +02:00
Erik Ekman
2466cd184a
Change readshort() to work with unsigned values
2014-06-09 19:47:44 +02:00
Erik Ekman
a23899513d
Remove trailing whitespace
2014-06-01 08:46:54 +02:00
Erik Ekman
388afe3845
Update copyright
2014-06-01 08:46:54 +02:00
Erik Ekman
d6c3426b84
Set C standard to C99
...
Also include strings.h where strcasecmp() is used
2014-05-29 18:38:43 +02:00
Barak A. Pearlmutter
f73fb9f8d0
rewrite comparison to avoid negative unsigned numbers
...
Note that GCC -O2 is happy to optimize away (x<0) when x is an
unsigned quantity. This was actually occurring in CHECKLEN(0),
causing the compiler to issue a warning.
2014-04-06 13:41:17 +02:00
Erik Ekman
b30abea6b0
Reorganize imports for OpenBSD
2012-02-10 23:26:27 +01:00
Erik Ekman
45a5d80c49
Adjust indentation
2012-02-06 20:28:42 +01:00
Marcel Bokhorst
a569030bb7
Android support ( #105 ) patch from Marcel Bokhorst
2012-02-04 20:34:05 +01:00
J. A. Bezemer
b177901d38
Applied patch from #88 , thanks a lot!
2012-02-04 20:34:04 +01:00
Erik Ekman
acd264b435
Make sure replies with errors get the name parsed
2012-02-04 20:34:04 +01:00
Erik Ekman
269499ba43
Print DNS errors only when requested packet has an error
2012-02-04 20:34:04 +01:00
J. A. Bezemer
60dfbf1b34
merge dns and user #76
2012-02-04 20:34:04 +01:00
Erik Ekman
5951166b36
Fix data length in encoding dns queries
2012-02-04 20:34:04 +01:00
J. A. Bezemer
90e25e3a2c
update dns parsing #75
2012-02-04 20:34:03 +01:00
Guillaume Rischard
3879f96a80
Fix build error on OSX 10.6 by Guillaume Rischard, #79
2012-02-04 20:34:03 +01:00
Erik Ekman
b6fc3fc0ef
Made dns_get_id return unsigned short, added test cases
2012-02-04 20:34:00 +01:00
Erik Ekman
155f0c6f37
Merged branch with mingw port. Compiles now, tun work to do
2012-02-04 20:34:00 +01:00
Erik Ekman
0836ad0a5b
revert cygwin stuff
2012-02-04 20:34:00 +01:00
Erik Ekman
97bf71e944
Make it build and fix tests in cygwin
2012-02-04 20:33:59 +01:00
Erik Ekman
23fad5b628
Downstream fragmentation now working. Currently fragment size is hardcoded to 1200. More tweaking left, as well as fragsize auto detection. ( #7 )
2012-02-04 20:33:59 +01:00
Erik Ekman
a5031ee9dd
Happy new year
2012-02-04 20:33:59 +01:00
Erik Ekman
62824e92ed
Handle trans id >= 0x8000, fix bug #37
2012-02-04 20:33:58 +01:00
Erik Ekman
8769d14cde
rewrote strange message
2012-02-04 20:33:58 +01:00
Erik Ekman
9d3f87ddcc
Fix issue #33 , respond to NS requests
2012-02-04 20:33:57 +01:00
Erik Ekman
49695a4cb4
Updated year
2012-02-04 20:33:57 +01:00
Erik Ekman
02d40c1a7b
Forward non-tunnel requests to another udp port ( fixes #31 )
2012-02-04 20:33:57 +01:00
Erik Ekman
539ebb27d9
Changes to allow handling of queries of type A, NS etc
2012-02-04 20:33:57 +01:00
Erik Ekman
d50533e26e
Rewrote strange warning message
2012-02-04 20:33:56 +01:00
Matus Harvan
4a16503ea5
buffer overflow in dns.c pointed out by Matus Harvan, also strncpy cleanups
2012-02-04 20:33:55 +01:00
Erik Ekman
fc3de73f85
fixed #17 : report RCODE error msgs
2012-02-04 20:33:55 +01:00
Erik Ekman
faea33eaae
Move dns_build_hostname to iodine.c
2007-06-07 18:57:18 +00:00
Erik Ekman
15a83534a8
new year
2007-03-21 00:00:27 +00:00
Erik Ekman
ad07e40988
Use -pedantic, fixed all warnings
2007-02-11 13:54:40 +00:00
Bjorn Andersson
eb082ac9ce
code cleanup
2007-02-10 22:52:36 +00:00
Bjorn Andersson
16e9df4164
moved method that encoded strings to dnsnames to read.c and renamed it to putname
2007-02-10 22:30:40 +00:00
Erik Ekman
a49e400ea9
splint said that these headers where not used
2007-02-10 22:13:42 +00:00
Erik Ekman
9355cd7829
#10 fixed basic ack. pings bigger than 110 still lost
2007-02-05 19:44:46 +00:00
Erik Ekman
9b438c20d4
#3 remove dnsd_send from dns.c, move to iodined.c
2007-02-05 17:49:30 +00:00
Bjorn Andersson
db62c7f82c
extracted common code from send_* in iodine.c
2007-02-04 23:12:08 +00:00
Erik Ekman
da636b1f47
#3 fix issue with topdomain. Also make sure ping packet is type NULL
2007-02-04 23:08:09 +00:00
Bjorn Andersson
46d3053540
servern now get a topdomain other than NULL
2007-02-04 22:38:07 +00:00
Bjorn Andersson
b45dc25226
#3 major cleanup on client, moved all network code from dns.c to iodine.c
2007-02-04 20:37:36 +00:00
Erik Ekman
728919fc9a
#5 Add checks on incoming queries
2007-02-04 17:22:07 +00:00
Erik Ekman
c5317fe388
#3 move dnsd_read from dns.c to iodined.c, now named read_dns
2007-02-04 15:46:06 +00:00
Bjorn Andersson
692b595cfc
#4 - moved common stuff to common.c and moved open_dns, close_dns there
2007-02-04 15:21:55 +00:00
Bjorn Andersson
ef43ef6293
query is now an enum for compile-time checks
2007-01-28 12:31:04 +00:00
Erik Ekman
1a46808b8a
Rework query testcase, some dns cleanup
2007-01-28 11:52:36 +00:00
Erik Ekman
89c99f1ddf
Use dns_decode for packets from client
2007-01-28 06:47:51 +00:00
Bjorn Andersson
5beb814d8c
refactoring client receive code
2007-01-28 06:00:50 +00:00