Skip to content

Commit a69daba

Browse files
Update README.md
Only 0 value makes the TLV subtype to be ignored
1 parent 63cfea0 commit a69daba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You shall not pass your `pp_info_t` variable to `pp_parse()` again without first
1818
To extract TLVs' values it is strongly suggested that you use `pp_info_get_tlv_value()` with the following parameters:
1919
* `pp_info_t *pp_info`: The `pp_info_t` used in the `pp_parse()`
2020
* `uint8_t type`: The type of the TLV you are looking for as per the specification e.g. PP2_TYPE_AWS, PP2_TYPE_AZURE etc.
21-
* `uint8_t subtype`: The subtype of the TLV you are looking for (in case it is needed or just a value <= 0 to be ignored) as per the specification e.g. PP2_SUBTYPE_AWS_VPCE_ID, PP2_SUBTYPE_AZURE_PRIVATEENDPOINT_LINKID
21+
* `uint8_t subtype`: The subtype of the TLV you are looking for (in case it is needed else 0 to get it ignored) as per the specification e.g. PP2_SUBTYPE_AWS_VPCE_ID, PP2_SUBTYPE_AZURE_PRIVATEENDPOINT_LINKID
2222
* `uint16_t *value_len_out`: The length of the value so that applications can copy and use the value properly
2323
* `return value: uint8_t *`: Pointer to the value. In case the value is a string e.g. PP2_TYPE_AWS-PP2_SUBTYPE_AWS_VPCE_ID thenthe buffer is NULL terminated so that it can be used directly for string operations like `strcmp()` etc. **Do not manipulate these data in any way, rather make copies of them if you need to modify them.**
2424

0 commit comments

Comments
 (0)