mirror of
https://github.com/tinygo-org/net.git
synced 2026-08-12 15:33:40 +00:00
move IPPROTO_TLS to netdev to avoid src/syscall dependency
This commit is contained in:
committed by
deadprogram
parent
693edae782
commit
331151cafe
@@ -4,6 +4,12 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
// Made up, not a real IP protocol number. This is used to create a
|
||||
// TLS socket on the device, assuming the device supports mbed TLS.
|
||||
IPPROTO_TLS = 0xFE
|
||||
)
|
||||
|
||||
// netdev is the current netdev, set by the application with useNetdev()
|
||||
var netdev netdever
|
||||
|
||||
|
||||
Reference in New Issue
Block a user