#ifndef _S_MACNC_OPTIONS_H
#define _S_MACNC_OPTIONS_H
#include "gen_dhcp_tags.h"
#include "gen_dhcp_types.h"
#include "dhcp_options.h"
typedef enum {
macNCtag_client_version_e = 220,
macNCtag_client_info_e = 221,
macNCtag_server_version_e = 230,
macNCtag_server_info_e = 231,
macNCtag_user_name_e = 232,
macNCtag_password_e = 233,
macNCtag_shared_system_file_e = 234,
macNCtag_private_system_file_e = 235,
macNCtag_page_file_e = 236,
macNCtag_MacOS_machine_name_e = 237,
macNCtag_shared_system_shadow_file_e = 238,
macNCtag_private_system_shadow_file_e = 239,
} macNCtag_t;
typedef enum {
macNCtype_pstring_e = dhcptype_last_e + 1,
macNCtype_afp_path_e = dhcptype_last_e + 2,
macNCtype_afp_password_e = dhcptype_last_e + 3,
} macNCtype_t;
#import "afp.h"
#define AFP_PATH_OVERHEAD 13
#define AFP_PATH_LIMIT 242
#define AFP_PATHTYPE_SHORT 1
#define AFP_PATHTYPE_LONG 2
#define AFP_PATH_SEPARATOR '\0'
#define MACNC_CLIENT_INFO "Apple MacNC"
boolean_t
macNCopt_encodeAFPPath(struct in_addr iaddr, uint16_t port,
const char * volname, uint32_t dirID,
uint8_t pathtype, const char * pathname,
char separator, void * buf,
int * len_p, dhcpo_err_str_t * err);
boolean_t
macNCopt_str_to_type(const char * str,
int type, void * buf, int * len_p,
dhcpo_err_str_t * err);
#endif _S_MACNC_OPTIONS_H