diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-07-02 15:45:47 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-07-02 15:45:47 +0200 |
commit | eba708d93c4f5e8d8c95db54e0fa3856d9117ef8 (patch) | |
tree | efe05a8a71c081dce76ce3661ae918ab64b446d2 /src/osmo-bts-sysmo/misc/sysmobts_eeprom.h | |
parent | 9f21df049144d3f4244b24e789c9820ca631379e (diff) |
sysmobts: Store the netmask as suffixsysmocom/old-stable
If one uses ip(8) one can configure the ip using the form of
A.B.C.D/N. Store N as uint8_t and parse it using strtok_r to
get the otional /N.
Change-Id: I45f884e1a980511fdb3a09425408262420870e0b
Diffstat (limited to 'src/osmo-bts-sysmo/misc/sysmobts_eeprom.h')
-rw-r--r-- | src/osmo-bts-sysmo/misc/sysmobts_eeprom.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h b/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h index 97344f37..c7bbcb1c 100644 --- a/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h +++ b/src/osmo-bts-sysmo/misc/sysmobts_eeprom.h @@ -6,9 +6,9 @@ struct sysmobts_net_cfg { uint8_t mode; /* 0 */ uint32_t ip; /* 1 - 4 */ - uint32_t mask; /* 5 - 8 */ - uint32_t gw; /* 9 - 12 */ - uint32_t dns; /* 13 - 16 */ + uint32_t gw; /* 5 - 8 */ + uint32_t dns; /* 9 - 12 */ + uint8_t mask; /* 13 */ } __attribute__((packed)); struct sysmobts_eeprom { /* offset */ @@ -25,8 +25,9 @@ struct sysmobts_eeprom { /* offset */ uint8_t trx_nr; /* 36 */ uint8_t boot_state[48]; /* 37-84 */ uint8_t _pad1[18]; /* 85-102 */ - struct sysmobts_net_cfg net_cfg;/* 103-119 */ - uint8_t crc; /* 120 */ + struct sysmobts_net_cfg net_cfg;/* 103-116 */ + uint8_t crc; /* 117 */ + uint8_t _pad2[3]; /* 118-120 */ uint8_t gpg_key[128]; /* 121-249 */ } __attribute__((packed)); |