print-lmp.c (225736) | print-lmp.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 --- 857 unchanged lines hidden (view full) --- 866 867 default: 868 if (vflag <= 1) 869 print_unknown_data(obj_tptr,"\n\t ",obj_tlen); 870 break; 871 } 872 /* do we want to see an additionally hexdump ? */ 873 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 --- 857 unchanged lines hidden (view full) --- 866 867 default: 868 if (vflag <= 1) 869 print_unknown_data(obj_tptr,"\n\t ",obj_tlen); 870 break; 871 } 872 /* do we want to see an additionally hexdump ? */ 873 if (vflag > 1 || hexdump==TRUE) |
874 print_unknown_data(tptr+sizeof(sizeof(struct lmp_object_header)),"\n\t ", | 874 print_unknown_data(tptr+sizeof(struct lmp_object_header),"\n\t ", |
875 lmp_obj_len-sizeof(struct lmp_object_header)); 876 877 tptr+=lmp_obj_len; 878 tlen-=lmp_obj_len; 879 } 880 return; 881trunc: 882 printf("\n\t\t packet exceeded snapshot"); 883} | 875 lmp_obj_len-sizeof(struct lmp_object_header)); 876 877 tptr+=lmp_obj_len; 878 tlen-=lmp_obj_len; 879 } 880 return; 881trunc: 882 printf("\n\t\t packet exceeded snapshot"); 883} |