在VB 2008(.NET 3.5)中监听CDP Hello数据包吗? [英] Listening for CDP Hello packets in VB 2008 (.NET 3.5)?

查看:70
本文介绍了在VB 2008(.NET 3.5)中监听CDP Hello数据包吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个程序,该程序可以检测到主机已插入网络连接,并且立即开始侦听CDP Hello数据包.该数据包到达后,我需要提取主机名,主机连接到的端口号以及我连接到的设备的IOS版本.

有了数据包后,我就可以自己执行此操作,但是我不确定如何获取hello数据包,因为除了组播数据包"以外,我对它一无所知.任何人都可以提供链接/回答?我已经在很多地方找到了这个,但是我能找到的唯一代码是C语言(不是C ++或C#,C),对我来说这几乎毫无用处,因为我不是编码员的摇滚乐. class ="h2_lin">解决方案

没关系!看来我将不得不用C#编写并使用DDK NDIS驱动程序来嗅探SNAP帧/数据包!


I''m writing a program that can detect a host machine is plugged into a network connection, and Immediately starts listening for a CDP Hello packet. Once that packet arrives, I need to pull Hostname, Port number the host machine is connected to, and IOS version of the device I am connected to.

I can do this myself once I have the packet, but I''m not sure how to grab a hello packet, since I don''t know anything about it other than its a Multicast Packet.... Can anybody provide a link / answer? I''ve looked in many places for this, but the only code I can find is for C (not C++ or C#, C) which is all but useless to me since I''m not that rockin of a coder.

解决方案

Nevermind! Looks like I''m going to have to write this in C# and use the DDK NDIS Driver to sniff the SNAP frames/packets!


这篇关于在VB 2008(.NET 3.5)中监听CDP Hello数据包吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆