2022-09-16 09:14:05 +00:00
|
|
|
//go:build !darwin && !linux && (!windows || !cgo)
|
2022-08-22 16:41:51 +00:00
|
|
|
|
|
|
|
package ingress
|
|
|
|
|
|
|
|
import (
|
2022-09-13 13:00:54 +00:00
|
|
|
"context"
|
2022-08-22 16:41:51 +00:00
|
|
|
"fmt"
|
2022-08-25 11:34:19 +00:00
|
|
|
"net/netip"
|
2022-08-22 16:41:51 +00:00
|
|
|
"runtime"
|
2022-09-09 13:47:46 +00:00
|
|
|
"time"
|
2022-08-22 16:41:51 +00:00
|
|
|
|
|
|
|
"github.com/rs/zerolog"
|
2022-09-13 13:00:54 +00:00
|
|
|
|
|
|
|
"github.com/cloudflare/cloudflared/packet"
|
2022-08-22 16:41:51 +00:00
|
|
|
)
|
|
|
|
|
2022-09-16 09:14:05 +00:00
|
|
|
var errICMPProxyNotImplemented = fmt.Errorf("ICMP proxy is not implemented on %s %s", runtime.GOOS, runtime.GOARCH)
|
2022-09-13 13:00:54 +00:00
|
|
|
|
|
|
|
type icmpProxy struct{}
|
|
|
|
|
|
|
|
func (ip icmpProxy) Request(pk *packet.ICMP, responder packet.FunnelUniPipe) error {
|
|
|
|
return errICMPProxyNotImplemented
|
|
|
|
}
|
|
|
|
|
|
|
|
func (ip *icmpProxy) Serve(ctx context.Context) error {
|
|
|
|
return errICMPProxyNotImplemented
|
|
|
|
}
|
|
|
|
|
2022-09-20 10:39:51 +00:00
|
|
|
func newICMPProxy(listenIP netip.Addr, zone string, logger *zerolog.Logger, idleTimeout time.Duration) (*icmpProxy, error) {
|
2022-09-13 13:00:54 +00:00
|
|
|
return nil, errICMPProxyNotImplemented
|
2022-08-22 16:41:51 +00:00
|
|
|
}
|