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

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

?? auth.hh

?? RIP 協議實現
?? HH
?? 第 1 頁 / 共 2 頁
字號:
// -*- 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.// $XORP: xorp/rip/auth.hh,v 1.25 2008/07/23 05:11:34 pavlin Exp $#ifndef __RIP_AUTH_HH__#define __RIP_AUTH_HH__#include <list>#include <map>#include <vector>#include "packets.hh"class EventLoop;/** * @short Base clase for RIPv2 authentication mechanisms. * * The AuthHandlerBase class defines the interfaces for RIPv2 * authentication handlers.  Handlers are responsible for * authenticating inbound datagrams and adding authentication data to * outbound datagrams. * * Error during authentication set an error buffer that clients may * query using the error() method. */class AuthHandlerBase {public:    /**     * Virtual destructor.     */    virtual ~AuthHandlerBase();    /**     * Get the effective name of the authentication scheme.     */    virtual const char* effective_name() const = 0;    /**     * Reset the authentication state.     */    virtual void reset() = 0;    /**     * Get number of routing entries used by authentication scheme at the     * head of the RIP packet.     *     * @return the number of routing entries used by the authentication scheme     * at the head of the RIP packet: 0 for unauthenticated packets, 1     * otherwise.     */    virtual uint32_t head_entries() const = 0;    /**     * Get maximum number of non-authentication scheme use routing entries     * in a RIP packet.     */    virtual uint32_t max_routing_entries() const = 0;    /**     * Inbound authentication method.     *     * @param packet pointer to first byte of RIP packet.     * @param packet_bytes number of bytes in RIP packet.     * @param entries_ptr output variable set to point to first     *        entry in packet.  Set to NULL if there are no entries, or     *        on authentication failure.     * @param n_entries number of entries in the packet.     * @param src_addr the source address of the packet.     * @param new_peer true if this is a new peer.     *     * @return true if packet passes authentication checks, false otherwise.     */    virtual bool authenticate_inbound(const uint8_t*	packet,				      size_t		packet_bytes,				      const uint8_t*&	entries_ptr,				      uint32_t&		n_entries,				      const IPv4&	src_addr,				      bool		new_peer) = 0;    /**     * Outbound authentication method.     *     * Create a list of authenticated packets (one for each valid     * authentication key). Note that the original packet is also modified     * and authenticated with the first valid key.     *     * @param packet the RIP packet to authenticate.     * @param auth_packets a return-by-reference list with the     * authenticated RIP packets (one for each valid authentication key).     * @param n_routes the return-by-reference number of routes in the packet.     * @return true if packet was successfully authenticated, false when     * no valid keys are present.     */    virtual bool authenticate_outbound(RipPacket<IPv4>&		packet,				       list<RipPacket<IPv4> *>& auth_packets,				       size_t&			n_routes) = 0;    /**     * Get textual description of last error.     */    const string& error() const;protected:    /**     * Reset textual description of last error.     */    void reset_error();    /**     * Set textual description of latest error.     */    void set_error(const string& err);private:    string _err;};/** * @short RIPv2 Authentication handler when no authentication scheme is * employed. */class NullAuthHandler : public AuthHandlerBase {public:    /**     * Get the effective name of the authentication scheme.     */    const char* effective_name() const;    /**     * Get the method-specific name of the authentication scheme.     *     * @return the method-specific name of the authentication scheme.     */    static const char* auth_type_name();    /**     * Reset the authentication state.     */    void reset();    /**     * Get number of routing entries used by authentication scheme at the     * head of the RIP packet.     *     * @return the number of routing entries used by the authentication scheme     * at the head of the RIP packet: 0 for unauthenticated packets, 1     * otherwise.     */    uint32_t head_entries() const;    /**     * Get maximum number of non-authentication scheme use routing entries     * in a RIP packet.     */    uint32_t max_routing_entries() const;    /**     * Inbound authentication method.     *     * @param packet pointer to first byte of RIP packet.     * @param packet_bytes number of bytes in RIP packet.     * @param entries_ptr output variable set to point to first     *        entry in packet.  Set to NULL if there are no entries, or     *        on authentication failure.     * @param n_entries number of entries in the packet.     * @param src_addr the source address of the packet.     * @param new_peer true if this is a new peer.     *     * @return true if packet passes authentication checks, false otherwise.     */    bool authenticate_inbound(const uint8_t*			packet,			      size_t				packet_bytes,			      const uint8_t*&			entries_ptr,			      uint32_t&				n_entries,			      const IPv4&			src_addr,			      bool				new_peer);    /**     * Outbound authentication method.     *     * Create a list of authenticated packets (one for each valid     * authentication key). Note that the original packet is also modified     * and authenticated with the first valid key.     *     * @param packet the RIP packet to authenticate.     * @param auth_packets a return-by-reference list with the     * authenticated RIP packets (one for each valid authentication key).     * @param n_routes the return-by-reference number of routes in the packet.     * @return true if packet was successfully authenticated, false when     * no valid keys are present.     */    bool authenticate_outbound(RipPacket<IPv4>&		packet,			       list<RipPacket<IPv4> *>&	auth_packets,			       size_t&			n_routes);};/** * @short RIPv2 Authentication handler for plaintext scheme. */class PlaintextAuthHandler : public AuthHandlerBase {public:    /**     * Get the effective name of the authentication scheme.     */    const char* effective_name() const;    /**     * Get the method-specific name of the authentication scheme.     *     * @return the method-specific name of the authentication scheme.     */    static const char* auth_type_name();    /**     * Reset the authentication state.     */    void reset();    /**     * Get number of routing entries used by authentication scheme at the     * head of the RIP packet.     *     * @return the number of routing entries used by the authentication scheme     * at the head of the RIP packet: 0 for unauthenticated packets, 1     * otherwise.     */    uint32_t head_entries() const;    /**     * Get maximum number of non-authentication scheme use routing entries     * in a RIP packet.     */    uint32_t max_routing_entries() const;    /**     * Inbound authentication method.     *     * @param packet pointer to first byte of RIP packet.     * @param packet_bytes number of bytes in RIP packet.     * @param entries_ptr output variable set to point to first     *        entry in packet.  Set to NULL if there are no entries, or     *        on authentication failure.     * @param n_entries number of entries in the packet.     * @param src_addr the source address of the packet.     * @param new_peer true if this is a new peer.     *     * @return true if packet passes authentication checks, false otherwise.     */    bool authenticate_inbound(const uint8_t*			packet,			      size_t				packet_bytes,			      const uint8_t*&			entries_ptr,			      uint32_t&				n_entries,			      const IPv4&			src_addr,			      bool				new_peer);    /**     * Outbound authentication method.     *     * Create a list of authenticated packets (one for each valid     * authentication key). Note that the original packet is also modified     * and authenticated with the first valid key.     *     * @param packet the RIP packet to authenticate.     * @param auth_packets a return-by-reference list with the     * authenticated RIP packets (one for each valid authentication key).     * @param n_routes the return-by-reference number of routes in the packet.     * @return true if packet was successfully authenticated, false when     * no valid keys are present.     */    bool authenticate_outbound(RipPacket<IPv4>&		packet,			       list<RipPacket<IPv4> *>&	auth_packets,			       size_t&			n_routes);    /**     * Get the authentication key.     *     * @return the authentication key.     */    const string& key() const;    /**     * Set the authentication key.     *     * @param plaintext_key the plain-text key.     */    void set_key(const string& plaintext_key);protected:    string	_key;};

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线一区二区| 亚洲gay无套男同| 欧美一区二区三区四区在线观看| 97久久精品人人做人人爽| 成人中文字幕合集| 国产成人精品免费在线| 福利电影一区二区三区| 丁香婷婷综合激情五月色| 国产.精品.日韩.另类.中文.在线.播放| 久久精品99久久久| 国产一区二区三区黄视频| 国产精品456露脸| 成人一区二区三区中文字幕| 国产精品自拍在线| 成人av在线资源| 日本道色综合久久| 日韩午夜精品电影| 国产欧美精品一区二区色综合 | 日本视频在线一区| 日本aⅴ亚洲精品中文乱码| 久久精品免费看| 高清日韩电视剧大全免费| 99久久精品99国产精品| 欧美亚洲动漫精品| 精品卡一卡二卡三卡四在线| 中文字幕av资源一区| 亚洲制服丝袜在线| 国产一区不卡精品| 在线亚洲一区观看| 精品国产伦理网| 亚洲女爱视频在线| 日韩黄色免费网站| 丁香六月综合激情| 欧美电影在线免费观看| 久久久一区二区三区捆绑**| 亚洲精品中文在线| 精品一区二区国语对白| 色综合久久88色综合天天免费| 欧美精品乱码久久久久久按摩| 日韩欧美国产三级| 亚洲日本成人在线观看| 日本亚洲三级在线| 99精品视频在线观看免费| 欧美人狂配大交3d怪物一区| 久久精品人人爽人人爽| 亚洲成人黄色影院| 成人黄色网址在线观看| 日韩一区二区影院| 一区二区三区国产精华| 国产精品一区二区不卡| 欧美精品一级二级三级| 日韩毛片一二三区| 国产成人在线看| 欧美一级在线免费| 亚洲老司机在线| 成人美女视频在线看| 日韩精品一区二区三区四区视频| 亚洲日本在线天堂| 99re在线精品| 国产精品国产精品国产专区不蜜| 美女www一区二区| 欧美天堂一区二区三区| 亚洲天堂中文字幕| jlzzjlzz亚洲日本少妇| 久久久久久久久岛国免费| 蜜桃91丨九色丨蝌蚪91桃色| 欧美视频在线一区二区三区| 亚洲色图制服丝袜| 99久久精品国产毛片| 国产精品久久久久影院| 成人一级视频在线观看| 久久综合国产精品| 国产乱淫av一区二区三区| 精品国产乱码91久久久久久网站| 免费一级欧美片在线观看| 91精品国产色综合久久ai换脸| 亚洲午夜一区二区| 精品视频在线免费观看| 午夜久久电影网| 欧美一区永久视频免费观看| 日韩av一二三| 久久综合九色综合欧美98| 国产精品一区二区三区网站| 欧美国产日本视频| 99久久国产免费看| 亚洲午夜av在线| 欧美一区二区成人6969| 久久国产婷婷国产香蕉| 久久久国产午夜精品| 波多野结衣在线一区| 一区二区三区毛片| 欧美一区二区三区在线电影| 六月婷婷色综合| 亚洲国产精华液网站w| 91日韩在线专区| 日韩中文欧美在线| 久久久国产午夜精品| 色婷婷av一区| 全国精品久久少妇| 国产精品午夜在线观看| 91高清视频免费看| 久久99久久久久| 国产精品久久久久婷婷| 欧美日韩综合不卡| 高清国产一区二区三区| 一区二区国产视频| 欧美精品一区二区久久婷婷| 99精品视频在线免费观看| 日本不卡一区二区三区| 成人欧美一区二区三区1314| 欧美精品乱码久久久久久按摩| 国产成人亚洲综合色影视| 亚洲尤物视频在线| 久久免费看少妇高潮| 欧美午夜精品理论片a级按摩| 久久国产生活片100| 伊人性伊人情综合网| 久久综合色8888| 欧美二区三区的天堂| 91女厕偷拍女厕偷拍高清| 蜜桃av一区二区| 一区二区三区自拍| 中文字幕免费不卡在线| 91精品婷婷国产综合久久竹菊| 粉嫩av一区二区三区在线播放| 午夜精品福利一区二区蜜股av | 亚洲视频一区在线观看| 欧美成人在线直播| 欧美精选一区二区| 欧美亚洲免费在线一区| 国产激情91久久精品导航| 日本最新不卡在线| 亚洲一区二区三区国产| 国产精品亲子伦对白| 26uuu国产电影一区二区| 欧美精品乱人伦久久久久久| 一本色道a无线码一区v| 盗摄精品av一区二区三区| 国产在线视频不卡二| 奇米四色…亚洲| 日韩成人av影视| 一区二区在线观看视频在线观看| 久久久亚洲精品石原莉奈| 日韩欧美你懂的| 日韩一级片网址| 6080国产精品一区二区| 欧美日韩在线精品一区二区三区激情| a美女胸又www黄视频久久| 国产资源在线一区| 国产一区二区不卡在线 | 精品一区二区三区日韩| 首页国产丝袜综合| 日韩高清不卡在线| 日本在线播放一区二区三区| 青青草原综合久久大伊人精品优势| 午夜精品久久久久久久| 蜜桃视频在线一区| 国产一区二区三区| av电影在线观看不卡| 国产91丝袜在线播放| 国产xxx精品视频大全| 成人免费毛片嘿嘿连载视频| 成人av在线一区二区| 色综合天天综合狠狠| 欧美影院一区二区| 欧美日韩中字一区| 日韩欧美国产一区二区三区 | 亚洲精选视频在线| 夜夜嗨av一区二区三区网页| 亚洲欧美精品午睡沙发| 午夜亚洲福利老司机| 黑人巨大精品欧美一区| 高清不卡在线观看| 91蜜桃视频在线| 欧美一区午夜视频在线观看| 国产午夜亚洲精品不卡| 1024精品合集| 亚洲自拍另类综合| 美女在线视频一区| 国产乱理伦片在线观看夜一区| 99国产精品国产精品久久| 欧美日韩美女一区二区| www国产成人| 综合久久综合久久| 蜜臀av一区二区在线免费观看| 成人激情小说网站| 91精品麻豆日日躁夜夜躁| 久久精品人人做人人爽97| 一区二区三区丝袜| 狠狠色丁香久久婷婷综合_中| 91影视在线播放| 精品成a人在线观看| 亚洲精品免费电影| 国产成人亚洲综合色影视| 欧美日韩激情一区| 国产精品水嫩水嫩| 久久精品国产成人一区二区三区| 色婷婷综合在线| 久久久久久久综合狠狠综合| 一区二区三区毛片|