From c84c3f459919aa8db2a24c8461aab9e547be961f Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Tue, 23 Jun 2020 07:39:29 +0200 Subject: Comments, white space errors --- src/dns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dns.c') diff --git a/src/dns.c b/src/dns.c index 14f84ea..2bf6add 100644 --- a/src/dns.c +++ b/src/dns.c @@ -11,7 +11,7 @@ int dns_construct_header ( struct dns_header* _header, char* _buffer, int _buffl return -1; *((uint16_t*)_buffer) = _header->id; //Since only copied, no flipping necessary - _buffer[2] = + _buffer[2] = ((_header->QR & 0x01) << 7) | ((_header->OPCODE & 0x0F) << 3) | ((_header->AA & 0x01) << 2) | -- cgit v1.2.3