On Wed, Nov 25, 2015 at 04:35:11AM -0800, Peter Halaška wrote:
> No prob, I appreciate your help.
> 
> When I try your first solution with MAC address, it works when I send it to 
> my local router - I see replies.
> But when I try to modify ICMP message as you said, Wireshark shows Ethernet 
> FCS incorrect. So which value should I change?
> 
> Thanks!
> 
> Peter
> 
> Dňa streda, 25. novembra 2015 12:42:22 UTC+1 Vadim Kochan napísal(-a):
> >
> > On Wed, Nov 25, 2015 at 01:03:07PM +0200, vkochan wrote: 
> > > On Wed, Nov 25, 2015 at 02:51:31AM -0800, Peter Halaška wrote: 
> > > > Hello, 
> > > > 
> > > > I'm having some problems with trafgen. 
> > > > When I try to send an echo request packet to my localhost, I see it 
> > without 
> > > > any problems, but there is no *echo reply *(see attached screen). 
> > > > I'm using cfg file which I found here 
> > > > http://www.draconyx.net/articles/trafgen-expression-language.html 
> > with SRC 
> > > > & DST IP changed. 
> > > > Please, do you know where could be the problem? 
> > > > When I try exact thing with hping3, it works as it should - with echo 
> > > > replies. 
> > > > 
> > > > Thank you very much. 
> > > > 
> > > > -- 
> > > > You received this message because you are subscribed to the Google 
> > Groups "netsniff-ng" group. 
> > > > To unsubscribe from this group and stop receiving emails from it, send 
> > an email to [email protected] <javascript:>. 
> > > > For more options, visit https://groups.google.com/d/optout. 
> > > 
> > > Hi Peter, 
> > > 
> > > I think you should also modify source MAC address. 
> > > 
> > > Regards, 
> > > Vadim Kochan 
> >
> > Peter, again, sorry for such a flood with idiotic advises from my side, 
> >
> > I tried this example and I had the same issue it on my host until I 
> > changed ICMP message size to 48 bytes. 
> >
> > ... 
> >
> > /* ICMP Message */ 
> > fill(0x58, 48), 
> > } 
> >
> > Regards, 
> > Vadim Kochan 
> >


What I think that may be you should increase packet length and correct
csum considering new length, just try to use same length like in case
for 'ping -c 1 127.0.0.1', so I think that may be problem with small
packet length ?

Regards,
Vadim Kochan

-- 
You received this message because you are subscribed to the Google Groups 
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to