diff options
author | William Cohen <wcohen@dhcp231-201.rdu.redhat.com> | 2009-09-17 18:17:57 -0400 |
---|---|---|
committer | William Cohen <wcohen@dhcp231-201.rdu.redhat.com> | 2009-09-17 18:17:57 -0400 |
commit | 6bde4f381475cea055352d8ad5f60bb2f24de21d (patch) | |
tree | 991715090f9f940987dec1997b9f68c57b9d6c9f /tapset | |
parent | a26d3d1f488dff1870b9783f0315adb4521a8b61 (diff) | |
parent | 597c982e513c9fef84e64e9aaef77cb736245096 (diff) | |
download | systemtap-steved-6bde4f381475cea055352d8ad5f60bb2f24de21d.tar.gz systemtap-steved-6bde4f381475cea055352d8ad5f60bb2f24de21d.tar.xz systemtap-steved-6bde4f381475cea055352d8ad5f60bb2f24de21d.zip |
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'tapset')
-rw-r--r-- | tapset/networking.stp | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/tapset/networking.stp b/tapset/networking.stp index 0c9d8afb..4732a72d 100644 --- a/tapset/networking.stp +++ b/tapset/networking.stp @@ -236,22 +236,14 @@ probe netdev.change_mac mac_len = $dev->addr_len // Old MAC Address - zero = $dev->dev_addr[0] - one = $dev->dev_addr[1] - two = $dev->dev_addr[2] - three =$dev->dev_addr[3] - four = $dev->dev_addr[4] - five = $dev->dev_addr[5] old_mac = sprintf("%02x:%02x:%02x:%02x:%02x:%02x", - zero, one, two, three, four, five) + $dev->dev_addr[0], $dev->dev_addr[1], + $dev->dev_addr[2], $dev->dev_addr[3], + $dev->dev_addr[4], $dev->dev_addr[5]) // New MAC Address - zero = $sa->sa_data[0] - one = $sa->sa_data[1] - two = $sa->sa_data[2] - three =$sa->sa_data[3] - four =$sa->sa_data[4] - five = $sa->sa_data[5] new_mac = sprintf("%02x:%02x:%02x:%02x:%02x:%02x", - zero, one, two, three, four, five) + $sa->sa_data[0], $sa->sa_data[1], + $sa->sa_data[2], $sa->sa_data[3], + $sa->sa_data[4], $sa->sa_data[5]) } |