#define D_PID_DEBUG LOGLEV(7, 70, M_DEBUG) /* show packet-id debugging info */
#define D_PF_DROPPED_BCAST LOGLEV(7, 71, M_DEBUG) /* packet filter dropped a broadcast packet */
#define D_PF_DEBUG LOGLEV(7, 72, M_DEBUG) /* packet filter debugging, must also define PF_DEBUG in pf.h */
+#define D_PUSH_DEBUG LOGLEV(7, 73, M_DEBUG) /* show push/pull debugging info */
#define D_HANDSHAKE_VERBOSE LOGLEV(8, 70, M_DEBUG) /* show detailed description of each handshake */
#define D_TLS_DEBUG_MED LOGLEV(8, 70, M_DEBUG) /* limited info from tls_session routines */
else if (streq (p[0], "push-remove") && p[1] && !p[2])
{
VERIFY_PERMISSION (OPT_P_INSTANCE);
+ msg (D_PUSH, "PUSH_REMOVE '%s'", p[1]);
push_remove_option (options,p[1]);
}
else if (streq (p[0], "ifconfig-pool") && p[1] && p[2] && !p[4])
int r = sscanf(optstr, "IV_PROTO=%d", &proto);
if ((r == 1) && (proto >= 2))
{
+ push_remove_option(o, "peer-id");
push_option_fmt(o, M_USAGE, "peer-id %d", tls_multi->peer_id);
}
}
* TODO: actual negotiation, instead of server dictatorship. */
char *push_cipher = string_alloc(o->ncp_ciphers, &o->gc);
o->ciphername = strtok (push_cipher, ":");
+ push_remove_option(o, "cipher");
push_option_fmt(o, M_USAGE, "cipher %s", o->ciphername);
}
}
void
push_remove_option (struct options *o, const char *p)
{
- msg( D_PUSH, "PUSH_REMOVE '%s'", p );
+ msg (D_PUSH_DEBUG, "PUSH_REMOVE searching for: '%s'", p);
/* ifconfig-ipv6 is special, as not part of the push list */
if ( streq( p, "ifconfig-ipv6" ))
if ( e->enable &&
strncmp( e->option, p, strlen(p) ) == 0 )
{
- msg (D_PUSH, "PUSH_REMOVE removing: '%s'", e->option);
+ msg (D_PUSH_DEBUG, "PUSH_REMOVE removing: '%s'", e->option);
e->enable = false;
}