The MPLS WG Archive

Cell Relay Retreat>MPLS WG Archive>month:2003-May> msg00062



[Date Prev][Date Next][Thread Prev][Thread Next]  
  [Date Index][Thread Index][Author Index][Subject Index]

Question regarding null padding session name in RSVP-TE Att obj

  • From: "Jiang, Donghua (Jane)" <djiang1@lucent.com>
  • Date: Fri, 16 May 2003 08:51:42 -0400
  • Cc: mpls@UU.NET

George,

2) Should we use the Name Length to decide where the end of the Session Name is, rather than checking on whether the character is printable or not?

Thanks,
Jane


-----Original Message-----
From: George Swallow [mailto:swallow@cisco.com]
Sent: Thursday, May 15, 2003 5:22 PM
To: Ling Yan
Cc: mpls@UU.NET; swallow@cisco.com
Subject: Re: Question regarding null padding session name in RSVP-TE Att
obj 


>     I have a simple question regarding null padding to the session name
> to make it to be a multiple of 4 and at least 8 in RSVP-TE attribute
> object. It is really appreciated if someone can help to clarify it.
> Thanks in advance.
> 
> If the string length is exactly a multiple of 4 and greater than 8
> without counting null padding or null terminate character, --
> 1) is it required to add at least null terminated char to indicate the
> string termination?

No.  But it would not be illegal to add a multiple of 4 nulls.  But
optimally you should only add 0-3 nulls.

> 2) is it required to check at the receiver whether the session name is
> null terminated or not?

Only to find the end of the string.  I.e. if the last char is
printable it should pass.

...George

========================================================================
George Swallow             Cisco Systems                  (978) 936-1398
                           1414 Massachusetts Avenue
                           Boxborough, MA 01719