summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2003-02-03 08:56:09 +0000
committerHolger Waechtler <devnull@localhost>2003-02-03 08:56:09 +0000
commitbe43ecc06bb364e60a1e4022bdc190011076c0dc (patch)
tree0d53e70141842f9e2f4b3d9fbf183be99b5bea12 /linux/drivers/media
parent5cc46bb2acda7ac7a0b56ad6b4f89851349ea400 (diff)
downloadmediapointer-dvb-s2-be43ecc06bb364e60a1e4022bdc190011076c0dc.tar.gz
mediapointer-dvb-s2-be43ecc06bb364e60a1e4022bdc190011076c0dc.tar.bz2
NET_GET_IF ioctl implementation contributed by <lymes@tiscalinet.it>
Diffstat (limited to 'linux/drivers/media')
-rw-r--r--linux/drivers/media/dvb/dvb-core/dvb_net.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_net.c b/linux/drivers/media/dvb/dvb-core/dvb_net.c
index 0ee9a902d..ca6bc2eeb 100644
--- a/linux/drivers/media/dvb/dvb-core/dvb_net.c
+++ b/linux/drivers/media/dvb/dvb-core/dvb_net.c
@@ -483,6 +483,21 @@ int dvb_net_do_ioctl(struct inode *inode, struct file *file,
dvbnetif->if_num=result;
break;
}
+ case NET_GET_IF:
+ {
+ struct net_device *netdev;
+ struct dvb_net_priv *priv_data;
+ struct dvb_net_if *dvbnetif=(struct dvb_net_if *)parg;
+
+ if (dvbnetif->if_num >= dvbnet->dev_num ||
+ !dvbnet->state[dvbnetif->if_num])
+ return -EFAULT;
+
+ netdev=(struct net_device*)&dvbnet->device[dvbnetif->if_num];
+ priv_data=(struct dvb_net_priv*)netdev->priv;
+ dvbnetif->pid=priv_data->pid;
+ break;
+ }
case NET_REMOVE_IF:
return dvb_net_remove_if(dvbnet, (int) parg);
default: