/*= -*- c-file-style: "bsd"; indent-tabs-mode: nil; -*-
 *
 * n4: A fast userspace NFSv4 server.
 * $Id: portmapper.h,v 1.2 2001/07/19 06:11:29 tpot Exp $
 * 
 * Copyright (C) 2001 by Tim Potter <tpot@samba.org>
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public
 * License along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#define PMAP_PORT 111           /* portmapper port number */
#define PMAP_PROTO_VERSION 2    /* portmapper protocol version */

enum {
        PMAPPROC_NULL = 0,
        PMAPPROC_SET = 1,
        PMAPPROC_UNSET = 2,
        PMAPPROC_GETPORT = 3,
        PMAPPROC_DUMP = 4,
        PMAPPROC_CALLIT = 5
};

enum {
    PMAPPROC_PROGRAM = 100000
};

enum {
	PMAPPROC_PROTO_TCP = 6,
	PMAPPROC_PROTO_UDP = 17
};

struct pmap_mapping {
	unsigned int prog;
	unsigned int vers;
	unsigned int prot;
	unsigned int port;
};
