Add Class of Procedures flag to patty_ax25_if
This commit is contained in:
parent
cd41101425
commit
bd148fff10
2 changed files with 9 additions and 0 deletions
|
@ -41,6 +41,8 @@ typedef struct _patty_ax25_if {
|
||||||
|
|
||||||
char name[8];
|
char name[8];
|
||||||
|
|
||||||
|
uint32_t flags;
|
||||||
|
|
||||||
void *rx_buf,
|
void *rx_buf,
|
||||||
*tx_buf;
|
*tx_buf;
|
||||||
|
|
||||||
|
|
7
src/if.c
7
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;
|
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) {
|
if ((iface->rx_buf = malloc(PATTY_AX25_IF_DEFAULT_MRU)) == NULL) {
|
||||||
goto error_malloc_rx_buf;
|
goto error_malloc_rx_buf;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue