1*dfcae16eSflorian /* $OpenBSD: parser.h,v 1.1 2017/04/10 13:35:42 florian Exp $ */ 2*dfcae16eSflorian 3*dfcae16eSflorian /* 4*dfcae16eSflorian * Copyright (c) 2004 Esben Norby <norby@openbsd.org> 5*dfcae16eSflorian * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> 6*dfcae16eSflorian * 7*dfcae16eSflorian * Permission to use, copy, modify, and distribute this software for any 8*dfcae16eSflorian * purpose with or without fee is hereby granted, provided that the above 9*dfcae16eSflorian * copyright notice and this permission notice appear in all copies. 10*dfcae16eSflorian * 11*dfcae16eSflorian * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 12*dfcae16eSflorian * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 13*dfcae16eSflorian * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14*dfcae16eSflorian * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15*dfcae16eSflorian * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16*dfcae16eSflorian * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17*dfcae16eSflorian * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18*dfcae16eSflorian */ 19*dfcae16eSflorian 20*dfcae16eSflorian enum actions { 21*dfcae16eSflorian NONE, 22*dfcae16eSflorian LOG_VERBOSE, 23*dfcae16eSflorian LOG_BRIEF, 24*dfcae16eSflorian SHOW, 25*dfcae16eSflorian SHOW_INTERFACE, 26*dfcae16eSflorian SEND_SOLICITATION 27*dfcae16eSflorian }; 28*dfcae16eSflorian 29*dfcae16eSflorian struct parse_result { 30*dfcae16eSflorian enum actions action; 31*dfcae16eSflorian uint32_t if_index; 32*dfcae16eSflorian }; 33*dfcae16eSflorian 34*dfcae16eSflorian struct parse_result *parse(int, char *[]); 35