1 Fix Bug 23595729 dnet can't send out packet.
3 --- libdnet-libdnet-1.14/src/eth-dlpi.c.orig 2020-07-17 18:56:28.000000000 +0000
4 +++ libdnet-libdnet-1.14/src/eth-dlpi.c 2021-09-12 15:18:14.525536772 +0000
9 - snprintf(dev, sizeof(dev), "/dev/%s", device);
10 + snprintf(dev, sizeof(dev), "/dev/net/%s", device);
11 if ((p = dev_find_ppa(dev)) == NULL) {
13 return (eth_close(e));
17 if ((e->fd = open(dev, O_RDWR)) < 0) {
18 - snprintf(dev, sizeof(dev), "/dev/%s", device);
19 + snprintf(dev, sizeof(dev), "/dev/net/%s", device);
20 if ((e->fd = open(dev, O_RDWR)) < 0)
21 return (eth_close(e));