From bd148fff10f2f937c2285036bbfe4abbf22b256c Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 19 Jul 2020 01:26:20 -0400 Subject: [PATCH] Add Class of Procedures flag to patty_ax25_if --- include/patty/ax25/if.h | 2 ++ src/if.c | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/include/patty/ax25/if.h b/include/patty/ax25/if.h index d3c030b..3892c28 100644 --- a/include/patty/ax25/if.h +++ b/include/patty/ax25/if.h @@ -41,6 +41,8 @@ typedef struct _patty_ax25_if { char name[8]; + uint32_t flags; + void *rx_buf, *tx_buf; diff --git a/src/if.c b/src/if.c index dee7f80..fc315c1 100644 --- a/src/if.c +++ b/src/if.c @@ -48,6 +48,13 @@ patty_ax25_if *patty_ax25_if_new(int opts, patty_ax25_if_info *info) { goto error_invalid_address; } + /* + * TODO: Eventually inherit the half/full-duplex flag from the TNC this + * interface is bound to + */ + iface->flags = PATTY_AX25_PARAM_DEFAULT_CLASSES + | PATTY_AX25_PARAM_CLASSES_HALF_DUPLEX; + if ((iface->rx_buf = malloc(PATTY_AX25_IF_DEFAULT_MRU)) == NULL) { goto error_malloc_rx_buf; } else {