Hi all,
I have two hosts, one in OpenBSD 4.2 (stable) and another is Redhat ESv4u4
When I ping (ipv6) from OpenBSD to Redhat with custom size for icmp6 (-s
option), I cannot go past 8184, 8185 and above give me an error EMSGSIZE.
Whereas pinging from Redhat to OpenBSD I can go beyond 8184, infact I am able to
go 10000, above that I have not tried it yet.
Is this behavior expected?,
OpenBSD IPv6 Address: fd1b:d92f:84f3:125:20c:29ff:fe8d:f732
Redhat IPv6 Address: fd1b:d92f:84f3:167:214:22ff:fe7b:cc68
command: ping6 -s "SIZE" -c 5 "HOST"
Test from OpenBSD
Basic ping with 56 bytes:
openbsd-test: [~]
[84]$ ping6 -c 2 fd1b:d92f:84f3:167:214:22ff:fe7b:cc68
PING6(56=40+8+8 bytes) fd1b:d92f:84f3:125:20c:29ff:fe8d:f732 -->
fd1b:d92f:84f3:167:214:22ff:fe7b:cc68
16 bytes from fd1b:d92f:84f3:167:214:22ff:fe7b:cc68, icmp_seq=0 hlim=63
time=7.987 ms
16 bytes from fd1b:d92f:84f3:167:214:22ff:fe7b:cc68, icmp_seq=1 hlim=63
time=2.029 ms
--- fd1b:d92f:84f3:167:214:22ff:fe7b:cc68 ping6 statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 2.029/5.008/7.987/2.979 ms
Ping with custom size set to 8184 bytes:
openbsd-test: [~]
[85]$ ping6 -c 2 -s 8184 fd1b:d92f:84f3:167:214:22ff:fe7b:cc68
PING6(8232=40+8+8184 bytes) fd1b:d92f:84f3:125:20c:29ff:fe8d:f732 -->
fd1b:d92f:84f3:167:214:22ff:fe7b:cc68
8192 bytes from fd1b:d92f:84f3:167:214:22ff:fe7b:cc68, icmp_seq=0 hlim=63
time=24.35 ms
8192 bytes from fd1b:d92f:84f3:167:214:22ff:fe7b:cc68, icmp_seq=1 hlim=63
time=19.296 ms
--- fd1b:d92f:84f3:167:214:22ff:fe7b:cc68 ping6 statistics ---
2 packets transmitted, 2 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 19.296/21.823/24.350/2.527 ms
Ping with custom size set to 8185 bytes:
openbsd-test: [~]
[86]$ ping6 -c 2 -s 8185 fd1b:d92f:84f3:167:214:22ff:fe7b:cc68
PING6(8233=40+8+8185 bytes) fd1b:d92f:84f3:125:20c:29ff:fe8d:f732 -->
fd1b:d92f:84f3:167:214:22ff:fe7b:cc68
ping6: sendmsg: Message too long
ping6: wrote fd1b:d92f:84f3:167:214:22ff:fe7b:cc68 8193 chars, ret=-1
ping6: sendmsg: Message too long
ping6: wrote fd1b:d92f:84f3:167:214:22ff:fe7b:cc68 8193 chars, ret=-1
--- fd1b:d92f:84f3:167:214:22ff:fe7b:cc68 ping6 statistics ---
2 packets transmitted, 0 packets received, 100.0% packet loss
Test from Redhat:
Basic ping:
[EMAIL PROTECTED] ~]# ping6 -c 2 fd1b:d92f:84f3:125:20c:29ff:fe8d:f732
PING
fd1b:d92f:84f3:125:20c:29ff:fe8d:f732(fd1b:d92f:84f3:125:20c:29ff:fe8d:f732) 56
data bytes
64 bytes from fd1b:d92f:84f3:125:20c:29ff:fe8d:f732: icmp_seq=0 ttl=63
time=3.17 ms
64 bytes from fd1b:d92f:84f3:125:20c:29ff:fe8d:f732: icmp_seq=1 ttl=63
time=1.79 ms
--- fd1b:d92f:84f3:125:20c:29ff:fe8d:f732 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.797/2.487/3.178/0.692 ms, pipe 2
Ping with custom size set to 8184:
[EMAIL PROTECTED] ~]# ping6 -c 2 -s 8184 fd1b:d92f:84f3:125:20c:29ff:fe8d:f732
PING
fd1b:d92f:84f3:125:20c:29ff:fe8d:f732(fd1b:d92f:84f3:125:20c:29ff:fe8d:f732)
8184 data bytes
8192 bytes from fd1b:d92f:84f3:125:20c:29ff:fe8d:f732: icmp_seq=0 ttl=63
time=9.37 ms
8192 bytes from fd1b:d92f:84f3:125:20c:29ff:fe8d:f732: icmp_seq=1 ttl=63
time=9.32 ms
--- fd1b:d92f:84f3:125:20c:29ff:fe8d:f732 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 9.322/9.349/9.377/0.100 ms, pipe 2
Ping with custom size set to 8185:
[EMAIL PROTECTED] ~]# ping6 -c 2 -s 8185 fd1b:d92f:84f3:125:20c:29ff:fe8d:f732
PING
fd1b:d92f:84f3:125:20c:29ff:fe8d:f732(fd1b:d92f:84f3:125:20c:29ff:fe8d:f732)
8185 data bytes
8193 bytes from fd1b:d92f:84f3:125:20c:29ff:fe8d:f732: icmp_seq=0 ttl=63
time=9.36 ms
8193 bytes from fd1b:d92f:84f3:125:20c:29ff:fe8d:f732: icmp_seq=1 ttl=63
time=9.40 ms
--- fd1b:d92f:84f3:125:20c:29ff:fe8d:f732 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 9.362/9.382/9.403/0.099 ms, pipe 2
Ping with custom size set to 10000:
[EMAIL PROTECTED] ~]# ping6 -c 2 -s 10000 fd1b:d92f:84f3:125:20c:29ff:fe8d:f732
PING
fd1b:d92f:84f3:125:20c:29ff:fe8d:f732(fd1b:d92f:84f3:125:20c:29ff:fe8d:f732)
10000 data bytes
10008 bytes from fd1b:d92f:84f3:125:20c:29ff:fe8d:f732: icmp_seq=0 ttl=63
time=11.0 ms
10008 bytes from fd1b:d92f:84f3:125:20c:29ff:fe8d:f732: icmp_seq=1 ttl=63
time=21.0 ms
--- fd1b:d92f:84f3:125:20c:29ff:fe8d:f732 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 11.086/16.044/21.002/4.958 ms, pipe 2
OpenBSD uname:
OpenBSD openbsd-test.contoso.com 4.2 GENERIC#375 i386
ifconfig from OpenBSD:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33208
groups: lo
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
pcn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 00:0c:29:8d:f7:32
groups: egress
media: Ethernet autoselect (autoselect)
inet6 fe80::20c:29ff:fe8d:f732%pcn0 prefixlen 64 scopeid 0x1
inet 172.21.125.23 netmask 0xffffff00 broadcast 172.21.125.255
inet6 fd1b:d92f:84f3:125:20c:29ff:fe8d:f732 prefixlen 64 pltime 604796
vltime 2591996
enc0: flags=0<> mtu 1536
ifconfig from Linux:
[EMAIL PROTECTED] ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:14:22:7B:CC:68
inet addr:172.21.167.2 Bcast:172.21.167.255 Mask:255.255.255.0
inet6 addr: fd1b:d92f:84f3:167:214:22ff:fe7b:cc68/64 Scope:Global
inet6 addr: fe80::214:22ff:fe7b:cc68/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9329065 errors:0 dropped:0 overruns:0 frame:0
TX packets:8163373 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:821633412 (783.5 MiB) TX bytes:1202448277 (1.1 GiB)
Interrupt:169