summary refs log tree commit diff stats
path: root/tests/stdlib/tgetprotobyname.nim
diff options
context:
space:
mode:
authorkraptor <kraptor@kraptor.com>2022-05-07 20:46:45 +0200
committerGitHub <noreply@github.com>2022-05-07 20:46:45 +0200
commit2c73e84436a11cae1676c7da0228158ba1a885cc (patch)
treee495f20b5f8fa1d1fc5febd0ffadcd4a331ae3b5 /tests/stdlib/tgetprotobyname.nim
parent0455d24d555e4f83537af535c0b2e44291d1fe97 (diff)
downloadNim-2c73e84436a11cae1676c7da0228158ba1a885cc.tar.gz
"ip" protocol as id 0 is long gone (#19760)
IANA is using id 0 for "HOPOPT" instead of "ip"
for some time now and those systems that still
support the old mapping will stop doing so at
some point in the future.

Some BSDs and openSUSE are already following this
change as per IANA list here:
https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml

As new unixes (and maybe Windows, who knows) start
to adopt the updated IANA list, this will keep
failing from time to time, so it's better to
remove the "ip" check altogether.
Diffstat (limited to 'tests/stdlib/tgetprotobyname.nim')
-rw-r--r--tests/stdlib/tgetprotobyname.nim4
1 files changed, 0 insertions, 4 deletions
diff --git a/tests/stdlib/tgetprotobyname.nim b/tests/stdlib/tgetprotobyname.nim
index 0b60d059f..014c18845 100644
--- a/tests/stdlib/tgetprotobyname.nim
+++ b/tests/stdlib/tgetprotobyname.nim
@@ -1,9 +1,5 @@
 import nativesockets
 
-when not defined(netbsd):
-  # Ref: https://github.com/nim-lang/Nim/issues/15452 - NetBSD doesn't define an `ip` protocol
-  doAssert getProtoByName("ip") == 0
-
 doAssert getProtoByName("ipv6") == 41
 doAssert getProtoByName("tcp") == 6
 doAssert getProtoByName("udp") == 17