diff options
| author | Xin LI <delphij@FreeBSD.org> | 2012-05-14 08:01:48 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2012-05-14 08:01:48 +0000 |
| commit | 60894fde29002aac35c5aff244b0f45c4d590413 (patch) | |
| tree | 2d0f73c65ae258539a2146cd435727a18ae62097 /print-slow.c | |
| parent | 6d59e2f382406def185ce5261b8723a174cd28a3 (diff) | |
Diffstat (limited to 'print-slow.c')
| -rw-r--r-- | print-slow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-slow.c b/print-slow.c index eaf94ed9bbbc..fdfefccf386a 100644 --- a/print-slow.c +++ b/print-slow.c @@ -368,7 +368,7 @@ void slow_marker_lacp_print(register const u_char *tptr, register u_int tlen) { tlv_header->type != LACP_TLV_TERMINATOR && tlv_header->type != MARKER_TLV_TERMINATOR) { printf("\n\t-----trailing data-----"); - print_unknown_data(tptr+sizeof(sizeof(struct tlv_header_t)),"\n\t ",tlen); + print_unknown_data(tptr+sizeof(struct tlv_header_t),"\n\t ",tlen); return; } @@ -441,7 +441,7 @@ void slow_marker_lacp_print(register const u_char *tptr, register u_int tlen) { } /* do we want to see an additional hexdump ? */ if (vflag > 1) { - print_unknown_data(tptr+sizeof(sizeof(struct tlv_header_t)),"\n\t ", + print_unknown_data(tptr+sizeof(struct tlv_header_t),"\n\t ", tlv_len-sizeof(struct tlv_header_t)); } |
