-doxygen
[oweals/gnunet.git] / src / transport / plugin_transport_sat_constants.h
1 /*
2      This file is part of GNUnet
3      (C) 2011 Christian Grothoff (and other contributing authors)
4
5      GNUnet is free software; you can redistribute it and/or modify
6      it under the terms of the GNU General Public License as published
7      by the Free Software Foundation; either version 3, or (at your
8      option) any later version.
9
10      GNUnet is distributed in the hope that it will be useful, but
11      WITHOUT ANY WARRANTY; without even the implied warranty of
12      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13      General Public License for more details.
14
15      You should have received a copy of the GNU General Public License
16      along with GNUnet; see the file COPYING.  If not, write to the
17      Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18      Boston, MA 02111-1307, USA.
19 */
20
21 /**
22  * @file transport/plugin_transport_sat_constants.h
23  * @brief header for transport plugin for satellite for send operations
24  * @author Christian Rupp
25  */
26
27 #ifndef PLUGIN_TRANSPORT_SAT_SEND
28 #define PLUGIN_TRANSPORT_SAT_SEND
29
30 #include <stdint.h>
31 #include "gnunet_common.h"
32
33 typedef struct MacAdress
34 {
35   uint8_t mac[6];
36 } MacAdress;
37
38 //praeamble
39 static const struct char praeambel[56] =
40     { {1, 0, 1, 0, 10, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1,
41        0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1,
42        0, 1, 0, 1, 0, 1, 0}
43 };
44
45 //start of frame
46 static const struct char sof[8] = { {1, 0, 1, 0, 1, 0, 1, 1} }
47
48 // broadcast mac
49 static const struct MacAddress bc_all_mac =
50     { {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF} };
51
52 //crc polynom
53 static const struct char ploynom[32] =
54     { {1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1,
55        0, 0, 1, 0, 0, 0, 0, 1}
56 };
57 #endif