rename Protocol type to avoid conflict with nativesockets.Protocol
This commit is contained in:
parent
5debee2521
commit
ff8fa732dc
|
@ -45,7 +45,7 @@ type
|
||||||
th_sum: uint16 # checksum
|
th_sum: uint16 # checksum
|
||||||
th_urp: uint16 # urgent pointer
|
th_urp: uint16 # urgent pointer
|
||||||
|
|
||||||
Protocol* = enum
|
TransportProtocol* = enum
|
||||||
tcp
|
tcp
|
||||||
other
|
other
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ type
|
||||||
ipAddrSrc*: IpAddress
|
ipAddrSrc*: IpAddress
|
||||||
ipAddrDst*: IpAddress
|
ipAddrDst*: IpAddress
|
||||||
ipTTL*: uint8
|
ipTTL*: uint8
|
||||||
case protocol*: Protocol
|
case protocol*: TransportProtocol
|
||||||
of tcp:
|
of tcp:
|
||||||
tcpPortSrc*: Port
|
tcpPortSrc*: Port
|
||||||
tcpPortDst*: Port
|
tcpPortDst*: Port
|
||||||
|
|
Loading…
Reference in New Issue