Re: bug in shell `` expansion code?

2001-09-21 Thread Matt Finlay
Mario Sergio Fujikawa Ferreira wrote: > Hi, > > While working on a make .mk code, I and Chris Wasser (TDF > on IRC) came across an interesting behavior: > > sh -c 'TDF="echo a && echo b";for i in `${TDF}`; do echo "i:$i"; done' > i do not believe this is a bug... it is the way the bash

Re: sendto not sending what I asked...

2001-09-20 Thread Matt Finlay
come to think of it... perhaps you are not calculating the tcp checksum correctly because of the tcp/ip pseudo header. i no longer have the code that was posted, but thinking back i believe this might be the case. Matt Finlay wrote: > Les Biffle wrote: > > > > pkt.ipbit.

Re: sendto not sending what I asked...

2001-09-20 Thread Matt Finlay
Les Biffle wrote: > > pkt.ipbit.ip_sum=in_cksum((unsigned short*)(void*)&pkt,20); > > pkt.tcpbit.th_sum=tcpsum(&pkt.ipbit); > > You need to do the TCP checksum first. It changes the payload (the TCP > checksum). The IP checksum includes all data, so must be done after the > payloa