Comments (3)
Have you been able to fix this @Rgoogle ?
from libpnet.
This is really frustrating. I ran it on another cloud computer, downloaded WinPcap and packet.lib, and then wrote it in Visual Code. But there were no red error prompts like before. When I press Ctrl to jump, it basically jumps to the #Packet property macro. It's similar to my previous error.
I'm now suspecting that these red error prompts are just a compiler issue. In reality, it can still run.
My original problem was that I didn't download WinPcap and packet.lib at first, so I'm not sure what the reason is now. The most likely possibility is that the compiler is having trouble with the code generated by the Packet macro, which the compiler can't see.
now,i had fix it in another pc
from libpnet.
Hmm...so first, Windows seems to be bringing issues to more than just you (see here). The documentation will be improved on that. I am on Ubuntu so I could have been of little help anyway.
Now to the second problem. I will be using MutableEthernetPacket
and EthernetPacket
to illustrate. The problem comes out because the structs such as EthernetPacket
and MutableEthernetPacket
and the rest of the packets are not manually coded, they are generated via the Packet Macro when the library is compiled, (look here). From line 10 it describes how they are automatically generated.
Basically this means that when you look for their written code, such as by pressing Ctrl
+ Enter
, the only place it can take you is to the Macro that produced it. If you really want to have a look at the struct that called the macro for e.g MutableEthernetPacket
and EthernetPacket
to be produced, most of them are inside here.
I don't know if I have answered your question correctly. If not, let me know where I can elaborate.
from libpnet.
Related Issues (20)
- Proposal: Create User-Friendly Tutorial for Installing Packet.lib on Windows HOT 1
- Misaligned pointer dereference in safe functions `backend::channel` and `sockaddr_to_network_addr`
- Passing libpnet `Packet` struct between functions is difficult HOT 4
- tx.send_to(&[0u8], None) fail
- ICMP Destination unreachable Next-hop MTU is not exposed
- Lacks Mac OS Apple Silicon support? HOT 3
- Errors on android HOT 4
- How to send icmp packets? HOT 2
- Datalink Layer Level-2 Passthru example?
- Support for 802.11/WLAN packets
- Dhcp example HOT 1
- next_with_timeout() with zero timeout waits indefinitely HOT 1
- a problem with the packet.lib configuration!help me. HOT 3
- Potential multiplication overflow when calculating length of NdpOptionPacket
- [Question] getting random ip addresses on get_source/destination HOT 1
- macOS kernel panic caused by `send_to` HOT 1
- Packets not sending HOT 2
- Can't finish compiling on nightly version of rust
- packet loss HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libpnet.