Yes. But just wait a bit. How to do it via system calls? I'm just a newbie in Unix\Linux\Solaris e.t.c. programming. Can anyone help me? I need an advice probably how to do it or may be what API to read... :) Please, help... (2 Replies)
Hi,
I am trying to configure an ip address, netmask, and default gateway on my solaris machine. For example, in Linux I would do the following command:
#ifconfig eth0 xx.xx.xx.xx netmask 255.0.0.0
#add route or route add default xxx.xxx.xxx.xxx
In Solaris 10, I believe the commands are... (7 Replies)
Hi,
I have problems with my SCO unix network interfaces.
Intel integrated adapter was failing, so I installed new one - 3COM adapter into free PCI slot.
Installed driver using SCO Software manager - successfully
Added new Network adapter using SCO Network configuration manager - successfully... (0 Replies)
Hi all, this is my first post on this forum. My main problem is this:
I have a NIM server that I am trying to configure two interfaces on. One interface is for an internal Admin VLAN, the other is so that the server can use SUMA to pull updates. The problem is that I need help w/ the routing.... (0 Replies)
Hi all, this is my first post on this forum. My main problem is this:
I have a NIM server that I am trying to configure two interfaces on. One interface is for an internal Admin VLAN, the other is so that the server can use SUMA to pull updates. The problem is that I need help w/ the routing.... (1 Reply)
I got second IOU in my M5000 but not able bring internal network interfcae .. ike i don't get link on those 2 interfaces .. and the same network cable plugged in PCI network card it works like a charm Is there any special way to enable the internal IOU interfaces or i have bad nics ? (8 Replies)
Hello
i am configuring a debian lenny sever ,/etc/network/interfaces is modified so that eth1 takes a static IP address
then i save it wq!
then i restart the networking , /etc/init.d/networking restart .
but after reboot ,the file is reset ,note that the interfaces had by defauklt IPv6 address... (5 Replies)
All, I have a quad NIC on a V880 running Solaris 9. I've heard you can bond interfaces together and get better throughput. I found this link that seems to describe the process well. However, the command mentioned (dladm) is missing. Is there some package I need to install to get this command? Thx.... (2 Replies)
i need a one liner command that writes in /var/log/net.log the date when i connect to the network and when i disconect ..i know that i need to write somethin in /etc/network/interfaces but idk what ! please help (1 Reply)
I just ran sudo service networking start on Ubuntu 16.00 and came out with error message
Job for networking service failed because control process exited with error code see systemctl status networking.service
I tried to also run this command
systemctl status networking.service
I also got an... (4 Replies)
Discussion started by: DOkuwa
4 Replies
LEARN ABOUT OPENSOLARIS
di_walk_minor
di_walk_minor(3DEVINFO) Device Information Library Functions di_walk_minor(3DEVINFO)NAME
di_walk_minor - traverse libdevinfo minor nodes
SYNOPSIS
cc [ flag... ] file... -ldevinfo [ library... ]
#include <libdevinfo.h>
int di_walk_minor(di_node_t root, const char *minor_nodetype,
uint_t flag, void *arg, int (*minor_callback)(di_node_t node,
di_minor_t minor, void *arg));
PARAMETERS
arg Pointer to caller- specific user data.
flag Specify 0. Reserved for future use.
minor The minor node visited.
minor_nodetype A character string specifying the minor data type, which may be one of the types defined by the Solaris DDI framework,
for example, DDI_NT_BLOCK. NULL matches all minor_node types. See ddi_create_minor_node(9F).
node The device node with which to the minor node is associated.
root Root of subtree to visit.
DESCRIPTION
The di_walk_minor() function visits all minor nodes attached to device nodes in a subtree rooted at root. For each minor node that matches
minor_nodetype, the caller-supplied function minor_callback() is invoked. The walk terminates immediately when minor_callback() returns
DI_WALK_TERMINATE.
RETURN VALUES
Upon successful completion, di_walk_minor() returns 0. Otherwise, -1 is returned and errno is set to indicate the error.
The minor_callback() function returns one of the following:
DI_WALK_CONTINUE Continue to visit subsequent minor data nodes.
DI_WALK_TERMINATE Terminate the walk immediately.
ERRORS
The di_walk_minor() function will fail if:
EINVAL Invalid argument.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO dladm(1M), di_minor_nodetype(3DEVINFO), dlpi_walk(3DLPI), libdevinfo(3LIB), attributes(5), filesystem(5), ddi_create_minor_node(9F)
Writing Device Drivers
NOTES
The di_walk_minor() function is no longer an accurate method for walking network datalink interfaces on the system. Applications should use
dlpi_walk(3DLPI) instead. It has been common for applications to use di_walk_minor() to walk networking devices by passing in a minor_node-
type of DDI_NT_NET, in most cases to discover the set of DLPI devices on the system. Solaris now makes a layering distinction between net-
working devices (the objects displayed in the DEVICE field by dladm show-phys) and network datalink interfaces (the objects displayed by
dladm show-link). Datalink interfaces are represented as the set of DLPI device nodes that applications can open by using dlpi_open(3DLPI)
or by opening DLPI nodes out of the /dev/net filesystem (see filesystem(5)). The dlpi_walk(3DLPI) function is the proper function to walk
these nodes.
SunOS 5.11 14 Jan 2009 di_walk_minor(3DEVINFO)