mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-23 01:53:55 +08:00
LWAPP: Fix indentation for some ND_PRINT()
[skip ci]
This commit is contained in:
parent
f6b588a1f7
commit
09454b9bf2
@ -189,17 +189,17 @@ lwapp_control_print(netdissect_options *ndo,
|
||||
*/
|
||||
if (LWAPP_EXTRACT_VERSION(version) != LWAPP_VERSION) {
|
||||
ND_PRINT("LWAPP version %u packet not supported",
|
||||
LWAPP_EXTRACT_VERSION(version));
|
||||
LWAPP_EXTRACT_VERSION(version));
|
||||
return;
|
||||
}
|
||||
|
||||
/* non-verbose */
|
||||
if (ndo->ndo_vflag < 1) {
|
||||
ND_PRINT("LWAPPv%u, %s frame, Flags [%s], length %u",
|
||||
LWAPP_EXTRACT_VERSION(version),
|
||||
LWAPP_EXTRACT_CONTROL_BIT(version) ? "Control" : "Data",
|
||||
bittok2str(lwapp_header_bits_values,"none",version&0x07),
|
||||
len);
|
||||
LWAPP_EXTRACT_VERSION(version),
|
||||
LWAPP_EXTRACT_CONTROL_BIT(version) ? "Control" : "Data",
|
||||
bittok2str(lwapp_header_bits_values,"none",version&0x07),
|
||||
len);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -207,12 +207,12 @@ lwapp_control_print(netdissect_options *ndo,
|
||||
tlen=GET_BE_U_2(lwapp_trans_header->length);
|
||||
|
||||
ND_PRINT("LWAPPv%u, %s frame, Radio-id %u, Flags [%s], Frag-id %u, length %u",
|
||||
LWAPP_EXTRACT_VERSION(version),
|
||||
LWAPP_EXTRACT_CONTROL_BIT(version) ? "Control" : "Data",
|
||||
LWAPP_EXTRACT_RID(version),
|
||||
bittok2str(lwapp_header_bits_values,"none",version&0x07),
|
||||
GET_U_1(lwapp_trans_header->frag_id),
|
||||
tlen);
|
||||
LWAPP_EXTRACT_VERSION(version),
|
||||
LWAPP_EXTRACT_CONTROL_BIT(version) ? "Control" : "Data",
|
||||
LWAPP_EXTRACT_RID(version),
|
||||
bittok2str(lwapp_header_bits_values,"none",version&0x07),
|
||||
GET_U_1(lwapp_trans_header->frag_id),
|
||||
tlen);
|
||||
|
||||
if (has_ap_ident) {
|
||||
ND_PRINT("\n\tAP identity: %s", GET_MAC48_STRING(tptr));
|
||||
@ -240,11 +240,11 @@ lwapp_control_print(netdissect_options *ndo,
|
||||
/* print message header */
|
||||
msg_type = GET_U_1(lwapp_control_header->msg_type);
|
||||
ND_PRINT("\n\t Msg type: %s (%u), Seqnum: %u, Msg len: %u, Session: 0x%08x",
|
||||
tok2str(lwapp_msg_type_values,"Unknown",msg_type),
|
||||
msg_type,
|
||||
GET_U_1(lwapp_control_header->seq_num),
|
||||
msg_tlen,
|
||||
GET_BE_U_4(lwapp_control_header->session_id));
|
||||
tok2str(lwapp_msg_type_values,"Unknown",msg_type),
|
||||
msg_type,
|
||||
GET_U_1(lwapp_control_header->seq_num),
|
||||
msg_tlen,
|
||||
GET_BE_U_4(lwapp_control_header->session_id));
|
||||
|
||||
/* did we capture enough for fully decoding the message */
|
||||
ND_TCHECK_LEN(tptr, msg_tlen);
|
||||
@ -318,17 +318,17 @@ lwapp_data_print(netdissect_options *ndo,
|
||||
*/
|
||||
if (LWAPP_EXTRACT_VERSION(version) != LWAPP_VERSION) {
|
||||
ND_PRINT("LWAPP version %u packet not supported",
|
||||
LWAPP_EXTRACT_VERSION(version));
|
||||
LWAPP_EXTRACT_VERSION(version));
|
||||
return;
|
||||
}
|
||||
|
||||
/* non-verbose */
|
||||
if (ndo->ndo_vflag < 1) {
|
||||
ND_PRINT("LWAPPv%u, %s frame, Flags [%s], length %u",
|
||||
LWAPP_EXTRACT_VERSION(version),
|
||||
LWAPP_EXTRACT_CONTROL_BIT(version) ? "Control" : "Data",
|
||||
bittok2str(lwapp_header_bits_values,"none",version&0x07),
|
||||
len);
|
||||
LWAPP_EXTRACT_VERSION(version),
|
||||
LWAPP_EXTRACT_CONTROL_BIT(version) ? "Control" : "Data",
|
||||
bittok2str(lwapp_header_bits_values,"none",version&0x07),
|
||||
len);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -336,21 +336,21 @@ lwapp_data_print(netdissect_options *ndo,
|
||||
tlen=GET_BE_U_2(lwapp_trans_header->length);
|
||||
if (tlen < sizeof(struct lwapp_transport_header)) {
|
||||
ND_PRINT("LWAPPv%u, %s frame, Radio-id %u, Flags [%s], length %u < transport header length",
|
||||
LWAPP_EXTRACT_VERSION(version),
|
||||
LWAPP_EXTRACT_CONTROL_BIT(version) ? "Control" : "Data",
|
||||
LWAPP_EXTRACT_RID(version),
|
||||
bittok2str(lwapp_header_bits_values,"none",version&0x07),
|
||||
tlen);
|
||||
LWAPP_EXTRACT_VERSION(version),
|
||||
LWAPP_EXTRACT_CONTROL_BIT(version) ? "Control" : "Data",
|
||||
LWAPP_EXTRACT_RID(version),
|
||||
bittok2str(lwapp_header_bits_values,"none",version&0x07),
|
||||
tlen);
|
||||
return;
|
||||
}
|
||||
|
||||
ND_PRINT("LWAPPv%u, %s frame, Radio-id %u, Flags [%s], Frag-id %u, length %u",
|
||||
LWAPP_EXTRACT_VERSION(version),
|
||||
LWAPP_EXTRACT_CONTROL_BIT(version) ? "Control" : "Data",
|
||||
LWAPP_EXTRACT_RID(version),
|
||||
bittok2str(lwapp_header_bits_values,"none",version&0x07),
|
||||
GET_U_1(lwapp_trans_header->frag_id),
|
||||
tlen);
|
||||
LWAPP_EXTRACT_VERSION(version),
|
||||
LWAPP_EXTRACT_CONTROL_BIT(version) ? "Control" : "Data",
|
||||
LWAPP_EXTRACT_RID(version),
|
||||
bittok2str(lwapp_header_bits_values,"none",version&0x07),
|
||||
GET_U_1(lwapp_trans_header->frag_id),
|
||||
tlen);
|
||||
|
||||
tptr+=sizeof(struct lwapp_transport_header);
|
||||
tlen-=sizeof(struct lwapp_transport_header);
|
||||
|
Loading…
Reference in New Issue
Block a user