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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? mld6igmp_vif.cc

?? MLDv2 support igmpv3 lite
?? CC
?? 第 1 頁 / 共 4 頁
字號:
    //    // Reset the primary address if it is not valid anymore.    //    if (Vif::find_address(primary_addr()) == NULL) {	if (primary_addr() == querier_addr()) {	    // Reset the querier address	    set_querier_addr(IPvX::ZERO(family()));	    set_i_am_querier(false);	    i_was_querier = true;	}	set_primary_addr(IPvX::ZERO(family()));    }    list<VifAddr>::const_iterator iter;    for (iter = addr_list().begin(); iter != addr_list().end(); ++iter) {	const VifAddr& vif_addr = *iter;	const IPvX& addr = vif_addr.addr();	if (! addr.is_unicast())	    continue;	if (addr.is_linklocal_unicast()) {	    if (primary_a.is_zero())		primary_a = addr;	    continue;	}	//	// XXX: assume that everything else can be a domain-wide reachable	// address.	if (domain_wide_a.is_zero())	    domain_wide_a = addr;    }    //    // XXX: In case of IPv6 if there is no link-local address we may try    // to use the the domain-wide address as a primary address,    // but the MLD spec is clear that the MLD messages are to be originated    // from a link-local address.    // Hence, only in case of IPv4 we assign the domain-wide address    // to the primary address.    //    if (is_ipv4()) {	if (primary_a.is_zero())	    primary_a = domain_wide_a;    }    //    // Check that the interface has a primary address.    //    if (primary_addr().is_zero() && primary_a.is_zero()) {	error_msg = "invalid primary address";	return (XORP_ERROR);    }        if (primary_addr().is_zero())	set_primary_addr(primary_a);    if (i_was_querier) {	// Assume again that I am the MLD6IGMP Querier	set_querier_addr(primary_addr());	set_i_am_querier(true);    }    return (XORP_OK);}/** * Mld6igmpVif::add_protocol: * @module_id: The #xorp_module_id of the protocol to add. * @module_instance_name: The module instance name of the protocol to add. *  * Add a protocol to the list of entries that would be notified if there * is membership change on this interface. *  * Return value: %XORP_OK on success, otherwise %XORP_ERROR. **/intMld6igmpVif::add_protocol(xorp_module_id module_id,			  const string& module_instance_name){    if (find(_notify_routing_protocols.begin(),	     _notify_routing_protocols.end(),	     pair<xorp_module_id, string>(module_id, module_instance_name))	!= _notify_routing_protocols.end()) {	return (XORP_ERROR);		// Already added    }        _notify_routing_protocols.push_back(	pair<xorp_module_id, string>(module_id, module_instance_name));        return (XORP_OK);}/** * Mld6igmpVif::delete_protocol: * @module_id: The #xorp_module_id of the protocol to delete. * @module_instance_name: The module instance name of the protocol to delete. *  * Delete a protocol from the list of entries that would be notified if there * is membership change on this interface. *  * Return value: %XORP_OK on success, otherwise %XORP_ERROR. **/intMld6igmpVif::delete_protocol(xorp_module_id module_id,			     const string& module_instance_name){    vector<pair<xorp_module_id, string> >::iterator iter;        iter = find(_notify_routing_protocols.begin(),		_notify_routing_protocols.end(),		pair<xorp_module_id, string>(module_id, module_instance_name));        if (iter == _notify_routing_protocols.end())	return (XORP_ERROR);		// Not on the list        _notify_routing_protocols.erase(iter);        return (XORP_OK);}/** * Test if the interface is running in IGMPv1 mode. * * @return true if the interface is running in IGMPv1 mode, otherwise false. */boolMld6igmpVif::is_igmpv1_mode() const{    return (proto_is_igmp() && (proto_version() == IGMP_V1));}/** * Test if the interface is running in IGMPv2 mode. * * @return true if the interface is running in IGMPv2 mode, otherwise false. */boolMld6igmpVif::is_igmpv2_mode() const{    return (proto_is_igmp() && (proto_version() == IGMP_V2));}/** * Test if the interface is running in IGMPv3 mode. * * @return true if the interface is running in IGMPv3 mode, otherwise false. */boolMld6igmpVif::is_igmpv3_mode() const{    return (proto_is_igmp() && (proto_version() == IGMP_V3));}/** * Test if the interface is running in MLDv1 mode. * * @return true if the interface is running in MLDv1 mode, otherwise false. */boolMld6igmpVif::is_mldv1_mode() const{    return (proto_is_mld6() && (proto_version() == MLD_V1));}/** * Test if the interface is running in MLDv2 mode. * * @return true if the interface is running in MLDv2 mode, otherwise false. */boolMld6igmpVif::is_mldv2_mode() const{    return (proto_is_mld6() && (proto_version() == MLD_V2));}/** * Test if a group is running in IGMPv1 mode. * * Note that if @ref group_record is NULL, then we test whether the * interface itself is running in IGMPv1 mode. * @param group_record the group record to test. * @return true if the group is running in IGMPv1 mode, * otherwise false. */boolMld6igmpVif::is_igmpv1_mode(const Mld6igmpGroupRecord* group_record) const{    if (group_record != NULL)	return (group_record->is_igmpv1_mode());    return (is_igmpv1_mode());}/** * Test if a group is running in IGMPv2 mode. * * Note that if @ref group_record is NULL, then we test whether the * interface itself is running in IGMPv2 mode. * @param group_record the group record to test. * @return true if the group is running in IGMPv2 mode, * otherwise false. */boolMld6igmpVif::is_igmpv2_mode(const Mld6igmpGroupRecord* group_record) const{    if (group_record != NULL)	return (group_record->is_igmpv2_mode());    return (is_igmpv2_mode());}/** * Test if a group is running in IGMPv3 mode. * * Note that if @ref group_record is NULL, then we test whether the * interface itself is running in IGMPv3 mode. * @param group_record the group record to test. * @return true if the group is running in IGMPv3 mode, * otherwise false. */boolMld6igmpVif::is_igmpv3_mode(const Mld6igmpGroupRecord* group_record) const{    if (group_record != NULL)	return (group_record->is_igmpv3_mode());    return (is_igmpv3_mode());}/** * Test if a group is running in MLDv1 mode. * * Note that if @ref group_record is NULL, then we test whether the * interface itself is running in MLDv1 mode. * @param group_record the group record to test. * @return true if the group is running in MLDv1 mode, * otherwise false. */boolMld6igmpVif::is_mldv1_mode(const Mld6igmpGroupRecord* group_record) const{    if (group_record != NULL)	return (group_record->is_mldv1_mode());    return (is_mldv1_mode());}/** * Test if a group is running in MLDv2 mode. * * Note that if @ref group_record is NULL, then we test whether the * interface itself is running in MLDv2 mode. * @param group_record the group record to test. * @return true if the group is running in MLDv2 mode, * otherwise false. */boolMld6igmpVif::is_mldv2_mode(const Mld6igmpGroupRecord* group_record) const{    if (group_record != NULL)	return (group_record->is_mldv2_mode());    return (is_mldv2_mode());}/** * Return the ASCII text description of the protocol message. * * @param message_type the protocol message type. * @return the ASCII text descrpition of the protocol message. */const char *Mld6igmpVif::proto_message_type2ascii(uint8_t message_type) const{    if (proto_is_igmp())	return (IGMPTYPE2ASCII(message_type));    if (proto_is_mld6())	return (MLDTYPE2ASCII(message_type));        return ("Unknown protocol message");}/** * Reset and prepare the buffer for sending data. * * @return the prepared buffer. */buffer_t *Mld6igmpVif::buffer_send_prepare(){    BUFFER_RESET(_buffer_send);        return (_buffer_send);}/** * Calculate the checksum of an IPv6 "pseudo-header" as described * in RFC 2460. *  * @param src the source address of the pseudo-header. * @param dst the destination address of the pseudo-header. * @param len the upper-layer packet length of the pseudo-header * (in host-order). * @param protocol the upper-layer protocol number. * @return the checksum of the IPv6 "pseudo-header". */uint16_tMld6igmpVif::calculate_ipv6_pseudo_header_checksum(const IPvX& src,						   const IPvX& dst,						   size_t len,						   uint8_t protocol){    struct ip6_pseudo_hdr {	struct in6_addr	ip6_src;	// Source address	struct in6_addr	ip6_dst;	// Destination address	uint32_t	ph_len;		// Upper-layer packet length	uint8_t		ph_zero[3];	// Zero	uint8_t		ph_next;	// Upper-layer protocol number    } ip6_pseudo_header;	// TODO: may need __attribute__((__packed__))        src.copy_out(ip6_pseudo_header.ip6_src);    dst.copy_out(ip6_pseudo_header.ip6_dst);    ip6_pseudo_header.ph_len = htonl(len);    ip6_pseudo_header.ph_zero[0] = 0;    ip6_pseudo_header.ph_zero[1] = 0;    ip6_pseudo_header.ph_zero[2] = 0;    ip6_pseudo_header.ph_next = protocol;        uint16_t cksum = inet_checksum(	reinterpret_cast<const uint8_t *>(&ip6_pseudo_header),	sizeof(ip6_pseudo_header));        return (cksum);}/** * Notify the interested parties that there is membership change among * the local members. * * @param source the source address of the (S,G) entry that has changed. * In case of group-specific membership, it could be IPvX::ZERO(). * @param group the group address of the (S,G) entry that has changed. * @param action_jp the membership change: @ref ACTION_JOIN * or @ref ACTION_PRUNE. * @return XORP_OK on success, otherwise XORP_ERROR. */intMld6igmpVif::join_prune_notify_routing(const IPvX& source,				       const IPvX& group,				       action_jp_t action_jp) const{    XLOG_TRACE(mld6igmp_node().is_log_trace(),	       "Notify routing %s membership for (%s, %s) on vif %s",	       (action_jp == ACTION_JOIN)? "add" : "delete",	       cstring(source), cstring(group), name().c_str());    vector<pair<xorp_module_id, string> >::const_iterator iter;    for (iter = _notify_routing_protocols.begin();	 iter != _notify_routing_protocols.end();	 ++iter) {	pair<xorp_module_id, string> my_pair = *iter;	xorp_module_id module_id = my_pair.first;	string module_instance_name = my_pair.second;	if (mld6igmp_node().join_prune_notify_routing(module_instance_name,						      module_id,						      vif_index(),						      source,						      group,						      action_jp)	    != XORP_OK) {	    //	    // TODO: remove <module_id, module_instance_name> ??	    //	}    }        return (XORP_OK);}boolMld6igmpVif::i_am_querier() const{    if (_proto_flags & MLD6IGMP_VIF_QUERIER)	return (true);    else	return (false);}voidMld6igmpVif::set_i_am_querier(bool v){    if (v) {	_proto_flags |= MLD6IGMP_VIF_QUERIER;	//	// XXX: Restore the variables that might have been adopted from	// the Querier.	//	restore_effective_variables();    } else {	_proto_flags &= ~MLD6IGMP_VIF_QUERIER;    }}size_tMld6igmpVif::mld6igmp_constant_minlen() const{    if (proto_is_igmp())	return (IGMP_MINLEN);    if (proto_is_mld6())	return (MLD_MINLEN);    XLOG_UNREACHABLE();    return (0);}uint32_tMld6igmpVif::mld6igmp_constant_timer_scale() const{    if (proto_is_igmp())	return (IGMP_TIMER_SCALE);    if (proto_is_mld6())	return (MLD_TIMER_SCALE);    XLOG_UNREACHABLE();    return (0);}uint8_tMld6igmpVif::mld6igmp_constant_membership_query() const{    if (proto_is_igmp())	return (IGMP_MEMBERSHIP_QUERY);    if (proto_is_mld6())	return (MLD_LISTENER_QUERY);    XLOG_UNREACHABLE();    return (0);}// TODO: temporary here. Should go to the Vif class after the Vif// class starts using the Proto classstringMld6igmpVif::flags_string() const{    string flags;        if (is_up())	flags += " UP";    if (is_down())	flags += " DOWN";    if (is_pending_up())	flags += " PENDING_UP";    if (is_pending_down())	flags += " PENDING_DOWN";    if (is_ipv4())	flags += " IPv4";    if (is_ipv6())	flags += " IPv6";    if (is_enabled())	flags += " ENABLED";    if (is_disabled())	flags += " DISABLED";        return (flags);}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人免费视频视频| 日韩高清不卡一区二区| 久久女同性恋中文字幕| 欧美一区日韩一区| 成人激情动漫在线观看| 久久99这里只有精品| 午夜精品一区二区三区三上悠亚| 亚洲视频在线一区二区| 国产精品视频线看| 国产调教视频一区| 884aa四虎影成人精品一区| 在线观看亚洲成人| 在线视频一区二区免费| 99re66热这里只有精品3直播| 国产成人丝袜美腿| 国精产品一区一区三区mba桃花 | 国产原创一区二区三区| 免费观看成人av| 麻豆freexxxx性91精品| 日本一不卡视频| 日韩1区2区3区| 日本亚洲一区二区| 午夜视频在线观看一区| 亚洲1区2区3区4区| 美女精品自拍一二三四| 激情深爱一区二区| 蜜桃精品在线观看| 久草精品在线观看| 免费观看日韩av| 久久成人18免费观看| 国产一区二区成人久久免费影院| 精品一区二区三区免费| 国产精品一二三四五| 国产成人精品一区二区三区网站观看| 国产精品2024| aaa欧美日韩| 91碰在线视频| 69久久99精品久久久久婷婷| 日韩视频国产视频| 久久亚洲捆绑美女| 中文字幕一区二区不卡| 一区二区三区四区视频精品免费 | 成人午夜看片网址| 99国产精品一区| 欧美日韩一级二级三级| 欧美日韩久久一区| 精品剧情在线观看| 国产精品久久久99| 亚洲一区二区精品久久av| 爽好多水快深点欧美视频| 精品一区二区三区在线播放视频| 粉嫩av一区二区三区| 欧洲精品在线观看| 日韩欧美久久久| 国产精品久久久久婷婷| 亚洲成人av一区| 精品一区二区日韩| 91免费国产在线| 4hu四虎永久在线影院成人| 久久精品男人天堂av| 国产调教视频一区| 亚洲一卡二卡三卡四卡| 久久9热精品视频| 一本久道中文字幕精品亚洲嫩| 欧美美女网站色| 中文字幕国产精品一区二区| 日韩美女视频一区| 蜜臀av性久久久久蜜臀aⅴ流畅| 成人天堂资源www在线| 欧美老肥妇做.爰bbww视频| 久久久久久久久久久久久女国产乱 | 亚洲成av人片一区二区| 国产福利91精品一区| 色综合久久久久网| 日韩欧美色综合网站| 免费观看一级特黄欧美大片| 亚洲一区二区三区四区的| 激情久久五月天| 色综合激情五月| 久久久精品蜜桃| 全国精品久久少妇| www.66久久| 精品国免费一区二区三区| 一区二区三区91| 国模少妇一区二区三区| 制服丝袜一区二区三区| 欧美激情一二三区| 乱中年女人伦av一区二区| 欧美三级欧美一级| 中文字幕精品一区| 国产麻豆日韩欧美久久| 91传媒视频在线播放| 中文字幕国产一区二区| 精品一区二区成人精品| 91精品欧美福利在线观看| 亚洲乱码中文字幕| 丁香亚洲综合激情啪啪综合| 日韩欧美一级二级三级久久久| 亚洲国产精品久久人人爱| 色狠狠色噜噜噜综合网| 亚洲黄色av一区| 在线视频中文字幕一区二区| 夜夜嗨av一区二区三区四季av | 日韩一区二区三区三四区视频在线观看| 亚洲一区二区美女| 欧美高清你懂得| 日本欧美一区二区三区| 91精品国产乱| 久久99久久久久| 久久女同互慰一区二区三区| 国产成人精品一区二区三区网站观看| 久久精品一区二区三区不卡| 成人免费毛片app| 中文字幕亚洲不卡| 91国产福利在线| 视频一区在线视频| 精品久久久久一区| 丁香一区二区三区| 中文字幕一区二区三区不卡| 欧洲精品一区二区三区在线观看| 亚洲国产精品久久艾草纯爱| 欧美精品电影在线播放| 精品一区二区成人精品| 国产精品女同一区二区三区| 日本高清成人免费播放| 日韩精品高清不卡| 欧美va在线播放| 不卡免费追剧大全电视剧网站| 有码一区二区三区| 日韩欧美一区在线观看| 国产成人在线观看免费网站| 亚洲欧美一区二区不卡| 欧美日韩国产不卡| 国内精品在线播放| 亚洲欧美日韩国产综合| 91精品国产色综合久久不卡蜜臀 | 色综合天天综合给合国产| 亚洲mv大片欧洲mv大片精品| 欧美va亚洲va在线观看蝴蝶网| 成人动漫在线一区| 丝袜诱惑制服诱惑色一区在线观看| 欧美xxxx在线观看| 99久久久精品| 日韩va亚洲va欧美va久久| 国产亚洲女人久久久久毛片| 欧洲生活片亚洲生活在线观看| 蜜臀久久99精品久久久久久9| 午夜精品在线看| 亚洲国产精品av| 欧美肥大bbwbbw高潮| 成人深夜视频在线观看| 亚洲国产一区二区三区青草影视| 2021久久国产精品不只是精品| 色婷婷狠狠综合| 国产乱对白刺激视频不卡| 亚洲综合图片区| 久久久久久久久蜜桃| 欧美三日本三级三级在线播放| 国产成人免费高清| 午夜精品久久一牛影视| 中文字幕亚洲一区二区av在线 | 亚洲欧美国产77777| 久久色在线观看| 欧美日韩国产一区二区三区地区| 国产精品自拍av| 日韩激情中文字幕| 自拍偷拍亚洲综合| 久久精品亚洲精品国产欧美 | 日韩码欧中文字| 久久综合色婷婷| 91.成人天堂一区| 91免费视频网| 国产福利视频一区二区三区| 免费欧美高清视频| 亚洲国产wwwccc36天堂| 国产精品伦一区二区三级视频| 精品入口麻豆88视频| 欧美日韩精品二区第二页| 99re这里都是精品| 国产高清无密码一区二区三区| 免费av网站大全久久| 亚洲va欧美va天堂v国产综合| 最新中文字幕一区二区三区| 亚洲国产高清在线| 国产婷婷色一区二区三区在线| 日韩欧美成人一区二区| 91精品国产免费| 欧美人伦禁忌dvd放荡欲情| 一本久久综合亚洲鲁鲁五月天| 成人性生交大片免费看中文| 国产一区二区免费看| 免费观看成人av| 蜜桃av一区二区| 日韩高清在线不卡| 亚洲成人免费视| 亚洲大型综合色站| 亚洲18女电影在线观看| 亚洲午夜精品在线| 亚洲一区二区三区视频在线 | 97se亚洲国产综合在线|