kopia lustrzana https://github.com/cyoung/stratux
Replace problematic iana package constants with actual values.
Fixes Makefile issue.pull/58/head
rodzic
a8e8562e5f
commit
3c30d78368
2
Makefile
2
Makefile
|
|
@ -3,7 +3,7 @@ GOARCH ?= arm
|
|||
GOARM ?= 7
|
||||
|
||||
all:
|
||||
# GOOS=$(GOOS) GOARCH=$(GOARCH) GOARM=$(GOARM) go get -t -d -v ./...
|
||||
GOOS=$(GOOS) GOARCH=$(GOARCH) GOARM=$(GOARM) go get -t -d -v ./...
|
||||
GOOS=$(GOOS) GOARCH=$(GOARCH) GOARM=$(GOARM) go build -ldflags " -X main.stratuxVersion=`git describe --abbrev=0 --tags` -X main.stratuxBuild=`git log -n 1 --pretty=%H`" main/gen_gdl90.go main/traffic.go main/ry835ai.go main/network.go main/managementinterface.go main/sdr.go
|
||||
|
||||
test:
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@ package main
|
|||
|
||||
import (
|
||||
"golang.org/x/net/icmp"
|
||||
"golang.org/x/net/internal/iana"
|
||||
"golang.org/x/net/ipv4"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
|
|
@ -262,7 +261,7 @@ func sleepMonitor() {
|
|||
log.Printf("%s\n", err.Error())
|
||||
continue
|
||||
}
|
||||
msg, err := icmp.ParseMessage(iana.ProtocolICMP, buf[:n])
|
||||
msg, err := icmp.ParseMessage(1, buf[:n])
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
|
|
@ -280,7 +279,7 @@ func sleepMonitor() {
|
|||
continue
|
||||
}
|
||||
// Packet parsing.
|
||||
mb, err := msg.Body.Marshal(iana.ProtocolICMP)
|
||||
mb, err := msg.Body.Marshal(1)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue