[ipaccess] Start the parser recursively...
* Start parsing the sub SDPs with the same analyze method
This commit is contained in:
parent
1029f84435
commit
b1414d99c4
|
@ -155,13 +155,9 @@ static void analyze_file(int fd, const unsigned int st_size, const unsigned int
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = read(fd, &buf, 4);
|
printf("------> parsing\n");
|
||||||
if (rc != 4) {
|
analyze_file(fd, ntohl(entry.length), offset);
|
||||||
perror("peek failed");
|
printf("<------ parsing\n");
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
printf("FOO %.4s\n", buf);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue