]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-rr.c
resolve: always align flags to 8th column and print CAA flags 2589/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 2 Feb 2016 02:35:44 +0000 (21:35 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 Feb 2016 01:00:42 +0000 (20:00 -0500)
commit718af59e9ac1a525b0a73b99a74bc376f1b4d49d
tree34d521ddcf7fda85003184fc33e889c1bcbf96d3
parent95052df3760523e1f3bb9705c918d85aae7fb431
resolve: always align flags to 8th column and print CAA flags

Left-over unknown flags are printed numerically. Otherwise,
it wouldn't be known what bits are remaining without knowning
what the known bits are.

A test case is added to verify the flag printing code:
============== src/resolve/test-data/fake-caa.pkts ==============
google.com. IN CAA   0 issue "symantec.com"
google.com. IN CAA   128 issue "symantec.com"
        -- Flags: critical
google.com. IN CAA   129 issue "symantec.com"
        -- Flags: critical 1
google.com. IN CAA   22 issue "symantec.com"
        -- Flags: 22
Makefile.am
src/resolve/dns-type.h
src/resolve/resolved-dns-rr.c
src/resolve/test-data/fake-caa.pkts [new file with mode: 0644]