Tree @debian/2.2.8+dfsg-0.1 (Download .tar.gz)
- ..
- attrnew.pl
- attrsort.pl
- backref.pl
- dct2fr
- dictionary
- dictionary.3com
- dictionary.3gpp
- dictionary.3gpp2
- dictionary.acc
- dictionary.acme
- dictionary.aerohive
- dictionary.airespace
- dictionary.alcatel
- dictionary.alcatel-lucent.aaa
- dictionary.alcatel.esam
- dictionary.alcatel.sr
- dictionary.alteon
- dictionary.altiga
- dictionary.alvarion
- dictionary.apc
- dictionary.aptis
- dictionary.aruba
- dictionary.ascend
- dictionary.ascend.illegal
- dictionary.asn
- dictionary.audiocodes
- dictionary.avaya
- dictionary.azaire
- dictionary.bay
- dictionary.bintec
- dictionary.bluecoat
- dictionary.bristol
- dictionary.broadsoft
- dictionary.brocade
- dictionary.bskyb
- dictionary.bt
- dictionary.cablelabs
- dictionary.cabletron
- dictionary.camiant
- dictionary.chillispot
- dictionary.cisco
- dictionary.cisco.bbsm
- dictionary.cisco.vpn3000
- dictionary.cisco.vpn5000
- dictionary.citrix
- dictionary.clavister
- dictionary.colubris
- dictionary.columbia_university
- dictionary.compat
- dictionary.compatible
- dictionary.cosine
- dictionary.dante
- dictionary.dhcp
- dictionary.digium
- dictionary.dlink
- dictionary.dragonwave
- dictionary.efficientip
- dictionary.eltex
- dictionary.epygi
- dictionary.ericsson
- dictionary.ericsson.packet.core.networks
- dictionary.erx
- dictionary.extreme
- dictionary.f5
- dictionary.fdxtended
- dictionary.fortinet
- dictionary.foundry
- dictionary.freeradius
- dictionary.freeradius.internal
- dictionary.freeswitch
- dictionary.gandalf
- dictionary.garderos
- dictionary.gemtek
- dictionary.h3c
- dictionary.hp
- dictionary.huawei
- dictionary.iea
- dictionary.infonet
- dictionary.ipunplugged
- dictionary.issanni
- dictionary.itk
- dictionary.jradius
- dictionary.juniper
- dictionary.karlnet
- dictionary.kineto
- dictionary.lancom
- dictionary.livingston
- dictionary.localweb
- dictionary.lucent
- dictionary.manzara
- dictionary.merit
- dictionary.meru
- dictionary.microsoft
- dictionary.mikrotik
- dictionary.motorola
- dictionary.motorola.illegal
- dictionary.motorola.wimax
- dictionary.navini
- dictionary.netscreen
- dictionary.networkphysics
- dictionary.nexans
- dictionary.nokia
- dictionary.nokia.conflict
- dictionary.nomadix
- dictionary.nortel
- dictionary.ntua
- dictionary.openser
- dictionary.packeteer
- dictionary.paloalto
- dictionary.patton
- dictionary.propel
- dictionary.prosoft
- dictionary.proxim
- dictionary.purewave
- dictionary.quiconnect
- dictionary.quintum
- dictionary.redback
- dictionary.redcreek
- dictionary.rfc2865
- dictionary.rfc2866
- dictionary.rfc2867
- dictionary.rfc2868
- dictionary.rfc2869
- dictionary.rfc3162
- dictionary.rfc3576
- dictionary.rfc3580
- dictionary.rfc4072
- dictionary.rfc4372
- dictionary.rfc4603
- dictionary.rfc4675
- dictionary.rfc4679
- dictionary.rfc4818
- dictionary.rfc4849
- dictionary.rfc5090
- dictionary.rfc5176
- dictionary.rfc5447
- dictionary.rfc5580
- dictionary.rfc5607
- dictionary.rfc5904
- dictionary.rfc6519
- dictionary.rfc6572
- dictionary.rfc6677
- dictionary.rfc6911
- dictionary.rfc6930
- dictionary.rfc7055
- dictionary.rfc7268
- dictionary.riverbed
- dictionary.riverstone
- dictionary.roaringpenguin
- dictionary.ruckus
- dictionary.sg
- dictionary.shasta
- dictionary.shiva
- dictionary.siemens
- dictionary.slipstream
- dictionary.sofaware
- dictionary.sonicwall
- dictionary.springtide
- dictionary.starent
- dictionary.starent.vsa1
- dictionary.symbol
- dictionary.t_systems_nova
- dictionary.telebit
- dictionary.telkom
- dictionary.terena
- dictionary.trapeze
- dictionary.tropos
- dictionary.ukerna
- dictionary.unix
- dictionary.usr
- dictionary.usr.illegal
- dictionary.utstarcom
- dictionary.valemount
- dictionary.versanet
- dictionary.vqp
- dictionary.walabi
- dictionary.waverider
- dictionary.wichorus
- dictionary.wimax
- dictionary.wimax.wichorus
- dictionary.wispr
- dictionary.xedia
- dictionary.xylan
- dictionary.zeus
- dictionary.zte
- dictionary.zyxel
- format.pl
- Makefile
backref.pl @debian/2.2.8+dfsg-0.1 — raw · history · blame
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 | #!/usr/bin/env perl # # Cross-reference RFC attributes. # # $Id$ # $begin_vendor = 0; $blank = 0; while (@ARGV) { $filename = shift; open FILE, "<$filename" or die "Failed to open $filename: $!\n"; @output = (); while (<FILE>) { # # Clear out trailing whitespace # s/[ \t]+$//; # # And CR's # s/\r//g; # # Suppress multiple blank lines # if (/^\s+$/) { next if ($blank == 1); $blank = 1; next; } $blank = 0; # # Remember the vendor # if (/^VENDOR\s+([\w-]+)\s+(\w+)(.*)/) { $name=$1; $len = length $name; if ($len < 32) { $lenx = 32 - $len; $lenx += 7; # round up $lenx /= 8; $lenx = int $lenx; $tabs = "\t" x $lenx; } else { $tabs = " "; } $vendor = $name; next; } # # Remember if we did begin-vendor. # if (/^BEGIN-VENDOR\s+([\w-]+)/) { $begin_vendor = 1; if (!defined $vendor) { $vendor = $1; } elsif ($vendor ne $1) { # do something smart } next; } # # Get attribute. # if (/^ATTRIBUTE\s+([\w-]+)\s+(\w+)\s+(\w+)(.*)/) { $name=$1; $len = length $name; if ($len < 40) { $lenx = 40 - $len; $lenx += 7; # round up $lenx /= 8; $lenx = int $lenx; $tabs = "\t" x $lenx; if ($tabs eq "") { $tabs = " "; } } else { $tabs = " "; } $value = $2; $type = $3; $stuff = $4; if ($begin_vendor == 0) { # # FIXME: Catch and print conflicting attributes. # $file{$value} = $filename; $file{$value} =~ s/dictionary\.//; $name{$value} = $name . $tabs; } # # See if it's old format, with the vendor at the end of # the line. If so, make it the new format. # if ($stuff =~ /$vendor/) { if ($begin_vendor == 0) { $begin_vendor = 1; } $stuff =~ s/$vendor//; $stuff =~ s/\s+$//; } next; } # # Values. # if (/^VALUE\s+([\w-]+)\s+([\w-\/,.]+)\s+(\w+)(.*)/) { $attr=$1; $len = length $attr; if ($len < 32) { $lenx = 32 - $len; $lenx += 7; # round up $lenx /= 8; $lenx = int $lenx; $tabsa = "\t" x $lenx; if ($tabsa eq "") { $tabsa = " "; $len += 1; } else { $len -= $len % 8; $len += 8 * length $tabsa; } } else { $tabsa = " "; $len += 1; } # # For the code below, we assume that the attribute lengths # if ($len < 32) { $lena = 0; } else { $lena = $len - 32; } $name = $2; $len = length $name; if ($len < 24) { $lenx = 24 - $lena - $len; $lenx += 7; # round up $lenx /= 8; $lenx = int $lenx; $tabsn = "\t" x $lenx; if ($tabsn eq "") { $tabsn = " "; } } else { $tabsn = " "; } next; } # # Remember if we did this. # if (/^END-VENDOR/) { $begin_vendor = 0; } # # Everything else gets dumped out as-is. # } close FILE; } # # Print out the attributes. # foreach $attr (sort {$a <=> $b} keys %file) { print $name{$attr}, $attr, "\t", $file{$attr}, "\n"; } |