Lines Matching +full:hp +full:- +full:ux
35 * parsenfsfh.c - portable parser for NFS file handles
45 #include "netdissect-stdinc.h"
51 #include "netdissect-ctype.h"
64 * file-system id, and an internal representation of an inode-number.
86 const char **osnamep, /* if non-NULL, return OS name here */ in Parse_fh()
87 const char **fsnamep, /* if non-NULL, return server fs name here (for VMS) */ in Parse_fh()
96 * Require at least 16 bytes of file handle; it's variable-length in Parse_fh()
97 * in NFSv3. "len" is in units of 32-bit words, not bytes. in Parse_fh()
135 /* probably rules out HP-UX, AIX unless they allow major=0 */ in Parse_fh()
138 /* XXX or could be Ultrix+MASSBUS "hp" disk? */ in Parse_fh()
166 * could be AIX, HP-UX in Parse_fh()
173 * might be HP-UX (depends on their values for minor devs) in Parse_fh()
191 * DECOSF, SUNOS5, IRIX5, AIX, HP-UX, or UCX in Parse_fh()
196 /* could be SUNOS5/IRIX5, AIX, HP-UX */ in Parse_fh()
199 /* XXX is this always true of HP-UX? */ in Parse_fh()
228 fsidp->Fsid_dev.Minor = GET_U_1(fhp + 7); in Parse_fh()
229 fsidp->Fsid_dev.Major = GET_U_1(fhp + 6); in Parse_fh()
230 fsidp->fsid_code = 0; in Parse_fh()
239 fsidp->Fsid_dev.Minor = GET_U_1(fhp); in Parse_fh()
240 fsidp->Fsid_dev.Major = GET_U_1(fhp + 1); in Parse_fh()
241 fsidp->fsid_code = 0; in Parse_fh()
250 fsidp->fsid_code = GET_LE_U_4(fhp + 4); in Parse_fh()
251 /* XXX could ignore 3 high-order bytes */ in Parse_fh()
254 fsidp->Fsid_dev.Minor = temp & 0xFFFFF; in Parse_fh()
255 fsidp->Fsid_dev.Major = (temp>>20) & 0xFFF; in Parse_fh()
263 fsidp->Fsid_dev.Minor = GET_U_1(fhp + 3); in Parse_fh()
264 fsidp->Fsid_dev.Major = GET_U_1(fhp + 2); in Parse_fh()
265 fsidp->fsid_code = 0; in Parse_fh()
274 fsidp->Fsid_dev.Minor = GET_BE_U_2(fhp + 2); in Parse_fh()
275 fsidp->Fsid_dev.Major = GET_BE_U_2(fhp); in Parse_fh()
276 fsidp->fsid_code = GET_BE_U_4(fhp + 4); in Parse_fh()
287 * XXX - none of the heuristics above return this. in Parse_fh()
296 fsidp->Fsid_dev.Minor = GET_U_1(fhp + 3); in Parse_fh()
297 fsidp->Fsid_dev.Major = GET_U_1(fhp + 2); in Parse_fh()
298 fsidp->fsid_code = GET_BE_U_4(fhp + 4); in Parse_fh()
308 fsidp->Fsid_dev.Major = (temp>>2) & 0x3FFF; in Parse_fh()
310 fsidp->Fsid_dev.Minor = temp & 0x3FFFF; in Parse_fh()
311 fsidp->fsid_code = GET_BE_U_4(fhp + 4); in Parse_fh()
320 fsidp->fsid_code = 0; in Parse_fh()
321 fsidp->Fsid_dev.Minor = GET_U_1(fhp); in Parse_fh()
322 fsidp->Fsid_dev.Major = GET_U_1(fhp + 1); in Parse_fh()
331 /* No numeric file system ID, so hash on the device-name */ in Parse_fh()
342 fsidp->Fsid_dev.Minor = tempa[0] + (tempa[1]<<1); in Parse_fh()
343 fsidp->Fsid_dev.Major = tempa[2] + (tempa[3]<<1); in Parse_fh()
344 fsidp->fsid_code = 0; in Parse_fh()
352 /* Caller must save (and null-terminate?) this value */ in Parse_fh()
361 fsidp->Fsid_dev.Minor = GET_BE_U_2(fhp + 2); in Parse_fh()
362 fsidp->Fsid_dev.Major = GET_BE_U_2(fhp); in Parse_fh()
363 fsidp->fsid_code = GET_BE_U_4(fhp + 4); in Parse_fh()
372 fsidp->Fsid_dev.Major = GET_U_1(fhp); in Parse_fh()
374 fsidp->Fsid_dev.Minor = temp; in Parse_fh()
375 fsidp->fsid_code = GET_BE_U_4(fhp + 4); in Parse_fh()
390 /* Save the actual handle, so it can be display with -u */ in Parse_fh()
391 /* XXX really ? When -u is used this function is not called */ in Parse_fh()
392 for (i = 0; i < len*4 && i*2 < sizeof(fsidp->Opaque_Handle) - 1; i++) in Parse_fh()
393 (void)snprintf(&(fsidp->Opaque_Handle[i*2]), 3, "%.2X", in Parse_fh()
395 fsidp->Opaque_Handle[i*2] = '\0'; in Parse_fh()
398 fsidp->fsid_code = 0; in Parse_fh()
399 fsidp->Fsid_dev.Minor = UINT_MAX; in Parse_fh()
400 fsidp->Fsid_dev.Major = UINT_MAX; in Parse_fh()
429 * Require at least 28 bytes of file handle; it's variable-length in is_UCX()
430 * in NFSv3. "len" is in units of 32-bit words, not bytes. in is_UCX()