Skip to content

Commit

Permalink
netlink: remove send/recv eth API for now
Browse files Browse the repository at this point in the history
  • Loading branch information
scottfeldman authored and deadprogram committed Oct 20, 2023
1 parent be69473 commit 3e9c778
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 197 deletions.
7 changes: 0 additions & 7 deletions espat/espat.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,6 @@ func (d *Device) NetNotify(cb func(netlink.Event)) {
// Not supported
}

func (d *Device) SendEth(pkt []byte) error {
return netlink.ErrNotSupported
}

func (d *Device) RecvEthHandle(handler func(pkt []byte) error) {
}

func (d *Device) GetHostByName(name string) (net.IP, error) {
ip, err := d.GetDNS(name)
return net.ParseIP(ip), err
Expand Down
15 changes: 0 additions & 15 deletions netlink/bond.go

This file was deleted.

39 changes: 0 additions & 39 deletions netlink/bridge.go

This file was deleted.

9 changes: 0 additions & 9 deletions netlink/netlink.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,4 @@ type Netlinker interface {

// GetHardwareAddr returns device MAC address
GetHardwareAddr() (net.HardwareAddr, error)

// SendEth sends an Ethernet pkt
// TODO describe content of pkt
SendEth(pkt []byte) error

// RecvEthHandle sets handler for receiving an Ethernet pkt. The
// handler MUST not hold references to the pkt on return.
// TODO describe content of pkt
RecvEthHandle(handler func(pkt []byte) error)
}
41 changes: 0 additions & 41 deletions netlink/vlan.go

This file was deleted.

7 changes: 0 additions & 7 deletions rtl8720dn/rtl8720dn.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,13 +315,6 @@ func (r *rtl8720dn) NetNotify(cb func(netlink.Event)) {
r.notifyCb = cb
}

func (r *rtl8720dn) SendEth(pkt []byte) error {
return netlink.ErrNotSupported
}

func (r *rtl8720dn) RecvEthHandle(handler func(pkt []byte) error) {
}

func (r *rtl8720dn) GetHostByName(name string) (net.IP, error) {

if debugging(debugNetdev) {
Expand Down
52 changes: 0 additions & 52 deletions tcpip/netdev.go

This file was deleted.

20 changes: 0 additions & 20 deletions tcpip/stack.go

This file was deleted.

7 changes: 0 additions & 7 deletions wifinina/wifinina.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,13 +498,6 @@ func (w *wifinina) NetNotify(cb func(netlink.Event)) {
w.notifyCb = cb
}

func (w *wifinina) SendEth(pkt []byte) error {
return netlink.ErrNotSupported
}

func (w *wifinina) RecvEthHandle(handler func(pkt []byte) error) {
}

func (w *wifinina) GetHostByName(name string) (net.IP, error) {

if debugging(debugNetdev) {
Expand Down

0 comments on commit 3e9c778

Please sign in to comment.