Data Transfer using MAC address [modified]
-
Hi guys, i try to send data directly to host MAC address(without using IPAdress). I am not a expert in network programming am just a beginner. In my search i found some ideas, that is we can use
"SocketType.Raw"
in socket to achieve this. But i cant understand it. Another thing is i need to acheive this without NDIS Protocol Driver. somebody pls explain me how to do it...is there any class or utility is avilable in .NET. Thanks in advance ganesh_IT
modified on Monday, December 13, 2010 4:53 AM
-
Hi guys, i try to send data directly to host MAC address(without using IPAdress). I am not a expert in network programming am just a beginner. In my search i found some ideas, that is we can use
"SocketType.Raw"
in socket to achieve this. But i cant understand it. Another thing is i need to acheive this without NDIS Protocol Driver. somebody pls explain me how to do it...is there any class or utility is avilable in .NET. Thanks in advance ganesh_IT
modified on Monday, December 13, 2010 4:53 AM
I think you should Google send raw Ethernet packet :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
-
Hi guys, i try to send data directly to host MAC address(without using IPAdress). I am not a expert in network programming am just a beginner. In my search i found some ideas, that is we can use
"SocketType.Raw"
in socket to achieve this. But i cant understand it. Another thing is i need to acheive this without NDIS Protocol Driver. somebody pls explain me how to do it...is there any class or utility is avilable in .NET. Thanks in advance ganesh_IT
modified on Monday, December 13, 2010 4:53 AM
Why are you trying to do this? Perhaps if you explained the problem you are trying to solve, we could offer alternatives.
I'm not a stalker, I just know things. Oh by the way, you're out of milk.
Forgive your enemies - it messes with their heads
-
Hi guys, i try to send data directly to host MAC address(without using IPAdress). I am not a expert in network programming am just a beginner. In my search i found some ideas, that is we can use
"SocketType.Raw"
in socket to achieve this. But i cant understand it. Another thing is i need to acheive this without NDIS Protocol Driver. somebody pls explain me how to do it...is there any class or utility is avilable in .NET. Thanks in advance ganesh_IT
modified on Monday, December 13, 2010 4:53 AM
You can't use the MAC address for application level comm. There are no application-level protocols that work with the data link layer. So you're trying to do this with a protocol driver? Forget it - not possible. What are you attempting to do with this?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
You can't use the MAC address for application level comm. There are no application-level protocols that work with the data link layer. So you're trying to do this with a protocol driver? Forget it - not possible. What are you attempting to do with this?
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
I am trying to do this for a academic project. Why we cant access the link layer. What i need to do for done this project explain me i can achieve this.... Thanks in advance ganesh_IT
I didn't say you couldn't get at it. I said there are no application level protocols that can. You'd have to talk directly to the device driver through any interface it supports, but probably using DeviceIo calls. Without documentation on the driver itself, you'll get absolutely nowhere very fast.
ganesh_IT wrote:
What i need to do for done this project explain me i can achieve this....
Achieve what? You haven't said anything about your project is about at all or why you think you need Link layer access to the NIC.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak