NSIS-ka
A free C++ implementation of NSIS protocols

Changeset 4591


Ignore:
Timestamp:
Oct 20, 2009, 2:09:20 PM (8 years ago)
Author:
roehricht
Message:
  • some nits mainly concerning the 5bitness of QSPECType field
Location:
qspec/branches/20091020-qspec-to-v21
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • qspec/branches/20091020-qspec-to-v21/include/qspec_pdu.h

    r4590 r4591  
    2626 */
    2727enum msg_sequence_t {
    28   ms_two_way_transactions          = 0,
    29   ms_sender_initiated_reservations = 0,
    30   ms_three_way_transactions          = 1,
    31   ms_receiver_initiated_reservations = 1,
    32   ms_resource_queries                = 2
     28        ms_two_way_transactions            = 0,
     29        ms_sender_initiated_reservations  = 0,
     30        ms_three_way_transactions          = 1,
     31        ms_receiver_initiated_reservations = 1,
     32        ms_resource_queries                = 2
    3333};
    3434
     
    5151
    5252        qspec_pdu();
    53         explicit qspec_pdu(qspec::msg_sequence_t msg_seq, uint8 obj_comb, uint8 qspec_type= 0, bool localQSPEC= false);
     53        explicit qspec_pdu(qspec::msg_sequence_t msg_seq, uint8 obj_comb, uint8 qspec_type = 0, bool localQSPEC = false);
    5454        explicit qspec_pdu(const qspec_pdu &other);
    5555
     
    117117         */
    118118        uint8 version;         // 4bit
    119         uint16 qspec_type;     // 4bit
     119        uint8 qspec_type;     // 5bit
    120120        uint8 msg_sequence;    // 4bit
    121121        uint8 obj_combination; // 4bit
  • qspec/branches/20091020-qspec-to-v21/src/qspec_pdu.cpp

    r4588 r4591  
    5858 * Only basic initialization is done. No QSPEC objects (QoS Desired etc.)
    5959 * exist yet. All other attributes are set to default values.
    60  * The qspec_type parameter must not be larger than 4 bit and is assigned by
     60 * The qspec_type parameter must not be larger than 5 bit and is assigned by
    6161 * IANA.
    6262 *
     
    6666 * @param msg_seq message sequence (4 bit)
    6767 * @param obj_comb object combination (4 bit)
    68  * @param qspec_type Identifies the particular type of QSPEC (4 bit), 0: Default
     68 * @param qspec_type Identifies the particular type of QSPEC (5 bit), 0: Default
    6969 * @param localQSPEC flag: local QSPEC (true) or initiator QSPEC (false), default=initiator QSPEC
    7070 */
     
    518518
    519519/**
    520  * Returns the QSPEC type ID. (4 bit)
     520 * Returns the QSPEC type ID. (5 bit)
    521521 *
    522522 * @return the QSPEC type ID.
     
    530530 * Set the QSPEC type ID.
    531531 *
    532  * @param id the QSPEC type ID (4 bit)
     532 * @param id the QSPEC type ID (5 bit)
    533533 */
    534534void qspec_pdu::set_qspec_type(uint8 id) {
Note: See TracChangeset for help on using the changeset viewer.