Commit e976b03
committed
CA-120846: fix get_mac for bonded interfaces
When an interface is bonded by the Linux bonding driver, the driver may change
the MAC address of the interface to that of the bond. The only place where you
can find the "real" MAC address of a bond slave seems to be /proc/net/bonding.
Signed-off-by: Rob Hoes <[email protected]>1 parent afc0a17 commit e976b03
2 files changed
+41
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
448 | 454 | | |
449 | 455 | | |
450 | 456 | | |
| |||
533 | 539 | | |
534 | 540 | | |
535 | 541 | | |
536 | | - | |
| 542 | + | |
537 | 543 | | |
538 | 544 | | |
539 | 545 | | |
540 | 546 | | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
553 | 567 | | |
554 | 568 | | |
555 | 569 | | |
556 | | - | |
| 570 | + | |
557 | 571 | | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
558 | 582 | | |
559 | 583 | | |
560 | 584 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
107 | 109 | | |
108 | 110 | | |
109 | 111 | | |
| |||
0 commit comments