• Al Viro's avatar
    compat_ioctl: unify copy-in of ppp filters · 3e859adf
    Al Viro authored
    Now that isdn4linux is gone, the is only one implementation of PPPIOCSPASS
    and PPPIOCSACTIVE in ppp_generic.c, so this is where the compat_ioctl
    support should be implemented.
    
    The two commands are implemented in very similar ways, so introduce
    new helpers to allow sharing between the two and between native and
    compat mode.
    Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
    [arnd: rebased, and added changelog text]
    Cc: netdev@vger.kernel.org
    Cc: linux-ppp@vger.kernel.org
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: "David S. Miller" <davem@davemloft.net>
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    3e859adf
ppp_generic.c 78.9 KB