[sr-dev] parse_headers question

Juha Heinanen jh at tutpro.com
Mon Nov 16 22:42:12 CET 2009


while writing rr_count function, i noticed that after calling

    if (parse_headers(msg, HDR_EOH_F, 0) == -1) {

when then going trough the headers of list msg->record_route, that list
contained also other than rr headers.  so i need to test the header type
like this:

    header = msg->record_route;
    while (header) {
	if (header->type == HDR_RECORDROUTE_T) {

why is that, i.e., why does parse_headers add other that rr headers to
msg->record_route list?  i imagined that when all headers are parsed,
each header is added only to its own list and nowhere else.

-- juha



More information about the sr-dev mailing list