免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1646 | 回复: 0

[网络子系统] 关于mfc_cache的一点疑问 [复制链接]

论坛徽章:
4
酉鸡
日期:2014-03-21 23:19:50狮子座
日期:2014-08-01 22:11:40酉鸡
日期:2015-01-10 21:31:442015年辞旧岁徽章
日期:2015-03-03 16:54:15
发表于 2013-01-28 10:00 |显示全部楼层
5可用积分
struct mfc_cache {
        struct list_head list;
        __be32 mfc_mcastgrp;                        /* Group the entry belongs to         */
        __be32 mfc_origin;                        /* Source of packet                 */
        vifi_t mfc_parent;                        /* Source interface                */
        int mfc_flags;                                /* Flags on line                */

        union {
                struct {
                        unsigned long expires;
                        struct sk_buff_head unresolved;        /* Unresolved buffers                */
                } unres;
                struct {
                        unsigned long last_assert;
                        int minvif;
                        int maxvif;
                        unsigned long bytes;
                        unsigned long pkt;
                        unsigned long wrong_if;
                        unsigned char ttls[MAXVIFS];        /* TTL thresholds                */
                } res;
        } mfc_un;
        struct rcu_head        rcu;
};


minvif和maxvif指定了一个接口范围, 这个应该是大致的范围.

转发时应该会做精确过滤的啊...可是代码中没有找到这个地方..

求指点, 谢谢!

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP