| 658 | #define DEV_MAC 0x00aaaaaaaaaa |
| 659 | |
| 660 | static void netdevsim_add(unsigned int addr, unsigned int port_count) |
| 661 | { |
| 662 | char buf[16]; |
| 663 | sprintf(buf, "%u %u", addr, port_count); |
| 664 | if (write_file("/sys/bus/netdevsim/new_device", buf)) { |
| 665 | snprintf(buf, sizeof(buf), "netdevsim%d", addr); |
| 666 | initialize_devlink_ports("netdevsim", buf, "netdevsim"); |
| 667 | } |
| 668 | } |
| 669 | |
| 670 | #define WG_GENL_NAME "wireguard" |
| 671 | enum wg_cmd { |
no test coverage detected