Ondřej Surý
056e133c4c
Use clang-tidy to add curly braces around one-line statements
...
The command used to reformat the files in this commit was:
./util/run-clang-tidy \
-clang-tidy-binary clang-tidy-11
-clang-apply-replacements-binary clang-apply-replacements-11 \
-checks=-*,readability-braces-around-statements \
-j 9 \
-fix \
-format \
-style=file \
-quiet
clang-format -i --style=format $(git ls-files '*.c' '*.h')
uncrustify -c .uncrustify.cfg --replace --no-backup $(git ls-files '*.c' '*.h')
clang-format -i --style=format $(git ls-files '*.c' '*.h')
2020-02-13 22:07:21 +01:00
Ondřej Surý
f50b1e0685
Use clang-format to reformat the source files
2020-02-12 15:04:17 +01:00
Ondřej Surý
66af8713d8
lib/dns/rdata/*/*.c: Silence false positive nullPointerRedundantCheck warning from Cppcheck
...
Cppcheck gets confused by:
void bar(void *arg) {
foo *data = arg;
REQUIRE(source != NULL);
REQUIRE(data->member != NULL);
}
and for consistency the DbC check needs to be changed to
void bar(void *arg) {
foo *data = arg;
REQUIRE(data != NULL);
REQUIRE(data->member != NULL);
}
2019-10-03 09:04:26 +02:00
Ondřej Surý
994e656977
Replace custom isc_boolean_t with C standard bool type
2018-08-08 09:37:30 +02:00
Ondřej Surý
55a10b7acd
Remove $Id markers, Principal Author and Reviewed tags from the full source tree
2018-05-11 13:17:46 +02:00
Ondřej Surý
843d389661
Update license headers to not include years in copyright in all applicable files
2018-02-23 10:12:02 +01:00
Mark Andrews
0c27b3fe77
4401. [misc] Change LICENSE to MPL 2.0.
2016-06-27 14:56:38 +10:00
Tinderbox User
503ffdad3b
update copyright notice / whitespace
2015-08-17 23:45:35 +00:00
Mukund Sivaraman
b0ba1a6059
Use mnemonics for RR class and type comparisons ( #40297 )
2015-08-17 12:23:35 +05:30
Tinderbox User
d1b499c827
update copyright notice
2014-07-29 23:45:20 +00:00
Evan Hunt
2383eb5272
[master] add CAA rdata support
...
3056. [protocol] Added support for CAA record type (RFC 6844).
[RT #36625 ]
2014-07-29 08:40:35 -07:00
Tinderbox User
3a34908497
update copyright notice
2013-10-25 23:46:32 +00:00
Mark Andrews
938aea1dc4
address memory leak in change #3662 , force format matching, attempt to address coverity false positives
2013-10-26 10:04:36 +11:00
Mark Andrews
34416a7954
3663. [bug] Address bugs in dns_rdata_fromstruct and
...
dns_rdata_tostruct for WKS and ISDN types. [RT #34910 ]
2013-10-25 13:06:09 +11:00
Automatic Updater
4b6dc226f7
update copyright notice
2009-12-04 22:06:37 +00:00
Mark Andrews
3d17a3ba61
2801. [func] Detect and report records that are different according
...
to DNSSEC but are sematically equal according to plain
DNS. Apply plain DNS comparisons rather than DNSSEC
comparisons when processing UPDATE requests.
dnssec-signzone now removes such semantically duplicate
records prior to signing the RRset.
named-checkzone -r {ignore|warn|fail} (default warn)
named-compilezone -r {ignore|warn|fail} (default warn)
named.conf: check-dup-records {ignore|warn|fail};
2009-12-04 21:09:34 +00:00
Automatic Updater
70e5a7403f
update copyright notice
2007-06-19 23:47:24 +00:00
Automatic Updater
ec5347e2c7
update copyright notice
2007-06-18 23:47:57 +00:00
Mark Andrews
69fe9aaafd
update copyright notice
2005-04-29 00:24:12 +00:00
Rob Austein
ab023a6556
1851. [doc] Doxygen comment markup. [RT #11398 ]
2005-04-27 04:57:32 +00:00
Mark Andrews
dafcb997e3
update copyright notice
2004-03-05 05:14:21 +00:00
Mark Andrews
2047977ce2
1586. [func] "check-names" is now implemented.
2004-02-27 20:41:51 +00:00
Mark Andrews
a7038d1a05
copyrights
2002-02-20 03:35:59 +00:00
Olafur Gudmundsson
90e303b114
Adding function isc_region_compare and using in instead of compare_region in lib/dns
2002-01-05 07:05:28 +00:00
Mark Andrews
bddfe77128
936. [func] Warn when non dotted decimal quad's are used.
...
[RT #1084 ]
935. [bug] inet_pton failed to reject leading zeros.
2001-07-16 03:06:53 +00:00
Mark Andrews
85bdc128fc
Relax REQUIRES() in *fromstruct() and unconditionally call
...
mem_maybedup() in *tostruct().
TXT is one or more (not zero or more) strings.
2001-06-21 04:00:47 +00:00
Brian Wellington
ae114ded82
Fix a bunch of unused variable warnings that only occurred with assertions
...
turned off.
2001-03-16 22:53:20 +00:00
Mark Andrews
9ac7076eba
769. [func] Improved error reporting when parsing rdata. [RT #740 ]
...
Two new error codes. Also push back the last token, if it makes
sense to do so, so that it gets printed in the error message using
RETTOK macro, rather than straight return or RETERR.
2001-03-06 22:11:18 +00:00
Brian Wellington
499b34cea0
copyright update
2001-01-09 22:01:04 +00:00
Andreas Gustafsson
63cef8bde8
added UNUSED() macros for arguments that end up unused when assertion checking
...
is turned off
2000-12-01 01:40:59 +00:00
Brian Wellington
add4043305
The identical gettoken() routines in rdata.c, hex.c, and base64.c have
...
been replaced with isc_lex_getmastertoken().
2000-11-08 01:56:15 +00:00
Mark Andrews
b589e90689
Remove the rdata->length == 0 checks, UPDATE pseudo rdata are now tagged.
...
Add sanity checks to rdata types where the length cannot legally be zero.
2000-10-25 05:44:10 +00:00
David Lawrence
40f53fa8d9
Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
...
own CVS tree will help minimize CVS conflicts. Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence
15a4474541
word wrap copyright notice at column 70
2000-07-27 09:55:03 +00:00
David Lawrence
6d12fdf966
Megacommit of many files.
...
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const. Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.
The macro DE_CONST is used to deal with a handful of very special
places where something is qualified as const but really needs to have
its const qualifier removed.
rdata.c now defines macros for the prototypes of the basic rdata functions,
and all of the lib/dns/rdata/**/*.c files now use them.
Some minor integer-compatibility issues. (IE, ~0x03 is a signed int,
so assigning it to an unsigned int should use a cast. The type of an
enum member is int, so there are some conversion issues there, too.)
A pointers-to-function should not be cast to a pointer-to-object.
Variables should not be named for C reserved identifiers.
One or two set-but-not-used variables removed.
Minor other ISC style cleanups.
2000-06-01 18:26:56 +00:00
Mark Andrews
373ce67419
Implement dns_rdata_fromstruct() where not already done.
...
Add missing REQUIRE tests to existing implementations.
2000-05-22 12:38:12 +00:00
Mark Andrews
9281e7aa77
Implement / convert to new API for tostuct() and freestruct().
...
Define dns_rdata_loc_t structure.
x25 length is only 8 bits.
2000-05-05 05:50:14 +00:00
Andreas Gustafsson
82ca33427b
declare arguments as UNUSED() when used in assertions only
2000-04-28 01:24:18 +00:00
Michael Graff
6324997211
add attributes (line singleton, exlcusive, meta, etc) to rdata C files, and
...
build a table of them using gen.c. This means the names are stored twice,
but that will change in the near future. This will speed up number to text
conversions for rdatatypes, and I plan on speeding up text->number as
well, soon.
2000-04-07 03:54:52 +00:00
Michael Graff
4195904998
s/DNS_R_/ISC_R_/ change for some codes.
2000-04-06 22:03:35 +00:00
Brian Wellington
c363150ad5
more code review
2000-03-16 02:08:51 +00:00
Brian Wellington
d0fe07af9c
code review
2000-03-16 00:54:24 +00:00
Bob Halley
7d32c065c7
update copyright
2000-02-03 23:50:32 +00:00
Michael Graff
3ddd814a97
dns_result_t is no more. s/dns_result_t/isc_result_t/ -- more later, when I need a break.
1999-12-23 00:09:04 +00:00
Michael Graff
2f072c2982
Update copyrights
1999-09-15 23:03:43 +00:00
Bob Halley
e27a69f8bd
add digest support
1999-08-31 22:05:55 +00:00
Bob Halley
4529cdaeda
make rdata functions static inline
1999-08-12 01:32:42 +00:00
Bob Halley
d981ca6455
class to rdclass; additional data support
1999-08-02 22:18:31 +00:00
Andreas Gustafsson
5fc7ba3e1a
added dns_db_dump(), $DATE, and supporting changes
1999-06-08 10:35:23 +00:00
Andreas Gustafsson
5dcb42f5bb
not all combinations of quoted and unquoted strings were supported in ISDN records
1999-05-19 09:14:58 +00:00