#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.53 2002-07-19 09:34:05 hannes Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.54 2002-07-19 10:10:34 hannes Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
u_char version; /* Protocol version? */
u_char id_length;
u_char pdu_type; /* 3 MSbs are reserved */
- u_char pkt_version; /* Packet format version? */
+ u_char pdu_version; /* Packet format version? */
u_char reserved;
u_char max_area;
};
dst = p; p += *p + 1;
if (p > snapend)
return;
- printf("\n\t\t\t %s", isonsap_string(dst));
+ printf("\n\t\t %s", isonsap_string(dst));
snpa = p; p += *p + 1;
is = p; p += *p + 1;
if (p > snapend)
if (p > snapend)
return;
if (!qflag)
- printf("\n\t\t\t %s", isonsap_string(is));
+ printf("\n\t\t %s", isonsap_string(is));
li = ep - p;
break;
}
ISIS_LSP_TLV_METRIC_VALUE(isis_metric_block->metric_default),
ISIS_LSP_TLV_METRIC_IE(isis_metric_block->metric_default) ? "External" : "Internal");
if (!ISIS_LSP_TLV_METRIC_SUPPORTED(isis_metric_block->metric_delay))
- printf("\n\t\t\t Delay Metric: %d, %s",
+ printf("\n\t\t Delay Metric: %d, %s",
ISIS_LSP_TLV_METRIC_VALUE(isis_metric_block->metric_delay),
ISIS_LSP_TLV_METRIC_IE(isis_metric_block->metric_delay) ? "External" : "Internal");
if (!ISIS_LSP_TLV_METRIC_SUPPORTED(isis_metric_block->metric_expense))
- printf("\n\t\t\t Expense Metric: %d, %s",
+ printf("\n\t\t Expense Metric: %d, %s",
ISIS_LSP_TLV_METRIC_VALUE(isis_metric_block->metric_expense),
ISIS_LSP_TLV_METRIC_IE(isis_metric_block->metric_expense) ? "External" : "Internal");
if (!ISIS_LSP_TLV_METRIC_SUPPORTED(isis_metric_block->metric_error))
- printf("\n\t\t\t Error Metric: %d, %s",
+ printf("\n\t\t Error Metric: %d, %s",
ISIS_LSP_TLV_METRIC_VALUE(isis_metric_block->metric_error),
ISIS_LSP_TLV_METRIC_IE(isis_metric_block->metric_error) ? "External" : "Internal");
* lets dump the mask, otherwise print the prefix_len
*/
if (prefix_len == 34)
- printf("\n\t\t\tIPv4 prefix: %s mask %s",
+ printf("\n\t\tIPv4 prefix: %s mask %s",
ipaddr_string((tlv_ip_reach->prefix)),
ipaddr_string((tlv_ip_reach->mask)));
else
- printf("\n\t\t\tIPv4 prefix: %s/%u",
+ printf("\n\t\tIPv4 prefix: %s/%u",
ipaddr_string((tlv_ip_reach->prefix)),
prefix_len);
- printf("\n\t\t\t Default Metric: %02d, %s, Distribution: %s",
+ printf("\n\t\t Default Metric: %02d, %s, Distribution: %s",
ISIS_LSP_TLV_METRIC_VALUE(tlv_ip_reach->isis_metric_block.metric_default),
ISIS_LSP_TLV_METRIC_IE(tlv_ip_reach->isis_metric_block.metric_default) ? "External" : "Internal",
ISIS_LSP_TLV_METRIC_UPDOWN(tlv_ip_reach->isis_metric_block.metric_default) ? "down" : "up");
if (!ISIS_LSP_TLV_METRIC_SUPPORTED(tlv_ip_reach->isis_metric_block.metric_delay))
- printf("\n\t\t\t Delay Metric: %02d, %s",
+ printf("\n\t\t Delay Metric: %02d, %s",
ISIS_LSP_TLV_METRIC_VALUE(tlv_ip_reach->isis_metric_block.metric_delay),
ISIS_LSP_TLV_METRIC_IE(tlv_ip_reach->isis_metric_block.metric_delay) ? "External" : "Internal");
if (!ISIS_LSP_TLV_METRIC_SUPPORTED(tlv_ip_reach->isis_metric_block.metric_expense))
- printf("\n\t\t\t Expense Metric: %02d, %s",
+ printf("\n\t\t Expense Metric: %02d, %s",
ISIS_LSP_TLV_METRIC_VALUE(tlv_ip_reach->isis_metric_block.metric_expense),
ISIS_LSP_TLV_METRIC_IE(tlv_ip_reach->isis_metric_block.metric_expense) ? "External" : "Internal");
if (!ISIS_LSP_TLV_METRIC_SUPPORTED(tlv_ip_reach->isis_metric_block.metric_error))
- printf("\n\t\t\t Error Metric: %02d, %s",
+ printf("\n\t\t Error Metric: %02d, %s",
ISIS_LSP_TLV_METRIC_VALUE(tlv_ip_reach->isis_metric_block.metric_error),
ISIS_LSP_TLV_METRIC_IE(tlv_ip_reach->isis_metric_block.metric_error) ? "External" : "Internal");
lf,
subt,
subl);
- if(!print_unknown_data(tptr,"\n\t\t\t ",
+ if(!print_unknown_data(tptr,"\n\t\t ",
subl))
return(0);
break;
/* there is some optional stuff left to decode but this is as of yet
not specified so just lets hexdump what is left */
if(subl>0){
- if(!print_unknown_data(tptr,"\n\t\t\t ",
+ if(!print_unknown_data(tptr,"\n\t\t ",
subl-36))
return(0);
}
lf,
subt,
subl);
- if(!print_unknown_data(tptr,"\n\t\t\t ",
+ if(!print_unknown_data(tptr,"\n\t\t ",
subl))
return(0);
break;
return (0);
}
- if (header->pkt_version != ISIS_VERSION) {
- printf(", version %d packet not supported", header->pkt_version);
+ if (header->pdu_version != ISIS_VERSION) {
+ printf(", version %d packet not supported", header->pdu_version);
return (0);
}
break;
}
- printf(", hlen: %u, v: %u, sys-id-len: %u (%u), max-area: %u (%u)",
+ printf("\n\thlen: %u, v: %u, pdu-v: %u, sys-id-len: %u (%u), max-area: %u (%u)",
header->fixed_len,
header->version,
+ header->pdu_version,
id_length,
header->id_length,
max_area,
}
TCHECK(*header_iih_lan);
- printf("\n\t\t source-id: %s, holding time: %u, %s",
+ printf("\n\t source-id: %s, holding time: %u, %s",
isis_print_sysid(header_iih_lan->source_id,SYSTEM_ID_LEN),
EXTRACT_16BITS(header_iih_lan->holding_time),
tok2str(isis_iih_circuit_type_values,
"unknown circuit type 0x%02x",
header_iih_lan->circuit_type));
- printf("\n\t\t lan-id: %s, Priority: %u, PDU length: %u",
+ printf("\n\t lan-id: %s, Priority: %u, PDU length: %u",
isis_print_nodeid(header_iih_lan->lan_id),
(header_iih_lan->priority) & PRIORITY_MASK,
pdu_len);
}
TCHECK(*header_iih_ptp);
- printf("\n\t\t source-id: %s, holding time: %us, circuit-id: 0x%02x, %s, PDU length: %u",
+ printf("\n\t source-id: %s, holding time: %us, circuit-id: 0x%02x, %s, PDU length: %u",
isis_print_sysid(header_iih_ptp->source_id,SYSTEM_ID_LEN),
EXTRACT_16BITS(header_iih_ptp->holding_time),
header_iih_ptp->circuit_id,
}
TCHECK(*header_lsp);
- printf("\n\t\t lsp-id: %s, seq: 0x%08x, lifetime: %5us",
+ printf("\n\t lsp-id: %s, seq: 0x%08x, lifetime: %5us",
isis_print_lspid(header_lsp->lsp_id),
EXTRACT_32BITS(header_lsp->sequence_number),
EXTRACT_16BITS(header_lsp->remaining_lifetime));
/* verify the checksum -
* checking starts at the lsp-id field
* which is 12 bytes after the packet start*/
- printf("\n\t\t chksum: 0x%04x (%s), PDU length: %u",
+ printf("\n\t chksum: 0x%04x (%s), PDU length: %u",
EXTRACT_16BITS(header_lsp->checksum),
(osi_cksum(optr+12, length-12)) ? "incorrect" : "correct",
pdu_len);
}
TCHECK(*header_csnp);
- printf("\n\t\t source-id: %s, PDU length: %u",
+ printf("\n\t source-id: %s, PDU length: %u",
isis_print_nodeid(header_csnp->source_id),
pdu_len);
- printf("\n\t\t start lsp-id: %s",
+ printf("\n\t start lsp-id: %s",
isis_print_lspid(header_csnp->start_lsp_id));
- printf("\n\t\t end lsp-id: %s",
+ printf("\n\t end lsp-id: %s",
isis_print_lspid(header_csnp->end_lsp_id));
packet_len -= (ISIS_COMMON_HEADER_SIZE+ISIS_CSNP_HEADER_SIZE);
}
TCHECK(*header_psnp);
- printf("\n\t\t source-id: %s",
+ printf("\n\t source-id: %s",
isis_print_nodeid(header_psnp->source_id));
packet_len -= (ISIS_COMMON_HEADER_SIZE+ISIS_PSNP_HEADER_SIZE);
break;
default:
- if(!print_unknown_data(pptr,"\n\t\t ",length))
+ if(!print_unknown_data(pptr,"\n\t ",length))
return(0);
return (0);
}
}
if (!TTEST2(*pptr, 2)) {
- printf("\n\t\t\t packet exceeded snapshot (%ld) bytes",
+ printf("\n\t\t packet exceeded snapshot (%ld) bytes",
(long)(pptr-snapend));
return (1);
}
}
/* first lets see if we know the TLVs name*/
- printf("\n\t\t %s TLV #%u, length: %u",
+ printf("\n\t %s TLV #%u, length: %u",
tok2str(isis_tlv_values,
"unknown",
type),
goto trunctlv;
alen = *tptr++;
while (tmp && alen < tmp) {
- printf("\n\t\t\tArea address (%u): %s",
+ printf("\n\t\tArea address (%u): %s",
alen,
print_nsap(tptr, alen));
tptr += alen;
while (tmp >= ETHER_ADDR_LEN) {
if (!TTEST2(*tptr, ETHER_ADDR_LEN))
goto trunctlv;
- printf("\n\t\t\tIS Neighbor: %s",isis_print_sysid(tptr,ETHER_ADDR_LEN));
+ printf("\n\t\tIS Neighbor: %s",isis_print_sysid(tptr,ETHER_ADDR_LEN));
tmp -= ETHER_ADDR_LEN;
tptr += ETHER_ADDR_LEN;
}
goto trunctlv;
lan_alen = *tptr++; /* LAN adress length */
tmp --;
- printf("\n\t\t\tLAN address length %u bytes ",lan_alen);
+ printf("\n\t\tLAN address length %u bytes ",lan_alen);
while (tmp >= lan_alen) {
if (!TTEST2(*tptr, lan_alen))
goto trunctlv;
- printf("\n\t\t\tIS Neighbor: %s",isis_print_sysid(tptr,lan_alen));
+ printf("\n\t\tIS Neighbor: %s",isis_print_sysid(tptr,lan_alen));
tmp -= lan_alen;
tptr +=lan_alen;
}
while (tmp>0) {
if (!TTEST2(*tptr, 2))
goto trunctlv;
- printf("\n\t\t\t%s",
+ printf("\n\t\t%s",
tok2str(isis_mt_values,
"Reserved for IETF Consensus",
ISIS_MASK_MTID(EXTRACT_16BITS(tptr))));
tptr+=2;
if (!TTEST2(*tptr, NODE_ID_LEN))
goto trunctlv;
- printf("\n\t\t\t IS Neighbor: %s", isis_print_nodeid(tptr));
+ printf("\n\t\t IS Neighbor: %s", isis_print_nodeid(tptr));
tptr+=(NODE_ID_LEN);
if (!TTEST2(*tptr, 3))
goto trunctlv;
goto trunctlv;
subt=*(tptr++);
subl=*(tptr++);
- if(!isis_print_is_reach_subtlv(tptr,subt,subl,"\n\t\t\t "))
+ if(!isis_print_is_reach_subtlv(tptr,subt,subl,"\n\t\t "))
return(0);
tptr+=subl;
tslen-=(subl+2);
while (tmp>0) {
if (!TTEST2(*tptr, NODE_ID_LEN))
goto trunctlv;
- printf("\n\t\t\tIS Neighbor: %s", isis_print_nodeid(tptr));
+ printf("\n\t\tIS Neighbor: %s", isis_print_nodeid(tptr));
tptr+=(NODE_ID_LEN);
if (!TTEST2(*tptr, 3))
goto trunctlv;
subt=*(tptr++);
subl=*(tptr++);
- if(!isis_print_is_reach_subtlv(tptr,subt,subl,"\n\t\t\t "))
+ if(!isis_print_is_reach_subtlv(tptr,subt,subl,"\n\t\t "))
return(0);
tptr+=subl;
tslen-=(subl+2);
case TLV_IS_REACH:
if (!TTEST2(*tptr,1)) /* check if there is one byte left to read out the virtual flag */
goto trunctlv;
- printf("\n\t\t\t%s",
+ printf("\n\t\t%s",
tok2str(isis_is_reach_virtual_values,
"bogus virtual flag 0x%02x",
*tptr++));
while (tmp >= sizeof(struct isis_tlv_is_reach)) {
if (!TTEST(*tlv_is_reach))
goto trunctlv;
- printf("\n\t\t\tIS Neighbor: %s", isis_print_nodeid(tlv_is_reach->neighbor_nodeid));
+ printf("\n\t\tIS Neighbor: %s", isis_print_nodeid(tlv_is_reach->neighbor_nodeid));
isis_print_metric_block(&tlv_is_reach->isis_metric_block);
tmp -= sizeof(struct isis_tlv_is_reach);
tlv_is_reach++;
while (tmp >= sizeof(struct isis_tlv_es_reach)) {
if (!TTEST(*tlv_es_reach))
goto trunctlv;
- printf("\n\t\t\tES Neighbor: %s",
+ printf("\n\t\tES Neighbor: %s",
isis_print_sysid(tlv_es_reach->neighbor_sysid,SYSTEM_ID_LEN));
isis_print_metric_block(&tlv_es_reach->isis_metric_block);
tmp -= sizeof(struct isis_tlv_es_reach);
if (!TTEST2(*tptr, 2))
goto trunctlv;
- printf("\n\t\t\t%s",
+ printf("\n\t\t%s",
tok2str(isis_mt_values,
"Reserved for IETF Consensus",
ISIS_MASK_MTID(EXTRACT_16BITS(tptr))));
return (1);
memcpy(prefix,tptr,byte_length);
tptr+=byte_length;
- printf("\n\t\t\tIPv4 prefix: %s/%d",
+ printf("\n\t\tIPv4 prefix: %s/%d",
ipaddr_string(prefix),
bit_length);
- printf("\n\t\t\t Metric: %u, Distribution: %s",
+ printf("\n\t\t Metric: %u, Distribution: %s",
metric,
ISIS_MASK_TLV_EXT_IP_UPDOWN(j) ? "down" : "up");
goto trunctlv;
subt=*(tptr++);
subl=*(tptr++);
- if(!isis_print_ip_reach_subtlv(tptr,subt,subl,"\n\t\t\t "))
+ if(!isis_print_ip_reach_subtlv(tptr,subt,subl,"\n\t\t "))
return(0);
tptr+=subl;
tslen-=(subl+2);
return (1);
memcpy(prefix,tptr,byte_length);
tptr+=byte_length;
- printf("\n\t\t\tIPv4 prefix: %s/%d",
+ printf("\n\t\tIPv4 prefix: %s/%d",
ipaddr_string(prefix),
bit_length);
- printf("\n\t\t\t Metric: %u, Distribution: %s",
+ printf("\n\t\t Metric: %u, Distribution: %s",
metric,
ISIS_MASK_TLV_EXT_IP_UPDOWN(j) ? "down" : "up");
goto trunctlv;
subt=*(tptr++);
subl=*(tptr++);
- if(!isis_print_ip_reach_subtlv(tptr,subt,subl,"\n\t\t\t "))
+ if(!isis_print_ip_reach_subtlv(tptr,subt,subl,"\n\t\t "))
return(0);
tptr+=subl;
tslen-=(subl+2);
memset(prefix6, 0, 16);
memcpy(prefix6,tptr,byte_length);
tptr+=byte_length;
- printf("\n\t\t\tIPv6 prefix: %s/%u",
+ printf("\n\t\tIPv6 prefix: %s/%u",
ip6addr_string(prefix6),
bit_length);
- printf("\n\t\t\t Metric: %u, %s, Distribution: %s, %ssub-TLVs present",
+ printf("\n\t\t Metric: %u, %s, Distribution: %s, %ssub-TLVs present",
metric,
ISIS_MASK_TLV_IP6_IE(j) ? "External" : "Internal",
ISIS_MASK_TLV_IP6_UPDOWN(j) ? "down" : "up",
goto trunctlv;
subt=*(tptr++);
subl=*(tptr++);
- if(!isis_print_ip_reach_subtlv(tptr,subt,subl,"\n\t\t\t "))
+ if(!isis_print_ip_reach_subtlv(tptr,subt,subl,"\n\t\t "))
return(0);
tptr+=subl;
tslen-=(subl+2);
if (!TTEST2(*tptr, 16))
goto trunctlv;
- printf("\n\t\t\tIPv6 interface address: %s",
+ printf("\n\t\tIPv6 interface address: %s",
ip6addr_string(tptr));
tptr += 16;
if (!TTEST2(*tptr, 1))
goto trunctlv;
- printf("\n\t\t\t%s: ",
+ printf("\n\t\t%s: ",
tok2str(isis_subtlv_auth_values,
"unknown Authentication type 0x%02x",
*tptr));
break;
case SUBTLV_AUTH_PRIVATE:
default:
- if(!print_unknown_data(tptr+1,"\n\t\t\t ",len-1))
+ if(!print_unknown_data(tptr+1,"\n\t\t ",len-1))
return(0);
break;
}
if(tmp>=1) {
if (!TTEST2(*tptr, 1))
goto trunctlv;
- printf("\n\t\t\tAdjacency State: %s",
+ printf("\n\t\tAdjacency State: %s",
tok2str(isis_ptp_adjancey_values, "0x%02x", *tptr));
tmp--;
}
if (!TTEST2(tlv_ptp_adj->extd_local_circuit_id,
sizeof(tlv_ptp_adj->extd_local_circuit_id)))
goto trunctlv;
- printf("\n\t\t\tExtended Local circuit ID: 0x%08x",
+ printf("\n\t\tExtended Local circuit ID: 0x%08x",
EXTRACT_32BITS(tlv_ptp_adj->extd_local_circuit_id));
tmp-=sizeof(tlv_ptp_adj->extd_local_circuit_id);
}
if(tmp>=SYSTEM_ID_LEN) {
if (!TTEST2(tlv_ptp_adj->neighbor_sysid, SYSTEM_ID_LEN))
goto trunctlv;
- printf("\n\t\t\tNeighbor SystemID: %s",
+ printf("\n\t\tNeighbor SystemID: %s",
isis_print_sysid(tlv_ptp_adj->neighbor_sysid,SYSTEM_ID_LEN));
tmp-=SYSTEM_ID_LEN;
}
if (!TTEST2(tlv_ptp_adj->neighbor_extd_local_circuit_id,
sizeof(tlv_ptp_adj->neighbor_extd_local_circuit_id)))
goto trunctlv;
- printf("\n\t\t\tNeighbor Extended Local circuit ID: 0x%08x",
+ printf("\n\t\tNeighbor Extended Local circuit ID: 0x%08x",
EXTRACT_32BITS(tlv_ptp_adj->neighbor_extd_local_circuit_id));
}
break;
case TLV_PROTOCOLS:
- printf("\n\t\t\tNLPID(s): ");
+ printf("\n\t\tNLPID(s): ");
while (tmp>0) {
if (!TTEST2(*(tptr), 1))
goto trunctlv;
case TLV_TE_ROUTER_ID:
if (!TTEST2(*pptr, 4))
goto trunctlv;
- printf("\n\t\t\tTraffic Engineering Router ID: %s", ipaddr_string(pptr));
+ printf("\n\t\tTraffic Engineering Router ID: %s", ipaddr_string(pptr));
break;
case TLV_IPADDR:
while (tmp>0) {
if (!TTEST2(*tptr, 4))
goto trunctlv;
- printf("\n\t\t\tIPv4 interface address: %s", ipaddr_string(tptr));
+ printf("\n\t\tIPv4 interface address: %s", ipaddr_string(tptr));
tptr += 4;
tmp -= 4;
}
break;
case TLV_HOSTNAME:
- printf("\n\t\t\tHostname: ");
+ printf("\n\t\tHostname: ");
while (tmp>0) {
if (!TTEST2(*tptr, 1))
goto trunctlv;
case TLV_SHARED_RISK_GROUP:
if (!TTEST2(*tptr, NODE_ID_LEN))
goto trunctlv;
- printf("\n\t\t\tIS Neighbor: %s", isis_print_nodeid(tptr));
+ printf("\n\t\tIS Neighbor: %s", isis_print_nodeid(tptr));
tptr+=(NODE_ID_LEN);
len-=(NODE_ID_LEN);
if (!TTEST2(*tptr,4))
goto trunctlv;
- printf("\n\t\t\tIPv4 interface address: %s", ipaddr_string(tptr));
+ printf("\n\t\tIPv4 interface address: %s", ipaddr_string(tptr));
tptr+=4;
len-=4;
if (!TTEST2(*tptr,4))
goto trunctlv;
- printf("\n\t\t\tIPv4 neighbor address: %s", ipaddr_string(tptr));
+ printf("\n\t\tIPv4 neighbor address: %s", ipaddr_string(tptr));
tptr+=4;
len-=4;
while (tmp>0) {
if (!TTEST2(*tptr, 4))
goto trunctlv;
- printf("\n\t\t\tLink-ID: 0x%08x", EXTRACT_32BITS(tptr));
+ printf("\n\t\tLink-ID: 0x%08x", EXTRACT_32BITS(tptr));
tptr+=4;
len-=4;
}
case TLV_LSP:
tlv_lsp = (const struct isis_tlv_lsp *)tptr;
while(tmp>0) {
- printf("\n\t\t\tlsp-id: %s",
+ printf("\n\t\tlsp-id: %s",
isis_print_nodeid(tlv_lsp->lsp_id));
if (!TTEST((tlv_lsp->lsp_id)[NODE_ID_LEN]))
goto trunctlv;
case TLV_CHECKSUM:
if (!TTEST2(*tptr, 2))
goto trunctlv;
- printf("\n\t\t\tchecksum: 0x%04x (%s)",
+ printf("\n\t\tchecksum: 0x%04x (%s)",
EXTRACT_16BITS(tptr),
(osi_cksum(optr, length)) ? "incorrect" : "correct");
break;
if (tmp!=1) {
if (!TTEST2(*tptr, 2))
goto trunctlv;
- printf("\n\t\t\t%s",
+ printf("\n\t\t%s",
tok2str(isis_mt_values,
"Reserved for IETF Consensus",
ISIS_MASK_MTID(EXTRACT_16BITS(tptr))));
ISIS_MASK_MTSUB(EXTRACT_16BITS(tptr)) ? "" : ", no sub-TLVs present",
ISIS_MASK_MTATT(EXTRACT_16BITS(tptr)) ? ", ATT bit set" : "" );
} else {
- printf("\n\t\t\tmalformed MT-ID");
+ printf("\n\t\tmalformed MT-ID");
break;
}
tmp-=2;
ra = ISIS_MASK_TLV_RESTART_RA(*tptr);
tptr++;
time_remain = EXTRACT_16BITS(tptr);
- printf("\n\t\t\tRestart Request bit %s, Restart Acknowledgement bit %s\n\t\t\tRemaining holding time: %us",
+ printf("\n\t\tRestart Request bit %s, Restart Acknowledgement bit %s\n\t\tRemaining holding time: %us",
rr ? "set" : "clear", ra ? "set" : "clear", time_remain);
break;
case TLV_IDRP_INFO:
if (!TTEST2(*tptr, 1))
goto trunctlv;
- printf("\n\t\t\tInter-Domain Information Type: %s",
+ printf("\n\t\tInter-Domain Information Type: %s",
tok2str(isis_subtlv_idrp_values,
"Unknown (0x%02x)",
*tptr));
case SUBTLV_IDRP_LOCAL:
case SUBTLV_IDRP_RES:
default:
- if(!print_unknown_data(tptr,"\n\t\t\t",len-1))
+ if(!print_unknown_data(tptr,"\n\t\t",len-1))
return(0);
break;
}
tmp--;
if (!TTEST2(*tptr, prefix_len/2))
goto trunctlv;
- printf("\n\t\t\tAddress: %s/%u",
+ printf("\n\t\tAddress: %s/%u",
print_nsap(tptr,prefix_len/2),
prefix_len*4);
tptr+=prefix_len/2;
case TLV_MT_IP6_REACH:
default:
- if(!print_unknown_data(pptr,"\n\t\t\t",len))
+ if(!print_unknown_data(pptr,"\n\t\t",len))
return(0);
break;
}
}
if (packet_len != 0) {
- printf("\n\t\t\t %d straggler bytes", packet_len);
+ printf("\n\t\t %d straggler bytes", packet_len);
}
return (1);
return (1);
trunctlv:
- printf("\n\t\t\t packet exceeded snapshot");
+ printf("\n\t\t packet exceeded snapshot");
return(1);
}