Skip to content

Use a five-octet port-id in the hkep test SDP - #557

Open
garethsb wants to merge 1 commit into
sony:masterfrom
garethsb:bugfix/hkep-port-id
Open

garethsb wants to merge 1 commit into
sony:masterfrom
garethsb:bugfix/hkep-port-id

Conversation

@garethsb

Copy link
Copy Markdown
Contributor

The hkep test SDP in sdp_test.cpp used a six-octet port-id, 01-02-03-04-05-06, which is the form of the IS-04 interface port_id. VSF TR-10-5:2026 Section 10 specifies the <port-id> of the hkep attribute as "a sequence of 10 hexadecimal digits formatted as xx-xx-xx-xx-xx", and Section 12.4.2 gives the PortId 5 bytes in the AKE_PreInit message. The 2024 edition says the same. The test now uses 01-02-03-04-05.

Only the test data changes. make_hkep, parse_hkep and the SDP grammar pass port_id through as a string without checking its form, and no example code generates or parses hkep.

Found while adding SDP attribute checks to sdpoker in AMWA-TV/sdpoker#105.

Co-authored-by: Gareth's 🤖 buddy

VSF TR-10-5 Section 10 specifies the port-id of the 'hkep' attribute
as 10 hexadecimal digits, of the form xx-xx-xx-xx-xx, and Section
12.4.2 gives the PortId 5 bytes in the AKE_PreInit message. The test
SDP used the six-octet form of the IS-04 interface port_id, which is a
different identifier.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant