summaryrefslogtreecommitdiff
path: root/proto/ospf
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2015-04-12 10:47:17 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2015-04-12 10:47:17 +0200
commit304ac2e861a5ea28683489aff38ff37ff6873bb4 (patch)
tree4a774721a3ecf2cb8f44bd7f612c4b0d2aca76de /proto/ospf
parentd924d5a5626397da7e71fddfb1c0fd22c2714f2c (diff)
Minor fixes
Diffstat (limited to 'proto/ospf')
-rw-r--r--proto/ospf/ospf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index c324f431..a4e525ec 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -916,9 +916,11 @@ static inline void ospf_send_to_des(struct ospf_iface *ifa)
ospf_send_to_bdr(ifa);
}
+#ifndef PARSER
#define DROP(DSC,VAL) do { err_dsc = DSC; err_val = VAL; goto drop; } while(0)
#define DROP1(DSC) do { err_dsc = DSC; goto drop; } while(0)
#define SKIP(DSC) do { err_dsc = DSC; goto skip; } while(0)
+#endif
static inline uint ospf_pkt_hdrlen(struct ospf_proto *p)
{ return ospf_is_v2(p) ? (sizeof(struct ospf_packet) + sizeof(union ospf_auth)) : sizeof(struct ospf_packet); }