📄 interface.h
字号:
/* * interfaces.h - network interface definitions * * Copyright (C) 2000, 2001 Stefan Jahn <stefan@lkcc.org> * Copyright (C) 2000 Raimund Jacob <raimi@lkcc.org> * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * This software 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 * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this package; see the file COPYING. If not, write to * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * * $Id: interface.h,v 1.5 2001/09/27 15:47:36 ela Exp $ * */#ifndef __INTERFACE_H__#define __INTERFACE_H__ 1#include "libserveez/defines.h"/* * Structure for collecting IP interfaces. */typedef struct svz_interface{ unsigned long index; /* interface index */ char *description; /* interface description */ unsigned long ipaddr; /* its IP address */}svz_interface_t;__BEGIN_DECLSSERVEEZ_API extern svz_vector_t *svz_interfaces;/* Export these functions. */SERVEEZ_API void svz_interface_list __P ((void));SERVEEZ_API void svz_interface_collect __P ((void));SERVEEZ_API int svz_interface_free __P ((void));SERVEEZ_API int svz_interface_add __P ((int, char *, unsigned long));SERVEEZ_API svz_interface_t *svz_interface_search __P ((char *));SERVEEZ_API svz_interface_t *svz_interface_get __P ((unsigned long));__END_DECLS/* * Iteration macro for the list of known network interfaces. If any * each interface gets assigned to @var{ifc}. The variable @var{i} is the * iteration variable. */#define svz_interface_foreach(ifc, i) \ svz_vector_foreach (svz_interfaces, (ifc), (i))#endif /* not __INTERFACE_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -