Skip to content

Commit

Permalink
Merge pull request #4956 from stolfi/master
Browse files Browse the repository at this point in the history
Add full mapping of protocol names to protocol numbers
  • Loading branch information
bflad authored Jun 25, 2018
2 parents 87f9726 + e4feda3 commit 5b5a794
Showing 1 changed file with 145 additions and 7 deletions.
152 changes: 145 additions & 7 deletions aws/network_acl_entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,151 @@ func protocolIntegers() map[string]int {
var protocolIntegers = make(map[string]int)
protocolIntegers = map[string]int{
// defined at https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
"ah": 51,
"esp": 50,
"udp": 17,
"tcp": 6,
"icmp": 1,
"all": -1,
"vrrp": 112,
"all": -1,
"hopopt": 0,
"icmp": 1,
"igmp": 2,
"ggp": 3,
"ipv4": 4,
"st": 5,
"tcp": 6,
"cbt": 7,
"egp": 8,
"igp": 9,
"bbn-rcc-mon": 10,
"nvp-ii": 11,
"pup": 12,
"argus": 13,
"emcon": 14,
"xnet": 15,
"chaos": 16,
"udp": 17,
"mux": 18,
"dcn-meas": 19,
"hmp": 20,
"prm": 21,
"xns-idp": 22,
"trunk-1": 23,
"trunk-2": 24,
"leaf-1": 25,
"leaf-2": 26,
"rdp": 27,
"irtp": 28,
"iso-tp4": 29,
"netblt": 30,
"mfe-nsp": 31,
"merit-inp": 32,
"dccp": 33,
"3pc": 34,
"idpr": 35,
"xtp": 36,
"ddp": 37,
"idpr-cmtp": 38,
"tp++": 39,
"il": 40,
"ipv6": 41,
"sdrp": 42,
"ipv6-route": 43,
"ipv6-frag": 44,
"idrp": 45,
"rsvp": 46,
"gre": 47,
"dsr": 48,
"bna": 49,
"esp": 50,
"ah": 51,
"i-nlsp": 52,
"swipe": 53,
"narp": 54,
"mobile": 55,
"tlsp": 56,
"ipv6-icmp": 58,
"ipv6-nonxt": 59,
"ipv6-opts": 60,
"61": 61,
"cftp": 62,
"63": 63,
"sat-expak": 64,
"kryptolan": 65,
"rvd": 66,
"ippc": 67,
"68": 68,
"sat-mon": 69,
"visa": 70,
"ipcv": 71,
"cpnx": 72,
"cphb": 73,
"wsn": 74,
"pvp": 75,
"br-sat-mon": 76,
"sun-nd": 77,
"wb-mon": 78,
"wb-expak": 79,
"iso-ip": 80,
"vmtp": 81,
"secure-vmtp": 82,
"vines": 83,
"ttp": 84,
"nsfnet-igp": 85,
"dgp": 86,
"tcf": 87,
"eigrp": 88,
"ospfigp": 89,
"sprite-rpc": 90,
"larp": 91,
"mtp": 92,
"ax.25": 93,
"ipip": 94,
"micp": 95,
"scc-sp": 96,
"etherip": 97,
"encap": 98,
"99": 99,
"gmtp": 100,
"ifmp": 101,
"pnni": 102,
"pim": 103,
"aris": 104,
"scps": 105,
"qnx": 106,
"a/n": 107,
"ipcomp": 108,
"snp": 109,
"compaq-peer": 110,
"ipx-in-ip": 111,
"vrrp": 112,
"pgm": 113,
"114": 114,
"l2tp": 115,
"dd": 116,
"iatp": 117,
"stp": 118,
"srp": 119,
"uti": 120,
"smp": 121,
"sm": 122,
"ptp": 123,
"isis-over-ipv4": 124,
"fire": 125,
"crtp": 126,
"crudp": 127,
"sscopmce": 128,
"iplt": 129,
"sps": 130,
"pipe": 131,
"sctp": 132,
"fc": 133,
"rsvp-e2e-ignore": 134,
"mobility-header": 135,
"udplite": 136,
"mpls-in-ip": 137,
"manet": 138,
"hip": 139,
"shim6": 140,
"wesp": 141,
"rohc": 142,
"253": 253,
"254": 254,
}
return protocolIntegers
}
Expand Down

0 comments on commit 5b5a794

Please sign in to comment.