From 0e56b468eeaf711e4594aba83a15f2944cfb58b9 Mon Sep 17 00:00:00 2001 From: System Administrator Date: Tue, 1 Dec 2015 23:14:55 +0100 Subject: Update binaries and code source for OSX --- tinyNET/src/dhcp/tnet_dhcp.c | 0 tinyNET/src/dhcp/tnet_dhcp.h | 0 tinyNET/src/dhcp/tnet_dhcp_message.c | 0 tinyNET/src/dhcp/tnet_dhcp_message.h | 0 tinyNET/src/dhcp/tnet_dhcp_option.c | 0 tinyNET/src/dhcp/tnet_dhcp_option.h | 0 tinyNET/src/dhcp/tnet_dhcp_option_sip.c | 2 +- tinyNET/src/dhcp/tnet_dhcp_option_sip.h | 0 tinyNET/src/dhcp6/tnet_dhcp6.c | 0 tinyNET/src/dhcp6/tnet_dhcp6.h | 0 tinyNET/src/dhcp6/tnet_dhcp6_duid.c | 0 tinyNET/src/dhcp6/tnet_dhcp6_duid.h | 0 tinyNET/src/dhcp6/tnet_dhcp6_message.c | 0 tinyNET/src/dhcp6/tnet_dhcp6_message.h | 0 tinyNET/src/dhcp6/tnet_dhcp6_option.c | 0 tinyNET/src/dhcp6/tnet_dhcp6_option.h | 0 tinyNET/src/dns/tnet_dns.c | 0 tinyNET/src/dns/tnet_dns.h | 0 tinyNET/src/dns/tnet_dns_a.c | 0 tinyNET/src/dns/tnet_dns_a.h | 0 tinyNET/src/dns/tnet_dns_aaaa.c | 0 tinyNET/src/dns/tnet_dns_aaaa.h | 0 tinyNET/src/dns/tnet_dns_cname.c | 0 tinyNET/src/dns/tnet_dns_cname.h | 0 tinyNET/src/dns/tnet_dns_message.c | 0 tinyNET/src/dns/tnet_dns_message.h | 0 tinyNET/src/dns/tnet_dns_mx.c | 0 tinyNET/src/dns/tnet_dns_mx.h | 0 tinyNET/src/dns/tnet_dns_naptr.c | 0 tinyNET/src/dns/tnet_dns_naptr.h | 0 tinyNET/src/dns/tnet_dns_ns.c | 0 tinyNET/src/dns/tnet_dns_ns.h | 0 tinyNET/src/dns/tnet_dns_opt.c | 0 tinyNET/src/dns/tnet_dns_opt.h | 0 tinyNET/src/dns/tnet_dns_ptr.c | 0 tinyNET/src/dns/tnet_dns_ptr.h | 0 tinyNET/src/dns/tnet_dns_regexp.c | 0 tinyNET/src/dns/tnet_dns_regexp.h | 0 tinyNET/src/dns/tnet_dns_resolvconf.c | 0 tinyNET/src/dns/tnet_dns_resolvconf.h | 0 tinyNET/src/dns/tnet_dns_rr.c | 0 tinyNET/src/dns/tnet_dns_rr.h | 0 tinyNET/src/dns/tnet_dns_soa.c | 0 tinyNET/src/dns/tnet_dns_soa.h | 0 tinyNET/src/dns/tnet_dns_srv.c | 0 tinyNET/src/dns/tnet_dns_srv.h | 0 tinyNET/src/dns/tnet_dns_txt.c | 0 tinyNET/src/dns/tnet_dns_txt.h | 0 tinyNET/src/ice/tnet_ice.c | 0 tinyNET/src/ice/tnet_ice.h | 0 tinyNET/src/ice/tnet_ice_candidate.c | 4 ++-- tinyNET/src/ice/tnet_ice_candidate.h | 0 tinyNET/src/ice/tnet_ice_ctx.c | 0 tinyNET/src/ice/tnet_ice_ctx.h | 0 tinyNET/src/ice/tnet_ice_event.c | 0 tinyNET/src/ice/tnet_ice_event.h | 0 tinyNET/src/ice/tnet_ice_pair.c | 0 tinyNET/src/ice/tnet_ice_pair.h | 0 tinyNET/src/ice/tnet_ice_utils.c | 0 tinyNET/src/ice/tnet_ice_utils.h | 0 tinyNET/src/stun/AStyle.sh | 0 tinyNET/src/stun/tnet_stun.c | 0 tinyNET/src/stun/tnet_stun.h | 0 tinyNET/src/stun/tnet_stun_attr.c | 0 tinyNET/src/stun/tnet_stun_attr.h | 0 tinyNET/src/stun/tnet_stun_attribute.c | 0 tinyNET/src/stun/tnet_stun_attribute.h | 0 tinyNET/src/stun/tnet_stun_binding.c | 0 tinyNET/src/stun/tnet_stun_binding.h | 0 tinyNET/src/stun/tnet_stun_message.c | 0 tinyNET/src/stun/tnet_stun_message.h | 0 tinyNET/src/stun/tnet_stun_pkt.c | 0 tinyNET/src/stun/tnet_stun_pkt.h | 0 tinyNET/src/stun/tnet_stun_types.h | 0 tinyNET/src/stun/tnet_stun_utils.c | 0 tinyNET/src/stun/tnet_stun_utils.h | 0 tinyNET/src/tinynet.h | 0 tinyNET/src/tinynet_config.h | 0 tinyNET/src/tls/tnet_dtls.c | 0 tinyNET/src/tls/tnet_dtls.h | 0 tinyNET/src/tls/tnet_tls.c | 0 tinyNET/src/tls/tnet_tls.h | 0 tinyNET/src/tnet.c | 0 tinyNET/src/tnet.h | 0 tinyNET/src/tnet_auth.c | 0 tinyNET/src/tnet_auth.h | 0 tinyNET/src/tnet_endianness.c | 0 tinyNET/src/tnet_endianness.h | 0 tinyNET/src/tnet_hardwares.h | 0 tinyNET/src/tnet_nat.c | 0 tinyNET/src/tnet_nat.h | 0 tinyNET/src/tnet_poll.c | 0 tinyNET/src/tnet_poll.h | 0 tinyNET/src/tnet_proto.h | 0 tinyNET/src/tnet_proxy_node_socks_plugin.c | 0 tinyNET/src/tnet_proxy_node_socks_plugin.h | 0 tinyNET/src/tnet_proxy_plugin.c | 0 tinyNET/src/tnet_proxy_plugin.h | 0 tinyNET/src/tnet_proxydetect.c | 0 tinyNET/src/tnet_proxydetect.h | 0 tinyNET/src/tnet_socket.c | 0 tinyNET/src/tnet_socket.h | 0 tinyNET/src/tnet_transport.c | 0 tinyNET/src/tnet_transport.h | 0 tinyNET/src/tnet_transport_cfsocket.c | 0 tinyNET/src/tnet_transport_poll.c | 13 +++++++------ tinyNET/src/tnet_transport_win32.c | 0 tinyNET/src/tnet_types.h | 0 tinyNET/src/tnet_utils.c | 0 tinyNET/src/tnet_utils.h | 0 tinyNET/src/turn/tnet_turn.c | 0 tinyNET/src/turn/tnet_turn.h | 0 tinyNET/src/turn/tnet_turn_attr.c | 0 tinyNET/src/turn/tnet_turn_attr.h | 0 tinyNET/src/turn/tnet_turn_attribute.c | 0 tinyNET/src/turn/tnet_turn_attribute.h | 0 tinyNET/src/turn/tnet_turn_message.c | 0 tinyNET/src/turn/tnet_turn_message.h | 0 tinyNET/src/turn/tnet_turn_session.c | 0 tinyNET/src/turn/tnet_turn_session.h | 0 120 files changed, 10 insertions(+), 9 deletions(-) mode change 100644 => 100755 tinyNET/src/dhcp/tnet_dhcp.c mode change 100644 => 100755 tinyNET/src/dhcp/tnet_dhcp.h mode change 100644 => 100755 tinyNET/src/dhcp/tnet_dhcp_message.c mode change 100644 => 100755 tinyNET/src/dhcp/tnet_dhcp_message.h mode change 100644 => 100755 tinyNET/src/dhcp/tnet_dhcp_option.c mode change 100644 => 100755 tinyNET/src/dhcp/tnet_dhcp_option.h mode change 100644 => 100755 tinyNET/src/dhcp/tnet_dhcp_option_sip.c mode change 100644 => 100755 tinyNET/src/dhcp/tnet_dhcp_option_sip.h mode change 100644 => 100755 tinyNET/src/dhcp6/tnet_dhcp6.c mode change 100644 => 100755 tinyNET/src/dhcp6/tnet_dhcp6.h mode change 100644 => 100755 tinyNET/src/dhcp6/tnet_dhcp6_duid.c mode change 100644 => 100755 tinyNET/src/dhcp6/tnet_dhcp6_duid.h mode change 100644 => 100755 tinyNET/src/dhcp6/tnet_dhcp6_message.c mode change 100644 => 100755 tinyNET/src/dhcp6/tnet_dhcp6_message.h mode change 100644 => 100755 tinyNET/src/dhcp6/tnet_dhcp6_option.c mode change 100644 => 100755 tinyNET/src/dhcp6/tnet_dhcp6_option.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_a.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_a.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_aaaa.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_aaaa.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_cname.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_cname.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_message.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_message.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_mx.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_mx.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_naptr.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_naptr.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_ns.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_ns.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_opt.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_opt.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_ptr.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_ptr.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_regexp.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_regexp.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_resolvconf.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_resolvconf.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_rr.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_rr.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_soa.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_soa.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_srv.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_srv.h mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_txt.c mode change 100644 => 100755 tinyNET/src/dns/tnet_dns_txt.h mode change 100644 => 100755 tinyNET/src/ice/tnet_ice.c mode change 100644 => 100755 tinyNET/src/ice/tnet_ice.h mode change 100644 => 100755 tinyNET/src/ice/tnet_ice_candidate.c mode change 100644 => 100755 tinyNET/src/ice/tnet_ice_candidate.h mode change 100644 => 100755 tinyNET/src/ice/tnet_ice_ctx.c mode change 100644 => 100755 tinyNET/src/ice/tnet_ice_ctx.h mode change 100644 => 100755 tinyNET/src/ice/tnet_ice_event.c mode change 100644 => 100755 tinyNET/src/ice/tnet_ice_event.h mode change 100644 => 100755 tinyNET/src/ice/tnet_ice_pair.c mode change 100644 => 100755 tinyNET/src/ice/tnet_ice_pair.h mode change 100644 => 100755 tinyNET/src/ice/tnet_ice_utils.c mode change 100644 => 100755 tinyNET/src/ice/tnet_ice_utils.h mode change 100644 => 100755 tinyNET/src/stun/AStyle.sh mode change 100644 => 100755 tinyNET/src/stun/tnet_stun.c mode change 100644 => 100755 tinyNET/src/stun/tnet_stun.h mode change 100644 => 100755 tinyNET/src/stun/tnet_stun_attr.c mode change 100644 => 100755 tinyNET/src/stun/tnet_stun_attr.h mode change 100644 => 100755 tinyNET/src/stun/tnet_stun_attribute.c mode change 100644 => 100755 tinyNET/src/stun/tnet_stun_attribute.h mode change 100644 => 100755 tinyNET/src/stun/tnet_stun_binding.c mode change 100644 => 100755 tinyNET/src/stun/tnet_stun_binding.h mode change 100644 => 100755 tinyNET/src/stun/tnet_stun_message.c mode change 100644 => 100755 tinyNET/src/stun/tnet_stun_message.h mode change 100644 => 100755 tinyNET/src/stun/tnet_stun_pkt.c mode change 100644 => 100755 tinyNET/src/stun/tnet_stun_pkt.h mode change 100644 => 100755 tinyNET/src/stun/tnet_stun_types.h mode change 100644 => 100755 tinyNET/src/stun/tnet_stun_utils.c mode change 100644 => 100755 tinyNET/src/stun/tnet_stun_utils.h mode change 100644 => 100755 tinyNET/src/tinynet.h mode change 100644 => 100755 tinyNET/src/tinynet_config.h mode change 100644 => 100755 tinyNET/src/tls/tnet_dtls.c mode change 100644 => 100755 tinyNET/src/tls/tnet_dtls.h mode change 100644 => 100755 tinyNET/src/tls/tnet_tls.c mode change 100644 => 100755 tinyNET/src/tls/tnet_tls.h mode change 100644 => 100755 tinyNET/src/tnet.c mode change 100644 => 100755 tinyNET/src/tnet.h mode change 100644 => 100755 tinyNET/src/tnet_auth.c mode change 100644 => 100755 tinyNET/src/tnet_auth.h mode change 100644 => 100755 tinyNET/src/tnet_endianness.c mode change 100644 => 100755 tinyNET/src/tnet_endianness.h mode change 100644 => 100755 tinyNET/src/tnet_hardwares.h mode change 100644 => 100755 tinyNET/src/tnet_nat.c mode change 100644 => 100755 tinyNET/src/tnet_nat.h mode change 100644 => 100755 tinyNET/src/tnet_poll.c mode change 100644 => 100755 tinyNET/src/tnet_poll.h mode change 100644 => 100755 tinyNET/src/tnet_proto.h mode change 100644 => 100755 tinyNET/src/tnet_proxy_node_socks_plugin.c mode change 100644 => 100755 tinyNET/src/tnet_proxy_node_socks_plugin.h mode change 100644 => 100755 tinyNET/src/tnet_proxy_plugin.c mode change 100644 => 100755 tinyNET/src/tnet_proxy_plugin.h mode change 100644 => 100755 tinyNET/src/tnet_proxydetect.c mode change 100644 => 100755 tinyNET/src/tnet_proxydetect.h mode change 100644 => 100755 tinyNET/src/tnet_socket.c mode change 100644 => 100755 tinyNET/src/tnet_socket.h mode change 100644 => 100755 tinyNET/src/tnet_transport.c mode change 100644 => 100755 tinyNET/src/tnet_transport.h mode change 100644 => 100755 tinyNET/src/tnet_transport_cfsocket.c mode change 100644 => 100755 tinyNET/src/tnet_transport_poll.c mode change 100644 => 100755 tinyNET/src/tnet_transport_win32.c mode change 100644 => 100755 tinyNET/src/tnet_types.h mode change 100644 => 100755 tinyNET/src/tnet_utils.c mode change 100644 => 100755 tinyNET/src/tnet_utils.h mode change 100644 => 100755 tinyNET/src/turn/tnet_turn.c mode change 100644 => 100755 tinyNET/src/turn/tnet_turn.h mode change 100644 => 100755 tinyNET/src/turn/tnet_turn_attr.c mode change 100644 => 100755 tinyNET/src/turn/tnet_turn_attr.h mode change 100644 => 100755 tinyNET/src/turn/tnet_turn_attribute.c mode change 100644 => 100755 tinyNET/src/turn/tnet_turn_attribute.h mode change 100644 => 100755 tinyNET/src/turn/tnet_turn_message.c mode change 100644 => 100755 tinyNET/src/turn/tnet_turn_message.h mode change 100644 => 100755 tinyNET/src/turn/tnet_turn_session.c mode change 100644 => 100755 tinyNET/src/turn/tnet_turn_session.h (limited to 'tinyNET/src') diff --git a/tinyNET/src/dhcp/tnet_dhcp.c b/tinyNET/src/dhcp/tnet_dhcp.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dhcp/tnet_dhcp.h b/tinyNET/src/dhcp/tnet_dhcp.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dhcp/tnet_dhcp_message.c b/tinyNET/src/dhcp/tnet_dhcp_message.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dhcp/tnet_dhcp_message.h b/tinyNET/src/dhcp/tnet_dhcp_message.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dhcp/tnet_dhcp_option.c b/tinyNET/src/dhcp/tnet_dhcp_option.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dhcp/tnet_dhcp_option.h b/tinyNET/src/dhcp/tnet_dhcp_option.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dhcp/tnet_dhcp_option_sip.c b/tinyNET/src/dhcp/tnet_dhcp_option_sip.c old mode 100644 new mode 100755 index dd28953..0c763fb --- a/tinyNET/src/dhcp/tnet_dhcp_option_sip.c +++ b/tinyNET/src/dhcp/tnet_dhcp_option_sip.c @@ -93,7 +93,7 @@ static tsk_object_t* tnet_dhcp_option_sip_ctor(tsk_object_t * self, va_list * ap while(payloadPtr < payloadEnd){ ++payloadPtr; - address = tnet_htonl_2(payloadPtr); + address = (uint32_t)tnet_htonl_2(payloadPtr); tsk_sprintf(&ip4, "%u.%u.%u.%u", (address>>24)&0xFF, (address>>16)&0xFF, (address>>8)&0xFF, (address>>0)&0xFF); diff --git a/tinyNET/src/dhcp/tnet_dhcp_option_sip.h b/tinyNET/src/dhcp/tnet_dhcp_option_sip.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dhcp6/tnet_dhcp6.c b/tinyNET/src/dhcp6/tnet_dhcp6.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dhcp6/tnet_dhcp6.h b/tinyNET/src/dhcp6/tnet_dhcp6.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dhcp6/tnet_dhcp6_duid.c b/tinyNET/src/dhcp6/tnet_dhcp6_duid.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dhcp6/tnet_dhcp6_duid.h b/tinyNET/src/dhcp6/tnet_dhcp6_duid.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dhcp6/tnet_dhcp6_message.c b/tinyNET/src/dhcp6/tnet_dhcp6_message.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dhcp6/tnet_dhcp6_message.h b/tinyNET/src/dhcp6/tnet_dhcp6_message.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dhcp6/tnet_dhcp6_option.c b/tinyNET/src/dhcp6/tnet_dhcp6_option.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dhcp6/tnet_dhcp6_option.h b/tinyNET/src/dhcp6/tnet_dhcp6_option.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns.c b/tinyNET/src/dns/tnet_dns.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns.h b/tinyNET/src/dns/tnet_dns.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_a.c b/tinyNET/src/dns/tnet_dns_a.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_a.h b/tinyNET/src/dns/tnet_dns_a.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_aaaa.c b/tinyNET/src/dns/tnet_dns_aaaa.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_aaaa.h b/tinyNET/src/dns/tnet_dns_aaaa.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_cname.c b/tinyNET/src/dns/tnet_dns_cname.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_cname.h b/tinyNET/src/dns/tnet_dns_cname.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_message.c b/tinyNET/src/dns/tnet_dns_message.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_message.h b/tinyNET/src/dns/tnet_dns_message.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_mx.c b/tinyNET/src/dns/tnet_dns_mx.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_mx.h b/tinyNET/src/dns/tnet_dns_mx.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_naptr.c b/tinyNET/src/dns/tnet_dns_naptr.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_naptr.h b/tinyNET/src/dns/tnet_dns_naptr.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_ns.c b/tinyNET/src/dns/tnet_dns_ns.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_ns.h b/tinyNET/src/dns/tnet_dns_ns.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_opt.c b/tinyNET/src/dns/tnet_dns_opt.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_opt.h b/tinyNET/src/dns/tnet_dns_opt.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_ptr.c b/tinyNET/src/dns/tnet_dns_ptr.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_ptr.h b/tinyNET/src/dns/tnet_dns_ptr.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_regexp.c b/tinyNET/src/dns/tnet_dns_regexp.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_regexp.h b/tinyNET/src/dns/tnet_dns_regexp.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_resolvconf.c b/tinyNET/src/dns/tnet_dns_resolvconf.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_resolvconf.h b/tinyNET/src/dns/tnet_dns_resolvconf.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_rr.c b/tinyNET/src/dns/tnet_dns_rr.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_rr.h b/tinyNET/src/dns/tnet_dns_rr.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_soa.c b/tinyNET/src/dns/tnet_dns_soa.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_soa.h b/tinyNET/src/dns/tnet_dns_soa.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_srv.c b/tinyNET/src/dns/tnet_dns_srv.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_srv.h b/tinyNET/src/dns/tnet_dns_srv.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_txt.c b/tinyNET/src/dns/tnet_dns_txt.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/dns/tnet_dns_txt.h b/tinyNET/src/dns/tnet_dns_txt.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/ice/tnet_ice.c b/tinyNET/src/ice/tnet_ice.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/ice/tnet_ice.h b/tinyNET/src/ice/tnet_ice.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/ice/tnet_ice_candidate.c b/tinyNET/src/ice/tnet_ice_candidate.c old mode 100644 new mode 100755 index 6dba738..bb75b33 --- a/tinyNET/src/ice/tnet_ice_candidate.c +++ b/tinyNET/src/ice/tnet_ice_candidate.c @@ -437,10 +437,10 @@ int tnet_ice_candidate_process_stun_response(tnet_ice_candidate_t* self, const t } } if ((ret = tnet_stun_pkt_attr_find_first(response, tnet_stun_attr_type_nonce, (const tnet_stun_attr_t**)&pc_attr)) == 0 && pc_attr) { - tsk_strupdate(&self->stun.nonce, pc_attr->p_data_ptr); + tsk_strupdate(&self->stun.nonce, (const char*)pc_attr->p_data_ptr); } if ((ret = tnet_stun_pkt_attr_find_first(response, tnet_stun_attr_type_realm, (const tnet_stun_attr_t**)&pc_attr)) == 0 && pc_attr) { - tsk_strupdate(&self->stun.realm, pc_attr->p_data_ptr); + tsk_strupdate(&self->stun.realm, (const char*)pc_attr->p_data_ptr); } return 0; } diff --git a/tinyNET/src/ice/tnet_ice_candidate.h b/tinyNET/src/ice/tnet_ice_candidate.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/ice/tnet_ice_ctx.c b/tinyNET/src/ice/tnet_ice_ctx.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/ice/tnet_ice_ctx.h b/tinyNET/src/ice/tnet_ice_ctx.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/ice/tnet_ice_event.c b/tinyNET/src/ice/tnet_ice_event.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/ice/tnet_ice_event.h b/tinyNET/src/ice/tnet_ice_event.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/ice/tnet_ice_pair.c b/tinyNET/src/ice/tnet_ice_pair.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/ice/tnet_ice_pair.h b/tinyNET/src/ice/tnet_ice_pair.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/ice/tnet_ice_utils.c b/tinyNET/src/ice/tnet_ice_utils.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/ice/tnet_ice_utils.h b/tinyNET/src/ice/tnet_ice_utils.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/AStyle.sh b/tinyNET/src/stun/AStyle.sh old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun.c b/tinyNET/src/stun/tnet_stun.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun.h b/tinyNET/src/stun/tnet_stun.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun_attr.c b/tinyNET/src/stun/tnet_stun_attr.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun_attr.h b/tinyNET/src/stun/tnet_stun_attr.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun_attribute.c b/tinyNET/src/stun/tnet_stun_attribute.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun_attribute.h b/tinyNET/src/stun/tnet_stun_attribute.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun_binding.c b/tinyNET/src/stun/tnet_stun_binding.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun_binding.h b/tinyNET/src/stun/tnet_stun_binding.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun_message.c b/tinyNET/src/stun/tnet_stun_message.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun_message.h b/tinyNET/src/stun/tnet_stun_message.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun_pkt.c b/tinyNET/src/stun/tnet_stun_pkt.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun_pkt.h b/tinyNET/src/stun/tnet_stun_pkt.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun_types.h b/tinyNET/src/stun/tnet_stun_types.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun_utils.c b/tinyNET/src/stun/tnet_stun_utils.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/stun/tnet_stun_utils.h b/tinyNET/src/stun/tnet_stun_utils.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tinynet.h b/tinyNET/src/tinynet.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tinynet_config.h b/tinyNET/src/tinynet_config.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tls/tnet_dtls.c b/tinyNET/src/tls/tnet_dtls.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tls/tnet_dtls.h b/tinyNET/src/tls/tnet_dtls.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tls/tnet_tls.c b/tinyNET/src/tls/tnet_tls.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tls/tnet_tls.h b/tinyNET/src/tls/tnet_tls.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet.c b/tinyNET/src/tnet.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet.h b/tinyNET/src/tnet.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_auth.c b/tinyNET/src/tnet_auth.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_auth.h b/tinyNET/src/tnet_auth.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_endianness.c b/tinyNET/src/tnet_endianness.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_endianness.h b/tinyNET/src/tnet_endianness.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_hardwares.h b/tinyNET/src/tnet_hardwares.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_nat.c b/tinyNET/src/tnet_nat.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_nat.h b/tinyNET/src/tnet_nat.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_poll.c b/tinyNET/src/tnet_poll.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_poll.h b/tinyNET/src/tnet_poll.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_proto.h b/tinyNET/src/tnet_proto.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_proxy_node_socks_plugin.c b/tinyNET/src/tnet_proxy_node_socks_plugin.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_proxy_node_socks_plugin.h b/tinyNET/src/tnet_proxy_node_socks_plugin.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_proxy_plugin.c b/tinyNET/src/tnet_proxy_plugin.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_proxy_plugin.h b/tinyNET/src/tnet_proxy_plugin.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_proxydetect.c b/tinyNET/src/tnet_proxydetect.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_proxydetect.h b/tinyNET/src/tnet_proxydetect.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_socket.c b/tinyNET/src/tnet_socket.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_socket.h b/tinyNET/src/tnet_socket.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_transport.c b/tinyNET/src/tnet_transport.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_transport.h b/tinyNET/src/tnet_transport.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_transport_cfsocket.c b/tinyNET/src/tnet_transport_cfsocket.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_transport_poll.c b/tinyNET/src/tnet_transport_poll.c old mode 100644 new mode 100755 index 7ee6509..0774823 --- a/tinyNET/src/tnet_transport_poll.c +++ b/tinyNET/src/tnet_transport_poll.c @@ -340,7 +340,7 @@ int addSocket(tnet_fd_t fd, tnet_socket_type_t type, tnet_transport_t *transport context->ufds[context->count].fd = fd; context->ufds[context->count].events = (fd == context->pipeR) ? TNET_POLLIN : (TNET_POLLIN | TNET_POLLNVAL | TNET_POLLERR); - if(TNET_SOCKET_TYPE_IS_STREAM(sock->type)){ + if(TNET_SOCKET_TYPE_IS_STREAM(sock->type) && fd != context->pipeR){ context->ufds[context->count].events |= TNET_POLLOUT; // emulate WinSock2 FD_CONNECT event } context->ufds[context->count].revents = 0; @@ -350,7 +350,7 @@ int addSocket(tnet_fd_t fd, tnet_socket_type_t type, tnet_transport_t *transport tsk_safeobj_unlock(context); - TSK_DEBUG_INFO("Socket added[%s]: fd=%d, tail.count=%d", transport->description, fd, context->count); + TSK_DEBUG_INFO("Socket added[%s]: fd=%d, tail.count=%d", transport->description, fd, (int)context->count); return 0; } @@ -384,7 +384,7 @@ int removeSocket(int index, transport_context_t *context) if(index < (int)context->count){ /* Close the socket if we are the owner. */ - TSK_DEBUG_INFO("Socket to remove: fd=%d, index=%d, tail.count=%d", context->sockets[index]->fd, index, context->count); + TSK_DEBUG_INFO("Socket to remove: fd=%d, index=%d, tail.count=%d", context->sockets[index]->fd, index, (int)context->count); if(context->sockets[index]->owner){ // do not close the socket while it's being poll()ed // http://stackoverflow.com/questions/5039608/poll-cant-detect-event-when-socket-is-closed-locally @@ -587,12 +587,13 @@ void *tnet_transport_mainthread(void *param) is_stream = TNET_SOCKET_TYPE_IS_STREAM(transport->master->type); - TSK_DEBUG_INFO("Starting [%s] server with IP {%s} on port {%d} using fd {%d} with type {%d}...", + TSK_DEBUG_INFO("Starting [%s] server with IP {%s} on port {%d} using master fd {%d} with type {%d} with max_fds {%lu}...", transport->description, transport->master->ip, transport->master->port, transport->master->fd, - transport->master->type); + transport->master->type, + sizeof(context->ufds)/sizeof(context->ufds[0])); while(TSK_RUNNABLE(transport)->running || TSK_RUNNABLE(transport)->started){ context->polling = tsk_true; @@ -700,7 +701,7 @@ void *tnet_transport_mainthread(void *param) int listening = 0, remove_socket = 0; socklen_t socklen = sizeof(listening); - TSK_DEBUG_INFO("ioctlt(%d), len=%u returned zero or failed", active_socket->fd, len); + TSK_DEBUG_INFO("ioctlt(%d), len=%u returned zero or failed", active_socket->fd, (unsigned)len); // check if socket is listening if(getsockopt(active_socket->fd, SOL_SOCKET, SO_ACCEPTCONN, &listening, &socklen) != 0){ diff --git a/tinyNET/src/tnet_transport_win32.c b/tinyNET/src/tnet_transport_win32.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_types.h b/tinyNET/src/tnet_types.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_utils.c b/tinyNET/src/tnet_utils.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/tnet_utils.h b/tinyNET/src/tnet_utils.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/turn/tnet_turn.c b/tinyNET/src/turn/tnet_turn.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/turn/tnet_turn.h b/tinyNET/src/turn/tnet_turn.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/turn/tnet_turn_attr.c b/tinyNET/src/turn/tnet_turn_attr.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/turn/tnet_turn_attr.h b/tinyNET/src/turn/tnet_turn_attr.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/turn/tnet_turn_attribute.c b/tinyNET/src/turn/tnet_turn_attribute.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/turn/tnet_turn_attribute.h b/tinyNET/src/turn/tnet_turn_attribute.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/turn/tnet_turn_message.c b/tinyNET/src/turn/tnet_turn_message.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/turn/tnet_turn_message.h b/tinyNET/src/turn/tnet_turn_message.h old mode 100644 new mode 100755 diff --git a/tinyNET/src/turn/tnet_turn_session.c b/tinyNET/src/turn/tnet_turn_session.c old mode 100644 new mode 100755 diff --git a/tinyNET/src/turn/tnet_turn_session.h b/tinyNET/src/turn/tnet_turn_session.h old mode 100644 new mode 100755 -- cgit v1.1