parsenfsfh.c (127675) | parsenfsfh.c (146778) |
---|---|
1/* 2 * Copyright (c) 1993, 1994 Jeffrey C. Mogul, Digital Equipment Corporation, 3 * Western Research Laboratory. All rights reserved. 4 * Copyright (c) 2001 Compaq Computer Corporation. All rights reserved. 5 * 6 * Permission to use, copy, and modify this software and its 7 * documentation is hereby granted only under the following terms and 8 * conditions. Both the above copyright notice and this permission --- 25 unchanged lines hidden (view full) --- 34/* 35 * parsenfsfh.c - portable parser for NFS file handles 36 * uses all sorts of heuristics 37 * 38 * Jeffrey C. Mogul 39 * Digital Equipment Corporation 40 * Western Research Laboratory 41 * | 1/* 2 * Copyright (c) 1993, 1994 Jeffrey C. Mogul, Digital Equipment Corporation, 3 * Western Research Laboratory. All rights reserved. 4 * Copyright (c) 2001 Compaq Computer Corporation. All rights reserved. 5 * 6 * Permission to use, copy, and modify this software and its 7 * documentation is hereby granted only under the following terms and 8 * conditions. Both the above copyright notice and this permission --- 25 unchanged lines hidden (view full) --- 34/* 35 * parsenfsfh.c - portable parser for NFS file handles 36 * uses all sorts of heuristics 37 * 38 * Jeffrey C. Mogul 39 * Digital Equipment Corporation 40 * Western Research Laboratory 41 * |
42 * $FreeBSD: head/contrib/tcpdump/parsenfsfh.c 127675 2004-03-31 14:57:24Z bms $ | 42 * $FreeBSD: head/contrib/tcpdump/parsenfsfh.c 146778 2005-05-29 19:09:28Z sam $ |
43 */ 44 45#ifndef lint 46static const char rcsid[] _U_ = | 43 */ 44 45#ifndef lint 46static const char rcsid[] _U_ = |
47 "@(#) $Header: /tcpdump/master/tcpdump/parsenfsfh.c,v 1.25.2.2 2003/11/16 08:51:07 guy Exp $ (LBL)"; | 47 "@(#) $Header: /tcpdump/master/tcpdump/parsenfsfh.c,v 1.28 2004/03/25 03:30:55 mcr Exp $ (LBL)"; |
48#endif 49 50#ifdef HAVE_CONFIG_H 51#include "config.h" 52#endif 53 54#include <tcpdump-stdinc.h> 55 --- 52 unchanged lines hidden (view full) --- 108 ((lsb) + ((e)<<8) + ((d)<<16) + ((c)<<24)) 109#endif 110 111static int is_UCX(const unsigned char *); 112 113void 114Parse_fh(fh, len, fsidp, inop, osnamep, fsnamep, ourself) 115register const unsigned char *fh; | 48#endif 49 50#ifdef HAVE_CONFIG_H 51#include "config.h" 52#endif 53 54#include <tcpdump-stdinc.h> 55 --- 52 unchanged lines hidden (view full) --- 108 ((lsb) + ((e)<<8) + ((d)<<16) + ((c)<<24)) 109#endif 110 111static int is_UCX(const unsigned char *); 112 113void 114Parse_fh(fh, len, fsidp, inop, osnamep, fsnamep, ourself) 115register const unsigned char *fh; |
116int len; | 116int len _U_; |
117my_fsid *fsidp; 118ino_t *inop; 119const char **osnamep; /* if non-NULL, return OS name here */ 120const char **fsnamep; /* if non-NULL, return server fs name here (for VMS) */ 121int ourself; /* true if file handle was generated on this host */ 122{ 123 register const unsigned char *fhp = fh; 124 u_int32_t temp; --- 336 unchanged lines hidden --- | 117my_fsid *fsidp; 118ino_t *inop; 119const char **osnamep; /* if non-NULL, return OS name here */ 120const char **fsnamep; /* if non-NULL, return server fs name here (for VMS) */ 121int ourself; /* true if file handle was generated on this host */ 122{ 123 register const unsigned char *fhp = fh; 124 u_int32_t temp; --- 336 unchanged lines hidden --- |