/dports/net-mgmt/ndpmon/ndpmon-1.4.0/plugins/countermeasures/ |
H A D | countermeasures.c | 210 struct ether_addr *dst_mac=NULL; in cm_kill_illegitimate_router() local 229 dst_mac = create_multicast_mac_for_ip(dst_ip); in cm_kill_illegitimate_router() 255 free(dst_mac); in cm_kill_illegitimate_router() 266 struct ether_addr *dst_mac=NULL; in cm_kill_wrong_prefix() local 286 dst_mac = create_multicast_mac_for_ip(dst_ip); in cm_kill_wrong_prefix() 324 free(dst_mac); in cm_kill_wrong_prefix() 337 struct ether_addr *dst_mac=NULL; in cm_propagate_router_params() local 420 free(dst_mac); in cm_propagate_router_params() 473 free(dst_mac); in cm_indicate_ndpmon_presence() 503 struct ether_addr *dst_mac=NULL; in cm_propagate_neighbor_mac() local [all …]
|
H A D | icmp_lib.h | 90 int compose_packet(struct ether_addr* dst_mac, struct ether_addr* src_mac, struct ip6_hdr* iphdr, s… 102 struct ether_addr* dst_mac,
|
/dports/net/ryu/ryu-4.26/ryu/lib/packet/ |
H A D | arp.py | 67 dst_mac='ff:ff:ff:ff:ff:ff', argument 77 self.dst_mac = dst_mac 83 dst_mac, dst_ip) = struct.unpack_from(cls._PACK_STR, buf) 87 addrconv.mac.bin_to_text(dst_mac), 95 addrconv.mac.text_to_bin(self.dst_mac), 99 def arp_ip(opcode, src_mac, src_ip, dst_mac, dst_ip): argument 110 opcode, src_mac, src_ip, dst_mac, dst_ip)
|
/dports/net/ryu/ryu-4.26/ryu/tests/unit/packet/ |
H A D | test_arp.py | 45 dst_mac = '00:00:00:00:00:00' variable in Test_arp 52 addrconv.mac.text_to_bin(dst_mac), 55 a = arp(hwtype, proto, hlen, plen, opcode, src_mac, src_ip, dst_mac, 77 eq_(self.dst_mac, self.a.dst_mac) 94 eq_(res.dst_mac, self.dst_mac) 112 eq_(res[7], addrconv.mac.text_to_bin(self.dst_mac)) 121 e = ethernet(self.dst_mac, self.src_mac, ethertype) 152 eq_(a.dst_mac, self.dst_mac) 172 eq_(a.dst_mac, self.dst_mac)
|
H A D | test_packet.py | 45 dst_mac = 'aa:aa:aa:aa:aa:aa' variable in TestPacket 119 eq_(self.dst_mac, p_eth.dst) 132 eq_(self.dst_mac, p_arp.dst_mac) 136 eth_values = {'dst': self.dst_mac, 220 eq_(self.dst_mac, p_eth.dst) 240 eq_(self.dst_mac, p_arp.dst_mac) 244 eth_values = {'dst': self.dst_mac, 338 eq_(self.dst_mac, p_eth.dst) 377 eth_values = {'dst': self.dst_mac, 483 eq_(self.dst_mac, p_eth.dst) [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/tc-testing/ |
H A D | tdc_batch.py | 73 def format_add_filter(device, prio, handle, skip, src_mac, dst_mac, argument 77 device, prio, handle, skip, src_mac, dst_mac, share_action)) 80 def format_rep_filter(device, prio, handle, skip, src_mac, dst_mac, argument 84 device, prio, handle, skip, src_mac, dst_mac, share_action)) 87 def format_del_filter(device, prio, handle, skip, src_mac, dst_mac, argument 105 dst_mac = "e4:12:00:" + mac variable 107 dst_mac, share_action)
|
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/tc-testing/ |
H A D | tdc_batch.py | 73 def format_add_filter(device, prio, handle, skip, src_mac, dst_mac, argument 77 device, prio, handle, skip, src_mac, dst_mac, share_action)) 80 def format_rep_filter(device, prio, handle, skip, src_mac, dst_mac, argument 84 device, prio, handle, skip, src_mac, dst_mac, share_action)) 87 def format_del_filter(device, prio, handle, skip, src_mac, dst_mac, argument 105 dst_mac = "e4:12:00:" + mac variable 107 dst_mac, share_action)
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/tc-testing/ |
H A D | tdc_batch.py | 73 def format_add_filter(device, prio, handle, skip, src_mac, dst_mac, argument 77 device, prio, handle, skip, src_mac, dst_mac, share_action)) 80 def format_rep_filter(device, prio, handle, skip, src_mac, dst_mac, argument 84 device, prio, handle, skip, src_mac, dst_mac, share_action)) 87 def format_del_filter(device, prio, handle, skip, src_mac, dst_mac, argument 105 dst_mac = "e4:12:00:" + mac variable 107 dst_mac, share_action)
|
/dports/net/parpd/parpd-1.3/ |
H A D | nd.c | 181 response->la = *dst_mac; in nd_send_response() 192 if(ETHER_IS_MULTICAST(dst_mac->octet)) { in nd_search_mac_and_respond() 196 nd_send_response(frame, dst_mac, rule_number); in nd_search_mac_and_respond() 201 struct ether_addr dst_mac; in nd_eui_respond() local 208 dst_mac.octet[0] = search_ip.s6_addr[8] ^ 0x02; in nd_eui_respond() 209 dst_mac.octet[1] = search_ip.s6_addr[9]; in nd_eui_respond() 210 dst_mac.octet[2] = search_ip.s6_addr[10]; in nd_eui_respond() 211 dst_mac.octet[3] = search_ip.s6_addr[13]; in nd_eui_respond() 212 dst_mac.octet[4] = search_ip.s6_addr[14]; in nd_eui_respond() 213 dst_mac.octet[5] = search_ip.s6_addr[15]; in nd_eui_respond() [all …]
|
H A D | arp.c | 135 static void arp_send_response(const struct arp_frame * frame, const struct ether_addr * dst_mac, in… in arp_send_response() argument 143 inet_ntoa(frame->dst.ip), ether_ntoa(dst_mac)); in arp_send_response() 155 response->src.mac = *dst_mac; in arp_send_response() 163 struct ether_addr * dst_mac = lookup_mac_by_ip(search_ip); in arp_search_mac_and_respond() local 166 if(NULL == dst_mac) in arp_search_mac_and_respond() 169 if(ether_eq(&broadcast, dst_mac)) in arp_search_mac_and_respond() 172 if(ether_eq(&null_mac, dst_mac)) in arp_search_mac_and_respond() 175 if(ether_eq(&frame->src.mac, dst_mac)) { in arp_search_mac_and_respond() 182 arp_send_response(frame, dst_mac, rule_number); in arp_search_mac_and_respond()
|
/dports/net/libfb/libfb-2.0.2/libfb/ |
H A D | utility.c | 125 parse_mac (char *src_mac, unsigned char *dst_mac) in parse_mac() argument 139 dst_mac[x] = strtol (hex, NULL, 16); in parse_mac() 146 &dst_mac[0], &dst_mac[1], &dst_mac[2], &dst_mac[3], in parse_mac() 147 &dst_mac[4], &dst_mac[5]); in parse_mac()
|
H A D | ethernet.c | 49 send_doof (libfb_t * f, u_int8_t * dst_mac, u_int8_t * buf, u_int16_t buflen, in send_doof() argument 81 retval = send_ethernet (f, dst_mac, frame, full_len); in send_doof() 96 send_ethernet (libfb_t * f, u_int8_t * dst_mac, u_int8_t * payload, in send_ethernet() argument 116 etag = libnet_build_ethernet (dst_mac, f->s_mac, proto, NULL, 0, f->l, 0); in send_ethernet()
|
/dports/net/ryu/ryu-4.26/ryu/lib/ |
H A D | bfdlib.py | 78 dst_mac="FF:FF:FF:FF:FF:FF", dst_ip="255.255.255.255", 179 self.dst_mac = dst_mac 216 def set_remote_addr(self, dst_mac, dst_ip): 220 self.dst_mac = dst_mac 227 hex(self._local_discr), self.dst_ip, self.dst_mac) 477 dst_mac = self.dst_mac 487 src_mac=src_mac, dst_mac=dst_mac, 524 def bfd_packet(src_mac, dst_mac, src_ip, dst_ip, ipv4_id, 536 eth_pkt = ethernet.ethernet(dst_mac, src_mac, ETH_TYPE_IP) 596 def arp_packet(opcode, src_mac, src_ip, dst_mac, dst_ip): [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/net/forwarding/ |
H A D | tc_chains.sh | 39 flower $tcflags dst_mac $h2mac action drop 58 flower $tcflags dst_mac $h2mac action drop 60 $tcflags dst_mac $h2mac action drop 62 $tcflags dst_mac $h2mac action goto chain 1 129 flower dst_mac 00:00:00:00:00:00/FF:FF:FF:FF:FF:FF &> /dev/null 134 flower dst_mac $h2mac action drop 146 flower dst_mac $h2mac action drop &> /dev/null
|
H A D | mirror_gre.sh | 69 ingress) local src_mac=$(mac_get $h1); local dst_mac=$(mac_get $h2) 71 egress) local src_mac=$(mac_get $h2); local dst_mac=$(mac_get $h1) 78 icmp_capture_install h3-${tundev} "src_mac $src_mac dst_mac $dst_mac"
|
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/net/forwarding/ |
H A D | tc_chains.sh | 39 flower $tcflags dst_mac $h2mac action drop 58 flower $tcflags dst_mac $h2mac action drop 60 $tcflags dst_mac $h2mac action drop 62 $tcflags dst_mac $h2mac action goto chain 1 129 flower dst_mac 00:00:00:00:00:00/FF:FF:FF:FF:FF:FF &> /dev/null 134 flower dst_mac $h2mac action drop 146 flower dst_mac $h2mac action drop &> /dev/null
|
H A D | mirror_gre.sh | 69 ingress) local src_mac=$(mac_get $h1); local dst_mac=$(mac_get $h2) 71 egress) local src_mac=$(mac_get $h2); local dst_mac=$(mac_get $h1) 78 icmp_capture_install h3-${tundev} "src_mac $src_mac dst_mac $dst_mac"
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/net/forwarding/ |
H A D | tc_chains.sh | 39 flower $tcflags dst_mac $h2mac action drop 58 flower $tcflags dst_mac $h2mac action drop 60 $tcflags dst_mac $h2mac action drop 62 $tcflags dst_mac $h2mac action goto chain 1 129 flower dst_mac 00:00:00:00:00:00/FF:FF:FF:FF:FF:FF &> /dev/null 134 flower dst_mac $h2mac action drop 146 flower dst_mac $h2mac action drop &> /dev/null
|
H A D | mirror_gre.sh | 69 ingress) local src_mac=$(mac_get $h1); local dst_mac=$(mac_get $h2) 71 egress) local src_mac=$(mac_get $h2); local dst_mac=$(mac_get $h1) 78 icmp_capture_install h3-${tundev} "src_mac $src_mac dst_mac $dst_mac"
|
/dports/security/n2n/n2n-2.8/wireshark/ |
H A D | n2n.lua | 61 dst_mac = ProtoField.ether("n2n.dst_mac", "Destination") 116 src_mac, dst_mac, 171 regtree:add(dst_mac, buffer(10,6)) 187 regtree:add(dst_mac, buffer(10,6)) 198 pktree:add(dst_mac, buffer(6,6)) 237 regtree:add(dst_mac, buffer(4,6)) 263 peertree:add(dst_mac, buffer(6,6))
|
/dports/comms/uhd/uhd-90ce6062b6b5df2eddeee723777be85108e4e7c7/firmware/usrp3/n230/ |
H A D | n230_eth_handlers.c | 105 const eth_mac_addr_t *dst_mac = u3_net_stack_arp_cache_lookup(dst_ip); in program_udp_framer() local 126 (((uint32_t)dst_mac->addr[0]) << 8) | (((uint32_t)dst_mac->addr[1]) << 0)); in program_udp_framer() 128 (((uint32_t)dst_mac->addr[2]) << 24) | (((uint32_t)dst_mac->addr[3]) << 16) | in program_udp_framer() 129 (((uint32_t)dst_mac->addr[4]) << 8) | (((uint32_t)dst_mac->addr[5]) << 0)); in program_udp_framer()
|
/dports/comms/uhd/uhd-90ce6062b6b5df2eddeee723777be85108e4e7c7/firmware/usrp3/x300/ |
H A D | x300_main.c | 32 const eth_mac_addr_t *dst_mac = u3_net_stack_arp_cache_lookup(dst_ip); in program_udp_framer() local 52 (((uint32_t)dst_mac->addr[0]) << 8) | (((uint32_t)dst_mac->addr[1]) << 0)); in program_udp_framer() 54 (((uint32_t)dst_mac->addr[2]) << 24) | (((uint32_t)dst_mac->addr[3]) << 16) | in program_udp_framer() 55 (((uint32_t)dst_mac->addr[4]) << 8) | (((uint32_t)dst_mac->addr[5]) << 0)); in program_udp_framer()
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_trap_l2_drops.sh | 128 flower dst_mac $dmac action drop 188 flower dst_mac $dmac action drop 231 flower dst_mac $dmac action drop 301 flower dst_mac $dmac action drop 346 flower dst_mac $dmac action drop 392 flower dst_mac $dmac action drop
|
/dports/multimedia/libv4l/linux-5.13-rc2/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_trap_l2_drops.sh | 128 flower dst_mac $dmac action drop 188 flower dst_mac $dmac action drop 231 flower dst_mac $dmac action drop 301 flower dst_mac $dmac action drop 346 flower dst_mac $dmac action drop 392 flower dst_mac $dmac action drop
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | devlink_trap_l2_drops.sh | 128 flower dst_mac $dmac action drop 188 flower dst_mac $dmac action drop 231 flower dst_mac $dmac action drop 301 flower dst_mac $dmac action drop 346 flower dst_mac $dmac action drop 392 flower dst_mac $dmac action drop
|