From ff8fa732dccb05a677383377419309c9440c295d Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Sat, 24 Oct 2020 18:43:10 +0200 Subject: [PATCH] rename Protocol type to avoid conflict with nativesockets.Protocol --- ip_packet.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ip_packet.nim b/ip_packet.nim index 12f3a40..2a5063d 100644 --- a/ip_packet.nim +++ b/ip_packet.nim @@ -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