Wednesday, April 1, 2009

BUG FIX

If you have errors compiling because of a struct, replace the following line in sr_vns_comm.c.

memcpy(&(sr->sr_addr.sin_addr),hp->h_addr,hp->h_length);

with

memcpy(&(sr->sr_addr.sin_addr),hp->h_addr_list[0],hp->h_length);

1 comment:

  1. I also had a problem compiling the stub code, using a default kernel with Fedora 9. I grep'd in /usr/include/* and found the struct with h_addr. There is a #ifdef _USE_GNU (or something similar). If you define _USE_GNU make finishes without errors. Going from memory here, so it might not have been _USE_GNU exactly...

    The OS class is good!

    ReplyDelete