Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
informazioni interfacce di rete e /proc
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano
View previous topic :: View next topic  
Author Message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Tue Jan 08, 2008 12:04 pm    Post subject: informazioni interfacce di rete e /proc Reply with quote

Dove vado a lggere all'interno del filesystem /proc lo stato up oppure down di un'interfaccia di rete generica (ppp0, ethX, wlanX)??
_________________
LP
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Tue Jan 08, 2008 12:21 pm    Post subject: Reply with quote

Hai provato a vedere se sotto:

Code:
/sys/class/net


trovi le informazioni che ti servono?
_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Tue Jan 08, 2008 1:50 pm    Post subject: Reply with quote

Non proprio, ora per vedere se un'interfaccia è up oppure down lancio semplicemente il comando
Code:
ifconfig

pensavo che lui prendesse le informazione da qualche parte, ma dove? in /sys/class/net/...?
_________________
LP
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Tue Jan 08, 2008 1:55 pm    Post subject: Reply with quote

Dai un'occhiata a:

Code:
strace ifconfig eth0

_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
lucapost
Veteran
Veteran


Joined: 24 Nov 2005
Posts: 1419
Location: <ud|me|ts> - Italy

PostPosted: Tue Jan 08, 2008 1:58 pm    Post subject: Reply with quote

forse qua:
Code:
cat /proc/net/dev_mcast

???
_________________
LP
Back to top
View user's profile Send private message
gutter
Bodhisattva
Bodhisattva


Joined: 13 Mar 2004
Posts: 7162
Location: Aarau, Aargau, Switzerland

PostPosted: Wed Jan 09, 2008 9:36 am    Post subject: Reply with quote

... anche

Code:
cat /proc/net/dev

_________________
Registered as User #281564 and Machines #163761
Back to top
View user's profile Send private message
makoomba
Bodhisattva
Bodhisattva


Joined: 03 Jun 2004
Posts: 1856

PostPosted: Wed Jan 09, 2008 10:33 am    Post subject: Reply with quote

Moved from Forum italiano (Italian) to Forum di discussione italiano.
_________________
When all else fails, read the instructions.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) Forum di discussione italiano All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum