Can you feel heavy metal???
This commit is contained in:
parent
b923ad3566
commit
0d40883e59
3 changed files with 7 additions and 3 deletions
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
enum patty_ax25_obj_type {
|
enum patty_ax25_obj_type {
|
||||||
PATTY_AX25_OBJ_UNKNOWN,
|
PATTY_AX25_OBJ_UNKNOWN,
|
||||||
|
PATTY_AX25_OBJ_IF,
|
||||||
PATTY_AX25_OBJ_PORT,
|
PATTY_AX25_OBJ_PORT,
|
||||||
PATTY_AX25_OBJ_LINK
|
PATTY_AX25_OBJ_LINK
|
||||||
};
|
};
|
||||||
|
|
|
@ -21,7 +21,8 @@ enum patty_ax25_if_type {
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct _patty_ax25_if {
|
typedef struct _patty_ax25_if {
|
||||||
enum patty_ax25_if_type type;
|
enum patty_ax25_obj_type type;
|
||||||
|
enum patty_ax25_if_type type_if;
|
||||||
patty_ax25_stats stats;
|
patty_ax25_stats stats;
|
||||||
|
|
||||||
char name[8];
|
char name[8];
|
||||||
|
|
4
src/if.c
4
src/if.c
|
@ -21,7 +21,7 @@ static patty_ax25_if *create_tnc(const char *device) {
|
||||||
goto error_kiss_tnc_open;
|
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++);
|
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;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
iface->type = PATTY_AX25_OBJ_IF;
|
||||||
|
|
||||||
return iface;
|
return iface;
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
|
Loading…
Add table
Reference in a new issue