07-23-2009
if u r default interface is selected as lan interface and if u want to send the packet to the internet(destination outside the lan) then which interface will be selected.(source address is 0.0.0.0 -----binding is not done)
10 More Discussions You Might Find Interesting
1. IP Networking
HI folks,
I am developing a software which one of the module is to interchange the ip address of another active network interface's when making a socket connection.
I would like to know whether there is any function call that would enable me to retrieve the ip address that is obtained by a... (2 Replies)
Discussion started by: citiz3n
2 Replies
2. IP Networking
Hi all,
I have some doubts in selecting the interface to transfer packets and receive the packets.
--> Multiple interfaces :
--------------------
1) 0.0.0.0 --------> wild card address.
2) x.x.x.x --------> valid address.(192.168.1.156)
3) ff.ff.ff.ff -------->... (0 Replies)
Discussion started by: vijaypdp2006
0 Replies
3. Shell Programming and Scripting
Hi,
I have a file formated like this:
John 7.22 2010-01-25_17:01:36
George 8.22 2010-01-25_17:02:36
Bob 9.62 2010-01-25_17:04:36
Jane 10.11 2010-01-25_17:05:36
Emma 4.52 2010-01-25_17:01:36
What I want to do is cut out only the entries that have... (2 Replies)
Discussion started by: Donkey25
2 Replies
4. SCO
Hi all
I have installed a demo version of SCO OpenServer 5.0.2, I finally found it is Desktop Interface, I would like to know how to change its interface to dos based interface?
If you have any ideas, please tell me then. Thank you (2 Replies)
Discussion started by: TinhNhi
2 Replies
5. Shell Programming and Scripting
Hi
My pipe delimited .txt file contains rows with 10 columns.
Can anyone advise how I output to file only those rows with the letters ‘ci'
as the first 2 characters in the 3rd column ?
Many thanks (4 Replies)
Discussion started by: malts18
4 Replies
6. Shell Programming and Scripting
Move all files starting with a specific name to different directory.
This shell script program should have three parameters
File Name
Source Directory
Destination Directory
User should be able to enter ‘AB_CD*' in file name parameter. In this case all the files starting with AB_CD will... (1 Reply)
Discussion started by: chetancrsp18
1 Replies
7. Shell Programming and Scripting
I have two files with thousands of sequences of different lengths. infile1 contains the actual sequences and infile2 the scores for each A, T, G and C in infile1. Something like this:
infile1:
>HZVJKYI01ECH5R
TTGATGTGCCAGCTGCCGTTGGTGTGCCAA
>HZVJKYI01AQWJ8
GGATATGATGATGAACTGGTTTGGCACACC... (4 Replies)
Discussion started by: Xterra
4 Replies
8. Solaris
How to set gateway address to a particular interface? waht are the files need to update to make it permanent? (2 Replies)
Discussion started by: Naveen.6025
2 Replies
9. UNIX for Advanced & Expert Users
Hi ,
Could someone let me know how to detect duplicate ip address after assigning ip address to ethernet interface using c program (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I have a sample data like this:
A1 B1 100.00
B1 A1 100.00
A2 B2 90.80
B2 A2 90.80
A3 B3 99.07
B3 A3 99.07
A4 B4 99.00
B4 A4 99.00
A5 B5 97.13
B5 A5 99.53
.
.
Ax By i
By Ax j
each two lines are same comparison with opposite order. What I expected is... (3 Replies)
Discussion started by: nengcheng
3 Replies
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)