make an enum for a bad packet
This commit is contained in:
parent
d8a5a8169c
commit
dae607bbae
@ -32,7 +32,7 @@ namespace EduNetworkBuilder
|
||||
public enum NetShapeType { none, circle, rectangle, }
|
||||
public enum LinkType { normal, wireless, broken }
|
||||
public enum PacketType { none, ping_request, ping_answer, arp_request, arp_answer, dhcp_request,
|
||||
dhcp_answer, vpn_packet, tun_packet, tracert_request, tracert_reply }
|
||||
dhcp_answer, vpn_packet, tun_packet, tracert_request, tracert_reply, bad_packet }
|
||||
public enum ResponseToPacket { none, accept, masq, drop, reject }
|
||||
public enum DebugLevel { none=0, info=1, routing=2, switching=4, natting=8, filtering=16, debug=32 , packet=64, all=127}
|
||||
public enum NetworkComponentType { none, router, net_switch, net_hub, laptop, pc, server, wap , tree,
|
||||
|
@ -243,6 +243,9 @@ namespace EduNetworkBuilder
|
||||
case PacketType.vpn_packet:
|
||||
pencolor = Color.Orange;
|
||||
break;
|
||||
case PacketType.bad_packet:
|
||||
pencolor = Color.Black; //bad packets look bad
|
||||
break;
|
||||
}
|
||||
Network theNet = NB.GetNetwork();
|
||||
if (theNet == null)
|
||||
|
Loading…
Reference in New Issue
Block a user