mygenif.h

来自「PPPoE协议在Psos中的实现源代码」· C头文件 代码 · 共 61 行

H
61
字号
/************************************************************************/
/*                                                                      */
/*   MODULE:  genif.h                                                   */
/*   PRODUCT: pNA+,  OpEN TCP/IP PPP driver                             */
/*   PURPOSE: GENIF module                                              */
/*   DATE:    28 February, 1996                                         */
/*                                                                      */
/*----------------------------------------------------------------------*/
/*                                                                      */
/*              Copyright 1996, Integrated Systems, Inc.                */
/*                      ALL RIGHTS RESERVED                             */
/*                                                                      */
/*   Permission is hereby granted to licensees of Integrated Systems,   */
/*   Inc. products to use or abstract this computer program for the     */
/*   sole purpose of implementing a product based on Integrated         */
/*   Systems, Inc. products.   No other rights to reproduce, use,       */
/*   or disseminate this computer program, whether in part or in        */
/*   whole, are granted.                                                */
/*                                                                      */
/*   Integrated Systems, Inc. makes no representation or warranties     */
/*   with respect to the performance of this computer program, and      */
/*   specifically disclaims any responsibility for any damages,         */
/*   special or consequential, connected with the use of this program.  */
/*                                                                      */
/************************************************************************/
#ifndef _GENIF_H_
#define _GENIF_H_

#include <pna.h>
#include <disi.h>

typedef struct IFcfg {
    void (*callback)(Uid uid, unsigned long cmd , void *arg);
    void *IFconfig;
} IFcfg;

typedef struct Ifentrypoint {
    unsigned long (*genifinit)(void);
    unsigned long (*genifopen)(IFcfg *, int );
    void (*genifclose)();
    unsigned long (*genifioctl)(int, unsigned long, void * ); 
    void (*genifsend)(char *, mblk_t *);
} IFentrypoint;


/* IOCTL commands */

#define     SETUPLINK   0
#define     CLOSELINK   1

/* Interface Indication commands */

#define     LINKUP      0
#define     LINKDOWN    1
#define     LINKCLOSE   2
#define     RCVDPKT     3
#define     ERROR       4 

#endif /* _GENIF_H_ */

⌨️ 快捷键说明

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