History log of /openbmc/phosphor-networkd/src/util.cpp (Results 1 – 25 of 43)
Revision Date Author Comments
# 57dfea94 05-May-2023 Jishnu CM <jishnunambiarcm@duck.com>

Configure DHCP4 and DHCP6 parameters independently

At present, DHCP parameters like DNSEnabled, NTPEnabled etc. are
shared between DHCPv4 and DHCPv6 in the network configuration.

Hence any update o

Configure DHCP4 and DHCP6 parameters independently

At present, DHCP parameters like DNSEnabled, NTPEnabled etc. are
shared between DHCPv4 and DHCPv6 in the network configuration.

Hence any update on the ipv4 parameters impacts the ipv6 and get
applied to both the interfaces.

This change is to enable the possibility to configure DHCP attributes
independently, by having different dbus objects for dhcp4 and dhcp6
and moving the dhcp configuration from network level to ethernet
interface.

tested by:

Used the busctl command to set and get the parameter values
individually for both DHCPv4 and DHCPv6.
Verified the network configuration file is updated accordingly

Tree Structure:
busctl tree xyz.openbmc_project.Network
`-/xyz
`-/xyz/openbmc_project
`-/xyz/openbmc_project/network
|-/xyz/openbmc_project/network/config
|-/xyz/openbmc_project/network/eth0
| |-/xyz/openbmc_project/network/eth0/dhcp4
| `-/xyz/openbmc_project/network/eth0/dhcp6
`-/xyz/openbmc_project/network/eth1
|-/xyz/openbmc_project/network/eth1/dhcp4
`-/xyz/openbmc_project/network/eth1/dhcp6

Change-Id: If7dbbf596bdaf866ea459d631e716153f54302ec
Signed-off-by: Jishnu CM <jishnunambiarcm@duck.com>

show more ...


# 8664252a 24-Jul-2023 William A. Kennington III <wak@google.com>

treewide: Remove uses of FMT_COMPILE

We can use stdplus::strCat which takes even less code space.

Change-Id: I91185afa7f5d9041ca7477eb19d5d53755ed329d
Signed-off-by: William A. Kennington III <wak@

treewide: Remove uses of FMT_COMPILE

We can use stdplus::strCat which takes even less code space.

Change-Id: I91185afa7f5d9041ca7477eb19d5d53755ed329d
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...


# 9b2a20d3 17-Jun-2023 William A. Kennington III <wak@google.com>

types: Migrate to stdplus ip

Change-Id: I777aa701204b0c4dbe5f0088cc2e6a4deb4f5d15
Signed-off-by: William A. Kennington III <wak@google.com>


# b7d6a1a7 17-Jun-2023 William A. Kennington III <wak@google.com>

types: Migrate to stdplus EtherAddr

Change-Id: I1ec2cd0b57a9f02fe96bbe9a068d1a437805b43a
Signed-off-by: William A. Kennington III <wak@google.com>


# 1d25ca4e 30-May-2023 William A. Kennington III <wak@google.com>

treewide: Make logging variables more consistent

This aims to better group related variables and differentiate keywords
like INTERFACE_NAME into NET vs DBUS.

Tested: Ran on a machine to verify that

treewide: Make logging variables more consistent

This aims to better group related variables and differentiate keywords
like INTERFACE_NAME into NET vs DBUS.

Tested: Ran on a machine to verify that our info log messages still look
sane in the journal.

Change-Id: Ic4d1faaaf5c432e69cacd387fa972481916b6bc8
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...


# 89d734b9 10-May-2023 Patrick Williams <patrick@stwcx.xyz>

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.

Change-Id: Ia4966a0790437eb0fc011c747f3be2a52884e4d8
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# f78a415e 17-Apr-2023 Jagpal Singh Gill <paligill@gmail.com>

logging: switch networkd static_library to lg2

This commit switches logging to lg2 in the following files -
1. src/network_manager.cpp
2. src/util.cpp
3. src/ethernet_interface.cpp

Tested: Build pa

logging: switch networkd static_library to lg2

This commit switches logging to lg2 in the following files -
1. src/network_manager.cpp
2. src/util.cpp
3. src/ethernet_interface.cpp

Tested: Build passes with "ninja -C build".
Change-Id: Ib2492116ecf3f41f9cd0146dc4b5389a59bce87c
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>

show more ...


# de70ccf6 20-Nov-2022 William A. Kennington III <wak@google.com>

treewide: Move timers out of networkd lib scope

Change-Id: I5fd0fc70d007e0851329172b8421846a78016d57
Signed-off-by: William A. Kennington III <wak@google.com>


# d6bd8fbe 17-Nov-2022 William A. Kennington III <wak@google.com>

util: Remove charconv

Change-Id: Ib423bb1c351e6624442557d58efbb1eb8b2d6b6c
Signed-off-by: William A. Kennington III <wak@google.com>


# 0b111d4e 04-Oct-2022 William A. Kennington III <wak@google.com>

inventory_mac: Migrate code out of other places

Change-Id: I5a84c07eebad1b9b0dc535a47edbf6bf0f72b6cb
Signed-off-by: William A. Kennington III <wak@google.com>


# 6d217512 17-Nov-2022 William A. Kennington III <wak@google.com>

system_queries: Add netlink based delete

We shouldn't depend on calling the IP binary

Change-Id: I4e9b3229ef936dad96e2fcfcea8f6b32a9c9f801
Signed-off-by: William A. Kennington III <wak@google.com>


# 4a688fc1 15-Nov-2022 William A. Kennington III <wak@google.com>

util: Reduce error messages for config options

A missing file is a common error that doesn't need to fill up the
journal.

Change-Id: I3f576b37d7bbe5c90c22b8138b192f66dbdb984c
Signed-off-by: William

util: Reduce error messages for config options

A missing file is a common error that doesn't need to fill up the
journal.

Change-Id: I3f576b37d7bbe5c90c22b8138b192f66dbdb984c
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...


# 01c816f2 07-Nov-2022 William A. Kennington III <wak@google.com>

util: Simplify addFromBuf

Change-Id: I4d1a133e4c4ab738e0ed190446efc663ffe9a373
Signed-off-by: William A. Kennington III <wak@google.com>


# 3becda70 04-Nov-2022 William A. Kennington III <wak@google.com>

util: Remove unused isValidIP

Change-Id: Iea90c03f8d13cde03c1ffbab9108879f12d17224
Signed-off-by: William A. Kennington III <wak@google.com>


# 186099d1 04-Nov-2022 William A. Kennington III <wak@google.com>

util: Remove unused isValidPrefix

Change-Id: I0e853148b82af5e0261a7b046e4258f84d37bfdd
Signed-off-by: William A. Kennington III <wak@google.com>


# b01d08fd 03-Nov-2022 William A. Kennington III <wak@google.com>

types: Add constexpr ether_addr parser

Change-Id: I0ad21490239ad9b0f25dfff84726b16a9cfda927
Signed-off-by: William A. Kennington III <wak@google.com>


# fd862be8 09-Oct-2022 William A. Kennington III <wak@google.com>

system_queries: Get Interface Info from netlink

This reduces all of the interface information probing down to a single
netlink request for all the label + mac information needed to build an
ethernet

system_queries: Get Interface Info from netlink

This reduces all of the interface information probing down to a single
netlink request for all the label + mac information needed to build an
ethernet interface.

If we ever plumb the ethernet stats into dbus, we can get that
information with this same netlink code.

Change-Id: Ied8a73639dcd74bcfecda392905638573ab7970f
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...


# bb0eaccb 21-Oct-2022 William A. Kennington III <wak@google.com>

types: Flesh out address comparison and string formatting

Change-Id: Ib505232e15e8db012d07759163f780b00ea4b7d3
Signed-off-by: William A. Kennington III <wak@google.com>


# 2e09d278 14-Oct-2022 William A. Kennington III <wak@google.com>

system_queries: Migrate system queries into a single place

This provides better separation of the DBus interface and the underlying
system interactions.

Change-Id: I8bf7a44c679ab065f959af19a00c2989

system_queries: Migrate system queries into a single place

This provides better separation of the DBus interface and the underlying
system interactions.

Change-Id: I8bf7a44c679ab065f959af19a00c29897c1d5c48
Signed-off-by: William A. Kennington III <wak@google.com>

show more ...


# 96444795 05-Oct-2022 William A. Kennington III <wak@google.com>

network_manager: Allow direct access to interfaces

Change-Id: I3dc2bb944b8d3a7873e26ce2958a2cb1d9be95af
Signed-off-by: William A. Kennington III <wak@google.com>


# ff12acbb 07-Oct-2022 William A. Kennington III <wak@google.com>

util: Add non-family isValidIP

Change-Id: Ib039658d466c0b10b6bc3d1dde9bf5926a124c65
Signed-off-by: William A. Kennington III <wak@google.com>


# d07c0862 07-Oct-2022 William A. Kennington III <wak@google.com>

util: Refactor IP toString

Change-Id: I9aea159e95e5b66d6a02809c3d5832c8697df2e1
Signed-off-by: William A. Kennington III <wak@google.com>


# 9f22830a 07-Oct-2022 William A. Kennington III <wak@google.com>

util: isValidIP should be noexcept

Change-Id: Ia61742dc253a0a1cfce7e9659c1bb75a2f979cc7
Signed-off-by: William A. Kennington III <wak@google.com>


# 97b5dc68 07-Oct-2022 William A. Kennington III <wak@google.com>

util: Refactor addrFromBuf

Change-Id: I1b2deed483eb25034ca9b4717388119af3da1c8d
Signed-off-by: William A. Kennington III <wak@google.com>


# 72412c99 07-Oct-2022 William A. Kennington III <wak@google.com>

util: Remove unused toMask

Change-Id: I48a2af176e4f79a50de32092c92adf254e33aab9
Signed-off-by: William A. Kennington III <wak@google.com>


12