mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Apply some missing clang-format changes
This commit is contained in:
parent
34694e67ea
commit
e63ea95664
4 changed files with 23 additions and 14 deletions
|
@ -4328,8 +4328,7 @@ InExpr::InExpr(ExprPtr arg_op1, ExprPtr arg_op2)
|
|||
return;
|
||||
}
|
||||
|
||||
if ( op2->GetType()->Tag() == TYPE_TABLE &&
|
||||
op2->GetType()->AsTableType()->IsSubNetIndex() )
|
||||
if ( op2->GetType()->Tag() == TYPE_TABLE && op2->GetType()->AsTableType()->IsSubNetIndex() )
|
||||
{
|
||||
SetType(base_type(TYPE_BOOL));
|
||||
return;
|
||||
|
|
|
@ -1726,7 +1726,8 @@ bool DNS_Interpreter::ParseRR_SVCB(detail::DNS_MsgInfo* msg, const u_char*& data
|
|||
|
||||
SVCB_DATA svcb_data = {
|
||||
.svc_priority = svc_priority,
|
||||
.target_name = make_intrusive<StringVal>(new String(target_name, name_end - target_name, true)),
|
||||
.target_name = make_intrusive<StringVal>(
|
||||
new String(target_name, name_end - target_name, true)),
|
||||
};
|
||||
|
||||
// TODO: parse svcparams
|
||||
|
@ -1749,7 +1750,8 @@ bool DNS_Interpreter::ParseRR_SVCB(detail::DNS_MsgInfo* msg, const u_char*& data
|
|||
analyzer->EnqueueConnEvent(dns_HTTPS, analyzer->ConnVal(), msg->BuildHdrVal(),
|
||||
msg->BuildAnswerVal(), msg->BuildSVCB_Val(svcb_data));
|
||||
break;
|
||||
default: break; // unreachable. for suppressing compiler warnings.
|
||||
default:
|
||||
break; // unreachable. for suppressing compiler warnings.
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -71,7 +71,9 @@ enum RR_Type
|
|||
TYPE_DS = 43, ///< Delegation signer (RFC 4034)
|
||||
TYPE_NSEC3 = 50,
|
||||
TYPE_NSEC3PARAM = 51, ///< Contains the NSEC3 parameters (RFC 5155)
|
||||
TYPE_SVCB = 64, ///< SerViCe Binding (RFC draft: https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-svcb-https-07#section-1.1)
|
||||
TYPE_SVCB =
|
||||
64, ///< SerViCe Binding (RFC draft:
|
||||
///< https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-svcb-https-07#section-1.1)
|
||||
TYPE_HTTPS = 65, ///< HTTPS record (HTTPS specific SVCB resource record)
|
||||
// Obsoleted
|
||||
TYPE_SPF = 99, ///< Alternative: storing SPF data in TXT records, using the same format (RFC
|
||||
|
@ -150,7 +152,8 @@ enum DNSSEC_Digest
|
|||
SHA384 = 4,
|
||||
};
|
||||
|
||||
///< all keys are defined in RFC draft https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-svcb-https-07#section-14.3.2
|
||||
///< all keys are defined in RFC draft
|
||||
///< https://datatracker.ietf.org/doc/html/draft-ietf-dnsop-svcb-https-07#section-14.3.2
|
||||
enum SVCPARAM_Key
|
||||
{
|
||||
mandatory = 0,
|
||||
|
|
|
@ -21,12 +21,17 @@ enum IPFamily
|
|||
IPv6
|
||||
};
|
||||
|
||||
// Force these files to stay in this order. Normally, clang-format
|
||||
// wants to move sys/types.h to the end of this block, but that
|
||||
// breaks FreeBSD builds.
|
||||
// clang-format off
|
||||
#include <sys/types.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <assert.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/in_systm.h>
|
||||
#include <netinet/ip.h>
|
||||
// clang-format on
|
||||
#ifdef HAVE_LINUX
|
||||
#define __FAVOR_BSD
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue