From 49726bf1d181babaebde545fbf1353be26485fb0 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Fri, 26 Mar 2021 12:30:11 +0100 Subject: [PATCH] unix: add ICMPV6_FILTER_* consts on linux Change-Id: If626dab3c708d78768ae593b7b3f8bff280ee641 Reviewed-on: https://go-review.googlesource.com/c/sys/+/305049 Trust: Tobias Klauser Run-TryBot: Tobias Klauser TryBot-Result: Go Bot Reviewed-by: Ian Lance Taylor --- unix/mkerrors.sh | 2 +- unix/zerrors_linux.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/unix/mkerrors.sh b/unix/mkerrors.sh index 086d6941..f2bc8631 100755 --- a/unix/mkerrors.sh +++ b/unix/mkerrors.sh @@ -502,7 +502,7 @@ ccflags="$@" $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|MCAST|EVFILT|NOTE|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR|LOCAL)_/ || $2 ~ /^TP_STATUS_/ || $2 ~ /^FALLOC_/ || - $2 ~ /^ICMP(V6)?_FILTER$/ || + $2 ~ /^ICMP(V6)?_FILTER/ || $2 == "SOMAXCONN" || $2 == "NAME_MAX" || $2 == "IFNAMSIZ" || diff --git a/unix/zerrors_linux.go b/unix/zerrors_linux.go index 3b1b9287..35de419c 100644 --- a/unix/zerrors_linux.go +++ b/unix/zerrors_linux.go @@ -974,6 +974,10 @@ const ( HUGETLBFS_MAGIC = 0x958458f6 IBSHIFT = 0x10 ICMPV6_FILTER = 0x1 + ICMPV6_FILTER_BLOCK = 0x1 + ICMPV6_FILTER_BLOCKOTHERS = 0x3 + ICMPV6_FILTER_PASS = 0x2 + ICMPV6_FILTER_PASSONLY = 0x4 ICMP_FILTER = 0x1 ICRNL = 0x100 IFA_F_DADFAILED = 0x8