lkml.org 
[lkml]   [2008]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC PATCH 07/12] net: pass new SIOCSHWTSTAMP through to device drivers
    Date

    Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
    ---
    fs/compat_ioctl.c | 1 +
    net/core/dev.c | 2 ++
    2 files changed, 3 insertions(+), 0 deletions(-)

    diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
    index 5235c67..a5001a6 100644
    --- a/fs/compat_ioctl.c
    +++ b/fs/compat_ioctl.c
    @@ -2555,6 +2555,7 @@ HANDLE_IOCTL(SIOCSIFMAP, dev_ifsioc)
    HANDLE_IOCTL(SIOCGIFADDR, dev_ifsioc)
    HANDLE_IOCTL(SIOCSIFADDR, dev_ifsioc)
    HANDLE_IOCTL(SIOCSIFHWBROADCAST, dev_ifsioc)
    +HANDLE_IOCTL(SIOCSHWTSTAMP, dev_ifsioc)

    /* ioctls used by appletalk ddp.c */
    HANDLE_IOCTL(SIOCATALKDIFADDR, dev_ifsioc)
    diff --git a/net/core/dev.c b/net/core/dev.c
    index 94d95a8..dc7b4fc 100644
    --- a/net/core/dev.c
    +++ b/net/core/dev.c
    @@ -3675,6 +3675,7 @@ static int dev_ifsioc(struct net *net, struct ifreq *ifr, unsigned int cmd)
    cmd == SIOCSMIIREG ||
    cmd == SIOCBRADDIF ||
    cmd == SIOCBRDELIF ||
    + cmd == SIOCSHWTSTAMP ||
    cmd == SIOCWANDEV) {
    err = -EOPNOTSUPP;
    if (ops->ndo_do_ioctl) {
    @@ -3829,6 +3830,7 @@ int dev_ioctl(struct net *net, unsigned int cmd, void __user *arg)
    case SIOCBONDCHANGEACTIVE:
    case SIOCBRADDIF:
    case SIOCBRDELIF:
    + case SIOCSHWTSTAMP:
    if (!capable(CAP_NET_ADMIN))
    return -EPERM;
    /* fall through */
    --
    1.5.5.3


    \
     
     \ /
      Last update: 2008-12-15 16:01    [W:0.021 / U:30.992 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site