lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Tue, 16 Jan 2007 00:36:50 +0100 From: Eric Dumazet <dada1@...mosbay.com> To: Michael Tokarev <mjt@....msk.ru> CC: Herbert Xu <herbert@...dor.apana.org.au>, netdev@...r.kernel.org Subject: Re: rare bad TCP checksum with 2.6.19? Michael Tokarev a écrit : > Eric Dumazet wrote: >> Michael Tokarev a e'crit : >>> Any idea how to force sending FIN-with-data? >> int flag_on = 1; >> setsockopt(fd, SOL_TCP, TCP_CORK, &flag_on, sizeof(int)); >> send(fd, data, datalen, 0); >> close(fd); > > That produces two packets - one (or more - depending on the > size) data packet and one FIN packet w/o any data. > > This is the first thing I've tried. This may be because I forgot the shutdown() ? int flag_on = 1; setsockopt(fd, SOL_TCP, TCP_CORK, &flag_on, sizeof(int)); send(fd, data, datalen, 0); shutdown(fd, 1); close(fd); At least this is working on my machines (with and without shutdown()) Eric - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists