static struct ulogd_key ip2bin_keys[] = {
{
- .type = ULOGD_RET_RAW,
+ .type = ULOGD_RET_RAWSTR,
.flags = ULOGD_RETF_FREE,
.name = "ip.saddr.bin",
},
{
- .type = ULOGD_RET_RAW,
+ .type = ULOGD_RET_RAWSTR,
.flags = ULOGD_RETF_FREE,
.name = "ip.daddr.bin",
},
{
- .type = ULOGD_RET_RAW,
+ .type = ULOGD_RET_RAWSTR,
.flags = ULOGD_RETF_FREE,
.name = "orig.ip.saddr.bin",
},
{
- .type = ULOGD_RET_RAW,
+ .type = ULOGD_RET_RAWSTR,
.flags = ULOGD_RETF_FREE,
.name = "orig.ip.daddr.bin",
},
{
- .type = ULOGD_RET_RAW,
+ .type = ULOGD_RET_RAWSTR,
.flags = ULOGD_RETF_FREE,
.name = "reply.ip.saddr.bin",
},
{
- .type = ULOGD_RET_RAW,
+ .type = ULOGD_RET_RAWSTR,
.flags = ULOGD_RETF_FREE,
.name = "reply.ip.daddr.bin",
},
}
sprintf(di->stmt_ins, "',");
break;
- case ULOGD_RET_RAW:
+ case ULOGD_RET_RAWSTR:
sprintf(di->stmt_ins, "%s,", res->u.value.ptr);
break;
+ case ULOGD_RET_RAW:
+ ulogd_log(ULOGD_NOTICE,
+ "Unsupported RAW type is unsupported in SQL output");
default:
ulogd_log(ULOGD_NOTICE,
"unknown type %d for %s\n",