diff options
| author | Pavel Emelyanov <[email protected]> | 2013-06-11 10:41:24 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2013-06-12 22:07:21 +0000 |
| commit | 274038f8c94c493e2977983e2aecb5f5f0778479 (patch) | |
| tree | 59c639c040acb5af3eafe2a2eb7787c03dd5bfbf /net/unix/sysctl_net_unix.c | |
| parent | udp: fix two sparse errors (diff) | |
| download | kernel-274038f8c94c493e2977983e2aecb5f5f0778479.tar.gz kernel-274038f8c94c493e2977983e2aecb5f5f0778479.zip | |
tun: Report "persist" flag to userspace
The TUN_PERSIST flag is not reported at all -- both TUNGETIFF, and sysfs
"flags" attribute skip one. Knowing whether a device is persistent or not
is critical for checkpoint-restore, thus I propose to add the read-only
IFF_PERSIST one for this.
Setting this new IFF_PERSIST is hardly possible, as TUNSETIFF doesn't check
for unknown flags being zero and thus there can be trash.
Signed-off-by: Pavel Emelyanov <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions
