Valhalla Legends Forums Archive | C/C++ Programming | PacketLogging Problem (Simple)

AuthorMessageTime
Spilled[DW]
Im creating a client connection in C++ and im having problems packetlogging. I can see outgoing packets but not incoming from the server. I am using WPEPro as my packet logger. Any ideas why i cannot see incoming? Thanks in advance.
October 17, 2005, 5:14 AM
kamakazie
Are you sure that there is any actual incoming data? Are you filtering the stream in your packet logger?
October 17, 2005, 7:08 AM
Spilled[DW]
yes i am sure i am getting data because im detecting 0x25 in my parsep and echoing it back and there is no filter on my WPEpro...
October 17, 2005, 7:28 AM
shout
Are you using WSA functions? Sometimes WPE has trouble with those, or at least it has for me.
October 17, 2005, 12:12 PM
Spilled[DW]
i use recv, not WSARecv is that what you meant? If you would like code, let me know.
October 17, 2005, 2:20 PM
Kp
Why're you using WPE instead of Ethereal?
October 18, 2005, 12:59 AM
shout
[quote author=Kp link=topic=13055.msg131393#msg131393 date=1129597186]
Why're you using WPE instead of Ethereal?
[/quote]

Probably because WPE is eaiser to use. :/
October 18, 2005, 3:50 AM
Kp
[quote author=Shout link=topic=13055.msg131418#msg131418 date=1129607454][quote author=Kp link=topic=13055.msg131393#msg131393 date=1129597186]Why're you using WPE instead of Ethereal?[/quote]Probably because WPE is eaiser to use. :/[/quote]

I disagree.  For one thing, WPE doesn't even run.  It's not a recognized by the ELF loader as a valid image.  Ethereal, on the other hand, works fine.  It can even sniff its own display activity, which leads to all sorts of strange and wonderful behavior.
October 18, 2005, 11:44 PM
Myndfyr
[quote author=Kp link=topic=13055.msg131486#msg131486 date=1129679051]
It's not a recognized by the ELF loader as a valid image.
[/quote]
Try the WINE loader.  :P
October 18, 2005, 11:51 PM
Kp
[quote author=MyndFyre link=topic=13055.msg131491#msg131491 date=1129679479][quote author=Kp link=topic=13055.msg131486#msg131486 date=1129679051]It's not a recognized by the ELF loader as a valid image.[/quote]Try the WINE loader.  :P[/quote]

Why?  WPE still won't be able to sniff the network.  That would require CAP_NET_ADMIN permissions, and there's no way I'm giving that to an X program!
October 18, 2005, 11:55 PM
shout
[quote author=Kp link=topic=13055.msg131494#msg131494 date=1129679710]
[quote author=MyndFyre link=topic=13055.msg131491#msg131491 date=1129679479][quote author=Kp link=topic=13055.msg131486#msg131486 date=1129679051]It's not a recognized by the ELF loader as a valid image.[/quote]Try the WINE loader. :P[/quote]

Why? WPE still won't be able to sniff the network. That would require CAP_NET_ADMIN permissions, and there's no way I'm giving that to an X program!
[/quote]

I may be going out on a limb, but I don't think he is using linux.
October 19, 2005, 12:41 AM
Explicit[nK]
[quote author=Shout link=topic=13055.msg131503#msg131503 date=1129682517]
[quote author=Kp link=topic=13055.msg131494#msg131494 date=1129679710]
[quote author=MyndFyre link=topic=13055.msg131491#msg131491 date=1129679479][quote author=Kp link=topic=13055.msg131486#msg131486 date=1129679051]It's not a recognized by the ELF loader as a valid image.[/quote]Try the WINE loader. :P[/quote]

Why? WPE still won't be able to sniff the network. That would require CAP_NET_ADMIN permissions, and there's no way I'm giving that to an X program!
[/quote]

I may be going out on a limb, but I don't think he is using linux.
[/quote]

You're not going out on a limb; he is using Windows.
October 19, 2005, 12:53 AM
Kp
[quote author=Explicit[nK] link=topic=13055.msg131506#msg131506 date=1129683237][quote author=Shout link=topic=13055.msg131503#msg131503 date=1129682517][quote author=Kp link=topic=13055.msg131494#msg131494 date=1129679710][quote author=MyndFyre link=topic=13055.msg131491#msg131491 date=1129679479][quote author=Kp link=topic=13055.msg131486#msg131486 date=1129679051]It's not a recognized by the ELF loader as a valid image.[/quote]Try the WINE loader. :P[/quote]Why? WPE still won't be able to sniff the network. That would require CAP_NET_ADMIN permissions, and there's no way I'm giving that to an X program![/quote]I may be going out on a limb, but I don't think he is using linux.[/quote]You're not going out on a limb; he is using Windows.[/quote]

Which is entirely irrelevant.  Ethereal works fine on Windows and on Linux.  You can run it either place, capture live, or capture to a file and view it later.  You can even take the capture on a Linux system and view it from Windows, or vice versa.

I, on the other hand, am using Linux, which is why WPE seems like such a silly idea.  Not only is it platform specific, but it wouldn't work for me and apparently isn't working particularly well for him. :)
October 19, 2005, 1:34 AM
Explicit[nK]
Shout and I were both referring to WPE Pro. :P
October 19, 2005, 1:35 AM
Kp
[quote author=Explicit[nK] link=topic=13055.msg131514#msg131514 date=1129685751]Shout and I were both referring to WPE Pro. :P[/quote]

Why?  We've already established that it's an inferior product for its lack of cross-platform support, as well as its lack of support for WSA calls.  Next you're going to tell me it can't even write its capture results to a standard format file?
October 19, 2005, 3:31 AM
Spilled[DW]
[quote author=Shout link=topic=13055.msg131418#msg131418 date=1129607454]
[quote author=Kp link=topic=13055.msg131393#msg131393 date=1129597186]
[/quote]

Probably because WPE is eaiser to use. :/
[/quote]

Having downloaded ethereal, I agree it is much easier to use, but ill figure out how to use it if this is guaranteed to work.
Thanks again guys.
October 19, 2005, 7:21 AM

Search