Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dump1090.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,6 +799,7 @@ int main(int argc, char **argv) {

// Initialization
modesInit();
initregtables();

if (Modes.net_only) {
fprintf(stderr,"Net-only mode, no RTL device or file open.\n");
Expand Down
10 changes: 10 additions & 0 deletions dump1090.h
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@

#define MODES_NOTUSED(V) ((void) V)

#define REGSIZE 8
#define TYPESIZE 8
#define EXTYPESIZE 32

//======================== structure declarations =========================

// Structure used to describe a networking client
Expand Down Expand Up @@ -214,6 +218,11 @@ struct aircraft {
long modeAcount; // Mode A Squawk hit Count
long modeCcount; // Mode C Altitude hit Count
int modeACflags; // Flags for mode A/C recognition

// Looked up from icao to registration and type DB
char reg[REGSIZE]; // Aircraf Registration
char type[TYPESIZE]; // Aircraft type (short)
char extype[EXTYPESIZE]; // Aircraft type (long)

// Encoded latitude and longitude as extracted by odd and even CPR encoded messages
int odd_cprlat;
Expand Down Expand Up @@ -449,6 +458,7 @@ void interactiveRemoveStaleAircrafts(void);
int decodeBinMessage (struct client *c, char *p);
struct aircraft *interactiveFindAircraft(uint32_t addr);
struct stDF *interactiveFindDF (uint32_t addr);
void initregtables(void);

//
// Functions exported from net_io.c
Expand Down
Loading