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

Unix/Linux
Linux 指令篇:网络通讯--smbclient(samba client)
Linux 指令篇:网络通讯--smbd(samba deamon)
Linux 指令篇:网络通讯--telnet
Linux 指令篇:网络通讯--uulog
Linux 指令篇:网络通讯--uustat
Linux 指令篇:网络通讯--uux
Linux 指令篇:网络通讯--cu
Linux 指令篇:网络通讯--dnsconf
Linux 指令篇:网络通讯--efax
Linux 指令篇:网络通讯--httpd
Linux 指令篇:网络通讯--ifconfig
Linux 指令篇:网络通讯--minicom
Linux 指令篇:网络通讯--mesg
Linux 指令篇:网络通讯--nc
Linux 指令篇:网络通讯--netconf
Linux 指令篇:网络通讯--netconfig
Linux 指令篇:网络通讯--netstat
Linux 指令篇:网络通讯--ping
Linux 指令篇:网络通讯--pppstats
Linux 指令篇:网络通讯--samba

Unix/Linux 中的 a bug of ng_vlan?


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 125 ::
收藏到网摘: 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的判断?是否存在超长包现象?感觉比率会很高,尤其是在传送文件时候。