From 0d40883e59128de5a62f8729bea9b60b0f52185d Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 25 Jul 2015 00:33:45 -0500 Subject: [PATCH] Can you feel heavy metal??? --- include/patty/ax25/defs.h | 1 + include/patty/ax25/if.h | 5 +++-- src/if.c | 4 +++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/patty/ax25/defs.h b/include/patty/ax25/defs.h index 70dfdc5..d8d1e81 100644 --- a/include/patty/ax25/defs.h +++ b/include/patty/ax25/defs.h @@ -8,6 +8,7 @@ enum patty_ax25_obj_type { PATTY_AX25_OBJ_UNKNOWN, + PATTY_AX25_OBJ_IF, PATTY_AX25_OBJ_PORT, PATTY_AX25_OBJ_LINK }; diff --git a/include/patty/ax25/if.h b/include/patty/ax25/if.h index 09cd200..61c1a5e 100644 --- a/include/patty/ax25/if.h +++ b/include/patty/ax25/if.h @@ -21,8 +21,9 @@ enum patty_ax25_if_type { }; typedef struct _patty_ax25_if { - enum patty_ax25_if_type type; - patty_ax25_stats stats; + enum patty_ax25_obj_type type; + enum patty_ax25_if_type type_if; + patty_ax25_stats stats; char name[8]; diff --git a/src/if.c b/src/if.c index 204f63b..c1c373f 100644 --- a/src/if.c +++ b/src/if.c @@ -21,7 +21,7 @@ static patty_ax25_if *create_tnc(const char *device) { goto error_kiss_tnc_open; } - iface->type = PATTY_AX25_IF_KISS_TNC_TTY; + iface->type_if = PATTY_AX25_IF_KISS_TNC_TTY; snprintf(iface->name, sizeof(iface->name), "%s%d", prefix, number++); @@ -63,6 +63,8 @@ patty_ax25_if *patty_ax25_if_create(int opts, void *info) { goto error; } + iface->type = PATTY_AX25_OBJ_IF; + return iface; error: