Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

Commit

Permalink
Merge branch 'feature/wifi-packet-identification' into feature/wifi-d…
Browse files Browse the repository at this point in the history
…iagram
  • Loading branch information
thomotron committed Oct 8, 2019
2 parents def00d8 + dcda70c commit beea6a2
Show file tree
Hide file tree
Showing 9 changed files with 1,358 additions and 23 deletions.
2 changes: 1 addition & 1 deletion server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ COPT= -Wall -g
all: cap

cap: svrcapture.c message_handlers.c Makefile
$(CC) $(COPT) -o svrCap svrcapture.c message_handlers.c parseLBARD.c $(LOPT)
$(CC) $(COPT) -o svrCap svrcapture.c message_handlers.c parseLBARD.c packet_parser.c radiotap.c $(LOPT)

34 changes: 34 additions & 0 deletions server/mdp_types.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#ifndef MESHOBSERVER_PACKET_CAPTURE_MDP_TYPES_H
#define MESHOBSERVER_PACKET_CAPTURE_MDP_TYPES_H

// Simple structure for each well-known MDP port
typedef struct mdp_type
{
long portNo;
char* description;

} mdp_type;

// All port numbers were collected from the following URL and are up-to-date as of 2019-09-17:
// http://developer.servalproject.org/dokuwiki/doku.php?id=content:tech:mdp_port_number
struct mdp_type mdp_types[] =
{
{1, "ID management"},
{2, "Route state"},
{4, "NAT traversal"},
{5, "NAT traversal"},
{6, "ECHO origination"},
{7, "ECHO"},
{8, "TRACE"},
{10, "DNA"},
{12, "VoMP"},
{13, "Rhizome bundle transfer"},
{14, "Rhizome bundle transfer"},
{15, "Serval Directory Service"},
{16, "Rhizome manifest request"},
{17, "Rhizome sync"},
{63, "No reply"},
{0} // Null entry for iteration
};

#endif //MESHOBSERVER_PACKET_CAPTURE_MDP_TYPES_H
Loading

0 comments on commit beea6a2

Please sign in to comment.