diff options
author | norly <ny-git@enpas.org> | 2019-02-24 04:35:59 +0100 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2019-02-24 04:35:59 +0100 |
commit | 8c73fd11fe9cac11ba2fdd657b84f845632af3d0 (patch) | |
tree | 103046069c53a18dce2a2b839ca1e132cc09172e /vw-bap-frame.c | |
parent | 04795b52688dde6f4ad0284a633f5ffb4aec80e0 (diff) |
Rename BAP 'function' to 'port'
This is more generic, thus allowing for interpreting it as 'registers',
and easier to understand when coming from UDP/IP.
Diffstat (limited to 'vw-bap-frame.c')
-rw-r--r-- | vw-bap-frame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vw-bap-frame.c b/vw-bap-frame.c index 41d9e90..1fa353f 100644 --- a/vw-bap-frame.c +++ b/vw-bap-frame.c @@ -28,7 +28,7 @@ int vw_bap_frame_is_valid(struct BAP_Frame *bap_frame) if ( 0 || (bap_frame->opcode > 7) || (bap_frame->node > 63) - || (bap_frame->function > 63) + || (bap_frame->port > 63) || (bap_frame->len > 4095) || (!bap_frame->is_multiframe && bap_frame->len > 6) ) { @@ -66,7 +66,7 @@ void vw_bap_frame_dump(struct BAP_Frame *bap_frame) printf("%u. %2i/%-2i .%02i --", bap_frame->opcode, bap_frame->node, - bap_frame->function, + bap_frame->port, bap_frame->len); for (i = 0; i < bap_frame->len; i++) { |