12-30-2013
To get specific, one needs to know the layout of the dumped router data. Then you need to isolate the hex columns, perhaps putting them into an array. Now, you can fetch them out of the array and convert them to your target form, like dotted decimal for IP addresses.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
help, what is the difference between core dump and panic dump? (1 Reply)
Discussion started by: aileen
1 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
If Windows server have an active directory and active folder/mapping(maybe in unix NFS).
Is there any similiar fuctions in unix. Actually if we have a hundred client in unix/linux with unix server, I want to manage user client and access control easier as in windows.
Thank you in... (5 Replies)
Discussion started by: blesets
5 Replies
3. UNIX for Advanced & Expert Users
Hello. I'm working on a project that involves creating public/private keys server-side using openssl and using the public key in a Javascript application to encrypt sensitive data in form fields before transmission to the server. Using an SSL https server connection was not an option in this... (1 Reply)
Discussion started by: jhopper
1 Replies
4. UNIX for Dummies Questions & Answers
I have 2 files. The first file contains user names in one column. The second, and considerably longer, file contains user names in the first column and corresponding full names in the second column. Currently these are in the .xls format. I'd like to be able to compare file1 with file2 and extract... (2 Replies)
Discussion started by: raptrmastr
2 Replies
5. Programming
Hi All,
My main intension of is to convert the Hexstring stored in a char* into hex and then prefixing it with "0x" and suffix it with ','
This has to be done for all the hexstring char* is NULL.
Store the result prefixed with "0x" and suffixed with ',' in another char* and pass it to... (1 Reply)
Discussion started by: rvan
1 Replies
6. AIX
What is the hexdump utility on AIX box.
Also I want to insert hex 1C using vi editor how to do that.
Thanks.
:) (2 Replies)
Discussion started by: ekb
2 Replies
7. Programming
Hi,
Is there really a difference between these two, std::hex and ios::hex??
I stumbled upon reading a line, "std::ios::hex is a bitmask (8 on gcc) and works with setf(). std::hex is the operator". Is this true?
Thanks (0 Replies)
Discussion started by: royalibrahim
0 Replies
8. Shell Programming and Scripting
Input File:
c_id=india
---some data--
c_id=US
--some data---
c_id=UK
--some data--
c_id=india
--some data--
c_id=india
--some data--
c_id=Russia
--some data--
c_id=UK
--some data--
c_id=US
--some data--
c_id=Africa
--some data (5 Replies)
Discussion started by: karumudi7
5 Replies
9. Shell Programming and Scripting
Hi ,
i am looking for a perl script to grep for a string in all files inside a directory .
bash command .
grep -r 'word' /path/to/dir
Thanks,
Nvil (3 Replies)
Discussion started by: nevil
3 Replies
10. Shell Programming and Scripting
Input File:
GO:0009437,GO:0006355,GO:0006351 GO:0009437
GO:0006777,GO:0032324 GO:0035433,GO:0015992,GO:0071422
GO:0009082,GO:0009097,GO:0006566 GO:0009082,GO:0006351
GO:0000160,GO:0045893,GO:0006351 GO:0006071,GO:0045892,GO:0006351
GO:0009244 GO:0009244
GO:0046417,GO:0009094,GO:0006571... (12 Replies)
Discussion started by: perl_beginner
12 Replies
LEARN ABOUT DEBIAN
netmask
NETMASK(1) Debian Linux NETMASK(1)
NAME
netmask - a netmask generation and conversion program
SYNOPSIS
netmask [ options ] spec [ spec ... ]
DESCRIPTION
This program accepts and produces a variety of common network address and netmask formats. Not only can it convert address and netmask
notations, but it will optimize the masks to generate the smallest list of rules. This is very handy if you've ever configured a firewall
or router and some nasty network administrator before you decided that base 10 numbers were good places to start and end groups of
machines.
OPTIONS
-h, --help
Print a summary of the options
-v, --version
Print the version number
-d, --debug
Print status/progress information
-s, --standard
Output address/netmask pairs
-c, --cidr
Output CIDR format address lists
-i, --cisco
Output Cisco style address lists
-r, --range
Output ip address ranges
-x, --hex
Output address/netmask pairs in hex
-o, --octal
Output address/netmask pairs in octal
-b, --binary
Output address/netmask pairs in binary
-n, --nodns
Disable DNS lookups for addresses
DEFINITIONS
A spec is an address specification, it can look like:
address
One address.
address1:address2
All addresses from address1 to address2.
address1:+address2
All addresses from address1 to address1+address2.
address/mask
A group starting at address spanning mask.
An address is an internet network address, it can look like:
ftp.gnu.org
An internet hostname.
209.81.8.252
A standard dotted quad internet address notation.
100 A decimal number (100 in this case).
0100 An octal number preceded by "0" (64 in this case).
0x100 A hexadecimal number preceded by "0x" (256 in this case).
A mask is a network mask, it can look like:
255.255.224.0
A dotted quad netmask (netmask will complain if it is not a valid netmask).
0.0.31.255
A Cisco style inverse netmask (with the same checks).
8 The number of bits set to one from the left (CIDR notation).
010 The number of bits set to one from the left in octal.
0x10 The number of bits set to one from the left in hexadecimal.
AUTHOR
netmask was written by Robert Stone. Some algorithm design and optimization was provided by Tom Lear. This manual page was written by
Robert Stone.
BUGS
Let me know if you find any. This man page is a bit more simplistic than I'd like, but I've forgotten most of the groff I once knew.
SEE ALSO
ipchains(1), ipfwadm(8), netstat(8), route(8), routed(8), gated(8), tcpd(8)
Debian Project 15 May 1999 NETMASK(1)