Summary: | sys-apps/openrc-0.8.3-r1: /lib/rc/net/arping.sh parses arp-broadcast-request wrong: "... MAC 00:00:00:00:00:00 does not match" | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | cl |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alexanderyt |
Priority: | Normal | Keywords: | InVCS |
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=645bbf2e0f6be1f9f4cc116dfc39939456b771e3 | ||
Whiteboard: | openrc:oldnet | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 382299 | ||
Attachments: | emerge --info |
Description
cl
2011-08-14 16:32:24 UTC
Hrm.. Either we add support for both versions (iputils/arping) or we support and esp. use only one, in this case iputils as the pattern works well and seems to be written for iputils arping. Ok, it seems both versions are supported and the regex pattern is fine for both so far.. We'll have to take a closer look at it. arping2 uses the -r option so it outputs the MAC only (see man 8 arping2). arping2 will be preferred over arping (iputils). Please attach the full output of /etc/init.d/net.eth0 -v restart Also emerge --info please as well as the iputils version. Created attachment 286673 [details]
emerge --info
Testing the case: * net-analyzer/arping Latest version available: 2.06 Latest version installed: [ Not Installed ] * net-misc/iputils Latest version available: 20100418-r1 Latest version installed: 20100418-r1 /etc/init.d/net.eth0 -v restart reports: * Bringing up interface eth0 * Loaded modules: apipa arping bonding tuntap bridge ccwgroup macchanger macnet wpa_supplicant ssidnet ifconfig system dhcpcd ip6to4 * Configuring eth0 for MAC address 00:25:b3:c0:e8:25 ... [ ok ] * arping ... * Pinging gateways on eth0 for configuration * 131.159.71.254 (MAC 02:E0:52:EB:55:01) ... * Found 131.159.71.254 but MAC 00:00:00:00:00:00 does not match [ !! ] * 131.159.68.2 (MAC 00:03:BA:65:2C:63) ... [ !! ] * 131.159.68.4 (MAC 00:03:BA:D8:BD:B3) ... [ !! ] * 192.168.178.1 (MAC 00:04:0E:6F:A6:3D) ... [ !! ] [ !! ] * Trying fallback configuration dhcp * dhcp ... * Running dhcpcd ...dhcpcd[1896]: version 5.2.12 starting dhcpcd[1896]: eth0: broadcasting for a lease dhcpcd[1896]: timed out [ !! ] [ !! ] * ERROR: net.eth0 failed to start Ok, so as expected you *don't* use net-analyzer/arping at all. This should be fixed through commit 645bbf2 - http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=645bbf2e0f6be1f9f4cc116dfc39939456b771e3 Please try openrc-9999 or patch your current openrc: # wget 'http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=patch;h=645bbf2e0f6be1f9f4cc116dfc39939456b771e3;hp=539c4e58723fbd3b8ca9f30a09e99ddaf72c30b1' -O /tmp/arping.patch # cd /lib/rc/net; patch -p2 < /tmp/arping.patch "Ok, so as expected you *don't* use net-analyzer/arping at all." Sorry, yes. Only using iputils. The patch http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=patch;h=645bbf2e0f6be1f9f4cc116dfc39939456b771e3;hp=539c4e58723fbd3b8ca9f30a09e99ddaf72c30b1 worked for me. Thanks |