Home | History | Annotate | Download | only in net

Lines Matching refs:ethernet

752           'eth0      Link encap:Ethernet  HWaddr 00:0E:0C:C3:7D:A8\n'\
799 'eth0 Link encap:Ethernet HWaddr 00:0E:0C:C3:7D:A8\n'\
976 # ethernet tests
980 mac_bin = net_utils.ethernet.mac_string_to_binary('00:01:02:03:04:05')
985 mac_str = net_utils.ethernet.mac_binary_to_string(
991 dst = net_utils.ethernet.mac_string_to_binary('00:01:02:03:04:05')
992 src = net_utils.ethernet.mac_string_to_binary('16:17:18:19:1A:1B')
996 self.assertEquals(net_utils.ethernet.pack(dst, src,protocol, payload),
1001 dst = net_utils.ethernet.mac_string_to_binary('00:01:02:03:04:05')
1002 src = net_utils.ethernet.mac_string_to_binary('16:17:18:19:1A:1B')
1005 frame = net_utils.ethernet.pack(dst, src, protocol, payload)
1006 uframe = net_utils.ethernet.unpack(frame)
1007 self.assertEquals(uframe[net_utils.ethernet.FRAME_KEY_DST_MAC], dst)
1008 self.assertEquals(uframe[net_utils.ethernet.FRAME_KEY_SRC_MAC], src)
1009 self.assertEquals(uframe[net_utils.ethernet.FRAME_KEY_PROTO], protocol)
1010 self.assertEquals(uframe[net_utils.ethernet.FRAME_KEY_PAYLOAD], payload)
1120 s.recv_val = '\xFF' * (net_utils.ethernet.ETH_PACKET_MIN_SIZE-5)
1124 s.recv_val = '\xEE' * (net_utils.ethernet.ETH_PACKET_MIN_SIZE-4)
1127 s.recv_val = '\xDD' * (net_utils.ethernet.ETH_PACKET_MIN_SIZE)
1130 s.recv_val = '\xCC' * (net_utils.ethernet.ETH_PACKET_MAX_SIZE)
1133 s.recv_val = '\xBB' * (net_utils.ethernet.ETH_PACKET_MAX_SIZE+1)
1135 self.assertEquals(len(packet), net_utils.ethernet.ETH_PACKET_MAX_SIZE)
1137 s.recv_val[:net_utils.ethernet.ETH_PACKET_MAX_SIZE])
1269 dst_mac = net_utils.ethernet.mac_string_to_binary('00:01:02:03:04:05')
1270 src_mac = net_utils.ethernet.mac_string_to_binary('16:17:18:19:1A:1B')
1271 t_mac = net_utils.ethernet.mac_string_to_binary('E6:E7:E8:E9:EA:EB')
1274 data = '\xEE' * (net_utils.ethernet.ETH_PACKET_MIN_SIZE)
1289 frame = net_utils.ethernet.unpack(s.recv_val)
1304 frame = net_utils.ethernet.unpack(s.recv_val)