[PATCH 4/4] nfsclient: Add rpcSetXIDs()

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jun 4 14:18:21 UTC 2013


On 06/04/2013 03:55 PM, Sebastian Huber wrote:
[...]
 > diff --git a/cpukit/libfs/src/nfsclient/src/rpcio.c 
b/cpukit/libfs/src/nfsclient/src/rpcio.c
 > index cddcb32..2b3a798 100644
 > --- a/cpukit/libfs/src/nfsclient/src/rpcio.c
 > +++ b/cpukit/libfs/src/nfsclient/src/rpcio.c
 > @@ -932,6 +932,18 @@ rxWakeupCB(struct socket *sock, void *arg)
 >     rtems_event_send(*rpciod, RPCIOD_RX_EVENT);
 >   }
 >
 > +void
 > +rpcSetXIDs(uint32_t xid)
 > +{
 > +    uint32_t i;
 > +
 > +    xid &= ~XACT_HASHS;

This should be:

xid &= ~XACT_HASH_MSK;

 > +
 > +    for (i = 0; i < XACT_HASHS; ++i) {
 > +        xidUpper[i] = xid | i;
 > +    }
 > +}
 > +
 >   int
 >   rpcUdpInit(void)
 >   {
 >

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list