nmsg  0.9.0
nmsg_msg_base.c
1 /* nmsg_msg_base.c - base nmsg_msg modules */
2 
3 /*
4  * Copyright (c) 2008-2012 by Farsight Security, Inc.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 /* Import. */
20 
21 #include "nmsg_port_net.h"
22 
23 #include <nmsg.h>
24 #include <nmsg/msgmod_plugin.h>
25 
26 #include <stdio.h>
27 #include <stdlib.h>
28 #include <string.h>
29 
30 #include "defs.h"
31 
32 #define nmsg_msgmod_ctx nmsg_msgmod_ctx_email
33 #include "email.c"
34 #undef nmsg_msgmod_ctx
35 
36 #define nmsg_msgmod_ctx nmsg_msgmod_ctx_http
37 #include "http.c"
38 #undef nmsg_msgmod_ctx
39 
40 #define nmsg_msgmod_ctx nmsg_msgmod_ctx_ipconn
41 #include "ipconn.c"
42 #undef nmsg_msgmod_ctx
43 
44 #define nmsg_msgmod_ctx nmsg_msgmod_ctx_linkpair
45 #include "linkpair.c"
46 #undef nmsg_msgmod_ctx
47 
48 #define nmsg_msgmod_ctx nmsg_msgmod_ctx_logline
49 #include "logline.c"
50 #undef nmsg_msgmod_ctx
51 
52 #define nmsg_msgmod_ctx nmsg_msgmod_ctx_ncap
53 #include "ncap.c"
54 #undef nmsg_msgmod_ctx
55 
56 #define nmsg_msgmod_ctx nmsg_msgmod_ctx_dns
57 #include "dns.c"
58 #undef nmsg_msgmod_ctx
59 
60 #define nmsg_msgmod_ctx nmsg_msgmod_ctx_pkt
61 #include "pkt.c"
62 #undef nmsg_msgmod_ctx
63 
64 #define nmsg_msgmod_ctx nmsg_msgmod_ctx_dnsqr
65 #include "dnsqr.c"
66 #undef nmsg_msgmod_ctx
67 
68 #define nmsg_msgmod_ctx nmsg_msgmod_ctx_xml
69 #include "xml.c"
70 #undef nmsg_msgmod_ctx
71 
72 #define nmsg_msgmod_ctx nmsg_msgmod_ctx_encode
73 #include "encode.c"
74 #undef nmsg_msgmod_ctx
75 
76 #define nmsg_msgmod_ctx nmsg_msgmod_ctx_packet
77 #include "packet.c"
78 #undef nmsg_msgmed_ctx
79 
80 /* Export. */
81 
82 struct nmsg_msgmod_plugin *nmsg_msgmod_ctx_array[] = {
83  &nmsg_msgmod_ctx_email,
84  &nmsg_msgmod_ctx_http,
85  &nmsg_msgmod_ctx_ipconn,
86  &nmsg_msgmod_ctx_linkpair,
87  &nmsg_msgmod_ctx_logline,
88  &nmsg_msgmod_ctx_ncap,
89  &nmsg_msgmod_ctx_dns,
90  &nmsg_msgmod_ctx_pkt,
91  &nmsg_msgmod_ctx_dnsqr,
92  &nmsg_msgmod_ctx_xml,
93  &nmsg_msgmod_ctx_encode,
94  &nmsg_msgmod_ctx_packet,
95  NULL
96 };
base "email" message type.
Structure exported by message modules to implement a new message type.
base "logline" message type.
Base nmsg support header.
base "http" message type.
base "dns" message type.
base "linkpair" message type.
base "ipconn" message type.
base "ncap" message type.