Skip to content

Commit

Permalink
missing commit, minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sio4 committed Feb 28, 2018
1 parent 3ceee9e commit fea5726
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/goul
/cmd/goul/debug

/cover.html
/cover.out
Expand Down
4 changes: 2 additions & 2 deletions adapters/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (a *NetworkAdapter) reader(ctrl, out chan goul.Item, conn *net.TCPConn) {
break
}
}
//goul.Log(a.GetLogger(), a.ID+"-rcv", "read %v %v", len(data), remind)
goul.Log(a.GetLogger(), a.ID+"-rcv", "read %v %v", len(data), remind)

select {
case _, ok = <-ctrl:
Expand All @@ -136,7 +136,7 @@ func (a *NetworkAdapter) reader(ctrl, out chan goul.Item, conn *net.TCPConn) {
// but how and what can I do for compressed data?
// am I need autodetection? or just let pipeline do it?
// TODO: This code does not work properly. gzip also treated as packet.
// TODO: Please add mime time in header or just remove all pipes.
// TODO: Please add mime type in header or just remove all pipes.
p = gopacket.NewPacket(data, layers.LayerTypeEthernet, gopacket.Default)
if packet, ok = p.(gopacket.Packet); ok {
out <- packet
Expand Down
2 changes: 1 addition & 1 deletion mixin.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ func (c *BaseCommon) SetError(err error) {
// GetError implements CommonMixin
func (c *BaseCommon) GetError() error {
return c.err
}
}
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func PrintDevices() error {
return errors.New("NoDevices")
}

fmt.Println(`\nYour system has following device(s).
fmt.Println(`Your system has following device(s).
Use name of the device with '-d' flag for override default device 'eth0'.
(e.g. '-d bond0')
Expand Down

0 comments on commit fea5726

Please sign in to comment.