Deleted Added
full compact
print-lspping.c (225736) print-lspping.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

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

873
874 default:
875 if (vflag <= 1)
876 print_unknown_data(tlv_tptr,"\n\t ",tlv_tlen);
877 break;
878 }
879 /* do we want to see an additionally tlv hexdump ? */
880 if (vflag > 1 || tlv_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

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

873
874 default:
875 if (vflag <= 1)
876 print_unknown_data(tlv_tptr,"\n\t ",tlv_tlen);
877 break;
878 }
879 /* do we want to see an additionally tlv hexdump ? */
880 if (vflag > 1 || tlv_hexdump==TRUE)
881 print_unknown_data(tptr+sizeof(sizeof(struct lspping_tlv_header)),"\n\t ",
881 print_unknown_data(tptr+sizeof(struct lspping_tlv_header),"\n\t ",
882 lspping_tlv_len);
883
884
885 /* All TLVs are aligned to four octet boundary */
886 if (lspping_tlv_len % 4) {
887 lspping_tlv_len += (4 - lspping_tlv_len % 4);
888 }
889
890 tptr+=lspping_tlv_len+sizeof(struct lspping_tlv_header);
891 tlen-=lspping_tlv_len+sizeof(struct lspping_tlv_header);
892 }
893 return;
894trunc:
895 printf("\n\t\t packet exceeded snapshot");
896}
882 lspping_tlv_len);
883
884
885 /* All TLVs are aligned to four octet boundary */
886 if (lspping_tlv_len % 4) {
887 lspping_tlv_len += (4 - lspping_tlv_len % 4);
888 }
889
890 tptr+=lspping_tlv_len+sizeof(struct lspping_tlv_header);
891 tlen-=lspping_tlv_len+sizeof(struct lspping_tlv_header);
892 }
893 return;
894trunc:
895 printf("\n\t\t packet exceeded snapshot");
896}