Changeset 6f7dcb0


Ignore:
Timestamp:
10/12/06 15:47:06 (14 years ago)
Author:
Perry Lorier <perry@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
c6fed13
Parents:
bf0f554
Message:

Fix some warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/ip_132.c

    r0a22046 r6f7dcb0  
    3636} __attribute__((__packed__));
    3737
    38 // The following works for INIT and INIT ACK packets
     38/* The following works for INIT and INIT ACK packets */
    3939struct sctp_init_ack
    4040{
     
    156156    struct sctp_chunk_hdr *chunk;
    157157    int chunk_num = 1;
     158    int vlen;
    158159
    159160    if(len < (signed)sizeof(struct sctp_common_hdr)) {
     
    186187
    187188        switch(chunk->type) {
    188             case 0: // DATA
     189            case 0: /* DATA */
    189190            {
    190191                struct sctp_data *data = (struct sctp_data *)(chunk + 1);
     
    197198            }
    198199            break;
    199             case 1: // INIT and
    200             case 2: // INIT ACK packets have the same structure
    201             {
    202                 // INIT ACK
     200            case 1: /* INIT and  */
     201            case 2: /* INIT ACK packets have the same structure */
     202            {
     203                /* INIT ACK */
    203204                struct sctp_init_ack *ack = (struct sctp_init_ack *)
    204205                    (chunk + 1);
     
    212213                        ntohl(ack->init_tsn));
    213214
    214                 int vlen = chunk->length - (sizeof(struct sctp_init_ack) +
     215                vlen = chunk->length - (sizeof(struct sctp_init_ack) +
    215216                        sizeof(struct sctp_chunk_hdr) +
    216217                        sizeof(struct sctp_common_hdr)
     
    220221            }
    221222            break;
    222             case 3: // SACK
     223            case 3: /* SACK */
    223224            {
    224225                struct sctp_sack *sack = (struct sctp_sack *)(chunk + 1);
Note: See TracChangeset for help on using the changeset viewer.