(version uint8, software Software)
| 2054 | } |
| 2055 | |
| 2056 | func (b *interfaceUpdateBody) string(version uint8, software Software) string { |
| 2057 | s := fmt.Sprintf( |
| 2058 | "name: %s, idx: %d, status: %s, flags: %s, ptm_enable: %s, ptm_status: %s, metric: %d, speed: %d, mtu: %d, mtu6: %d, bandwidth: %d, linktype: %s", |
| 2059 | b.name, b.index, b.status.String(), intfflag2string(b.flags), b.ptmEnable.String(), b.ptmStatus.String(), b.metric, b.speed, b.mtu, b.mtu6, b.bandwidth, b.linktype.String()) |
| 2060 | if len(b.hardwareAddr) > 0 { |
| 2061 | return s + fmt.Sprintf(", mac: %s", b.hardwareAddr.String()) |
| 2062 | } |
| 2063 | return s |
| 2064 | } |
| 2065 | |
| 2066 | type interfaceAddressUpdateBody struct { |
| 2067 | index uint32 |
nothing calls this directly
no test coverage detected