/linux-2.4.37.9/Documentation/networking/ |
D | ifenslave.c | 507 struct ifreq ifr; in if_getconfig() local 512 strcpy(ifr.ifr_name, ifname); in if_getconfig() 513 if (ioctl(skfd, SIOCGIFFLAGS, &ifr) < 0) in if_getconfig() 515 mif_flags = ifr.ifr_flags; in if_getconfig() 517 ifname, ifr.ifr_flags); in if_getconfig() 519 strcpy(ifr.ifr_name, ifname); in if_getconfig() 520 if (ioctl(skfd, SIOCGIFADDR, &ifr) < 0) in if_getconfig() 523 ifr.ifr_addr.sa_data[0], ifr.ifr_addr.sa_data[1], in if_getconfig() 524 ifr.ifr_addr.sa_data[2], ifr.ifr_addr.sa_data[3]); in if_getconfig() 526 strcpy(ifr.ifr_name, ifname); in if_getconfig() [all …]
|
D | tuntap.txt | 77 struct ifreq ifr; 83 memset(&ifr, 0, sizeof(ifr)); 90 ifr.ifr_flags = IFF_TUN; 92 strncpy(ifr.ifr_name, dev, IFNAMSIZ); 94 if( (err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ){ 98 strcpy(dev, ifr.ifr_name);
|
/linux-2.4.37.9/drivers/net/wan/ |
D | hdlc_generic.c | 71 #define hdlc_raw_ioctl(hdlc, ifr) -ENOSYS argument 75 #define hdlc_raw_eth_ioctl(hdlc, ifr) -ENOSYS argument 79 #define hdlc_ppp_ioctl(hdlc, ifr) -ENOSYS argument 83 #define hdlc_cisco_ioctl(hdlc, ifr) -ENOSYS argument 87 #define hdlc_fr_ioctl(hdlc, ifr) -ENOSYS argument 91 #define hdlc_x25_ioctl(hdlc, ifr) -ENOSYS argument 95 int hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in hdlc_ioctl() argument 103 switch(ifr->ifr_settings.type) { in hdlc_ioctl() 110 proto = ifr->ifr_settings.type; in hdlc_ioctl() 118 case IF_PROTO_HDLC: return hdlc_raw_ioctl(hdlc, ifr); in hdlc_ioctl() [all …]
|
D | hdlc_raw.c | 35 int hdlc_raw_ioctl(hdlc_device *hdlc, struct ifreq *ifr) in hdlc_raw_ioctl() argument 37 raw_hdlc_proto *raw_s = ifr->ifr_settings.ifs_ifsu.raw_hdlc; in hdlc_raw_ioctl() 43 switch (ifr->ifr_settings.type) { in hdlc_raw_ioctl() 45 ifr->ifr_settings.type = IF_PROTO_HDLC; in hdlc_raw_ioctl() 46 if (ifr->ifr_settings.size < size) { in hdlc_raw_ioctl() 47 ifr->ifr_settings.size = size; /* data size wanted */ in hdlc_raw_ioctl()
|
D | hdlc_raw_eth.c | 47 int hdlc_raw_eth_ioctl(hdlc_device *hdlc, struct ifreq *ifr) in hdlc_raw_eth_ioctl() argument 49 raw_hdlc_proto *raw_s = ifr->ifr_settings.ifs_ifsu.raw_hdlc; in hdlc_raw_eth_ioctl() 57 switch (ifr->ifr_settings.type) { in hdlc_raw_eth_ioctl() 59 ifr->ifr_settings.type = IF_PROTO_HDLC_ETH; in hdlc_raw_eth_ioctl() 60 if (ifr->ifr_settings.size < size) { in hdlc_raw_eth_ioctl() 61 ifr->ifr_settings.size = size; /* data size wanted */ in hdlc_raw_eth_ioctl()
|
D | c101.c | 186 static int c101_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in c101_ioctl() argument 189 sync_serial_settings new_line, *line = ifr->ifr_settings.ifs_ifsu.sync; in c101_ioctl() 200 return hdlc_ioctl(dev, ifr, cmd); in c101_ioctl() 202 switch(ifr->ifr_settings.type) { in c101_ioctl() 204 ifr->ifr_settings.type = IF_IFACE_SYNC_SERIAL; in c101_ioctl() 205 if (ifr->ifr_settings.size < size) { in c101_ioctl() 206 ifr->ifr_settings.size = size; /* data size wanted */ in c101_ioctl() 234 return hdlc_ioctl(dev, ifr, cmd); in c101_ioctl()
|
D | pci200syn.c | 206 static int pci200_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in pci200_ioctl() argument 209 sync_serial_settings new_line, *line = ifr->ifr_settings.ifs_ifsu.sync; in pci200_ioctl() 220 return hdlc_ioctl(dev, ifr, cmd); in pci200_ioctl() 222 switch(ifr->ifr_settings.type) { in pci200_ioctl() 224 ifr->ifr_settings.type = IF_IFACE_V35; in pci200_ioctl() 225 if (ifr->ifr_settings.size < size) { in pci200_ioctl() 226 ifr->ifr_settings.size = size; /* data size wanted */ in pci200_ioctl() 256 return hdlc_ioctl(dev, ifr, cmd); in pci200_ioctl()
|
D | hdlc_ppp.c | 77 int hdlc_ppp_ioctl(hdlc_device *hdlc, struct ifreq *ifr) in hdlc_ppp_ioctl() argument 82 switch (ifr->ifr_settings.type) { in hdlc_ppp_ioctl() 84 ifr->ifr_settings.type = IF_PROTO_PPP; in hdlc_ppp_ioctl()
|
D | hdlc_cisco.c | 263 int hdlc_cisco_ioctl(hdlc_device *hdlc, struct ifreq *ifr) in hdlc_cisco_ioctl() argument 265 cisco_proto *cisco_s = ifr->ifr_settings.ifs_ifsu.cisco; in hdlc_cisco_ioctl() 271 switch (ifr->ifr_settings.type) { in hdlc_cisco_ioctl() 273 ifr->ifr_settings.type = IF_PROTO_CISCO; in hdlc_cisco_ioctl() 274 if (ifr->ifr_settings.size < size) { in hdlc_cisco_ioctl() 275 ifr->ifr_settings.size = size; /* data size wanted */ in hdlc_cisco_ioctl()
|
D | hdlc_fr.c | 315 int pvc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in pvc_ioctl() argument 320 if (ifr->ifr_settings.type == IF_GET_PROTO) { in pvc_ioctl() 322 ifr->ifr_settings.type = IF_PROTO_FR_ETH_PVC; in pvc_ioctl() 324 ifr->ifr_settings.type = IF_PROTO_FR_PVC; in pvc_ioctl() 326 if (ifr->ifr_settings.size < sizeof(info)) { in pvc_ioctl() 328 ifr->ifr_settings.size = sizeof(info); in pvc_ioctl() 334 if (copy_to_user(ifr->ifr_settings.ifs_ifsu.fr_pvc_info, in pvc_ioctl() 1045 int hdlc_fr_ioctl(hdlc_device *hdlc, struct ifreq *ifr) in hdlc_fr_ioctl() argument 1047 fr_proto *fr_s = ifr->ifr_settings.ifs_ifsu.fr; in hdlc_fr_ioctl() 1054 switch (ifr->ifr_settings.type) { in hdlc_fr_ioctl() [all …]
|
D | farsync.c | 1886 struct ifreq *ifr) in fst_set_iface() argument 1891 if (ifr->ifr_settings.size != sizeof (sync)) { in fst_set_iface() 1896 (&sync, ifr->ifr_settings.ifs_ifsu.sync, sizeof (sync))) { in fst_set_iface() 1905 switch (ifr->ifr_settings.type) { in fst_set_iface() 1961 struct ifreq *ifr) in fst_get_iface() argument 1972 ifr->ifr_settings.type = IF_IFACE_E1; in fst_get_iface() 1975 ifr->ifr_settings.type = IF_IFACE_T1; in fst_get_iface() 1978 ifr->ifr_settings.type = IF_IFACE_V35; in fst_get_iface() 1981 ifr->ifr_settings.type = IF_IFACE_V24; in fst_get_iface() 1984 ifr->ifr_settings.type = IF_IFACE_X21D; in fst_get_iface() [all …]
|
D | n2.c | 255 static int n2_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in n2_ioctl() argument 258 sync_serial_settings new_line, *line = ifr->ifr_settings.ifs_ifsu.sync; in n2_ioctl() 269 return hdlc_ioctl(dev, ifr, cmd); in n2_ioctl() 271 switch(ifr->ifr_settings.type) { in n2_ioctl() 273 ifr->ifr_settings.type = IF_IFACE_SYNC_SERIAL; in n2_ioctl() 274 if (ifr->ifr_settings.size < size) { in n2_ioctl() 275 ifr->ifr_settings.size = size; /* data size wanted */ in n2_ioctl() 303 return hdlc_ioctl(dev, ifr, cmd); in n2_ioctl()
|
D | hdlc_x25.c | 179 int hdlc_x25_ioctl(hdlc_device *hdlc, struct ifreq *ifr) in hdlc_x25_ioctl() argument 184 switch (ifr->ifr_settings.type) { in hdlc_x25_ioctl() 186 ifr->ifr_settings.type = IF_PROTO_X25; in hdlc_x25_ioctl()
|
/linux-2.4.37.9/arch/s390x/kernel/ |
D | ioctl32.c | 150 struct ifreq *ifr; in dev_ifconf() local 169 ifr = ifc.ifc_req; in dev_ifconf() 173 if (copy_from_user(ifr++, ifr32++, sizeof (struct ifreq32))) { in dev_ifconf() 186 ifr = ifc.ifc_req; in dev_ifconf() 192 if (copy_to_user(ifr32++, ifr++, sizeof (struct ifreq32))) { in dev_ifconf() 210 struct ifreq ifr; in bond_ioctl() local 215 if (copy_from_user(&ifr, (struct ifreq32 *)arg, sizeof(struct ifreq32))) in bond_ioctl() 217 ifr.ifr_data = (__kernel_caddr_t)get_free_page(GFP_KERNEL); in bond_ioctl() 218 if (!ifr.ifr_data) in bond_ioctl() 240 if (copy_from_user(ifr.ifr_data, (char *)A(data), len)) { in bond_ioctl() [all …]
|
/linux-2.4.37.9/net/core/ |
D | dev.c | 1687 struct ifreq ifr; in dev_ifname() local 1693 if (copy_from_user(&ifr, arg, sizeof(struct ifreq))) in dev_ifname() 1697 dev = __dev_get_by_index(ifr.ifr_ifindex); in dev_ifname() 1703 strcpy(ifr.ifr_name, dev->name); in dev_ifname() 1706 if (copy_to_user(arg, &ifr, sizeof(struct ifreq))) in dev_ifname() 2052 static int dev_ifsioc(struct ifreq *ifr, unsigned int cmd) in dev_ifsioc() argument 2057 if ((dev = __dev_get_by_name(ifr->ifr_name)) == NULL) in dev_ifsioc() 2063 ifr->ifr_flags = (dev->flags&~(IFF_PROMISC|IFF_ALLMULTI|IFF_RUNNING)) in dev_ifsioc() 2066 ifr->ifr_flags |= IFF_RUNNING; in dev_ifsioc() 2070 return dev_change_flags(dev, ifr->ifr_flags); in dev_ifsioc() [all …]
|
D | wireless.c | 433 static inline int dev_iwstats(struct net_device *dev, struct ifreq *ifr) in dev_iwstats() argument 440 struct iwreq * wrq = (struct iwreq *)ifr; in dev_iwstats() 461 struct ifreq * ifr) in ioctl_export_private() argument 463 struct iwreq * iwr = (struct iwreq *) ifr; in ioctl_export_private() 500 struct ifreq * ifr, in ioctl_standard_call() argument 504 struct iwreq * iwr = (struct iwreq *) ifr; in ioctl_standard_call() 517 ifr->ifr_name, cmd); in ioctl_standard_call() 659 struct ifreq * ifr, in ioctl_private_call() argument 663 struct iwreq * iwr = (struct iwreq *) ifr; in ioctl_private_call() 679 ifr->ifr_name, cmd); in ioctl_private_call() [all …]
|
/linux-2.4.37.9/include/linux/ |
D | hdlc.h | 111 int (*ioctl)(struct net_device *dev, struct ifreq *ifr, int cmd); 163 int hdlc_raw_ioctl(hdlc_device *hdlc, struct ifreq *ifr); 164 int hdlc_raw_eth_ioctl(hdlc_device *hdlc, struct ifreq *ifr); 165 int hdlc_cisco_ioctl(hdlc_device *hdlc, struct ifreq *ifr); 166 int hdlc_ppp_ioctl(hdlc_device *hdlc, struct ifreq *ifr); 167 int hdlc_fr_ioctl(hdlc_device *hdlc, struct ifreq *ifr); 168 int hdlc_x25_ioctl(hdlc_device *hdlc, struct ifreq *ifr); 174 int hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);
|
/linux-2.4.37.9/drivers/net/ |
D | tun.c | 351 static int tun_set_iff(struct file *file, struct ifreq *ifr) in tun_set_iff() argument 357 dev = __dev_get_by_name(ifr->ifr_name); in tun_set_iff() 387 if (ifr->ifr_flags & IFF_TUN) { in tun_set_iff() 391 } else if (ifr->ifr_flags & IFF_TAP) { in tun_set_iff() 398 if (*ifr->ifr_name) in tun_set_iff() 399 name = ifr->ifr_name; in tun_set_iff() 413 if (ifr->ifr_flags & IFF_NO_PI) in tun_set_iff() 416 if (ifr->ifr_flags & IFF_ONE_QUEUE) in tun_set_iff() 422 strcpy(ifr->ifr_name, tun->name); in tun_set_iff() 436 struct ifreq ifr; in tun_chr_ioctl() local [all …]
|
D | eql.c | 141 static int eql_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd); /* */ 313 static int eql_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in eql_ioctl() argument 321 return eql_enslave (dev, (slaving_request_t *) ifr->ifr_data); in eql_ioctl() 323 return eql_emancipate (dev, (slaving_request_t *) ifr->ifr_data); in eql_ioctl() 325 return eql_g_slave_cfg (dev, (slave_config_t *) ifr->ifr_data); in eql_ioctl() 327 return eql_s_slave_cfg (dev, (slave_config_t *) ifr->ifr_data); in eql_ioctl() 329 return eql_g_master_cfg (dev, (master_config_t *) ifr->ifr_data); in eql_ioctl() 331 return eql_s_master_cfg (dev, (master_config_t *) ifr->ifr_data); in eql_ioctl()
|
/linux-2.4.37.9/arch/ppc/xmon/ |
D | adb.c | 20 unsigned char ifr; member 30 adb_log[0].ifr = ADB_IFR; in init_adb_log() 47 printf("b=%x ifr=%x acr=%x at %d.%.7d\n", ap->b, ap->ifr, ap->acr, in dump_adb_log() 58 ap->ifr = ADB_IFR; in adb_chklog() 60 if (ap->b != ap[-1].b || (ap->ifr & 4) != (ap[-1].ifr & 4) in adb_chklog() 76 if ((ap->b & bmask) == bval && (ap->ifr & fmask) == fval) in adb_bitwait()
|
/linux-2.4.37.9/net/ipv4/ |
D | devinet.c | 462 struct ifreq ifr; in devinet_ioctl() local 464 struct sockaddr_in *sin = (struct sockaddr_in *)&ifr.ifr_addr; in devinet_ioctl() 477 if (copy_from_user(&ifr, arg, sizeof(struct ifreq))) in devinet_ioctl() 479 ifr.ifr_name[IFNAMSIZ-1] = 0; in devinet_ioctl() 484 colon = strchr(ifr.ifr_name, ':'); in devinet_ioctl() 489 dev_load(ifr.ifr_name); in devinet_ioctl() 526 if ((dev = __dev_get_by_name(ifr.ifr_name)) == NULL) { in devinet_ioctl() 542 if ((strcmp(ifr.ifr_name, ifa->ifa_label) == 0) in devinet_ioctl() 553 if (strcmp(ifr.ifr_name, ifa->ifa_label) == 0) in devinet_ioctl() 586 if (!(ifr.ifr_flags&IFF_UP)) in devinet_ioctl() [all …]
|
/linux-2.4.37.9/drivers/net/e100/ |
D | e100_main.c | 1349 e100_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) in e100_ioctl() argument 1355 return e100_do_ethtool_ioctl(dev, ifr); in e100_ioctl() 1361 return e100_mii_ioctl(dev, ifr, cmd); in e100_ioctl() 3174 e100_do_ethtool_ioctl(struct net_device *dev, struct ifreq *ifr) in e100_do_ethtool_ioctl() argument 3179 if (copy_from_user(&ecmd, ifr->ifr_data, sizeof (ecmd.cmd))) in e100_do_ethtool_ioctl() 3184 rc = e100_ethtool_get_settings(dev, ifr); in e100_do_ethtool_ioctl() 3187 rc = e100_ethtool_set_settings(dev, ifr); in e100_do_ethtool_ioctl() 3190 rc = e100_ethtool_get_drvinfo(dev, ifr); in e100_do_ethtool_ioctl() 3193 rc = e100_ethtool_gregs(dev, ifr); in e100_do_ethtool_ioctl() 3196 rc = e100_ethtool_nway_rst(dev, ifr); in e100_do_ethtool_ioctl() [all …]
|
/linux-2.4.37.9/drivers/net/hamradio/soundmodem/ |
D | sm.c | 368 static int sm_ioctl(struct net_device *dev, struct ifreq *ifr, 460 static int sm_ioctl(struct net_device *dev, struct ifreq *ifr, in sm_ioctl() argument 482 return sm->hwdrv->ioctl(dev, sm, ifr, hi, cmd); in sm_ioctl() 488 return sm->hwdrv->ioctl(dev, sm, ifr, hi, cmd); in sm_ioctl() 508 if (copy_to_user(ifr->ifr_data, hi, sizeof(*hi))) in sm_ioctl() 536 if (copy_to_user(ifr->ifr_data, hi, sizeof(*hi))) in sm_ioctl() 542 if (copy_from_user(&bi, ifr->ifr_data, sizeof(bi))) in sm_ioctl() 550 if (copy_to_user(ifr->ifr_data, &bi, sizeof(bi))) in sm_ioctl() 556 if (copy_from_user(&bi, ifr->ifr_data, sizeof(bi))) in sm_ioctl() 572 if (copy_to_user(ifr->ifr_data, &bi, sizeof(bi))) in sm_ioctl() [all …]
|
/linux-2.4.37.9/drivers/net/hamradio/ |
D | baycom_par.c | 387 static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr, 415 static int baycom_ioctl(struct net_device *dev, struct ifreq *ifr, in baycom_ioctl() argument 431 if (get_user(cmd2, (int *)ifr->ifr_data)) in baycom_ioctl() 439 if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) in baycom_ioctl() 451 if (copy_to_user(ifr->ifr_data, hi, sizeof(struct hdlcdrv_ioctl))) in baycom_ioctl() 460 if (copy_from_user(&bi, ifr->ifr_data, sizeof(bi))) in baycom_ioctl() 475 if (copy_to_user(ifr->ifr_data, &bi, sizeof(bi))) in baycom_ioctl()
|
/linux-2.4.37.9/net/decnet/ |
D | dn_dev.c | 417 struct ifreq *ifr = (struct ifreq *)buffer; in dn_dev_ioctl() local 418 struct sockaddr_dn *sdn = (struct sockaddr_dn *)&ifr->ifr_addr; in dn_dev_ioctl() 425 if (copy_from_user(ifr, arg, DN_IFREQ_SIZE)) in dn_dev_ioctl() 427 ifr->ifr_name[IFNAMSIZ-1] = 0; in dn_dev_ioctl() 430 dev_load(ifr->ifr_name); in dn_dev_ioctl() 448 if ((dev = __dev_get_by_name(ifr->ifr_name)) == NULL) { in dn_dev_ioctl() 455 if (strcmp(ifr->ifr_name, ifa->ifa_label) == 0) in dn_dev_ioctl() 492 if (copy_to_user(arg, ifr, DN_IFREQ_SIZE)) in dn_dev_ioctl() 1065 struct ifreq *ifr = (struct ifreq *)buffer; in dnet_gifconf() local 1066 struct sockaddr_dn *addr = (struct sockaddr_dn *)&ifr->ifr_addr; in dnet_gifconf() [all …]
|