2 * Copyright (c) 1998-2006 The TCPDUMP project
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that: (1) source code
6 * distributions retain the above copyright notice and this paragraph
7 * in its entirety, and (2) distributions including binary code include
8 * the above copyright notice and this paragraph in its entirety in
9 * the documentation or other materials provided with the distribution.
10 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
11 * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
12 * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
13 * FOR A PARTICULAR PURPOSE.
15 * support for the IEEE "slow protocols" LACP, MARKER as per 802.3ad
18 * Original code by Hannes Gredler (hannes@juniper.net)
25 #include <tcpdump-stdinc.h>
27 #include "interface.h"
29 #include "addrtoname.h"
33 struct slow_common_header_t
{
34 uint8_t proto_subtype
;
38 #define SLOW_PROTO_LACP 1
39 #define SLOW_PROTO_MARKER 2
40 #define SLOW_PROTO_OAM 3
42 #define LACP_VERSION 1
43 #define MARKER_VERSION 1
45 static const struct tok slow_proto_values
[] = {
46 { SLOW_PROTO_LACP
, "LACP" },
47 { SLOW_PROTO_MARKER
, "MARKER" },
48 { SLOW_PROTO_OAM
, "OAM" },
52 static const struct tok slow_oam_flag_values
[] = {
53 { 0x0001, "Link Fault" },
54 { 0x0002, "Dying Gasp" },
55 { 0x0004, "Critical Event" },
56 { 0x0008, "Local Evaluating" },
57 { 0x0010, "Local Stable" },
58 { 0x0020, "Remote Evaluating" },
59 { 0x0040, "Remote Stable" },
63 #define SLOW_OAM_CODE_INFO 0x00
64 #define SLOW_OAM_CODE_EVENT_NOTIF 0x01
65 #define SLOW_OAM_CODE_VAR_REQUEST 0x02
66 #define SLOW_OAM_CODE_VAR_RESPONSE 0x03
67 #define SLOW_OAM_CODE_LOOPBACK_CTRL 0x04
68 #define SLOW_OAM_CODE_PRIVATE 0xfe
70 static const struct tok slow_oam_code_values
[] = {
71 { SLOW_OAM_CODE_INFO
, "Information" },
72 { SLOW_OAM_CODE_EVENT_NOTIF
, "Event Notification" },
73 { SLOW_OAM_CODE_VAR_REQUEST
, "Variable Request" },
74 { SLOW_OAM_CODE_VAR_RESPONSE
, "Variable Response" },
75 { SLOW_OAM_CODE_LOOPBACK_CTRL
, "Loopback Control" },
76 { SLOW_OAM_CODE_PRIVATE
, "Vendor Private" },
80 struct slow_oam_info_t
{
87 uint8_t oam_pdu_config
[2];
89 uint8_t vendor_private
[4];
92 #define SLOW_OAM_INFO_TYPE_END_OF_TLV 0x00
93 #define SLOW_OAM_INFO_TYPE_LOCAL 0x01
94 #define SLOW_OAM_INFO_TYPE_REMOTE 0x02
95 #define SLOW_OAM_INFO_TYPE_ORG_SPECIFIC 0xfe
97 static const struct tok slow_oam_info_type_values
[] = {
98 { SLOW_OAM_INFO_TYPE_END_OF_TLV
, "End of TLV marker" },
99 { SLOW_OAM_INFO_TYPE_LOCAL
, "Local" },
100 { SLOW_OAM_INFO_TYPE_REMOTE
, "Remote" },
101 { SLOW_OAM_INFO_TYPE_ORG_SPECIFIC
, "Organization specific" },
105 #define OAM_INFO_TYPE_PARSER_MASK 0x3
106 static const struct tok slow_oam_info_type_state_parser_values
[] = {
107 { 0x00, "forwarding" },
108 { 0x01, "looping back" },
109 { 0x02, "discarding" },
110 { 0x03, "reserved" },
114 #define OAM_INFO_TYPE_MUX_MASK 0x4
115 static const struct tok slow_oam_info_type_state_mux_values
[] = {
116 { 0x00, "forwarding" },
117 { 0x04, "discarding" },
121 static const struct tok slow_oam_info_type_oam_config_values
[] = {
123 { 0x02, "Unidirectional" },
124 { 0x04, "Remote-Loopback" },
125 { 0x08, "Link-Events" },
126 { 0x10, "Variable-Retrieval" },
131 #define OAM_INFO_TYPE_PDU_SIZE_MASK 0x7ff
133 #define SLOW_OAM_LINK_EVENT_END_OF_TLV 0x00
134 #define SLOW_OAM_LINK_EVENT_ERR_SYM_PER 0x01
135 #define SLOW_OAM_LINK_EVENT_ERR_FRM 0x02
136 #define SLOW_OAM_LINK_EVENT_ERR_FRM_PER 0x03
137 #define SLOW_OAM_LINK_EVENT_ERR_FRM_SUMM 0x04
138 #define SLOW_OAM_LINK_EVENT_ORG_SPECIFIC 0xfe
140 static const struct tok slow_oam_link_event_values
[] = {
141 { SLOW_OAM_LINK_EVENT_END_OF_TLV
, "End of TLV marker" },
142 { SLOW_OAM_LINK_EVENT_ERR_SYM_PER
, "Errored Symbol Period Event" },
143 { SLOW_OAM_LINK_EVENT_ERR_FRM
, "Errored Frame Event" },
144 { SLOW_OAM_LINK_EVENT_ERR_FRM_PER
, "Errored Frame Period Event" },
145 { SLOW_OAM_LINK_EVENT_ERR_FRM_SUMM
, "Errored Frame Seconds Summary Event" },
146 { SLOW_OAM_LINK_EVENT_ORG_SPECIFIC
, "Organization specific" },
150 struct slow_oam_link_event_t
{
152 uint8_t event_length
;
153 uint8_t time_stamp
[2];
155 uint8_t threshold
[8];
157 uint8_t errors_running_total
[8];
158 uint8_t event_running_total
[4];
161 struct slow_oam_variablerequest_t
{
166 struct slow_oam_variableresponse_t
{
172 struct slow_oam_loopbackctrl_t
{
176 static const struct tok slow_oam_loopbackctrl_cmd_values
[] = {
177 { 0x01, "Enable OAM Remote Loopback" },
178 { 0x02, "Disable OAM Remote Loopback" },
182 struct tlv_header_t
{
187 #define LACP_TLV_TERMINATOR 0x00
188 #define LACP_TLV_ACTOR_INFO 0x01
189 #define LACP_TLV_PARTNER_INFO 0x02
190 #define LACP_TLV_COLLECTOR_INFO 0x03
192 #define MARKER_TLV_TERMINATOR 0x00
193 #define MARKER_TLV_MARKER_INFO 0x01
195 static const struct tok slow_tlv_values
[] = {
196 { (SLOW_PROTO_LACP
<< 8) + LACP_TLV_TERMINATOR
, "Terminator"},
197 { (SLOW_PROTO_LACP
<< 8) + LACP_TLV_ACTOR_INFO
, "Actor Information"},
198 { (SLOW_PROTO_LACP
<< 8) + LACP_TLV_PARTNER_INFO
, "Partner Information"},
199 { (SLOW_PROTO_LACP
<< 8) + LACP_TLV_COLLECTOR_INFO
, "Collector Information"},
201 { (SLOW_PROTO_MARKER
<< 8) + MARKER_TLV_TERMINATOR
, "Terminator"},
202 { (SLOW_PROTO_MARKER
<< 8) + MARKER_TLV_MARKER_INFO
, "Marker Information"},
206 struct lacp_tlv_actor_partner_info_t
{
208 uint8_t sys
[ETHER_ADDR_LEN
];
216 static const struct tok lacp_tlv_actor_partner_info_state_values
[] = {
219 { 0x04, "Aggregation"},
220 { 0x08, "Synchronization"},
221 { 0x10, "Collecting"},
222 { 0x20, "Distributing"},
228 struct lacp_tlv_collector_info_t
{
229 uint8_t max_delay
[2];
233 struct marker_tlv_marker_info_t
{
235 uint8_t req_sys
[ETHER_ADDR_LEN
];
236 uint8_t req_trans_id
[4];
240 struct lacp_marker_tlv_terminator_t
{
244 static void slow_marker_lacp_print(netdissect_options
*, register const u_char
*, register u_int
);
245 static void slow_oam_print(netdissect_options
*, register const u_char
*, register u_int
);
247 const struct slow_common_header_t
*slow_com_header
;
250 slow_print(netdissect_options
*ndo
,
251 register const u_char
*pptr
, register u_int len
)
255 slow_com_header
= (const struct slow_common_header_t
*)pptr
;
256 ND_TCHECK(*slow_com_header
);
259 * Sanity checking of the header.
261 switch (slow_com_header
->proto_subtype
) {
262 case SLOW_PROTO_LACP
:
263 if (slow_com_header
->version
!= LACP_VERSION
) {
264 ND_PRINT((ndo
, "LACP version %u packet not supported",slow_com_header
->version
));
270 case SLOW_PROTO_MARKER
:
271 if (slow_com_header
->version
!= MARKER_VERSION
) {
272 ND_PRINT((ndo
, "MARKER version %u packet not supported",slow_com_header
->version
));
278 case SLOW_PROTO_OAM
: /* fall through */
283 /* print basic information and exit */
289 ND_PRINT((ndo
, "%sv%u, length %u",
290 tok2str(slow_proto_values
, "unknown (%u)",slow_com_header
->proto_subtype
),
291 slow_com_header
->version
,
294 /* some slow protos don't have a version number in the header */
295 ND_PRINT((ndo
, "%s, length %u",
296 tok2str(slow_proto_values
, "unknown (%u)",slow_com_header
->proto_subtype
),
300 /* unrecognized subtype */
301 if (print_version
== -1) {
302 print_unknown_data(ndo
, pptr
, "\n\t", len
);
309 switch (slow_com_header
->proto_subtype
) {
310 default: /* should not happen */
314 /* skip proto_subtype */
315 slow_oam_print(ndo
, pptr
+1, len
-1);
318 case SLOW_PROTO_LACP
: /* LACP and MARKER share the same semantics */
319 case SLOW_PROTO_MARKER
:
320 /* skip slow_common_header */
321 len
-= sizeof(const struct slow_common_header_t
);
322 pptr
+= sizeof(const struct slow_common_header_t
);
323 slow_marker_lacp_print(ndo
, pptr
, len
);
329 ND_PRINT((ndo
, "\n\t\t packet exceeded snapshot"));
333 slow_marker_lacp_print(netdissect_options
*ndo
,
334 register const u_char
*tptr
, register u_int tlen
)
336 const struct tlv_header_t
*tlv_header
;
337 const u_char
*tlv_tptr
;
338 u_int tlv_len
, tlv_tlen
;
341 const struct lacp_marker_tlv_terminator_t
*lacp_marker_tlv_terminator
;
342 const struct lacp_tlv_actor_partner_info_t
*lacp_tlv_actor_partner_info
;
343 const struct lacp_tlv_collector_info_t
*lacp_tlv_collector_info
;
344 const struct marker_tlv_marker_info_t
*marker_tlv_marker_info
;
348 /* did we capture enough for fully decoding the tlv header ? */
349 ND_TCHECK2(*tptr
, sizeof(struct tlv_header_t
));
350 tlv_header
= (const struct tlv_header_t
*)tptr
;
351 tlv_len
= tlv_header
->length
;
353 ND_PRINT((ndo
, "\n\t%s TLV (0x%02x), length %u",
354 tok2str(slow_tlv_values
,
356 (slow_com_header
->proto_subtype
<< 8) + tlv_header
->type
),
360 if ((tlv_len
< sizeof(struct tlv_header_t
) ||
362 tlv_header
->type
!= LACP_TLV_TERMINATOR
&&
363 tlv_header
->type
!= MARKER_TLV_TERMINATOR
) {
364 ND_PRINT((ndo
, "\n\t-----trailing data-----"));
365 print_unknown_data(ndo
, tptr
+sizeof(struct tlv_header_t
), "\n\t ", tlen
);
369 tlv_tptr
=tptr
+sizeof(struct tlv_header_t
);
370 tlv_tlen
=tlv_len
-sizeof(struct tlv_header_t
);
372 /* did we capture enough for fully decoding the tlv ? */
373 ND_TCHECK2(*tptr
, tlv_len
);
375 switch((slow_com_header
->proto_subtype
<< 8) + tlv_header
->type
) {
377 /* those two TLVs have the same structure -> fall through */
378 case ((SLOW_PROTO_LACP
<< 8) + LACP_TLV_ACTOR_INFO
):
379 case ((SLOW_PROTO_LACP
<< 8) + LACP_TLV_PARTNER_INFO
):
380 tlv_ptr
.lacp_tlv_actor_partner_info
= (const struct lacp_tlv_actor_partner_info_t
*)tlv_tptr
;
382 ND_PRINT((ndo
, "\n\t System %s, System Priority %u, Key %u" \
383 ", Port %u, Port Priority %u\n\t State Flags [%s]",
384 etheraddr_string(ndo
, tlv_ptr
.lacp_tlv_actor_partner_info
->sys
),
385 EXTRACT_16BITS(tlv_ptr
.lacp_tlv_actor_partner_info
->sys_pri
),
386 EXTRACT_16BITS(tlv_ptr
.lacp_tlv_actor_partner_info
->key
),
387 EXTRACT_16BITS(tlv_ptr
.lacp_tlv_actor_partner_info
->port
),
388 EXTRACT_16BITS(tlv_ptr
.lacp_tlv_actor_partner_info
->port_pri
),
389 bittok2str(lacp_tlv_actor_partner_info_state_values
,
391 tlv_ptr
.lacp_tlv_actor_partner_info
->state
)));
395 case ((SLOW_PROTO_LACP
<< 8) + LACP_TLV_COLLECTOR_INFO
):
396 tlv_ptr
.lacp_tlv_collector_info
= (const struct lacp_tlv_collector_info_t
*)tlv_tptr
;
398 ND_PRINT((ndo
, "\n\t Max Delay %u",
399 EXTRACT_16BITS(tlv_ptr
.lacp_tlv_collector_info
->max_delay
)));
403 case ((SLOW_PROTO_MARKER
<< 8) + MARKER_TLV_MARKER_INFO
):
404 tlv_ptr
.marker_tlv_marker_info
= (const struct marker_tlv_marker_info_t
*)tlv_tptr
;
406 ND_PRINT((ndo
, "\n\t Request System %s, Request Port %u, Request Transaction ID 0x%08x",
407 etheraddr_string(ndo
, tlv_ptr
.marker_tlv_marker_info
->req_sys
),
408 EXTRACT_16BITS(tlv_ptr
.marker_tlv_marker_info
->req_port
),
409 EXTRACT_32BITS(tlv_ptr
.marker_tlv_marker_info
->req_trans_id
)));
413 /* those two TLVs have the same structure -> fall through */
414 case ((SLOW_PROTO_LACP
<< 8) + LACP_TLV_TERMINATOR
):
415 case ((SLOW_PROTO_MARKER
<< 8) + LACP_TLV_TERMINATOR
):
416 tlv_ptr
.lacp_marker_tlv_terminator
= (const struct lacp_marker_tlv_terminator_t
*)tlv_tptr
;
418 tlv_len
= sizeof(tlv_ptr
.lacp_marker_tlv_terminator
->pad
) +
419 sizeof(struct tlv_header_t
);
420 /* tell the user that we modified the length field */
421 if (ndo
->ndo_vflag
>1)
422 ND_PRINT((ndo
, " (=%u)", tlv_len
));
423 /* we have messed around with the length field - now we need to check
424 * again if there are enough bytes on the wire for the hexdump */
425 ND_TCHECK2(tlv_ptr
.lacp_marker_tlv_terminator
->pad
[0],
426 sizeof(tlv_ptr
.lacp_marker_tlv_terminator
->pad
));
432 if (ndo
->ndo_vflag
<= 1)
433 print_unknown_data(ndo
, tlv_tptr
, "\n\t ", tlv_tlen
);
436 /* do we want to see an additional hexdump ? */
437 if (ndo
->ndo_vflag
> 1) {
438 print_unknown_data(ndo
, tptr
+sizeof(struct tlv_header_t
), "\n\t ",
439 tlv_len
-sizeof(struct tlv_header_t
));
447 ND_PRINT((ndo
, "\n\t\t packet exceeded snapshot"));
451 slow_oam_print(netdissect_options
*ndo
,
452 register const u_char
*tptr
, register u_int tlen
)
456 struct slow_oam_common_header_t
{
461 struct slow_oam_tlv_header_t
{
467 const struct slow_oam_common_header_t
*slow_oam_common_header
;
468 const struct slow_oam_tlv_header_t
*slow_oam_tlv_header
;
472 const struct slow_oam_info_t
*slow_oam_info
;
473 const struct slow_oam_link_event_t
*slow_oam_link_event
;
474 const struct slow_oam_variablerequest_t
*slow_oam_variablerequest
;
475 const struct slow_oam_variableresponse_t
*slow_oam_variableresponse
;
476 const struct slow_oam_loopbackctrl_t
*slow_oam_loopbackctrl
;
479 ptr
.slow_oam_common_header
= (const struct slow_oam_common_header_t
*)tptr
;
480 tptr
+= sizeof(struct slow_oam_common_header_t
);
481 tlen
-= sizeof(struct slow_oam_common_header_t
);
483 ND_PRINT((ndo
, "\n\tCode %s OAM PDU, Flags [%s]",
484 tok2str(slow_oam_code_values
, "Unknown (%u)", ptr
.slow_oam_common_header
->code
),
485 bittok2str(slow_oam_flag_values
,
487 EXTRACT_16BITS(&ptr
.slow_oam_common_header
->flags
))));
489 switch (ptr
.slow_oam_common_header
->code
) {
490 case SLOW_OAM_CODE_INFO
:
492 ptr
.slow_oam_tlv_header
= (const struct slow_oam_tlv_header_t
*)tptr
;
493 ND_PRINT((ndo
, "\n\t %s Information Type (%u), length %u",
494 tok2str(slow_oam_info_type_values
, "Reserved",
495 ptr
.slow_oam_tlv_header
->type
),
496 ptr
.slow_oam_tlv_header
->type
,
497 ptr
.slow_oam_tlv_header
->length
));
500 switch (ptr
.slow_oam_tlv_header
->type
) {
501 case SLOW_OAM_INFO_TYPE_END_OF_TLV
:
502 if (ptr
.slow_oam_tlv_header
->length
!= 0) {
503 ND_PRINT((ndo
, "\n\t ERROR: illegal length - should be 0"));
507 case SLOW_OAM_INFO_TYPE_LOCAL
: /* identical format - fall through */
508 case SLOW_OAM_INFO_TYPE_REMOTE
:
509 tlv
.slow_oam_info
= (const struct slow_oam_info_t
*)tptr
;
511 if (tlv
.slow_oam_info
->info_length
!=
512 sizeof(struct slow_oam_info_t
)) {
513 ND_PRINT((ndo
, "\n\t ERROR: illegal length - should be %lu",
514 (unsigned long) sizeof(struct slow_oam_info_t
)));
518 ND_PRINT((ndo
, "\n\t OAM-Version %u, Revision %u",
519 tlv
.slow_oam_info
->oam_version
,
520 EXTRACT_16BITS(&tlv
.slow_oam_info
->revision
)));
522 ND_PRINT((ndo
, "\n\t State-Parser-Action %s, State-MUX-Action %s",
523 tok2str(slow_oam_info_type_state_parser_values
, "Reserved",
524 tlv
.slow_oam_info
->state
& OAM_INFO_TYPE_PARSER_MASK
),
525 tok2str(slow_oam_info_type_state_mux_values
, "Reserved",
526 tlv
.slow_oam_info
->state
& OAM_INFO_TYPE_MUX_MASK
)));
527 ND_PRINT((ndo
, "\n\t OAM-Config Flags [%s], OAM-PDU-Config max-PDU size %u",
528 bittok2str(slow_oam_info_type_oam_config_values
, "none",
529 tlv
.slow_oam_info
->oam_config
),
530 EXTRACT_16BITS(&tlv
.slow_oam_info
->oam_pdu_config
) &
531 OAM_INFO_TYPE_PDU_SIZE_MASK
));
532 ND_PRINT((ndo
, "\n\t OUI %s (0x%06x), Vendor-Private 0x%08x",
533 tok2str(oui_values
, "Unknown",
534 EXTRACT_24BITS(&tlv
.slow_oam_info
->oui
)),
535 EXTRACT_24BITS(&tlv
.slow_oam_info
->oui
),
536 EXTRACT_32BITS(&tlv
.slow_oam_info
->vendor_private
)));
539 case SLOW_OAM_INFO_TYPE_ORG_SPECIFIC
:
548 /* infinite loop check */
549 if (!ptr
.slow_oam_tlv_header
->length
) {
553 /* do we also want to see a hex dump ? */
554 if (ndo
->ndo_vflag
> 1 || hexdump
==TRUE
) {
555 print_unknown_data(ndo
, tptr
, "\n\t ",
556 ptr
.slow_oam_tlv_header
->length
);
559 tlen
-= ptr
.slow_oam_tlv_header
->length
;
560 tptr
+= ptr
.slow_oam_tlv_header
->length
;
564 case SLOW_OAM_CODE_EVENT_NOTIF
:
566 ptr
.slow_oam_tlv_header
= (const struct slow_oam_tlv_header_t
*)tptr
;
567 ND_PRINT((ndo
, "\n\t %s Link Event Type (%u), length %u",
568 tok2str(slow_oam_link_event_values
, "Reserved",
569 ptr
.slow_oam_tlv_header
->type
),
570 ptr
.slow_oam_tlv_header
->type
,
571 ptr
.slow_oam_tlv_header
->length
));
574 switch (ptr
.slow_oam_tlv_header
->type
) {
575 case SLOW_OAM_LINK_EVENT_END_OF_TLV
:
576 if (ptr
.slow_oam_tlv_header
->length
!= 0) {
577 ND_PRINT((ndo
, "\n\t ERROR: illegal length - should be 0"));
581 case SLOW_OAM_LINK_EVENT_ERR_SYM_PER
: /* identical format - fall through */
582 case SLOW_OAM_LINK_EVENT_ERR_FRM
:
583 case SLOW_OAM_LINK_EVENT_ERR_FRM_PER
:
584 case SLOW_OAM_LINK_EVENT_ERR_FRM_SUMM
:
585 tlv
.slow_oam_link_event
= (const struct slow_oam_link_event_t
*)tptr
;
587 if (tlv
.slow_oam_link_event
->event_length
!=
588 sizeof(struct slow_oam_link_event_t
)) {
589 ND_PRINT((ndo
, "\n\t ERROR: illegal length - should be %lu",
590 (unsigned long) sizeof(struct slow_oam_link_event_t
)));
594 ND_PRINT((ndo
, "\n\t Timestamp %u ms, Errored Window %" PRIu64
595 "\n\t Errored Threshold %" PRIu64
596 "\n\t Errors %" PRIu64
597 "\n\t Error Running Total %" PRIu64
598 "\n\t Event Running Total %u",
599 EXTRACT_16BITS(&tlv
.slow_oam_link_event
->time_stamp
)*100,
600 EXTRACT_64BITS(&tlv
.slow_oam_link_event
->window
),
601 EXTRACT_64BITS(&tlv
.slow_oam_link_event
->threshold
),
602 EXTRACT_64BITS(&tlv
.slow_oam_link_event
->errors
),
603 EXTRACT_64BITS(&tlv
.slow_oam_link_event
->errors_running_total
),
604 EXTRACT_32BITS(&tlv
.slow_oam_link_event
->event_running_total
)));
607 case SLOW_OAM_LINK_EVENT_ORG_SPECIFIC
:
616 /* infinite loop check */
617 if (!ptr
.slow_oam_tlv_header
->length
) {
621 /* do we also want to see a hex dump ? */
622 if (ndo
->ndo_vflag
> 1 || hexdump
==TRUE
) {
623 print_unknown_data(ndo
, tptr
, "\n\t ",
624 ptr
.slow_oam_tlv_header
->length
);
627 tlen
-= ptr
.slow_oam_tlv_header
->length
;
628 tptr
+= ptr
.slow_oam_tlv_header
->length
;
632 case SLOW_OAM_CODE_LOOPBACK_CTRL
:
633 tlv
.slow_oam_loopbackctrl
= (const struct slow_oam_loopbackctrl_t
*)tptr
;
634 ND_PRINT((ndo
, "\n\t Command %s (%u)",
635 tok2str(slow_oam_loopbackctrl_cmd_values
,
637 tlv
.slow_oam_loopbackctrl
->command
),
638 tlv
.slow_oam_loopbackctrl
->command
));
644 * FIXME those are the defined codes that lack a decoder
645 * you are welcome to contribute code ;-)
647 case SLOW_OAM_CODE_VAR_REQUEST
:
648 case SLOW_OAM_CODE_VAR_RESPONSE
:
649 case SLOW_OAM_CODE_PRIVATE
:
651 if (ndo
->ndo_vflag
<= 1) {
652 print_unknown_data(ndo
, tptr
, "\n\t ", tlen
);