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
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.
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
3 matches
Mail list logo