rename Protocol type to avoid conflict with nativesockets.Protocol

master
Christian Ulrich 2020-10-24 18:43:10 +02:00
parent 5debee2521
commit ff8fa732dc
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ type
th_sum: uint16 # checksum
th_urp: uint16 # urgent pointer
Protocol* = enum
TransportProtocol* = enum
tcp
other
@ -61,7 +61,7 @@ type
ipAddrSrc*: IpAddress
ipAddrDst*: IpAddress
ipTTL*: uint8
case protocol*: Protocol
case protocol*: TransportProtocol
of tcp:
tcpPortSrc*: Port
tcpPortDst*: Port