Lines Matching refs:msg_data
183 const u_char *msg_data, u_int hello_len) in olsr_print_lq_neighbor4() argument
189 lq_neighbor = (struct olsr_lq_neighbor4 *)msg_data; in olsr_print_lq_neighbor4()
199 msg_data += sizeof(struct olsr_lq_neighbor4); in olsr_print_lq_neighbor4()
208 const u_char *msg_data, u_int hello_len) in olsr_print_lq_neighbor6() argument
214 lq_neighbor = (struct olsr_lq_neighbor6 *)msg_data; in olsr_print_lq_neighbor6()
224 msg_data += sizeof(struct olsr_lq_neighbor6); in olsr_print_lq_neighbor6()
236 const u_char *msg_data, u_int hello_len) in olsr_print_neighbor() argument
245 if (!ND_TTEST2(*msg_data, sizeof(struct in_addr))) in olsr_print_neighbor()
249 ND_PRINT((ndo, "%s%s", ipaddr_string(ndo, msg_data), in olsr_print_neighbor()
252 msg_data += sizeof(struct in_addr); in olsr_print_neighbor()
277 const u_char *tptr, *msg_data; in olsr_print() local
343 msg_data = tptr + sizeof(struct olsr_msg6); in olsr_print()
374 msg_data = tptr + sizeof(struct olsr_msg4); in olsr_print()
382 ND_TCHECK2(*msg_data, sizeof(struct olsr_hello)); in olsr_print()
384 ptr.hello = (struct olsr_hello *)msg_data; in olsr_print()
387 msg_data += sizeof(struct olsr_hello); in olsr_print()
396 ND_TCHECK2(*msg_data, sizeof(struct olsr_hello_link)); in olsr_print()
398 ptr.hello_link = (struct olsr_hello_link *)msg_data; in olsr_print()
417 msg_data += sizeof(struct olsr_hello_link); in olsr_print()
421 ND_TCHECK2(*msg_data, hello_len); in olsr_print()
423 if (olsr_print_neighbor(ndo, msg_data, hello_len) == -1) in olsr_print()
428 if (olsr_print_lq_neighbor6(ndo, msg_data, hello_len) == -1) in olsr_print()
433 if (olsr_print_lq_neighbor4(ndo, msg_data, hello_len) == -1) in olsr_print()
438 msg_data += hello_len; in olsr_print()
447 ND_TCHECK2(*msg_data, sizeof(struct olsr_tc)); in olsr_print()
449 ptr.tc = (struct olsr_tc *)msg_data; in olsr_print()
452 msg_data += sizeof(struct olsr_tc); in olsr_print()
456 if (olsr_print_neighbor(ndo, msg_data, msg_tlen) == -1) in olsr_print()
461 if (olsr_print_lq_neighbor6(ndo, msg_data, msg_tlen) == -1) in olsr_print()
466 if (olsr_print_lq_neighbor4(ndo, msg_data, msg_tlen) == -1) in olsr_print()
482 ND_TCHECK2(*msg_data, addr_size); in olsr_print()
485 is_ipv6 ? ip6addr_string(ndo, msg_data) : in olsr_print()
486 ipaddr_string(ndo, msg_data))); in olsr_print()
489 ipaddr_string(ndo, msg_data))); in olsr_print()
492 msg_data += addr_size; in olsr_print()
508 ND_TCHECK2(*msg_data, sizeof(struct olsr_hna6)); in olsr_print()
510 hna6 = (struct olsr_hna6 *)msg_data; in olsr_print()
516 msg_data += sizeof(struct olsr_hna6); in olsr_print()
525 ND_TCHECK2(*msg_data, sizeof(struct olsr_hna4)); in olsr_print()
527 ptr.hna = (struct olsr_hna4 *)msg_data; in olsr_print()
535 msg_data += sizeof(struct olsr_hna4); in olsr_print()
545 u_int name_entries = EXTRACT_16BITS(msg_data+2); in olsr_print()
559 ND_TCHECK2(*msg_data, 4); in olsr_print()
562 EXTRACT_16BITS(msg_data), in olsr_print()
568 msg_data += 4; in olsr_print()
576 ND_TCHECK2(*msg_data, 4); in olsr_print()
578 name_entry_type = EXTRACT_16BITS(msg_data); in olsr_print()
579 name_entry_len = EXTRACT_16BITS(msg_data+2); in olsr_print()
581 msg_data += 4; in olsr_print()
602 ND_TCHECK2(*msg_data, addr_size + name_entry_len + name_entry_padding); in olsr_print()
607 ip6addr_string(ndo, msg_data))); in olsr_print()
611 ipaddr_string(ndo, msg_data))); in olsr_print()
612 (void)fn_printn(ndo, msg_data + addr_size, name_entry_len, NULL); in olsr_print()
615 msg_data += addr_size + name_entry_len + name_entry_padding; in olsr_print()
627 print_unknown_data(ndo, msg_data, "\n\t ", msg_tlen); in olsr_print()