Magellan Linux

Diff of /trunk/mkinitrd-magellan/klibc/usr/kinit/nfsmount/sunrpc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 814 by niro, Sat Sep 1 22:45:15 2007 UTC revision 815 by niro, Fri Apr 24 18:32:46 2009 UTC
# Line 55  static void rpc_header(struct client *cl Line 55  static void rpc_header(struct client *cl
55  {  {
56   (void)clnt;   (void)clnt;
57    
58   rpc->call->hdr.frag_hdr = htonl(LAST_FRAG | rpc->call_len);   rpc->call->hdr.frag_hdr = htonl(LAST_FRAG | (rpc->call_len - 4));
59   rpc->call->hdr.udp.xid = lrand48();   rpc->call->hdr.udp.xid = lrand48();
60   rpc->call->hdr.udp.msg_type = htonl(RPC_CALL);   rpc->call->hdr.udp.msg_type = htonl(RPC_CALL);
61   rpc->call->rpc_vers = htonl(2);   rpc->call->rpc_vers = htonl(2);

Legend:
Removed from v.814  
changed lines
  Added in v.815