Commit a1cae0f0 authored by Brickner_cp's avatar Brickner_cp

IPv6

parent 43ce060f
...@@ -37,7 +37,7 @@ namespace PcapDotNet.Packets.IpV6 ...@@ -37,7 +37,7 @@ namespace PcapDotNet.Packets.IpV6
return Equals(other as IpV6AccessNetworkIdentifierSubOption); return Equals(other as IpV6AccessNetworkIdentifierSubOption);
} }
public override int GetHashCode() public sealed override int GetHashCode()
{ {
return Sequence.GetHashCode(OptionType, GetDataHashCode()); return Sequence.GetHashCode(OptionType, GetDataHashCode());
} }
......
...@@ -29,7 +29,7 @@ namespace PcapDotNet.Packets.IpV6 ...@@ -29,7 +29,7 @@ namespace PcapDotNet.Packets.IpV6
return true; return true;
} }
internal override object GetDataHashCode() internal sealed override object GetDataHashCode()
{ {
return 0; return 0;
} }
......
...@@ -56,7 +56,7 @@ namespace PcapDotNet.Packets.IpV6 ...@@ -56,7 +56,7 @@ namespace PcapDotNet.Packets.IpV6
return EqualsData(other as IpV6MobilityOptionIpV4Address); return EqualsData(other as IpV6MobilityOptionIpV4Address);
} }
internal override int GetDataHashCode() internal sealed override int GetDataHashCode()
{ {
return Address.GetHashCode(); return Address.GetHashCode();
} }
......
...@@ -71,7 +71,7 @@ namespace PcapDotNet.Packets.IpV6 ...@@ -71,7 +71,7 @@ namespace PcapDotNet.Packets.IpV6
return EqualsData(other as IpV6OptionEndpointIdentification); return EqualsData(other as IpV6OptionEndpointIdentification);
} }
internal override int GetDataHashCode() internal override int GetDataHashCode()
{ {
return Sequence.GetHashCode(SourceEndpointIdentifier, DestinationEndpointIdentifier); return Sequence.GetHashCode(SourceEndpointIdentifier, DestinationEndpointIdentifier);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment