Giter Site home page Giter Site logo

Comments (3)

Paul-weqe avatar Paul-weqe commented on June 11, 2024

Have you been able to fix this @Rgoogle ?

from libpnet.

Rgoogle avatar Rgoogle commented on June 11, 2024

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.

Paul-weqe avatar Paul-weqe commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.