PUD: split downlink debugging in rx and tx parts
authorFerry Huberts <f.huberts@mindef.nl>
Wed, 26 Oct 2011 08:52:39 +0000 (10:52 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Tue, 14 Feb 2012 13:32:55 +0000 (14:32 +0100)
Signed-off-by: Ferry Huberts <f.huberts@mindef.nl>
lib/pud/Makefile
lib/pud/src/dump.h
lib/pud/src/pud.c

index 0334503..b2defe9 100644 (file)
@@ -13,6 +13,7 @@ include $(TOPDIR)/Makefile.inc
 #CFLAGS += -DPUD_DUMP_GPS_PACKETS_RX_NON_OLSR
 #CFLAGS += -DPUD_DUMP_GPS_PACKETS_TX_OLSR
 #CFLAGS += -DPUD_DUMP_GPS_PACKETS_TX_UPLINK
+#CFLAGS += -DPUD_DUMP_GPS_PACKETS_RX_DOWNLINK
 #CFLAGS += -DPUD_DUMP_GPS_PACKETS_TX_DOWNLINK
 
 #CFLAGS += -DPUD_DUMP_GPS_PACKETS_RX_OLSR
index 5eb4b61..bf95d12 100644 (file)
@@ -5,6 +5,7 @@
        defined(PUD_DUMP_GPS_PACKETS_RX_OLSR) || \
        defined(PUD_DUMP_GPS_PACKETS_TX_OLSR) || \
        defined(PUD_DUMP_GPS_PACKETS_TX_UPLINK) || \
+       defined(PUD_DUMP_GPS_PACKETS_RX_DOWNLINK) || \
        defined(PUD_DUMP_GPS_PACKETS_TX_DOWNLINK) || \
        defined(PUD_DUMP_GPS_PACKETS_TX_NON_OLSR) || \
        defined(PUD_DUMP_GPS_PACKETS)
index 5a1315c..77d7c9d 100644 (file)
@@ -196,7 +196,7 @@ static void packetReceivedFromDownlink(int skfd, void *data __attribute__ ((unus
                        return;
                }
 
-#ifdef PUD_DUMP_GPS_PACKETS_TX_DOWNLINK
+#ifdef PUD_DUMP_GPS_PACKETS_RX_DOWNLINK
                {
                        void * src;
                        in_port_t port;