/freebsd/tests/sys/net/routing/ |
H A D | test_rtsock_lladdr.c | 136 struct sockaddr_dl ether; in ATF_TC_BODY() local 138 sa_convert_str_to_sa(str_buf, (struct sockaddr *)ðer); in ATF_TC_BODY() 140 prepare_route_message(rtm, RTM_ADD, (struct sockaddr *)&sin6, (struct sockaddr *)ðer); in ATF_TC_BODY() 159 ret = sa_equal_msg_flags(sa, (struct sockaddr *)ðer, msg, sizeof(msg), sa_flags); in ATF_TC_BODY() 185 struct sockaddr_dl ether; in ATF_TC_BODY() local 187 sa_convert_str_to_sa(str_buf, (struct sockaddr *)ðer); in ATF_TC_BODY() 189 prepare_route_message(rtm, RTM_ADD, (struct sockaddr *)&sin6, (struct sockaddr *)ðer); in ATF_TC_BODY() 211 ret = sa_equal_msg_flags(sa, (struct sockaddr *)ðer, msg, sizeof(msg), sa_flags); in ATF_TC_BODY() 236 struct sockaddr_dl ether; in ATF_TC_BODY() local 238 sa_convert_str_to_sa(str_buf, (struct sockaddr *)ðer); in ATF_TC_BODY() [all …]
|
/freebsd/sbin/ipf/ipsend/ |
H A D | arp.c | 57 int arp(ip, ether) in arp() argument 59 char *ether; 69 if (arp_getipv4(ip, ether) == 0) 73 bcopy(ethersave, ether, 6); 83 if (!(ether_hostton(hp->h_name, (struct ether_addr *)ether))) 85 if (!(ether_hostton(hp->h_name, ether))) 124 bcopy(ar.arp_ha.sa_data, ether, 6); 126 bcopy(ether, ethersave, 6);
|
/freebsd/tests/sys/netgraph/ |
H A D | ng_macfilter_test.sh | 44 ifconfig -u -l ether | awk '{print $1}' 70 …ngctl mkpeer $eth: macfilter lower ether # Connect the lower hook of the ether instance $eth t… 312 ether=$(genmac $j $i) 314 ngctl msg MF: 'direct' "{ hookname=\"$edge\" ether=$ether }" 336 ether=$(genmac 0 $i) 338 ngctl msg MF: 'direct' "{ hookname=\"$edge\" ether=$ether }" 361 ether=$(genmac $j $i) 363 ngctl msg MF: 'direct' "{ hookname=\"$edge\" ether=$ether }" 381 ether=$(genmac $j $i) 383 ngctl msg MF: 'direct' "{ hookname=\"$edge\" ether=$ether }" [all …]
|
/freebsd/sys/netgraph/ |
H A D | ng_macfilter.c | 371 macfilter_find_mac(macfilter_p mfp, const u_char *ether, u_int *ri) in macfilter_find_mac() argument 379 int d = bcmp(ether, mf_macs[middle].ether, ETHER_ADDR_LEN); in macfilter_find_mac() 404 macfilter_mactable_change(macfilter_p mfp, u_char *ether, int hookid) in macfilter_mactable_change() argument 407 int found = macfilter_find_mac(mfp, ether, &i); in macfilter_mactable_change() 412 MAC_S_ARGS(ether), found, i, MAC_S_ARGS(mf_macs[i].ether), in macfilter_mactable_change() 444 bcopy(ether, mf_macs[i].ether, ETHER_ADDR_LEN); in macfilter_mactable_change() 495 MAC_S_ARGS(md->ether), md->hookname); in macfilter_direct() 501 return macfilter_mactable_change(mfp, md->ether, hookid); in macfilter_direct() 508 MAC_S_ARGS(mdi->ether), mdi->hookid); in macfilter_direct_hookid() 515 return macfilter_mactable_change(mfp, mdi->ether, mdi->hookid); in macfilter_direct_hookid() [all …]
|
H A D | ng_macfilter.h | 58 u_char ether[ETHER_ADDR_LEN]; /* MAC address */ member 69 u_char ether[ETHER_ADDR_LEN]; /* MAC address */ member 80 u_char ether[ETHER_ADDR_LEN]; /* MAC address */ member
|
H A D | ng_eiface.c | 87 hook_p ether; /* Hook for ethernet stream */ member 261 NG_SEND_DATA_ONLY(error, priv->ether, m); in ng_eiface_start2() 451 if (priv->ether != NULL) in ng_eiface_newhook() 453 priv->ether = hook; in ng_eiface_newhook() 454 NG_HOOK_SET_PRIVATE(hook, &priv->ether); in ng_eiface_newhook() 638 priv->ether = NULL; in ng_eiface_disconnect()
|
/freebsd/tests/sys/netinet/ |
H A D | forward.sh | 62 jail_mac=`jexec ${jname} ifconfig ${epair}b ether | awk '$1~/ether/{print$2}'` 64 our_mac=`ifconfig ${epair}a ether | awk '$1~/ether/{print$2}'` 119 jail_mac=`jexec ${jname} ifconfig ${epair}b ether | awk '$1~/ether/{print$2}'` 121 our_mac=`ifconfig ${epair}a ether | awk '$1~/ether/{print$2}'` 178 jail_mac=`jexec ${jname} ifconfig ${epair}b ether | awk '$1~/ether/{print$2}'` 180 our_mac=`ifconfig ${epair}a ether | awk '$1~/ether/{print$2}'` 233 jail_mac=`jexec ${jname} ifconfig ${epair}b ether | awk '$1~/ether/{print$2}'` 235 our_mac=`ifconfig ${epair}a ether | awk '$1~/ether/{print$2}'`
|
H A D | arp.sh | 191 max_age=$(sysctl -n net.link.ether.inet.max_age) 210 if [ $(sysctl -n net.link.ether.inet.log_arp_permanent_modify) -ne 0 ]; 247 jexec ${j} sysctl net.link.ether.inet.garp_rexmit_count=3
|
/freebsd/tests/sys/netinet6/ |
H A D | forward6.sh | 71 jail_mac=`jexec ${jname} ifconfig ${epair}b ether | awk '$1~/ether/{print$2}'` 73 our_mac=`ifconfig ${epair}a ether | awk '$1~/ether/{print$2}'` 142 jail_mac=`jexec ${jname} ifconfig ${epair}b ether | awk '$1~/ether/{print$2}'` 144 our_mac=`ifconfig ${epair}a ether | awk '$1~/ether/{print$2}'` 216 jail_mac=`jexec ${jname} ifconfig ${epair}b ether | awk '$1~/ether/{print$2}'` 218 our_mac=`ifconfig ${epair}a ether | awk '$1~/ether/{print$2}'` 290 jail_mac=`jexec ${jname} ifconfig ${epair}b ether | awk '$1~/ether/{print$2}'` 292 our_mac=`ifconfig ${epair}a ether | awk '$1~/ether/{print$2}'` 360 jail_mac=`jexec ${jname} ifconfig ${epair}b ether | awk '$1~/ether/{print$2}'` 362 our_mac=`ifconfig ${epair}a ether | awk '$1~/ether/{print$2}'` [all …]
|
H A D | proxy_ndp.sh | 51 proxy_mac=`jexec ${jname} ifconfig ${epair0}a ether | awk '$1~/ether/{print$2}'` 93 proxy_mac=`jexec ${jname} ifconfig ${epair0}a ether | awk '$1~/ether/{print$2}'` 140 proxy_mac=`jexec ${jname} ifconfig ${epair0}a ether | awk '$1~/ether/{print$2}'` 179 proxy_mac=`jexec ${jname_a} ifconfig ${epair0}a ether | awk '$1~/ether/{print$2}'`
|
/freebsd/tests/sys/netpfil/common/ |
H A D | pft_ping.py | 102 ether = sp.Ether() 108 packets.append(ether / packet) 110 packets.append(ether / ip6 / icmp) 118 packets.append(ether / packet) 120 packets.append(ether / ip / icmp / raw) 129 ether = sp.Ether() 141 req = ether / ip / tcp 150 ether = sp.Ether() 159 packets.append(ether / packet) 161 packets.append(ether / ip6 / udp / raw) [all …]
|
H A D | pft_synflood.py | 37 ether = sp.Ether(src='01:02:03:04:05') 44 pkt = ether / ip / tcp
|
/freebsd/share/examples/netgraph/ |
H A D | virtual.chain | 180 ngctl connect ${PEER1_INTERFACE}: ${PEER2_INTERFACE}: ether ether \ 208 ngctl mkpeer eiface ether ether
|
H A D | virtual.lan | 201 ngctl mkpeer eiface ether ether 258 ngctl connect ${EIFACE}: ${BRIDGE_NAME}: ether link${LINKNUM} \
|
/freebsd/sys/contrib/device-tree/src/arm/renesas/ |
H A D | r8a7745-sk-rzg1e.dts | 41 ether_pins: ether { 59 ðer { 64 renesas,ether-link-active-low;
|
H A D | r8a7743-sk-rzg1m.dts | 46 ether_pins: ether { 64 ðer { 69 renesas,ether-link-active-low;
|
H A D | r7s72100-gr-peach.dts | 66 ether_pins: ether { 116 ðer { 122 renesas,no-ether-link;
|
H A D | r7s72100-genmai.dts | 87 ether_pins: ether { 182 ðer { 188 renesas,no-ether-link;
|
H A D | r7s72100-rskrza1.dts | 210 ether_pins: ether { 249 ðer { 253 renesas,no-ether-link;
|
/freebsd/tests/sys/netpfil/pf/ |
H A D | ether.sh | 43 epair_a_mac=$(ifconfig ${epair}a ether | awk '/ether/ { print $2; }') 141 epair_a_mac=$(ifconfig ${epair}a ether | awk '/ether/ { print $2; }') 184 epair_a_mac=$(ifconfig ${epair}a ether | awk '/ether/ { print $2; }') 185 epair_b_mac=$(ifconfig ${epair}b ether | awk '/ether/ { print $2; }') 260 epair_gw_a_mac=$(ifconfig ${epair_gw}a ether | awk '/ether/ { print $2; }') 334 epair_gw_a_mac=$(ifconfig ${epair_gw}a ether | awk '/ether/ { print $2; }') 460 epair_a_mac=$(ifconfig ${epair}a ether | awk '/ether/ { print $2; }')
|
H A D | pft_ether.py | 39 ether = sp.Ether() 44 req = ether / ip / icmp / raw
|
H A D | pfsync_defer.py | 79 ether = sp.Ether() 84 req = ether / ip / icmp / raw
|
/freebsd/sys/contrib/device-tree/src/arm/socionext/ |
H A D | uniphier-pinctrl.dtsi | 59 pinctrl_ether_mii: ether-mii { 64 pinctrl_ether_rgmii: ether-rgmii { 69 pinctrl_ether_rmii: ether-rmii {
|
/freebsd/libexec/nuageinit/tests/ |
H A D | nuageinit.sh | 132 mynetworks=$(ifconfig -l ether) 138 myaddr=$(ifconfig $myiface ether | awk '/ether/ { print $2 }') 290 mynetworks=$(ifconfig -l ether) 296 myaddr=$(ifconfig $myiface ether | awk '/ether/ { print $2 }') 356 mynetworks=$(ifconfig -l ether) 362 myaddr=$(ifconfig $myiface ether | awk '/ether/ { print $2 }')
|
/freebsd/share/examples/jails/ |
H A D | jng | 339 ngctl mkpeer "$iface$bridge:" eiface link$num ether || return 357 eiface_devid=$( ifconfig $iface ether | 363 ifconfig $eiface ether $eiface_devid > /dev/null 2>&1
|