Hide menu

TDTS06 Computer Networks

x-kernel Tutorial Errata


TDTS06 Computer Networks: Lab: x-kernel Tutorial Errata

Errors found in the x-kernel Tutorial:

  • Section 3.4: at the end of the first paragraph, after the list of msg operations, the parameters to msgAssign() are in the wrong order; the correct is msgAssign(n, m) (otherwise xDemux will segfault ...)

  • Section 9.3: the retransmit function of the CHAN protocol is erronuosly defined as "static void retransmit(Event ev, int *arg)" The correct definition is "static void retransmit(Event ev, void *arg)" (void instead of int for *arg).

  • Section 9.3: note that the chanPop source code listed here is different from the one in the software distribution. The Tutorial code shows how a variable in the session structure is used to check if it is the client or the server that is calling the chanPop, but doesn't show where it is defined and subsequently set. Where to set the variable? See the hints in the lab instructions, and if you have the Peterson & Davie 2nd Ed. book you can see the Tutorial version of the CHAN code there and where the variable is defined.

Thanks to Claudiu Duma, Christoffer Åstrand, Petter Larsson, and Joachim Persson. To be continued.


Valid HTML 4.01!


Page responsible: Andrei Gurtov
Last updated: 2007-08-16