예제 #1
0
 public EthernetFrame(EthernetPort dst, EthernetPort src, Option <ushort> vlan, Layer3Packet layer3Packet)
 {
     _apiEthernet = Generators.Ethernet(dst, src) | Generators.Dot1Q(vlan);
     _apiEthernet = layer3Packet.Merge(_apiEthernet);
 }
예제 #2
0
 public EthernetFrame(EthernetPort dst, EthernetPort src, Layer3Packet layer3Packet)
 {
     _apiEthernet = Generators.Ethernet(dst, src);
     _apiEthernet = layer3Packet.Merge(_apiEthernet);
 }