• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openvpn-2.3.1/src/openvpn/

Lines Matching refs:gc

765       gc_init (&o->gc);
880 gc_free (&o->gc);
1031 string_substitute (const char *src, int from, int to, struct gc_arena *gc)
1033 char *ret = (char *) gc_malloc (strlen (src) + 1, true, gc);
1050 parse_hash_fingerprint(const char *str, int nbytes, int msglevel, struct gc_arena *gc)
1054 uint8_t *ret = (uint8_t *) gc_malloc (nbytes, true, gc);
1089 struct gc_arena gc = gc_new ();
1096 print_in_addr_t (array[i], 0, &gc));
1098 gc_free (&gc);
1161 struct gc_arena gc = gc_new ();
1164 msg (D_SHOW_PARMS, " server_network = %s", print_in_addr_t (o->server_network, 0, &gc));
1165 msg (D_SHOW_PARMS, " server_netmask = %s", print_in_addr_t (o->server_netmask, 0, &gc));
1166 msg (D_SHOW_PARMS, " server_network_ipv6 = %s", print_in6_addr (o->server_network_ipv6, 0, &gc) );
1168 msg (D_SHOW_PARMS, " server_bridge_ip = %s", print_in_addr_t (o->server_bridge_ip, 0, &gc));
1169 msg (D_SHOW_PARMS, " server_bridge_netmask = %s", print_in_addr_t (o->server_bridge_netmask, 0, &gc));
1170 msg (D_SHOW_PARMS, " server_bridge_pool_start = %s", print_in_addr_t (o->server_bridge_pool_start, 0, &gc));
1171 msg (D_SHOW_PARMS, " server_bridge_pool_end = %s", print_in_addr_t (o->server_bridge_pool_end, 0, &gc));
1183 msg (D_SHOW_PARMS, " ifconfig_pool_start = %s", print_in_addr_t (o->ifconfig_pool_start, 0, &gc));
1184 msg (D_SHOW_PARMS, " ifconfig_pool_end = %s", print_in_addr_t (o->ifconfig_pool_end, 0, &gc));
1185 msg (D_SHOW_PARMS, " ifconfig_pool_netmask = %s", print_in_addr_t (o->ifconfig_pool_netmask, 0, &gc));
1189 msg (D_SHOW_PARMS, " ifconfig_ipv6_pool_base = %s", print_in6_addr (o->ifconfig_ipv6_pool_base, 0, &gc));
1202 msg (D_SHOW_PARMS, " push_ifconfig_local = %s", print_in_addr_t (o->push_ifconfig_local, 0, &gc));
1203 msg (D_SHOW_PARMS, " push_ifconfig_remote_netmask = %s", print_in_addr_t (o->push_ifconfig_remote_netmask, 0, &gc));
1205 msg (D_SHOW_PARMS, " push_ifconfig_ipv6_local = %s/%d", print_in6_addr (o->push_ifconfig_ipv6_local, 0, &gc), o->push_ifconfig_ipv6_netbits );
1206 msg (D_SHOW_PARMS, " push_ifconfig_ipv6_remote = %s", print_in6_addr (o->push_ifconfig_ipv6_remote, 0, &gc));
1225 gc_free (&gc);
1240 ALLOC_OBJ_GC (ir, struct iroute, &o->gc);
1267 ALLOC_OBJ_GC (ir, struct iroute_ipv6, &o->gc);
1302 gc_detach (&o->gc);
1316 options->routes = new_route_option_list (options->max_routes, &options->gc);
1323 options->routes_ipv6 = new_route_ipv6_option_list (options->max_routes, &options->gc);
1331 options->client_nat = new_client_nat_list (&options->gc);
1680 struct gc_arena *gc)
1693 ALLOC_OBJ_CLEAR_GC (ho, struct http_proxy_options, gc);
1694 ho->server = string_alloc(server, gc);
1749 ALLOC_OBJ_CLEAR_GC (options->connection_list, struct connection_list, &options->gc);
1764 ALLOC_OBJ_GC (e, struct connection_entry, &options->gc);
1773 ALLOC_OBJ_CLEAR_GC (options->remote_list, struct remote_list, &options->gc);
1788 ALLOC_OBJ_GC (e, struct remote_entry, &options->gc);
2786 ALLOC_OBJ_CLEAR_GC (o->pre_pull, struct options_pre_pull, &o->gc);
2792 o->pre_pull->routes = clone_route_option_list(o->routes, &o->gc);
2797 o->pre_pull->routes_ipv6 = clone_route_ipv6_option_list(o->routes_ipv6, &o->gc);
2803 o->pre_pull->client_nat = clone_client_nat_option_list(o->client_nat, &o->gc);
2905 struct gc_arena *gc)
2951 const char *ios = ifconfig_options_string (tt, remote, o->ifconfig_nowarn, gc);
3084 struct gc_arena gc = gc_new ();
3085 struct buffer b = string_alloc_buf (option_string, &gc);
3086 char *p = gc_malloc (OPTION_PARM_SIZE, false, &gc);
3091 gc_free (&gc);
3115 struct gc_arena gc = gc_new ();
3117 const char *p1_prefix = options_warning_extract_parm1 (p1, &gc);
3118 char *p2 = gc_malloc (OPTION_PARM_SIZE, false, &gc);
3124 const char *p2_prefix = options_warning_extract_parm1 (p2, &gc);
3132 safe_print (p1_prefix, &gc),
3134 safe_print (p1, &gc),
3136 safe_print (p2, &gc));
3143 safe_print (p1_prefix, &gc),
3147 safe_print (p1, &gc));
3150 gc_free (&gc);
3163 struct gc_arena gc = gc_new ();
3165 char *p = gc_malloc (OPTION_PARM_SIZE, true, &gc);
3170 gc_free (&gc);
3176 struct gc_arena gc = gc_new ();
3180 struct buffer local = alloc_buf_gc (OPTION_PARM_SIZE + 16, &gc);
3181 struct buffer remote = alloc_buf_gc (OPTION_PARM_SIZE + 16, &gc);
3196 gc_free (&gc);
3202 struct gc_arena gc = gc_new ();
3218 gc_free (&gc);
3229 options_string_version (const char* s, struct gc_arena *gc)
3231 struct buffer out = alloc_buf_gc (4, gc);
3243 struct gc_arena gc = gc_new();
3244 struct buffer name = alloc_buf_gc (OPTION_PARM_SIZE, &gc);
3245 struct buffer value = alloc_buf_gc (OPTION_PARM_SIZE, &gc);
3266 gc_free (&gc);
3490 struct gc_arena *gc)
3566 p[ret] = gc_malloc (parm_len + 1, true, gc);
3674 read_inline_file (struct in_src *is, const char *close_tag, struct gc_arena *gc)
3685 ret = string_alloc (BSTR (&buf), gc);
3693 check_inline_file (struct in_src *is, char *p[], struct gc_arena *gc)
3703 p[0] = string_alloc (arg+1, gc);
3704 p[1] = string_alloc (INLINE_FILE_TAG, gc);
3707 p[2] = read_inline_file (is, BSTR (&close_tag), gc);
3717 check_inline_file_via_fp (FILE *fp, char *p[], struct gc_arena *gc)
3722 return check_inline_file (&is, p, gc);
3726 check_inline_file_via_buf (struct buffer *multiline, char *p[], struct gc_arena *gc)
3731 return check_inline_file (&is, p, gc);
3780 if (parse_line (line + offset, p, SIZE (p), file, line_num, msglevel, &options->gc))
3783 check_inline_file_via_fp (fp, p, &options->gc);
3823 if (parse_line (line, p, SIZE (p), prefix, line_num, msglevel, &options->gc))
3826 check_inline_file_via_buf (&multiline, p, &options->gc);
3907 if (parse_line (line, p, SIZE (p), file, line_num, msglevel, &options->gc))
4033 struct gc_arena gc = gc_new ();
4082 struct buffer string = alloc_buf_gc (OPTION_PARM_SIZE, &gc);
4215 x509_track_add (&options->x509_track, p[1], msglevel, &options->gc);
4244 options->plugin_list = plugin_option_list_new (&options->gc);
4245 if (!plugin_option_list_add (options->plugin_list, &p[1], &options->gc))
4394 gc_transfer (&options->gc, &sub.gc);
4407 options->http_proxy_override = parse_http_proxy_override(p[1], p[2], p[3], msglevel, &options->gc);
4484 options->ipchange = string_substitute (p[1], ',', ' ', &options->gc);
4906 proto2ascii_all (&gc));
4945 ho = init_http_proxy_options_once (&options->ce.http_proxy_options, &options->gc);
4980 ho = init_http_proxy_options_once (&options->ce.http_proxy_options, &options->gc);
4988 ho = init_http_proxy_options_once (&options->ce.http_proxy_options, &options->gc);
4996 ho = init_http_proxy_options_once (&options->ce.http_proxy_options, &options->gc);
5437 push_options (options, &p[1], msglevel, &options->gc);
5896 ipset2ascii_all (&gc));
6423 options->verify_hash = parse_hash_fingerprint(p[1], SHA_DIGEST_LENGTH, msglevel, &options->gc);
6511 options->tls_verify = string_substitute (p[1], ',', ' ', &options->gc);
6831 gc_free (&gc);