mon.c (8a84fc15ae5cafcc366dd85cf8e1ab2040679abc) | mon.c (e9ff3990f08e9a0c2839cc22808b01732ea5b3e4) |
---|---|
1/* 2 * linux/fs/lockd/mon.c 3 * 4 * The kernel statd client. 5 * 6 * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de> 7 */ 8 --- 131 unchanged lines hidden (view full) --- 140 /* 141 * Use the dotted-quad IP address of the remote host as 142 * identifier. Linux statd always looks up the canonical 143 * hostname first for whatever remote hostname it receives, 144 * so this works alright. 145 */ 146 sprintf(buffer, "%u.%u.%u.%u", NIPQUAD(argp->addr)); 147 if (!(p = xdr_encode_string(p, buffer)) | 1/* 2 * linux/fs/lockd/mon.c 3 * 4 * The kernel statd client. 5 * 6 * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de> 7 */ 8 --- 131 unchanged lines hidden (view full) --- 140 /* 141 * Use the dotted-quad IP address of the remote host as 142 * identifier. Linux statd always looks up the canonical 143 * hostname first for whatever remote hostname it receives, 144 * so this works alright. 145 */ 146 sprintf(buffer, "%u.%u.%u.%u", NIPQUAD(argp->addr)); 147 if (!(p = xdr_encode_string(p, buffer)) |
148 || !(p = xdr_encode_string(p, system_utsname.nodename))) | 148 || !(p = xdr_encode_string(p, utsname()->nodename))) |
149 return ERR_PTR(-EIO); 150 *p++ = htonl(argp->prog); 151 *p++ = htonl(argp->vers); 152 *p++ = htonl(argp->proc); 153 154 return p; 155} 156 --- 90 unchanged lines hidden --- | 149 return ERR_PTR(-EIO); 150 *p++ = htonl(argp->prog); 151 *p++ = htonl(argp->vers); 152 *p++ = htonl(argp->proc); 153 154 return p; 155} 156 --- 90 unchanged lines hidden --- |