LANCE(3) Library Functions Manual LANCE(3)NAME
lance - LANCE Ethernet device
SYNOPSIS
bind -a #l /net
/net/ether/clone
/net/ether/[0-7]
/net/ether/[0-7]/data
/net/ether/[0-7]/ctl
/net/ether/[0-7]/stats
/net/ether/[0-7]/type
DESCRIPTION
The LANCE Ethernet interface is a directory containing 9 stream directories: one for each of 8 Ethernet packet types and a clone file.
Each stream directory contains files to control the stream, receive and send data, and supply statistics. Incoming Ethernet packets are
demultiplexed by packet type and passed up the corresponding open stream. Reading from the data file reads packets at the head of the
stream. A read will terminate at packet boundaries. Each write to the data file causes a packet to be sent. The Ethernet address of the
interface is inserted into the packet header as the source address.
A stream is assigned a packet type by opening its ctl file and writing connect n where n is a decimal integer constant identifying the Eth-
ernet packet type. A value of -1 stands for all types. If multiple streams are assigned to a given packet type a copy of the packet is
passed up each stream.
Reading the type file returns the decimal value of the assigned Ethernet packet type. Reading the stats file returns status information
and the Ethernet address of the interface.
An interface normally receives only packets whose destination address is that of the interface or is the broadcast address,
ff:ff:ff:ff:ff:ff. The interface can be made to receive all packets on the network by writing the string promiscuous to the ctl file. The
interface remains promiscuous until the control file is closed. The extra packets are passed up only streams of type -1.
SOURCE
/sys/src/9/port/devlance.c
LANCE(3)
Check Out this Related Man Page
ARP(3) Library Functions Manual ARP(3)NAME
arp - Internet Address Resolution Protocol
SYNOPSIS
bind -a #a /net/arp
/net/arp/ctl
/net/arp/data
/net/arp/stats
DESCRIPTION
The arp device provides the means by which the kernel resolves IP addresses into Ethernet addresses. A cache is maintained by the arp
device to speed the process.
The ctl file controls the ARP cache maintained by the kernel. The flush control message invalidates all entries in the cache. The delete
ipaddr control message invalidates a single cache entry. All IP addresses passed to the system are in the canonical textual form described
in ip(2). The perm ipaddr control message makes an existing cache entry permanent.
When the kernel boots, ipconfig sets up the IP stream and arpd opens #a/arp/data (see ipconfig(8)). This establishes the ARP cache and
enables arpd to receive all ARP packets from the network, which it uses to maintain the cache by writing the results of address resolution
requests back into the cache. The IP stream module uses the cache to translate IP addresses.
Subsequent opens of the data file allow the contents of the cache to be examined. Each cache entry consists of an IP address, an Ethernet
address, and the status of the entry. Entries may be invalid, permanent, or temporary. Permanent entries will never be aged from the
cache. Temporary entries may be replaced by new addresses entered by the ARP server.
The file stats reports the cache performance.
SEE ALSO ip(3), ipconfig(8)SOURCE
/sys/src/9/port/devarp.c
ARP(3)
If you have used snort to build a folder list of computers IP and their packets is there a tcp stream follow application that can be used to re-build the packets? Like ethereal? (1 Reply)
When i capture a tcp packet (a normal ACK-RST packet), Snort shows me a total packet lenght of 3C(hex) = 60(dez) and an IpLen of 20(dez) and a TcpLen of 20(dez), so the sizeof the Ethernet header should be: TotalPacketLenght-(IpLen+TcpLen), that would be 60-(20+20) = 20, but i thought that the... (4 Replies)
Hi,
I'm trying to read a file in with and assigne the stream to a char * type. I've manged it using the cin.get returning type char, but am having run-time problems returning a char *. For example,
char *pStream = "file.txt";
ifstream from(pStream);
from.open(pStream);
... (1 Reply)
hi everybody
Can you help me resolve flowwing two quetions?
First,i want to get every network information by using c/c++ function on Hpux OS.The network information include send packets,receive packets ,running status and so on .
Second,i want to get broadcast address by using c/c++... (0 Replies)
Hi All,
In Ultra 10 at time system is not displaying value for Ethernet address and Host ID.
Also, when i am trying to change the value of environment variables i am getting below message and value is not changing
Thanks (4 Replies)
hi all,
i have an udp based application that doesn't bind to any particular address.
-->while sneding the packets, i have some doubts....
1) can the packet be transmitted with an source ip address as 0.0.0.0
2) if we select an interface based on destination ip address,... (0 Replies)
Hi,
I am using the ce interface on my Solaris 9 server and there is significant packet loss when transmitting large packets. Does anyone have a fix for this?
----10.1.0.0 PING Statistics----
51 packets transmitted, 42 packets received, 17% packet loss
round-trip (ms) min/avg/max =... (12 Replies)
Can somebody help me on IVM? I have installed vio 2.2 on a js21 server.
It has 2 physical ether ports, what I want to do is create ether channel say
en15 and en16 are physical and en17 is ether channel. I have created 2 clients on this server, now the question is can I map this en17 to both... (1 Reply)
I have made an packet capture application running on intel machine, it is capturing packets with src address- 17.0.0.0 destination ip- 66.0.0.0, source port- 0, destination port- 0, and protocol- 0 what does these packets mean ?
The code written to interpreter captured bytes is given below.... (5 Replies)
Hi all...
<semi-rant>
I am an amateur coder, (and it probably shows ;o), and find that the Internet ether is a wonderful thing.
I very rarely ask for help for any coding on any platform and will try and solve a problem by approaching it with a bit of lateral thinking.
I will search the... (3 Replies)
Hi,
I have a file (stats.txt) with columns like in the example below. Destination IP address, timestamp, TCP packet sequence number and packet length.
destIP time seqNo packetLength
1.2.3.4 0.01 123 500
1.2.3.5 0.03 44 1500
1.3.2.5 0.08 44 1500
1.2.3.4 0.44... (12 Replies)