Skip to content

Commit

Permalink
mage check
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansr authored and Andrew Stucki committed Apr 6, 2020
1 parent 191cce0 commit 48c52cd
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 16 deletions.
3 changes: 2 additions & 1 deletion x-pack/auditbeat/module/system/socket/events/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ import (
"fmt"
"net"

"golang.org/x/sys/unix"

"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/common"
"github.com/elastic/beats/v7/x-pack/auditbeat/tracing"
"golang.org/x/sys/unix"
)

type TCPv4ConnectCall struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ package events
import (
"fmt"

"golang.org/x/sys/unix"

"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/common"
"github.com/elastic/beats/v7/x-pack/auditbeat/tracing"
"golang.org/x/sys/unix"
)

type Inet6CskXmitCall struct {
Expand Down
3 changes: 2 additions & 1 deletion x-pack/auditbeat/module/system/socket/events/inet_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ package events
import (
"fmt"

"golang.org/x/sys/unix"

"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/common"
"github.com/elastic/beats/v7/x-pack/auditbeat/tracing"
"golang.org/x/sys/unix"
)

type InetCreateCall struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ package events
import (
"fmt"

"golang.org/x/sys/unix"

"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/common"
"github.com/elastic/beats/v7/x-pack/auditbeat/tracing"
"golang.org/x/sys/unix"
)

type InetCskAcceptReturn struct {
Expand Down
3 changes: 2 additions & 1 deletion x-pack/auditbeat/module/system/socket/events/ip_local_out.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ package events
import (
"fmt"

"golang.org/x/sys/unix"

"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/common"
"github.com/elastic/beats/v7/x-pack/auditbeat/tracing"
"golang.org/x/sys/unix"
)

type IPLocalOutCall struct {
Expand Down
3 changes: 2 additions & 1 deletion x-pack/auditbeat/module/system/socket/events/tcp_sendmsg.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ package events
import (
"fmt"

"golang.org/x/sys/unix"

"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/common"
"github.com/elastic/beats/v7/x-pack/auditbeat/tracing"
"golang.org/x/sys/unix"
)

type TCPSendmsgCall struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ package events
import (
"fmt"

"golang.org/x/sys/unix"

"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/common"
"github.com/elastic/beats/v7/x-pack/auditbeat/tracing"
"golang.org/x/sys/unix"
)

type TCPv4DoRcvCall struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ package events
import (
"fmt"

"golang.org/x/sys/unix"

"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/common"
"github.com/elastic/beats/v7/x-pack/auditbeat/tracing"
"golang.org/x/sys/unix"
)

type TCPv6DoRcvCall struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ package events
import (
"fmt"

"golang.org/x/sys/unix"

"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/common"
"github.com/elastic/beats/v7/x-pack/auditbeat/tracing"
"golang.org/x/sys/unix"
)

func validIPv4Headers(ipHdr uint16, udpHdr uint16, data []byte) bool {
Expand Down
3 changes: 2 additions & 1 deletion x-pack/auditbeat/module/system/socket/events/udp_sendmsg.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ package events
import (
"fmt"

"golang.org/x/sys/unix"

"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/common"
"github.com/elastic/beats/v7/x-pack/auditbeat/tracing"
"golang.org/x/sys/unix"
)

type UDPSendmsgCall struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ package events
import (
"fmt"

"golang.org/x/sys/unix"

"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/common"
"github.com/elastic/beats/v7/x-pack/auditbeat/tracing"
"golang.org/x/sys/unix"
)

func validIPv6Headers(ipHdr uint16, udpHdr uint16, data []byte) bool {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ package events
import (
"fmt"

"golang.org/x/sys/unix"

"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/common"
"github.com/elastic/beats/v7/x-pack/auditbeat/tracing"
"golang.org/x/sys/unix"
)

type UDPv6SendmsgCall struct {
Expand Down
9 changes: 5 additions & 4 deletions x-pack/auditbeat/module/system/socket/state/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ import (
"testing"
"time"

"github.com/joeshaw/multierror"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"golang.org/x/sys/unix"

"github.com/elastic/beats/v7/libbeat/beat"
"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/common"
"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/dns"
"github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/events"
"github.com/elastic/beats/v7/x-pack/auditbeat/tracing"
"github.com/joeshaw/multierror"
"github.com/pkg/errors"
"github.com/stretchr/testify/assert"
"golang.org/x/sys/unix"
)

type logWrapper testing.T
Expand Down

0 comments on commit 48c52cd

Please sign in to comment.