From 1af20c3adc4dfef93de41d4fcd02f0aeb6bbfd4e Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Fri, 15 Jun 2018 15:44:51 +0200 Subject: Add the ndo parameter to some functions This parameter will be needed at the next step. --- parsenfsfh.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'parsenfsfh.c') diff --git a/parsenfsfh.c b/parsenfsfh.c index 79648abe..a569b54b 100644 --- a/parsenfsfh.c +++ b/parsenfsfh.c @@ -77,11 +77,11 @@ #define FHT_HPUX9 11 #define FHT_BSD44 12 -static int is_UCX(const unsigned char *, u_int); +static int is_UCX(netdissect_options *, const unsigned char *, u_int); void -Parse_fh(const unsigned char *fh, u_int len, my_fsid *fsidp, - uint32_t *inop, +Parse_fh(netdissect_options *ndo, const unsigned char *fh, u_int len, + my_fsid *fsidp, uint32_t *inop, const char **osnamep, /* if non-NULL, return OS name here */ const char **fsnamep, /* if non-NULL, return server fs name here (for VMS) */ int ourself) /* true if file handle was generated on this host */ @@ -220,7 +220,7 @@ Parse_fh(const unsigned char *fh, u_int len, my_fsid *fsidp, } } else { - if (is_UCX(fhp, len)) { + if (is_UCX(ndo, fhp, len)) { fhtype = FHT_VMSUCX; } else { @@ -429,7 +429,7 @@ Parse_fh(const unsigned char *fh, u_int len, my_fsid *fsidp, * (3) followed by string of nulls */ static int -is_UCX(const unsigned char *fhp, u_int len) +is_UCX(netdissect_options *ndo, const unsigned char *fhp, u_int len) { u_int i; int seen_null = 0; -- cgit v1.2.1