The MPLS WG Archive

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



[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: George Swallow <swallow@cisco.com>
  • Date: Thu, 15 May 2003 17:22:11 -0400
  • cc: mpls@UU.NET, swallow@cisco.com

>     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