亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mld6igmp_group_record.cc

?? MLDv2 support igmpv3 lite
?? CC
?? 第 1 頁 / 共 3 頁
字號:
// -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*-// Copyright (c) 2001-2008 XORP, Inc.//// Permission is hereby granted, free of charge, to any person obtaining a// copy of this software and associated documentation files (the "Software")// to deal in the Software without restriction, subject to the conditions// listed in the XORP LICENSE file. These conditions include: you must// preserve this copyright notice, and you cannot mention the copyright// holders in advertising related to the Software without their permission.// The Software is provided WITHOUT ANY WARRANTY, EXPRESS OR IMPLIED. This// notice is a summary of the XORP LICENSE file; the license in that file is// legally binding.//// The Lightweight IGMP/MLD modifications to this file are copyrighted by://// Copyright (c) 2008 Huawei Technologies Co. Ltd//#ident "$XORP: xorp/contrib/mld6igmp_lite/mld6igmp_group_record.cc,v 1.4 2008/07/23 05:09:48 pavlin Exp $"//// Multicast group record information used by// IGMPv1 and IGMPv2 (RFC 2236), IGMPv3 (RFC 3376),// MLDv1 (RFC 2710), and MLDv2 (RFC 3810).//#include "mld6igmp_module.h"#include "libxorp/xorp.h"#include "libxorp/xlog.h"#include "libxorp/debug.h"#include "libxorp/ipvx.hh"#include "mld6igmp_group_record.hh"#include "mld6igmp_node.hh"#include "mld6igmp_vif.hh"//// Exported variables////// Local constants definitions////// Local structures/classes, typedefs and macros////// Local variables////// Local functions prototypes///** * Mld6igmpGroupRecord::Mld6igmpGroupRecord: * @mld6igmp_vif: The vif interface this entry belongs to. * @group: The entry group address. *  * Return value:  **/Mld6igmpGroupRecord::Mld6igmpGroupRecord(Mld6igmpVif& mld6igmp_vif,					 const IPvX& group)    : _mld6igmp_vif(mld6igmp_vif),      _group(group),      _do_forward_sources(*this),      _last_reported_host(IPvX::ZERO(family())),      _query_retransmission_count(0){    }/** * Mld6igmpGroupRecord::~Mld6igmpGroupRecord: * @:  *  * Mld6igmpGroupRecord destructor. **/Mld6igmpGroupRecord::~Mld6igmpGroupRecord(){    _do_forward_sources.delete_payload_and_clear();}/** * Get the corresponding event loop. * * @return the corresponding event loop. */EventLoop&Mld6igmpGroupRecord::eventloop(){    return (_mld6igmp_vif.mld6igmp_node().eventloop());}/** * Find a source that should be forwarded. * * @param source the source address. * @return the corresponding source record (@ref Mld6igmpSourceRecord) * if found, otherwise NULL. */Mld6igmpSourceRecord*Mld6igmpGroupRecord::find_do_forward_source(const IPvX& source){    return (_do_forward_sources.find_source_record(source));}/** * Test whether the entry is unused. * * @return true if the entry is unused, otherwise false. */boolMld6igmpGroupRecord::is_unused() const{    if (is_include_mode()) {	if (_do_forward_sources.empty()) {	    return (true);	}	return (false);    }    if (is_asm_mode()) {	//	// XXX: the group timer must be running in EXCLUDE mode,	// otherwise there must have been transition to INCLUDE mode.	//	if (_group_timer.scheduled())	    return (false);	XLOG_ASSERT(_do_forward_sources.empty());	return (true);    }    XLOG_UNREACHABLE();    return (true);}/** * Process MODE_IS_INCLUDE report. * * @param sources the source addresses. * @param last_reported_host the address of the host that last reported * as member. */voidMld6igmpGroupRecord::process_mode_is_include(const set<IPvX>& sources,					     const IPvX& last_reported_host){    bool old_is_include_mode = is_include_mode();    set<IPvX> old_do_forward_sources = _do_forward_sources.extract_source_addresses();    set_last_reported_host(last_reported_host);    if (is_include_mode()) {	//	// Router State: INCLUDE (A)	// Report Received: IS_IN (B)	// New Router State: INCLUDE (A + B)	// Actions: (B) = GMI	//	Mld6igmpSourceSet& a = _do_forward_sources;	const set<IPvX>& b = sources;	TimeVal gmi = _mld6igmp_vif.group_membership_interval();	_do_forward_sources = a + b;			// (A + B)	_do_forward_sources.set_source_timer(b, gmi);	// (B) = GMI	calculate_forwarding_changes(old_is_include_mode,				     old_do_forward_sources);	return;    }    if (is_asm_mode()) {	//	// Router State: EXCLUDE (X, Y)	// Report Received: IS_IN (A)	// New Router State: EXCLUDE (X + A, Y - A)	// Actions: (A) = GMI	//	Mld6igmpSourceSet& x = _do_forward_sources;	const set<IPvX>& a = sources;	TimeVal gmi = _mld6igmp_vif.group_membership_interval();	// XXX: first transfer (Y * A) from (Y) to (X)	_do_forward_sources = x + a;			// (X + A)	_do_forward_sources.set_source_timer(a, gmi);	// (A) = GMI	calculate_forwarding_changes(old_is_include_mode,				     old_do_forward_sources);	return;    }}/** * Process MODE_IS_EXCLUDE report. * * @param sources the source addresses. * @param last_reported_host the address of the host that last reported * as member. */voidMld6igmpGroupRecord::process_mode_is_exclude(const set<IPvX>& sources,					     const IPvX& last_reported_host){    bool old_is_include_mode = is_include_mode();    set<IPvX> old_do_forward_sources = _do_forward_sources.extract_source_addresses();    set_last_reported_host(last_reported_host);    if (! sources.empty()) {	XLOG_WARNING("Non-empty list of sources when processing mode is EXCLUDE");    }    if (is_include_mode()) {	//	// Router State: INCLUDE (A)	// Report Received: IS_EX (B)	// New Router State: EXCLUDE (A * B, B - A)	// Actions: (B - A) = 0	//          Delete (A - B)	//          Group Timer = GMI	//	TimeVal gmi = _mld6igmp_vif.group_membership_interval();	_group_timer = eventloop().new_oneoff_after(	    gmi,	    callback(this, &Mld6igmpGroupRecord::group_timer_timeout));  	calculate_forwarding_changes(old_is_include_mode,				     old_do_forward_sources);	return;    }    if (is_asm_mode()) {	//	// Router State: EXCLUDE (X, Y)	// Report Received: IS_EX (A)	// New Router State: EXCLUDE (A - Y, Y * A)	// Actions: (A - X - Y) = GMI	//          Delete (X - A)	//          Delete (Y - A)	//          Group Timer = GMI	//	TimeVal gmi = _mld6igmp_vif.group_membership_interval();	_group_timer = eventloop().new_oneoff_after(	    gmi,	    callback(this, &Mld6igmpGroupRecord::group_timer_timeout));	calculate_forwarding_changes(old_is_include_mode,				     old_do_forward_sources);	return;    }}/** * Process CHANGE_TO_INCLUDE_MODE report. * * @param sources the source addresses. * @param last_reported_host the address of the host that last reported * as member. */voidMld6igmpGroupRecord::process_change_to_include_mode(const set<IPvX>& sources,						    const IPvX& last_reported_host){    bool old_is_include_mode = is_include_mode();    set<IPvX> old_do_forward_sources = _do_forward_sources.extract_source_addresses();    string dummy_error_msg;    set_last_reported_host(last_reported_host);    if (is_include_mode()) {	//	// Router State: INCLUDE (A)	// Report Received: TO_IN (B)	// New Router State: INCLUDE (A + B)	// Actions: (B) = GMI	//          Send Q(G, A - B)	//	Mld6igmpSourceSet& a = _do_forward_sources;	const set<IPvX>& b = sources;	TimeVal gmi = _mld6igmp_vif.group_membership_interval();	Mld6igmpSourceSet a_minus_b = a - b;		// A - B	_do_forward_sources = a + b;			// A + B	_do_forward_sources.set_source_timer(b, gmi);	// (B) = GMI	// Send Q(G, A - B) with a_minus_b	_mld6igmp_vif.mld6igmp_group_source_query_send(	    group(),	    a_minus_b.extract_source_addresses(),	    dummy_error_msg);	calculate_forwarding_changes(old_is_include_mode,				     old_do_forward_sources);	return;    }    if (is_asm_mode()) {	//	// Router State: EXCLUDE (X, Y)	// Report Received: TO_IN (A)	// New Router State: EXCLUDE (X + A, Y - A)	// Actions: (A) = GMI	//          Send Q(G, X - A)	//          Send Q(G)	//	Mld6igmpSourceSet& x = _do_forward_sources;	const set<IPvX>& a = sources;	TimeVal gmi = _mld6igmp_vif.group_membership_interval();	Mld6igmpSourceSet x_minus_a = x - a;		// X - A	// XXX: first transfer (Y * A) from (Y) to (X)	_do_forward_sources = x + a;			// X + A	_do_forward_sources.set_source_timer(a, gmi);	// (A) = GMI	// Send Q(G, X - A) with x_minus_a	_mld6igmp_vif.mld6igmp_group_source_query_send(	    group(),	    x_minus_a.extract_source_addresses(),	    dummy_error_msg);	// Send Q(G)	_mld6igmp_vif.mld6igmp_group_query_send(group(), dummy_error_msg);	calculate_forwarding_changes(old_is_include_mode,				     old_do_forward_sources);	return;    }}/** * Process CHANGE_TO_EXCLUDE_MODE report. * * @param sources the source addresses. * @param last_reported_host the address of the host that last reported * as member. */voidMld6igmpGroupRecord::process_change_to_exclude_mode(const set<IPvX>& sources,						    const IPvX& last_reported_host){    bool old_is_include_mode = is_include_mode();    set<IPvX> old_do_forward_sources = _do_forward_sources.extract_source_addresses();    string dummy_error_msg;    if (! sources.empty()) {	XLOG_WARNING("Non-empty list of sources when processing change to EXCLUDE");    }    set_last_reported_host(last_reported_host);    if (is_include_mode()) {	//	// Router State: INCLUDE (A)	// Report Received: TO_EX (B)	// New Router State: EXCLUDE (A * B, B - A)	// Actions: (B - A) = 0	//          Delete (A - B)	//          Send Q(G, A * B)	//          Group Timer = GMI	//	TimeVal gmi = _mld6igmp_vif.group_membership_interval();	_group_timer = eventloop().new_oneoff_after(	    gmi,	    callback(this, &Mld6igmpGroupRecord::group_timer_timeout));	// Send Q(G, A * B) with _do_forward_sources	_mld6igmp_vif.mld6igmp_group_source_query_send(	    group(),	    _do_forward_sources.extract_source_addresses(),	    dummy_error_msg);	calculate_forwarding_changes(old_is_include_mode,				     old_do_forward_sources);	return;    }    if (is_asm_mode()) {	//	// Router State: EXCLUDE (X, Y)	// Report Received: TO_EX (A)	// New Router State: EXCLUDE (A - Y, Y * A)	// Actions: (A - X - Y) = Group Timer	//          Delete (X - A)	//          Delete (Y - A)	//          Send Q(G, A - Y)	//          Group Timer = GMI	//	TimeVal gmi = _mld6igmp_vif.group_membership_interval();	TimeVal gt;	_group_timer.time_remaining(gt);	_group_timer = eventloop().new_oneoff_after(	    gmi,	    callback(this, &Mld6igmpGroupRecord::group_timer_timeout));	calculate_forwarding_changes(old_is_include_mode,				     old_do_forward_sources);	return;    }}/** * Process ALLOW_NEW_SOURCES report. * * @param sources the source addresses. * @param last_reported_host the address of the host that last reported * as member. */voidMld6igmpGroupRecord::process_allow_new_sources(const set<IPvX>& sources,					       const IPvX& last_reported_host){    bool old_is_include_mode = is_include_mode();    set<IPvX> old_do_forward_sources = _do_forward_sources.extract_source_addresses();    set_last_reported_host(last_reported_host);    if (is_include_mode()) {	//	// Router State: INCLUDE (A)	// Report Received: ALLOW (B)	// New Router State: INCLUDE (A + B)	// Actions: (B) = GMI	//	Mld6igmpSourceSet& a = _do_forward_sources;	const set<IPvX>& b = sources;	TimeVal gmi = _mld6igmp_vif.group_membership_interval();	_do_forward_sources = a + b;			// A + B	_do_forward_sources.set_source_timer(b, gmi);	// (B) = GMI	calculate_forwarding_changes(old_is_include_mode,				     old_do_forward_sources);	return;    }    if (is_asm_mode()) {	//	// Router State: EXCLUDE (X, Y)	// Report Received: ALLOW (A)	// New Router State: EXCLUDE (X + A, Y - A)	// Actions: (A) = GMI	//	Mld6igmpSourceSet& x = _do_forward_sources;	const set<IPvX>& a = sources;	TimeVal gmi = _mld6igmp_vif.group_membership_interval();	// XXX: first transfer (Y * A) from (Y) to (X)	_do_forward_sources = x + a;			// X + A	_do_forward_sources.set_source_timer(a, gmi);   // (A) = GMI	calculate_forwarding_changes(old_is_include_mode,				     old_do_forward_sources);	return;    }}/** * Process BLOCK_OLD_SOURCES report. * * @param sources the source addresses. * @param last_reported_host the address of the host that last reported * as member. */voidMld6igmpGroupRecord::process_block_old_sources(const set<IPvX>& sources,					       const IPvX& last_reported_host){    bool old_is_include_mode = is_include_mode();    set<IPvX> old_do_forward_sources = _do_forward_sources.extract_source_addresses();    string dummy_error_msg;    set_last_reported_host(last_reported_host);    if (is_include_mode()) {	//	// Router State: INCLUDE (A)	// Report Received: BLOCK (B)	// New Router State: INCLUDE (A)	// Actions: Send Q(G, A * B)	//	Mld6igmpSourceSet& a = _do_forward_sources;	const set<IPvX>& b = sources;	Mld6igmpSourceSet a_and_b = a * b;	// Send Q(G, A * B) with a_and_b	_mld6igmp_vif.mld6igmp_group_source_query_send(	    group(),	    a_and_b.extract_source_addresses(),	    dummy_error_msg);	calculate_forwarding_changes(old_is_include_mode,				     old_do_forward_sources);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区在线观看| 亚洲无线码一区二区三区| 在线精品视频一区二区三四| 日韩av电影免费观看高清完整版| 国产精品美女一区二区三区| 日韩精品一区二区三区在线观看| 日本道色综合久久| 国产91色综合久久免费分享| 日本女人一区二区三区| 一区二区三区美女视频| 中文字幕在线不卡| 久久久久久亚洲综合影院红桃| 欧美人动与zoxxxx乱| 99免费精品在线| 丁香婷婷综合网| 久久99久久久久久久久久久| 亚洲一区二区三区爽爽爽爽爽 | 日本一区免费视频| 欧美成人激情免费网| 欧美美女bb生活片| 欧美午夜精品免费| 在线影视一区二区三区| 99久久久久久99| www.视频一区| jlzzjlzz欧美大全| 不卡的电影网站| 处破女av一区二区| 成人网在线免费视频| 国产高清久久久| 国产精品自在欧美一区| 精品无码三级在线观看视频| 欧美bbbbb| 久久精品国产一区二区三| 蜜臀av一级做a爰片久久| 五月天精品一区二区三区| 亚洲国产精品久久久久秋霞影院 | 欧美午夜精品一区二区三区| 91福利资源站| 欧美日韩一区在线观看| 欧美日本乱大交xxxxx| 欧美理论电影在线| 这里只有精品电影| 欧美xxx久久| 久久亚洲二区三区| 中文字幕国产一区二区| 日韩一区在线看| 一区二区三区欧美在线观看| 亚洲一区二区三区在线| 日本成人在线看| 老色鬼精品视频在线观看播放| 久久99精品久久久久久国产越南| 国产在线视视频有精品| 粉嫩嫩av羞羞动漫久久久| 成人毛片老司机大片| 色婷婷激情久久| 91精品啪在线观看国产60岁| 精品黑人一区二区三区久久| 中文字幕av一区 二区| 亚洲激情av在线| 日本成人在线视频网站| 国产在线视频一区二区| 99视频在线精品| 欧美日韩国产大片| 久久久三级国产网站| 亚洲人精品午夜| 亚洲国产精品一区二区www在线| 美国av一区二区| 本田岬高潮一区二区三区| 欧美日韩一二三| 久久蜜臀精品av| 亚洲欧美日韩一区二区| 丝袜美腿成人在线| 国产aⅴ精品一区二区三区色成熟| 91精品免费在线观看| 久久综合资源网| 亚洲精品美腿丝袜| 麻豆freexxxx性91精品| 99在线热播精品免费| 4438x成人网最大色成网站| 中文字幕精品一区二区三区精品| 亚洲高清在线视频| 国产精品456露脸| 欧美日韩dvd在线观看| 亚洲国产岛国毛片在线| 亚洲.国产.中文慕字在线| 国产精品一区2区| 欧美日韩一区高清| 欧美国产精品一区| 日韩av成人高清| 91麻豆免费看片| 久久九九久精品国产免费直播| 亚洲综合色网站| 成人综合激情网| 日韩精品一区二区三区在线播放| 亚洲欧美国产77777| 精品一区二区三区蜜桃| 在线免费观看视频一区| 欧美激情在线看| 美女被吸乳得到大胸91| 欧洲一区二区av| 中文幕一区二区三区久久蜜桃| 奇米一区二区三区| 色诱视频网站一区| 国产欧美一区在线| 精品一区二区久久久| 欧美调教femdomvk| 亚洲欧洲另类国产综合| 韩国一区二区视频| 日韩一区二区在线观看视频| 亚洲综合免费观看高清完整版| 成人av电影免费观看| 国产亚洲精品bt天堂精选| 美女mm1313爽爽久久久蜜臀| 欧美日韩和欧美的一区二区| 亚洲国产成人av网| 国产日韩精品视频一区| 亚洲福利视频一区二区| av男人天堂一区| 成人做爰69片免费看网站| 精品午夜久久福利影院 | 成人av免费在线播放| 日本aⅴ亚洲精品中文乱码| 亚洲久本草在线中文字幕| 奇米色一区二区三区四区| 国产在线观看一区二区| 成人毛片视频在线观看| 在线欧美一区二区| 精品日韩一区二区三区免费视频| 久久一夜天堂av一区二区三区| eeuss鲁片一区二区三区| 欧美日韩一区二区三区不卡 | 国产99一区视频免费| 91丝袜呻吟高潮美腿白嫩在线观看| wwwwww.欧美系列| 国产精品一区二区三区四区| 中文字幕一区在线观看视频| 精品一区二区三区蜜桃| 精品国产免费人成电影在线观看四季| 成人动漫在线一区| 亚洲最快最全在线视频| 国产蜜臀97一区二区三区| 99久久久久免费精品国产| 丝袜美腿亚洲一区| 精品国产乱子伦一区| 日韩一区二区免费电影| 精品午夜一区二区三区在线观看| 一区二区三区欧美日| 精品国产免费人成在线观看| 在线免费一区三区| 成人在线视频一区| 一区二区三区日韩欧美精品| 中文文精品字幕一区二区| 欧美精品在线观看播放| 欧美精品日韩综合在线| 舔着乳尖日韩一区| 国产偷v国产偷v亚洲高清| 欧美精选在线播放| 欧美日韩国产综合草草| 91在线丨porny丨国产| 久久精品国产亚洲高清剧情介绍| 石原莉奈在线亚洲三区| 亚洲午夜激情av| 老司机精品视频在线| 国产成人在线影院| 91精品国产综合久久久久久漫画| 韩国欧美国产一区| 久久精品欧美日韩| 色天使久久综合网天天| 丝袜美腿亚洲综合| 国产偷国产偷精品高清尤物| 色久综合一二码| 日本不卡不码高清免费观看| 国产亚洲一区字幕| 91福利社在线观看| 精品亚洲国产成人av制服丝袜| 中文字幕一区二区三区在线观看| 欧美日韩夫妻久久| 国产精品综合在线视频| 亚洲一区二区精品久久av| 久久精品人人做人人综合| 91成人在线免费观看| 国产高清不卡二三区| 五月婷婷另类国产| 中文字幕av资源一区| 4438成人网| av在线不卡网| 日韩国产欧美三级| 亚洲另类在线视频| 久久久久久久久久美女| 欧美日韩在线播放三区四区| 成人精品一区二区三区四区| 欧美aⅴ一区二区三区视频| 亚洲天堂福利av| 久久精品一区二区三区不卡 | 日韩精品中文字幕一区| 日本精品免费观看高清观看| 国产一区二区三区免费| 香蕉成人伊视频在线观看| 亚洲色图视频免费播放| 久久久久久9999|