⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asn2c

📁 netflow,抓包
💻
字号:
#!/usr/local/bin/perl## converts internic netinfo/asn.txt to C code#print '#include "bytes.h"#include "sym.h"#include "fmt.h"struct sym_table sym_asn[] = { ';while (<>) {  chop;  next if (!/^ *\d+/);  $_ =~ s/^ +//g;  @f = split;  next if ($f[0] =~ /^32768|64512/);  if ($f[1] eq '-') {    for ($asn = $f[0]; $asn <= $f[2]; ++$asn) {      print "{\"$f[3]\",  $asn},\n";    }  } else {    print "{\"$f[1]\",  $f[0]},\n";  }}print '  {(char*)0L,  0},};'

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -