mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
don't dump packets unless verbose is given twice
This commit is contained in:
parent
682caca7ea
commit
94f272e8e2
@ -47,6 +47,9 @@ extern const struct valstr ipmi_encryption_algorithms[];
|
||||
|
||||
void lanplus_dump_open_session_response(const struct ipmi_rs * rsp)
|
||||
{
|
||||
if (verbose < 2)
|
||||
return;
|
||||
|
||||
printf("%sOPEN SESSION RESPONSE\n", DUMP_PREFIX_INCOMING);
|
||||
|
||||
printf("%s Message tag : 0x%02x\n",
|
||||
@ -87,6 +90,9 @@ void lanplus_dump_rakp2_message(const struct ipmi_rs * rsp, uint8_t auth_alg)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (verbose < 2)
|
||||
return;
|
||||
|
||||
printf("%sRAKP 2 MESSAGE\n", DUMP_PREFIX_INCOMING);
|
||||
|
||||
printf("%s Message tag : 0x%02x\n",
|
||||
@ -141,6 +147,9 @@ void lanplus_dump_rakp4_message(const struct ipmi_rs * rsp, uint8_t auth_alg)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (verbose < 2)
|
||||
return;
|
||||
|
||||
printf("%sRAKP 4 MESSAGE\n", DUMP_PREFIX_INCOMING);
|
||||
|
||||
printf("%s Message tag : 0x%02x\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user