Displaying 1 result from an estimated 1 matches for "getpkt".
Did you mean:
getpat
2007 Mar 09
2
xen / AOE / vblade
...debug
statements to the vblade server.
It turns out that for some reason the packets were shorter
than vblade expected, and it was ignoring them. I changed the
check for packet length to be if < 32 instead of if < 60, and
voila it works. (in aoe.c)
for (;;) {
n = getpkt(sfd, buf, bufsz);
if (n < 0) {
perror("read network");
exit(1);
}
// if (n < 60) {
if (n < 32) {
// fprintf(stderr,"skipping short read (%d&...