"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/ws2_32/socket.c" between
wine-5.12.tar.xz and wine-5.13.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs. Development release.

socket.c  (wine-5.12.tar.xz):socket.c  (wine-5.13.tar.xz)
skipping to change at line 4550 skipping to change at line 4550
IOCTL_NAME(WS_SIO_CHK_QOS); */ IOCTL_NAME(WS_SIO_CHK_QOS); */
IOCTL_NAME(WS_SIO_ENABLE_CIRCULAR_QUEUEING); IOCTL_NAME(WS_SIO_ENABLE_CIRCULAR_QUEUEING);
IOCTL_NAME(WS_SIO_FIND_ROUTE); IOCTL_NAME(WS_SIO_FIND_ROUTE);
IOCTL_NAME(WS_SIO_FLUSH); IOCTL_NAME(WS_SIO_FLUSH);
IOCTL_NAME(WS_SIO_GET_BROADCAST_ADDRESS); IOCTL_NAME(WS_SIO_GET_BROADCAST_ADDRESS);
IOCTL_NAME(WS_SIO_GET_EXTENSION_FUNCTION_POINTER); IOCTL_NAME(WS_SIO_GET_EXTENSION_FUNCTION_POINTER);
IOCTL_NAME(WS_SIO_GET_GROUP_QOS); IOCTL_NAME(WS_SIO_GET_GROUP_QOS);
IOCTL_NAME(WS_SIO_GET_INTERFACE_LIST); IOCTL_NAME(WS_SIO_GET_INTERFACE_LIST);
/* IOCTL_NAME(WS_SIO_GET_INTERFACE_LIST_EX); */ /* IOCTL_NAME(WS_SIO_GET_INTERFACE_LIST_EX); */
IOCTL_NAME(WS_SIO_GET_QOS); IOCTL_NAME(WS_SIO_GET_QOS);
/* IOCTL_NAME(WS_SIO_IDEAL_SEND_BACKLOG_CHANGE); IOCTL_NAME(WS_SIO_IDEAL_SEND_BACKLOG_CHANGE);
IOCTL_NAME(WS_SIO_IDEAL_SEND_BACKLOG_QUERY); */ IOCTL_NAME(WS_SIO_IDEAL_SEND_BACKLOG_QUERY);
IOCTL_NAME(WS_SIO_KEEPALIVE_VALS); IOCTL_NAME(WS_SIO_KEEPALIVE_VALS);
IOCTL_NAME(WS_SIO_MULTIPOINT_LOOPBACK); IOCTL_NAME(WS_SIO_MULTIPOINT_LOOPBACK);
IOCTL_NAME(WS_SIO_MULTICAST_SCOPE); IOCTL_NAME(WS_SIO_MULTICAST_SCOPE);
/* IOCTL_NAME(WS_SIO_QUERY_RSS_SCALABILITY_INFO); /* IOCTL_NAME(WS_SIO_QUERY_RSS_SCALABILITY_INFO);
IOCTL_NAME(WS_SIO_QUERY_WFP_ALE_ENDPOINT_HANDLE); */ IOCTL_NAME(WS_SIO_QUERY_WFP_ALE_ENDPOINT_HANDLE); */
IOCTL_NAME(WS_SIO_RCVALL); IOCTL_NAME(WS_SIO_RCVALL);
IOCTL_NAME(WS_SIO_RCVALL_IGMPMCAST); IOCTL_NAME(WS_SIO_RCVALL_IGMPMCAST);
IOCTL_NAME(WS_SIO_RCVALL_MCAST); IOCTL_NAME(WS_SIO_RCVALL_MCAST);
/* IOCTL_NAME(WS_SIO_RELEASE_PORT_RESERVATION); */ /* IOCTL_NAME(WS_SIO_RELEASE_PORT_RESERVATION); */
IOCTL_NAME(WS_SIO_ROUTING_INTERFACE_CHANGE); IOCTL_NAME(WS_SIO_ROUTING_INTERFACE_CHANGE);
skipping to change at line 6500 skipping to change at line 6500
memcpy(retval->h_addr_list[0], magic_loopback_addr, 4); memcpy(retval->h_addr_list[0], magic_loopback_addr, 4);
} }
TRACE( "%s ret %p\n", debugstr_a(name), retval ); TRACE( "%s ret %p\n", debugstr_a(name), retval );
return retval; return retval;
} }
static const struct { int prot; const char *names[3]; } protocols[] = static const struct { int prot; const char *names[3]; } protocols[] =
{ {
{ 0, { "ip", "IP" }}, { 0, { "ip", "IP" }},
{ 1, { "icmp", "ICMP" }}, { 1, { "icmp", "ICMP" }},
{ 2, { "igmp", "IGMP" }},
{ 3, { "ggp", "GGP" }}, { 3, { "ggp", "GGP" }},
{ 6, { "tcp", "TCP" }}, { 6, { "tcp", "TCP" }},
{ 8, { "egp", "EGP" }}, { 8, { "egp", "EGP" }},
{ 9, { "igp", "IGP" }},
{ 12, { "pup", "PUP" }}, { 12, { "pup", "PUP" }},
{ 17, { "udp", "UDP" }}, { 17, { "udp", "UDP" }},
{ 20, { "hmp", "HMP" }}, { 20, { "hmp", "HMP" }},
{ 22, { "xns-idp", "XNS-IDP" }}, { 22, { "xns-idp", "XNS-IDP" }},
{ 27, { "rdp", "RDP" }}, { 27, { "rdp", "RDP" }},
{ 29, { "iso-tp4", "ISO-TP4" }},
{ 33, { "dccp", "DCCP" }},
{ 36, { "xtp", "XTP" }},
{ 37, { "ddp", "DDP" }},
{ 38, { "idpr-cmtp", "IDPR-CMTP" }},
{ 41, { "ipv6", "IPv6" }}, { 41, { "ipv6", "IPv6" }},
{ 43, { "ipv6-route", "IPv6-Route" }}, { 43, { "ipv6-route", "IPv6-Route" }},
{ 44, { "ipv6-frag", "IPv6-Frag" }}, { 44, { "ipv6-frag", "IPv6-Frag" }},
{ 45, { "idrp", "IDRP" }},
{ 46, { "rsvp", "RSVP" }},
{ 47, { "gre", "GRE" }},
{ 50, { "esp", "ESP" }}, { 50, { "esp", "ESP" }},
{ 51, { "ah", "AH" }}, { 51, { "ah", "AH" }},
{ 57, { "skip", "SKIP" }},
{ 58, { "ipv6-icmp", "IPv6-ICMP" }}, { 58, { "ipv6-icmp", "IPv6-ICMP" }},
{ 59, { "ipv6-nonxt", "IPv6-NoNxt" }}, { 59, { "ipv6-nonxt", "IPv6-NoNxt" }},
{ 60, { "ipv6-opts", "IPv6-Opts" }}, { 60, { "ipv6-opts", "IPv6-Opts" }},
{ 66, { "rvd", "RVD" }}, { 66, { "rvd", "RVD" }},
{ 73, { "rspf", "RSPF" }},
{ 81, { "vmtp", "VMTP" }},
{ 88, { "eigrp", "EIGRP" }},
{ 89, { "ospf", "OSPFIGP" }},
{ 93, { "ax.25", "AX.25" }},
{ 94, { "ipip", "IPIP" }},
{ 97, { "etherip", "ETHERIP" }},
{ 98, { "encap", "ENCAP" }},
{ 103, { "pim", "PIM" }},
{ 108, { "ipcomp", "IPCOMP" }},
{ 112, { "vrrp", "VRRP" }},
{ 115, { "l2tp", "L2TP" }},
{ 124, { "isis", "ISIS" }},
{ 132, { "sctp", "SCTP" }},
{ 133, { "fc", "FC" }},
{ 135, { "mobility-header", "Mobility-Header" }},
{ 136, { "udplite", "UDPLite" }},
{ 137, { "mpls-in-ip", "MPLS-in-IP" }},
{ 139, { "hip", "HIP" }},
{ 140, { "shim6", "Shim6" }},
{ 141, { "wesp", "WESP" }},
{ 142, { "rohc", "ROHC" }},
}; };
/*********************************************************************** /***********************************************************************
* getprotobyname (WS2_32.53) * getprotobyname (WS2_32.53)
*/ */
struct WS_protoent* WINAPI WS_getprotobyname(const char* name) struct WS_protoent* WINAPI WS_getprotobyname(const char* name)
{ {
struct WS_protoent* retval = NULL; struct WS_protoent* retval = NULL;
#ifdef HAVE_GETPROTOBYNAME unsigned int i;
struct protoent* proto;
EnterCriticalSection( &csWSgetXXXbyYYY ); for (i = 0; i < ARRAY_SIZE(protocols); i++)
if( (proto = getprotobyname(name)) != NULL )
retval = WS_create_pe( proto->p_name, proto->p_aliases, proto->p_proto )
;
LeaveCriticalSection( &csWSgetXXXbyYYY );
#endif
if (!retval)
{ {
unsigned int i; if (_strnicmp( protocols[i].names[0], name, -1 )) continue;
for (i = 0; i < ARRAY_SIZE(protocols); i++) retval = WS_create_pe( protocols[i].names[0], (char **)protocols[i].name
{ s + 1,
if (_strnicmp( protocols[i].names[0], name, -1 )) continue; protocols[i].prot );
retval = WS_create_pe( protocols[i].names[0], (char **)protocols[i]. break;
names + 1,
protocols[i].prot );
break;
}
} }
if (!retval) if (!retval)
{ {
WARN( "protocol %s not found\n", debugstr_a(name) ); WARN( "protocol %s not found\n", debugstr_a(name) );
SetLastError(WSANO_DATA); SetLastError(WSANO_DATA);
} }
TRACE( "%s ret %p\n", debugstr_a(name), retval ); TRACE( "%s ret %p\n", debugstr_a(name), retval );
return retval; return retval;
} }
/*********************************************************************** /***********************************************************************
* getprotobynumber (WS2_32.54) * getprotobynumber (WS2_32.54)
*/ */
struct WS_protoent* WINAPI WS_getprotobynumber(int number) struct WS_protoent* WINAPI WS_getprotobynumber(int number)
{ {
struct WS_protoent* retval = NULL; struct WS_protoent* retval = NULL;
#ifdef HAVE_GETPROTOBYNUMBER unsigned int i;
struct protoent* proto;
EnterCriticalSection( &csWSgetXXXbyYYY ); for (i = 0; i < ARRAY_SIZE(protocols); i++)
if( (proto = getprotobynumber(number)) != NULL )
retval = WS_create_pe( proto->p_name, proto->p_aliases, proto->p_proto )
;
LeaveCriticalSection( &csWSgetXXXbyYYY );
#endif
if (!retval)
{ {
unsigned int i; if (protocols[i].prot != number) continue;
for (i = 0; i < ARRAY_SIZE(protocols); i++) retval = WS_create_pe( protocols[i].names[0], (char **)protocols[i].name
{ s + 1,
if (protocols[i].prot != number) continue; protocols[i].prot );
retval = WS_create_pe( protocols[i].names[0], (char **)protocols[i]. break;
names + 1,
protocols[i].prot );
break;
}
} }
if (!retval) if (!retval)
{ {
WARN( "protocol %d not found\n", number ); WARN( "protocol %d not found\n", number );
SetLastError(WSANO_DATA); SetLastError(WSANO_DATA);
} }
TRACE("%i ret %p\n", number, retval); TRACE("%i ret %p\n", number, retval);
return retval; return retval;
} }
 End of changes. 11 change blocks. 
71 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)