sivasankariit / iproute2 Goto Github PK
View Code? Open in Web Editor NEWiproute2 with support for new Qdiscs
License: GNU General Public License v2.0
iproute2 with support for new Qdiscs
License: GNU General Public License v2.0
This repository has been forked from the kernel.org repository at: git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git Compiling on Debian with 3.6.6 kernel: sudo apt-get install libdb4o-cil-dev libdb-dev bison flex make README from original iproute2 repository follows: -------------------- This is a set of utilities for Linux networking. Information: http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 Download: http://www.kernel.org/pub/linux/utils/net/iproute2/ Repository: git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git How to compile this. -------------------- 1. libdbm arpd needs to have the db4 development libraries. For Debian users this is the package with a name like libdb4.x-dev. DBM_INCLUDE points to the directory with db_185.h which is the include file used by arpd to get to the old format Berkeley database routines. Often this is in the db-devel package. 2. make The makefile will automatically build a Config file which contains whether or not ATM is available, etc. 3. To make documentation, cd to doc/ directory , then look at start of Makefile and set correct values for PAGESIZE=a4 , ie: a4 , letter ... (string) PAGESPERPAGE=2 , ie: 1 , 2 ... (numeric) and make there. It assumes, that latex, dvips and psnup are in your path. 4. This package includes matching sanitized kernel headers because the build environment may not have up to date versions. See Makefile if you have special requirements and need to point at different kernel include files. Stephen Hemminger [email protected] Alexey Kuznetsov [email protected]
Hi! I would like to know if it is possible to add a new feature to ss.
I am trying to make a whois but the regex to ipv6 is very big ! So why not to add an option to ss so I could perform a ss -noPort and ss will return the normal data but not showing the ports.
How could I make this mod ? Any thoughts or help?
Hi,
When using ss -nplu ou ss -nplt, the display is badly calculated and put one socket information on two lines.
It is mostly because of the "p" flag.
If I take an example (below), the most largest line is 102 characters and my terminal on my 1080p screen is 212. So it should be able to display every socket line on one line only.
See the display on my terminal in attachement.
The longest line is 102 characters if I reduce every spaces to only one space (the minimum to make columns):
root@sylock-tour:~# echo "UNCONN 0 0 2a02:2788:1004:b15:71d3:a2e8:2c7:daaf:51413 :::* users:(("transmission-gt",pid=6542,fd=19))
" | sed 's/ +/ /g' | wc -c
102
Here is how it looks like:
UNCONN 0 0 2a02:2788:1004:b15:71d3:a2e8:2c7:daaf:51413 :::* users:((transmission-gt,pid=6542,fd=19))
If I do the same with a copy/paste for one entire line of my terminal:
root@sylock-tour:~# echo 'UNCONN 0 0 2a02:2788:1004:b15:71d3:a2e8:2c7:daaf:51413 :::* ' | wc -c
212
So, I demonstrated that the displaying algorithm of the command ss which should try to display each socket information on one line only for the best human readability fails to do it when using the "p" flag.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.