const struct bfd_auth_header_t *bfd_auth_header;
int i;
- pptr += sizeof (const struct bfd_header_t);
+ pptr += sizeof (struct bfd_header_t);
bfd_auth_header = (const struct bfd_auth_header_t *)pptr;
ND_TCHECK(*bfd_auth_header);
ND_PRINT((ndo, "\n\tAuthentication: %s (%u), length: %u",
ND_PRINT((ndo, "\n\tFirst TLV offset %u", cfm_common_header->first_tlv_offset));
- tptr += sizeof(const struct cfm_common_header_t);
+ tptr += sizeof(struct cfm_common_header_t);
tlen = length - sizeof(struct cfm_common_header_t);
/*
eap->version,
EXTRACT_16BITS(eap->length)));
- tptr += sizeof(const struct eap_frame_t);
- tlen -= sizeof(const struct eap_frame_t);
+ tptr += sizeof(struct eap_frame_t);
+ tlen -= sizeof(struct eap_frame_t);
switch (eap->type) {
case EAP_FRAME_TYPE_PACKET:
EXTRACT_32BITS(&eigrp_com_header->asn),
tlen));
- tptr+=sizeof(const struct eigrp_common_header);
+ tptr+=sizeof(struct eigrp_common_header);
while(tlen>0) {
/* did we capture enough for fully decoding the object header ? */
isonsap_string(ndo, dest_address, dest_address_length)));
if (clnp_flags & CLNP_SEGMENT_PART) {
- if (li < sizeof(const struct clnp_segment_header_t)) {
+ if (li < sizeof(struct clnp_segment_header_t)) {
ND_PRINT((ndo, "li < size of fixed part of CLNP header, addresses, and segment part"));
return (0);
}
EXTRACT_16BITS(clnp_segment_header->data_unit_id),
EXTRACT_16BITS(clnp_segment_header->segment_offset),
EXTRACT_16BITS(clnp_segment_header->total_length)));
- pptr+=sizeof(const struct clnp_segment_header_t);
- li-=sizeof(const struct clnp_segment_header_t);
+ pptr+=sizeof(struct clnp_segment_header_t);
+ li-=sizeof(struct clnp_segment_header_t);
}
/* now walk the options */
}
pdu_len = EXTRACT_16BITS(&ldp_com_header->pdu_length);
- if (pdu_len < sizeof(const struct ldp_common_header)-4) {
+ if (pdu_len < sizeof(struct ldp_common_header)-4) {
/* length too short */
ND_PRINT((ndo, "%sLDP, pdu-length: %u (too short, < %u)",
(ndo->ndo_vflag < 1) ? "" : "\n\t",
pdu_len,
- (u_int)(sizeof(const struct ldp_common_header)-4)));
+ (u_int)(sizeof(struct ldp_common_header)-4)));
return 0;
}
return 0;
/* ok they seem to want to know everything - lets fully decode it */
- tptr = pptr + sizeof(const struct ldp_common_header);
- tlen = pdu_len - (sizeof(const struct ldp_common_header)-4); /* Type & Length fields not included */
+ tptr = pptr + sizeof(struct ldp_common_header);
+ tlen = pdu_len - (sizeof(struct ldp_common_header)-4); /* Type & Length fields not included */
while(tlen>0) {
/* did we capture enough for fully decoding the msg header ? */
tok2str(lmp_msg_type_values, "unknown, type: %u",lmp_com_header->msg_type),
bittok2str(lmp_header_flag_values,"none",lmp_com_header->flags),
tlen));
- if (tlen < sizeof(const struct lmp_common_header)) {
+ if (tlen < sizeof(struct lmp_common_header)) {
ND_PRINT((ndo, " (too short)"));
return;
}
tlen = len;
}
- tptr+=sizeof(const struct lmp_common_header);
- tlen-=sizeof(const struct lmp_common_header);
+ tptr+=sizeof(struct lmp_common_header);
+ tlen-=sizeof(struct lmp_common_header);
while(tlen>0) {
/* did we capture enough for fully decoding the object header ? */
tptr=pptr;
lspping_com_header = (const struct lspping_common_header *)pptr;
- if (len < sizeof(const struct lspping_common_header))
+ if (len < sizeof(struct lspping_common_header))
goto tooshort;
ND_TCHECK(*lspping_com_header);
else
ND_PRINT((ndo, "no timestamp"));
- tptr+=sizeof(const struct lspping_common_header);
- tlen-=sizeof(const struct lspping_common_header);
+ tptr+=sizeof(struct lspping_common_header);
+ tlen-=sizeof(struct lspping_common_header);
while (tlen != 0) {
/* Does the TLV go past the end of the packet? */
if (has_ap_ident) {
ND_PRINT((ndo, "\n\tAP identity: %s", etheraddr_string(ndo, tptr)));
- tptr+=sizeof(const struct lwapp_transport_header)+6;
+ tptr+=sizeof(struct lwapp_transport_header)+6;
} else {
- tptr+=sizeof(const struct lwapp_transport_header);
+ tptr+=sizeof(struct lwapp_transport_header);
}
while(tlen>0) {
lwapp_trans_header->frag_id,
tlen));
- tptr+=sizeof(const struct lwapp_transport_header);
- tlen-=sizeof(const struct lwapp_transport_header);
+ tptr+=sizeof(struct lwapp_transport_header);
+ tlen-=sizeof(struct lwapp_transport_header);
/* FIX - An IEEE 802.11 frame follows - hexdump for now */
print_unknown_data(ndo, tptr, "\n\t", tlen);
tptr=pptr;
mpcp.common_header = (const struct mpcp_common_header_t *)pptr;
- ND_TCHECK2(*tptr, sizeof(const struct mpcp_common_header_t));
+ ND_TCHECK2(*tptr, sizeof(struct mpcp_common_header_t));
opcode = EXTRACT_16BITS(mpcp.common_header->opcode);
ND_PRINT((ndo, "MPCP, Opcode %s", tok2str(mpcp_opcode_values, "Unknown (%u)", opcode)));
if (opcode != MPCP_OPCODE_PAUSE) {
if (!ndo->ndo_vflag)
return;
- tptr += sizeof(const struct mpcp_common_header_t);
+ tptr += sizeof(struct mpcp_common_header_t);
switch (opcode) {
case MPCP_OPCODE_PAUSE:
tptr++;
for (grant = 1; grant <= grant_numbers; grant++) {
- ND_TCHECK2(*tptr, sizeof(const struct mpcp_grant_t));
+ ND_TCHECK2(*tptr, sizeof(struct mpcp_grant_t));
mpcp.grant = (const struct mpcp_grant_t *)tptr;
ND_PRINT((ndo, "\n\tGrant #%u, Start-Time %u ticks, duration %u ticks",
grant,
EXTRACT_32BITS(mpcp.grant->starttime),
EXTRACT_16BITS(mpcp.grant->duration)));
- tptr += sizeof(const struct mpcp_grant_t);
+ tptr += sizeof(struct mpcp_grant_t);
}
ND_TCHECK2(*tptr, MPCP_TIMESTAMP_DURATION_LEN);
break;
case MPCP_OPCODE_REG_REQ:
- ND_TCHECK2(*tptr, sizeof(const struct mpcp_reg_req_t));
+ ND_TCHECK2(*tptr, sizeof(struct mpcp_reg_req_t));
mpcp.reg_req = (const struct mpcp_reg_req_t *)tptr;
ND_PRINT((ndo, "\n\tFlags [ %s ], Pending-Grants %u",
bittok2str(mpcp_reg_req_flag_values, "Reserved", mpcp.reg_req->flags),
break;
case MPCP_OPCODE_REG:
- ND_TCHECK2(*tptr, sizeof(const struct mpcp_reg_t));
+ ND_TCHECK2(*tptr, sizeof(struct mpcp_reg_t));
mpcp.reg = (const struct mpcp_reg_t *)tptr;
ND_PRINT((ndo, "\n\tAssigned-Port %u, Flags [ %s ]" \
"\n\tSync-Time %u ticks, Echoed-Pending-Grants %u",
break;
case MPCP_OPCODE_REG_ACK:
- ND_TCHECK2(*tptr, sizeof(const struct mpcp_reg_ack_t));
+ ND_TCHECK2(*tptr, sizeof(struct mpcp_reg_ack_t));
mpcp.reg_ack = (const struct mpcp_reg_ack_t *)tptr;
ND_PRINT((ndo, "\n\tEchoed-Assigned-Port %u, Flags [ %s ]" \
"\n\tEchoed-Sync-Time %u ticks",
}
if(rsvp_obj_len < sizeof(struct rsvp_object_header)) {
ND_PRINT((ndo, "%sERROR: object header too short %u < %lu", ident, rsvp_obj_len,
- (unsigned long)sizeof(const struct rsvp_object_header)));
+ (unsigned long)sizeof(struct rsvp_object_header)));
return -1;
}
rsvp_com_header->ttl,
EXTRACT_16BITS(rsvp_com_header->checksum)));
- if (tlen < sizeof(const struct rsvp_common_header)) {
+ if (tlen < sizeof(struct rsvp_common_header)) {
ND_PRINT((ndo, "ERROR: common header too short %u < %lu", tlen,
- (unsigned long)sizeof(const struct rsvp_common_header)));
+ (unsigned long)sizeof(struct rsvp_common_header)));
return;
}
- tptr+=sizeof(const struct rsvp_common_header);
- tlen-=sizeof(const struct rsvp_common_header);
+ tptr+=sizeof(struct rsvp_common_header);
+ tlen-=sizeof(struct rsvp_common_header);
switch(rsvp_com_header->msg_type) {
rsvp_com_header->ttl,
EXTRACT_16BITS(rsvp_com_header->checksum)));
- if (subtlen < sizeof(const struct rsvp_common_header)) {
+ if (subtlen < sizeof(struct rsvp_common_header)) {
ND_PRINT((ndo, "ERROR: common header too short %u < %lu", subtlen,
- (unsigned long)sizeof(const struct rsvp_common_header)));
+ (unsigned long)sizeof(struct rsvp_common_header)));
return;
}
return;
}
- subtptr+=sizeof(const struct rsvp_common_header);
- subtlen-=sizeof(const struct rsvp_common_header);
+ subtptr+=sizeof(struct rsvp_common_header);
+ subtlen-=sizeof(struct rsvp_common_header);
/*
* Print all objects in the submessage.
if (rsvp_obj_print(ndo, subpptr, subplen, subtptr, "\n\t ", subtlen, rsvp_com_header) == -1)
return;
- tptr+=subtlen+sizeof(const struct rsvp_common_header);
- tlen-=subtlen+sizeof(const struct rsvp_common_header);
+ tptr+=subtlen+sizeof(struct rsvp_common_header);
+ tlen-=subtlen+sizeof(struct rsvp_common_header);
}
break;
len));
/* skip Common header */
- tptr += sizeof(const struct sflow_datagram_t);
- tlen -= sizeof(const struct sflow_datagram_t);
+ tptr += sizeof(struct sflow_datagram_t);
+ tlen -= sizeof(struct sflow_datagram_t);
while (nsamples > 0 && tlen > 0) {
sflow_sample = (const struct sflow_sample_header *)tptr;
len));
/* skip VQP Common header */
- tptr+=sizeof(const struct vqp_common_header_t);
- tlen-=sizeof(const struct vqp_common_header_t);
+ tptr+=sizeof(struct vqp_common_header_t);
+ tlen-=sizeof(struct vqp_common_header_t);
while (nitems > 0 && tlen > 0) {