From c9f8a6dca32be1b2037707f59e681767fd32951f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 30 Dec 2009 06:10:56 +0100 Subject: [ipaccess] Expose the sub header list as well.. --- openbsc/include/openbsc/ipaccess.h | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'openbsc/include/openbsc/ipaccess.h') 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); -- cgit v1.2.3