summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/sample/tun_tcp_connect
diff options
context:
space:
mode:
authorIan Gudger <igudger@google.com>2019-09-17 11:29:03 -0700
committergVisor bot <gvisor-bot@google.com>2019-09-17 11:31:00 -0700
commit747320a7aa013f6b987f8f52173f51ff3aedb66c (patch)
treeef852fcdf58dbbf0d72ba6ebbcb4c3a57aa8bd6e /pkg/tcpip/sample/tun_tcp_connect
parent191297ecbe3ae57bbf51b889d33d78e6700eee5b (diff)
Update remaining users of LinkEndpoints to not refer to them as an ID.
PiperOrigin-RevId: 269614517
Diffstat (limited to 'pkg/tcpip/sample/tun_tcp_connect')
-rw-r--r--pkg/tcpip/sample/tun_tcp_connect/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/tcpip/sample/tun_tcp_connect/main.go b/pkg/tcpip/sample/tun_tcp_connect/main.go
index e2021cd15..f12189580 100644
--- a/pkg/tcpip/sample/tun_tcp_connect/main.go
+++ b/pkg/tcpip/sample/tun_tcp_connect/main.go
@@ -138,11 +138,11 @@ func main() {
log.Fatal(err)
}
- linkID, err := fdbased.New(&fdbased.Options{FDs: []int{fd}, MTU: mtu})
+ linkEP, err := fdbased.New(&fdbased.Options{FDs: []int{fd}, MTU: mtu})
if err != nil {
log.Fatal(err)
}
- if err := s.CreateNIC(1, sniffer.New(linkID)); err != nil {
+ if err := s.CreateNIC(1, sniffer.New(linkEP)); err != nil {
log.Fatal(err)
}