00001 /* $Id: ip_helper.h 3553 2011-05-05 06:14:19Z nanang $ */00002 /* 00003 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)00004 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>00005 *00006 * This program is free software; you can redistribute it and/or modify00007 * it under the terms of the GNU General Public License as published by00008 * the Free Software Foundation; either version 2 of the License, or00009 * (at your option) any later version.00010 *00011 * This program is distributed in the hope that it will be useful,00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the00014 * GNU General Public License for more details.00015 *00016 * You should have received a copy of the GNU General Public License00017 * along with this program; if not, write to the Free Software00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */00020 #ifndef __PJ_IP_ROUTE_H__00021 #define __PJ_IP_ROUTE_H__00022
00028 #include <pj/sock.h>00029
00030 PJ_BEGIN_DECL00031
00044typedefunion pj_ip_route_entry00045 {
00047 struct00048 {
00049pj_in_addrif_addr;
00050pj_in_addrdst_addr;
00051pj_in_addrmask;
00052 } ipv4;
00053 } pj_ip_route_entry;
00054
00055
00072 PJ_DECL(pj_status_t) pj_enum_ip_interface(int af,
00073 unsigned *count,
00074 pj_sockaddr ifs[]);
00075
00076
00086 PJ_DECL(pj_status_t) pj_enum_ip_route(unsigned *count,
00087 pj_ip_route_entry routes[]);
00088
00089
00090
00093 PJ_END_DECL00094
00095
00096 #endif /* __PJ_IP_ROUTE_H__ */00097
PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.