blob: b11448bf50a8dbbc768798a95398b1fa3d58142d [file] [log] [blame]
Holger Hans Peter Freyther97f66e22010-07-28 03:32:52 +08001/*
2 * (C) 2010 by Holger Hans Peter Freyther <zecke@selfish.org>
3 * (C) 2010 by On-Waves
4 * All Rights Reserved
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 */
21/* UDP Input for the SNMP On-Waves packets */
22
23#ifndef c7_udp_input_h
24#define c7_udp_input_h
25
26#include <stdint.h>
Holger Hans Peter Freythercbf7d182010-07-31 05:25:35 +080027#include <osmocore/write_queue.h>
Holger Hans Peter Freyther97f66e22010-07-28 03:32:52 +080028
29#define UDP_FORMAT_SIMPLE_UDP 2
30#define UDP_FORMAT_SIMPLE_TCP 3
31
32#define UDP_DATA_MSU_PRIO_0 0
33#define UDP_DATA_MSU_PRIO_1 1
34#define UDP_DATA_MSU_PRIO_2 2
35#define UDP_DATA_MSU_PRIO_3 3
36#define UDP_DATA_RETR_PRIO_0 16
37#define UDP_DATA_RETR_PRIO_1 17
38#define UDP_DATA_RETR_PRIO_2 18
39#define UDP_DATA_RETR_PRIO_3 19
40#define UDP_DATA_RETR_COMPL 32
41#define UDP_DATA_RETR_IMPOS 33
42
43struct udp_data_hdr {
44 uint8_t format_type;
45 uint8_t data_type;
46 uint16_t data_link_index;
47 uint32_t user_context;
48 uint32_t data_length;
49 uint8_t data[0];
50} __attribute__((packed));
51
52#endif