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  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 04 Jul 2007 22:28:24 +0900 (JST)
From:	Ken-ichirou MATSUZAWA <chamas@...dion.ne.jp>
To:	netdev@...r.kernel.org
Subject: checksum of lsrr

Hello,
I tried source routing with netcat just for my interest but it did
not work. tcpdump output follows:

00:07:40:53:bd:55 > 00:01:8e:b3:82:1c, ethertype IPv4 (0x0800),
  length 86: (tos 0x0, ttl  64, id 50437, offset 0, flags [DF],
  proto: TCP (6), length: 72, options (LSRR 172.27.129.2 172.27.129.2,NOP))
  172.27.129.129.44281 > 172.27.129.1.3333:
  S, cksum 0xc434 (correct), 561806820:561806820(0) win 5840 <mss 1460,sackOK,timestamp 112865 0,nop,wscale 6>

00:01:8e:b3:82:1c > 00:e0:81:29:d1:7d, ethertype IPv4 (0x0800),
  length 86: (tos 0x0, ttl  63, id 50437, offset 0, flags [DF],
  proto: TCP (6), length: 72, options (LSRR 172.27.129.1, 172.27.129.2,NOP))
  172.27.129.129.44281 > 172.27.129.2.3333:
  S, cksum 0xc434 (correct), 561806820:561806820(0) win 5840 <mss 1460,sackOK,timestamp 112865 0,nop,wscale 6>

00:e0:81:29:d1:7d > 00:01:8e:b3:82:1c, ethertype IPv4 (0x0800),
  length 82: (tos 0x0, ttl  64, id 0, offset 0, flags [DF],
  proto: TCP (6), length: 68, options (LSRR 172.27.129.129,EOL))
  172.27.129.2.3333 > 172.27.129.1.44281:
  S, cksum 0xc35b (correct), 183283162:183283162(0) ack 561806821 win 5792 <mss 1460,sackOK,timestamp 673831 112865,nop,wscale 6>

00:01:8e:b3:82:1c > 00:07:40:53:bd:55, ethertype IPv4 (0x0800),
  length 82: (tos 0x0, ttl  63, id 0, offset 0, flags [DF],
  proto: TCP (6), length: 68, options (LSRR 172.27.129.1,,EOL))
  172.27.129.2.3333 > 172.27.129.129.44281:
  S, cksum 0xc35b (incorrect (-> 0xc3db), 183283162:183283162(0) ack 561806821 win 5792 <mss 1460,sackOK,timestamp 673831 112865,nop,wscale 6>

the last line says checksum is incorrect, then I saw
ip_options_rcv_rcv_srr() in ip_options.c:

		memcpy(&iph->daddr, &optptr[srrptr-1], 4);
		opt->is_changed = 1;
	}
	if (srrptr <= srrspace) {

if we change destination address, we need recompute not only ip
checksum but also tcp's, don't we? 

thanks,
-
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ