<i id='PW5Wj'><tr id='PW5Wj'><dt id='PW5Wj'><q id='PW5Wj'><span id='PW5Wj'><b id='PW5Wj'><form id='PW5Wj'><ins id='PW5Wj'></ins><ul id='PW5Wj'></ul><sub id='PW5Wj'></sub></form><legend id='PW5Wj'></legend><bdo id='PW5Wj'><pre id='PW5Wj'><center id='PW5Wj'></center></pre></bdo></b><th id='PW5Wj'></th></span></q></dt></tr></i><div id='PW5Wj'><tfoot id='PW5Wj'></tfoot><dl id='PW5Wj'><fieldset id='PW5Wj'></fieldset></dl></div>

  1. <legend id='PW5Wj'><style id='PW5Wj'><dir id='PW5Wj'><q id='PW5Wj'></q></dir></style></legend>
    <tfoot id='PW5Wj'></tfoot>

    1. <small id='PW5Wj'></small><noframes id='PW5Wj'>

      • <bdo id='PW5Wj'></bdo><ul id='PW5Wj'></ul>

    2. 如何使用 C# 发送原始以太网数据包?

      How send raw ethernet packet with C#?(如何使用 C# 发送原始以太网数据包?)
    3. <small id='7aJGb'></small><noframes id='7aJGb'>

    4. <legend id='7aJGb'><style id='7aJGb'><dir id='7aJGb'><q id='7aJGb'></q></dir></style></legend>

        <tbody id='7aJGb'></tbody>

          <i id='7aJGb'><tr id='7aJGb'><dt id='7aJGb'><q id='7aJGb'><span id='7aJGb'><b id='7aJGb'><form id='7aJGb'><ins id='7aJGb'></ins><ul id='7aJGb'></ul><sub id='7aJGb'></sub></form><legend id='7aJGb'></legend><bdo id='7aJGb'><pre id='7aJGb'><center id='7aJGb'></center></pre></bdo></b><th id='7aJGb'></th></span></q></dt></tr></i><div id='7aJGb'><tfoot id='7aJGb'></tfoot><dl id='7aJGb'><fieldset id='7aJGb'></fieldset></dl></div>
            <tfoot id='7aJGb'></tfoot>
              <bdo id='7aJGb'></bdo><ul id='7aJGb'></ul>
                本文介绍了如何使用 C# 发送原始以太网数据包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                有没有办法通过 C# 将原始数据包以太网发送到其他主机?在 Windows 7 中,如果它有所作为.

                Is there a way to send raw packet Ethernet to other host via C#? In Windows 7 if it makes difference.

                推荐答案

                根据 Saint_pl 的建议:

                Based on suggestion by Saint_pl:

                我找到了可能更好的解决方案 - 类似于 SharpPcap.它是 Pcap.Net - WinPcap 的 .NET 包装器.现在我可以随意修改我的数据包了.

                I found probably better solution - similar to SharpPcap. It's Pcap.Net - .NET wrapper for WinPcap. Now I can modify my packets whatever I want.

                <小时>

                我有一些资源可能对你有帮助.我没有在 Windows 7 中尝试该解决方案,但它可能包含一些很好的开始信息.


                I have some resources for you that maybe helpful. I don't try that solutions in Windows 7 but maybe it contains some good info to start.

                原始以太网数据包操作 或 CodeProject 上的镜像

                本文的目的是解释如何在 Microsoft 平台上使用 C# 发送原始以太网数据包.原始以太网数据包是发送到物理线路的完整第 2 层网络帧.发送这样的帧允许您操纵目标和源 MAC 地址以及第 3 层协议字段.

                This purpose of this article is to explain how to send a raw Ethernet packet using C# on a Microsoft platform. A raw Ethernet packet is the complete Layer 2 network frame that is sent to the physical wire. Sending a frame like this allows you to manipulate the target and source MAC addresses and the Layer 3 protocol fields.

                还有一些关于原始套接字的信息(以防你也感兴趣):

                Also some info on raw sockets (just in case you interesting too):

                客户端(和服务器)套接字通信看一看整章,但这里是关键部分:

                Client (and Server) Sockets Communication take a look on whole chapter but here key parts:

                • C# 原始 UDP 套接字程序示例
                • C# Raw Socket Ping 程序示例part A |B部分
                • 所有示例

                不发送数据包但可能很有趣:C# 中的网络嗅探器,SharpPcap - .NET 的数据包捕获框架

                Not sending packets but maybe interesting: A Network Sniffer in C#, SharpPcap - A Packet Capture Framework for .NET

                这篇关于如何使用 C# 发送原始以太网数据包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
                Parameter count mismatch with Invoke?(参数计数与调用不匹配?)
                How to store delegates in a List(如何将代表存储在列表中)
                How delegates work (in the background)?(代表如何工作(在后台)?)
                C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)
                Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)
                  <bdo id='ni5Fm'></bdo><ul id='ni5Fm'></ul>

                  1. <small id='ni5Fm'></small><noframes id='ni5Fm'>

                    <tfoot id='ni5Fm'></tfoot>
                      <tbody id='ni5Fm'></tbody>
                    <legend id='ni5Fm'><style id='ni5Fm'><dir id='ni5Fm'><q id='ni5Fm'></q></dir></style></legend>

                    <i id='ni5Fm'><tr id='ni5Fm'><dt id='ni5Fm'><q id='ni5Fm'><span id='ni5Fm'><b id='ni5Fm'><form id='ni5Fm'><ins id='ni5Fm'></ins><ul id='ni5Fm'></ul><sub id='ni5Fm'></sub></form><legend id='ni5Fm'></legend><bdo id='ni5Fm'><pre id='ni5Fm'><center id='ni5Fm'></center></pre></bdo></b><th id='ni5Fm'></th></span></q></dt></tr></i><div id='ni5Fm'><tfoot id='ni5Fm'></tfoot><dl id='ni5Fm'><fieldset id='ni5Fm'></fieldset></dl></div>