summaryrefslogtreecommitdiff
path: root/proto/radv/radv.h
diff options
context:
space:
mode:
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>2017-08-08 14:40:51 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-08-09 12:22:15 +0200
commit5a41eed26d1b12861ba0ecddcd7cade335d2a192 (patch)
treed1cd2abcec32f253e60ba8799bad809638ed9897 /proto/radv/radv.h
parentafd9845e2636146a66508639614a93167d5d1728 (diff)
RAdv: Style updates
Adapt the naming conventions to be a bit closer to the other protocols. proto_radv -> radv_proto struct radv_proto *ra -> struct radv_proto *p struct proto *p -> struct proto *P
Diffstat (limited to 'proto/radv/radv.h')
-rw-r--r--proto/radv/radv.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/proto/radv/radv.h b/proto/radv/radv.h
index 3e6c1651..35eea9ba 100644
--- a/proto/radv/radv.h
+++ b/proto/radv/radv.h
@@ -111,7 +111,7 @@ struct radv_dnssl_config
};
-struct proto_radv
+struct radv_proto
{
struct proto p;
list iface_list; /* List of active ifaces */
@@ -121,7 +121,7 @@ struct proto_radv
struct radv_iface
{
node n;
- struct proto_radv *ra;
+ struct radv_proto *ra;
struct radv_iface_config *cf; /* Related config, must be updated in reconfigure */
struct iface *iface;
struct ifa *addr; /* Link-local address of iface */
@@ -151,8 +151,8 @@ struct radv_iface
#else
#define RADV_FORCE_DEBUG 0
#endif
-#define RADV_TRACE(flags, msg, args...) do { if ((ra->p.debug & flags) || RADV_FORCE_DEBUG) \
- log(L_TRACE "%s: " msg, ra->p.name , ## args ); } while(0)
+#define RADV_TRACE(flags, msg, args...) do { if ((p->p.debug & flags) || RADV_FORCE_DEBUG) \
+ log(L_TRACE "%s: " msg, p->p.name , ## args ); } while(0)
/* radv.c */