📄 ppp_channel.h
字号:
#ifndef _PPP_CHANNEL_H_#define _PPP_CHANNEL_H_/* * Definitions for the interface between the generic PPP code * and a PPP channel. * * A PPP channel provides a way for the generic PPP code to send * and receive packets over some sort of communications medium. * Packets are stored in sk_buffs and have the 2-byte PPP protocol * number at the start, but not the address and control bytes. * * Copyright 1999 Paul Mackerras. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. * * ==FILEVERSION 20000322== */#include <linux/skbuff.h>#include <linux/poll.h>struct ppp_channel;struct ppp_channel_ops { /* Send a packet (or multilink fragment) on this channel. Returns 1 if it was accepted, 0 if not. */ int (*start_xmit)(struct ppp_channel *, struct sk_buff *); /* Handle an ioctl call that has come in via /dev/ppp. */ int (*ioctl)(struct ppp_channel *, unsigned int, unsigned long);};struct ppp_channel { void *private; /* channel private data */ struct ppp_channel_ops *ops; /* operations for this channel */ int mtu; /* max transmit packet size */ int hdrlen; /* amount of headroom channel needs */ void *ppp; /* opaque to channel */ /* the following are not used at present */ int speed; /* transfer rate (bytes/second) */ int latency; /* overhead time in milliseconds */};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -