diff --git a/xt/match_addrtype.go b/xt/match_addrtype.go index d822796..3e21057 100644 --- a/xt/match_addrtype.go +++ b/xt/match_addrtype.go @@ -4,7 +4,7 @@ import ( "github.com/google/nftables/alignedbuff" ) -// Rev. 0, see https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/netfilter/xt_addrtype.h#L38 +// Rev. 0, see https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/xt_addrtype.h#L38 type AddrType struct { Source uint16 Dest uint16 @@ -29,7 +29,7 @@ const ( AddrTypeXresolve ) -// See https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/netfilter/xt_addrtype.h#L31 +// See https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/xt_addrtype.h#L31 type AddrTypeV1 struct { Source uint16 Dest uint16 diff --git a/xt/match_conntrack.go b/xt/match_conntrack.go index ff35728..fef4e8e 100644 --- a/xt/match_conntrack.go +++ b/xt/match_conntrack.go @@ -43,21 +43,21 @@ type ConntrackMtinfoBase struct { ReplDstPort uint16 } -// See https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/netfilter/xt_conntrack.h#L38 +// See https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/xt_conntrack.h#L38 type ConntrackMtinfo1 struct { ConntrackMtinfoBase StateMask uint8 StatusMask uint8 } -// See https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/netfilter/xt_conntrack.h#L51 +// See https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/xt_conntrack.h#L51 type ConntrackMtinfo2 struct { ConntrackMtinfoBase StateMask uint16 StatusMask uint16 } -// See https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/netfilter/xt_conntrack.h#L64 +// See https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/xt_conntrack.h#L64 type ConntrackMtinfo3 struct { ConntrackMtinfo2 OrigSrcPortHigh uint16 diff --git a/xt/match_tcp.go b/xt/match_tcp.go index ddf5bf3..d991f12 100644 --- a/xt/match_tcp.go +++ b/xt/match_tcp.go @@ -8,7 +8,7 @@ import ( // (https://wiki.nftables.org/wiki-nftables/index.php/Supported_features_compared_to_xtables#tcp). // // See -// https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/netfilter/xt_tcpudp.h#L8 +// https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/xt_tcpudp.h#L8 type Tcp struct { SrcPorts [2]uint16 // min, max source port range DstPorts [2]uint16 // min, max destination port range diff --git a/xt/match_udp.go b/xt/match_udp.go index 2f10aa0..68ce12a 100644 --- a/xt/match_udp.go +++ b/xt/match_udp.go @@ -8,7 +8,7 @@ import ( // (https://wiki.nftables.org/wiki-nftables/index.php/Supported_features_compared_to_xtables#tcp). // // See -// https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/netfilter/xt_tcpudp.h#L8 +// https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/xt_tcpudp.h#L25 type Udp struct { SrcPorts [2]uint16 // min, max source port range DstPorts [2]uint16 // min, max destination port range diff --git a/xt/target_dnat.go b/xt/target_dnat.go index 6aaa7f7..b54e8fb 100644 --- a/xt/target_dnat.go +++ b/xt/target_dnat.go @@ -8,7 +8,7 @@ import ( type NatRangeFlags uint -// See: https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/netfilter/nf_nat.h#L8 +// See: https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/nf_nat.h#L8 const ( NatRangeMapIPs NatRangeFlags = (1 << iota) NatRangeProtoSpecified @@ -23,7 +23,7 @@ const ( NatRangeProtoRandomAll = NatRangeProtoRandom | NatRangeProtoRandomFully ) -// see: https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/netfilter/nf_nat.h#L38 +// see: https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/nf_nat.h#L38 type NatRange struct { Flags uint // sic! platform/arch/compiler-dependent uint size MinIP net.IP // always taking up space for an IPv6 address @@ -32,7 +32,7 @@ type NatRange struct { MaxPort uint16 } -// see: https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/netfilter/nf_nat.h#L46 +// see: https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/nf_nat.h#L46 type NatRange2 struct { NatRange BasePort uint16 diff --git a/xt/target_masquerade_ip.go b/xt/target_masquerade_ip.go index 2c12b70..411d3be 100644 --- a/xt/target_masquerade_ip.go +++ b/xt/target_masquerade_ip.go @@ -7,7 +7,7 @@ import ( "github.com/google/nftables/alignedbuff" ) -// See https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/netfilter/nf_nat.h#L25 +// See https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/nf_nat.h#L25 type NatIPv4Range struct { Flags uint // sic! MinIP net.IP @@ -19,7 +19,7 @@ type NatIPv4Range struct { // NatIPv4MultiRangeCompat despite being a slice of NAT IPv4 ranges is currently allowed to // only hold exactly one element. // -// See https://elixir.bootlin.com/linux/latest/source/include/uapi/linux/netfilter/nf_nat.h#L33 +// See https://elixir.bootlin.com/linux/v5.17.7/source/include/uapi/linux/netfilter/nf_nat.h#L33 type NatIPv4MultiRangeCompat []NatIPv4Range func (x *NatIPv4MultiRangeCompat) marshal(fam TableFamily, rev uint32) ([]byte, error) {