Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 279019
Collapse All | Expand All

(-)a/src/output-plugins/spo_platypus.c (-9 / +4 lines)
Lines 183-191 Link Here
183
    char                *evt_msg;
183
    char                *evt_msg;
184
    char                *data_msg;
184
    char                *data_msg;
185
185
186
    struct in_addr      sip4_in;
187
    struct in_addr      dip4_in;
188
189
    char                sip4[INET_ADDRSTRLEN];
186
    char                sip4[INET_ADDRSTRLEN];
190
    char                dip4[INET_ADDRSTRLEN];
187
    char                dip4[INET_ADDRSTRLEN];
191
#ifdef SUP_IP6
188
#ifdef SUP_IP6
Lines 288-297 Link Here
288
    switch(event_type)
285
    switch(event_type)
289
    {
286
    {
290
        case UNIFIED2_IDS_EVENT:
287
        case UNIFIED2_IDS_EVENT:
291
            sip4_in.s_addr = ntohl(((Unified2Event *)event)->ip_source);
288
            inet_ntop(AF_INET, &((Unified2Event *)event)->ip_source, sip4, INET_ADDRSTRLEN);
292
            dip4_in.s_addr = ntohl(((Unified2Event *)event)->ip_destination);
289
            inet_ntop(AF_INET, &((Unified2Event *)event)->ip_destination, dip4, INET_ADDRSTRLEN);
293
            inet_ntop(AF_INET, &sip4_in, sip4, INET_ADDRSTRLEN);
294
            inet_ntop(AF_INET, &dip4_in, dip4, INET_ADDRSTRLEN);
295
290
296
            SnortSnprintfAppend(evt_msg, MAX_MSG_LEN, "4|%s|%u|%s|%u|%u|",
291
            SnortSnprintfAppend(evt_msg, MAX_MSG_LEN, "4|%s|%u|%s|%u|%u|",
297
                sip4, 
292
                sip4, 
Lines 302-309 Link Here
302
            break;
297
            break;
303
#ifdef SUP_IP6
298
#ifdef SUP_IP6
304
        case UNIFIED2_IDS_EVENT_IPV6:
299
        case UNIFIED2_IDS_EVENT_IPV6:
305
            inet_ntop(AF_INET6, ntohl(((Unified2Event6 *)event)->ip_source), sip6, INET6_ADDRSTRLEN);
300
            inet_ntop(AF_INET6, &((Unified2Event *)event)->ip_source, sip6, INET6_ADDRSTRLEN);
306
            inet_ntop(AF_INET6, ntohl(((Unified2Event6 *)event)->ip_destination), dip6, INET6_ADDRSTRLEN);
301
            inet_ntop(AF_INET6, &((Unified2Event *)event)->ip_destination, dip6, INET6_ADDRSTRLEN);
307
302
308
            SnortSnprintfAppend(evt_msg, MAX_MSG_LEN, "6|%s|%u|%s|%u|%u|",
303
            SnortSnprintfAppend(evt_msg, MAX_MSG_LEN, "6|%s|%u|%s|%u|%u|",
309
                sip4,
304
                sip4,

Return to bug 279019