nmsg
0.13.2
Main Page
Data Structures
Files
File List
Globals
nmsg
ipdg.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009-2015 by Farsight Security, Inc.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef NMSG_IPDG_H
18
#define NMSG_IPDG_H
19
31
struct
nmsg_ipdg
{
32
int
proto_network
;
/*%< PF_* value */
33
int
proto_transport
;
/*%< transport protocol */
34
unsigned
len_network
;
/*%< length starting from network */
35
unsigned
len_transport
;
/*%< length starting from transport */
36
unsigned
len_payload
;
/*%< length starting from payload */
37
const
u_char *
network
;
/*%< pointer to network header */
38
const
u_char *
transport
;
/*%< pointer to transport header */
39
const
u_char *
payload
;
/*%< pointer to application payload */
40
};
41
66
nmsg_res
67
nmsg_ipdg_parse
(
struct
nmsg_ipdg
*dg,
unsigned
etype,
size_t
len,
68
const
u_char *pkt);
69
100
nmsg_res
101
nmsg_ipdg_parse_pcap
(
struct
nmsg_ipdg
*dg, nmsg_pcap_t pcap,
102
struct
pcap_pkthdr *pkt_hdr,
const
u_char *pkt);
103
116
nmsg_res
117
nmsg_ipdg_parse_pcap_raw
(
struct
nmsg_ipdg
*dg,
int
datalink,
const
uint8_t *pkt,
size_t
len);
118
119
#endif
/* NMSG_IPDG_H */
Generated on Thu Feb 1 2018 19:15:14 for nmsg by
1.8.1.2