changeset:   7814:77c4fd62a3bc
user:        Gary Lee <[email protected]>
date:        Fri Jul 22 14:03:37 2016 +1000
summary:     base: do not assume SaNameT is null terminated in 
osaf_encode_sanamet [#1674]


---

** [tickets:#1674] leap: add support for encode & decode of long DN**

**Status:** fixed
**Milestone:** 5.1.FC
**Created:** Mon Feb 01, 2016 09:27 AM UTC by Gary Lee
**Last Updated:** Fri Jul 15, 2016 07:45 AM UTC
**Owner:** Gary Lee


Currently, ncs_edp_sanamet encodes a string by storing the length in 2 bytes, 
followed by a fixed array of SA_MAX_NAME_LENGTH characters. This function, 
osaf_decode_sanamet() and osaf_encode_sanamet() need to be enhanced to support 
long DNs.

One proposal is:

if length < SA_MAX_NAME_LENGTH, encode as present
if length >= SA_MAX_NAME_LENGTH, encode as a variable string like ncs_edp_string

On the decode side, one can tell from the length (2 bytes) which encoding 
scheme is used.
This should allow compatibility with older releases.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to