extern ARRAY8Ptr ChooseAuthentication ();
extern int SelectConnectionTypeIndex ();
-void query_respond (from, fromlen, length);
+void query_respond (struct sockaddr *from, int fromlen, int length);
void broadcast_respond (struct sockaddr *from, int fromlen, int length);
void forward_respond (struct sockaddr *from, int fromlen, int length);
void request_respond (struct sockaddr *from, int fromlen, int length);
default:
return 0;
}
- XdmcpFlush (xdmcpFd, &buffer, addr, addrlen);
+ XdmcpFlush (xdmcpFd, &buffer, (XdmcpNetaddr)addr, addrlen);
return 0;
}
Debug ("ProcessRequestSocket\n");
bzero ((char *) &addr, sizeof (addr));
- if (!XdmcpFill (xdmcpFd, &buffer, &addr, &addrlen)) {
+ if (!XdmcpFill (xdmcpFd, &buffer, (XdmcpNetaddr)&addr, &addrlen)) {
Debug ("XdmcpFill failed\n");
return;
}
switch (header.opcode)
{
case BROADCAST_QUERY:
- broadcast_respond (&addr, addrlen, header.length);
+ broadcast_respond ((struct sockaddr *)&addr, addrlen, header.length);
break;
case QUERY:
- query_respond (&addr, addrlen, header.length);
+ query_respond ((struct sockaddr *)&addr, addrlen, header.length);
break;
case INDIRECT_QUERY:
- indirect_respond (&addr, addrlen, header.length);
+ indirect_respond ((struct sockaddr *)&addr, addrlen, header.length);
break;
case FORWARD_QUERY:
- forward_respond (&addr, addrlen, header.length);
+ forward_respond ((struct sockaddr *)&addr, addrlen, header.length);
break;
case REQUEST:
- request_respond (&addr, addrlen, header.length);
+ request_respond ((struct sockaddr *)&addr, addrlen, header.length);
break;
case MANAGE:
- manage (&addr, addrlen, header.length);
+ manage ((struct sockaddr *)&addr, addrlen, header.length);
break;
case KEEPALIVE:
- send_alive (&addr, addrlen, header.length);
+ send_alive ((struct sockaddr *)&addr, addrlen, header.length);
break;
}
}
XdmcpWriteARRAY8 (&buffer, authenticationName);
XdmcpWriteARRAY8 (&buffer, &Hostname);
XdmcpWriteARRAY8 (&buffer, status);
- XdmcpFlush (xdmcpFd, &buffer, from, fromlen);
+ XdmcpFlush (xdmcpFd, &buffer, (XdmcpNetaddr)from, fromlen);
}
void
XdmcpWriteHeader (&buffer, &header);
XdmcpWriteARRAY8 (&buffer, &Hostname);
XdmcpWriteARRAY8 (&buffer, status);
- XdmcpFlush (xdmcpFd, &buffer, from, fromlen);
+ XdmcpFlush (xdmcpFd, &buffer, (XdmcpNetaddr)from, fromlen);
}
static unsigned long globalSessionID;
XdmcpWriteARRAY8 (&buffer, authenticationData);
XdmcpWriteARRAY8 (&buffer, authorizationName);
XdmcpWriteARRAY8 (&buffer, authorizationData);
- XdmcpFlush (xdmcpFd, &buffer, to, tolen);
+ XdmcpFlush (xdmcpFd, &buffer, (XdmcpNetaddr)to, tolen);
}
void
XdmcpWriteARRAY8 (&buffer, status);
XdmcpWriteARRAY8 (&buffer, authenticationName);
XdmcpWriteARRAY8 (&buffer, authenticationData);
- XdmcpFlush (xdmcpFd, &buffer, to, tolen);
+ XdmcpFlush (xdmcpFd, &buffer, (XdmcpNetaddr)to, tolen);
}
void
XdmcpWriteHeader (&buffer, &header);
XdmcpWriteCARD32 (&buffer, sessionID);
XdmcpWriteARRAY8 (&buffer, &status);
- XdmcpFlush (xdmcpFd, &buffer, from, fromlen);
+ XdmcpFlush (xdmcpFd, &buffer, (XdmcpNetaddr)from, fromlen);
}
void
header.length = 4;
XdmcpWriteHeader (&buffer, &header);
XdmcpWriteCARD32 (&buffer, sessionID);
- XdmcpFlush (xdmcpFd, &buffer, from, fromlen);
+ XdmcpFlush (xdmcpFd, &buffer, (XdmcpNetaddr)from, fromlen);
}
void
XdmcpWriteHeader (&buffer, &header);
XdmcpWriteCARD8 (&buffer, sendRunning);
XdmcpWriteCARD32 (&buffer, sendSessionID);
- XdmcpFlush (xdmcpFd, &buffer, from, fromlen);
+ XdmcpFlush (xdmcpFd, &buffer, (XdmcpNetaddr)from, fromlen);
}
}
}