KM3NeT CLB  2.0
KM3NeT CLB v2 Embedded Software
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cfg_net.h
1 /*
2  * KM3NeT CLB v2 Firmware
3  * ----------------------
4  *
5  * Copyright 2012-2019 KM3NeT Collaboration
6  *
7  * All Rights Reserved.
8  *
9  *
10  * File : cfg_net.h
11  * Created : 5 aug. 2019
12  * Author : Vincent van Beveren
13  */
14 #ifndef CFG_NET_H_
15 #define CFG_NET_H_
16 
17 // At start up the CLB can have a pre-existing IP, derived from some identifier number
18 // this allow the CLB to still be responsive, even if there is no back-path possible
19 // Internally for this IP the lower part of the MAC address is used. However, this
20 // value is not guarenteed to be globally unique. As such as a second stage an IP
21 // will need to be assigned using BOOTP
22 
23 // IP = NET_SUP_IP_FIX | ( MAC[3..0] & NET_SU_IP_DYN_MASK )
24 
25 /// Start-up IP assignment, fixed components. To not use this feature comment
26 /// out this line.
27 #define NET_SU_IP_FIX NET_IP_U32(10, 128, 0, 0)
28 /// Start-up IP assingment, dynamic mask
29 #define NET_SU_IP_DYN_MASK NET_IP_U32(0, 127, 255, 255)
30 
31 
32 #endif /* CFG_NET_H_ */