History log of /openbmc/phosphor-networkd/test/ (Results 1 – 25 of 173)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
871f163e21-Aug-2024 Patrick Williams <patrick@stwcx.xyz>

ibm: hypervisor-network-mgr: adjust includes and fwd declarations

clang-18 with C++23 complains as follows:

```
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:

ibm: hypervisor-network-mgr: adjust includes and fwd declarations

clang-18 with C++23 complains as follows:

```
/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/unique_ptr.h:97:16: error: invalid application of 'sizeof' to an incomplete type 'phosphor::network::HypSysConfig'
97 | static_assert(sizeof(_Tp)>0,
...
../src/ibm/hypervisor-network-mgr-src/hyp_network_manager.hpp:159:32: note: in instantiation of member function 'std::unique_ptr<phosphor::network::HypSysConfig>::~unique_ptr' requested here
159 | SystemConfPtr systemConf = nullptr;
```

Get rid of the forward declaration and adjust some of the include
directives to satisfy clang.

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

show more ...

ad20502816-Aug-2024 Patrick Williams <patrick@stwcx.xyz>

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda forma

clang-format: re-format for clang-18

clang-format-18 isn't compatible with the clang-format-17 output, so we
need to reformat the code with the latest version. The way clang-18
handles lambda formatting also changed, so we have made changes to the
organization default style format to better handle lambda formatting.

See I5e08687e696dd240402a2780158664b7113def0e for updated style.
See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.

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

show more ...


/openbmc/phosphor-networkd/.clang-format
/openbmc/phosphor-networkd/README.md
/openbmc/phosphor-networkd/docs/Network-Configuration.md
/openbmc/phosphor-networkd/src/argument.cpp
/openbmc/phosphor-networkd/src/config_parser.cpp
/openbmc/phosphor-networkd/src/dhcp_configuration.cpp
/openbmc/phosphor-networkd/src/dhcp_configuration.hpp
/openbmc/phosphor-networkd/src/ethernet_interface.cpp
/openbmc/phosphor-networkd/src/ethernet_interface.hpp
/openbmc/phosphor-networkd/src/ibm/hypervisor-network-mgr-src/hyp_ethernet_interface.cpp
/openbmc/phosphor-networkd/src/ibm/hypervisor-network-mgr-src/hyp_ethernet_interface.hpp
/openbmc/phosphor-networkd/src/ibm/hypervisor-network-mgr-src/hyp_network_manager.cpp
/openbmc/phosphor-networkd/src/ibm/hypervisor-network-mgr-src/hyp_network_manager.hpp
/openbmc/phosphor-networkd/src/ibm/hypervisor-network-mgr-src/hyp_sys_config.hpp
/openbmc/phosphor-networkd/src/inventory_mac.cpp
/openbmc/phosphor-networkd/src/meson.build
/openbmc/phosphor-networkd/src/ncsi_netlink_main.cpp
/openbmc/phosphor-networkd/src/ncsi_util.cpp
/openbmc/phosphor-networkd/src/ncsi_util.hpp
/openbmc/phosphor-networkd/src/network_manager.cpp
/openbmc/phosphor-networkd/src/network_manager.hpp
/openbmc/phosphor-networkd/src/rtnetlink_server.cpp
/openbmc/phosphor-networkd/src/rtnetlink_server.hpp
/openbmc/phosphor-networkd/src/system_configuration.cpp
/openbmc/phosphor-networkd/src/system_queries.cpp
/openbmc/phosphor-networkd/src/util.cpp
/openbmc/phosphor-networkd/src/util.hpp
/openbmc/phosphor-networkd/subprojects/nlohmann_json.wrap
ibm/hypervisor-network-mgr-test/mock_hyp_sys_config.hpp
mock_syscall.cpp
test_ethernet_interface.cpp
test_network_manager.hpp
test_rtnetlink.cpp
6f256bc520-Oct-2023 Patrick Williams <patrick@stwcx.xyz>

clang-format: copy latest and re-format

clang-format-17 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-17 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: Ief40c08041429a57684a6debd84eecea2a298dff
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...

4f8b9a0b06-Sep-2023 Ravi Teja <raviteja28031990@gmail.com>

DHCP: Populate nameservers D-bus property from resolv.conf

Currently when DHCP enabled, nameservers D-bus property does not have
updated DHCP provided nameservers.

This commit populates nameservers

DHCP: Populate nameservers D-bus property from resolv.conf

Currently when DHCP enabled, nameservers D-bus property does not have
updated DHCP provided nameservers.

This commit populates nameservers D-bus property from resolv.conf

Tested By: verify nameservers D-bus property value with DHCP
enable/disable

Change DHCP server nameservers configuration & verify name servers
D-bus property updated on the interface.

Change-Id: If1a2508927d5f4f0c9c5d8b3f533fdf384d68821
Signed-off-by: Ravi Teja <raviteja28031990@gmail.com>

show more ...

cafc151225-Jul-2023 William A. Kennington III <wak@google.com>

treewide: Convert most fmt::format -> std::format

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

8664252a24-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 ...

b740196b21-Jul-2023 William A. Kennington III <wak@google.com>

treewide: Replace fmt::print with stdplus::print

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

02d87c1928-Jun-2023 William A. Kennington III <wak@google.com>

test: Simplify addresses with string literal operators

This improves code readability.

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

30f3ba2c28-Jun-2023 William A. Kennington III <wak@google.com>

ethernet_interface: Validate IP addresses

We don't want multicast or link local addresses to be assignable as IPs.
Right now they won't do what the user expects and it causes undefined
problems with

ethernet_interface: Validate IP addresses

We don't want multicast or link local addresses to be assignable as IPs.
Right now they won't do what the user expects and it causes undefined
problems with the configuration.

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

show more ...

bbf5e9e801-Feb-2023 William A. Kennington III <wak@google.com>

ethernet_interface: Validate gateway IPs

We don't want to allow loopback, network id, or multicast spaces to be
used for the gateway.

Change-Id: I1ff762268321f8c0dacb760611cce8383d880997
Signed-off

ethernet_interface: Validate gateway IPs

We don't want to allow loopback, network id, or multicast spaces to be
used for the gateway.

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

show more ...

9ca5c8ec14-Dec-2022 William A. Kennington III <wak@google.com>

ethernet_interface: Empty address also deletes the gateway

Since the address is invalid anyway, this is a straightforward way to
clear the entry.

Change-Id: I7c130d0e3c3c0d182e8a7c54d53be44b4ffe47a

ethernet_interface: Empty address also deletes the gateway

Since the address is invalid anyway, this is a straightforward way to
clear the entry.

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

show more ...

9b2a20d317-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>

e8af05c817-Jun-2023 William A. Kennington III <wak@google.com>

types: Migrate to stdplus endian

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

b7d6a1a717-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>

9c441fd424-Feb-2023 William A. Kennington III <wak@google.com>

treewide: Ignore non-ethernet devices

These are not regular ethernet devices that use INET protocols. We can
ignore them as they just produce journal spam otherwise.

Tested: Verified that our MCTP

treewide: Ignore non-ethernet devices

These are not regular ethernet devices that use INET protocols. We can
ignore them as they just produce journal spam otherwise.

Tested: Verified that our MCTP interfaces are no longer reported as
objects and that our NCSI and ETH interfaces are still added.

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

show more ...

89d734b910-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 ...


/openbmc/phosphor-networkd/.clang-format
/openbmc/phosphor-networkd/gen/meson.build
/openbmc/phosphor-networkd/gen/xyz/openbmc_project/Network/IP/Create/meson.build
/openbmc/phosphor-networkd/gen/xyz/openbmc_project/Network/Neighbor/CreateStatic/meson.build
/openbmc/phosphor-networkd/gen/xyz/openbmc_project/Network/VLAN/Create/meson.build
/openbmc/phosphor-networkd/meson.build
/openbmc/phosphor-networkd/src/config_parser.cpp
/openbmc/phosphor-networkd/src/config_parser.hpp
/openbmc/phosphor-networkd/src/dhcp_configuration.cpp
/openbmc/phosphor-networkd/src/dns_updater.cpp
/openbmc/phosphor-networkd/src/ethernet_interface.cpp
/openbmc/phosphor-networkd/src/ethernet_interface.hpp
/openbmc/phosphor-networkd/src/ibm/hypervisor-network-mgr-src/hyp_ethernet_interface.cpp
/openbmc/phosphor-networkd/src/ibm/hypervisor-network-mgr-src/hyp_ethernet_interface.hpp
/openbmc/phosphor-networkd/src/ibm/hypervisor-network-mgr-src/hyp_network_manager.cpp
/openbmc/phosphor-networkd/src/ibm/hypervisor-network-mgr-src/hyp_sys_config.cpp
/openbmc/phosphor-networkd/src/ibm/hypervisor-network-mgr-src/hyp_sys_config.hpp
/openbmc/phosphor-networkd/src/ibm/hypervisor-network-mgr-src/meson.build
/openbmc/phosphor-networkd/src/inventory_mac.cpp
/openbmc/phosphor-networkd/src/inventory_mac.hpp
/openbmc/phosphor-networkd/src/ipaddress.cpp
/openbmc/phosphor-networkd/src/ipaddress.hpp
/openbmc/phosphor-networkd/src/meson.build
/openbmc/phosphor-networkd/src/ncsi_netlink_main.cpp
/openbmc/phosphor-networkd/src/ncsi_util.cpp
/openbmc/phosphor-networkd/src/neighbor.cpp
/openbmc/phosphor-networkd/src/neighbor.hpp
/openbmc/phosphor-networkd/src/netlink.cpp
/openbmc/phosphor-networkd/src/netlink.hpp
/openbmc/phosphor-networkd/src/network_manager.cpp
/openbmc/phosphor-networkd/src/network_manager.hpp
/openbmc/phosphor-networkd/src/network_manager_main.cpp
/openbmc/phosphor-networkd/src/rtnetlink_server.cpp
/openbmc/phosphor-networkd/src/rtnetlink_server.hpp
/openbmc/phosphor-networkd/src/system_configuration.cpp
/openbmc/phosphor-networkd/src/system_configuration.hpp
/openbmc/phosphor-networkd/src/system_queries.cpp
/openbmc/phosphor-networkd/src/system_queries.hpp
/openbmc/phosphor-networkd/src/types.hpp
/openbmc/phosphor-networkd/src/util.cpp
/openbmc/phosphor-networkd/src/util.hpp
ibm/hypervisor-network-mgr-test/mock_hyp_sys_config.hpp
mock_ethernet_interface.hpp
mock_syscall.cpp
test_config_parser.cpp
test_ethernet_interface.cpp
test_netlink.cpp
test_network_manager.cpp
test_network_manager.hpp
test_util.cpp
c24de88308-Jun-2021 Asmitha Karunanithi <asmitk01@in.ibm.com>

Add ethernet objects under hypervisor network obj

In this commit, ethernet interface dbus objects are created
under the hypervisor network service.

busctl tree xyz.openbmc_project.Network.Hyperviso

Add ethernet objects under hypervisor network obj

In this commit, ethernet interface dbus objects are created
under the hypervisor network service.

busctl tree xyz.openbmc_project.Network.Hypervisor
└─/xyz
└─/xyz/openbmc_project
└─/xyz/openbmc_project/network
└─/xyz/openbmc_project/network/hypervisor
├─/xyz/openbmc_project/network/hypervisor/config
├─/xyz/openbmc_project/network/hypervisor/eth0
└─/xyz/openbmc_project/network/hypervisor/eth1

Signed-off-by: Asmitha Karunanithi <asmitk01@in.ibm.com>
Change-Id: I4222fa29a9df607c8291d7f81f7f3e837442bc26

show more ...

9ede1b7421-Nov-2022 William A. Kennington III <wak@google.com>

treewide: Codify memory pinning

This enforces movability constraints.

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

de70ccf620-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>

1b59420617-Nov-2022 William A. Kennington III <wak@google.com>

test/util: Simplify

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

d6bd8fbe17-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>

13d665ca15-Nov-2022 William A. Kennington III <wak@google.com>

ethernet_interface: Migrate object creation from network_manager

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

b645254715-Nov-2022 William A. Kennington III <wak@google.com>

ethernet_interface: Remove optional signal emission

We don't ever need to turn this off anymore, so we can simplify creation
arguments.

Change-Id: Idb1bde35041f16d409753ff661bfb248cfd4591e
Signed-o

ethernet_interface: Remove optional signal emission

We don't ever need to turn this off anymore, so we can simplify creation
arguments.

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

show more ...

5b17938c15-Nov-2022 William A. Kennington III <wak@google.com>

treewide: Completely remove global refresh

We no longer need any of the global refresh code as we can dynamically
receive all of the updates to network configuration.

Change-Id: Ia8cb3af827c599c17d

treewide: Completely remove global refresh

We no longer need any of the global refresh code as we can dynamically
receive all of the updates to network configuration.

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

show more ...

301e8ad615-Nov-2022 William A. Kennington III <wak@google.com>

config_parser: Add support for checking file existence

This will be used to reduce the number of config parser errors printed
to the logs.

Change-Id: Ia0337da386bc5dbe32c04bf2c3264997a9ad6da1
Signe

config_parser: Add support for checking file existence

This will be used to reduce the number of config parser errors printed
to the logs.

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

show more ...

1234567