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