summaryrefslogtreecommitdiff
path: root/vw-bap-sniffer.c
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2019-02-24 04:35:59 +0100
committernorly <ny-git@enpas.org>2019-02-24 04:35:59 +0100
commit8c73fd11fe9cac11ba2fdd657b84f845632af3d0 (patch)
tree103046069c53a18dce2a2b839ca1e132cc09172e /vw-bap-sniffer.c
parent04795b52688dde6f4ad0284a633f5ffb4aec80e0 (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-sniffer.c')
-rw-r--r--vw-bap-sniffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vw-bap-sniffer.c b/vw-bap-sniffer.c
index ac1ef79..f7f493c 100644
--- a/vw-bap-sniffer.c
+++ b/vw-bap-sniffer.c
@@ -128,12 +128,12 @@ int main(int argc, char **argv)
bap_frame = vw_bap_handle_can_frame(bap, &frame);
if (bap_frame && bap_frame->node == node_id) {
- mvprintw(bap_frame->function, 0, "");
+ mvprintw(bap_frame->port, 0, "");
printw("%u. %2i/%-2i .%c%02i --",
bap_frame->opcode,
bap_frame->node,
- bap_frame->function,
+ bap_frame->port,
bap_frame->is_multiframe ? 'm' : 's',
bap_frame->len);
@@ -153,7 +153,7 @@ int main(int argc, char **argv)
printw("\n");
/* ASCII dump */
- mvprintw(bap_frame->function, 64, "");
+ mvprintw(bap_frame->port, 64, "");
for (i = 0; i < bap_frame->len; i++) {
unsigned char c = bap_frame->data[i];
if (!isprint(c) || c == '\n' || c == '\r') {