diff options
author | Michal 'vorner' Vaner <michal.vaner@nic.cz> | 2017-08-08 14:40:51 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-08-09 12:38:20 +0200 |
commit | 1f182675c816e4708312f99dd817fb894f3a90b3 (patch) | |
tree | 5d3531588ace8e3601fad6838fb589c5a91012d5 /proto/radv/radv.h | |
parent | 637ed49868c56c0e05467f0e0ddb6aa1231deaa4 (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.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/proto/radv/radv.h b/proto/radv/radv.h index 0591486b..559a3f3f 100644 --- a/proto/radv/radv.h +++ b/proto/radv/radv.h @@ -114,7 +114,7 @@ struct radv_dnssl_config }; -struct proto_radv +struct radv_proto { struct proto p; list iface_list; /* List of active ifaces */ @@ -124,7 +124,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 */ @@ -154,8 +154,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 */ |