aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/ipaccess.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-12-30 06:10:56 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-12-30 06:42:16 +0100
commitc9f8a6dca32be1b2037707f59e681767fd32951f (patch)
treea80545341ee44f873a43d53d38b13f69bfa022e4 /openbsc/include/openbsc/ipaccess.h
parent4a98cad85e196ee3e23c527862d8c524e150366a (diff)
[ipaccess] Expose the sub header list as well..
Diffstat (limited to 'openbsc/include/openbsc/ipaccess.h')
-rw-r--r--openbsc/include/openbsc/ipaccess.h25
1 files changed, 24 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/ipaccess.h b/openbsc/include/openbsc/ipaccess.h
index 5040de02f..31393811c 100644
--- a/openbsc/include/openbsc/ipaccess.h
+++ b/openbsc/include/openbsc/ipaccess.h
@@ -69,9 +69,32 @@ struct sdp_firmware {
/* stuff i don't know */
} __attribute__((packed));
+struct sdp_header_entry {
+ u_int16_t something1;
+ char text1[64];
+ char time[12];
+ char date[14];
+ char text2[10];
+ char version[20];
+ u_int32_t length;
+ u_int32_t addr1;
+ u_int32_t addr2;
+ u_int32_t start;
+} __attribute__((packed));
+
+struct sdp_header_entry_list {
+ struct sdp_header_entry header_entry;
+ struct llist_head entry;
+};
+
struct sdp_header {
struct sdp_firmware firmware_info;
- struct llist_head list;
+
+ /* for more_magic a list of sdp_header_entry_list */
+ struct llist_head header_list;
+
+ /* the entry of the sdp_header */
+ struct llist_head entry;
};
int ipaccess_analyze_file(int fd, const unsigned int st_size, const unsigned base_offset, struct llist_head *list);