1/* 2 * Copyright (c) 1990,1991 Regents of The University of Michigan. 3 * All Rights Reserved. 4 * 5 * Permission to use, copy, modify, and distribute this software and 6 * its documentation for any purpose and without fee is hereby granted, 7 * provided that the above copyright notice appears in all copies and 8 * that both that copyright notice and this permission notice appear 9 * in supporting documentation, and that the name of The University 10 * of Michigan not be used in advertising or publicity pertaining to 11 * distribution of the software without specific, written prior 12 * permission. This software is supplied as is without expressed or 13 * implied warranties of any kind. 14 * 15 * Research Systems Unix Group 16 * The University of Michigan 17 * c/o Mike Clark 18 * 535 W. William Street 19 * Ann Arbor, Michigan 20 * +1-313-763-0525 21 * netatalk@itd.umich.edu 22 */ 23 24 25#ifndef _ATALK_ZIP_H 26#define _ATALK_ZIP_H 1 27 28#include <netatalk/endian.h> 29 30struct ziphdr { 31 u_int8_t zh_op; 32 u_int8_t zh_cnt; 33#define zh_count zh_cnt 34#define zh_zero zh_cnt 35#define zh_flags zh_cnt 36}; 37 38struct zipreplent { 39 u_int16_t zre_net; 40 u_int8_t zre_zonelen; 41}; 42 43#define ZIPOP_QUERY 1 44#define ZIPOP_REPLY 2 45#define ZIPOP_TAKEDOWN 3 /* XXX */ 46#define ZIPOP_BRINGUP 4 /* XXX */ 47#define ZIPOP_GNI 5 48#define ZIPOP_GNIREPLY 6 49#define ZIPOP_NOTIFY 7 50#define ZIPOP_EREPLY 8 51#define ZIPOP_GETMYZONE 7 52#define ZIPOP_GETZONELIST 8 53#define ZIPOP_GETLOCALZONES 9 54 55#define ZIPGNI_INVALID 0x80 56#define ZIPGNI_ONEZONE 0x20 57 58#endif 59