mirror of
https://github.com/OISF/suricata.git
synced 2026-10-11 22:09:53 +00:00
dns: stop renaming DNSTransaction to RSDNSTransaction
Not needed anymore as there is no DNSTransaction in the C src to conflict.
This commit is contained in:
@@ -138,7 +138,6 @@ item_types = ["enums","structs","opaque","functions","constants"]
|
||||
# [export]
|
||||
# prefix = "capi_"
|
||||
[export.rename]
|
||||
"DNSTransaction" = "RSDNSTransaction"
|
||||
"JsonT" = "json_t"
|
||||
"CLuaState" = "lua_State"
|
||||
|
||||
|
||||
@@ -1147,8 +1147,6 @@ pub unsafe extern "C" fn SCDnsTxGetAdditionalRdata(
|
||||
}
|
||||
|
||||
/// Get the DNS response flags for a transaction.
|
||||
///
|
||||
/// extern uint16_t SCDnsTxGetResponseFlags(RSDNSTransaction *);
|
||||
#[no_mangle]
|
||||
pub extern "C" fn SCDnsTxGetResponseFlags(tx: &mut DNSTransaction) -> u16 {
|
||||
return tx.rcode();
|
||||
|
||||
+2
-2
@@ -32,7 +32,7 @@
|
||||
static const char dns_tx[] = "suricata:dns:tx";
|
||||
|
||||
struct LuaTx {
|
||||
RSDNSTransaction *tx;
|
||||
DNSTransaction *tx;
|
||||
};
|
||||
|
||||
static int LuaDnsGetTx(lua_State *L)
|
||||
@@ -40,7 +40,7 @@ static int LuaDnsGetTx(lua_State *L)
|
||||
if (!(LuaStateNeedProto(L, ALPROTO_DNS))) {
|
||||
return LuaCallbackError(L, "error: protocol not dns");
|
||||
}
|
||||
RSDNSTransaction *tx = LuaStateGetTX(L);
|
||||
DNSTransaction *tx = LuaStateGetTX(L);
|
||||
if (tx == NULL) {
|
||||
return LuaCallbackError(L, "error: no tx available");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user