Deleted Added
full compact
print-ldp.c (242485) print-ldp.c (252283)
1/*
2 * Redistribution and use in source and binary forms, with or without
3 * modification, are permitted provided that: (1) source code
4 * distributions retain the above copyright notice and this paragraph
5 * in its entirety, and (2) distributions including binary code include
6 * the above copyright notice and this paragraph in its entirety in
7 * the documentation or other materials provided with the distribution.
8 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND

--- 648 unchanged lines hidden (view full) ---

657
658 default:
659 if (vflag <= 1)
660 print_unknown_data(msg_tptr,"\n\t ",msg_tlen);
661 break;
662 }
663 /* do we want to see an additionally hexdump ? */
664 if (vflag > 1 || hexdump==TRUE)
1/*
2 * Redistribution and use in source and binary forms, with or without
3 * modification, are permitted provided that: (1) source code
4 * distributions retain the above copyright notice and this paragraph
5 * in its entirety, and (2) distributions including binary code include
6 * the above copyright notice and this paragraph in its entirety in
7 * the documentation or other materials provided with the distribution.
8 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND

--- 648 unchanged lines hidden (view full) ---

657
658 default:
659 if (vflag <= 1)
660 print_unknown_data(msg_tptr,"\n\t ",msg_tlen);
661 break;
662 }
663 /* do we want to see an additionally hexdump ? */
664 if (vflag > 1 || hexdump==TRUE)
665 print_unknown_data(tptr+sizeof(sizeof(struct ldp_msg_header)),"\n\t ",
665 print_unknown_data(tptr+sizeof(struct ldp_msg_header),"\n\t ",
666 msg_len);
667
668 tptr += msg_len+4;
669 tlen -= msg_len+4;
670 }
671 return pdu_len+4;
672trunc:
673 printf("\n\t\t packet exceeded snapshot");
674 return 0;
675}
676
666 msg_len);
667
668 tptr += msg_len+4;
669 tlen -= msg_len+4;
670 }
671 return pdu_len+4;
672trunc:
673 printf("\n\t\t packet exceeded snapshot");
674 return 0;
675}
676