1/*
2 * Copyright 2004, Broadcom Corporation
3 * All Rights Reserved.
4 *
5 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
6 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
7 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
8 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
9 *
10 * $Id: mapmgr.h,v 1.1.1.1 2008/10/15 03:31:35 james26_jang Exp $
11 */
12
13#ifndef _mapmgr_h_
14#define _mapmgr_h_
15
16typedef struct _netconf_nat_t mapping_t;
17
18void mapmgr_update();
19bool mapmgr_get_port_map(int n, mapping_t *m);
20bool mapmgr_add_port_map(mapping_t *m);
21bool mapmgr_delete_port_map(int n);
22bool mapmgr_get_range_map(int n, mapping_t *m);
23bool mapmgr_add_range_map(mapping_t *m);
24bool mapmgr_delete_range_map(int n);
25int mapmgr_port_map_count();
26int mapmgr_range_map_count();
27
28#define MAX_PORT_MAPPINGS FD_SETSIZE
29
30
31#endif /* _mapmgr_h_ */
32