LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 10-08-2008, 04:04 AM   #1
wjhsieh
LQ Newbie
 
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
What is SIOCSIFFLAGS?


I tried to startup the wireless interface wlan0 on my router with the command "ifconfig wlan0 up", and it return "SIOCSIFFLAGS: Operation not permitted". Does anybody know what is SIOCSIFFLAGS? Of course I am using root mode to excute the command. How to debug the source code for this? Thanks for your help.
 
Old 10-08-2008, 05:45 AM   #2
dlinux
Member
 
Registered: Jan 2007
Location: Portugal
Distribution: Slackware 13.0
Posts: 52

Rep: Reputation: 15
SIOCSIFFLAGS is an ioctl() call for your interface specifying some options/mode of operation for the card. For more information see:
Quote:
man 7 netdevice.
 
Old 11-05-2017, 02:15 AM   #3
gotgot59
LQ Newbie
 
Registered: Oct 2015
Posts: 6

Rep: Reputation: Disabled
Some synthesis :

This man page describes the sockets interface which is used to configure network devices.
They pass an ifreq structure

SIOCGIFFLAGS, SIOCSIFFLAGS
Get or set the active flag word of the device. ifr_flags contains a bit mask. [IFF_*]
Setting the active flag word is a privileged operation, but any process may read it.

SIOCGIFADDR, SIOCSIFADDR
Get or set the address of the device using ifr_addr. Setting the interface address is a privileged operation. For compatibility, only AF_INET addresses are accepted or returned.

SIOCGIFDSTADDR, SIOCSIFDSTADDR
Get or set the destination address of a point-to-point device using ifr_dstaddr.

SIOCGIFBRDADDR, SIOCSIFBRDADDR
Get or set the broadcast address for a device using ifr_brdaddr.

SIOCGIFNETMASK, SIOCSIFNETMASK
Get or set the network mask for a device using ifr_netmask.

SIOCGIFMETRIC, SIOCSIFMETRIC
Get or set the metric of the device using ifr_metric. This is currently not implemented; it sets ifr_metric to 0 if you attempt to read it and returns EOPNOTSUPP if you attempt to set it.
[...]

SEE ALSO
proc(5), capabilities(7), ip(7), rtnetlink(7)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Siocsifflags jgomes Linux - Networking 1 11-03-2005 05:24 AM
SIOCSIFFLAGS seriouslynow i need help bobothn Linux - Hardware 1 08-06-2004 10:40 PM
SIOCSIFFLAGS Error! ewarmour Linux - Networking 5 05-30-2001 10:16 PM
SIOCSIFFLAGS Error! ewarmour Linux - Software 0 05-23-2001 12:36 PM
SIOCSIFFLAGS bleef Linux - Networking 1 05-11-2001 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 07:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration