blob: 33468bd30cb6fcb8109607eeb2a2b271fdbc47d0 [file] [log] [blame]
rjw6c1fd8f2022-11-30 14:33:01 +08001/*************************************************************
2*
3* This Software is the property of VIA Telecom, Inc. and may only be used pursuant to a license from VIA Telecom, Inc.
4*
5* Any unauthorized use inconsistent with the terms of such license is strictly prohibited.
6*
7* Copyright (c) 2002-2010 VIA Telecom, Inc. All rights reserved.
8*
9*************************************************************/
10/*************************************************************************
11 *
12 * File Name: 7074cust.h
13 * Project: NSPE stack
14 *
15 * Original Author: Steve Pye
16 * Creation Date: July 13, 1998
17 *
18 * Description:
19 * Restrictions:
20 * Dependencies:
21 *
22 *************************************************************************
23 *
24 * This Software is the property of ISOTEL Research Ltd.
25 * Unauthorized use is prohibited.
26 *
27 * ISOTEL Research Ltd.
28 * Suite 340, 525 - 28th Street S.E.
29 * Calgary, Alberta, Canada T2A 6W9
30 * Tel: (403)275-0041 Fax: (403)274-3598
31 *
32 *
33 ************************************************************************/
34
35#ifndef _7074CUST_H_
36#define _7074CUST_H_ 1
37
38
39/* this size is the number of bytes in the mbuf pool */
40#ifdef SYS_OPTION_DATA_RAM_INUSE
41#define IS707_MBUF_POOL_SIZE 30000
42#else
43#define IS707_MBUF_POOL_SIZE 1
44#endif
45
46/* Currently this parameter does not affect the code.
47 The parameter of interest is M_HIGHPERCENT,
48 defined in ip_mbuf.h. */
49#define IS707_MBUF_HPERCENT 50
50
51/* Currently this parameter does not affect the code.
52 The parameter of interest is M_LOWPERCENT,
53 defined in ip_mbuf.h. */
54#define IS707_MBUF_LPERCENT 25
55
56/* this is the buffer that is filled on a bios7074AppIntRxInd call */
57#ifdef SYS_OPTION_DATA_RAM_INUSE
58#define IS707_APPINT_RX_BUFFERSIZE 1536
59#define IS707_BROSWER_RX_BUFFERSIZE 1600
60#else
61#define IS707_APPINT_RX_BUFFERSIZE 1
62#define IS707_BROSWER_RX_BUFFERSIZE 1
63#endif
64
65/* These are in the IS-707 spec. but we put them here anyway */
66#define IS707_MODEM_CLIENT_PORT 379
67#define IS707_MODEM_SERVER_PORT 380
68
69/* time-to-live value as defined in IS-707.4 */
70#define IS707_IP_TTL_DEFAULT (0xfe)
71
72
73/* For TCP/IP data transfers, this is the number of
74 retransmission attempts before a connection is abandoned.
75 This value is valid only during connection initialization. */
76#define IS707_TCP_INIT_RETRANSMIT_ATTEMPTS 25
77
78/* The maximum size that client can request TCP to send
79 received data across. */
80#define IS_707_TCP_MAX_RECV_SIZE 1500
81/* For TCP/IP data transfers, this is the number of
82 retransmission attempts before a current connection
83 is abandoned. This value is valid only after a
84 connection is established */
85#define IS707_TCP_RETRANSMIT_ATTEMPTS 10
86/* receive buffer size for UDP*/
87
88#define Max_Browser_RxInd_Length 500
89
90#ifdef SYS_OPTION_NTWKRMPKT_RAM_INUSE
91#define USE_NAT 1 /* To use Network Rm Packet */
92#endif
93
94
95#endif /* _7074CUST_H_ */