DbgPrint Ethernet headers

Home Forums Discussions General DbgPrint Ethernet headers

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4813
    BSM
    Participant

      Im working with an ndis im driver. Ive gotten the first 14 bytes of the packet buffer and put them into an ethernet struct but i dont know how to format it into a legit string so I can see the mac dest and source.

      DbgPrint(“%s/n”, EthDest); //try to format the ethernet destination

      It just comes out “yyyyy” in DbgView even if i just print the buffer itself with out a structure. But the chain of buffers following(rest of packet data) is printed correctly.
      How do i format the ethernet headers so i can print it?

      #5424
      NeuronViking
      Participant

        u’r about BIG troubles man… if u don’t know such stupid things u’r 2 early 2 deal with DD

        make u’r own format_func() and then use DbgPrint(“%s”,formatted_string);

        be!

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.