Skip to content
#

ipv6

Here are 580 public repositories matching this topic...

lennylxx
lennylxx commented Dec 11, 2017

刚才试着用update_hosts.py更新了一次,发现有不少用于DNS污染的错误的IP没有被过滤出来。
比如:

IPv6查询结果 域名 IP实际所有者
31.13.64.33 www.google.com Facebook
208.101.60.87 encrypted.google.com SoftLayer
69.171.230.18 google.com.hk Facebook
64.13.192.76 accounts.google.com.hk Media Temple
31.13.68.22 clients1.google.com.hk Facebook
69.63.180.173 mobile.google.com.hk Facebook
208.1
openthread
adamhj
adamhj commented Jan 13, 2016

If you look at a cisco acl list, it is common to have an acl like:
rule 5 permit ip source 1.2.3.4 0.0.0.0
or in some cases:
rule 5 permit ip source 1.2.3.4 0

here both 0.0.0.0 and 0 are cisco acl bitmask, indicating a net mask of 32 bit length
but if I simply concatenate them with ip address, IPNetwork class will treat them as normal netmask and get the wrong result:

IPNetwork('1.2.3.4/0.0.

persuader
persuader commented Mar 24, 2016

the script coulnd get all the ip addresses of the server interfaces when running xen dom0.
ifconfig does not show aliases for the bridge interface xenbr0 so server blocks his own ip-s.

i changed the line

SERVER_IP_LIST=ifconfig | grep "inet " | awk '{print $2}' | sed "s/addr://g" | xargs | sed -e 's/ /|/g'

to
SERVER_IP_LIST=`( hostname -I ; echo 127.0.0.1 ) | cat | sed ':a;N;$!ba;s/\n/ /g'

etr
etr commented Jan 19, 2019

Is your feature request related to a problem? Please describe.
The code has a high number of nested blocks. This compromises both the readability of the code and the effectiveness of the dynamic analysis tools (as likely the compiler). This is the result of pushing for a single exit in methods (which is likely an academic heritage). Relaxing on that front would allow to more linear and readab

Improve this page

Add a description, image, and links to the ipv6 topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ipv6 topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.