• Guillaume Nault's avatar
    ppp: define reusable device creation functions · 7d9f0b48
    Guillaume Nault authored
    Move PPP device initialisation and registration out of
    ppp_create_interface().
    This prepares code for device registration with rtnetlink.
    
    While there, simplify the prototype of ppp_create_interface():
    
      * Since ppp_dev_configure() takes care of setting file->private_data,
        there's no need to return a ppp structure to ppp_unattached_ioctl()
        anymore.
    
      * The unit parameter is made read/write so that ppp_create_interface()
        can tell which unit number has been assigned.
    Signed-off-by: default avatarGuillaume Nault <g.nault@alphalink.fr>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    7d9f0b48
ppp_generic.c 72.1 KB