input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
gboolean r_parser_estring_c(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
char *end;
if (!param)
return 0;
end = strchr(str, *param);
if (!end)
return 0;
*len = (_DWORD)end - (_DWORD)str + 1;
if (match)
match->len = -1;
return 1;... | gboolean r_parser_estring_c(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
gchar *end;
if (!param)
return FALSE;
if ((end = strchr(str, param[0])) != NULL) {
*len = (end - str) + 1;
if (match)
match->len = -1;
return TRUE;
} ... | r_parser_estring_c | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean r_parser_float(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
gboolean dot;
dot = 0;
*len = 0;
if (str[*len] == 45)
++*len;
while (1) {
if ((*(_WORD *)(g_ascii_table + 2LL * (unsigned char)str[*len]) & 8) != 0)
goto LABEL_3;
... | gboolean r_parser_float(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
gboolean dot = FALSE;
*len = 0;
if (str[*len] == '-')
(*len)++;
while (g_ascii_isdigit(str[*len]) ||
(!dot && str[*len] == '.' && (dot = TRUE)))
(*len)++;
if (*... | r_parser_float | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean r_parser_hostname(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
int count;
count = 0;
*len = 0;
while ((*(_WORD *)(g_ascii_table + 2LL * (unsigned char)str[*len]) & 1) !=
0 ||
str[*len] == 45) {
++*len;
++coun... | gboolean r_parser_hostname(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
int count = 0;
*len = 0;
while (g_ascii_isalnum(str[*len]) || (str[*len] == '-')) {
(*len)++;
count++;
while (g_ascii_isalnum(str[*len]) || (str[*len] == '-'))
... | r_parser_hostname | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean r_parser_ip(gchar *str, gint *len, const gchar *param, gpointer state,
RParserMatch *match) {
return j_r_parser_ipv4(str, len, param, state, match) ||
j_r_parser_ipv6(str, len, param, state, match);
} | gboolean r_parser_ip(gchar *str, gint *len, const gchar *param, gpointer state,
RParserMatch *match) {
return r_parser_ipv4(str, len, param, state, match) ||
r_parser_ipv6(str, len, param, state, match);
} | r_parser_ip | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean r_parser_ipv4(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
gint dots;
gint octet;
gint octeta;
dots = 0;
octet = -1;
for (*len = 0; str[*len] != 46; ++*len) {
if ((*(_WORD *)(g_ascii_table + 2LL * (unsigned char)str[*len]) & 8) == 0)
... | gboolean r_parser_ipv4(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
gint dots = 0;
gint octet = -1;
*len = 0;
while (1) {
if (str[*len] == '.') {
if (octet > 255 || octet == -1)
return FALSE;
if (G_UNLIKELY(dots == 3))
... | r_parser_ipv4 | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean r_parser_ipv6(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
gint colons;
gint dots;
gint octet;
gint octeta;
gint digit;
gboolean shortened;
colons = 0;
dots = 0;
octet = 0;
digit = 16;
shortened = 0;
for (*len = 0; str[*len] =... | gboolean r_parser_ipv6(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
gint colons = 0;
gint dots = 0;
gint octet = 0;
gint digit = 16;
gboolean shortened = FALSE;
*len = 0;
while (1) {
if (str[*len] == ':') {
if (G_UNLIKELY(octet > 0xff... | r_parser_ipv6 | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean r_parser_macaddr(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
return r_parser_lladdr(str, len, 17, 6, state, match);
} | gboolean r_parser_macaddr(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
return _r_parser_lladdr(str, len, 17, 6, state, match);
} | r_parser_macaddr | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean r_parser_nlstring(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
char *end;
end = strchr(str, 10);
if (!end)
return 0;
if (end - str > 0 && *(end - 1) == 13)
LODWORD(end) = (_DWORD)end - 1;
*len = (_DWORD)end - (_DWORD)str;
retu... | gboolean r_parser_nlstring(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
gchar *end;
if ((end = strchr(str, '\n')) != NULL) {
if (end - str >= 1 && *(end - 1) == '\r')
end--;
*len = (end - str);
return TRUE;
} else
return FALSE... | r_parser_nlstring | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean r_parser_number(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
gint min_len;
min_len = 1;
if ((unsigned int)g_str_has_prefix(str, "0x") ||
(unsigned int)g_str_has_prefix(str, "0X")) {
*len = 2;
min_len = 3;
while ((*(_WORD *)(... | gboolean r_parser_number(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
gint min_len = 1;
if (g_str_has_prefix(str, "0x") || g_str_has_prefix(str, "0X")) {
*len = 2;
min_len += 2;
while (g_ascii_isxdigit(str[*len]))
(*len)++;
} else ... | r_parser_number | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean r_parser_optionalset(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
j_r_parser_set(str, len, param, state, match);
return 1;
} | gboolean r_parser_optionalset(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
r_parser_set(str, len, param, state, match);
return TRUE;
} | r_parser_optionalset | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean r_parser_pcre(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
void *v5;
long v6;
unsigned int v7;
long v9;
long v10;
long v11;
long v12;
long v13;
long v14;
long v15;
RParserMatch *matcha;
gpointer statea;
const gchar *parama;
... | gboolean r_parser_pcre(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
RParserPCREState *self = (RParserPCREState *)state;
gint rc;
gint num_matches;
if (pcre_fullinfo(self->re, self->extra, PCRE_INFO_CAPTURECOUNT,
&num_matches) < 0)
... | r_parser_pcre | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gpointer r_parser_pcre_compile_state(const gchar *expr) {
pcre *v1;
long v2;
long v3;
long v4;
long v5;
pcre_extra *v7;
long v8;
long v9;
long v10;
gint erroffset;
gint rc;
int __local_copy_of_errno_0;
int __local_copy_of_errno;
const gchar *errptr;
RParserPCREState *self;
unsigned long ... | gpointer r_parser_pcre_compile_state(const gchar *expr) {
RParserPCREState *self = g_new0(RParserPCREState, 1);
const gchar *errptr;
gint erroffset;
gint rc;
self->re = pcre_compile2(expr, PCRE_ANCHORED, &rc, &errptr, &erroffset, NULL);
if (!self->re) {
msg_error("Error while compiling regular expressi... | r_parser_pcre_compile_state | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void r_parser_pcre_free_state(gpointer s) {
if (*(_QWORD *)s)
pcre_free(*(_QWORD *)s);
if (*((_QWORD *)s + 1))
pcre_free(*((_QWORD *)s + 1));
g_free(s);
} | static void r_parser_pcre_free_state(gpointer s) {
RParserPCREState *self = (RParserPCREState *)s;
if (self->re)
pcre_free(self->re);
if (self->extra)
pcre_free(self->extra);
g_free(self);
} | r_parser_pcre_free_state | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean r_parser_qstring(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
char *end;
end = strchr(str + 1, (char)state);
if (!end)
return 0;
*len = (_DWORD)end - (_DWORD)str + 1;
if (match) {
match->ofs = 1;
match->len = -2;
}
return... | gboolean r_parser_qstring(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
gchar *end;
if ((end = strchr(str + 1, ((gchar *)&state)[0])) != NULL) {
*len = (end - str) + 1;
if (match) {
match->ofs = 1;
match->len = -2;
}
retur... | r_parser_qstring | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean r_parser_set(gchar *str, gint *len, const gchar *param, gpointer state,
RParserMatch *match) {
*len = 0;
if (!param)
return 0;
while (strchr(param, str[*len]))
++*len;
return *len > 0;
} | gboolean r_parser_set(gchar *str, gint *len, const gchar *param, gpointer state,
RParserMatch *match) {
*len = 0;
if (!param)
return FALSE;
while (strchr(param, str[*len]))
(*len)++;
if (*len > 0) {
return TRUE;
}
return FALSE;
} | r_parser_set | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean r_parser_string(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
for (*len = 0;
str[*len] &&
((*(_WORD *)(g_ascii_table + 2LL * (unsigned char)str[*len]) & 1) != 0 ||
param && strchr(param, str[*len]));
++*len) {
;
}... | gboolean r_parser_string(gchar *str, gint *len, const gchar *param,
gpointer state, RParserMatch *match) {
*len = 0;
while (str[*len] &&
(g_ascii_isalnum(str[*len]) || (param && strchr(param, str[*len]))))
(*len)++;
if (*len > 0) {
return TRUE;
}
return FALSE;
} | r_parser_string | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void stateful_parser_emit_synthetic(StatefulParser *self, LogMessage *msg) {
LogMessage *v2;
long v3;
LogPathOptions path_options;
unsigned long v5;
v5 = __readfsqword(0x28u);
if (self->inject_mode) {
v3 = log_msg_ref(msg);
msg_post_message(v3);
} else {
path_options.flow_control_requested = ... | void stateful_parser_emit_synthetic(StatefulParser *self, LogMessage *msg) {
if (self->inject_mode == LDBP_IM_PASSTHROUGH) {
LogPathOptions path_options = LOG_PATH_OPTIONS_INIT;
path_options.ack_needed = FALSE;
log_pipe_forward_msg(&self->super.super, log_msg_ref(msg), &path_options);
} else {
msg_... | stateful_parser_emit_synthetic | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void stateful_parser_free_method(LogPipe *s) { log_parser_free_method(s); } | void stateful_parser_free_method(LogPipe *s) { log_parser_free_method(s); } | stateful_parser_free_method | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void stateful_parser_init_instance(StatefulParser *self, GlobalConfig *cfg) {
log_parser_init_instance(self, cfg);
self->inject_mode = LDBP_IM_PASSTHROUGH;
} | void stateful_parser_init_instance(StatefulParser *self, GlobalConfig *cfg) {
log_parser_init_instance(&self->super, cfg);
self->inject_mode = LDBP_IM_PASSTHROUGH;
} | stateful_parser_init_instance | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
int stateful_parser_lookup_inject_mode(const gchar *inject_mode) {
if (!strcasecmp(inject_mode, "internal"))
return 1;
if (!strcasecmp(inject_mode, "pass-through") ||
!strcasecmp(inject_mode, "pass_through"))
return 0;
return -1;
} | int stateful_parser_lookup_inject_mode(const gchar *inject_mode) {
if (strcasecmp(inject_mode, "internal") == 0)
return LDBP_IM_INTERNAL;
else if (strcasecmp(inject_mode, "pass-through") == 0 ||
strcasecmp(inject_mode, "pass_through") == 0)
return LDBP_IM_PASSTHROUGH;
return -1;
} | stateful_parser_lookup_inject_mode | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void stateful_parser_set_inject_mode(StatefulParser *self,
LogDBParserInjectMode inject_mode) {
self->inject_mode = inject_mode;
} | void stateful_parser_set_inject_mode(StatefulParser *self,
LogDBParserInjectMode inject_mode) {
self->inject_mode = inject_mode;
} | stateful_parser_set_inject_mode | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void synthetic_context_deinit(SyntheticContext *self) {
if (self->id_template)
log_template_unref(self->id_template);
} | void synthetic_context_deinit(SyntheticContext *self) {
if (self->id_template)
log_template_unref(self->id_template);
} | synthetic_context_deinit | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void synthetic_context_init(SyntheticContext *self) {
memset(self, 0, sizeof(SyntheticContext));
self->scope = RCS_PROCESS;
} | void synthetic_context_init(SyntheticContext *self) {
memset(self, 0, sizeof(*self));
self->scope = RCS_PROCESS;
} | synthetic_context_init | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void synthetic_context_set_context_id_template(
SyntheticContext *self, LogTemplate *context_id_template) {
if (self->id_template)
log_template_unref(self->id_template);
self->id_template = context_id_template;
} | void synthetic_context_set_context_id_template(
SyntheticContext *self, LogTemplate *context_id_template) {
if (self->id_template)
log_template_unref(self->id_template);
self->id_template = context_id_template;
} | synthetic_context_set_context_id_template | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void synthetic_context_set_context_scope(SyntheticContext *self,
const gchar *scope, GError **error) {
GQuark v3;
CorrelationScope context_scope;
context_scope = correlation_key_lookup_scope(scope);
if (context_scope >= RCS_GLOBAL) {
self->scope = context_scope;
}... | void synthetic_context_set_context_scope(SyntheticContext *self,
const gchar *scope, GError **error) {
int context_scope = correlation_key_lookup_scope(scope);
if (context_scope < 0) {
self->scope = RCS_GLOBAL;
g_set_error(error, PDB_ERROR, PDB_ERROR_FAILED, "Unknown... | synthetic_context_set_context_scope | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void synthetic_context_set_context_timeout(SyntheticContext *self,
gint timeout) {
self->timeout = timeout;
} | void synthetic_context_set_context_timeout(SyntheticContext *self,
gint timeout) {
self->timeout = timeout;
} | synthetic_context_set_context_timeout | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void synthetic_message_add_tag(SyntheticMessage *self, const gchar *text) {
LogTagId tag;
unsigned long v3;
v3 = __readfsqword(0x28u);
if (!self->tags)
self->tags = (GArray *)g_array_new(0, 0, 2);
tag = log_tags_get_by_name(text);
g_array_append_vals(self->tags, &tag, 1);
} | void synthetic_message_add_tag(SyntheticMessage *self, const gchar *text) {
LogTagId tag;
if (!self->tags)
self->tags = g_array_new(FALSE, FALSE, sizeof(LogTagId));
tag = log_tags_get_by_name(text);
g_array_append_val(self->tags, tag);
} | synthetic_message_add_tag | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void synthetic_message_add_value_template(SyntheticMessage *self,
const gchar *name,
LogTemplate *value) {
long v3;
if (!self->values)
self->values = (GPtrArray *)g_ptr_array_new(self, name);
log_template_set_name(value, name... | void synthetic_message_add_value_template(SyntheticMessage *self,
const gchar *name,
LogTemplate *value) {
if (!self->values)
self->values = g_ptr_array_new();
log_template_set_name(value, name);
g_ptr_array_add(self->values,... | synthetic_message_add_value_template | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean synthetic_message_add_value_template_string(SyntheticMessage *self,
GlobalConfig *cfg,
const gchar *name,
const gchar *value,
... | gboolean synthetic_message_add_value_template_string(SyntheticMessage *self,
GlobalConfig *cfg,
const gchar *name,
const gchar *value,
... | synthetic_message_add_value_template_string | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void synthetic_message_apply(SyntheticMessage *self,
CorrelationContext *context, LogMessage *msg) {
gchar *session_id;
guint len;
void *pdata;
LogMessage *msga;
CorrelationContext *contexta;
SyntheticMessage *selfa;
ScratchBuffersMarker marker;
gint i;
GString *buffer;
... | void synthetic_message_apply(SyntheticMessage *self,
CorrelationContext *context, LogMessage *msg) {
gint i;
if (self->tags) {
for (i = 0; i < self->tags->len; i++)
log_msg_set_tag_by_id(msg, g_array_index(self->tags, LogTagId, i));
}
if (self->values) {
ScratchBuffe... | synthetic_message_apply | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void synthetic_message_deinit(SyntheticMessage *self) {
unsigned int i;
if (self->tags)
g_array_free(self->tags, 1);
if (self->values) {
for (i = 0; self->values->len > i; ++i)
log_template_unref(self->values->pdata[i]);
g_ptr_array_free(self->values, 1);
}
} | void synthetic_message_deinit(SyntheticMessage *self) {
gint i;
if (self->tags)
g_array_free(self->tags, TRUE);
if (self->values) {
for (i = 0; i < self->values->len; i++)
log_template_unref(g_ptr_array_index(self->values, i));
g_ptr_array_free(self->values, TRUE);
}
} | synthetic_message_deinit | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void synthetic_message_free(SyntheticMessage *self) {
synthetic_message_deinit(self);
g_free(self);
} | void synthetic_message_free(SyntheticMessage *self) {
synthetic_message_deinit(self);
g_free(self);
} | synthetic_message_free | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
LogMessage *
synthetic_message_generate_with_context(SyntheticMessage *self,
CorrelationContext *context) {
int scope;
LogMessage *genmsg;
genmsg = generate_default_message_from_context(self->inherit_mode, context);
scope = context->key.scope;
if (scope == 3) {
log... | LogMessage *
synthetic_message_generate_with_context(SyntheticMessage *self,
CorrelationContext *context) {
LogMessage *genmsg;
genmsg = _generate_default_message_from_context(self->inherit_mode, context);
switch (context->key.scope) {
case RCS_PROCESS:
log_msg_set_v... | synthetic_message_generate_with_context | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
LogMessage *synthetic_message_generate_without_context(SyntheticMessage *self,
LogMessage *msg) {
LogMessage *genmsg;
GPtrArray dummy_ptr_array;
CorrelationContext dummy_context;
LogMessage *dummy_msgs[3];
unsigned long v7;
v7 = __readfsqword(0x28u);
... | LogMessage *synthetic_message_generate_without_context(SyntheticMessage *self,
LogMessage *msg) {
LogMessage *genmsg;
genmsg = _generate_default_message(self->inherit_mode, msg);
LogMessage *dummy_msgs[] = {msg, genmsg, NULL};
GPtrArray dummy_ptr_array = ... | synthetic_message_generate_without_context | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void synthetic_message_init(SyntheticMessage *self) {
memset(self, 0, sizeof(SyntheticMessage));
} | void synthetic_message_init(SyntheticMessage *self) {
memset(self, 0, sizeof(*self));
} | synthetic_message_init | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gint synthetic_message_lookup_inherit_mode(const gchar *inherit_mode) {
if (!strcasecmp(inherit_mode, "none"))
return 0;
if (!strcasecmp(inherit_mode, "last-message"))
return 1;
if (!strcasecmp(inherit_mode, "context"))
return 2;
return -1;
} | gint synthetic_message_lookup_inherit_mode(const gchar *inherit_mode) {
if (strcasecmp(inherit_mode, "none") == 0)
return RAC_MSG_INHERIT_NONE;
else if (strcasecmp(inherit_mode, "last-message") == 0)
return RAC_MSG_INHERIT_LAST_MESSAGE;
else if (strcasecmp(inherit_mode, "context") == 0)
return RAC_MSG... | synthetic_message_lookup_inherit_mode | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
SyntheticMessage *synthetic_message_new() {
SyntheticMessage *result;
result = (SyntheticMessage *)g_malloc0_n(1, 24);
result->inherit_mode = RAC_MSG_INHERIT_CONTEXT;
return result;
} | SyntheticMessage *synthetic_message_new(void) {
SyntheticMessage *self = g_new0(SyntheticMessage, 1);
self->inherit_mode = RAC_MSG_INHERIT_CONTEXT;
return self;
} | synthetic_message_new | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void synthetic_message_set_inherit_mode(
SyntheticMessage *self, SyntheticMessageInheritMode inherit_mode) {
self->inherit_mode = inherit_mode;
} | void synthetic_message_set_inherit_mode(
SyntheticMessage *self, SyntheticMessageInheritMode inherit_mode) {
self->inherit_mode = inherit_mode;
} | synthetic_message_set_inherit_mode | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gboolean synthetic_message_set_inherit_mode_string(
SyntheticMessage *self, const gchar *inherit_mode_name, GError **error) {
GQuark v3;
SyntheticMessageInheritMode inherit_mode;
inherit_mode = synthetic_message_lookup_inherit_mode(inherit_mode_name);
if (inherit_mode >= RAC_MSG_INHERIT_NONE) {
synthet... | gboolean synthetic_message_set_inherit_mode_string(
SyntheticMessage *self, const gchar *inherit_mode_name, GError **error) {
gint inherit_mode = synthetic_message_lookup_inherit_mode(inherit_mode_name);
if (inherit_mode < 0) {
g_set_error(error, PDB_ERROR, PDB_ERROR_FAILED, "Unknown inherit mode %s",
... | synthetic_message_set_inherit_mode_string | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void synthetic_message_set_inherit_properties_string(
SyntheticMessage *self, const gchar *inherit_properties, GError **error) {
GQuark v3;
SyntheticMessageInheritMode inherit_mode;
if (!strcasecmp(inherit_properties, "context")) {
inherit_mode = RAC_MSG_INHERIT_CONTEXT;
} else if (*inherit_properties ... | void synthetic_message_set_inherit_properties_string(
SyntheticMessage *self, const gchar *inherit_properties, GError **error) {
SyntheticMessageInheritMode inherit_mode;
if (strcasecmp(inherit_properties, "context") == 0) {
inherit_mode = RAC_MSG_INHERIT_CONTEXT;
} else if (inherit_properties[0] == 'T' ... | synthetic_message_set_inherit_properties_string | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
TWEntry *timer_wheel_add_timer(TimerWheel *self, gint timeout,
TWCallbackFunc cb, gpointer user_data,
GDestroyNotify user_data_free) {
TWEntry *entry;
entry = (TWEntry *)g_malloc0_n(1, 48);
entry->target = timeout + self->now;
entry->callback = cb;
... | TWEntry *timer_wheel_add_timer(TimerWheel *self, gint timeout,
TWCallbackFunc cb, gpointer user_data,
GDestroyNotify user_data_free) {
TWEntry *entry;
entry = g_new0(TWEntry, 1);
entry->target = self->now + timeout;
entry->callback = cb;
entry->us... | timer_wheel_add_timer | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void timer_wheel_add_timer_entry(TimerWheel *self, TWEntry *entry) {
unsigned int level_ndx;
gint slot;
TWLevel *level;
guint64 level_base;
for (level_ndx = 0; level_ndx <= 3; ++level_ndx) {
level = self->levels[level_ndx];
level_base = ~level->slot_mask & self->base & ~level->mask;
if (entry->ta... | void timer_wheel_add_timer_entry(TimerWheel *self, TWEntry *entry) {
guint64 level_base;
gint slot;
gint level_ndx;
for (level_ndx = 0; level_ndx < G_N_ELEMENTS(self->levels); level_ndx++) {
TWLevel *level = self->levels[level_ndx];
level_base = self->base & ~level->slot_mask & ~level->mask;
if (... | timer_wheel_add_timer_entry | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void timer_wheel_cascade(TimerWheel *self) {
unsigned int level_ndx;
gint source_slot;
gint source_slota;
TWEntry *lh;
TWEntry *lha;
iv_list_head *lh_next;
iv_list_head *lh_nexta;
TWLevel *source_level;
TWLevel *target_level;
TWLevel *target_levela;
iv_list_head *source_head;
iv_list_head *sourc... | static void timer_wheel_cascade(TimerWheel *self) {
gint level_ndx;
TWLevel *source_level, *target_level;
TWEntry *entry;
gint source_slot, target_slot;
guint64 target_level_base;
struct iv_list_head *lh, *lh_next, *target_head, *source_head;
for (level_ndx = 1; level_ndx < G_N_ELEMENTS(self->levels); le... | timer_wheel_cascade | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void timer_wheel_del_timer(TimerWheel *self, TWEntry *entry) {
tw_entry_unlink(entry);
tw_entry_free(entry);
--self->num_timers;
} | void timer_wheel_del_timer(TimerWheel *self, TWEntry *entry) {
tw_entry_unlink(entry);
tw_entry_free(entry);
self->num_timers--;
} | timer_wheel_del_timer | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void timer_wheel_expire_all(TimerWheel *self, gpointer caller_context) {
guint64 now;
now = self->now;
timer_wheel_set_time(self, 0xFFFFFFFFFFFFFFFFLL, caller_context);
self->now = now;
} | void timer_wheel_expire_all(TimerWheel *self, gpointer caller_context) {
guint64 now;
now = self->now;
timer_wheel_set_time(self, (guint64)-1, caller_context);
self->now = now;
} | timer_wheel_expire_all | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void timer_wheel_free(TimerWheel *self) {
unsigned int i;
for (i = 0; i <= 3; ++i)
tw_level_free(self->levels[i]);
free_assoc_data(self);
g_free(self);
} | void timer_wheel_free(TimerWheel *self) {
gint i;
for (i = 0; i < G_N_ELEMENTS(self->levels); i++)
tw_level_free(self->levels[i]);
_free_assoc_data(self);
g_free(self);
} | timer_wheel_free | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
gpointer timer_wheel_get_associated_data(TimerWheel *self) {
return self->assoc_data;
} | gpointer timer_wheel_get_associated_data(TimerWheel *self) {
return self->assoc_data;
} | timer_wheel_get_associated_data | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
guint64 timer_wheel_get_time(TimerWheel *self) { return self->now; } | guint64 timer_wheel_get_time(TimerWheel *self) { return self->now; } | timer_wheel_get_time | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
guint64 timer_wheel_get_timer_expiration(TimerWheel *self, TWEntry *entry) {
return entry->target;
} | guint64 timer_wheel_get_timer_expiration(TimerWheel *self, TWEntry *entry) {
return entry->target;
} | timer_wheel_get_timer_expiration | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void timer_wheel_mod_timer(TimerWheel *self, TWEntry *entry, gint new_timeout) {
tw_entry_unlink(entry);
entry->target = new_timeout + self->now;
timer_wheel_add_timer_entry(self, entry);
} | void timer_wheel_mod_timer(TimerWheel *self, TWEntry *entry, gint new_timeout) {
tw_entry_unlink(entry);
entry->target = self->now + new_timeout;
timer_wheel_add_timer_entry(self, entry);
} | timer_wheel_mod_timer | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
TimerWheel *timer_wheel_new() {
gint shift;
gint i;
TimerWheel *self;
gint bits[6];
unsigned long v5;
v5 = __readfsqword(0x28u);
bits[0] = 10;
bits[1] = 6;
bits[2] = 6;
bits[3] = 6;
bits[4] = 0;
shift = 0;
self = (TimerWheel *)g_malloc0_n(1, 88);
for (i = 0; (unsigned int)i <= 3; ++i) {
... | TimerWheel *timer_wheel_new(void) {
TimerWheel *self;
gint bits[] = {10, 6, 6, 6, 0};
gint shift = 0;
gint i;
self = g_new0(TimerWheel, 1);
for (i = 0; i < G_N_ELEMENTS(self->levels); i++) {
self->levels[i] = tw_level_new(bits[i], shift);
shift += bits[i];
}
INIT_IV_LIST_HEAD(&self->future);
... | timer_wheel_new | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void timer_wheel_set_associated_data(TimerWheel *self, gpointer assoc_data,
GDestroyNotify assoc_data_free) {
free_assoc_data(self);
self->assoc_data = assoc_data;
self->assoc_data_free = assoc_data_free;
} | void timer_wheel_set_associated_data(TimerWheel *self, gpointer assoc_data,
GDestroyNotify assoc_data_free) {
_free_assoc_data(self);
self->assoc_data = assoc_data;
self->assoc_data_free = assoc_data_free;
} | timer_wheel_set_associated_data | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void timer_wheel_set_time(TimerWheel *self, guint64 new_now,
gpointer caller_context) {
gint slot;
iv_list_head *lh;
iv_list_head *lh_next;
TWLevel *level;
iv_list_head *head;
if (new_now > self->now) {
if (self->num_timers) {
while (new_now > self->now) {
level ... | void timer_wheel_set_time(TimerWheel *self, guint64 new_now,
gpointer caller_context) {
if (self->now >= new_now)
return;
if (self->num_timers == 0) {
self->now = new_now;
self->base = new_now & ~self->levels[0]->mask;
return;
}
for (; self->now < new_now; self->now... | timer_wheel_set_time | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void tw_entry_add(iv_list_head *head, TWEntry *a2) {
iv_list_add_tail(&a2->list, head);
} | void tw_entry_add(struct iv_list_head *head, TWEntry *new) {
iv_list_add_tail(&new->list, head);
} | tw_entry_add | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void tw_entry_free(TWEntry *entry) {
if (entry->user_data && entry->user_data_free)
entry->user_data_free(entry->user_data);
g_free(entry);
} | static void tw_entry_free(TWEntry *entry) {
if (entry->user_data && entry->user_data_free)
entry->user_data_free(entry->user_data);
g_free(entry);
} | tw_entry_free | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void tw_entry_unlink(TWEntry *entry) { iv_list_del_init(&entry->list); } | void tw_entry_unlink(TWEntry *entry) { iv_list_del_init(&entry->list); } | tw_entry_unlink | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void tw_level_free(TWLevel *self) {
gint i;
TWEntry *lh;
iv_list_head *lh_next;
for (i = 0; i < self->num; ++i) {
lh = (TWEntry *)self->slots[i].next;
lh_next = lh->list.next;
while (lh != (TWEntry *)&self->slots[i]) {
tw_entry_free(lh);
lh = (TWEntry *)lh_next;
lh_next = lh_next-... | void tw_level_free(TWLevel *self) {
gint i;
for (i = 0; i < self->num; i++) {
TWEntry *entry;
struct iv_list_head *lh, *lh_next;
iv_list_for_each_safe(lh, lh_next, &self->slots[i]) {
entry = iv_list_entry(lh, TWEntry, list);
tw_entry_free(entry);
}
}
g_free(self);
} | tw_level_free | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
TWLevel *tw_level_new(gint bits, gint shift) {
gint i;
TWLevel *self;
self = (TWLevel *)g_malloc0(16LL * (1 << bits) + 24);
self->shift = shift;
self->mask = ((1 << bits) - 1) << shift;
self->slot_mask = (1 << shift) - 1;
self->num = 1 << bits;
for (i = 0; i < 1 << bits; ++i) {
self->slots[i].next ... | TWLevel *tw_level_new(gint bits, gint shift) {
TWLevel *self;
gint num;
gint i;
num = (1 << bits);
self = g_malloc0(sizeof(TWLevel) + num * sizeof(self->slots[0]));
self->shift = shift;
self->mask = (num - 1) << shift;
self->slot_mask = (1 << shift) - 1;
self->num = num;
for (i = 0; i < num; i++)
... | tw_level_new | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void yydestruct(const char *yymsg, yysymbol_kind_t yykind,
DBPARSER_STYPE *yyvaluep, DBPARSER_LTYPE *yylocationp,
CfgLexer *lexer, LogParser **instance, gpointer arg) {
if (yykind == yysymbol_kind_t_YYSYMBOL_path_no_check ||
yykind <= yysymbol_kind_t_YYSYMBOL_path_no_check &&
... | static void yydestruct(const char *yymsg, yysymbol_kind_t yykind,
YYSTYPE *yyvaluep, YYLTYPE *yylocationp, CfgLexer *lexer,
LogParser **instance, gpointer arg) {
YY_USE(yyvaluep);
YY_USE(yylocationp);
YY_USE(lexer);
YY_USE(instance);
YY_USE(arg);
if (!yymsg)
... | yydestruct | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
int yypcontext_expected_tokens(const yypcontext_t *yyctx,
yysymbol_kind_t *yyarg, int yyargn) {
int v3;
int v4;
int v6;
int yycount;
yysymbol_kind_t yyx;
int yyn;
int yyxbegin;
int yyxend;
yycount = 0;
yyn = yypact[*yyctx->yyssp];
if (yyn != -150) {
if (yyn >= 0... | static int yypcontext_expected_tokens(const yypcontext_t *yyctx,
yysymbol_kind_t yyarg[], int yyargn) {
int yycount = 0;
int yyn = yypact[+*yyctx->yyssp];
if (!yypact_value_is_default(yyn)) {
int yyxbegin = yyn < 0 ? -yyn : 0;
int yychecklim = YYLAST - yyn + 1;
... | yypcontext_expected_tokens | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libdbparser.so | ida | O0 |
void afinet_dd_add_failovers(LogDriver *s, GList *failovers) {
if (!s[4].super.queue)
g_assertion_message_expr(0, "modules/afsocket/afinet-dest.c", 231,
"afinet_dd_add_failovers",
"self->failover != NULL");
afinet_dd_failover_add_servers((AFInetDestDrive... | void afinet_dd_add_failovers(LogDriver *s, GList *failovers) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
g_assert(self->failover != NULL);
afinet_dd_failover_add_servers(self->failover, failovers);
} | afinet_dd_add_failovers | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
LogWriter *afinet_dd_construct_writer(AFSocketDestDriver *s) {
TransportMapperInet *transport_mapper_inet;
LogWriter *writer;
transport_mapper_inet = (TransportMapperInet *)s->transport_mapper;
writer = j_afsocket_dd_construct_writer_method(s);
if (s->transport_mapper->sock_type == 1 && transport_mapper_inet... | static LogWriter *afinet_dd_construct_writer(AFSocketDestDriver *s) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
TransportMapperInet *transport_mapper_inet =
((TransportMapperInet *)(self->super.transport_mapper));
LogWriter *writer = afsocket_dd_construct_writer_method(s);
if (((self->super.transp... | afinet_dd_construct_writer | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
gboolean afinet_dd_deinit(LogPipe *s) {
if (is_failover_used((const AFInetDestDriver *)s))
afinet_dd_failover_deinit((AFInetDestDriverFailover *)s[5].queue);
libnet_destroy_when_spoof_source_enabled((AFInetDestDriver *)s);
return j_afsocket_dd_deinit(s);
} | static gboolean afinet_dd_deinit(LogPipe *s) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
if (_is_failover_used(self))
afinet_dd_failover_deinit(self->failover);
_libnet_destroy_when_spoof_source_enabled(self);
return afsocket_dd_deinit(s);
} | afinet_dd_deinit | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_enable_failback(LogDriver *s) {
if (!s[4].super.queue)
g_assertion_message_expr(0, "modules/afsocket/afinet-dest.c", 250,
"afinet_dd_enable_failback",
"self->failover != NULL");
afinet_dd_failover_enable_failback(
(AFInetDestDriverFa... | void afinet_dd_enable_failback(LogDriver *s) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
g_assert(self->failover != NULL);
afinet_dd_failover_enable_failback(self->failover, &self->super,
afinet_dd_fail_back_to_primary);
} | afinet_dd_enable_failback | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_enable_failover(LogDriver *s) {
if (!s[4].super.queue)
s[4].super.queue = (void (*)(LogPipe *, LogMessage *,
const LogPathOptions *))
afinet_dd_failover_new(*(const gchar **)&s[4].super.ref_cnt.counter);
} | void afinet_dd_enable_failover(LogDriver *s) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
if (self->failover)
return;
self->failover = afinet_dd_failover_new(self->primary);
} | afinet_dd_enable_failover | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_fail_back_to_primary(gpointer s, gint fd, GSockAddr *saddr) {
if (is_tls_used((const AFInetDestDriver *)s))
afinet_dd_setup_tls_verifier((AFInetDestDriver *)s);
afsocket_dd_connected_with_fd(s, fd, saddr);
} | void afinet_dd_fail_back_to_primary(gpointer s, gint fd, GSockAddr *saddr) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
if (_is_tls_used(self))
afinet_dd_setup_tls_verifier(self);
afsocket_dd_connected_with_fd(s, fd, saddr);
} | afinet_dd_fail_back_to_primary | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_failover_add_servers(AFInetDestDriverFailover *self,
GList *failovers) {
self->servers = (GList *)g_list_concat(self->servers, failovers);
} | void afinet_dd_failover_add_servers(AFInetDestDriverFailover *self,
GList *failovers) {
self->servers = g_list_concat(self->servers, failovers);
} | afinet_dd_failover_add_servers | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_failover_deinit(AFInetDestDriverFailover *self) {
deinit_failback_handlers(self);
} | void afinet_dd_failover_deinit(AFInetDestDriverFailover *self) {
_deinit_failback_handlers(self);
} | afinet_dd_failover_deinit | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_failover_enable_failback(
AFInetDestDriverFailover *self, gpointer cookie,
AFInetOnPrimaryAvailable callback_function) {
self->on_primary_available_cookie = cookie;
self->on_primary_available_func = callback_function;
} | void afinet_dd_failover_enable_failback(
AFInetDestDriverFailover *self, gpointer cookie,
AFInetOnPrimaryAvailable callback_function) {
self->on_primary_available_cookie = cookie;
self->on_primary_available_func = callback_function;
} | afinet_dd_failover_enable_failback | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_failover_free(AFInetDestDriverFailover *self) {
if (self) {
g_list_free_full(self->servers, &g_free);
g_sockaddr_unref(self->primary_addr);
g_sockaddr_unref(self->bind_addr);
g_free(self);
}
} | void afinet_dd_failover_free(AFInetDestDriverFailover *self) {
if (!self)
return;
g_list_free_full(self->servers, g_free);
g_sockaddr_unref(self->primary_addr);
g_sockaddr_unref(self->bind_addr);
g_free(self);
} | afinet_dd_failover_free | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
const gchar *afinet_dd_failover_get_hostname(AFInetDestDriverFailover *self) {
GList *v1;
if (self->current_server)
return get_hostname(self->current_server);
v1 = primary(self);
return get_hostname(v1);
} | const gchar *afinet_dd_failover_get_hostname(AFInetDestDriverFailover *self) {
if (self->current_server == NULL) {
return _get_hostname(_primary(self));
}
return _get_hostname(self->current_server);
} | afinet_dd_failover_get_hostname | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_failover_init(
AFInetDestDriverFailover *self, LogExprNode *owner_expr,
FailoverTransportMapper *failover_transport_mapper) {
SocketOptions *socket_options;
const gchar *bind_ip;
self->owner_expression = owner_expr;
socket_options = failover_transport_mapper->socket_options;
self->fail... | void afinet_dd_failover_init(
AFInetDestDriverFailover *self, LogExprNode *owner_expr,
FailoverTransportMapper *failover_transport_mapper) {
self->owner_expression = owner_expr;
self->failover_transport_mapper = *failover_transport_mapper;
self->current_server = NULL;
_init_failback_handlers(self);
se... | afinet_dd_failover_init | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
AFInetDestDriverFailover *afinet_dd_failover_new(const gchar *primary) {
long v1;
AFInetDestDriverFailover *self;
self = (AFInetDestDriverFailover *)g_malloc0_n(1, 312);
self->probe_interval = 60;
self->probes_required = 3;
v1 = g_strdup(primary);
self->servers = (GList *)g_list_append(0, v1);
self->cu... | AFInetDestDriverFailover *afinet_dd_failover_new(const gchar *primary) {
AFInetDestDriverFailover *self = g_new0(AFInetDestDriverFailover, 1);
self->probe_interval = TCP_PROBE_INTERVAL_DEFAULT;
self->probes_required = SUCCESSFUL_PROBES_REQUIRED_DEFAULT;
self->servers = g_list_append(NULL, g_strdup(primary));
... | afinet_dd_failover_new | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_failover_next(AFInetDestDriverFailover *self) {
if (self->initialized) {
if (self->current_server)
step_current_server_iterator(self);
else
self->current_server = primary(self);
}
} | void afinet_dd_failover_next(AFInetDestDriverFailover *self) {
if (!self->initialized)
return;
if (!self->current_server) {
self->current_server = _primary(self);
return;
}
_step_current_server_iterator(self);
} | afinet_dd_failover_next | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_failover_set_successful_probes_required(
AFInetDestDriverFailover *self, gint successful_probes_required) {
self->probes_required = successful_probes_required;
} | void afinet_dd_failover_set_successful_probes_required(
AFInetDestDriverFailover *self, gint successful_probes_required) {
self->probes_required = successful_probes_required;
} | afinet_dd_failover_set_successful_probes_required | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_failover_set_tcp_probe_interval(AFInetDestDriverFailover *self,
gint tcp_probe_interval) {
self->probe_interval = tcp_probe_interval;
} | void afinet_dd_failover_set_tcp_probe_interval(AFInetDestDriverFailover *self,
gint tcp_probe_interval) {
self->probe_interval = tcp_probe_interval;
} | afinet_dd_failover_set_tcp_probe_interval | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_free(LogPipe *s) {
g_free(*(_QWORD *)&s[5].ref_cnt.counter);
afinet_dd_failover_free((AFInetDestDriverFailover *)s[5].queue);
g_free(s[5].expr_node);
g_free(s[5].cfg);
g_free(s[5].pipe_next);
j_afsocket_dd_free(s);
} | void afinet_dd_free(LogPipe *s) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
g_free(self->primary);
afinet_dd_failover_free(self->failover);
g_free(self->bind_ip);
g_free(self->bind_port);
g_free(self->dest_port);
#if SYSLOG_NG_ENABLE_SPOOF_SOURCE
if (self->lnet_buffer)
g_string_free(self->lnet... | afinet_dd_free | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
const gchar *afinet_dd_get_dest_name(const AFSocketDestDriver *s) {
gint v1;
gint v2;
const char *hostname;
hostname = afinet_dd_get_hostname((const AFInetDestDriver *)s);
if (strchr(hostname, 58)) {
v1 = determine_port((const AFInetDestDriver *)s);
g_snprintf(buf_0, 256, "[%s]:%d", hostname, v1);
... | static const gchar *afinet_dd_get_dest_name(const AFSocketDestDriver *s) {
const AFInetDestDriver *self = (const AFInetDestDriver *)s;
static gchar buf[256];
const gchar *hostname = _afinet_dd_get_hostname(self);
if (strchr(hostname, ':') != NULL)
g_snprintf(buf, sizeof(buf), "[%s]:%d", hostname, _determin... | afinet_dd_get_dest_name | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
gboolean afinet_dd_init(LogPipe *s) {
FailoverTransportMapper ftm;
unsigned long v3;
v3 = __readfsqword(0x28u);
if (!j_afsocket_dd_init(s))
return 0;
if (*((_DWORD *)s[4].clone + 3) == 2 && HIDWORD(s[3].persist_name) == -1)
HIDWORD(s[3].persist_name) = 65507;
if (is_failover_used((const AFInetDestD... | static gboolean afinet_dd_init(LogPipe *s) {
AFInetDestDriver *self G_GNUC_UNUSED = (AFInetDestDriver *)s;
#if SYSLOG_NG_ENABLE_SPOOF_SOURCE
if (self->spoof_source)
self->super.connections_kept_alive_across_reloads = TRUE;
#endif
if (!afsocket_dd_init(s))
return FALSE;
#if SYSLOG_NG_ENABLE_SPOOF_SOURCE... | afinet_dd_init | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
AFInetDestDriver *afinet_dd_new_instance(TransportMapper *transport_mapper,
gchar *hostname, GlobalConfig *cfg) {
SocketOptions *v3;
AFInetDestDriver *self;
self = (AFInetDestDriver *)g_malloc0_n(1, 840);
v3 = socket_options_inet_new();
afsocket_dd_init_instance(&self... | static AFInetDestDriver *
afinet_dd_new_instance(TransportMapper *transport_mapper, gchar *hostname,
GlobalConfig *cfg) {
AFInetDestDriver *self = g_new0(AFInetDestDriver, 1);
afsocket_dd_init_instance(&self->super, socket_options_inet_new(),
transport_mapper, cfg... | afinet_dd_new_instance | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
AFInetDestDriver *afinet_dd_new_network(gchar *host, GlobalConfig *cfg) {
TransportMapper *v2;
v2 = transport_mapper_network_new();
return afinet_dd_new_instance(v2, host, cfg);
} | AFInetDestDriver *afinet_dd_new_network(gchar *host, GlobalConfig *cfg) {
return afinet_dd_new_instance(transport_mapper_network_new(), host, cfg);
} | afinet_dd_new_network | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
AFInetDestDriver *afinet_dd_new_syslog(gchar *host, GlobalConfig *cfg) {
TransportMapper *v2;
AFInetDestDriver *result;
v2 = transport_mapper_syslog_new();
result = afinet_dd_new_instance(v2, host, cfg);
result->super.construct_writer =
(LogWriter * (*)(AFSocketDestDriver *)) afinet_dd_syslog_construct... | AFInetDestDriver *afinet_dd_new_syslog(gchar *host, GlobalConfig *cfg) {
AFInetDestDriver *self =
afinet_dd_new_instance(transport_mapper_syslog_new(), host, cfg);
self->super.construct_writer = afinet_dd_syslog_construct_writer;
return self;
} | afinet_dd_new_syslog | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
AFInetDestDriver *afinet_dd_new_tcp(gchar *host, GlobalConfig *cfg) {
TransportMapper *v2;
v2 = transport_mapper_tcp_new();
return afinet_dd_new_instance(v2, host, cfg);
} | AFInetDestDriver *afinet_dd_new_tcp(gchar *host, GlobalConfig *cfg) {
return afinet_dd_new_instance(transport_mapper_tcp_new(), host, cfg);
} | afinet_dd_new_tcp | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
AFInetDestDriver *afinet_dd_new_tcp6(gchar *host, GlobalConfig *cfg) {
TransportMapper *v2;
v2 = transport_mapper_tcp6_new();
return afinet_dd_new_instance(v2, host, cfg);
} | AFInetDestDriver *afinet_dd_new_tcp6(gchar *host, GlobalConfig *cfg) {
return afinet_dd_new_instance(transport_mapper_tcp6_new(), host, cfg);
} | afinet_dd_new_tcp6 | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
AFInetDestDriver *afinet_dd_new_udp(gchar *host, GlobalConfig *cfg) {
TransportMapper *v2;
v2 = transport_mapper_udp_new();
return afinet_dd_new_instance(v2, host, cfg);
} | AFInetDestDriver *afinet_dd_new_udp(gchar *host, GlobalConfig *cfg) {
return afinet_dd_new_instance(transport_mapper_udp_new(), host, cfg);
} | afinet_dd_new_udp | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
AFInetDestDriver *afinet_dd_new_udp6(gchar *host, GlobalConfig *cfg) {
TransportMapper *v2;
v2 = transport_mapper_udp6_new();
return afinet_dd_new_instance(v2, host, cfg);
} | AFInetDestDriver *afinet_dd_new_udp6(gchar *host, GlobalConfig *cfg) {
return afinet_dd_new_instance(transport_mapper_udp6_new(), host, cfg);
} | afinet_dd_new_udp6 | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_queue(LogPipe *s, LogMessage *msg,
const LogPathOptions *path_options) {
log_dest_driver_queue_method(s, msg, path_options);
} | static void afinet_dd_queue(LogPipe *s, LogMessage *msg,
const LogPathOptions *path_options) {
#if SYSLOG_NG_ENABLE_SPOOF_SOURCE
AFInetDestDriver *self = (AFInetDestDriver *)s;
if (_is_spoof_source_enabled(self) && _is_message_spoofable(msg) &&
log_writer_opened(self->super.writer... | afinet_dd_queue | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_set_destport(LogDriver *s, gchar *service) {
if (s[4].super.pipe_next)
g_free(s[4].super.pipe_next);
s[4].super.pipe_next = (LogPipe *)g_strdup(service);
} | void afinet_dd_set_destport(LogDriver *s, gchar *service) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
if (self->dest_port)
g_free(self->dest_port);
self->dest_port = g_strdup(service);
} | afinet_dd_set_destport | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_set_failback_successful_probes_required(
LogDriver *s, gint successful_probes_required) {
afinet_dd_failover_set_successful_probes_required(
(AFInetDestDriverFailover *)s[4].super.queue, successful_probes_required);
} | void afinet_dd_set_failback_successful_probes_required(
LogDriver *s, gint successful_probes_required) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
afinet_dd_failover_set_successful_probes_required(self->failover,
successful_probes_required);
} | afinet_dd_set_failback_successful_probes_required | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_set_failback_tcp_probe_interval(LogDriver *s,
gint tcp_probe_interval) {
afinet_dd_failover_set_tcp_probe_interval(
(AFInetDestDriverFailover *)s[4].super.queue, tcp_probe_interval);
} | void afinet_dd_set_failback_tcp_probe_interval(LogDriver *s,
gint tcp_probe_interval) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
afinet_dd_failover_set_tcp_probe_interval(self->failover, tcp_probe_interval);
} | afinet_dd_set_failback_tcp_probe_interval | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_set_localip(LogDriver *s, gchar *ip_0) {
if (s[4].super.expr_node)
g_free(s[4].super.expr_node);
s[4].super.expr_node = (LogExprNode *)g_strdup(ip_0);
} | void afinet_dd_set_localip(LogDriver *s, gchar *ip) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
if (self->bind_ip)
g_free(self->bind_ip);
self->bind_ip = g_strdup(ip);
} | afinet_dd_set_localip | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_set_localport(LogDriver *s, gchar *service) {
if (s[4].super.cfg)
g_free(s[4].super.cfg);
s[4].super.cfg = (GlobalConfig *)g_strdup(service);
} | void afinet_dd_set_localport(LogDriver *s, gchar *service) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
if (self->bind_port)
g_free(self->bind_port);
self->bind_port = g_strdup(service);
} | afinet_dd_set_localport | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_set_spoof_source(LogDriver *s, gboolean enable) {
long v2;
long v3;
long v4;
long v5;
__errno_location();
v5 = msg_event_create(3,
"Error enabling spoof-source, you need to compile "
"syslog-ng with --enable-spoof-source",
... | void afinet_dd_set_spoof_source(LogDriver *s, gboolean enable) {
#if SYSLOG_NG_ENABLE_SPOOF_SOURCE
AFInetDestDriver *self = (AFInetDestDriver *)s;
self->spoof_source = enable;
#else
msg_error("Error enabling spoof-source, you need to compile syslog-ng with "
"--enable-spoof-source");
#endif
} | afinet_dd_set_spoof_source | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_set_spoof_source_max_msglen(LogDriver *s, guint max_msglen) { ; } | void afinet_dd_set_spoof_source_max_msglen(LogDriver *s, guint max_msglen) {
#if SYSLOG_NG_ENABLE_SPOOF_SOURCE
AFInetDestDriver *self = (AFInetDestDriver *)s;
gint af_max_dgram_size = 0;
switch (self->super.transport_mapper->address_family) {
case AF_INET6:
af_max_dgram_size = 65535 - 40 - 8;
break;
... | afinet_dd_set_spoof_source_max_msglen | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_set_tls_context(LogDriver *s, TLSContext *tls_context) {
transport_mapper_inet_set_tls_context_0((TransportMapperInet *)s[3].group,
tls_context);
} | void afinet_dd_set_tls_context(LogDriver *s, TLSContext *tls_context) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
transport_mapper_inet_set_tls_context(
(TransportMapperInet *)self->super.transport_mapper, tls_context);
} | afinet_dd_set_tls_context | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
gboolean afinet_dd_setup_addresses(AFSocketDestDriver *s) {
if (!j_afsocket_dd_setup_addresses_method(s))
return 0;
if (s->proto_factory->default_inet_port)
transport_mapper_inet_set_server_port_0(
s->transport_mapper, s->proto_factory->default_inet_port);
if (!setup_bind_addr((AFInetDestDriver *)... | static gboolean afinet_dd_setup_addresses(AFSocketDestDriver *s) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
if (!afsocket_dd_setup_addresses_method(s))
return FALSE;
if (self->super.proto_factory->default_inet_port)
transport_mapper_inet_set_server_port(
self->super.transport_mapper,
... | afinet_dd_setup_addresses | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_setup_tls_verifier(AFInetDestDriver *self) {
const gchar *hostname;
TLSVerifier *v2;
TransportMapperInet *transport_mapper_inet;
AFInetDestDriverTLSVerifyData *verify_data;
transport_mapper_inet = (TransportMapperInet *)self->super.transport_mapper;
hostname = afinet_dd_get_hostname(self);
... | void afinet_dd_setup_tls_verifier(AFInetDestDriver *self) {
TransportMapperInet *transport_mapper_inet =
(TransportMapperInet *)self->super.transport_mapper;
AFInetDestDriverTLSVerifyData *verify_data;
verify_data = afinet_dd_tls_verify_data_new(
transport_mapper_inet->tls_context, _afinet_dd_get_hos... | afinet_dd_setup_tls_verifier | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
LogWriter *afinet_dd_syslog_construct_writer(AFSocketDestDriver *s) {
unsigned int v1;
TransportMapperInet *transport_mapper_inet;
LogWriter *writer;
transport_mapper_inet = (TransportMapperInet *)s->transport_mapper;
writer = j_afsocket_dd_construct_writer_method(s);
if (s->transport_mapper->sock_type == ... | static LogWriter *afinet_dd_syslog_construct_writer(AFSocketDestDriver *s) {
AFInetDestDriver *self = (AFInetDestDriver *)s;
TransportMapperInet *transport_mapper_inet =
((TransportMapperInet *)(self->super.transport_mapper));
LogWriter *writer = afsocket_dd_construct_writer_method(s);
if (((self->super... | afinet_dd_syslog_construct_writer | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
void afinet_dd_tls_verify_data_free(gpointer s) {
if (s) {
tls_context_unref(*(_QWORD *)s);
g_free(*((_QWORD *)s + 1));
g_free(s);
} else {
g_assertion_message_expr(0, "modules/afsocket/afinet-dest.c", 166,
"afinet_dd_tls_verify_data_free", "self");
}
} | static void afinet_dd_tls_verify_data_free(gpointer s) {
AFInetDestDriverTLSVerifyData *self = (AFInetDestDriverTLSVerifyData *)s;
g_assert(self);
if (self) {
tls_context_unref(self->tls_context);
g_free(self->hostname);
g_free(self);
}
} | afinet_dd_tls_verify_data_free | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
AFInetDestDriverTLSVerifyData *
afinet_dd_tls_verify_data_new(TLSContext *ctx, const gchar *hostname) {
AFInetDestDriverTLSVerifyData *self;
self = (AFInetDestDriverTLSVerifyData *)g_malloc0_n(1, 16);
self->tls_context = (TLSContext *)tls_context_ref(ctx);
self->hostname = (gchar *)g_strdup(hostname);
return... | static AFInetDestDriverTLSVerifyData *
afinet_dd_tls_verify_data_new(TLSContext *ctx, const gchar *hostname) {
AFInetDestDriverTLSVerifyData *self =
g_new0(AFInetDestDriverTLSVerifyData, 1);
self->tls_context = tls_context_ref(ctx);
self->hostname = g_strdup(hostname);
return self;
} | afinet_dd_tls_verify_data_new | syslog-ng-3.35.1 | app-admin | O0/app-admin/syslog-ng-3.35.1/libafsocket.so | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.