Lines Matching refs:protocol
431 (0 seconds is 3x lacp timeout, use by protocol)
495 def open(self, protocol=None):
499 protocol : short in host byte order. None if ALL
504 if protocol is None:
512 socket.htons(protocol))
572 def send_to(self, dst_mac, src_mac, protocol, payload):
580 protocol: short in host byte order
586 packet = ethernet.pack(dst_mac, src_mac, protocol, payload)
592 def recv_from(self, dst_mac, src_mac, protocol):
604 protocol: short in host byte order. None do not use in filter.
622 (protocol is None or frame['proto'] == protocol)):
644 ETH_TYPE_IP = 0x0800 # IP protocol
645 ETH_TYPE_ARP = 0x0806 # address resolution protocol
646 ETH_TYPE_CDP = 0x2000 # Cisco Discovery Protocol
648 ETH_TYPE_IP6 = 0x86DD # IPv6 protocol
659 FRAME_KEY_PROTO = 'proto' # frame protocol
702 def pack(dst, src, protocol, payload):
708 protocol: short in network byte order
715 frame = struct.pack("!6s6sH", dst, src, protocol) + payload