亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
国产日韩欧美一区二区三区乱码 | 欧美中文字幕亚洲一区二区va在线 | 欧美国产日产图区| 一区二区免费在线播放| 精品一区二区三区欧美| 91在线高清观看| 精品国产免费人成电影在线观看四季| 国产精品网站在线播放| 日本免费新一区视频| 91在线观看高清| 久久久精品黄色| 免费观看一级欧美片| 欧美三级电影网| 中文字幕视频一区| 国产成人av一区| 欧美大片一区二区| 日韩综合一区二区| 在线观看日韩一区| 亚洲欧美日韩一区二区| 成人午夜激情影院| 国产日产欧产精品推荐色| 青青草成人在线观看| 在线成人av影院| 亚洲成人第一页| 欧美日韩国产在线观看| 亚洲综合激情网| 一本大道久久a久久精品综合| 国产蜜臀97一区二区三区 | 欧美不卡视频一区| 日韩成人免费看| 69堂成人精品免费视频| 午夜日韩在线电影| 欧美日韩国产一级片| 亚洲一区在线视频| 欧美性感一区二区三区| 亚洲成av人片一区二区| 在线观看亚洲a| 日韩在线一二三区| 日韩视频永久免费| 国产一区二区三区免费| 欧美激情资源网| 91色.com| 日韩精品一二三| 精品国产乱码久久久久久图片 | 亚洲一区精品在线| 欧美日韩综合色| 日韩经典一区二区| 精品日韩99亚洲| 粉嫩av一区二区三区| 亚洲色图欧美在线| 欧美精品久久久久久久久老牛影院| 日日噜噜夜夜狠狠视频欧美人 | 在线亚洲一区二区| 天堂av在线一区| 久久久久国产精品麻豆| 99久久精品情趣| 五月婷婷欧美视频| 久久精品综合网| 欧美性猛片aaaaaaa做受| 蜜桃免费网站一区二区三区| 欧美韩国日本不卡| 欧美视频一区二区| 国产精品一区二区视频| 亚洲男同1069视频| 日韩女优av电影| 91免费视频观看| 毛片不卡一区二区| 日韩毛片在线免费观看| 日韩久久久久久| 色综合久久久久久久| 麻豆高清免费国产一区| 国产精品久久久久久久第一福利| 欧美人xxxx| 成人黄色777网| 美女网站色91| 亚洲欧美韩国综合色| 精品久久久网站| 91久久精品一区二区三| 国产一区二区福利| 亚洲一区二区三区影院| 国产日产欧产精品推荐色| 91麻豆精品国产| 91首页免费视频| 国产毛片精品视频| 五月激情六月综合| 亚洲欧美区自拍先锋| 久久精子c满五个校花| 欧美一区二区观看视频| 色综合久久久久综合体桃花网| 麻豆成人免费电影| 亚洲v精品v日韩v欧美v专区| 亚洲视频小说图片| 久久久久久毛片| 欧美一激情一区二区三区| 日本高清不卡在线观看| 国产成人综合在线播放| 久久av中文字幕片| 偷拍自拍另类欧美| 亚洲黄色小说网站| 国产精品久久久久久久久果冻传媒| 久久综合九色综合97婷婷女人 | 91免费版在线看| 懂色中文一区二区在线播放| 韩国三级电影一区二区| 久久99最新地址| 蜜臀av在线播放一区二区三区| 午夜视频久久久久久| 亚洲一区二区三区视频在线| 亚洲精品欧美综合四区| 日韩码欧中文字| 亚洲乱码精品一二三四区日韩在线| 欧美激情中文字幕一区二区| 国产午夜精品一区二区三区四区| 精品国产一区二区三区久久影院| 欧美一区二区三区喷汁尤物| 777奇米成人网| 91精品中文字幕一区二区三区| 欧美乱妇23p| 欧美一区中文字幕| 日韩精品一区二区三区蜜臀 | 日本亚洲欧美天堂免费| 亚洲va欧美va人人爽| 日韩av一区二| 美女视频黄免费的久久| 国产精品一区二区x88av| 国产成人日日夜夜| 99国产精品久久久| 在线观看一区二区视频| 欧美福利电影网| 日韩一二三区不卡| 久久久久国色av免费看影院| 国产精品视频一二三| 亚洲精品国产a久久久久久| 亚洲一级在线观看| 日韩国产欧美在线播放| 国产伦理精品不卡| aa级大片欧美| 欧美片在线播放| 欧美变态口味重另类| 中文字幕精品在线不卡| 一区二区三区四区精品在线视频| 日韩国产精品91| 国产精品一区二区免费不卡 | 亚洲免费资源在线播放| 性久久久久久久| 国产一区福利在线| 色噜噜狠狠成人中文综合| 日韩一区二区三区高清免费看看| 久久女同性恋中文字幕| 亚洲精品你懂的| 久99久精品视频免费观看| 99久久99久久免费精品蜜臀| 欧美精品久久一区二区三区| 国产日本欧美一区二区| 亚洲成人手机在线| 懂色av一区二区三区蜜臀| 欧美性猛交一区二区三区精品| 26uuu精品一区二区| 自拍av一区二区三区| 精品一区二区日韩| 日本黄色一区二区| 久久久国产一区二区三区四区小说 | 日韩精品一区在线| 中文字幕亚洲综合久久菠萝蜜| 日韩电影在线一区二区三区| 粉嫩aⅴ一区二区三区四区五区| 欧美精品v日韩精品v韩国精品v| 欧美国产视频在线| 久久66热re国产| 欧美日韩国产经典色站一区二区三区 | 在线观看免费视频综合| 久久在线观看免费| 石原莉奈在线亚洲三区| 99在线热播精品免费| 精品国产露脸精彩对白| 亚洲国产你懂的| 99九九99九九九视频精品| 日韩天堂在线观看| 亚洲一区中文日韩| 99精品国产91久久久久久| 久久久精品影视| 精品影院一区二区久久久| 欧美性感一区二区三区| 中文字幕一区二区三中文字幕| 国产在线不卡一区| 日韩欧美在线123| 日韩精品一卡二卡三卡四卡无卡| 在线中文字幕不卡| 亚洲精品久久久蜜桃| 99久久精品免费| 国产精品三级在线观看| 成人动漫在线一区| 国产欧美1区2区3区| 国产精品亚洲人在线观看| 欧美精品一区在线观看| 精品一区二区三区在线观看| 日韩一区二区电影网| 日本最新不卡在线| 欧美一卡2卡3卡4卡| 蜜臀精品一区二区三区在线观看|