diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-12-29 18:22:29 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-12-30 04:40:52 +0100 |
commit | b1414d99c49304e75024b0a5988b282d01d69121 (patch) | |
tree | 608aa02be5799c44b22fd967430577e8c6484ed6 /openbsc/src/ipaccess | |
parent | 1029f84435be2b47ef66ed8e78bd48e11ae3b01a (diff) |
[ipaccess] Start the parser recursively...
* Start parsing the sub SDPs with the same analyze method
Diffstat (limited to 'openbsc/src/ipaccess')
-rw-r--r-- | openbsc/src/ipaccess/ipaccess-firmware.c | 10 |
1 files changed, 3 insertions, 7 deletions
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"); } } |