当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > a bug of ng_vlan?

Unix/Linux
Ubuntu 8.04系统下Opera浏览器安装配置
Ubuntu系统软件安装方式
解决Ubuntu启动时的Routine check检查时间过长
Ubuntu系统下安装网络打印机
Ubuntu系统下zend for linux中文乱码解决
Ubuntu 8.04升级到Ubuntu 8.10
Ubuntu 8.04中使用fast-cgi搭建Apache2+PHP5环境
Ubuntu压缩/解压缩RAR文件的方法
64位ubuntu8.04 安装QQ
ubuntu关闭图形模式
解决ubuntu系统下vimtutor乱码
Ubuntu下安装KDE桌面环境
Ubuntu 8.10 Intrepid Ibex Alpha4 官方正式版下载
ubuntu8.04下源码安装wine 设置中文
ubuntu下设置共享目录
Ubuntu下Flash乱码的解决方法
Ubuntu 8.04中启用FrameBuffer
Ubuntu系统下升级内核的方法
ubuntu系统下播放mp3及中文乱码的解决
ubuntu 8.04.1 LTS 下的cpu温度监控软件lm-sensors

Unix/Linux 中的 a bug of ng_vlan?


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 110 ::
收藏到网摘: n/a

怎么不加mtu的判断?是否存在超长包现象?感觉比率会很高,尤其是在传送文件时候。
if (hook != priv->nomatch_hook) {            if ((f = NG_HOOK_PRIVATE(hook)) == NULL) {                NG_FREE_DATA(m, meta);                return (EOPNOTSUPP);            }            M_PREPEND(m, EVL_ENCAPLEN, M_DONTWAIT);            /* M_PREPEND takes care of m_len and m_pkthdr.len. */            if (m == NULL || (m->m_len < sizeof(*evl) &&                (m = m_pullup(m, sizeof(*evl))) == NULL)) {                NG_FREE_META(meta);                return (ENOMEM);            }            /*             * Transform the Ethernet header into an Ethernet header             * with 802.1Q encapsulation.             */            bcopy(mtod(m, char *) + EVL_ENCAPLEN,                mtod(m, char *), ETHER_HDR_LEN);            evl = mtod(m, struct ether_vlan_header *);            evl->evl_proto = evl->evl_encap_proto;            evl->evl_encap_proto = htons(ETHERTYPE_VLAN);            evl->evl_tag = htons(f->vlan);        }        NG_SEND_DATA(error, priv->downstream_hook, m, meta);怎么不加mtu的判断?是否存在超长包现象?感觉比率会很高,尤其是在传送文件时候。