From b1414d99c49304e75024b0a5988b282d01d69121 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 29 Dec 2009 18:22:29 +0100 Subject: [ipaccess] Start the parser recursively... * Start parsing the sub SDPs with the same analyze method --- openbsc/src/ipaccess/ipaccess-firmware.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'openbsc/src/ipaccess/ipaccess-firmware.c') diff --git a/openbsc/src/ipaccess/ipaccess-firmware.c b/openbsc/src/ipaccess/ipaccess-firmware.c index 1325e5576..f0c23e395 100644 --- a/openbsc/src/ipaccess/ipaccess-firmware.c +++ b/openbsc/src/ipaccess/ipaccess-firmware.c @@ -155,13 +155,9 @@ static void analyze_file(int fd, const unsigned int st_size, const unsigned int return; } - rc = read(fd, &buf, 4); - if (rc != 4) { - perror("peek failed"); - return; - } - - printf("FOO %.4s\n", buf); + printf("------> parsing\n"); + analyze_file(fd, ntohl(entry.length), offset); + printf("<------ parsing\n"); } } -- cgit v1.2.3