• 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 defs:gc

67 static const char *netsh_get_id (const char *dev_node, struct gc_arena *gc);
127 struct gc_arena *gc)
133 return netsh_get_id (dev_node, gc);
155 struct gc_arena gc = gc_new ();
161 print_in_addr_t (addr, 0, &gc),
170 gc_free (&gc);
194 struct gc_arena gc = gc_new ();
198 print_in_addr_t (public, 0, &gc),
199 print_in_addr_t (local, 0, &gc),
200 print_in_addr_t (remote_netmask, 0, &gc));
216 print_in_addr_t (public, 0, &gc),
217 print_in_addr_t (local, 0, &gc),
218 print_in_addr_t (remote_netmask, 0, &gc),
225 print_in_addr_t (public, 0, &gc),
226 print_in_addr_t (local, 0, &gc),
227 print_in_addr_t (remote_netmask, 0, &gc),
238 print_in_addr_t (public, 0, &gc),
239 print_in_addr_t (local, 0, &gc),
240 print_in_addr_t (remote_netmask, 0, &gc),
244 gc_free (&gc);
260 struct gc_arena gc = gc_new ();
275 print_in_addr_t (lan_network, 0, &gc),
276 print_in_addr_t (lan_netmask, 0, &gc),
277 print_in_addr_t (network, 0, &gc),
278 print_in_addr_t (netmask, 0, &gc));
281 gc_free (&gc);
288 struct gc_arena gc = gc_new ();
299 gc_free (&gc);
307 ifconfig_options_string (const struct tuntap* tt, bool remote, bool disable, struct gc_arena *gc)
309 struct buffer out = alloc_buf_gc (256, gc);
315 print_in_addr_t (tt->local & tt->remote_netmask, 0, gc),
316 print_in_addr_t (tt->remote_netmask, 0, gc));
323 r = print_in_addr_t (tt->local, 0, gc);
324 l = print_in_addr_t (tt->remote_netmask, 0, gc);
328 l = print_in_addr_t (tt->local, 0, gc);
329 r = print_in_addr_t (tt->remote_netmask, 0, gc);
343 tun_stat (const struct tuntap *tt, unsigned int rwflags, struct gc_arena *gc)
345 struct buffer out = alloc_buf_gc (64, gc);
412 struct gc_arena gc = gc_new ();
490 ifconfig_local = print_in_addr_t (tt->local, 0, &gc);
491 ifconfig_remote_netmask = print_in_addr_t (tt->remote_netmask, 0, &gc);
499 ifconfig_broadcast = print_in_addr_t (tt->broadcast, 0, &gc);
541 ifconfig_ipv6_local = print_in6_addr (tt->local_ipv6, 0, &gc);
542 ifconfig_ipv6_remote = print_in6_addr (tt->remote_ipv6, 0, &gc);
556 gc_free (&gc);
623 struct gc_arena gc = gc_new ();
649 ifconfig_local = print_in_addr_t (tt->local, 0, &gc);
650 ifconfig_remote_netmask = print_in_addr_t (tt->remote_netmask, 0, &gc);
654 ifconfig_ipv6_local = print_in6_addr (tt->local_ipv6, 0, &gc);
655 ifconfig_ipv6_remote = print_in6_addr (tt->remote_ipv6, 0, &gc);
663 ifconfig_broadcast = print_in_addr_t (tt->broadcast, 0, &gc);
1177 print_in_addr_t (tt->adapter_netmask, 0, &gc));
1227 gc_free (&gc);
1568 struct gc_arena gc = gc_new ();
1578 print_in_addr_t (tt->local, 0, &gc),
1579 print_in_addr_t (tt->remote_netmask, 0, &gc)
1588 print_in_addr_t (tt->local, 0, &gc),
1589 count_netmask_bits(print_in_addr_t (tt->remote_netmask, 0, &gc))
1604 gc_free (&gc);
2039 struct gc_arena gc = gc_new ();
2174 struct gc_arena gc = gc_new ();
2312 struct gc_arena gc = gc_new ();
2481 struct gc_arena gc = gc_new ();
2488 print_in6_addr (tt->local_ipv6, 0, &gc);
2499 gc_free (&gc);
2567 struct gc_arena gc = gc_new ();
2573 strerror_win32 (status, &gc));
2574 gc_free (&gc);
2630 struct gc_arena gc = gc_new ();
2636 strerror_win32 (err, &gc));
2637 gc_free (&gc);
2723 get_tap_reg (struct gc_arena *gc)
2811 ALLOC_OBJ_CLEAR_GC (reg, struct tap_reg, gc);
2812 reg->guid = string_alloc (net_cfg_instance_id, gc);
2833 get_panel_reg (struct gc_arena *gc)
2908 ALLOC_OBJ_CLEAR_GC (reg, struct panel_reg, gc);
2909 reg->name = string_alloc (name_data, gc);
2910 reg->guid = string_alloc (enum_name, gc);
2935 struct gc_arena gc = gc_new ();
2958 gc_free (&gc);
2963 print_in_addr_t (local, 0, &gc),
2964 print_in_addr_t (remote, 0, &gc),
2966 gc_free (&gc);
3002 struct gc_arena gc = gc_new ();
3014 const struct tap_reg *tap_reg = get_tap_reg (&gc);
3015 const struct panel_reg *panel_reg = get_panel_reg (&gc);
3067 gc_free (&gc);
3132 struct gc_arena *gc)
3171 ret = alloc_buf_gc (256, gc);
3186 struct gc_arena *gc)
3188 struct buffer ret = alloc_buf_gc (256, gc);
3232 get_adapter_info_list (struct gc_arena *gc)
3242 strerror_win32 (status, gc));
3246 pi = (PIP_ADAPTER_INFO) gc_malloc (size, false, gc);
3253 strerror_win32 (status, gc));
3260 get_per_adapter_info (const DWORD index, struct gc_arena *gc)
3272 strerror_win32 (status, gc));
3276 pi = (PIP_PER_ADAPTER_INFO) gc_malloc (size, false, gc);
3283 strerror_win32 (status, gc));
3291 get_interface_info_list (struct gc_arena *gc)
3301 strerror_win32 (status, gc));
3305 ii = (PIP_INTERFACE_INFO) gc_malloc (size, false, gc);
3312 strerror_win32 (status, gc));
3319 get_interface_info (DWORD index, struct gc_arena *gc)
3321 const IP_INTERFACE_INFO *list = get_interface_info_list (gc);
3358 get_adapter_info (DWORD index, struct gc_arena *gc)
3360 return get_adapter (get_adapter_info_list (gc), index);
3519 struct gc_arena gc = gc_new ();
3551 print_in_addr_t (ip, 0, &gc),
3552 print_in_addr_t (highest_netmask, 0, &gc),
3562 gc_free (&gc);
3578 struct gc_arena gc = gc_new ();
3582 const IP_ADAPTER_INFO *ai = get_adapter_info (index, &gc);
3592 gc_free (&gc);
3603 struct gc_arena gc = gc_new ();
3604 const IP_ADAPTER_INFO *a = get_adapter_info (index, &gc);
3633 gc_free (&gc);
3657 struct gc_arena gc = gc_new ();
3660 const IP_ADAPTER_INFO *list = get_adapter_info_list (&gc);
3672 gc_free (&gc);
3691 struct gc_arena gc = gc_new ();
3698 const struct tap_reg *tap_reg = get_tap_reg (&gc);
3699 const struct panel_reg *panel_reg = get_panel_reg (&gc);
3707 gc_free (&gc);
3715 format_ip_addr_string (const IP_ADDR_STRING *ip, struct gc_arena *gc)
3717 struct buffer out = alloc_buf_gc (256, gc);
3736 show_adapter (int msglev, const IP_ADAPTER_INFO *a, struct gc_arena *gc)
3741 msg (msglev, " IP = %s", format_ip_addr_string (&a->IpAddressList, gc));
3742 msg (msglev, " MAC = %s", format_hex_ex (a->Address, a->AddressLength, 0, 1, ":", gc));
3743 msg (msglev, " GATEWAY = %s", format_ip_addr_string (&a->GatewayList, gc));
3746 msg (msglev, " DHCP SERV = %s", format_ip_addr_string (&a->DhcpServer, gc));
3747 msg (msglev, " DHCP LEASE OBTAINED = %s", time_string (a->LeaseObtained, 0, false, gc));
3748 msg (msglev, " DHCP LEASE EXPIRES = %s", time_string (a->LeaseExpires, 0, false, gc));
3752 msg (msglev, " PRI WINS = %s", format_ip_addr_string (&a->PrimaryWinsServer, gc));
3753 msg (msglev, " SEC WINS = %s", format_ip_addr_string (&a->SecondaryWinsServer, gc));
3757 const IP_PER_ADAPTER_INFO *pai = get_per_adapter_info (a->Index, gc);
3760 msg (msglev, " DNS SERV = %s", format_ip_addr_string (&pai->DnsServerList, gc));
3771 struct gc_arena gc = gc_new ();
3772 const IP_ADAPTER_INFO *ai = get_adapter_info_list (&gc);
3782 show_adapter (msglev, a, &gc);
3785 gc_free (&gc);
3818 struct gc_arena gc = gc_new ();
3819 const struct tap_reg *tap_reg = get_tap_reg (&gc);
3820 const struct panel_reg *panel_reg = get_panel_reg (&gc);
3831 device_guid = get_device_guid (dev_node, actual_buffer, sizeof (actual_buffer), tap_reg, panel_reg, &gc);
3870 &gc);
3902 gc_free (&gc);
3911 struct gc_arena gc = gc_new ();
3913 const IP_ADAPTER_INDEX_MAP *inter = get_interface_info (adapter_index, &gc);
3925 strerror_win32 (status, &gc),
3929 gc_free (&gc);
3945 struct gc_arena gc = gc_new ();
3947 const IP_ADAPTER_INDEX_MAP *inter = get_interface_info (adapter_index, &gc);
3959 strerror_win32 (status, &gc),
3962 gc_free (&gc);
4069 struct gc_arena gc = gc_new ();
4073 msg (M_INFO, "%s", print_in_addr_t (dest[i], 0, &gc));
4075 gc_free (&gc);
4124 struct gc_arena gc = gc_new ();
4165 print_in_addr_t (addr_list[i], 0, &gc));
4175 print_in_addr_t (addr_list[i], 0, &gc));
4181 gc_free (&gc);
4209 struct gc_arena gc = gc_new ();
4216 const IP_ADAPTER_INFO *list = get_adapter_info_list (&gc);
4219 pai = get_per_adapter_info (index, &gc);
4228 print_in_addr_t (ip, 0, &gc),
4229 print_in_addr_t (netmask, 0, &gc));
4238 print_in_addr_t (ip, 0, &gc),
4239 print_in_addr_t (netmask, 0, &gc));
4270 gc_free (&gc);
4296 netsh_get_id (const char *dev_node, struct gc_arena *gc)
4298 const struct tap_reg *tap_reg = get_tap_reg (gc);
4299 const struct panel_reg *panel_reg = get_panel_reg (gc);
4300 struct buffer actual = alloc_buf_gc (256, gc);
4307 guid = get_device_guid (dev_node, BPTR (&actual), BCAP (&actual), tap_reg, panel_reg, gc);
4311 guid = get_unspecified_device_guid (0, BPTR (&actual), BCAP (&actual), tap_reg, panel_reg, gc);
4313 if (get_unspecified_device_guid (1, NULL, 0, tap_reg, panel_reg, gc)) /* ambiguous if more than one TAP-Windows adapter */
4467 struct gc_arena gc = gc_new ();
4468 struct buffer cmd = alloc_buf_gc (256, &gc);
4480 gc_free (&gc);
4489 struct gc_arena gc = gc_new ();
4490 struct buffer cmd = alloc_buf_gc (256, &gc);
4495 gc_free (&gc);
4502 struct gc_arena gc = gc_new ();
4511 msg (M_FATAL, "ERROR: There is a clash between the --ifconfig local address and the internal DHCP server address -- both are set to %s -- please use the --ip-win32 dynamic option to choose a different free address from the --ifconfig subnet for the internal DHCP server", print_in_addr_t (dsa, 0, &gc));
4516 gc_free (&gc);
4523 struct gc_arena gc = gc_new ();
4537 gc_free (&gc);
4553 const struct tap_reg *tap_reg = get_tap_reg (&gc);
4554 const struct panel_reg *panel_reg = get_panel_reg (&gc);
4562 device_guid = get_device_guid (dev_node, actual_buffer, sizeof (actual_buffer), tap_reg, panel_reg, &gc);
4598 &gc);
4745 print_in_addr_t (ep[1], IA_NET_ORDER, &gc),
4746 print_in_addr_t (ep[0], IA_NET_ORDER, &gc),
4747 print_in_addr_t (ep[2], IA_NET_ORDER, &gc),
4804 print_in_addr_t (tt->local, 0, &gc),
4805 print_in_addr_t (tt->adapter_netmask, 0, &gc),
4807 print_in_addr_t (ep[2], IA_NET_ORDER, &gc),
4817 msg (D_DHCP_OPT, "DHCP option string: %s", format_hex (BPTR (&buf), BLEN (&buf), 0, &gc));
4867 strerror_win32 (status, &gc));
4918 print_in_addr_t (tt->local, 0, &gc),
4919 print_in_addr_t (tt->adapter_netmask, 0, &gc),
4924 print_in_addr_t (tt->local, 0, &gc),
4925 print_in_addr_t (tt->adapter_netmask, 0, &gc),
4929 strerror_win32 (status, &gc),
4935 gc_free (&gc);
4939 tap_win_getinfo (const struct tuntap *tt, struct gc_arena *gc)
4943 struct buffer out = alloc_buf_gc (256, gc);
4977 struct gc_arena gc = gc_new ();
4991 ifconfig_ipv6_local = print_in6_addr (tt->local_ipv6, 0, &gc);
5011 strerror_win32 (status, &gc));
5045 gc_free (&gc);
5087 ipset2ascii_all (struct gc_arena *gc)
5089 struct buffer out = alloc_buf_gc (256, gc);