summaryrefslogtreecommitdiff
path: root/libudev/libudev-private.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-10-13 13:03:27 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-10-13 13:08:29 +0200
commitfc416258f346cd20cf822705bd0a50de82569a63 (patch)
tree4cf45dedef8daf9f1d2e762c5b099abfc04c3420 /libudev/libudev-private.h
parent457c67e7c1bc971c64e56dd11aaf697d2f9a1c76 (diff)
udevd: do not wrongly delay events for devices with swapped names
Renaming network devices might delay events for the other device, which has the same devpath in the meantime as the original event. Causing a delay until the timout of the event is reached. Look at the ifindex/devnum of the devices to check if they are really the same devices.
Diffstat (limited to 'libudev/libudev-private.h')
-rw-r--r--libudev/libudev-private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libudev/libudev-private.h b/libudev/libudev-private.h
index 7ed4afc42c..c9ed46211c 100644
--- a/libudev/libudev-private.h
+++ b/libudev/libudev-private.h
@@ -99,6 +99,8 @@ int udev_device_get_devlink_priority(struct udev_device *udev_device);
int udev_device_set_devlink_priority(struct udev_device *udev_device, int prio);
int udev_device_get_watch_handle(struct udev_device *udev_device);
int udev_device_set_watch_handle(struct udev_device *udev_device, int handle);
+int udev_device_get_ifindex(struct udev_device *udev_device);
+int udev_device_set_ifindex(struct udev_device *udev_device, int ifindex);
void udev_device_set_info_loaded(struct udev_device *device);
/* libudev-device-private.c */