Commit: Christian Rupp
[oweals/gnunet.git] / src / transport / plugin_transport_sat_constants.h
1 /*
2      This file is part of GNUnet
3      (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 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_send.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,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0}};
41
42 //start of frame
43 static const struct char sof[8]=
44 {{1,0,1,0,1,0,1,1}}
45
46 // broadcast mac
47 static const struct MacAddress bc_all_mac =
48   { { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF } };
49
50 //crc polynom
51 static const struct char ploynom[32] =
52         {{1,1,1,0,1,1,0,1,1,0,1,1,1,0,0,0,1,0,0,0,0,0,1,1,0,0,1,0,0,0,0,1}};
53 #endif