05-25-2012
i am using fedora9 and ns2.34. i have to make modification to dynamic source routing(DSR) protocol. for this i hav to change packet information and route cache information.hav to create a temporary route cache. so i wanted to ask in which files i hav to make changes. i will be thanks if i get code.
9 More Discussions You Might Find Interesting
1. Programming
Hi,
I am a newbie using linux. I want to use the 9 pins of the COM port for data transmission. I am trying to write a code to toggle the DTR pin in /dev/ttyS0.
Can any one help by giving a sample code or links that will help me pick up fast
Regards (2 Replies)
Discussion started by: Srikanthks_2000
2 Replies
2. Shell Programming and Scripting
Hi Everybody,
I have an layout file like below
f1 1 char 10,
f2 11 char 2,
f3 13 char 1,
lineend 14 char 1
Their I need to add a new field which would be like
f5 char 3,
f6 char 2
The o/p should be
f1 1 char 10,
f2 11 char 2,
f3 13 char 1,
f5 14 char 3,
f6 17 char 2 (3 Replies)
Discussion started by: mr_manii
3 Replies
3. Shell Programming and Scripting
I have a file with 32 fields each separated by ‘|”. I need to add a file date exactly in the format “ "20100120" “ as the 32nd field moving the existing 32nd field to 33. so the field I added should be 32nd and the 33rd field is the last field before I added the file date.
I know we can... (8 Replies)
Discussion started by: dsravan
8 Replies
4. Programming
hi
i am student doing project in ns2.34.
i hav to add field in route cache and packet of DSR routing protocol.
which files hv to be changed...pl help me (1 Reply)
Discussion started by: khubalkar
1 Replies
5. Shell Programming and Scripting
Hi All,
I have a file(Pipe Delimited) where i need to add a blank field before the last field and a blank field after the last field. Please help. I have provided below the sample input records and desired output.
Code:
Sample Input: A0010000|Abilene TX A 1|A0010957|Dallas... (0 Replies)
Discussion started by: Arun Mishra
0 Replies
6. Shell Programming and Scripting
Hi All,
I have a file(Pipe Delimited) where i need to add a blank field before the last field and a blank field after the last field. Please help. I have provided below the sample input records and desired output.
Sample Input:
A0010000|Abilene TX A 1|A0010957|Dallas TX|A0010998|West|US... (5 Replies)
Discussion started by: Arun Mishra
5 Replies
7. Shell Programming and Scripting
Hi All,
I get a file on weekly basis from client. I need to write a script which make sure the file should have 20 columns after the first column. If not then the script should add the remaining columns and default them to space(except for 2nd and 3rd). and at the same time the script should... (25 Replies)
Discussion started by: Arun Mishra
25 Replies
8. Shell Programming and Scripting
Dear AWK-experts!
I did get stuck in the task of combining files after matching fields, so I'm still awkward with learning AWK.
There are 2 files: one containing 3 columns with ID, coding status, and score for long noncoding RNAs:
file1 (1.txt) (>5000 lines)
... (12 Replies)
Discussion started by: kben
12 Replies
9. Shell Programming and Scripting
I have a file with 4 columns
a|b|c|d
I need to add single quotes around field 2 and 3
I need it to be like
a|'b'|'c'|d (5 Replies)
Discussion started by: dsravanam
5 Replies
LEARN ABOUT DEBIAN
net::dri::data::hosts
Net::DRI::Data::Hosts(3pm) User Contributed Perl Documentation Net::DRI::Data::Hosts(3pm)
NAME
Net::DRI::Data::Hosts - Handle ordered list of nameservers (name, IPv4 addresses, IPv6 addresses) for Net::DRI
SYNOPSIS
use Net::DRI::Data::Hosts;
my $dh=Net::DRI::Data::Hosts->new();
$dh->add('ns.example.foo',['1.2.3.4','1.2.3.5']);
$dh->add('ns2.example.foo',['10.1.1.1']); ## Third element can be an array ref of IPv6 addresses
## ->add() returns the object itself, and thus can be chained
## Number of nameservers
print $dh->count(); ## Gives 2
## List of names, either all without arguments, or the amount given by the argument
my @a=$dh->get_names(2); ## Gives ('ns.example.foo','ns2.example.foo')
## Details for the nth nameserver (the list starts at 1 !)
my @d=$dh->get_details(2); ## Gives ('ns2.example.foo',['10.1.1.1'])
## Details by name is possible also
my @d=$dh->get_details('ns2.example.foo');
DESCRIPTION
Order of nameservers is preserved. Order of IP addresses is preserved, but no duplicate IP is allowed.
If you try to add a nameserver that is already in the list, the IP addresses provided will be added to the existing IP addresses (without
duplicates)
Hostnames are verified before being used with Net::DRI::Util::is_hostname().
IP addresses are verified with Net::DRI::Util::is_ipv4() and Net::DRI::Util::is_ipv6().
METHODS
new(...)
creates a new instance ; if parameters are given, add() is called with them all at once
new_set(...)
creates a new instance ; if parameters are given, add() is called once for each parameter
clear()
clears the current list of nameservers
set(...)
clears the current list of nameservers, and call add() once for each parameter passed
add(name,[ipv4],[ipv6])
adds a new nameserver with the given name and lists of IPv4 and IPv6 addresses
name()
name of this object (for example for registries having the notion of host groups) ; this has nothing to do with the name(s) of the
nameservers inside this object
loid()
local id of this object
get_names(limit)
returns a list of nameservers' names included in this object ; if limit is provided we return only the number of names asked
count()
returns the number of nameservers currently stored in this object
is_empty()
returns 0 if this object has nameservers, 1 otherwise
get_details(pos_or_name)
given an integer (position in the list, we start to count at 1) or a name, we return all details as a 3 element array in list context or
only the first element (the name) in scalar context for the nameserver stored at the given position or with the given name ; returns undef
if nothing found at the position/with the name given.
SUPPORT
For now, support questions should be sent to:
<netdri@dotandco.com>
Please also see the SUPPORT file in the distribution.
SEE ALSO
http://www.dotandco.com/services/software/Net-DRI/
AUTHOR
Patrick Mevzek, <netdri@dotandco.com>
COPYRIGHT
Copyright (c) 2005,2006,2007,2008,2009 Patrick Mevzek <netdri@dotandco.com>. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
See the LICENSE file that comes with this distribution for more details.
perl v5.10.1 2010-03-25 Net::DRI::Data::Hosts(3pm)