natif.h

来自「开发TIC6000DSP经典重要资料,NDK(Network Developme」· C头文件 代码 · 共 48 行

H
48
字号
//--------------------------------------------------------------------------
// IP Stack Utility Programs
//--------------------------------------------------------------------------
// NATIF.H
//
// Interface to the tools available in NETTOOL.LIB
//
// Copyright 1999, 2000 by Texas Instruments Inc.
//-------------------------------------------------------------------------

#ifndef _NATIF_H_
#define _NATIF_H_

//
// DHCP NAT SERVICE
//

//
// NAT Parameter Structure
//
typedef struct _ntparam_nat {
        IPN     IPVirt;         // Virtual IP address
        IPN     IPMask;         // Mask of virtual subnet
        uint    MTU;            // NAT packet MTU (normally 1500 or 1492)
        } NTPARAM_NAT;

//
// NATOpen()
//
// This function is called to initiate NAT control of the system. The
// interface specified to NAT is the IF of the EXTERNAL network.
//
// Compatible with NT_MODE_IFIDX only.
//
// Returns a pseudo-HANDLE of "1" on success, or NULL on failure. The
// pseudo-HANDLE can used with NATClose().
//
_extern HANDLE NATOpen( NTARGS *pNTA, NTPARAM_NAT *pNTP );

//
// NATClose()
//
// This function terminates NAT control
//
_extern void NATClose( HANDLE hNAT );

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?