diff --git a/backend/go.mod b/backend/go.mod index e7fc19dbe..95d4e7868 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -3,7 +3,7 @@ module github.com/cilium/hubble-ui/backend go 1.23.5 require ( - github.com/cilium/cilium v1.16.6 + github.com/cilium/cilium v1.17.0 github.com/google/gops v0.3.28 github.com/grpc-ecosystem/grpc-gateway v1.16.0 github.com/julienschmidt/httprouter v1.3.0 @@ -24,9 +24,11 @@ require ( github.com/beorn7/perks v1.0.1 // indirect github.com/blang/semver/v4 v4.0.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect - github.com/cilium/ebpf v0.17.2 // indirect - github.com/cilium/hive v0.0.0-20250123101719-ef9b68363b0c // indirect - github.com/cilium/proxy v0.0.0-20250130165955-f0d28a4d0751 // indirect + github.com/cilium/ebpf v0.17.1 // indirect + github.com/cilium/hive v0.0.0-20250206110837-3a9e5694e24a // indirect + github.com/cilium/proxy v0.0.0-20250211021819-e85e926b0fa4 // indirect + github.com/cilium/statedb v0.3.5 // indirect + github.com/cilium/stream v0.0.0-20241203114243-53c3e5d79744 // indirect github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/emicklei/go-restful/v3 v3.12.1 // indirect github.com/fsnotify/fsnotify v1.8.0 // indirect @@ -50,18 +52,17 @@ require ( github.com/google/gnostic-models v0.6.9 // indirect github.com/google/go-cmp v0.6.0 // indirect github.com/google/gofuzz v1.2.0 // indirect - github.com/google/gopacket v1.1.19 // indirect github.com/google/uuid v1.6.0 // indirect + github.com/gopacket/gopacket v1.3.1 // indirect github.com/hashicorp/hcl v1.0.1-vault-7 // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/klauspost/compress v1.17.11 // indirect - github.com/kr/pretty v0.3.1 // indirect - github.com/kr/text v0.2.0 // indirect github.com/mackerelio/go-osstat v0.2.5 // indirect github.com/magiconair/properties v1.8.9 // indirect github.com/mailru/easyjson v0.9.0 // indirect + github.com/mitchellh/go-wordwrap v1.0.1 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect @@ -70,12 +71,10 @@ require ( github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b // indirect github.com/pelletier/go-toml/v2 v2.2.3 // indirect github.com/petermattis/goid v0.0.0-20250121172306-05bcfb9a85dc // indirect - github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/prometheus/client_golang v1.20.5 // indirect github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.62.0 // indirect github.com/prometheus/procfs v0.15.1 // indirect - github.com/rogpeppe/go-internal v1.13.1 // indirect github.com/sagikazarmark/locafero v0.7.0 // indirect github.com/sagikazarmark/slog-shim v0.1.0 // indirect github.com/sasha-s/go-deadlock v0.3.5 // indirect @@ -98,17 +97,17 @@ require ( go.uber.org/dig v1.18.0 // indirect go.uber.org/multierr v1.11.0 // indirect go4.org/netipx v0.0.0-20231129151722-fdeea329fbba // indirect - golang.org/x/exp v0.0.0-20250128182459-e0ece0dbea4c // indirect - golang.org/x/net v0.34.0 // indirect - golang.org/x/oauth2 v0.25.0 // indirect - golang.org/x/sync v0.10.0 // indirect - golang.org/x/term v0.28.0 // indirect - golang.org/x/text v0.21.0 // indirect - golang.org/x/time v0.9.0 // indirect - golang.org/x/tools v0.29.0 // indirect - google.golang.org/genproto v0.0.0-20250127172529-29210b9bc287 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20250127172529-29210b9bc287 // indirect - google.golang.org/genproto/googleapis/rpc v0.0.0-20250127172529-29210b9bc287 // indirect + golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac // indirect + golang.org/x/net v0.35.0 // indirect + golang.org/x/oauth2 v0.26.0 // indirect + golang.org/x/sync v0.11.0 // indirect + golang.org/x/term v0.29.0 // indirect + golang.org/x/text v0.22.0 // indirect + golang.org/x/time v0.10.0 // indirect + golang.org/x/tools v0.30.0 // indirect + google.golang.org/genproto v0.0.0-20250207221924-e9438ea467c6 // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20250207221924-e9438ea467c6 // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20250207221924-e9438ea467c6 // indirect gopkg.in/evanphx/json-patch.v4 v4.12.0 // indirect gopkg.in/inf.v0 v0.9.1 // indirect gopkg.in/ini.v1 v1.67.0 // indirect diff --git a/backend/go.sum b/backend/go.sum index 5a1021619..49aca49e7 100644 --- a/backend/go.sum +++ b/backend/go.sum @@ -2,8 +2,8 @@ cel.dev/expr v0.19.2 h1:V354PbqIXr9IQdwy4SYA4xa0HXaWq1BUPAGzugBY5V4= cel.dev/expr v0.19.2/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw= cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= -github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24 h1:bvDV9vkmnHYOMsOr4WLk+Vo07yKIzd94sVoIqshQ4bU= -github.com/AdaLogics/go-fuzz-headers v0.0.0-20230811130428-ced1acdcaa24/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8= +github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6 h1:He8afgbRMd7mFxO99hRNu+6tazq8nFF9lIwo9JFroBk= +github.com/AdaLogics/go-fuzz-headers v0.0.0-20240806141605-e8a1dd7889d6/go.mod h1:8o94RPi1/7XTJvwPpRSzSUedZrtlirdB3r9Z20bi2f8= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ= @@ -19,20 +19,23 @@ github.com/census-instrumentation/opencensus-proto v0.4.1 h1:iKLQ0xPNFxR/2hzXZMr github.com/census-instrumentation/opencensus-proto v0.4.1/go.mod h1:4T9NM4+4Vw91VeyqjLS6ao50K5bOcLKN6Q42XnYaRYw= github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/cilium/cilium v1.16.6 h1:KRQn5knO48ERxB6SusQo02nYmE0NO0qiLlvqhwBTXbI= -github.com/cilium/cilium v1.16.6/go.mod h1:NnDWQiYmPef24+pX2U/V85uL8eUTJSFUUjMEy41lGPA= -github.com/cilium/ebpf v0.17.2 h1:IQTaTVu0vKA8WTemFuBnxW9YbAwMkJVKHsNHW4lHv/g= -github.com/cilium/ebpf v0.17.2/go.mod h1:9X5VAsIOck/nCAp0+nCSVzub1Q7x+zKXXItTMYfNE+E= -github.com/cilium/hive v0.0.0-20250123101719-ef9b68363b0c h1:T+gKZHFuqphH5TjftxvU3L/mUpOlJi6K8CjTnxhKXCs= -github.com/cilium/hive v0.0.0-20250123101719-ef9b68363b0c/go.mod h1:pI2GJ1n3SLKIQVFrKF7W6A6gb6BQkZ+3Hp4PAEo5SuI= -github.com/cilium/proxy v0.0.0-20250130165955-f0d28a4d0751 h1:5m6zoFZxKylxoHj2nHWEJ41k/IiwZ2K8jGYCRhp03y4= -github.com/cilium/proxy v0.0.0-20250130165955-f0d28a4d0751/go.mod h1:aDrTiXeLbdU6A23UiSe71zTDcbEr0CljLFiR0ykxiNs= +github.com/cilium/cilium v1.17.0 h1:WeR71cqrGN0nvn0QEzerGYHiKAYhs77QaXeOUU7UQUI= +github.com/cilium/cilium v1.17.0/go.mod h1:RPlqqedvumcC6VKrDI0fsJ+O1NWWFXQo1Fx3BhtnjFQ= +github.com/cilium/ebpf v0.17.1 h1:G8mzU81R2JA1nE5/8SRubzqvBMmAmri2VL8BIZPWvV0= +github.com/cilium/ebpf v0.17.1/go.mod h1:vay2FaYSmIlv3r8dNACd4mW/OCaZLJKJOo+IHBvCIO8= +github.com/cilium/hive v0.0.0-20250206110837-3a9e5694e24a h1:DwaztYsKPNCHMCsfaSp8+ul29m2TxyV69TLxcIyBHAA= +github.com/cilium/hive v0.0.0-20250206110837-3a9e5694e24a/go.mod h1:pI2GJ1n3SLKIQVFrKF7W6A6gb6BQkZ+3Hp4PAEo5SuI= +github.com/cilium/proxy v0.0.0-20250211021819-e85e926b0fa4 h1:uyqYfVR95wP8EtdUZcUqylRfMT7NmiI4WyQtFOdUl6o= +github.com/cilium/proxy v0.0.0-20250211021819-e85e926b0fa4/go.mod h1:WcTUEfsCIVY9uvjRLUvl0G+G7RiK5BfOVdg/LknXMpk= +github.com/cilium/statedb v0.3.5 h1:/lN7noYjC+JP6+fII7dhUNRS2FuLrlE0CtNOtuBtI9c= +github.com/cilium/statedb v0.3.5/go.mod h1:n2lNVxi8vz5Up1Y1rRD++aQP2izQA932fUwTkedKSV0= +github.com/cilium/stream v0.0.0-20241203114243-53c3e5d79744 h1:f+CgYUy2YyZ2EX31QSqf3vwFiJJQSAMIQLn4d3QQYno= +github.com/cilium/stream v0.0.0-20241203114243-53c3e5d79744/go.mod h1:/e83AwqvNKpyg4n3C41qmnmj1x2G9DwzI+jb7GkF4lI= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cncf/xds/go v0.0.0-20250121191232-2f005788dc42 h1:Om6kYQYDUk5wWbT0t0q6pvyM49i9XZAv9dDrkDA7gjk= github.com/cncf/xds/go v0.0.0-20250121191232-2f005788dc42/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= -github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= @@ -104,8 +107,6 @@ github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeN github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= -github.com/google/gopacket v1.1.19 h1:ves8RnFZPGiFnTS0uPQStjwru6uO6h+nlr9j6fL7kF8= -github.com/google/gopacket v1.1.19/go.mod h1:iJ8V8n6KS+z2U1A8pUwu8bW5SyEMkXJB8Yo/Vo+TKTo= github.com/google/gops v0.3.28 h1:2Xr57tqKAmQYRAfG12E+yLcoa2Y42UJo2lOrUFL9ark= github.com/google/gops v0.3.28/go.mod h1:6f6+Nl8LcHrzJwi8+p0ii+vmBFSlB4f8cOOkTJ7sk4c= github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db h1:097atOisP2aRj7vFgYQBbFN4U4JNXUNYpxael3UzMyo= @@ -113,6 +114,8 @@ github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db/go.mod h1:vavhavw2zAx github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gopacket/gopacket v1.3.1 h1:ZppWyLrOJNZPe5XkdjLbtuTkfQoxQ0xyMJzQCqtqaPU= +github.com/gopacket/gopacket v1.3.1/go.mod h1:3I13qcqSpB2R9fFQg866OOgzylYkZxLTmkvcXhvf6qg= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= github.com/hashicorp/hcl v1.0.1-vault-7 h1:ag5OxFVy3QYTFTJODRzTKVZ6xvdfLLCA1cy/Y6xGI0I= @@ -139,6 +142,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc= github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw= +github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de h1:9TO3cAIGXtEhnIaL+V+BEER86oLrvS+kWobKpbJuye0= +github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de/go.mod h1:zAbeS9B/r2mtpb6U+EI2rYA5OAXxsYw6wTamcNW+zcE= github.com/mackerelio/go-osstat v0.2.5 h1:+MqTbZUhoIt4m8qzkVoXUJg1EuifwlAJSk4Yl2GXh+o= github.com/mackerelio/go-osstat v0.2.5/go.mod h1:atxwWF+POUZcdtR1wnsUcQxTytoHG4uhl2AKKzrOajY= github.com/magiconair/properties v1.8.9 h1:nWcCbLq1N2v/cpNsy5WvQ37Fb+YElfq20WJ/a8RkpQM= @@ -149,6 +154,8 @@ github.com/mdlayher/netlink v1.7.2 h1:/UtM3ofJap7Vl4QWCPDGXY8d3GIY2UGSDbK+QWmY8/ github.com/mdlayher/netlink v1.7.2/go.mod h1:xraEF7uJbxLhc5fpHL4cPe221LI2bdttWlU+ZGLfQSw= github.com/mdlayher/socket v0.4.1 h1:eM9y2/jlbs1M615oshPQOHZzj6R6wMT7bX5NPiQvn2U= github.com/mdlayher/socket v0.4.1/go.mod h1:cAqeGjoufqdxWkD7DkpyS+wcefOtmu5OQ8KuoJGIReA= +github.com/mitchellh/go-wordwrap v1.0.1 h1:TLuKupo69TCn6TQSyGxwI1EblZZEsQ0vMlAFQflz0v0= +github.com/mitchellh/go-wordwrap v1.0.1/go.mod h1:R62XHJLzvMFRBbcrT7m7WgmE1eOyTSsCt+hzestvNj0= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -172,7 +179,6 @@ github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xl github.com/petermattis/goid v0.0.0-20240813172612-4fcff4a6cae7/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= github.com/petermattis/goid v0.0.0-20250121172306-05bcfb9a85dc h1:Xz/LkK9AJRY5QTkA1uE1faB8yeqRFjeKgwDtI13ogcY= github.com/petermattis/goid v0.0.0-20250121172306-05bcfb9a85dc/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= -github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -188,7 +194,6 @@ github.com/prometheus/common v0.62.0/go.mod h1:vyBcEuLSvWos9B1+CyL7JZ2up+uFzXhkq github.com/prometheus/procfs v0.15.1 h1:YagwOFzUgYfKKHX6Dr+sHT7km/hxC76UB0learggepc= github.com/prometheus/procfs v0.15.1/go.mod h1:fB45yRUv8NstnjriLhBQLuOUt+WW4BsoGhij/e3PBqk= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= -github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= @@ -252,6 +257,8 @@ go.opentelemetry.io/otel/trace v1.34.0 h1:+ouXS2V8Rd4hp4580a8q23bg0azF2nI8cqLYnC go.opentelemetry.io/otel/trace v1.34.0/go.mod h1:Svm7lSjQD7kG7KJ/MUHPVXSDGz2OX4h0M2jHBhmSfRE= go.uber.org/dig v1.18.0 h1:imUL1UiY0Mg4bqbFfsRQO5G4CGRBec/ZujWTvSVp3pw= go.uber.org/dig v1.18.0/go.mod h1:Us0rSJiThwCv2GteUN0Q7OKvU7n5J4dxZ9JKUXozFdE= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go4.org/netipx v0.0.0-20231129151722-fdeea329fbba h1:0b9z3AuHCjxk0x/opv64kcgZLBseWJUpBw5I82+2U4M= @@ -260,13 +267,11 @@ golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACk golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= -golang.org/x/exp v0.0.0-20250128182459-e0ece0dbea4c h1:KL/ZBHXgKGVmuZBZ01Lt57yE5ws8ZPSkkihmEyq7FXc= -golang.org/x/exp v0.0.0-20250128182459-e0ece0dbea4c/go.mod h1:tujkw807nyEEAamNbDrEGzRav+ilXA7PCRAd6xsmwiU= +golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac h1:l5+whBCLH3iH2ZNHYLbAe58bo7yrN4mVcnkHDYz5vvs= +golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac/go.mod h1:hH+7mtFmImwwcMvScyxUhjuVHR3HGaDPMn9rMSUUbxo= golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= -golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= -golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -279,20 +284,20 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0= -golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k= +golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8= +golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= -golang.org/x/oauth2 v0.25.0 h1:CY4y7XT9v0cRI9oupztF8AgiIu99L/ksR/Xp/6jrZ70= -golang.org/x/oauth2 v0.25.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= +golang.org/x/oauth2 v0.26.0 h1:afQXWNNaeC4nvZ0Ed9XvCCzXM6UHJG7iCg0W4fPqSBE= +golang.org/x/oauth2 v0.26.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.10.0 h1:3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ= -golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.11.0 h1:GGz8+XQP4FvTTrjZPzNKTMFtSXH80RAzG+5ghFPgK9w= +golang.org/x/sync v0.11.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -303,25 +308,24 @@ golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc= golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg= -golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek= +golang.org/x/term v0.29.0 h1:L6pJp37ocefwRRtYPKSWOWzOtWSxVajvz2ldH/xi3iU= +golang.org/x/term v0.29.0/go.mod h1:6bl4lRlvVuDgSf3179VpIxBF0o10JUpXWOnI7nErv7s= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= -golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= -golang.org/x/time v0.9.0 h1:EsRrnYcQiGH+5FfbgvV4AP7qEZstoyrHB0DzarOQ4ZY= -golang.org/x/time v0.9.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM= +golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY= +golang.org/x/time v0.10.0 h1:3usCWA8tQn0L8+hFJQNgzpWbd89begxN66o1Ojdn5L4= +golang.org/x/time v0.10.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.29.0 h1:Xx0h3TtM9rzQpQuR4dKLrdglAmCEN5Oi+P74JdhdzXE= -golang.org/x/tools v0.29.0/go.mod h1:KMQVMRsVxU6nHCFXrBPhDB8XncLNLM0lIy/F14RP588= +golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY= +golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -331,12 +335,12 @@ google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7 google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= -google.golang.org/genproto v0.0.0-20250127172529-29210b9bc287 h1:WoUI1G0DQ648FKvSl756SKxHQR/bI+y4HyyIQfxMWI8= -google.golang.org/genproto v0.0.0-20250127172529-29210b9bc287/go.mod h1:wkQ2Aj/xvshAUDtO/JHvu9y+AaN9cqs28QuSVSHtZSY= -google.golang.org/genproto/googleapis/api v0.0.0-20250127172529-29210b9bc287 h1:A2ni10G3UlplFrWdCDJTl7D7mJ7GSRm37S+PDimaKRw= -google.golang.org/genproto/googleapis/api v0.0.0-20250127172529-29210b9bc287/go.mod h1:iYONQfRdizDB8JJBybql13nArx91jcUk7zCXEsOofM4= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250127172529-29210b9bc287 h1:J1H9f+LEdWAfHcez/4cvaVBox7cOYT+IU6rgqj5x++8= -google.golang.org/genproto/googleapis/rpc v0.0.0-20250127172529-29210b9bc287/go.mod h1:8BS3B93F/U1juMFq9+EDk+qOT5CO1R9IzXxG3PTqiRk= +google.golang.org/genproto v0.0.0-20250207221924-e9438ea467c6 h1:SSk8oMbcHFbMwftDvX4PHbkqss3RkEZUF+k1h9d/sns= +google.golang.org/genproto v0.0.0-20250207221924-e9438ea467c6/go.mod h1:wkQ2Aj/xvshAUDtO/JHvu9y+AaN9cqs28QuSVSHtZSY= +google.golang.org/genproto/googleapis/api v0.0.0-20250207221924-e9438ea467c6 h1:L9JNMl/plZH9wmzQUHleO/ZZDSN+9Gh41wPczNy+5Fk= +google.golang.org/genproto/googleapis/api v0.0.0-20250207221924-e9438ea467c6/go.mod h1:iYONQfRdizDB8JJBybql13nArx91jcUk7zCXEsOofM4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250207221924-e9438ea467c6 h1:2duwAxN2+k0xLNpjnHTXoMUgnv6VPSp5fiqTuwSxjmI= +google.golang.org/genproto/googleapis/rpc v0.0.0-20250207221924-e9438ea467c6/go.mod h1:8BS3B93F/U1juMFq9+EDk+qOT5CO1R9IzXxG3PTqiRk= google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= diff --git a/backend/proto/flow/flow.proto b/backend/proto/flow/flow.proto index 48940f378..910174c46 100644 --- a/backend/proto/flow/flow.proto +++ b/backend/proto/flow/flow.proto @@ -81,6 +81,9 @@ message Flow { TraceObservationPoint trace_observation_point = 24; // Cilium datapath trace reason info. TraceReason trace_reason = 36; + // Cilium datapath filename and line number. Currently only applicable when + // Verdict = DROPPED. + FileInfo file = 38; // only applicable to Verdict = DROPPED. DropReason drop_reason_desc = 25; @@ -204,6 +207,11 @@ enum TraceReason { ENCRYPT_OVERLAY = 8; } +message FileInfo { + string name = 1; + uint32 line = 2; +} + message Layer4 { oneof protocol { TCP TCP = 1; @@ -275,8 +283,9 @@ message TCP { message IP { string source = 1; - // source_xlated is the post translation source IP when the flow was SNATed - // (and in that case source is the the original source IP). + // source_xlated is the post-translation source IP when the flow was + // SNATed. When "source_xlated" is set, the "source" field is populated + // with the pre-translation source IP address. string source_xlated = 5; string destination = 2; IPVersion ipVersion = 3; @@ -434,8 +443,8 @@ enum DropReason { // A BPF program wants to tail call into bpf_host, but the host datapath // hasn't been loaded yet. DROP_HOST_NOT_READY = 202; - // A BPF program wants to tail call some endpoint's policy program in the - // POLICY_CALL_MAP, but the program is not available. + // A BPF program wants to tail call some endpoint's policy program in + // cilium_call_policy, but the program is not available. DROP_EP_NOT_READY = 203; // An Egress Gateway node matched a packet against an Egress Gateway policy // that didn't select a valid Egress IP. @@ -467,6 +476,7 @@ message Policy { string namespace = 2; repeated string labels = 3; uint64 revision = 4; + string kind = 5; } // EventTypeFilter is a filter describing a particular event type. @@ -525,6 +535,8 @@ message FlowFilter { repeated string source_service = 16; // source_workload filters by a list of source workload. repeated Workload source_workload = 26; + // source_cluster_name filters by a list of source cluster names. + repeated string source_cluster_name = 37; // destination_ip filters by a list of destination ips. Each of the // destination ips can be specified as an exact match (e.g. "1.1.1.1") or @@ -540,6 +552,8 @@ message FlowFilter { repeated string destination_service = 17; // destination_workload filters by a list of destination workload. repeated Workload destination_workload = 27; + // destination_cluster_name filters by a list of destination cluster names. + repeated string destination_cluster_name = 38; // traffic_direction filters flow by direction of the connection, e.g. // ingress or egress. diff --git a/backend/proto/flow/flow_pb.ts b/backend/proto/flow/flow_pb.ts index d8df8afce..dcd99954a 100644 --- a/backend/proto/flow/flow_pb.ts +++ b/backend/proto/flow/flow_pb.ts @@ -166,6 +166,13 @@ export interface Flow { * @generated from protobuf field: flow.TraceReason trace_reason = 36; */ traceReason: TraceReason; + /** + * Cilium datapath filename and line number. Currently only applicable when + * Verdict = DROPPED. + * + * @generated from protobuf field: flow.FileInfo file = 38; + */ + file?: FileInfo; /** * only applicable to Verdict = DROPPED. * @@ -268,6 +275,19 @@ export interface Flow { */ ingressDeniedBy: Policy[]; } +/** + * @generated from protobuf message flow.FileInfo + */ +export interface FileInfo { + /** + * @generated from protobuf field: string name = 1; + */ + name: string; + /** + * @generated from protobuf field: uint32 line = 2; + */ + line: number; +} /** * @generated from protobuf message flow.Layer4 */ @@ -455,8 +475,9 @@ export interface IP { */ source: string; /** - * source_xlated is the post translation source IP when the flow was SNATed - * (and in that case source is the the original source IP). + * source_xlated is the post-translation source IP when the flow was + * SNATed. When "source_xlated" is set, the "source" field is populated + * with the pre-translation source IP address. * * @generated from protobuf field: string source_xlated = 5; */ @@ -603,6 +624,10 @@ export interface Policy { * @generated from protobuf field: uint64 revision = 4; */ revision: number; + /** + * @generated from protobuf field: string kind = 5; + */ + kind: string; } /** * EventTypeFilter is a filter describing a particular event type. @@ -720,6 +745,12 @@ export interface FlowFilter { * @generated from protobuf field: repeated flow.Workload source_workload = 26; */ sourceWorkload: Workload[]; + /** + * source_cluster_name filters by a list of source cluster names. + * + * @generated from protobuf field: repeated string source_cluster_name = 37; + */ + sourceClusterName: string[]; /** * destination_ip filters by a list of destination ips. Each of the * destination ips can be specified as an exact match (e.g. "1.1.1.1") or @@ -758,6 +789,12 @@ export interface FlowFilter { * @generated from protobuf field: repeated flow.Workload destination_workload = 27; */ destinationWorkload: Workload[]; + /** + * destination_cluster_name filters by a list of destination cluster names. + * + * @generated from protobuf field: repeated string destination_cluster_name = 38; + */ + destinationClusterName: string[]; /** * traffic_direction filters flow by direction of the connection, e.g. * ingress or egress. @@ -1987,8 +2024,8 @@ export enum DropReason { */ DROP_HOST_NOT_READY = 202, /** - * A BPF program wants to tail call some endpoint's policy program in the - * POLICY_CALL_MAP, but the program is not available. + * A BPF program wants to tail call some endpoint's policy program in + * cilium_call_policy, but the program is not available. * * @generated from protobuf enum value: DROP_EP_NOT_READY = 203; */ @@ -2510,6 +2547,7 @@ class Flow$Type extends MessageType { { no: 23, name: "policy_match_type", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }, { no: 24, name: "trace_observation_point", kind: "enum", T: () => ["flow.TraceObservationPoint", TraceObservationPoint] }, { no: 36, name: "trace_reason", kind: "enum", T: () => ["flow.TraceReason", TraceReason] }, + { no: 38, name: "file", kind: "message", T: () => FileInfo }, { no: 25, name: "drop_reason_desc", kind: "enum", T: () => ["flow.DropReason", DropReason] }, { no: 26, name: "is_reply", kind: "message", T: () => BoolValue }, { no: 27, name: "debug_capture_point", kind: "enum", T: () => ["flow.DebugCapturePoint", DebugCapturePoint] }, @@ -2635,6 +2673,9 @@ class Flow$Type extends MessageType { case /* flow.TraceReason trace_reason */ 36: message.traceReason = reader.int32(); break; + case /* flow.FileInfo file */ 38: + message.file = FileInfo.internalBinaryRead(reader, reader.uint32(), options, message.file); + break; case /* flow.DropReason drop_reason_desc */ 25: message.dropReasonDesc = reader.int32(); break; @@ -2764,6 +2805,9 @@ class Flow$Type extends MessageType { /* flow.TraceReason trace_reason = 36; */ if (message.traceReason !== 0) writer.tag(36, WireType.Varint).int32(message.traceReason); + /* flow.FileInfo file = 38; */ + if (message.file) + FileInfo.internalBinaryWrite(message.file, writer.tag(38, WireType.LengthDelimited).fork(), options).join(); /* flow.DropReason drop_reason_desc = 25; */ if (message.dropReasonDesc !== 0) writer.tag(25, WireType.Varint).int32(message.dropReasonDesc); @@ -2820,6 +2864,61 @@ class Flow$Type extends MessageType { */ export const Flow = new Flow$Type(); // @generated message type with reflection information, may provide speed optimized methods +class FileInfo$Type extends MessageType { + constructor() { + super("flow.FileInfo", [ + { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, + { no: 2, name: "line", kind: "scalar", T: 13 /*ScalarType.UINT32*/ } + ]); + } + create(value?: PartialMessage): FileInfo { + const message = globalThis.Object.create((this.messagePrototype!)); + message.name = ""; + message.line = 0; + if (value !== undefined) + reflectionMergePartial(this, message, value); + return message; + } + internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileInfo): FileInfo { + let message = target ?? this.create(), end = reader.pos + length; + while (reader.pos < end) { + let [fieldNo, wireType] = reader.tag(); + switch (fieldNo) { + case /* string name */ 1: + message.name = reader.string(); + break; + case /* uint32 line */ 2: + message.line = reader.uint32(); + break; + default: + let u = options.readUnknownField; + if (u === "throw") + throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); + let d = reader.skip(wireType); + if (u !== false) + (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); + } + } + return message; + } + internalBinaryWrite(message: FileInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { + /* string name = 1; */ + if (message.name !== "") + writer.tag(1, WireType.LengthDelimited).string(message.name); + /* uint32 line = 2; */ + if (message.line !== 0) + writer.tag(2, WireType.Varint).uint32(message.line); + let u = options.writeUnknownFields; + if (u !== false) + (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); + return writer; + } +} +/** + * @generated MessageType for protobuf message flow.FileInfo + */ +export const FileInfo = new FileInfo$Type(); +// @generated message type with reflection information, may provide speed optimized methods class Layer4$Type extends MessageType { constructor() { super("flow.Layer4", [ @@ -3772,7 +3871,8 @@ class Policy$Type extends MessageType { { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 2, name: "namespace", kind: "scalar", T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "labels", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ } + { no: 4, name: "revision", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 2 /*LongType.NUMBER*/ }, + { no: 5, name: "kind", kind: "scalar", T: 9 /*ScalarType.STRING*/ } ]); } create(value?: PartialMessage): Policy { @@ -3781,6 +3881,7 @@ class Policy$Type extends MessageType { message.namespace = ""; message.labels = []; message.revision = 0; + message.kind = ""; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -3802,6 +3903,9 @@ class Policy$Type extends MessageType { case /* uint64 revision */ 4: message.revision = reader.uint64().toNumber(); break; + case /* string kind */ 5: + message.kind = reader.string(); + break; default: let u = options.readUnknownField; if (u === "throw") @@ -3826,6 +3930,9 @@ class Policy$Type extends MessageType { /* uint64 revision = 4; */ if (message.revision !== 0) writer.tag(4, WireType.Varint).uint64(message.revision); + /* string kind = 5; */ + if (message.kind !== "") + writer.tag(5, WireType.LengthDelimited).string(message.kind); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -3966,12 +4073,14 @@ class FlowFilter$Type extends MessageType { { no: 10, name: "source_label", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 16, name: "source_service", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 26, name: "source_workload", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Workload }, + { no: 37, name: "source_cluster_name", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "destination_ip", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 4, name: "destination_pod", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 8, name: "destination_fqdn", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 11, name: "destination_label", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 17, name: "destination_service", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 27, name: "destination_workload", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => Workload }, + { no: 38, name: "destination_cluster_name", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }, { no: 30, name: "traffic_direction", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["flow.TrafficDirection", TrafficDirection] }, { no: 5, name: "verdict", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["flow.Verdict", Verdict] }, { no: 33, name: "drop_reason_desc", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["flow.DropReason", DropReason] }, @@ -4007,12 +4116,14 @@ class FlowFilter$Type extends MessageType { message.sourceLabel = []; message.sourceService = []; message.sourceWorkload = []; + message.sourceClusterName = []; message.destinationIp = []; message.destinationPod = []; message.destinationFqdn = []; message.destinationLabel = []; message.destinationService = []; message.destinationWorkload = []; + message.destinationClusterName = []; message.trafficDirection = []; message.verdict = []; message.dropReasonDesc = []; @@ -4068,6 +4179,9 @@ class FlowFilter$Type extends MessageType { case /* repeated flow.Workload source_workload */ 26: message.sourceWorkload.push(Workload.internalBinaryRead(reader, reader.uint32(), options)); break; + case /* repeated string source_cluster_name */ 37: + message.sourceClusterName.push(reader.string()); + break; case /* repeated string destination_ip */ 3: message.destinationIp.push(reader.string()); break; @@ -4086,6 +4200,9 @@ class FlowFilter$Type extends MessageType { case /* repeated flow.Workload destination_workload */ 27: message.destinationWorkload.push(Workload.internalBinaryRead(reader, reader.uint32(), options)); break; + case /* repeated string destination_cluster_name */ 38: + message.destinationClusterName.push(reader.string()); + break; case /* repeated flow.TrafficDirection traffic_direction */ 30: if (wireType === WireType.LengthDelimited) for (let e = reader.int32() + reader.pos; reader.pos < e;) @@ -4219,6 +4336,9 @@ class FlowFilter$Type extends MessageType { /* repeated flow.Workload source_workload = 26; */ for (let i = 0; i < message.sourceWorkload.length; i++) Workload.internalBinaryWrite(message.sourceWorkload[i], writer.tag(26, WireType.LengthDelimited).fork(), options).join(); + /* repeated string source_cluster_name = 37; */ + for (let i = 0; i < message.sourceClusterName.length; i++) + writer.tag(37, WireType.LengthDelimited).string(message.sourceClusterName[i]); /* repeated string destination_ip = 3; */ for (let i = 0; i < message.destinationIp.length; i++) writer.tag(3, WireType.LengthDelimited).string(message.destinationIp[i]); @@ -4237,6 +4357,9 @@ class FlowFilter$Type extends MessageType { /* repeated flow.Workload destination_workload = 27; */ for (let i = 0; i < message.destinationWorkload.length; i++) Workload.internalBinaryWrite(message.destinationWorkload[i], writer.tag(27, WireType.LengthDelimited).fork(), options).join(); + /* repeated string destination_cluster_name = 38; */ + for (let i = 0; i < message.destinationClusterName.length; i++) + writer.tag(38, WireType.LengthDelimited).string(message.destinationClusterName[i]); /* repeated flow.TrafficDirection traffic_direction = 30; */ if (message.trafficDirection.length) { writer.tag(30, WireType.LengthDelimited).fork(); diff --git a/backend/vendor/github.com/cilium/cilium/AUTHORS b/backend/vendor/github.com/cilium/cilium/AUTHORS index e4805da2a..ab4d345a1 100644 --- a/backend/vendor/github.com/cilium/cilium/AUTHORS +++ b/backend/vendor/github.com/cilium/cilium/AUTHORS @@ -10,8 +10,10 @@ Adam Korcz adam@adalogics.com Adam Wolfe Gordon awg@digitalocean.com adamzhoul adamzhoul186@gmail.com Aditi Ghag aditi@cilium.io +Aditya Kumar aditya.kumar60@infosys.com Aditya Purandare aditya.p1993@hotmail.com Aditya Sharma aditya.sharma@shopify.com +Adrian Berger adrian.berger@bedag.ch Adrien Trouillaud adrienjt@users.noreply.github.com Ahmed Bebars 1381372+abebars@users.noreply.github.com Akhil Velagapudi 4@4khil.com @@ -23,6 +25,7 @@ Aleksei Zakharov zakharov.a.g@yandex.ru Alexander Alemayhu alexander@alemayhu.com Alexander Berger alex-berger@gmx.ch Alexander Block ablock84@gmail.com +Alexander Demichev demichev.alexander@gmail.com Alexandre Barone abalexandrebarone@gmail.com Alexandre Perrin alex@isovalent.com Alexei Starovoitov alexei.starovoitov@gmail.com @@ -32,8 +35,12 @@ Alex Katsman alexkats@google.com Alex Romanov alex@romanov.ws Alex Szakaly alex.szakaly@gmail.com Alex Waring alex.waring@starlingbank.com +alisdairbr alisdairbr@users.noreply.github.com Alkama Hasan gl3118@myamu.ac.in Alois Petutschnig alois@petutschnig.net +Alvaro Aleman alvaroaleman@users.noreply.github.com +Alvaro Muñoz pwntester@github.com +Alvaro Uria alvaro.uria@isovalent.com Amey Bhide amey@covalent.io Amir Kheirkhahan amir.kheirkhahan@dbschenker.com amitmavgupta 115551423+amitmavgupta@users.noreply.github.com @@ -42,10 +49,12 @@ Amre Shakimov amre@covalent.io Anderson, David L david.l.anderson@intel.com Andor Nemeth andor_nemeth@swissre.com Andreas Mårtensson andreas@addem.se +André Costa ancosta@gmail.com Andree Klattenhoff mail@andr.ee Andrei Kvapil kvapss@gmail.com André Martins andre@cilium.io Andrew Bulford andrew.bulford@form3.tech +Andrew E. Timmes atimmes@seatgeek.com Andrew Holt andrew.holt@utmost.co Andrew Li hui0787411@163.com Andrew Sauber 2046750+asauber@users.noreply.github.com @@ -53,11 +62,14 @@ Andrew Sy Kim kim.andrewsy@gmail.com Andrew Titmuss iandrewt@icloud.com Andrey Devyatkin andrey.devyatkin@fivexl.io Andrey Klimentyev andrey.klimentyev@flant.com +Andrey Maltsev maltsev.andrey@gmail.com Andrey Voronkov voronkovaa@gmail.com Andrii Iuspin andrii.iuspin@isovalent.com Andrzej Mamak nqaegg@gmail.com Andy Allred andy@punasusi.com andychuang andy.chuang@shoplineapp.com +Angelo Poerio apoerio@cuebiq.com +Angelos Kolaitis neoaggelos@gmail.com Animesh Pathak 53110238+Sonichigo@users.noreply.github.com Aniruddha Amit Dutta duttaaniruddha31@gmail.com Anish Shah anishshah@google.com @@ -82,6 +94,7 @@ Arika Chen eaglesora@gmail.com Arkadiusz Kaliwoda (akaliwod) akaliwod@cisco.com Arnaud Meukam ameukam@gmail.com Arseniy Belorukov a.belorukov@team.bumble.com +Artem Tokarev enjoy1288@gmail.com Arthur Chiao arthurchiao@hotmail.com ArthurChiao arthurchiao@hotmail.com Arthur Evstifeev mail@ap4y.me @@ -103,8 +116,11 @@ Barış Ekin Yıldırım 101638632+beyildirim@users.noreply. Barun Acharya barun1024@gmail.com Basit Mustafa basit.mustafa@gmail.com Beatriz Martínez beatriz@isovalent.com +behren mobile.niclas@gmail.com +Benjamin Gentil benjamin.gentil@infomaniak.com Benjamin Leggett benjamin.leggett@solo.io Benjamin Pineau benjamin.pineau@datadoghq.com +Benoît Knecht bknecht@protonmail.ch Benoît Sauvère benoit.sauvere@backmarket.com Bernard Halas bernard.halas@berops.com Bill Mulligan billmulligan516@gmail.com @@ -115,7 +131,8 @@ Bob Bouteillier bob.bouteillier@datadoghq.com Bokang Li libokang.dev@gmail.com Bolun Zhao blzhao@google.com Boran Car boran.car@gmail.com -Boris Petrovic carnerito.b@gmail.com +Boris Petrovic boris.petrovic@united.cloud +Bowei Du bowei@google.com Brad Whitfield bradswhitfield@gmail.com Brandon Ewing brandon.ewing@imc.com Brandon McNama brandonmcnama@outlook.com @@ -125,10 +142,12 @@ Bruno Miguel Custódio brunomcustodio@gmail.com Bryan Stenson bryan.stenson@okta.com bzsuni bingzhe.sun@daocloud.io Calum MacRae hi@cmacr.ae +Cameron McAvoy cmcavoy@indeed.com Camilo Schoeningh camilo.schoeningh@dunnhumby.com Canh Ngo canhnt@gmail.com Carlos Andrés Rocha rchalumeau@magicleap.com Carlos Castro carlos.castro@jumo.world +Carlos Rodríguez Hernández carlosrh@vmware.com Carson Anderson carson.anderson@goteleport.com Carson Yang yangchuansheng33@gmail.com Casey Callendrello cdc@isovalent.com @@ -152,6 +171,7 @@ Christian Hörtnagl christian2@univie.ac.at Christian Hüning christian.huening@finleap.com Christine Chen christine.chen@datadoghq.com Christine Kim xtineskim@gmail.com +Christophe Jauffret christophe.jauffret@nutanix.com Christopher Biscardi chris@christopherbiscardi.com Christopher Schmidt fakod666@gmail.com Christoph Puhl cpu@isovalent.com @@ -170,7 +190,9 @@ Cookie Wang luckymrwang@163.com cornfeedhobo cornfeedhobo@fuzzlabs.org Cory Snyder csnyder@1111systems.com Craig Box craig.box@gmail.com +crashiura crashiura@gmail.com cui fliter imcusg@gmail.com +cx 1249843194@qq.com Cynthia Thomas cynthia@covalent.io Cyril Corbon corboncyril@gmail.com Cyril Scetbon cscetbon@gmail.com @@ -188,6 +210,7 @@ Daniel Finneran dan@thebsdbox.co.uk Daniel Hawton daniel.hawton@solo.io Daniel Qian qsj.daniel@gmail.com Daniel T. Lee danieltimlee@gmail.com +Daniel Vos danielvos@outlook.com Danni Skov Høglund skuffe@pwnz.dk Dan Sexton dan.b.sexton@gmail.com Dan Wendlandt dan@covalent.io @@ -202,6 +225,7 @@ David Boslee david@goteleport.com David Bouchare david.bouchare@datadoghq.com David Calvert david@0xdc.me David Cheng david.cheng@shopline.com +David Chosrova dchosrova@gmail.com David Donchez donch@dailymotion.com David Korczynski david@adalogics.com David Leadbeater dgl@dgl.cx @@ -215,10 +239,12 @@ Deepesha Burse deepesha.3007@gmail.com Deepesh Pathak deepshpathak@gmail.com Denis GERMAIN dgermain@deezer.com Denis Khachyan khachyanda.gmail.com +Derek Chen derek_chen@live.com Derek Gaffney 17263955+gaffneyd4@users.noreply.github.com Deshi Xiao xiaods@gmail.com deterclosed fliter@outlook.com Devarshi Sathiya devarshisathiya5@gmail.com +dhamick dharmicksaik@gmail.com Dharma Bellamkonda dharma.bellamkonda@gmail.com Didier Durand durand.didier@gmail.com Diego Casati diego.casati@gmail.com @@ -242,6 +268,7 @@ Dorde Lapcevic dordel@google.com Duffie Cooley dcooley@isovalent.com dwalker-sabiogroup 100362969+dwalker-sabiogroup@users.noreply.github.com Dylan Reimerink dylan.reimerink@isovalent.com +egoust ustinov16@gmail.com Ekene Nwobodo nwobodoe71@gmail.com Electron alokaks601@gmail.com El-Fadel Bonfoh elfadel@accuknox.com @@ -268,6 +295,7 @@ Fabio Falzoi fabio.falzoi@isovalent.com Faiyaz Ahmed faiyaza@gmail.com Fankaixi Li fankaixi.li@bytedance.com Federico Hernandez f@ederi.co +feifeifei wangyufeimoon@gamil.com Felix Färjsjö felix.farjsjo@gmail.com fengshunli 1171313930@qq.com ferenets ferenets@nebius.com @@ -283,10 +311,12 @@ Francois Allard francois@breathelife.com François Joulaud francois.joulaud@radiofrance.com Frank Villaro-Dixon frank.villaro@infomaniak.com Frederic Branczyk fbranczyk@gmail.com +Frederic Giloux frederic.giloux@isovalent.com Fred Heinecke fred.heinecke@yahoo.com Fred Hsu fredlhsu@gmail.com Fredrik Lönnegren fredrik.lonnegren@gmail.com Fulvio Risso fulvio.risso@polito.it +Gabe Conradi gconradi@seatgeek.com gailsuccess 157372272+gailsuccess@users.noreply.github.com Gaurav Genani h3llix.pvt@gmail.com Gaurav Yadav gaurav.dev.iiitm@gmail.com @@ -302,13 +332,16 @@ gjmzj jmgaozz@hotmail.com Glen Yu glen.yu@gmail.com Glib Smaga code@gsmaga.com Gobinath Krishnamoorthy gobinathk@google.com +GoGstickGo janilution@gmail.com Gowtham Sundara gowtham.sundara@rapyuta-robotics.com Gray Liang gray.liang@isovalent.com guangwu guoguangwug@gmail.com Guilherme Oki guilherme.oki@wildlifestudios.com Guilherme Souza 101073+guilhermef@users.noreply.github.com Gunju Kim gjkim042@gmail.com +Gyutae Bae gyu.8ae@gmail.com hacktivist123 akintayoshedrack@gmail.com +Hadrien Patte hadrien.patte@datadoghq.com Haitao Li lihaitao@gmail.com Haiyue Wang haiyue.wang@intel.com Hang Yan hang.yan@hotmail.com @@ -322,6 +355,7 @@ Hector Monsalve hmonsalv@gmail.com Heiko Rothe me@heikorothe.com Hemanth Malla hemanth.malla@datadoghq.com Hemslo Wang hemslo.wang@gmail.com +Hongbo Miao 3375461+hongbo-miao@users.noreply.github.com Hong Chen hong.chen.7219@gmail.com Hrittik hrittikcom@gmail.com Huagong Wang wanghuagong@kylinos.cn @@ -334,6 +368,8 @@ Huweicai i@huweicai.com hxysayhi 51870525+hxysayhi@users.noreply.github.com Ian Vernon ian@cilium.io Ifeanyi Ubah ify1992@yahoo.com +Igor Klemenski igor.klemenski@microsoft.com +ii2day ii2day.zoro@gmail.com Iiqbal2000 iqbalhafizh2000@gmail.com Ilia Chernov cherno8.ilya@gmail.com Ilya Dmitrichenko errordeveloper@gmail.com @@ -343,6 +379,7 @@ Isala Piyarisi mail@isala.me ishuar ishansharma887@gmail.com Ivan Makarychev i.makarychev@tinkoff.ru Ivar Lazzaro ivarlazzaro@gmail.com +JabJ sajjadjafaribojd@gmail.com Jack-R-lantern tjdfkr2421@gmail.com Jacob Henner code@ventricle.us Jacopo Nardiello jnardiello@users.noreply.github.com @@ -350,15 +387,21 @@ Jaff Cheng jaff.cheng.sh@gmail.com Jaime Caamaño Ruiz jcaamano@suse.com James Bodkin james.bodkin@amphora.net James Brookes jbrookes@confluent.io +James Harr james.harr@gmail.com James Laverack james@isovalent.com James McShane james.mcshane@superorbital.io +James Strong strong.james.e@gmail.com Jan-Erik Rediger janerik@fnordig.de Jan Jansen jan.jansen@gdata.de Jan Mraz strudelpi@pm.me +Jan Unger jan-emanuel.unger@gmx.de janvi01 janvibajo1@gmail.com +Jared Ledvina jared.ledvina@datadoghq.com Jarno Rajahalme jarno@isovalent.com Jason Aliyetti jaliyetti@gmail.com Javier Vela fjvela@gmail.com +Jayesh Kumar 57744184+k8s-dev@users.noreply.github.com +Jean-Benoit Paux 9682558+jbpaux@users.noreply.github.com Jean Raby jean@raby.sh Jed Salazar jedsalazar@gmail.com Jef Spaleta jspaleta@gmail.com @@ -374,6 +417,7 @@ Jim Angel jimangel@google.com.com Jimmy Song rootsongjc@gmail.com Jim Ntosas ntosas@gmail.com Jingyuan Liang jingyuanliang@google.com +jinjiadu jinjiadu@aliyun.com JinLin Fu withlin@apache.org Jiong Wang jiong.wang@netronome.com jiuker 2818723467@qq.com @@ -393,8 +437,11 @@ john-r-swyftx john.roche@swyftx.com.au John Watson johnw@planetscale.com John Zheng johnzhengaz@gmail.com Jomen Xiao jomenxiao@gmail.com +Jonas Badstübner jonas@jb.software +Jonas Krüger Svensson jonas.svensson@intility.no Jonathan Davies jpds@protonmail.com Jonathan Grahl jonathan@keyholders.io +Jonathan Siegel 248302+usiegj00@users.noreply.github.com Jones Shi shilei@hotstone.com.cn Jonny jonny@linkpool.io Jooho Lee jhlee@si-analytics.ai @@ -404,16 +451,23 @@ Joseph-Irving joseph.irving500@gmail.com Joseph Ligier joseph.ligier@accenture.com Joseph Sheng jiajun.sheng@microfocus.com Joseph Stevens thejosephstevens@gmail.com +Josh Soref 2119212+jsoref@users.noreply.github.com +joshua 54235339+sujoshua@users.noreply.github.com Joshua Roppo joshroppo@gmail.com jshr-w shjayaraman@microsoft.com Juan Jimenez-Anca cortopy@users.noreply.github.com Juha Tiensyrjä juha.tiensyrja@ouraring.com Julian Wiedmann jwi@isovalent.com Julien Balestra julien.balestra@datadoghq.com +Julien D barajus@users.noreply.github.com Julien Kassar github@kassisol.com +Julius Hinze jhinze@cisco.com Jun Chen answer1991.chen@gmail.com Junli Ou oujunli306@gmail.com Jussi Maki jussi@isovalent.com +Jussi Mäki jussi.maki@isovalent.com +kachi-bits 76791974+kachi-bits@users.noreply.github.com +Kaczyniec kaczynska@google.com kahirokunn okinakahiro@gmail.com Kaito Ii kaitoii1111@gmail.com Kaloyan Yordanov Kaloyan.Yordanov@starlizard.com @@ -422,6 +476,7 @@ Karim Naufal rimkashox@gmail.com Karl Heins karlheins@northwesternmutual.com Karsten Nielsen karsten.nielsen@ingka.ikea.com Katarzyna Borkmann kasia@iogearbox.net +Katarzyna Lach katarzynalach@google.com Katie Struthers 99215338+katiestruthers@users.noreply.github.com Kazuki Suda kazuki.suda@gmail.com Keisuke Kondo k.gryphus@gmail.com @@ -436,6 +491,7 @@ Koichiro Den den@klaipeden.com Konstantin Aksenov konstantin.aksenov@flant.com Kornilios Kourtis kornilios@isovalent.com kwakubiney kebiney@hotmail.com +l1b0k libokang.lbk@alibaba-inc.com Laurent Bernaille laurent.bernaille@datadoghq.com Lawrence Gadban lawrence.gadban@solo.io ldelossa louis.delos@gmail.com @@ -450,6 +506,7 @@ Li Chun lichun823@gmail.com LiHui andrewli@yunify.com Lin Dong lindongld@google.com Lin Sun lin.sun@solo.io +Lior Lieberman liorlieberman@google.com Lior Rozen liorr@tailorbrands.com Liu Qun qunliu@zyhx-group.com liuxu liuxu623@gmail.com @@ -465,12 +522,14 @@ Lorenz Bauer lmb@isovalent.com Lorenzo Fundaró lorenzofundaro@gmail.com Louis DeLosSantos louis.delos@isovalent.com lou-lan loulan@loulan.me +Lucas Fernando Cardoso Nunes lucasfc.nunes@gmail.com Lucas Leblow lucasleblow@mailbox.org Lucas Rattz lucas.rattz@syself.com lucming 2876757716@qq.com Ludovic Ortega ludovic.ortega@adminafk.fr Lukas Stehlik stehlik.lukas@gmail.com -Maartje Eyskens maartje@eyskens.me +Luke Livingstone luke.livingstone@imaginecurve.com +Maartje Eyskens maartje.eyskens@isovalent.com Maciej Fijalkowski maciej.fijalkowski@intel.com Maciej Kwiek maciej@isovalent.com Maciej Skrocki maciejskrocki@google.com @@ -485,7 +544,9 @@ Mandar U Jog mjog@google.com Manuel Buil mbuil@suse.com Manuel Rüger manuel@rueg.eu Manuel Stößel manuel.stoessel@t-systems.com -Marcel Zieba marcel.zieba@isovalent.com +Marc Barry 4965634+marc-barry@users.noreply.github.com +Marcelo Moreira de Mello tchello.mello@gmail.com +Marcel Zięba marcel.zieba@isovalent.com Marcin Skarbek git@skarbek.name Marcin Swiderski forgems@gmail.com Marco Aurelio Caldas Miranda 17923899+macmiranda@users.noreply.github.com @@ -502,36 +563,41 @@ Mario Constanti mario@constanti.de Marius Gerling marius.gerling@uniberg.com Mark deVilliers markdevilliers@gmail.com Mark Pashmfouroush mark@isovalent.com +Mark St John markstjohn@google.com Markus Blaschke mblaschke82@gmail.com Markus Nilsson markus.nilsson@yubico.com Martin Charles martincharles07@gmail.com Martin Koppehel martin.koppehel@st.ovgu.de Martin Odstrcilik martin.odstrcilik@gmail.com -Martynas Pumputis m@lambda.lt +Martynas Pumputis martynas@isovalent.com Marvin Gaube dev@marvingaube.de Marwin Baumann 56264798+marwinbaumannsbp@users.noreply.github.com Matej Gera matejgera@gmail.com Mathias Herzog mathu@gmx.ch -Mathieu Parent math.parent@gmail.com +Mathieu Parent mathieu.parent@insee.fr Mathieu Tortuyaux mtortuyaux@microsoft.com Mathis Joffre 51022808+Joffref@users.noreply.github.com Matt Anderson matanderson@equinix.com Matthew Fenwick mfenwick100@gmail.com Matthew Gumport me@gum.pt +Matthew Hembree 47449406+matthewhembree@users.noreply.github.com Matthias Baur m.baur@syseleven.de Matthieu Antoine matthieu.antoine@jumo.world Matthieu MOREL matthieu.morel35@gmail.com Matt Layher mdlayher@gmail.com +Matt Oswalt matt@oswalt.dev Matyáš Kroupa kroupa.matyas@gmail.com Mauricio Vásquez mauricio@kinvolk.io Maxime Brunet max@brnt.mx Maxime Visonneau maxime.visonneau@gmail.com Maximilian Bischoff maximilian.bischoff@inovex.de Maximilian Mack max@mack.io -Maxim Mikityanskiy maxim@isovalent.com +Maxim Krasilnikov m.krasilnikov@space307.com +Maxim Mikityanskiy maxtram95@gmail.com Max Körbächer 16919345+mkorbi@users.noreply.github.com MeherRushi sudharushi0@gmail.com Melissa Peiffer mbp83@nau.edu +Mengxin Liu mengxin@alauda.io Michael Aspinwall maspinwall@google.com Michael Fischer fiscmi@amazon.com Michael Fornaro 20387402+xUnholy@users.noreply.github.com @@ -547,6 +613,7 @@ Michael Vorburger vorburger@redhat.com Michal Rostecki vadorovsky@gmail.com Michal Siwinski siwy@google.com Michi Mutsuzaki michi@isovalent.com +Mikael Johansson mik.json@gmail.com Mike Fedosin mfedosin@gmail.com MikeLing sabergeass@gmail.com Mike Mwanje mwanjemike767@gmail.com @@ -560,7 +627,6 @@ Moritz Johner beller.moritz@googlemail.com Moshe Immerman moshe.immerman@vitalitygroup.com mrproliu 741550557@qq.com mvtab mvtabilitas@protonmail.com -naoki-take naoki-take@cybozu.co.jp Natalia Reka Ivanko natalia@isovalent.com Nate Sweet nathanjsweet@pm.me Nate Taylor ntaylor1781@gmail.com @@ -569,21 +635,25 @@ nathannaveen 42319948+nathannaveen@users.noreply.gith Nathan Perkins nperkins487@gmail.com Nathan Taylor ntaylor1781@gmail.com Navin Kukreja navin.kukreja@isovalent.com +Nebula 40148908+nebula-it@users.noreply.github.com necatican necaticanyildirim@gmail.com Neela Jacques neela@isovalent.com Neil Seward neil.seward@elasticpath.com Neil Wilson neil@aldur.co.uk Neutrollized glen.yu@gmail.com +Nicholas Lane nicklaneovi@gmail.com Nick M 4718+rkage@users.noreply.github.com -Nick Young ynick@cisco.com +Nick Young nick@isovalent.com Niclas Mietz solidnerd@users.noreply.github.com Nico Berlee nico.berlee@on2it.net Nicolas Busseneau nicolas@isovalent.com +Nicolò Ciraci ciraci.nicolo@gmail.com Nico Vibert nvibert@cisco.com Nikhil Jha nikhiljha@users.noreply.github.com Nikhil Sharma nikhilsharma230303@gmail.com Nikolay Aleksandrov nikolay@isovalent.com -Nikolay Nikolaev nikolay.nikolaev@isovalent.com +Nikolay Nikolaev nicknickolaev@gmail.com +Nimisha Mehta nimishamehta5@gmail.com Nirmoy Das ndas@suse.de Nishant Burte nburte@google.com Nitish Malhotra nitishm@microsoft.com @@ -595,7 +665,9 @@ nxyt lolnoxy@gmail.com Odin Ugedal ougedal@palantir.com Oilbeater mengxin@alauda.io Oksana Baranova oksana.baranova@intel.com +Olaf Klischat olaf.klischat@gmail.com Ole Markus With o.with@sportradar.com +Olga Mirensky 5200844+olga-mir@users.noreply.github.com Oliver Hofmann 91730056+olinux-dev@users.noreply.github.com Oliver Ni oliver.ni@gmail.com Oliver Wang a0924100192@gmail.com @@ -613,19 +685,25 @@ Patrice Chalin chalin@cncf.io Patrice Peterson patrice.peterson@mailbox.org Patrick Mahoney pmahoney@greenkeytech.com Patrick O’Brien patrick.obrien@thetradedesk.com +Patrick Pichler git@patrickpichler.dev Patrick Reich patrick@neodyme.io Pat Riehecky riehecky@fnal.gov Patrik Cyvoct patrik@ptrk.io +Paul Arah paularah.self@gmail.com Paul Bailey spacepants@users.noreply.github.com Paul Chaignon paul.chaignon@gmail.com Paulo Castello da Costa pcastello@google.com Paulo Gomes pjbgf@linux.com Pavel Pavlov 40396270+PavelPavlov46@users.noreply.github.com +Pavel Tishkov pavel.tishkov@flant.com Paweł Prażak pawelprazak@users.noreply.github.com +Pedro Ignacio pedroig100.pi@gmail.com Peiqi Shi uestc.shi@gmail.com +Pelle van Gils pelle@vangils.dev pengbinbin1 pengbiny@163.com Pengfei Song pengfei.song@daocloud.io Peter Jausovec peter.jausovec@solo.io +Peter Matulis pmatulis@gmail.com Peter Slovak slovak.peto@gmail.com Petr Baloun petr.baloun@firma.seznam.cz Philippe Lafoucrière philippe.lafoucriere@gmail.com @@ -633,8 +711,11 @@ Philipp Gniewosz philipp.gniewosz@daimlertruck.com Philip Schmid phisch@cisco.com Pierre-Yves Aillet pyaillet@gmail.com Pieter van der Giessen pieter@pionative.com +Pooja Trivedi poojatrivedi@gmail.com +Prabhakhar Kaliyamurthy (PK) prabhakhar@gmail.com Pranavi Roy pranvyr@gmail.com Prashanth.B beeps@google.com +Pratyay Banerjee putubanerjee23@gmail.com Pratyush Singhal psinghal20@gmail.com Praveen Krishna pkrishn@google.com Priya Sharma Priya.Sharma6693@gmail.com @@ -642,15 +723,19 @@ Qasim Sarfraz qasim.sarfraz@esailors.de Qifeng Guo qifeng.guo@daocloud.io Qingchuan Hao qinhao@microsoft.com Quang Nguyen nguyenquang@microsoft.com +Quan Wei quanwei.153@bytedance.com Quentin Monnet qmo@qmon.net Raam ram29@bskyb.com Rachid Zarouali rachid.zarouali@sevensphere.io Rafael da Fonseca rafael.fonseca@wildlifestudios.com +Raffael Sahli raffael.sahli@doodle.com Raghu Gyambavantha raghug@bld-ml-loan4.olympus.f5net.com Rahul Jadhav nyrahul@gmail.com Rahul Joshi rkjoshi@google.com +rahulk789 rahul.u.india@gmail.com Rajat Jindal rajatjindal83@gmail.com -Ralph Bankston ralph.bankston@isovalent.com +Ralph Bankston ralph@isovalent.com +Ramses Rodriguez Martinez ramses@nextdigital.es Raphael Campos raphael@accuknox.com Raphaël Pinson raphael@isovalent.com Rastislav Szabo rastislav.szabo@isovalent.com @@ -673,28 +758,37 @@ Richard Tweed RichardoC@users.noreply.github.com Ricky Ho horicky78@gmail.com Rio Kierkels riokierkels@gmail.com Robin Elfrink robin@15augustus.nl -Robin Gögge r.goegge@isovalent.com +Robin Gögge r.goegge@gmail.com Robin Hahling robin.hahling@gw-computing.net Rob Scott robertjscott@google.com Rocky Chen 40374064+rockc2020@users.noreply.github.com Rodrigo Chacon rochacon@gmail.com +Rohan George 83759161+rohan-changejar@users.noreply.github.com Romain Lenglet rlenglet@google.com Roman Ptitcyn romanspb@yahoo.com Romuald Zdebskiy zdebskiy@hotmail.com Ronald van Zantvoort the.loeki@gmail.com Ross Guarino rssguar@gmail.com +roykharman roykharman@gmail.com +Rudrakh Panigrahi rudrakh97@gmail.com +Rui Cao caorui.io@bytedance.com +Rui Chen rui@chenrui.dev Rui Gu rui@covalent.io Rushikesh Butley rushikeshbutley@gmail.com Russell Bryant russell@russellbryant.net +rusttech gopher@before.tech Ryan Drew ryan.drew@isovalent.com Ryan McNamara rmcnamara@palantir.com +ryebridge 88094554+ryebridge@users.noreply.github.com Sachin Maurya sachin.maurya7666@gmail.com Sadik Kuzu sadikkuzu@hotmail.com Sahid Orentino Ferdjaoui sahid.ferdjaoui@industrialdiscipline.com +saiaunghlyanhtet saiaunghlyanhtet2003@gmail.com Saikrishna Edupuganti saikrishna.edupuganti@intel.com Saim Safdar 59512053+Saim-Safdar@users.noreply.github.com Saiyam Pathak saiyam@civo.com Salvatore Mazzarino salvatore@accuknox.com +Sam Day me@samcday.com Sami Yessou fnzv@users.noreply.github.com Samuel Lang gh@lang-sam.de Samuel Torres samuelpirestorres@gmail.com @@ -706,6 +800,7 @@ Sascha Grunert sgrunert@redhat.com Satish Matti smatti@google.com Scott Albertson ascottalbertson@gmail.com Sean Winn sean@isovalent.com +Sebastian Gaiser sebastiangaiser@users.noreply.github.com Sebastian Nickel nick@nine.ch Sebastian Rojo arpagon@gmail.com Sebastian Wicki sebastian@isovalent.com @@ -717,21 +812,31 @@ Sergey Shevchenko sergeyshevchdevelop@gmail.com Sergio Ballesteros snaker@locolandia.net sh2 shawnhxh@outlook.com Shane Utt shaneutt@linux.com +shankeerthan-kasilingam shankeerthan1995@gmail.com Shantanu Deshpande shantanud106@gmail.com +Shardul Srivastava shardul.srivastava007@gmail.com Shunpoco tkngsnsk313320@gmail.com Sigurd Spieckermann sigurd.spieckermann@gmail.com Simone Magnani simone.magnani@isovalent.com Simone Sciarrati s.sciarrati@gmail.com Simon Felding 45149055+simonfelding@users.noreply.github.com +Simon Gerber simon.gerber@vshn.ch +Simon Lackerbauer mail@ciil.io Simon Pasquier spasquier@mirantis.com +Sjouke de Vries info@sdvservices.nl +SkalaNetworks contact@skala.network sknop 118932232+sknop-cgn@users.noreply.github.com Smaine Kahlouch smainklh@gmail.com soggiest nicholas@isovalent.com +Song 1120344670@qq.com spacewander spacewanderlzx@gmail.com +Sridhar K N Rao sridharkn@u.nus.edu +ssttehrani ssttehrani@gmail.com Stacy Kim stacy.kim@ucla.edu Stefan Zwanenburg stefan@zwanenburg.info Stephen Martin lockwood@opperline.com Steve Gargan sgargan@qualtrics.com +Steven Armstrong steven.armstrong@id.ethz.ch Steven Ceuppens steven.ceuppens@icloud.com Steven Dake steven.dake@gmail.com Steven Johnson sjdot@protonmail.com @@ -761,32 +866,42 @@ Thiago Navarro navarro@accuknox.com Thi Van Le vannnyle@gmail.com Thomas Bachman tbachman@yahoo.com Thomas Balthazar thomas@balthazar.info +thomas.chen thomas.chen@trustasia.com Thomas Gosteli thomas.gosteli@protonmail.com Thomas Graf thomas@cilium.io Thorben von Hacht tvonhacht@apple.com +Thorsten Pfister thorsten.pfister@form3.tech tigerK yanru.lv@daocloud.io +Tilusch til.heini@swisscom.com Tim Horner timothy.horner@isovalent.com Timo Beckers timo@isovalent.com Timo Reimann ttr314@googlemail.com Timur Solodovnikov timur.solodovnikov@clickhouse.com +tkna naoki-take@cybozu.co.jp Tobias Brunner tobias.brunner@vshn.ch Tobias Klauser tobias@cilium.io Tobias Kohlbau tobias@kohlbau.de Tobias Mose mosetobias@gmail.com +Tomas Leypold tomas@leypold.cz Tom Hadlaw tom.hadlaw@isovalent.com Tommo Cowling 952241+tlcowling@users.noreply.github.com Tomoki Sugiura tomoki-sugiura@cybozu.co.jp Tomoya Fujita Tomoya.Fujita@sony.com -Tom Payne twpayne@gmail.com +Tom Payne tom@isovalent.com Toni Tauro toni.tauro@adfinis.com Tony Lambiris tony@criticalstack.com Tony Lu tonylu@linux.alibaba.com Tony Norlin tony.norlin@localdomain.se +Torben Tretau torben@tretau.net Tore S. Loenoey tore.lonoy@gmail.com +ToroNZ tomas-github@maggio.nz toVersus toversus2357@gmail.com Travis Glenn Hansen travisghansen@yahoo.com Trevor Roberts Jr Trevor.Roberts.Jr@gmail.com Trevor Tao trevor.tao@arm.com +Tyler Auerbeck tylerauerbeck@users.noreply.github.com +u5surf u5.horie@gmail.com +Ubuntu ubuntu@ip-172-31-10-3.eu-west-3.compute.internal Umesh Keerthy B S umesh.freelance@gmail.com Umesh Keerthy umesh.freelance@gmail.com usiegl00 50933431+usiegl00@users.noreply.github.com @@ -794,9 +909,10 @@ Vadim Ponomarev velizarx@gmail.com vakr vakr@microsoft.com Valas Valancius valas@google.com Vance Li vanceli@tencent.com +Vanilla osu_Vanilla@126.com +Vasu Dasari vasudasari@google.com verysonglaa 39988258+verysonglaa@users.noreply.github.com Vigneshwaren Sunder vickymailed@gmail.com -viktor-kurchenko viktor.kurchenko@isovalent.com Viktor Kurchenko viktor.kurchenko@isovalent.com Viktor Kuzmin kvaster@gmail.com Viktor Oreshkin imselfish@stek29.rocks @@ -824,6 +940,7 @@ wenlxie xwlpt@126.com Wenxian Li wofanli@gmail.com Will Daly widaly@microsoft.com Will Deuschle wdeuschle@palantir.com +Willi Eggeling willi.eggeling@cloutomate.de Will Stewart will@northflank.com Wojtek Czekalski me@wczekalski.com Wongyu Lee kyu21@outlook.com @@ -860,11 +977,14 @@ yylt yang8518296@163.com Zang Li zangli@google.com zhanghe9702 zhanghe9702@163.com Zhang Qiang qiangzhang@qiyi.com +zhaojizhuang 571130360@qq.com +zhikuodu duzhk@qq.com Zhiyuan Hou zhiyuan2048@linux.alibaba.com zhouhaibing089 zhouhaibing089@gmail.com Zhu Yan hackzhuyan@gmail.com Zijian Zhang zz2795@columbia.edu Zisis Lianas zl@consol.de +zufardhiyaulhaq zufardhiyaulhaq@gmail.com 尤理衡 (Li-Heng Yu) 007seadog@gmail.com The following additional people are mentioned in commit logs as having provided diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/client/cilium_api_client.go b/backend/vendor/github.com/cilium/cilium/api/v1/client/cilium_api_client.go index 0e421911e..35b33e538 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/client/cilium_api_client.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/client/cilium_api_client.go @@ -17,7 +17,6 @@ import ( "github.com/cilium/cilium/api/v1/client/daemon" "github.com/cilium/cilium/api/v1/client/endpoint" "github.com/cilium/cilium/api/v1/client/ipam" - "github.com/cilium/cilium/api/v1/client/metrics" "github.com/cilium/cilium/api/v1/client/policy" "github.com/cilium/cilium/api/v1/client/prefilter" "github.com/cilium/cilium/api/v1/client/recorder" @@ -70,7 +69,6 @@ func New(transport runtime.ClientTransport, formats strfmt.Registry) *CiliumAPI cli.Daemon = daemon.New(transport, formats) cli.Endpoint = endpoint.New(transport, formats) cli.Ipam = ipam.New(transport, formats) - cli.Metrics = metrics.New(transport, formats) cli.Policy = policy.New(transport, formats) cli.Prefilter = prefilter.New(transport, formats) cli.Recorder = recorder.New(transport, formats) @@ -127,8 +125,6 @@ type CiliumAPI struct { Ipam ipam.ClientService - Metrics metrics.ClientService - Policy policy.ClientService Prefilter prefilter.ClientService @@ -147,7 +143,6 @@ func (c *CiliumAPI) SetTransport(transport runtime.ClientTransport) { c.Daemon.SetTransport(transport) c.Endpoint.SetTransport(transport) c.Ipam.SetTransport(transport) - c.Metrics.SetTransport(transport) c.Policy.SetTransport(transport) c.Prefilter.SetTransport(transport) c.Recorder.SetTransport(transport) diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/client/daemon/get_healthz_parameters.go b/backend/vendor/github.com/cilium/cilium/api/v1/client/daemon/get_healthz_parameters.go index 235c69da3..c2c5b08f6 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/client/daemon/get_healthz_parameters.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/client/daemon/get_healthz_parameters.go @@ -72,6 +72,15 @@ type GetHealthzParams struct { */ Brief *bool + /* RequireK8sConnectivity. + + If set to true, failure of the agent to connect to the Kubernetes control plane will cause the agent's health status to also fail. + + + Default: true + */ + RequireK8sConnectivity *bool + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -89,7 +98,18 @@ func (o *GetHealthzParams) WithDefaults() *GetHealthzParams { // // All values with no default are reset to their zero value. func (o *GetHealthzParams) SetDefaults() { - // no default values defined for this parameter + var ( + requireK8sConnectivityDefault = bool(true) + ) + + val := GetHealthzParams{ + RequireK8sConnectivity: &requireK8sConnectivityDefault, + } + + val.timeout = o.timeout + val.Context = o.Context + val.HTTPClient = o.HTTPClient + *o = val } // WithTimeout adds the timeout to the get healthz params @@ -136,6 +156,17 @@ func (o *GetHealthzParams) SetBrief(brief *bool) { o.Brief = brief } +// WithRequireK8sConnectivity adds the requireK8sConnectivity to the get healthz params +func (o *GetHealthzParams) WithRequireK8sConnectivity(requireK8sConnectivity *bool) *GetHealthzParams { + o.SetRequireK8sConnectivity(requireK8sConnectivity) + return o +} + +// SetRequireK8sConnectivity adds the requireK8sConnectivity to the get healthz params +func (o *GetHealthzParams) SetRequireK8sConnectivity(requireK8sConnectivity *bool) { + o.RequireK8sConnectivity = requireK8sConnectivity +} + // WriteToRequest writes these params to a swagger request func (o *GetHealthzParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -152,6 +183,14 @@ func (o *GetHealthzParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Re } } + if o.RequireK8sConnectivity != nil { + + // header param require-k8s-connectivity + if err := r.SetHeaderParam("require-k8s-connectivity", swag.FormatBool(*o.RequireK8sConnectivity)); err != nil { + return err + } + } + if len(res) > 0 { return errors.CompositeValidationError(res...) } diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/client/metrics/get_metrics_parameters.go b/backend/vendor/github.com/cilium/cilium/api/v1/client/metrics/get_metrics_parameters.go deleted file mode 100644 index 7dd482af5..000000000 --- a/backend/vendor/github.com/cilium/cilium/api/v1/client/metrics/get_metrics_parameters.go +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// Copyright Authors of Cilium -// SPDX-License-Identifier: Apache-2.0 - -package metrics - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "context" - "net/http" - "time" - - "github.com/go-openapi/errors" - "github.com/go-openapi/runtime" - cr "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// NewGetMetricsParams creates a new GetMetricsParams object, -// with the default timeout for this client. -// -// Default values are not hydrated, since defaults are normally applied by the API server side. -// -// To enforce default values in parameter, use SetDefaults or WithDefaults. -func NewGetMetricsParams() *GetMetricsParams { - return &GetMetricsParams{ - timeout: cr.DefaultTimeout, - } -} - -// NewGetMetricsParamsWithTimeout creates a new GetMetricsParams object -// with the ability to set a timeout on a request. -func NewGetMetricsParamsWithTimeout(timeout time.Duration) *GetMetricsParams { - return &GetMetricsParams{ - timeout: timeout, - } -} - -// NewGetMetricsParamsWithContext creates a new GetMetricsParams object -// with the ability to set a context for a request. -func NewGetMetricsParamsWithContext(ctx context.Context) *GetMetricsParams { - return &GetMetricsParams{ - Context: ctx, - } -} - -// NewGetMetricsParamsWithHTTPClient creates a new GetMetricsParams object -// with the ability to set a custom HTTPClient for a request. -func NewGetMetricsParamsWithHTTPClient(client *http.Client) *GetMetricsParams { - return &GetMetricsParams{ - HTTPClient: client, - } -} - -/* -GetMetricsParams contains all the parameters to send to the API endpoint - - for the get metrics operation. - - Typically these are written to a http.Request. -*/ -type GetMetricsParams struct { - timeout time.Duration - Context context.Context - HTTPClient *http.Client -} - -// WithDefaults hydrates default values in the get metrics params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetMetricsParams) WithDefaults() *GetMetricsParams { - o.SetDefaults() - return o -} - -// SetDefaults hydrates default values in the get metrics params (not the query body). -// -// All values with no default are reset to their zero value. -func (o *GetMetricsParams) SetDefaults() { - // no default values defined for this parameter -} - -// WithTimeout adds the timeout to the get metrics params -func (o *GetMetricsParams) WithTimeout(timeout time.Duration) *GetMetricsParams { - o.SetTimeout(timeout) - return o -} - -// SetTimeout adds the timeout to the get metrics params -func (o *GetMetricsParams) SetTimeout(timeout time.Duration) { - o.timeout = timeout -} - -// WithContext adds the context to the get metrics params -func (o *GetMetricsParams) WithContext(ctx context.Context) *GetMetricsParams { - o.SetContext(ctx) - return o -} - -// SetContext adds the context to the get metrics params -func (o *GetMetricsParams) SetContext(ctx context.Context) { - o.Context = ctx -} - -// WithHTTPClient adds the HTTPClient to the get metrics params -func (o *GetMetricsParams) WithHTTPClient(client *http.Client) *GetMetricsParams { - o.SetHTTPClient(client) - return o -} - -// SetHTTPClient adds the HTTPClient to the get metrics params -func (o *GetMetricsParams) SetHTTPClient(client *http.Client) { - o.HTTPClient = client -} - -// WriteToRequest writes these params to a swagger request -func (o *GetMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { - - if err := r.SetTimeout(o.timeout); err != nil { - return err - } - var res []error - - if len(res) > 0 { - return errors.CompositeValidationError(res...) - } - return nil -} diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/client/metrics/get_metrics_responses.go b/backend/vendor/github.com/cilium/cilium/api/v1/client/metrics/get_metrics_responses.go deleted file mode 100644 index a281ad4ad..000000000 --- a/backend/vendor/github.com/cilium/cilium/api/v1/client/metrics/get_metrics_responses.go +++ /dev/null @@ -1,169 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// Copyright Authors of Cilium -// SPDX-License-Identifier: Apache-2.0 - -package metrics - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "encoding/json" - "fmt" - "io" - - "github.com/go-openapi/runtime" - "github.com/go-openapi/strfmt" - - "github.com/cilium/cilium/api/v1/models" -) - -// GetMetricsReader is a Reader for the GetMetrics structure. -type GetMetricsReader struct { - formats strfmt.Registry -} - -// ReadResponse reads a server response into the received o. -func (o *GetMetricsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { - switch response.Code() { - case 200: - result := NewGetMetricsOK() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return result, nil - case 500: - result := NewGetMetricsInternalServerError() - if err := result.readResponse(response, consumer, o.formats); err != nil { - return nil, err - } - return nil, result - default: - return nil, runtime.NewAPIError("[GET /metrics/] GetMetrics", response, response.Code()) - } -} - -// NewGetMetricsOK creates a GetMetricsOK with default headers values -func NewGetMetricsOK() *GetMetricsOK { - return &GetMetricsOK{} -} - -/* -GetMetricsOK describes a response with status code 200, with default header values. - -Success -*/ -type GetMetricsOK struct { - Payload []*models.Metric -} - -// IsSuccess returns true when this get metrics o k response has a 2xx status code -func (o *GetMetricsOK) IsSuccess() bool { - return true -} - -// IsRedirect returns true when this get metrics o k response has a 3xx status code -func (o *GetMetricsOK) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get metrics o k response has a 4xx status code -func (o *GetMetricsOK) IsClientError() bool { - return false -} - -// IsServerError returns true when this get metrics o k response has a 5xx status code -func (o *GetMetricsOK) IsServerError() bool { - return false -} - -// IsCode returns true when this get metrics o k response a status code equal to that given -func (o *GetMetricsOK) IsCode(code int) bool { - return code == 200 -} - -// Code gets the status code for the get metrics o k response -func (o *GetMetricsOK) Code() int { - return 200 -} - -func (o *GetMetricsOK) Error() string { - payload, _ := json.Marshal(o.Payload) - return fmt.Sprintf("[GET /metrics/][%d] getMetricsOK %s", 200, payload) -} - -func (o *GetMetricsOK) String() string { - payload, _ := json.Marshal(o.Payload) - return fmt.Sprintf("[GET /metrics/][%d] getMetricsOK %s", 200, payload) -} - -func (o *GetMetricsOK) GetPayload() []*models.Metric { - return o.Payload -} - -func (o *GetMetricsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - // response payload - if err := consumer.Consume(response.Body(), &o.Payload); err != nil && err != io.EOF { - return err - } - - return nil -} - -// NewGetMetricsInternalServerError creates a GetMetricsInternalServerError with default headers values -func NewGetMetricsInternalServerError() *GetMetricsInternalServerError { - return &GetMetricsInternalServerError{} -} - -/* -GetMetricsInternalServerError describes a response with status code 500, with default header values. - -Metrics cannot be retrieved -*/ -type GetMetricsInternalServerError struct { -} - -// IsSuccess returns true when this get metrics internal server error response has a 2xx status code -func (o *GetMetricsInternalServerError) IsSuccess() bool { - return false -} - -// IsRedirect returns true when this get metrics internal server error response has a 3xx status code -func (o *GetMetricsInternalServerError) IsRedirect() bool { - return false -} - -// IsClientError returns true when this get metrics internal server error response has a 4xx status code -func (o *GetMetricsInternalServerError) IsClientError() bool { - return false -} - -// IsServerError returns true when this get metrics internal server error response has a 5xx status code -func (o *GetMetricsInternalServerError) IsServerError() bool { - return true -} - -// IsCode returns true when this get metrics internal server error response a status code equal to that given -func (o *GetMetricsInternalServerError) IsCode(code int) bool { - return code == 500 -} - -// Code gets the status code for the get metrics internal server error response -func (o *GetMetricsInternalServerError) Code() int { - return 500 -} - -func (o *GetMetricsInternalServerError) Error() string { - return fmt.Sprintf("[GET /metrics/][%d] getMetricsInternalServerError", 500) -} - -func (o *GetMetricsInternalServerError) String() string { - return fmt.Sprintf("[GET /metrics/][%d] getMetricsInternalServerError", 500) -} - -func (o *GetMetricsInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { - - return nil -} diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/client/metrics/metrics_client.go b/backend/vendor/github.com/cilium/cilium/api/v1/client/metrics/metrics_client.go deleted file mode 100644 index 68f31f59f..000000000 --- a/backend/vendor/github.com/cilium/cilium/api/v1/client/metrics/metrics_client.go +++ /dev/null @@ -1,108 +0,0 @@ -// Code generated by go-swagger; DO NOT EDIT. - -// Copyright Authors of Cilium -// SPDX-License-Identifier: Apache-2.0 - -package metrics - -// This file was generated by the swagger tool. -// Editing this file might prove futile when you re-run the swagger generate command - -import ( - "fmt" - - "github.com/go-openapi/runtime" - httptransport "github.com/go-openapi/runtime/client" - "github.com/go-openapi/strfmt" -) - -// New creates a new metrics API client. -func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService { - return &Client{transport: transport, formats: formats} -} - -// New creates a new metrics API client with basic auth credentials. -// It takes the following parameters: -// - host: http host (github.com). -// - basePath: any base path for the API client ("/v1", "/v3"). -// - scheme: http scheme ("http", "https"). -// - user: user for basic authentication header. -// - password: password for basic authentication header. -func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService { - transport := httptransport.New(host, basePath, []string{scheme}) - transport.DefaultAuthentication = httptransport.BasicAuth(user, password) - return &Client{transport: transport, formats: strfmt.Default} -} - -// New creates a new metrics API client with a bearer token for authentication. -// It takes the following parameters: -// - host: http host (github.com). -// - basePath: any base path for the API client ("/v1", "/v3"). -// - scheme: http scheme ("http", "https"). -// - bearerToken: bearer token for Bearer authentication header. -func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService { - transport := httptransport.New(host, basePath, []string{scheme}) - transport.DefaultAuthentication = httptransport.BearerToken(bearerToken) - return &Client{transport: transport, formats: strfmt.Default} -} - -/* -Client for metrics API -*/ -type Client struct { - transport runtime.ClientTransport - formats strfmt.Registry -} - -// ClientOption may be used to customize the behavior of Client methods. -type ClientOption func(*runtime.ClientOperation) - -// ClientService is the interface for Client methods -type ClientService interface { - GetMetrics(params *GetMetricsParams, opts ...ClientOption) (*GetMetricsOK, error) - - SetTransport(transport runtime.ClientTransport) -} - -/* -GetMetrics retrieves cilium metrics -*/ -func (a *Client) GetMetrics(params *GetMetricsParams, opts ...ClientOption) (*GetMetricsOK, error) { - // TODO: Validate the params before sending - if params == nil { - params = NewGetMetricsParams() - } - op := &runtime.ClientOperation{ - ID: "GetMetrics", - Method: "GET", - PathPattern: "/metrics/", - ProducesMediaTypes: []string{"application/json"}, - ConsumesMediaTypes: []string{"application/json"}, - Schemes: []string{"http"}, - Params: params, - Reader: &GetMetricsReader{formats: a.formats}, - Context: params.Context, - Client: params.HTTPClient, - } - for _, opt := range opts { - opt(op) - } - - result, err := a.transport.Submit(op) - if err != nil { - return nil, err - } - success, ok := result.(*GetMetricsOK) - if ok { - return success, nil - } - // unexpected success response - // safeguard: normally, absent a default response, unknown success responses return an error above: so this is a codegen issue - msg := fmt.Sprintf("unexpected success response for GetMetrics: API contract not enforced by server. Client expected to get an error, but got: %T", result) - panic(msg) -} - -// SetTransport changes the transport on the client -func (a *Client) SetTransport(transport runtime.ClientTransport) { - a.transport = transport -} diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/client/policy/get_ip_parameters.go b/backend/vendor/github.com/cilium/cilium/api/v1/client/policy/get_ip_parameters.go index 2f7c23112..c692c1972 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/client/policy/get_ip_parameters.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/client/policy/get_ip_parameters.go @@ -17,6 +17,8 @@ import ( "github.com/go-openapi/runtime" cr "github.com/go-openapi/runtime/client" "github.com/go-openapi/strfmt" + + "github.com/cilium/cilium/api/v1/models" ) // NewGetIPParams creates a new GetIPParams object, @@ -70,6 +72,13 @@ type GetIPParams struct { */ Cidr *string + /* Labels. + + List of labels + + */ + Labels models.Labels + timeout time.Duration Context context.Context HTTPClient *http.Client @@ -134,6 +143,17 @@ func (o *GetIPParams) SetCidr(cidr *string) { o.Cidr = cidr } +// WithLabels adds the labels to the get IP params +func (o *GetIPParams) WithLabels(labels models.Labels) *GetIPParams { + o.SetLabels(labels) + return o +} + +// SetLabels adds the labels to the get IP params +func (o *GetIPParams) SetLabels(labels models.Labels) { + o.Labels = labels +} + // WriteToRequest writes these params to a swagger request func (o *GetIPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error { @@ -158,6 +178,11 @@ func (o *GetIPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registr } } } + if o.Labels != nil { + if err := r.SetBodyParam(o.Labels); err != nil { + return err + } + } if len(res) > 0 { return errors.CompositeValidationError(res...) diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/flow/README.md b/backend/vendor/github.com/cilium/cilium/api/v1/flow/README.md index da6549dd3..aa37e84a0 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/flow/README.md +++ b/backend/vendor/github.com/cilium/cilium/api/v1/flow/README.md @@ -14,6 +14,7 @@ - [EndpointUpdateNotification](#flow-EndpointUpdateNotification) - [Ethernet](#flow-Ethernet) - [EventTypeFilter](#flow-EventTypeFilter) + - [FileInfo](#flow-FileInfo) - [Flow](#flow-Flow) - [FlowFilter](#flow-FlowFilter) - [FlowFilter.Experimental](#flow-FlowFilter-Experimental) @@ -259,6 +260,22 @@ EventTypeFilter is a filter describing a particular event type. + + +### FileInfo + + + +| Field | Type | Label | Description | +| ----- | ---- | ----- | ----------- | +| name | [string](#string) | | | +| line | [uint32](#uint32) | | | + + + + + + ### Flow @@ -291,6 +308,7 @@ EventTypeFilter is a filter describing a particular event type. | policy_match_type | [uint32](#uint32) | | policy_match_type is only applicable to the cilium event type PolicyVerdict https://github.com/cilium/cilium/blob/e831859b5cc336c6d964a6d35bbd34d1840e21b9/pkg/monitor/datapath_policy.go#L50 | | trace_observation_point | [TraceObservationPoint](#flow-TraceObservationPoint) | | Only applicable to cilium trace notifications, blank for other types. | | trace_reason | [TraceReason](#flow-TraceReason) | | Cilium datapath trace reason info. | +| file | [FileInfo](#flow-FileInfo) | | Cilium datapath filename and line number. Currently only applicable when Verdict = DROPPED. | | drop_reason_desc | [DropReason](#flow-DropReason) | | only applicable to Verdict = DROPPED. | | is_reply | [google.protobuf.BoolValue](#google-protobuf-BoolValue) | | is_reply indicates that this was a packet (L4) or message (L7) in the reply direction. May be absent (in which case it is unknown whether it is a reply or not). | | debug_capture_point | [DebugCapturePoint](#flow-DebugCapturePoint) | | Only applicable to cilium debug capture events, blank for other types | @@ -329,12 +347,14 @@ multiple fields are set, then all fields must match for the filter to match. | source_label | [string](#string) | repeated | source_labels filters on a list of source label selectors. Selectors support the full Kubernetes label selector syntax. | | source_service | [string](#string) | repeated | source_service filters on a list of source service names. This field supports the same syntax as the source_pod field. | | source_workload | [Workload](#flow-Workload) | repeated | source_workload filters by a list of source workload. | +| source_cluster_name | [string](#string) | repeated | source_cluster_name filters by a list of source cluster names. | | destination_ip | [string](#string) | repeated | destination_ip filters by a list of destination ips. Each of the destination ips can be specified as an exact match (e.g. "1.1.1.1") or as a CIDR range (e.g. "1.1.1.0/24"). | | destination_pod | [string](#string) | repeated | destination_pod filters by a list of destination pod names | | destination_fqdn | [string](#string) | repeated | destination_fqdn filters by a list of destination fully qualified domain names | | destination_label | [string](#string) | repeated | destination_label filters on a list of destination label selectors | | destination_service | [string](#string) | repeated | destination_service filters on a list of destination service names | | destination_workload | [Workload](#flow-Workload) | repeated | destination_workload filters by a list of destination workload. | +| destination_cluster_name | [string](#string) | repeated | destination_cluster_name filters by a list of destination cluster names. | | traffic_direction | [TrafficDirection](#flow-TrafficDirection) | repeated | traffic_direction filters flow by direction of the connection, e.g. ingress or egress. | | verdict | [Verdict](#flow-Verdict) | repeated | only return Flows that were classified with a particular verdict. | | drop_reason_desc | [DropReason](#flow-DropReason) | repeated | only applicable to Verdict = DROPPED (e.g. "POLICY_DENIED", "UNSUPPORTED_L3_PROTOCOL") | @@ -456,7 +476,7 @@ L7 information for HTTP flows. It corresponds to Cilium's [accesslog.LogReco | Field | Type | Label | Description | | ----- | ---- | ----- | ----------- | | source | [string](#string) | | | -| source_xlated | [string](#string) | | source_xlated is the post translation source IP when the flow was SNATed (and in that case source is the the original source IP). | +| source_xlated | [string](#string) | | source_xlated is the post-translation source IP when the flow was SNATed. When "source_xlated" is set, the "source" field is populated with the pre-translation source IP address. | | destination | [string](#string) | | | | ipVersion | [IPVersion](#flow-IPVersion) | | | | encrypted | [bool](#bool) | | This field indicates whether the TraceReasonEncryptMask is set or not. https://github.com/cilium/cilium/blob/ba0ed147bd5bb342f67b1794c2ad13c6e99d5236/pkg/monitor/datapath_trace.go#L27 | @@ -591,6 +611,7 @@ that happened before the events were captured by Hubble. | namespace | [string](#string) | | | | labels | [string](#string) | repeated | | | revision | [uint64](#uint64) | | | +| kind | [string](#string) | | | @@ -1035,7 +1056,7 @@ here. | IGMP_SUBSCRIBED | 200 | | | MULTICAST_HANDLED | 201 | | | DROP_HOST_NOT_READY | 202 | A BPF program wants to tail call into bpf_host, but the host datapath hasn't been loaded yet. | -| DROP_EP_NOT_READY | 203 | A BPF program wants to tail call some endpoint's policy program in the POLICY_CALL_MAP, but the program is not available. | +| DROP_EP_NOT_READY | 203 | A BPF program wants to tail call some endpoint's policy program in cilium_call_policy, but the program is not available. | | DROP_NO_EGRESS_IP | 204 | An Egress Gateway node matched a packet against an Egress Gateway policy that didn't select a valid Egress IP. | diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/flow/flow.pb.go b/backend/vendor/github.com/cilium/cilium/api/v1/flow/flow.pb.go index 08c6ef512..8038657a7 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/flow/flow.pb.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/flow/flow.pb.go @@ -571,8 +571,8 @@ const ( // A BPF program wants to tail call into bpf_host, but the host datapath // hasn't been loaded yet. DropReason_DROP_HOST_NOT_READY DropReason = 202 - // A BPF program wants to tail call some endpoint's policy program in the - // POLICY_CALL_MAP, but the program is not available. + // A BPF program wants to tail call some endpoint's policy program in + // cilium_call_policy, but the program is not available. DropReason_DROP_EP_NOT_READY DropReason = 203 // An Egress Gateway node matched a packet against an Egress Gateway policy // that didn't select a valid Egress IP. @@ -1423,6 +1423,9 @@ type Flow struct { TraceObservationPoint TraceObservationPoint `protobuf:"varint,24,opt,name=trace_observation_point,json=traceObservationPoint,proto3,enum=flow.TraceObservationPoint" json:"trace_observation_point,omitempty"` // Cilium datapath trace reason info. TraceReason TraceReason `protobuf:"varint,36,opt,name=trace_reason,json=traceReason,proto3,enum=flow.TraceReason" json:"trace_reason,omitempty"` + // Cilium datapath filename and line number. Currently only applicable when + // Verdict = DROPPED. + File *FileInfo `protobuf:"bytes,38,opt,name=file,proto3" json:"file,omitempty"` // only applicable to Verdict = DROPPED. DropReasonDesc DropReason `protobuf:"varint,25,opt,name=drop_reason_desc,json=dropReasonDesc,proto3,enum=flow.DropReason" json:"drop_reason_desc,omitempty"` // is_reply indicates that this was a packet (L4) or message (L7) in the @@ -1669,6 +1672,13 @@ func (x *Flow) GetTraceReason() TraceReason { return TraceReason_TRACE_REASON_UNKNOWN } +func (x *Flow) GetFile() *FileInfo { + if x != nil { + return x.File + } + return nil +} + func (x *Flow) GetDropReasonDesc() DropReason { if x != nil { return x.DropReasonDesc @@ -1775,6 +1785,58 @@ func (x *Flow) GetIngressDeniedBy() []*Policy { return nil } +type FileInfo struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Line uint32 `protobuf:"varint,2,opt,name=line,proto3" json:"line,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FileInfo) Reset() { + *x = FileInfo{} + mi := &file_flow_flow_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FileInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FileInfo) ProtoMessage() {} + +func (x *FileInfo) ProtoReflect() protoreflect.Message { + mi := &file_flow_flow_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FileInfo.ProtoReflect.Descriptor instead. +func (*FileInfo) Descriptor() ([]byte, []int) { + return file_flow_flow_proto_rawDescGZIP(), []int{1} +} + +func (x *FileInfo) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *FileInfo) GetLine() uint32 { + if x != nil { + return x.Line + } + return 0 +} + type Layer4 struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Protocol: @@ -1791,7 +1853,7 @@ type Layer4 struct { func (x *Layer4) Reset() { *x = Layer4{} - mi := &file_flow_flow_proto_msgTypes[1] + mi := &file_flow_flow_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1803,7 +1865,7 @@ func (x *Layer4) String() string { func (*Layer4) ProtoMessage() {} func (x *Layer4) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[1] + mi := &file_flow_flow_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1816,7 +1878,7 @@ func (x *Layer4) ProtoReflect() protoreflect.Message { // Deprecated: Use Layer4.ProtoReflect.Descriptor instead. func (*Layer4) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{1} + return file_flow_flow_proto_rawDescGZIP(), []int{2} } func (x *Layer4) GetProtocol() isLayer4_Protocol { @@ -1926,7 +1988,7 @@ type Layer7 struct { func (x *Layer7) Reset() { *x = Layer7{} - mi := &file_flow_flow_proto_msgTypes[2] + mi := &file_flow_flow_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1938,7 +2000,7 @@ func (x *Layer7) String() string { func (*Layer7) ProtoMessage() {} func (x *Layer7) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[2] + mi := &file_flow_flow_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1951,7 +2013,7 @@ func (x *Layer7) ProtoReflect() protoreflect.Message { // Deprecated: Use Layer7.ProtoReflect.Descriptor instead. func (*Layer7) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{2} + return file_flow_flow_proto_rawDescGZIP(), []int{3} } func (x *Layer7) GetType() L7FlowType { @@ -2037,7 +2099,7 @@ type TraceContext struct { func (x *TraceContext) Reset() { *x = TraceContext{} - mi := &file_flow_flow_proto_msgTypes[3] + mi := &file_flow_flow_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2049,7 +2111,7 @@ func (x *TraceContext) String() string { func (*TraceContext) ProtoMessage() {} func (x *TraceContext) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[3] + mi := &file_flow_flow_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2062,7 +2124,7 @@ func (x *TraceContext) ProtoReflect() protoreflect.Message { // Deprecated: Use TraceContext.ProtoReflect.Descriptor instead. func (*TraceContext) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{3} + return file_flow_flow_proto_rawDescGZIP(), []int{4} } func (x *TraceContext) GetParent() *TraceParent { @@ -2084,7 +2146,7 @@ type TraceParent struct { func (x *TraceParent) Reset() { *x = TraceParent{} - mi := &file_flow_flow_proto_msgTypes[4] + mi := &file_flow_flow_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2096,7 +2158,7 @@ func (x *TraceParent) String() string { func (*TraceParent) ProtoMessage() {} func (x *TraceParent) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[4] + mi := &file_flow_flow_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2109,7 +2171,7 @@ func (x *TraceParent) ProtoReflect() protoreflect.Message { // Deprecated: Use TraceParent.ProtoReflect.Descriptor instead. func (*TraceParent) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{4} + return file_flow_flow_proto_rawDescGZIP(), []int{5} } func (x *TraceParent) GetTraceId() string { @@ -2135,7 +2197,7 @@ type Endpoint struct { func (x *Endpoint) Reset() { *x = Endpoint{} - mi := &file_flow_flow_proto_msgTypes[5] + mi := &file_flow_flow_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2147,7 +2209,7 @@ func (x *Endpoint) String() string { func (*Endpoint) ProtoMessage() {} func (x *Endpoint) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[5] + mi := &file_flow_flow_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2160,7 +2222,7 @@ func (x *Endpoint) ProtoReflect() protoreflect.Message { // Deprecated: Use Endpoint.ProtoReflect.Descriptor instead. func (*Endpoint) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{5} + return file_flow_flow_proto_rawDescGZIP(), []int{6} } func (x *Endpoint) GetID() uint32 { @@ -2222,7 +2284,7 @@ type Workload struct { func (x *Workload) Reset() { *x = Workload{} - mi := &file_flow_flow_proto_msgTypes[6] + mi := &file_flow_flow_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2234,7 +2296,7 @@ func (x *Workload) String() string { func (*Workload) ProtoMessage() {} func (x *Workload) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[6] + mi := &file_flow_flow_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2247,7 +2309,7 @@ func (x *Workload) ProtoReflect() protoreflect.Message { // Deprecated: Use Workload.ProtoReflect.Descriptor instead. func (*Workload) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{6} + return file_flow_flow_proto_rawDescGZIP(), []int{7} } func (x *Workload) GetName() string { @@ -2275,7 +2337,7 @@ type TCP struct { func (x *TCP) Reset() { *x = TCP{} - mi := &file_flow_flow_proto_msgTypes[7] + mi := &file_flow_flow_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2287,7 +2349,7 @@ func (x *TCP) String() string { func (*TCP) ProtoMessage() {} func (x *TCP) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[7] + mi := &file_flow_flow_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2300,7 +2362,7 @@ func (x *TCP) ProtoReflect() protoreflect.Message { // Deprecated: Use TCP.ProtoReflect.Descriptor instead. func (*TCP) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{7} + return file_flow_flow_proto_rawDescGZIP(), []int{8} } func (x *TCP) GetSourcePort() uint32 { @@ -2327,8 +2389,9 @@ func (x *TCP) GetFlags() *TCPFlags { type IP struct { state protoimpl.MessageState `protogen:"open.v1"` Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` - // source_xlated is the post translation source IP when the flow was SNATed - // (and in that case source is the the original source IP). + // source_xlated is the post-translation source IP when the flow was + // SNATed. When "source_xlated" is set, the "source" field is populated + // with the pre-translation source IP address. SourceXlated string `protobuf:"bytes,5,opt,name=source_xlated,json=sourceXlated,proto3" json:"source_xlated,omitempty"` Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"` IpVersion IPVersion `protobuf:"varint,3,opt,name=ipVersion,proto3,enum=flow.IPVersion" json:"ipVersion,omitempty"` @@ -2341,7 +2404,7 @@ type IP struct { func (x *IP) Reset() { *x = IP{} - mi := &file_flow_flow_proto_msgTypes[8] + mi := &file_flow_flow_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2353,7 +2416,7 @@ func (x *IP) String() string { func (*IP) ProtoMessage() {} func (x *IP) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[8] + mi := &file_flow_flow_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2366,7 +2429,7 @@ func (x *IP) ProtoReflect() protoreflect.Message { // Deprecated: Use IP.ProtoReflect.Descriptor instead. func (*IP) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{8} + return file_flow_flow_proto_rawDescGZIP(), []int{9} } func (x *IP) GetSource() string { @@ -2414,7 +2477,7 @@ type Ethernet struct { func (x *Ethernet) Reset() { *x = Ethernet{} - mi := &file_flow_flow_proto_msgTypes[9] + mi := &file_flow_flow_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2426,7 +2489,7 @@ func (x *Ethernet) String() string { func (*Ethernet) ProtoMessage() {} func (x *Ethernet) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[9] + mi := &file_flow_flow_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2439,7 +2502,7 @@ func (x *Ethernet) ProtoReflect() protoreflect.Message { // Deprecated: Use Ethernet.ProtoReflect.Descriptor instead. func (*Ethernet) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{9} + return file_flow_flow_proto_rawDescGZIP(), []int{10} } func (x *Ethernet) GetSource() string { @@ -2473,7 +2536,7 @@ type TCPFlags struct { func (x *TCPFlags) Reset() { *x = TCPFlags{} - mi := &file_flow_flow_proto_msgTypes[10] + mi := &file_flow_flow_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2485,7 +2548,7 @@ func (x *TCPFlags) String() string { func (*TCPFlags) ProtoMessage() {} func (x *TCPFlags) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[10] + mi := &file_flow_flow_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2498,7 +2561,7 @@ func (x *TCPFlags) ProtoReflect() protoreflect.Message { // Deprecated: Use TCPFlags.ProtoReflect.Descriptor instead. func (*TCPFlags) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{10} + return file_flow_flow_proto_rawDescGZIP(), []int{11} } func (x *TCPFlags) GetFIN() bool { @@ -2574,7 +2637,7 @@ type UDP struct { func (x *UDP) Reset() { *x = UDP{} - mi := &file_flow_flow_proto_msgTypes[11] + mi := &file_flow_flow_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2586,7 +2649,7 @@ func (x *UDP) String() string { func (*UDP) ProtoMessage() {} func (x *UDP) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[11] + mi := &file_flow_flow_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2599,7 +2662,7 @@ func (x *UDP) ProtoReflect() protoreflect.Message { // Deprecated: Use UDP.ProtoReflect.Descriptor instead. func (*UDP) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{11} + return file_flow_flow_proto_rawDescGZIP(), []int{12} } func (x *UDP) GetSourcePort() uint32 { @@ -2626,7 +2689,7 @@ type SCTP struct { func (x *SCTP) Reset() { *x = SCTP{} - mi := &file_flow_flow_proto_msgTypes[12] + mi := &file_flow_flow_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2638,7 +2701,7 @@ func (x *SCTP) String() string { func (*SCTP) ProtoMessage() {} func (x *SCTP) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[12] + mi := &file_flow_flow_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2651,7 +2714,7 @@ func (x *SCTP) ProtoReflect() protoreflect.Message { // Deprecated: Use SCTP.ProtoReflect.Descriptor instead. func (*SCTP) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{12} + return file_flow_flow_proto_rawDescGZIP(), []int{13} } func (x *SCTP) GetSourcePort() uint32 { @@ -2678,7 +2741,7 @@ type ICMPv4 struct { func (x *ICMPv4) Reset() { *x = ICMPv4{} - mi := &file_flow_flow_proto_msgTypes[13] + mi := &file_flow_flow_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2690,7 +2753,7 @@ func (x *ICMPv4) String() string { func (*ICMPv4) ProtoMessage() {} func (x *ICMPv4) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[13] + mi := &file_flow_flow_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2703,7 +2766,7 @@ func (x *ICMPv4) ProtoReflect() protoreflect.Message { // Deprecated: Use ICMPv4.ProtoReflect.Descriptor instead. func (*ICMPv4) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{13} + return file_flow_flow_proto_rawDescGZIP(), []int{14} } func (x *ICMPv4) GetType() uint32 { @@ -2730,7 +2793,7 @@ type ICMPv6 struct { func (x *ICMPv6) Reset() { *x = ICMPv6{} - mi := &file_flow_flow_proto_msgTypes[14] + mi := &file_flow_flow_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2742,7 +2805,7 @@ func (x *ICMPv6) String() string { func (*ICMPv6) ProtoMessage() {} func (x *ICMPv6) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[14] + mi := &file_flow_flow_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2755,7 +2818,7 @@ func (x *ICMPv6) ProtoReflect() protoreflect.Message { // Deprecated: Use ICMPv6.ProtoReflect.Descriptor instead. func (*ICMPv6) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{14} + return file_flow_flow_proto_rawDescGZIP(), []int{15} } func (x *ICMPv6) GetType() uint32 { @@ -2778,13 +2841,14 @@ type Policy struct { Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` Labels []string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"` Revision uint64 `protobuf:"varint,4,opt,name=revision,proto3" json:"revision,omitempty"` + Kind string `protobuf:"bytes,5,opt,name=kind,proto3" json:"kind,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Policy) Reset() { *x = Policy{} - mi := &file_flow_flow_proto_msgTypes[15] + mi := &file_flow_flow_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2796,7 +2860,7 @@ func (x *Policy) String() string { func (*Policy) ProtoMessage() {} func (x *Policy) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[15] + mi := &file_flow_flow_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2809,7 +2873,7 @@ func (x *Policy) ProtoReflect() protoreflect.Message { // Deprecated: Use Policy.ProtoReflect.Descriptor instead. func (*Policy) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{15} + return file_flow_flow_proto_rawDescGZIP(), []int{16} } func (x *Policy) GetName() string { @@ -2840,6 +2904,13 @@ func (x *Policy) GetRevision() uint64 { return 0 } +func (x *Policy) GetKind() string { + if x != nil { + return x.Kind + } + return "" +} + // EventTypeFilter is a filter describing a particular event type. type EventTypeFilter struct { state protoimpl.MessageState `protogen:"open.v1"` @@ -2858,7 +2929,7 @@ type EventTypeFilter struct { func (x *EventTypeFilter) Reset() { *x = EventTypeFilter{} - mi := &file_flow_flow_proto_msgTypes[16] + mi := &file_flow_flow_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2870,7 +2941,7 @@ func (x *EventTypeFilter) String() string { func (*EventTypeFilter) ProtoMessage() {} func (x *EventTypeFilter) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[16] + mi := &file_flow_flow_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2883,7 +2954,7 @@ func (x *EventTypeFilter) ProtoReflect() protoreflect.Message { // Deprecated: Use EventTypeFilter.ProtoReflect.Descriptor instead. func (*EventTypeFilter) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{16} + return file_flow_flow_proto_rawDescGZIP(), []int{17} } func (x *EventTypeFilter) GetType() int32 { @@ -2924,7 +2995,7 @@ type CiliumEventType struct { func (x *CiliumEventType) Reset() { *x = CiliumEventType{} - mi := &file_flow_flow_proto_msgTypes[17] + mi := &file_flow_flow_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2936,7 +3007,7 @@ func (x *CiliumEventType) String() string { func (*CiliumEventType) ProtoMessage() {} func (x *CiliumEventType) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[17] + mi := &file_flow_flow_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2949,7 +3020,7 @@ func (x *CiliumEventType) ProtoReflect() protoreflect.Message { // Deprecated: Use CiliumEventType.ProtoReflect.Descriptor instead. func (*CiliumEventType) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{17} + return file_flow_flow_proto_rawDescGZIP(), []int{18} } func (x *CiliumEventType) GetType() int32 { @@ -2996,6 +3067,8 @@ type FlowFilter struct { SourceService []string `protobuf:"bytes,16,rep,name=source_service,json=sourceService,proto3" json:"source_service,omitempty"` // source_workload filters by a list of source workload. SourceWorkload []*Workload `protobuf:"bytes,26,rep,name=source_workload,json=sourceWorkload,proto3" json:"source_workload,omitempty"` + // source_cluster_name filters by a list of source cluster names. + SourceClusterName []string `protobuf:"bytes,37,rep,name=source_cluster_name,json=sourceClusterName,proto3" json:"source_cluster_name,omitempty"` // destination_ip filters by a list of destination ips. Each of the // destination ips can be specified as an exact match (e.g. "1.1.1.1") or // as a CIDR range (e.g. "1.1.1.0/24"). @@ -3010,6 +3083,8 @@ type FlowFilter struct { DestinationService []string `protobuf:"bytes,17,rep,name=destination_service,json=destinationService,proto3" json:"destination_service,omitempty"` // destination_workload filters by a list of destination workload. DestinationWorkload []*Workload `protobuf:"bytes,27,rep,name=destination_workload,json=destinationWorkload,proto3" json:"destination_workload,omitempty"` + // destination_cluster_name filters by a list of destination cluster names. + DestinationClusterName []string `protobuf:"bytes,38,rep,name=destination_cluster_name,json=destinationClusterName,proto3" json:"destination_cluster_name,omitempty"` // traffic_direction filters flow by direction of the connection, e.g. // ingress or egress. TrafficDirection []TrafficDirection `protobuf:"varint,30,rep,packed,name=traffic_direction,json=trafficDirection,proto3,enum=flow.TrafficDirection" json:"traffic_direction,omitempty"` @@ -3068,7 +3143,7 @@ type FlowFilter struct { func (x *FlowFilter) Reset() { *x = FlowFilter{} - mi := &file_flow_flow_proto_msgTypes[18] + mi := &file_flow_flow_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3080,7 +3155,7 @@ func (x *FlowFilter) String() string { func (*FlowFilter) ProtoMessage() {} func (x *FlowFilter) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[18] + mi := &file_flow_flow_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3093,7 +3168,7 @@ func (x *FlowFilter) ProtoReflect() protoreflect.Message { // Deprecated: Use FlowFilter.ProtoReflect.Descriptor instead. func (*FlowFilter) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{18} + return file_flow_flow_proto_rawDescGZIP(), []int{19} } func (x *FlowFilter) GetUuid() []string { @@ -3152,6 +3227,13 @@ func (x *FlowFilter) GetSourceWorkload() []*Workload { return nil } +func (x *FlowFilter) GetSourceClusterName() []string { + if x != nil { + return x.SourceClusterName + } + return nil +} + func (x *FlowFilter) GetDestinationIp() []string { if x != nil { return x.DestinationIp @@ -3194,6 +3276,13 @@ func (x *FlowFilter) GetDestinationWorkload() []*Workload { return nil } +func (x *FlowFilter) GetDestinationClusterName() []string { + if x != nil { + return x.DestinationClusterName + } + return nil +} + func (x *FlowFilter) GetTrafficDirection() []TrafficDirection { if x != nil { return x.TrafficDirection @@ -3387,7 +3476,7 @@ type DNS struct { func (x *DNS) Reset() { *x = DNS{} - mi := &file_flow_flow_proto_msgTypes[19] + mi := &file_flow_flow_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3399,7 +3488,7 @@ func (x *DNS) String() string { func (*DNS) ProtoMessage() {} func (x *DNS) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[19] + mi := &file_flow_flow_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3412,7 +3501,7 @@ func (x *DNS) ProtoReflect() protoreflect.Message { // Deprecated: Use DNS.ProtoReflect.Descriptor instead. func (*DNS) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{19} + return file_flow_flow_proto_rawDescGZIP(), []int{20} } func (x *DNS) GetQuery() string { @@ -3481,7 +3570,7 @@ type HTTPHeader struct { func (x *HTTPHeader) Reset() { *x = HTTPHeader{} - mi := &file_flow_flow_proto_msgTypes[20] + mi := &file_flow_flow_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3493,7 +3582,7 @@ func (x *HTTPHeader) String() string { func (*HTTPHeader) ProtoMessage() {} func (x *HTTPHeader) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[20] + mi := &file_flow_flow_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3506,7 +3595,7 @@ func (x *HTTPHeader) ProtoReflect() protoreflect.Message { // Deprecated: Use HTTPHeader.ProtoReflect.Descriptor instead. func (*HTTPHeader) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{20} + return file_flow_flow_proto_rawDescGZIP(), []int{21} } func (x *HTTPHeader) GetKey() string { @@ -3537,7 +3626,7 @@ type HTTP struct { func (x *HTTP) Reset() { *x = HTTP{} - mi := &file_flow_flow_proto_msgTypes[21] + mi := &file_flow_flow_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3549,7 +3638,7 @@ func (x *HTTP) String() string { func (*HTTP) ProtoMessage() {} func (x *HTTP) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[21] + mi := &file_flow_flow_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3562,7 +3651,7 @@ func (x *HTTP) ProtoReflect() protoreflect.Message { // Deprecated: Use HTTP.ProtoReflect.Descriptor instead. func (*HTTP) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{21} + return file_flow_flow_proto_rawDescGZIP(), []int{22} } func (x *HTTP) GetCode() uint32 { @@ -3614,7 +3703,7 @@ type Kafka struct { func (x *Kafka) Reset() { *x = Kafka{} - mi := &file_flow_flow_proto_msgTypes[22] + mi := &file_flow_flow_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3626,7 +3715,7 @@ func (x *Kafka) String() string { func (*Kafka) ProtoMessage() {} func (x *Kafka) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[22] + mi := &file_flow_flow_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3639,7 +3728,7 @@ func (x *Kafka) ProtoReflect() protoreflect.Message { // Deprecated: Use Kafka.ProtoReflect.Descriptor instead. func (*Kafka) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{22} + return file_flow_flow_proto_rawDescGZIP(), []int{23} } func (x *Kafka) GetErrorCode() int32 { @@ -3687,7 +3776,7 @@ type Service struct { func (x *Service) Reset() { *x = Service{} - mi := &file_flow_flow_proto_msgTypes[23] + mi := &file_flow_flow_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3699,7 +3788,7 @@ func (x *Service) String() string { func (*Service) ProtoMessage() {} func (x *Service) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[23] + mi := &file_flow_flow_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3712,7 +3801,7 @@ func (x *Service) ProtoReflect() protoreflect.Message { // Deprecated: Use Service.ProtoReflect.Descriptor instead. func (*Service) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{23} + return file_flow_flow_proto_rawDescGZIP(), []int{24} } func (x *Service) GetName() string { @@ -3746,7 +3835,7 @@ type LostEvent struct { func (x *LostEvent) Reset() { *x = LostEvent{} - mi := &file_flow_flow_proto_msgTypes[24] + mi := &file_flow_flow_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3758,7 +3847,7 @@ func (x *LostEvent) String() string { func (*LostEvent) ProtoMessage() {} func (x *LostEvent) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[24] + mi := &file_flow_flow_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3771,7 +3860,7 @@ func (x *LostEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use LostEvent.ProtoReflect.Descriptor instead. func (*LostEvent) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{24} + return file_flow_flow_proto_rawDescGZIP(), []int{25} } func (x *LostEvent) GetSource() LostEventSource { @@ -3815,7 +3904,7 @@ type AgentEvent struct { func (x *AgentEvent) Reset() { *x = AgentEvent{} - mi := &file_flow_flow_proto_msgTypes[25] + mi := &file_flow_flow_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -3827,7 +3916,7 @@ func (x *AgentEvent) String() string { func (*AgentEvent) ProtoMessage() {} func (x *AgentEvent) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[25] + mi := &file_flow_flow_proto_msgTypes[26] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3840,7 +3929,7 @@ func (x *AgentEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use AgentEvent.ProtoReflect.Descriptor instead. func (*AgentEvent) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{25} + return file_flow_flow_proto_rawDescGZIP(), []int{26} } func (x *AgentEvent) GetType() AgentEventType { @@ -3995,7 +4084,7 @@ type AgentEventUnknown struct { func (x *AgentEventUnknown) Reset() { *x = AgentEventUnknown{} - mi := &file_flow_flow_proto_msgTypes[26] + mi := &file_flow_flow_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4007,7 +4096,7 @@ func (x *AgentEventUnknown) String() string { func (*AgentEventUnknown) ProtoMessage() {} func (x *AgentEventUnknown) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[26] + mi := &file_flow_flow_proto_msgTypes[27] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4020,7 +4109,7 @@ func (x *AgentEventUnknown) ProtoReflect() protoreflect.Message { // Deprecated: Use AgentEventUnknown.ProtoReflect.Descriptor instead. func (*AgentEventUnknown) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{26} + return file_flow_flow_proto_rawDescGZIP(), []int{27} } func (x *AgentEventUnknown) GetType() string { @@ -4046,7 +4135,7 @@ type TimeNotification struct { func (x *TimeNotification) Reset() { *x = TimeNotification{} - mi := &file_flow_flow_proto_msgTypes[27] + mi := &file_flow_flow_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4058,7 +4147,7 @@ func (x *TimeNotification) String() string { func (*TimeNotification) ProtoMessage() {} func (x *TimeNotification) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[27] + mi := &file_flow_flow_proto_msgTypes[28] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4071,7 +4160,7 @@ func (x *TimeNotification) ProtoReflect() protoreflect.Message { // Deprecated: Use TimeNotification.ProtoReflect.Descriptor instead. func (*TimeNotification) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{27} + return file_flow_flow_proto_rawDescGZIP(), []int{28} } func (x *TimeNotification) GetTime() *timestamppb.Timestamp { @@ -4092,7 +4181,7 @@ type PolicyUpdateNotification struct { func (x *PolicyUpdateNotification) Reset() { *x = PolicyUpdateNotification{} - mi := &file_flow_flow_proto_msgTypes[28] + mi := &file_flow_flow_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4104,7 +4193,7 @@ func (x *PolicyUpdateNotification) String() string { func (*PolicyUpdateNotification) ProtoMessage() {} func (x *PolicyUpdateNotification) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[28] + mi := &file_flow_flow_proto_msgTypes[29] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4117,7 +4206,7 @@ func (x *PolicyUpdateNotification) ProtoReflect() protoreflect.Message { // Deprecated: Use PolicyUpdateNotification.ProtoReflect.Descriptor instead. func (*PolicyUpdateNotification) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{28} + return file_flow_flow_proto_rawDescGZIP(), []int{29} } func (x *PolicyUpdateNotification) GetLabels() []string { @@ -4152,7 +4241,7 @@ type EndpointRegenNotification struct { func (x *EndpointRegenNotification) Reset() { *x = EndpointRegenNotification{} - mi := &file_flow_flow_proto_msgTypes[29] + mi := &file_flow_flow_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4164,7 +4253,7 @@ func (x *EndpointRegenNotification) String() string { func (*EndpointRegenNotification) ProtoMessage() {} func (x *EndpointRegenNotification) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[29] + mi := &file_flow_flow_proto_msgTypes[30] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4177,7 +4266,7 @@ func (x *EndpointRegenNotification) ProtoReflect() protoreflect.Message { // Deprecated: Use EndpointRegenNotification.ProtoReflect.Descriptor instead. func (*EndpointRegenNotification) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{29} + return file_flow_flow_proto_rawDescGZIP(), []int{30} } func (x *EndpointRegenNotification) GetId() uint64 { @@ -4214,7 +4303,7 @@ type EndpointUpdateNotification struct { func (x *EndpointUpdateNotification) Reset() { *x = EndpointUpdateNotification{} - mi := &file_flow_flow_proto_msgTypes[30] + mi := &file_flow_flow_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4226,7 +4315,7 @@ func (x *EndpointUpdateNotification) String() string { func (*EndpointUpdateNotification) ProtoMessage() {} func (x *EndpointUpdateNotification) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[30] + mi := &file_flow_flow_proto_msgTypes[31] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4239,7 +4328,7 @@ func (x *EndpointUpdateNotification) ProtoReflect() protoreflect.Message { // Deprecated: Use EndpointUpdateNotification.ProtoReflect.Descriptor instead. func (*EndpointUpdateNotification) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{30} + return file_flow_flow_proto_rawDescGZIP(), []int{31} } func (x *EndpointUpdateNotification) GetId() uint64 { @@ -4293,7 +4382,7 @@ type IPCacheNotification struct { func (x *IPCacheNotification) Reset() { *x = IPCacheNotification{} - mi := &file_flow_flow_proto_msgTypes[31] + mi := &file_flow_flow_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4305,7 +4394,7 @@ func (x *IPCacheNotification) String() string { func (*IPCacheNotification) ProtoMessage() {} func (x *IPCacheNotification) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[31] + mi := &file_flow_flow_proto_msgTypes[32] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4318,7 +4407,7 @@ func (x *IPCacheNotification) ProtoReflect() protoreflect.Message { // Deprecated: Use IPCacheNotification.ProtoReflect.Descriptor instead. func (*IPCacheNotification) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{31} + return file_flow_flow_proto_rawDescGZIP(), []int{32} } func (x *IPCacheNotification) GetCidr() string { @@ -4387,7 +4476,7 @@ type ServiceUpsertNotificationAddr struct { func (x *ServiceUpsertNotificationAddr) Reset() { *x = ServiceUpsertNotificationAddr{} - mi := &file_flow_flow_proto_msgTypes[32] + mi := &file_flow_flow_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4399,7 +4488,7 @@ func (x *ServiceUpsertNotificationAddr) String() string { func (*ServiceUpsertNotificationAddr) ProtoMessage() {} func (x *ServiceUpsertNotificationAddr) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[32] + mi := &file_flow_flow_proto_msgTypes[33] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4412,7 +4501,7 @@ func (x *ServiceUpsertNotificationAddr) ProtoReflect() protoreflect.Message { // Deprecated: Use ServiceUpsertNotificationAddr.ProtoReflect.Descriptor instead. func (*ServiceUpsertNotificationAddr) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{32} + return file_flow_flow_proto_rawDescGZIP(), []int{33} } func (x *ServiceUpsertNotificationAddr) GetIp() string { @@ -4447,7 +4536,7 @@ type ServiceUpsertNotification struct { func (x *ServiceUpsertNotification) Reset() { *x = ServiceUpsertNotification{} - mi := &file_flow_flow_proto_msgTypes[33] + mi := &file_flow_flow_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4459,7 +4548,7 @@ func (x *ServiceUpsertNotification) String() string { func (*ServiceUpsertNotification) ProtoMessage() {} func (x *ServiceUpsertNotification) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[33] + mi := &file_flow_flow_proto_msgTypes[34] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4472,7 +4561,7 @@ func (x *ServiceUpsertNotification) ProtoReflect() protoreflect.Message { // Deprecated: Use ServiceUpsertNotification.ProtoReflect.Descriptor instead. func (*ServiceUpsertNotification) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{33} + return file_flow_flow_proto_rawDescGZIP(), []int{34} } func (x *ServiceUpsertNotification) GetId() uint32 { @@ -4548,7 +4637,7 @@ type ServiceDeleteNotification struct { func (x *ServiceDeleteNotification) Reset() { *x = ServiceDeleteNotification{} - mi := &file_flow_flow_proto_msgTypes[34] + mi := &file_flow_flow_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4560,7 +4649,7 @@ func (x *ServiceDeleteNotification) String() string { func (*ServiceDeleteNotification) ProtoMessage() {} func (x *ServiceDeleteNotification) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[34] + mi := &file_flow_flow_proto_msgTypes[35] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4573,7 +4662,7 @@ func (x *ServiceDeleteNotification) ProtoReflect() protoreflect.Message { // Deprecated: Use ServiceDeleteNotification.ProtoReflect.Descriptor instead. func (*ServiceDeleteNotification) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{34} + return file_flow_flow_proto_rawDescGZIP(), []int{35} } func (x *ServiceDeleteNotification) GetId() uint32 { @@ -4593,7 +4682,7 @@ type NetworkInterface struct { func (x *NetworkInterface) Reset() { *x = NetworkInterface{} - mi := &file_flow_flow_proto_msgTypes[35] + mi := &file_flow_flow_proto_msgTypes[36] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4605,7 +4694,7 @@ func (x *NetworkInterface) String() string { func (*NetworkInterface) ProtoMessage() {} func (x *NetworkInterface) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[35] + mi := &file_flow_flow_proto_msgTypes[36] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4618,7 +4707,7 @@ func (x *NetworkInterface) ProtoReflect() protoreflect.Message { // Deprecated: Use NetworkInterface.ProtoReflect.Descriptor instead. func (*NetworkInterface) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{35} + return file_flow_flow_proto_rawDescGZIP(), []int{36} } func (x *NetworkInterface) GetIndex() uint32 { @@ -4651,7 +4740,7 @@ type DebugEvent struct { func (x *DebugEvent) Reset() { *x = DebugEvent{} - mi := &file_flow_flow_proto_msgTypes[36] + mi := &file_flow_flow_proto_msgTypes[37] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4663,7 +4752,7 @@ func (x *DebugEvent) String() string { func (*DebugEvent) ProtoMessage() {} func (x *DebugEvent) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[36] + mi := &file_flow_flow_proto_msgTypes[37] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4676,7 +4765,7 @@ func (x *DebugEvent) ProtoReflect() protoreflect.Message { // Deprecated: Use DebugEvent.ProtoReflect.Descriptor instead. func (*DebugEvent) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{36} + return file_flow_flow_proto_rawDescGZIP(), []int{37} } func (x *DebugEvent) GetType() DebugEventType { @@ -4755,7 +4844,7 @@ type FlowFilter_Experimental struct { func (x *FlowFilter_Experimental) Reset() { *x = FlowFilter_Experimental{} - mi := &file_flow_flow_proto_msgTypes[37] + mi := &file_flow_flow_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -4767,7 +4856,7 @@ func (x *FlowFilter_Experimental) String() string { func (*FlowFilter_Experimental) ProtoMessage() {} func (x *FlowFilter_Experimental) ProtoReflect() protoreflect.Message { - mi := &file_flow_flow_proto_msgTypes[37] + mi := &file_flow_flow_proto_msgTypes[38] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -4780,7 +4869,7 @@ func (x *FlowFilter_Experimental) ProtoReflect() protoreflect.Message { // Deprecated: Use FlowFilter_Experimental.ProtoReflect.Descriptor instead. func (*FlowFilter_Experimental) Descriptor() ([]byte, []int) { - return file_flow_flow_proto_rawDescGZIP(), []int{18, 0} + return file_flow_flow_proto_rawDescGZIP(), []int{19, 0} } func (x *FlowFilter_Experimental) GetCelExpression() []string { @@ -4800,7 +4889,7 @@ var file_flow_flow_proto_rawDesc = []byte{ 0x62, 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x22, 0xc9, 0x0e, 0x0a, 0x04, 0x46, 0x6c, 0x6f, 0x77, 0x12, 0x2e, 0x0a, 0x04, + 0x6f, 0x74, 0x6f, 0x22, 0xed, 0x0e, 0x0a, 0x04, 0x46, 0x6c, 0x6f, 0x77, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, @@ -4865,832 +4954,845 @@ var file_flow_flow_proto_rawDesc = []byte{ 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x0c, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x24, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x0b, - 0x74, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x10, 0x64, - 0x72, 0x6f, 0x70, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x18, - 0x19, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x72, 0x6f, - 0x70, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x61, - 0x73, 0x6f, 0x6e, 0x44, 0x65, 0x73, 0x63, 0x12, 0x35, 0x0a, 0x08, 0x69, 0x73, 0x5f, 0x72, 0x65, - 0x70, 0x6c, 0x79, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x69, 0x73, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x47, - 0x0a, 0x13, 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x5f, - 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x66, 0x6c, - 0x6f, 0x77, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x50, - 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x11, 0x64, 0x65, 0x62, 0x75, 0x67, 0x43, 0x61, 0x70, 0x74, 0x75, - 0x72, 0x65, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x66, 0x61, 0x63, 0x65, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x6f, - 0x77, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, - 0x63, 0x65, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x1d, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x37, 0x0a, 0x0d, - 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x1e, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, - 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0c, 0x74, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, - 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x46, 0x0a, 0x10, 0x73, 0x6f, 0x63, 0x6b, 0x5f, 0x78, 0x6c, - 0x61, 0x74, 0x65, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x1c, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x0e, 0x73, - 0x6f, 0x63, 0x6b, 0x58, 0x6c, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x23, 0x0a, - 0x0d, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x18, 0x20, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x43, 0x6f, 0x6f, 0x6b, - 0x69, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, - 0x21, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x63, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, - 0x1e, 0x0a, 0x07, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0xa0, 0x8d, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, - 0x36, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0xf0, 0x93, - 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0a, 0x65, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x11, 0x65, 0x67, 0x72, 0x65, 0x73, - 0x73, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x89, 0xa4, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x52, 0x0f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, - 0x64, 0x42, 0x79, 0x12, 0x3c, 0x0a, 0x12, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x61, - 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x8a, 0xa4, 0x01, 0x20, 0x03, 0x28, + 0x74, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x04, 0x66, + 0x69, 0x6c, 0x65, 0x18, 0x26, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x66, 0x6c, 0x6f, 0x77, + 0x2e, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, + 0x3a, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x5f, 0x64, + 0x65, 0x73, 0x63, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x66, 0x6c, 0x6f, 0x77, + 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x0e, 0x64, 0x72, 0x6f, + 0x70, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x44, 0x65, 0x73, 0x63, 0x12, 0x35, 0x0a, 0x08, 0x69, + 0x73, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x42, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x69, 0x73, 0x52, 0x65, 0x70, + 0x6c, 0x79, 0x12, 0x47, 0x0a, 0x13, 0x64, 0x65, 0x62, 0x75, 0x67, 0x5f, 0x63, 0x61, 0x70, 0x74, + 0x75, 0x72, 0x65, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x17, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, 0x61, 0x70, 0x74, + 0x75, 0x72, 0x65, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x11, 0x64, 0x65, 0x62, 0x75, 0x67, 0x43, + 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x09, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, + 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, + 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, + 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, + 0x1d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x50, 0x6f, 0x72, 0x74, + 0x12, 0x37, 0x0a, 0x0d, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x78, + 0x74, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, + 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0c, 0x74, 0x72, 0x61, + 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x46, 0x0a, 0x10, 0x73, 0x6f, 0x63, + 0x6b, 0x5f, 0x78, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x1f, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x6f, 0x63, 0x6b, 0x65, + 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x69, 0x6e, + 0x74, 0x52, 0x0e, 0x73, 0x6f, 0x63, 0x6b, 0x58, 0x6c, 0x61, 0x74, 0x65, 0x50, 0x6f, 0x69, 0x6e, + 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x6f, 0x6b, + 0x69, 0x65, 0x18, 0x20, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0c, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, + 0x43, 0x6f, 0x6f, 0x6b, 0x69, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x67, 0x72, 0x6f, 0x75, 0x70, + 0x5f, 0x69, 0x64, 0x18, 0x21, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x63, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x07, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0xa0, + 0x8d, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, 0x53, 0x75, 0x6d, 0x6d, + 0x61, 0x72, 0x79, 0x12, 0x36, 0x0a, 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0xf0, 0x93, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, + 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, + 0x0a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x11, 0x65, + 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x62, 0x79, + 0x18, 0x89, 0xa4, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, + 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, 0x79, 0x12, 0x3c, 0x0a, 0x12, 0x69, 0x6e, 0x67, 0x72, 0x65, + 0x73, 0x73, 0x5f, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x8a, 0xa4, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x52, 0x10, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x6f, + 0x77, 0x65, 0x64, 0x42, 0x79, 0x12, 0x38, 0x0a, 0x10, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, + 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x8c, 0xa4, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, - 0x10, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x42, - 0x79, 0x12, 0x38, 0x0a, 0x10, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x64, 0x65, 0x6e, 0x69, - 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x8c, 0xa4, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, - 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0e, 0x65, 0x67, 0x72, - 0x65, 0x73, 0x73, 0x44, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x42, 0x79, 0x12, 0x3a, 0x0a, 0x11, 0x69, - 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x64, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x5f, 0x62, 0x79, - 0x18, 0x8d, 0xa4, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0f, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x44, - 0x65, 0x6e, 0x69, 0x65, 0x64, 0x42, 0x79, 0x4a, 0x04, 0x08, 0x07, 0x10, 0x08, 0x4a, 0x04, 0x08, - 0x0c, 0x10, 0x0d, 0x4a, 0x04, 0x08, 0x11, 0x10, 0x12, 0x4a, 0x04, 0x08, 0x12, 0x10, 0x13, 0x22, - 0xc4, 0x01, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x34, 0x12, 0x1d, 0x0a, 0x03, 0x54, 0x43, - 0x50, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, - 0x43, 0x50, 0x48, 0x00, 0x52, 0x03, 0x54, 0x43, 0x50, 0x12, 0x1d, 0x0a, 0x03, 0x55, 0x44, 0x50, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x55, 0x44, - 0x50, 0x48, 0x00, 0x52, 0x03, 0x55, 0x44, 0x50, 0x12, 0x26, 0x0a, 0x06, 0x49, 0x43, 0x4d, 0x50, - 0x76, 0x34, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, - 0x49, 0x43, 0x4d, 0x50, 0x76, 0x34, 0x48, 0x00, 0x52, 0x06, 0x49, 0x43, 0x4d, 0x50, 0x76, 0x34, - 0x12, 0x26, 0x0a, 0x06, 0x49, 0x43, 0x4d, 0x50, 0x76, 0x36, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x0c, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x49, 0x43, 0x4d, 0x50, 0x76, 0x36, 0x48, 0x00, - 0x52, 0x06, 0x49, 0x43, 0x4d, 0x50, 0x76, 0x36, 0x12, 0x20, 0x0a, 0x04, 0x53, 0x43, 0x54, 0x50, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x43, - 0x54, 0x50, 0x48, 0x00, 0x52, 0x04, 0x53, 0x43, 0x54, 0x50, 0x42, 0x0a, 0x0a, 0x08, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0xbd, 0x01, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, - 0x37, 0x12, 0x24, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x10, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4c, 0x37, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6c, 0x61, 0x74, 0x65, 0x6e, - 0x63, 0x79, 0x5f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x6c, 0x61, 0x74, - 0x65, 0x6e, 0x63, 0x79, 0x4e, 0x73, 0x12, 0x1d, 0x0a, 0x03, 0x64, 0x6e, 0x73, 0x18, 0x64, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x4e, 0x53, 0x48, 0x00, - 0x52, 0x03, 0x64, 0x6e, 0x73, 0x12, 0x20, 0x0a, 0x04, 0x68, 0x74, 0x74, 0x70, 0x18, 0x65, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x48, - 0x00, 0x52, 0x04, 0x68, 0x74, 0x74, 0x70, 0x12, 0x23, 0x0a, 0x05, 0x6b, 0x61, 0x66, 0x6b, 0x61, - 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4b, 0x61, - 0x66, 0x6b, 0x61, 0x48, 0x00, 0x52, 0x05, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x42, 0x08, 0x0a, 0x06, - 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x39, 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x63, 0x65, 0x43, - 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x29, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, - 0x61, 0x63, 0x65, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x22, 0x28, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, - 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x22, 0xd8, 0x01, 0x0a, 0x08, - 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x49, 0x44, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, - 0x70, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, - 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x19, 0x0a, - 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2c, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b, - 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x66, 0x6c, - 0x6f, 0x77, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x09, 0x77, 0x6f, 0x72, - 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x22, 0x32, 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, - 0x61, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x77, 0x0a, 0x03, 0x54, 0x43, - 0x50, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, - 0x72, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x64, 0x65, - 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x24, 0x0a, - 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x66, - 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x43, 0x50, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x52, 0x05, 0x66, 0x6c, - 0x61, 0x67, 0x73, 0x22, 0xb0, 0x01, 0x0a, 0x02, 0x49, 0x50, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, + 0x0e, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x44, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x42, 0x79, 0x12, + 0x3a, 0x0a, 0x11, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x64, 0x65, 0x6e, 0x69, 0x65, + 0x64, 0x5f, 0x62, 0x79, 0x18, 0x8d, 0xa4, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x66, + 0x6c, 0x6f, 0x77, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0f, 0x69, 0x6e, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x44, 0x65, 0x6e, 0x69, 0x65, 0x64, 0x42, 0x79, 0x4a, 0x04, 0x08, 0x07, 0x10, + 0x08, 0x4a, 0x04, 0x08, 0x0c, 0x10, 0x0d, 0x4a, 0x04, 0x08, 0x11, 0x10, 0x12, 0x4a, 0x04, 0x08, + 0x12, 0x10, 0x13, 0x22, 0x32, 0x0a, 0x08, 0x46, 0x69, 0x6c, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x65, 0x22, 0xc4, 0x01, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, + 0x72, 0x34, 0x12, 0x1d, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x09, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x43, 0x50, 0x48, 0x00, 0x52, 0x03, 0x54, 0x43, + 0x50, 0x12, 0x1d, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, + 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x55, 0x44, 0x50, 0x48, 0x00, 0x52, 0x03, 0x55, 0x44, 0x50, + 0x12, 0x26, 0x0a, 0x06, 0x49, 0x43, 0x4d, 0x50, 0x76, 0x34, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0c, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x49, 0x43, 0x4d, 0x50, 0x76, 0x34, 0x48, 0x00, + 0x52, 0x06, 0x49, 0x43, 0x4d, 0x50, 0x76, 0x34, 0x12, 0x26, 0x0a, 0x06, 0x49, 0x43, 0x4d, 0x50, + 0x76, 0x36, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, + 0x49, 0x43, 0x4d, 0x50, 0x76, 0x36, 0x48, 0x00, 0x52, 0x06, 0x49, 0x43, 0x4d, 0x50, 0x76, 0x36, + 0x12, 0x20, 0x0a, 0x04, 0x53, 0x43, 0x54, 0x50, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, + 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x43, 0x54, 0x50, 0x48, 0x00, 0x52, 0x04, 0x53, 0x43, + 0x54, 0x50, 0x42, 0x0a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0xbd, + 0x01, 0x0a, 0x06, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x37, 0x12, 0x24, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4c, + 0x37, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, + 0x1d, 0x0a, 0x0a, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x6e, 0x73, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x09, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x63, 0x79, 0x4e, 0x73, 0x12, 0x1d, + 0x0a, 0x03, 0x64, 0x6e, 0x73, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x66, 0x6c, + 0x6f, 0x77, 0x2e, 0x44, 0x4e, 0x53, 0x48, 0x00, 0x52, 0x03, 0x64, 0x6e, 0x73, 0x12, 0x20, 0x0a, + 0x04, 0x68, 0x74, 0x74, 0x70, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x66, 0x6c, + 0x6f, 0x77, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x48, 0x00, 0x52, 0x04, 0x68, 0x74, 0x74, 0x70, 0x12, + 0x23, 0x0a, 0x05, 0x6b, 0x61, 0x66, 0x6b, 0x61, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, + 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x48, 0x00, 0x52, 0x05, 0x6b, + 0x61, 0x66, 0x6b, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x22, 0x39, + 0x0a, 0x0c, 0x54, 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x29, + 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, + 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x65, 0x50, 0x61, 0x72, 0x65, 0x6e, + 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x22, 0x28, 0x0a, 0x0b, 0x54, 0x72, 0x61, + 0x63, 0x65, 0x50, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, + 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, + 0x65, 0x49, 0x64, 0x22, 0xd8, 0x01, 0x0a, 0x08, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x49, 0x44, + 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x21, 0x0a, 0x0c, + 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x16, 0x0a, + 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, + 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, + 0x12, 0x2c, 0x0a, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x6c, + 0x6f, 0x61, 0x64, 0x52, 0x09, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x73, 0x22, 0x32, + 0x0a, 0x08, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, + 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, + 0x6e, 0x64, 0x22, 0x77, 0x0a, 0x03, 0x54, 0x43, 0x50, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, + 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x24, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x43, 0x50, 0x46, + 0x6c, 0x61, 0x67, 0x73, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x22, 0xb0, 0x01, 0x0a, 0x02, + 0x49, 0x50, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x78, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x58, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x2d, 0x0a, 0x09, 0x69, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x49, 0x50, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x69, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x22, 0x44, + 0x0a, 0x08, 0x45, 0x74, 0x68, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x78, 0x6c, 0x61, - 0x74, 0x65, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x58, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x09, 0x69, 0x70, 0x56, - 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x66, - 0x6c, 0x6f, 0x77, 0x2e, 0x49, 0x50, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x69, - 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x6e, 0x63, 0x72, - 0x79, 0x70, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 0x6e, 0x63, - 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x22, 0x44, 0x0a, 0x08, 0x45, 0x74, 0x68, 0x65, 0x72, 0x6e, - 0x65, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, - 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xaa, 0x01, 0x0a, - 0x08, 0x54, 0x43, 0x50, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x46, 0x49, 0x4e, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x46, 0x49, 0x4e, 0x12, 0x10, 0x0a, 0x03, 0x53, - 0x59, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x53, 0x59, 0x4e, 0x12, 0x10, 0x0a, - 0x03, 0x52, 0x53, 0x54, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x52, 0x53, 0x54, 0x12, - 0x10, 0x0a, 0x03, 0x50, 0x53, 0x48, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x50, 0x53, - 0x48, 0x12, 0x10, 0x0a, 0x03, 0x41, 0x43, 0x4b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, - 0x41, 0x43, 0x4b, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x52, 0x47, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x03, 0x55, 0x52, 0x47, 0x12, 0x10, 0x0a, 0x03, 0x45, 0x43, 0x45, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x03, 0x45, 0x43, 0x45, 0x12, 0x10, 0x0a, 0x03, 0x43, 0x57, 0x52, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x43, 0x57, 0x52, 0x12, 0x0e, 0x0a, 0x02, 0x4e, 0x53, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x4e, 0x53, 0x22, 0x51, 0x0a, 0x03, 0x55, 0x44, 0x50, - 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, - 0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x64, 0x65, 0x73, - 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x52, 0x0a, 0x04, - 0x53, 0x43, 0x54, 0x50, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, - 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, - 0x22, 0x30, 0x0a, 0x06, 0x49, 0x43, 0x4d, 0x50, 0x76, 0x34, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, - 0x64, 0x65, 0x22, 0x30, 0x0a, 0x06, 0x49, 0x43, 0x4d, 0x50, 0x76, 0x36, 0x12, 0x12, 0x0a, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, - 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, - 0x63, 0x6f, 0x64, 0x65, 0x22, 0x6e, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, - 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x66, 0x0a, 0x0f, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, - 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6d, - 0x61, 0x74, 0x63, 0x68, 0x5f, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0c, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x53, 0x75, 0x62, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x22, 0x40, 0x0a, 0x0f, - 0x43, 0x69, 0x6c, 0x69, 0x75, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x22, 0xba, - 0x0c, 0x0a, 0x0a, 0x46, 0x6c, 0x6f, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, - 0x04, 0x75, 0x75, 0x69, 0x64, 0x18, 0x1d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, - 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x70, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x70, 0x12, 0x28, - 0x0a, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x70, 0x5f, 0x78, 0x6c, 0x61, 0x74, - 0x65, 0x64, 0x18, 0x22, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x49, 0x70, 0x58, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, - 0x65, 0x5f, 0x66, 0x71, 0x64, 0x6e, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x46, 0x71, 0x64, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, - 0x63, 0x65, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x73, - 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x10, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x37, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x77, 0x6f, 0x72, - 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x66, 0x6c, - 0x6f, 0x77, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x0e, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x25, 0x0a, 0x0e, 0x64, - 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x70, 0x18, 0x03, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x49, 0x70, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x70, 0x6f, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x65, 0x73, - 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x64, - 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x71, 0x64, 0x6e, 0x18, - 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x46, 0x71, 0x64, 0x6e, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x0b, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x10, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x11, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x12, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x1b, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, - 0x61, 0x64, 0x52, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x57, - 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x43, 0x0a, 0x11, 0x74, 0x72, 0x61, 0x66, 0x66, - 0x69, 0x63, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x1e, 0x20, 0x03, - 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, - 0x63, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x74, 0x72, 0x61, 0x66, - 0x66, 0x69, 0x63, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x07, - 0x76, 0x65, 0x72, 0x64, 0x69, 0x63, 0x74, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0d, 0x2e, - 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x56, 0x65, 0x72, 0x64, 0x69, 0x63, 0x74, 0x52, 0x07, 0x76, 0x65, - 0x72, 0x64, 0x69, 0x63, 0x74, 0x12, 0x3a, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x72, 0x65, - 0x61, 0x73, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x18, 0x21, 0x20, 0x03, 0x28, 0x0e, 0x32, - 0x10, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x61, 0x73, 0x6f, - 0x6e, 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x44, 0x65, 0x73, - 0x63, 0x12, 0x34, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x23, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4e, 0x65, 0x74, 0x77, - 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x52, 0x09, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x34, 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, - 0x6f, 0x77, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, 0x6c, 0x74, - 0x65, 0x72, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, - 0x10, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, - 0x65, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x68, 0x74, 0x74, 0x70, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x63, 0x6f, 0x6c, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x63, 0x6f, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, - 0x72, 0x74, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, - 0x50, 0x6f, 0x72, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, - 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x08, 0x52, 0x05, - 0x72, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x6e, 0x73, 0x5f, 0x71, 0x75, 0x65, - 0x72, 0x79, 0x18, 0x12, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x64, 0x6e, 0x73, 0x51, 0x75, 0x65, - 0x72, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x13, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x0e, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x31, 0x0a, 0x14, 0x64, - 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1f, - 0x0a, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x15, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, - 0x1b, 0x0a, 0x09, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x16, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x08, 0x68, 0x74, 0x74, 0x70, 0x50, 0x61, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, - 0x68, 0x74, 0x74, 0x70, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, - 0x68, 0x74, 0x74, 0x70, 0x55, 0x72, 0x6c, 0x12, 0x31, 0x0a, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x5f, - 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x20, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x66, - 0x6c, 0x6f, 0x77, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0a, - 0x68, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2b, 0x0a, 0x09, 0x74, 0x63, - 0x70, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, - 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x43, 0x50, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x52, 0x08, 0x74, - 0x63, 0x70, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x18, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x18, 0x24, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x2e, 0x0a, 0x0a, 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, - 0x69, 0x6f, 0x6e, 0x18, 0x19, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x66, 0x6c, 0x6f, 0x77, - 0x2e, 0x49, 0x50, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x69, 0x70, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, - 0x64, 0x18, 0x1c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, - 0x12, 0x42, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, - 0x18, 0xe7, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x46, - 0x6c, 0x6f, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x2e, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, - 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x52, 0x0c, 0x65, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0x61, 0x6c, 0x1a, 0x35, 0x0a, 0x0c, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, - 0x6e, 0x74, 0x61, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x65, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x72, - 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x65, - 0x6c, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xce, 0x01, 0x0a, 0x03, - 0x44, 0x4e, 0x53, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x70, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x70, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x74, - 0x74, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x74, 0x74, 0x6c, 0x12, 0x16, 0x0a, - 0x06, 0x63, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x63, - 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x2d, 0x0a, 0x12, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x11, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x05, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x71, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x71, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x72, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x08, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x72, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0x34, 0x0a, 0x0a, - 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x04, 0x48, 0x54, 0x54, 0x50, 0x12, 0x12, 0x0a, 0x04, 0x63, - 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x2a, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, - 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x48, 0x54, - 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, - 0x73, 0x22, 0x9d, 0x01, 0x0a, 0x05, 0x4b, 0x61, 0x66, 0x6b, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x70, - 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x61, - 0x70, 0x69, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x70, - 0x69, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x6f, 0x72, 0x72, 0x65, 0x6c, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x6f, - 0x72, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, - 0x6f, 0x70, 0x69, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, - 0x63, 0x22, 0x3b, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x91, - 0x01, 0x0a, 0x09, 0x4c, 0x6f, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x06, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x66, - 0x6c, 0x6f, 0x77, 0x2e, 0x4c, 0x6f, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6e, - 0x75, 0x6d, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x6c, 0x6f, 0x73, 0x74, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6e, 0x75, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x4c, - 0x6f, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x03, 0x63, 0x70, 0x75, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x63, - 0x70, 0x75, 0x22, 0xf6, 0x04, 0x0a, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, - 0x14, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x75, - 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, - 0x6c, 0x6f, 0x77, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x6e, - 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x48, 0x00, 0x52, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, - 0x12, 0x39, 0x0a, 0x0b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, - 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x69, 0x6d, + 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xaa, 0x01, 0x0a, 0x08, 0x54, 0x43, 0x50, 0x46, 0x6c, 0x61, 0x67, + 0x73, 0x12, 0x10, 0x0a, 0x03, 0x46, 0x49, 0x4e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, + 0x46, 0x49, 0x4e, 0x12, 0x10, 0x0a, 0x03, 0x53, 0x59, 0x4e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x03, 0x53, 0x59, 0x4e, 0x12, 0x10, 0x0a, 0x03, 0x52, 0x53, 0x54, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x03, 0x52, 0x53, 0x54, 0x12, 0x10, 0x0a, 0x03, 0x50, 0x53, 0x48, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x50, 0x53, 0x48, 0x12, 0x10, 0x0a, 0x03, 0x41, 0x43, 0x4b, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x41, 0x43, 0x4b, 0x12, 0x10, 0x0a, 0x03, 0x55, + 0x52, 0x47, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x55, 0x52, 0x47, 0x12, 0x10, 0x0a, + 0x03, 0x45, 0x43, 0x45, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x45, 0x43, 0x45, 0x12, + 0x10, 0x0a, 0x03, 0x43, 0x57, 0x52, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x43, 0x57, + 0x52, 0x12, 0x0e, 0x0a, 0x02, 0x4e, 0x53, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x4e, + 0x53, 0x22, 0x51, 0x0a, 0x03, 0x55, 0x44, 0x50, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, + 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x50, 0x6f, 0x72, 0x74, 0x22, 0x52, 0x0a, 0x04, 0x53, 0x43, 0x54, 0x50, 0x12, 0x1f, 0x0a, 0x0b, + 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x29, 0x0a, + 0x10, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x72, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x22, 0x30, 0x0a, 0x06, 0x49, 0x43, 0x4d, 0x50, + 0x76, 0x34, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x30, 0x0a, 0x06, 0x49, 0x43, + 0x4d, 0x50, 0x76, 0x36, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0d, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x82, 0x01, 0x0a, + 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, + 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, + 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, + 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, + 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x69, 0x6e, + 0x64, 0x22, 0x66, 0x0a, 0x0f, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x46, 0x69, + 0x6c, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6d, 0x61, 0x74, 0x63, + 0x68, 0x5f, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0c, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x53, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x12, 0x19, + 0x0a, 0x08, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x07, 0x73, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x22, 0x40, 0x0a, 0x0f, 0x43, 0x69, 0x6c, + 0x69, 0x75, 0x6d, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x12, 0x19, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x52, 0x07, 0x73, 0x75, 0x62, 0x54, 0x79, 0x70, 0x65, 0x22, 0xa4, 0x0d, 0x0a, 0x0a, + 0x46, 0x6c, 0x6f, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, + 0x69, 0x64, 0x18, 0x1d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x1b, + 0x0a, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x70, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x08, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x70, 0x12, 0x28, 0x0a, 0x10, 0x73, + 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x69, 0x70, 0x5f, 0x78, 0x6c, 0x61, 0x74, 0x65, 0x64, 0x18, + 0x22, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x70, 0x58, + 0x6c, 0x61, 0x74, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x70, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x50, 0x6f, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x66, + 0x71, 0x64, 0x6e, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x46, 0x71, 0x64, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x10, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0d, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, + 0x37, 0x0a, 0x0f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, + 0x61, 0x64, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, + 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x25, 0x20, 0x03, 0x28, 0x09, 0x52, 0x11, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x43, 0x6c, 0x75, + 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x73, 0x74, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x70, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0d, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x70, 0x12, + 0x27, 0x0a, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, + 0x6f, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x64, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x74, + 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x71, 0x64, 0x6e, 0x18, 0x08, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, + 0x71, 0x64, 0x6e, 0x12, 0x2b, 0x0a, 0x11, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x09, 0x52, 0x10, + 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4c, 0x61, 0x62, 0x65, 0x6c, + 0x12, 0x2f, 0x0a, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x11, 0x20, 0x03, 0x28, 0x09, 0x52, 0x12, 0x64, + 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x41, 0x0a, 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x1b, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0e, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, + 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x57, 0x6f, 0x72, 0x6b, + 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x26, 0x20, 0x03, 0x28, 0x09, 0x52, 0x16, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x43, + 0x0a, 0x11, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x1e, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x66, 0x6c, 0x6f, 0x77, + 0x2e, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x10, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x27, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x64, 0x69, 0x63, 0x74, 0x18, 0x05, + 0x20, 0x03, 0x28, 0x0e, 0x32, 0x0d, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x56, 0x65, 0x72, 0x64, + 0x69, 0x63, 0x74, 0x52, 0x07, 0x76, 0x65, 0x72, 0x64, 0x69, 0x63, 0x74, 0x12, 0x3a, 0x0a, 0x10, + 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x5f, 0x64, 0x65, 0x73, 0x63, + 0x18, 0x21, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x72, + 0x6f, 0x70, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x52, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x44, 0x65, 0x73, 0x63, 0x12, 0x34, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x23, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, 0x6c, + 0x6f, 0x77, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, + 0x61, 0x63, 0x65, 0x52, 0x09, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x34, + 0x0a, 0x0a, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x09, 0x65, 0x76, 0x65, 0x6e, 0x74, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, + 0x68, 0x74, 0x74, 0x70, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x1a, + 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x6f, + 0x75, 0x72, 0x63, 0x65, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0a, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x29, 0x0a, 0x10, 0x64, + 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x18, + 0x0e, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x18, + 0x0f, 0x20, 0x03, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1b, 0x0a, 0x09, + 0x64, 0x6e, 0x73, 0x5f, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x12, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x08, 0x64, 0x6e, 0x73, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x13, 0x20, 0x03, + 0x28, 0x0d, 0x52, 0x0e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x12, 0x31, 0x0a, 0x14, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0d, + 0x52, 0x13, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x6d, 0x65, + 0x74, 0x68, 0x6f, 0x64, 0x18, 0x15, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x74, 0x74, 0x70, + 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x70, + 0x61, 0x74, 0x68, 0x18, 0x16, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x68, 0x74, 0x74, 0x70, 0x50, + 0x61, 0x74, 0x68, 0x12, 0x19, 0x0a, 0x08, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x75, 0x72, 0x6c, 0x18, + 0x1f, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x68, 0x74, 0x74, 0x70, 0x55, 0x72, 0x6c, 0x12, 0x31, + 0x0a, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x20, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x48, + 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x12, 0x2b, 0x0a, 0x09, 0x74, 0x63, 0x70, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x17, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x43, 0x50, 0x46, + 0x6c, 0x61, 0x67, 0x73, 0x52, 0x08, 0x74, 0x63, 0x70, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x1b, + 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x18, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, + 0x6f, 0x64, 0x65, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x24, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0a, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x2e, 0x0a, 0x0a, + 0x69, 0x70, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x19, 0x20, 0x03, 0x28, 0x0e, + 0x32, 0x0f, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x49, 0x50, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x52, 0x09, 0x69, 0x70, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, + 0x74, 0x72, 0x61, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x1c, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, + 0x74, 0x72, 0x61, 0x63, 0x65, 0x49, 0x64, 0x12, 0x42, 0x0a, 0x0c, 0x65, 0x78, 0x70, 0x65, 0x72, + 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x18, 0xe7, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x46, 0x6c, 0x6f, 0x77, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, + 0x2e, 0x45, 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x52, 0x0c, 0x65, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x1a, 0x35, 0x0a, 0x0c, 0x45, + 0x78, 0x70, 0x65, 0x72, 0x69, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x12, 0x25, 0x0a, 0x0e, 0x63, + 0x65, 0x6c, 0x5f, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x65, 0x6c, 0x45, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, + 0x6f, 0x6e, 0x22, 0xce, 0x01, 0x0a, 0x03, 0x44, 0x4e, 0x53, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, + 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x69, 0x70, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, + 0x70, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, + 0x03, 0x74, 0x74, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x63, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x2d, 0x0a, 0x12, + 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x6f, 0x62, 0x73, 0x65, 0x72, 0x76, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, + 0x63, 0x6f, 0x64, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x72, 0x63, 0x6f, 0x64, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x71, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, + 0x09, 0x52, 0x06, 0x71, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x72, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x72, 0x72, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x22, 0x34, 0x0a, 0x0a, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x8c, 0x01, 0x0a, 0x04, 0x48, 0x54, + 0x54, 0x50, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x10, + 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, + 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x2a, 0x0a, 0x07, + 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, + 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, + 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x22, 0x9d, 0x01, 0x0a, 0x05, 0x4b, 0x61, 0x66, + 0x6b, 0x61, 0x12, 0x1d, 0x0a, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x64, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, + 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x61, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x70, 0x69, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x70, 0x69, 0x4b, 0x65, 0x79, 0x12, 0x25, 0x0a, 0x0e, 0x63, + 0x6f, 0x72, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x6f, 0x72, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x22, 0x3b, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x91, 0x01, 0x0a, 0x09, 0x4c, 0x6f, 0x73, 0x74, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x12, 0x2d, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x4c, 0x6f, 0x73, 0x74, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x75, 0x6d, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, + 0x5f, 0x6c, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x6e, 0x75, 0x6d, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x4c, 0x6f, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x03, 0x63, 0x70, + 0x75, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x63, 0x70, 0x75, 0x22, 0xf6, 0x04, 0x0a, 0x0a, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x12, 0x33, 0x0a, 0x07, 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x18, 0x64, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x48, 0x00, 0x52, 0x07, + 0x75, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x12, 0x39, 0x0a, 0x0b, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x66, + 0x6c, 0x6f, 0x77, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, + 0x72, 0x74, 0x12, 0x45, 0x0a, 0x0d, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x6f, 0x77, + 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0c, 0x70, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x52, 0x0a, 0x13, 0x65, 0x6e, 0x64, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, + 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x45, 0x6e, + 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x12, 0x65, 0x6e, 0x64, 0x70, 0x6f, + 0x69, 0x6e, 0x74, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x4b, 0x0a, + 0x0f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x18, 0x68, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x45, 0x6e, + 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x65, 0x6e, 0x64, 0x70, + 0x6f, 0x69, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x42, 0x0a, 0x0e, 0x69, 0x70, + 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x69, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x49, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, - 0x0a, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12, 0x45, 0x0a, 0x0d, 0x70, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x66, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0c, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x12, 0x52, 0x0a, 0x13, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x5f, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x18, 0x67, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1f, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, - 0x65, 0x67, 0x65, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x48, 0x00, 0x52, 0x12, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x67, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x4b, 0x0a, 0x0f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, - 0x6e, 0x74, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x68, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x20, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x55, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x55, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x12, 0x42, 0x0a, 0x0e, 0x69, 0x70, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, 0x75, - 0x70, 0x64, 0x61, 0x74, 0x65, 0x18, 0x69, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x66, 0x6c, - 0x6f, 0x77, 0x2e, 0x49, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0d, 0x69, 0x70, 0x63, 0x61, 0x63, 0x68, - 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x48, 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x5f, 0x75, 0x70, 0x73, 0x65, 0x72, 0x74, 0x18, 0x6a, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1f, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x55, 0x70, - 0x73, 0x65, 0x72, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x48, 0x00, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x55, 0x70, 0x73, 0x65, 0x72, - 0x74, 0x12, 0x48, 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x6f, 0x77, - 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0d, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x6e, - 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4b, 0x0a, 0x11, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, - 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x42, 0x0a, 0x10, 0x54, 0x69, 0x6d, 0x65, - 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x04, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x6d, 0x0a, 0x18, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, - 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x09, 0x72, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x59, 0x0a, 0x19, 0x45, - 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x4e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x93, 0x01, 0x0a, 0x1a, 0x45, 0x6e, 0x64, 0x70, 0x6f, - 0x69, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x14, 0x0a, - 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, - 0x72, 0x6f, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, - 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x99, 0x02, 0x0a, - 0x13, 0x49, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x69, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x12, 0x3f, 0x0a, 0x0c, 0x6f, 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, - 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0b, 0x6f, 0x6c, 0x64, 0x49, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x17, 0x0a, 0x07, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x70, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x6f, 0x73, 0x74, 0x49, 0x70, 0x12, 0x1e, - 0x0a, 0x0b, 0x6f, 0x6c, 0x64, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x6c, 0x64, 0x48, 0x6f, 0x73, 0x74, 0x49, 0x70, 0x12, 0x1f, - 0x0a, 0x0b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x4b, 0x65, 0x79, 0x12, - 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x19, 0x0a, - 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x43, 0x0a, 0x1d, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x22, 0x9a, 0x03, - 0x0a, 0x19, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x4e, - 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x4e, 0x0a, 0x10, 0x66, - 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x52, 0x0f, 0x66, 0x72, 0x6f, 0x6e, - 0x74, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x50, 0x0a, 0x11, 0x62, - 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, - 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x65, + 0x0d, 0x69, 0x70, 0x63, 0x61, 0x63, 0x68, 0x65, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x48, + 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x75, 0x70, 0x73, 0x65, 0x72, 0x74, + 0x18, 0x6a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x72, 0x52, 0x10, 0x62, 0x61, 0x63, - 0x6b, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x12, 0x12, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, - 0x65, 0x12, 0x29, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, 0x70, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x0d, 0x74, - 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x07, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2c, - 0x0a, 0x12, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, 0x70, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x65, 0x78, 0x74, 0x54, - 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2c, 0x0a, 0x12, - 0x69, 0x6e, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x5f, 0x70, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x69, 0x6e, 0x74, 0x54, 0x72, 0x61, - 0x66, 0x66, 0x69, 0x63, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x2b, 0x0a, 0x19, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x3c, 0x0a, 0x10, 0x4e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, - 0x78, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xef, 0x02, 0x0a, 0x0a, 0x44, 0x65, 0x62, 0x75, 0x67, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x45, - 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x26, - 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, - 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x30, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x30, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x31, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x61, 0x72, 0x67, 0x31, 0x12, 0x30, 0x0a, 0x04, 0x61, 0x72, - 0x67, 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, - 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x61, 0x72, 0x67, 0x32, 0x12, 0x30, 0x0a, 0x04, - 0x61, 0x72, 0x67, 0x33, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, - 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x61, 0x72, 0x67, 0x33, 0x12, 0x18, - 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2d, 0x0a, 0x03, 0x63, 0x70, 0x75, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x52, 0x03, 0x63, 0x70, 0x75, 0x2a, 0x39, 0x0a, 0x08, 0x46, 0x6c, 0x6f, 0x77, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x54, - 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x4c, 0x33, 0x5f, 0x4c, 0x34, 0x10, 0x01, - 0x12, 0x06, 0x0a, 0x02, 0x4c, 0x37, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x4f, 0x43, 0x4b, - 0x10, 0x03, 0x2a, 0x39, 0x0a, 0x08, 0x41, 0x75, 0x74, 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, - 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, - 0x53, 0x50, 0x49, 0x52, 0x45, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x45, 0x53, 0x54, 0x5f, - 0x41, 0x4c, 0x57, 0x41, 0x59, 0x53, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x02, 0x2a, 0xea, 0x01, - 0x0a, 0x15, 0x54, 0x72, 0x61, 0x63, 0x65, 0x4f, 0x62, 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x11, 0x0a, 0x0d, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, - 0x57, 0x4e, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x4f, - 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x4f, 0x5f, 0x48, - 0x4f, 0x53, 0x54, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x4f, 0x5f, 0x53, 0x54, 0x41, 0x43, - 0x4b, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x4f, 0x5f, 0x4f, 0x56, 0x45, 0x52, 0x4c, 0x41, - 0x59, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x4f, 0x5f, 0x45, 0x4e, 0x44, 0x50, 0x4f, 0x49, - 0x4e, 0x54, 0x10, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x45, 0x4e, 0x44, - 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x52, 0x4f, 0x4d, 0x5f, - 0x50, 0x52, 0x4f, 0x58, 0x59, 0x10, 0x06, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x52, 0x4f, 0x4d, 0x5f, - 0x48, 0x4f, 0x53, 0x54, 0x10, 0x07, 0x12, 0x0e, 0x0a, 0x0a, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x53, - 0x54, 0x41, 0x43, 0x4b, 0x10, 0x08, 0x12, 0x10, 0x0a, 0x0c, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x4f, - 0x56, 0x45, 0x52, 0x4c, 0x41, 0x59, 0x10, 0x09, 0x12, 0x10, 0x0a, 0x0c, 0x46, 0x52, 0x4f, 0x4d, - 0x5f, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x10, 0x0a, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x4f, - 0x5f, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x10, 0x0b, 0x2a, 0xa0, 0x01, 0x0a, 0x0b, 0x54, - 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x52, - 0x41, 0x43, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, - 0x57, 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4e, 0x45, 0x57, 0x10, 0x01, 0x12, 0x0f, 0x0a, - 0x0b, 0x45, 0x53, 0x54, 0x41, 0x42, 0x4c, 0x49, 0x53, 0x48, 0x45, 0x44, 0x10, 0x02, 0x12, 0x09, - 0x0a, 0x05, 0x52, 0x45, 0x50, 0x4c, 0x59, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x4c, - 0x41, 0x54, 0x45, 0x44, 0x10, 0x04, 0x12, 0x10, 0x0a, 0x08, 0x52, 0x45, 0x4f, 0x50, 0x45, 0x4e, - 0x45, 0x44, 0x10, 0x05, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x52, 0x56, 0x36, - 0x5f, 0x45, 0x4e, 0x43, 0x41, 0x50, 0x10, 0x06, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x52, 0x56, 0x36, - 0x5f, 0x44, 0x45, 0x43, 0x41, 0x50, 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x45, 0x4e, 0x43, 0x52, - 0x59, 0x50, 0x54, 0x5f, 0x4f, 0x56, 0x45, 0x52, 0x4c, 0x41, 0x59, 0x10, 0x08, 0x2a, 0x48, 0x0a, - 0x0a, 0x4c, 0x37, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x55, - 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x4c, 0x37, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, - 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x01, 0x12, 0x0c, 0x0a, - 0x08, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x53, - 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x10, 0x03, 0x2a, 0x30, 0x0a, 0x09, 0x49, 0x50, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x0b, 0x49, 0x50, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x55, - 0x53, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x76, 0x34, 0x10, 0x01, 0x12, - 0x08, 0x0a, 0x04, 0x49, 0x50, 0x76, 0x36, 0x10, 0x02, 0x2a, 0x7c, 0x0a, 0x07, 0x56, 0x65, 0x72, - 0x64, 0x69, 0x63, 0x74, 0x12, 0x13, 0x0a, 0x0f, 0x56, 0x45, 0x52, 0x44, 0x49, 0x43, 0x54, 0x5f, - 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, - 0x57, 0x41, 0x52, 0x44, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0b, 0x0a, 0x07, 0x44, 0x52, 0x4f, 0x50, - 0x50, 0x45, 0x44, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, - 0x12, 0x09, 0x0a, 0x05, 0x41, 0x55, 0x44, 0x49, 0x54, 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x52, - 0x45, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x54, - 0x52, 0x41, 0x43, 0x45, 0x44, 0x10, 0x06, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x52, 0x41, 0x4e, 0x53, - 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x07, 0x2a, 0xaf, 0x11, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, - 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x52, 0x4f, 0x50, 0x5f, 0x52, - 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, - 0x1b, 0x0a, 0x12, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, - 0x45, 0x5f, 0x4d, 0x41, 0x43, 0x10, 0x82, 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x20, 0x0a, 0x17, - 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x44, 0x45, 0x53, 0x54, 0x49, 0x4e, 0x41, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x41, 0x43, 0x10, 0x83, 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x16, - 0x0a, 0x11, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, - 0x5f, 0x49, 0x50, 0x10, 0x84, 0x01, 0x12, 0x12, 0x0a, 0x0d, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, - 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x85, 0x01, 0x12, 0x1b, 0x0a, 0x16, 0x49, 0x4e, - 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x44, 0x52, 0x4f, - 0x50, 0x50, 0x45, 0x44, 0x10, 0x86, 0x01, 0x12, 0x23, 0x0a, 0x1e, 0x43, 0x54, 0x5f, 0x54, 0x52, - 0x55, 0x4e, 0x43, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x4f, 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, - 0x49, 0x44, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x10, 0x87, 0x01, 0x12, 0x1c, 0x0a, 0x17, - 0x43, 0x54, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x43, 0x50, 0x5f, 0x41, - 0x43, 0x4b, 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x10, 0x88, 0x01, 0x12, 0x1b, 0x0a, 0x16, 0x43, 0x54, - 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x4c, 0x34, 0x5f, 0x50, 0x52, 0x4f, 0x54, - 0x4f, 0x43, 0x4f, 0x4c, 0x10, 0x89, 0x01, 0x12, 0x2b, 0x0a, 0x22, 0x43, 0x54, 0x5f, 0x43, 0x41, - 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x54, 0x52, - 0x59, 0x5f, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x8a, 0x01, - 0x1a, 0x02, 0x08, 0x01, 0x12, 0x1c, 0x0a, 0x17, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, - 0x54, 0x45, 0x44, 0x5f, 0x4c, 0x33, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x10, - 0x8b, 0x01, 0x12, 0x15, 0x0a, 0x10, 0x4d, 0x49, 0x53, 0x53, 0x45, 0x44, 0x5f, 0x54, 0x41, 0x49, - 0x4c, 0x5f, 0x43, 0x41, 0x4c, 0x4c, 0x10, 0x8c, 0x01, 0x12, 0x1c, 0x0a, 0x17, 0x45, 0x52, 0x52, - 0x4f, 0x52, 0x5f, 0x57, 0x52, 0x49, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x4f, 0x5f, 0x50, 0x41, - 0x43, 0x4b, 0x45, 0x54, 0x10, 0x8d, 0x01, 0x12, 0x18, 0x0a, 0x13, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, - 0x57, 0x4e, 0x5f, 0x4c, 0x34, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x10, 0x8e, - 0x01, 0x12, 0x18, 0x0a, 0x13, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x49, 0x43, 0x4d, - 0x50, 0x56, 0x34, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x10, 0x8f, 0x01, 0x12, 0x18, 0x0a, 0x13, 0x55, - 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x49, 0x43, 0x4d, 0x50, 0x56, 0x34, 0x5f, 0x54, 0x59, - 0x50, 0x45, 0x10, 0x90, 0x01, 0x12, 0x18, 0x0a, 0x13, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, - 0x5f, 0x49, 0x43, 0x4d, 0x50, 0x56, 0x36, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x10, 0x91, 0x01, 0x12, - 0x18, 0x0a, 0x13, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x49, 0x43, 0x4d, 0x50, 0x56, - 0x36, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x92, 0x01, 0x12, 0x20, 0x0a, 0x1b, 0x45, 0x52, 0x52, - 0x4f, 0x52, 0x5f, 0x52, 0x45, 0x54, 0x52, 0x49, 0x45, 0x56, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x55, - 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x4b, 0x45, 0x59, 0x10, 0x93, 0x01, 0x12, 0x28, 0x0a, 0x1f, 0x45, - 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x52, 0x45, 0x54, 0x52, 0x49, 0x45, 0x56, 0x49, 0x4e, 0x47, 0x5f, - 0x54, 0x55, 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x94, - 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x1e, 0x0a, 0x15, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, - 0x5f, 0x47, 0x45, 0x4e, 0x45, 0x56, 0x45, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x95, - 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x1e, 0x0a, 0x19, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, - 0x5f, 0x4c, 0x33, 0x5f, 0x54, 0x41, 0x52, 0x47, 0x45, 0x54, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, - 0x53, 0x53, 0x10, 0x96, 0x01, 0x12, 0x1b, 0x0a, 0x16, 0x53, 0x54, 0x41, 0x4c, 0x45, 0x5f, 0x4f, - 0x52, 0x5f, 0x55, 0x4e, 0x52, 0x4f, 0x55, 0x54, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x49, 0x50, 0x10, - 0x97, 0x01, 0x12, 0x2a, 0x0a, 0x21, 0x4e, 0x4f, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x49, 0x4e, - 0x47, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x45, - 0x52, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x98, 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x27, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x12, 0x48, 0x0a, 0x0e, 0x73, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x18, 0x6b, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1f, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x48, 0x00, 0x52, 0x0d, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x4b, 0x0a, 0x11, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, + 0x55, 0x6e, 0x6b, 0x6e, 0x6f, 0x77, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x6e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0c, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x42, 0x0a, 0x10, 0x54, 0x69, 0x6d, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, + 0x69, 0x6d, 0x65, 0x22, 0x6d, 0x0a, 0x18, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x76, 0x69, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x72, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x22, 0x59, 0x0a, 0x19, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, + 0x67, 0x65, 0x6e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x16, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x93, 0x01, + 0x0a, 0x1a, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, + 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, + 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, + 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x22, 0x99, 0x02, 0x0a, 0x13, 0x49, 0x50, 0x43, 0x61, 0x63, 0x68, 0x65, 0x4e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x63, + 0x69, 0x64, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x69, 0x64, 0x72, 0x12, + 0x1a, 0x0a, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x08, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x3f, 0x0a, 0x0c, 0x6f, + 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x0b, 0x6f, 0x6c, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x17, 0x0a, 0x07, + 0x68, 0x6f, 0x73, 0x74, 0x5f, 0x69, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, + 0x6f, 0x73, 0x74, 0x49, 0x70, 0x12, 0x1e, 0x0a, 0x0b, 0x6f, 0x6c, 0x64, 0x5f, 0x68, 0x6f, 0x73, + 0x74, 0x5f, 0x69, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6f, 0x6c, 0x64, 0x48, + 0x6f, 0x73, 0x74, 0x49, 0x70, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, + 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x65, 0x6e, 0x63, 0x72, + 0x79, 0x70, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, + 0x61, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x6f, 0x64, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x6f, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x22, + 0x43, 0x0a, 0x1d, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, + 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, 0x72, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x70, + 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, + 0x70, 0x6f, 0x72, 0x74, 0x22, 0x9a, 0x03, 0x0a, 0x19, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, + 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x4e, 0x0a, 0x10, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x5f, 0x61, + 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x66, + 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x55, 0x70, 0x73, 0x65, 0x72, + 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, 0x64, + 0x72, 0x52, 0x0f, 0x66, 0x72, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x12, 0x50, 0x0a, 0x11, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x5f, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, + 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x55, 0x70, 0x73, 0x65, + 0x72, 0x74, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x64, + 0x64, 0x72, 0x52, 0x10, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x41, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x29, 0x0a, 0x0e, 0x74, 0x72, 0x61, 0x66, + 0x66, 0x69, 0x63, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, + 0x42, 0x02, 0x18, 0x01, 0x52, 0x0d, 0x74, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, + 0x70, 0x61, 0x63, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, + 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x78, 0x74, 0x5f, 0x74, 0x72, 0x61, + 0x66, 0x66, 0x69, 0x63, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x10, 0x65, 0x78, 0x74, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x12, 0x2c, 0x0a, 0x12, 0x69, 0x6e, 0x74, 0x5f, 0x74, 0x72, 0x61, 0x66, 0x66, + 0x69, 0x63, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x10, 0x69, 0x6e, 0x74, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x22, 0x2b, 0x0a, 0x19, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x65, 0x6c, 0x65, + 0x74, 0x65, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x3c, + 0x0a, 0x10, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, + 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0d, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xef, 0x02, 0x0a, + 0x0a, 0x44, 0x65, 0x62, 0x75, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x66, 0x6c, 0x6f, 0x77, + 0x2e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x45, 0x6e, 0x64, + 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x30, 0x0a, + 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, + 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, + 0x30, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x31, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x61, 0x72, 0x67, + 0x31, 0x12, 0x30, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x32, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x61, + 0x72, 0x67, 0x32, 0x12, 0x30, 0x0a, 0x04, 0x61, 0x72, 0x67, 0x33, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x55, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, + 0x04, 0x61, 0x72, 0x67, 0x33, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, + 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, + 0x2d, 0x0a, 0x03, 0x63, 0x70, 0x75, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x49, + 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x03, 0x63, 0x70, 0x75, 0x2a, 0x39, + 0x0a, 0x08, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, + 0x4c, 0x33, 0x5f, 0x4c, 0x34, 0x10, 0x01, 0x12, 0x06, 0x0a, 0x02, 0x4c, 0x37, 0x10, 0x02, 0x12, + 0x08, 0x0a, 0x04, 0x53, 0x4f, 0x43, 0x4b, 0x10, 0x03, 0x2a, 0x39, 0x0a, 0x08, 0x41, 0x75, 0x74, + 0x68, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, + 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x53, 0x50, 0x49, 0x52, 0x45, 0x10, 0x01, 0x12, 0x14, + 0x0a, 0x10, 0x54, 0x45, 0x53, 0x54, 0x5f, 0x41, 0x4c, 0x57, 0x41, 0x59, 0x53, 0x5f, 0x46, 0x41, + 0x49, 0x4c, 0x10, 0x02, 0x2a, 0xea, 0x01, 0x0a, 0x15, 0x54, 0x72, 0x61, 0x63, 0x65, 0x4f, 0x62, + 0x73, 0x65, 0x72, 0x76, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x11, + 0x0a, 0x0d, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x10, + 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x54, 0x4f, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, 0x10, 0x01, 0x12, + 0x0b, 0x0a, 0x07, 0x54, 0x4f, 0x5f, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, + 0x54, 0x4f, 0x5f, 0x53, 0x54, 0x41, 0x43, 0x4b, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x4f, + 0x5f, 0x4f, 0x56, 0x45, 0x52, 0x4c, 0x41, 0x59, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x4f, + 0x5f, 0x45, 0x4e, 0x44, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x10, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x46, + 0x52, 0x4f, 0x4d, 0x5f, 0x45, 0x4e, 0x44, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x10, 0x05, 0x12, 0x0e, + 0x0a, 0x0a, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, 0x10, 0x06, 0x12, 0x0d, + 0x0a, 0x09, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x07, 0x12, 0x0e, 0x0a, + 0x0a, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x53, 0x54, 0x41, 0x43, 0x4b, 0x10, 0x08, 0x12, 0x10, 0x0a, + 0x0c, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x4f, 0x56, 0x45, 0x52, 0x4c, 0x41, 0x59, 0x10, 0x09, 0x12, + 0x10, 0x0a, 0x0c, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x10, + 0x0a, 0x12, 0x0e, 0x0a, 0x0a, 0x54, 0x4f, 0x5f, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x10, + 0x0b, 0x2a, 0xa0, 0x01, 0x0a, 0x0b, 0x54, 0x72, 0x61, 0x63, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x52, 0x41, 0x43, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, + 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4e, + 0x45, 0x57, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x53, 0x54, 0x41, 0x42, 0x4c, 0x49, 0x53, + 0x48, 0x45, 0x44, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x52, 0x45, 0x50, 0x4c, 0x59, 0x10, 0x03, + 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x04, 0x12, 0x10, 0x0a, + 0x08, 0x52, 0x45, 0x4f, 0x50, 0x45, 0x4e, 0x45, 0x44, 0x10, 0x05, 0x1a, 0x02, 0x08, 0x01, 0x12, + 0x0e, 0x0a, 0x0a, 0x53, 0x52, 0x56, 0x36, 0x5f, 0x45, 0x4e, 0x43, 0x41, 0x50, 0x10, 0x06, 0x12, + 0x0e, 0x0a, 0x0a, 0x53, 0x52, 0x56, 0x36, 0x5f, 0x44, 0x45, 0x43, 0x41, 0x50, 0x10, 0x07, 0x12, + 0x13, 0x0a, 0x0f, 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54, 0x5f, 0x4f, 0x56, 0x45, 0x52, 0x4c, + 0x41, 0x59, 0x10, 0x08, 0x2a, 0x48, 0x0a, 0x0a, 0x4c, 0x37, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x4c, 0x37, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x45, 0x51, 0x55, 0x45, + 0x53, 0x54, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x45, 0x53, 0x50, 0x4f, 0x4e, 0x53, 0x45, + 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x10, 0x03, 0x2a, 0x30, + 0x0a, 0x09, 0x49, 0x50, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x0b, 0x49, + 0x50, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, + 0x49, 0x50, 0x76, 0x34, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x50, 0x76, 0x36, 0x10, 0x02, + 0x2a, 0x7c, 0x0a, 0x07, 0x56, 0x65, 0x72, 0x64, 0x69, 0x63, 0x74, 0x12, 0x13, 0x0a, 0x0f, 0x56, + 0x45, 0x52, 0x44, 0x49, 0x43, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, + 0x12, 0x0d, 0x0a, 0x09, 0x46, 0x4f, 0x52, 0x57, 0x41, 0x52, 0x44, 0x45, 0x44, 0x10, 0x01, 0x12, + 0x0b, 0x0a, 0x07, 0x44, 0x52, 0x4f, 0x50, 0x50, 0x45, 0x44, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, + 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x55, 0x44, 0x49, 0x54, + 0x10, 0x04, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x45, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x45, 0x44, + 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x54, 0x52, 0x41, 0x43, 0x45, 0x44, 0x10, 0x06, 0x12, 0x0e, + 0x0a, 0x0a, 0x54, 0x52, 0x41, 0x4e, 0x53, 0x4c, 0x41, 0x54, 0x45, 0x44, 0x10, 0x07, 0x2a, 0xaf, + 0x11, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x17, 0x0a, + 0x13, 0x44, 0x52, 0x4f, 0x50, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, + 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x12, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, + 0x44, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x4d, 0x41, 0x43, 0x10, 0x82, 0x01, 0x1a, + 0x02, 0x08, 0x01, 0x12, 0x20, 0x0a, 0x17, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x44, + 0x45, 0x53, 0x54, 0x49, 0x4e, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x41, 0x43, 0x10, 0x83, + 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, + 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x5f, 0x49, 0x50, 0x10, 0x84, 0x01, 0x12, 0x12, 0x0a, + 0x0d, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x85, + 0x01, 0x12, 0x1b, 0x0a, 0x16, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x50, 0x41, 0x43, + 0x4b, 0x45, 0x54, 0x5f, 0x44, 0x52, 0x4f, 0x50, 0x50, 0x45, 0x44, 0x10, 0x86, 0x01, 0x12, 0x23, + 0x0a, 0x1e, 0x43, 0x54, 0x5f, 0x54, 0x52, 0x55, 0x4e, 0x43, 0x41, 0x54, 0x45, 0x44, 0x5f, 0x4f, + 0x52, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, + 0x10, 0x87, 0x01, 0x12, 0x1c, 0x0a, 0x17, 0x43, 0x54, 0x5f, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, + 0x47, 0x5f, 0x54, 0x43, 0x50, 0x5f, 0x41, 0x43, 0x4b, 0x5f, 0x46, 0x4c, 0x41, 0x47, 0x10, 0x88, + 0x01, 0x12, 0x1b, 0x0a, 0x16, 0x43, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, + 0x4c, 0x34, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x10, 0x89, 0x01, 0x12, 0x2b, + 0x0a, 0x22, 0x43, 0x54, 0x5f, 0x43, 0x41, 0x4e, 0x4e, 0x4f, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, + 0x54, 0x45, 0x5f, 0x45, 0x4e, 0x54, 0x52, 0x59, 0x5f, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x50, 0x41, + 0x43, 0x4b, 0x45, 0x54, 0x10, 0x8a, 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x1c, 0x0a, 0x17, 0x55, + 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x4c, 0x33, 0x5f, 0x50, 0x52, + 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x10, 0x8b, 0x01, 0x12, 0x15, 0x0a, 0x10, 0x4d, 0x49, 0x53, + 0x53, 0x45, 0x44, 0x5f, 0x54, 0x41, 0x49, 0x4c, 0x5f, 0x43, 0x41, 0x4c, 0x4c, 0x10, 0x8c, 0x01, + 0x12, 0x1c, 0x0a, 0x17, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x57, 0x52, 0x49, 0x54, 0x49, 0x4e, + 0x47, 0x5f, 0x54, 0x4f, 0x5f, 0x50, 0x41, 0x43, 0x4b, 0x45, 0x54, 0x10, 0x8d, 0x01, 0x12, 0x18, + 0x0a, 0x13, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x4c, 0x34, 0x5f, 0x50, 0x52, 0x4f, + 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x10, 0x8e, 0x01, 0x12, 0x18, 0x0a, 0x13, 0x55, 0x4e, 0x4b, 0x4e, + 0x4f, 0x57, 0x4e, 0x5f, 0x49, 0x43, 0x4d, 0x50, 0x56, 0x34, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x10, + 0x8f, 0x01, 0x12, 0x18, 0x0a, 0x13, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x49, 0x43, + 0x4d, 0x50, 0x56, 0x34, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x90, 0x01, 0x12, 0x18, 0x0a, 0x13, + 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x49, 0x43, 0x4d, 0x50, 0x56, 0x36, 0x5f, 0x43, + 0x4f, 0x44, 0x45, 0x10, 0x91, 0x01, 0x12, 0x18, 0x0a, 0x13, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, + 0x4e, 0x5f, 0x49, 0x43, 0x4d, 0x50, 0x56, 0x36, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x10, 0x92, 0x01, + 0x12, 0x20, 0x0a, 0x1b, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x52, 0x45, 0x54, 0x52, 0x49, 0x45, + 0x56, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x55, 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x4b, 0x45, 0x59, 0x10, + 0x93, 0x01, 0x12, 0x28, 0x0a, 0x1f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x52, 0x45, 0x54, 0x52, + 0x49, 0x45, 0x56, 0x49, 0x4e, 0x47, 0x5f, 0x54, 0x55, 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x4f, 0x50, + 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x94, 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x1e, 0x0a, 0x15, + 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x47, 0x45, 0x4e, 0x45, 0x56, 0x45, 0x5f, 0x4f, + 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x10, 0x95, 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x1e, 0x0a, 0x19, + 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x4c, 0x33, 0x5f, 0x54, 0x41, 0x52, 0x47, 0x45, + 0x54, 0x5f, 0x41, 0x44, 0x44, 0x52, 0x45, 0x53, 0x53, 0x10, 0x96, 0x01, 0x12, 0x1b, 0x0a, 0x16, + 0x53, 0x54, 0x41, 0x4c, 0x45, 0x5f, 0x4f, 0x52, 0x5f, 0x55, 0x4e, 0x52, 0x4f, 0x55, 0x54, 0x41, + 0x42, 0x4c, 0x45, 0x5f, 0x49, 0x50, 0x10, 0x97, 0x01, 0x12, 0x2a, 0x0a, 0x21, 0x4e, 0x4f, 0x5f, + 0x4d, 0x41, 0x54, 0x43, 0x48, 0x49, 0x4e, 0x47, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x43, + 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x45, 0x52, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x98, + 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x27, 0x0a, 0x22, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x57, + 0x48, 0x49, 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x52, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4e, 0x47, 0x5f, + 0x4c, 0x33, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, 0x55, 0x4d, 0x10, 0x99, 0x01, 0x12, 0x27, 0x0a, 0x22, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x57, 0x48, 0x49, 0x4c, 0x45, 0x5f, 0x43, 0x4f, - 0x52, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4c, 0x33, 0x5f, 0x43, 0x48, 0x45, 0x43, - 0x4b, 0x53, 0x55, 0x4d, 0x10, 0x99, 0x01, 0x12, 0x27, 0x0a, 0x22, 0x45, 0x52, 0x52, 0x4f, 0x52, - 0x5f, 0x57, 0x48, 0x49, 0x4c, 0x45, 0x5f, 0x43, 0x4f, 0x52, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4e, - 0x47, 0x5f, 0x4c, 0x34, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x53, 0x55, 0x4d, 0x10, 0x9a, 0x01, - 0x12, 0x1c, 0x0a, 0x17, 0x43, 0x54, 0x5f, 0x4d, 0x41, 0x50, 0x5f, 0x49, 0x4e, 0x53, 0x45, 0x52, - 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0x9b, 0x01, 0x12, 0x22, - 0x0a, 0x1d, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x49, 0x50, 0x56, 0x36, 0x5f, 0x45, - 0x58, 0x54, 0x45, 0x4e, 0x53, 0x49, 0x4f, 0x4e, 0x5f, 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x10, - 0x9c, 0x01, 0x12, 0x23, 0x0a, 0x1e, 0x49, 0x50, 0x5f, 0x46, 0x52, 0x41, 0x47, 0x4d, 0x45, 0x4e, - 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x55, 0x50, 0x50, 0x4f, - 0x52, 0x54, 0x45, 0x44, 0x10, 0x9d, 0x01, 0x12, 0x1e, 0x0a, 0x19, 0x53, 0x45, 0x52, 0x56, 0x49, - 0x43, 0x45, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x45, 0x4e, 0x44, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, - 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x9e, 0x01, 0x12, 0x28, 0x0a, 0x23, 0x4e, 0x4f, 0x5f, 0x54, 0x55, - 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x4f, 0x52, 0x5f, 0x45, 0x4e, 0x43, 0x41, 0x50, 0x53, 0x55, 0x4c, - 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x4e, 0x44, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x10, 0xa0, - 0x01, 0x12, 0x23, 0x0a, 0x1e, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x54, 0x4f, 0x5f, 0x49, - 0x4e, 0x53, 0x45, 0x52, 0x54, 0x5f, 0x49, 0x4e, 0x54, 0x4f, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, - 0x4d, 0x41, 0x50, 0x10, 0xa1, 0x01, 0x12, 0x2b, 0x0a, 0x26, 0x52, 0x45, 0x41, 0x43, 0x48, 0x45, - 0x44, 0x5f, 0x45, 0x44, 0x54, 0x5f, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, - 0x49, 0x4e, 0x47, 0x5f, 0x44, 0x52, 0x4f, 0x50, 0x5f, 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x4f, 0x4e, - 0x10, 0xa2, 0x01, 0x12, 0x26, 0x0a, 0x21, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x43, - 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x41, 0x43, 0x4b, 0x49, - 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x10, 0xa3, 0x01, 0x12, 0x1e, 0x0a, 0x19, 0x4c, - 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x49, 0x53, 0x5f, 0x55, 0x4e, 0x52, - 0x45, 0x41, 0x43, 0x48, 0x41, 0x42, 0x4c, 0x45, 0x10, 0xa4, 0x01, 0x12, 0x3a, 0x0a, 0x35, 0x4e, - 0x4f, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, 0x5f, 0x54, 0x4f, 0x5f, 0x50, 0x45, 0x52, - 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x44, 0x45, 0x43, 0x49, - 0x53, 0x49, 0x4f, 0x4e, 0x10, 0xa5, 0x01, 0x12, 0x1c, 0x0a, 0x17, 0x55, 0x4e, 0x53, 0x55, 0x50, - 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x4c, 0x32, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, - 0x4f, 0x4c, 0x10, 0xa6, 0x01, 0x12, 0x22, 0x0a, 0x1d, 0x4e, 0x4f, 0x5f, 0x4d, 0x41, 0x50, 0x50, - 0x49, 0x4e, 0x47, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x4e, 0x41, 0x54, 0x5f, 0x4d, 0x41, 0x53, 0x51, - 0x55, 0x45, 0x52, 0x41, 0x44, 0x45, 0x10, 0xa7, 0x01, 0x12, 0x2c, 0x0a, 0x27, 0x55, 0x4e, 0x53, - 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, - 0x4c, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x4e, 0x41, 0x54, 0x5f, 0x4d, 0x41, 0x53, 0x51, 0x55, 0x45, - 0x52, 0x41, 0x44, 0x45, 0x10, 0xa8, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x46, 0x49, 0x42, 0x5f, 0x4c, - 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0xa9, 0x01, 0x12, - 0x28, 0x0a, 0x23, 0x45, 0x4e, 0x43, 0x41, 0x50, 0x53, 0x55, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, - 0x5f, 0x54, 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x5f, 0x49, 0x53, 0x5f, 0x50, 0x52, 0x4f, 0x48, - 0x49, 0x42, 0x49, 0x54, 0x45, 0x44, 0x10, 0xaa, 0x01, 0x12, 0x15, 0x0a, 0x10, 0x49, 0x4e, 0x56, - 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x49, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x10, 0xab, 0x01, - 0x12, 0x13, 0x0a, 0x0e, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x53, 0x45, 0x4e, 0x44, - 0x45, 0x52, 0x10, 0xac, 0x01, 0x12, 0x13, 0x0a, 0x0e, 0x4e, 0x41, 0x54, 0x5f, 0x4e, 0x4f, 0x54, - 0x5f, 0x4e, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0xad, 0x01, 0x12, 0x13, 0x0a, 0x0e, 0x49, 0x53, - 0x5f, 0x41, 0x5f, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x49, 0x50, 0x10, 0xae, 0x01, 0x12, - 0x2e, 0x0a, 0x29, 0x46, 0x49, 0x52, 0x53, 0x54, 0x5f, 0x4c, 0x4f, 0x47, 0x49, 0x43, 0x41, 0x4c, - 0x5f, 0x44, 0x41, 0x54, 0x41, 0x47, 0x52, 0x41, 0x4d, 0x5f, 0x46, 0x52, 0x41, 0x47, 0x4d, 0x45, - 0x4e, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0xaf, 0x01, 0x12, - 0x1d, 0x0a, 0x18, 0x46, 0x4f, 0x52, 0x42, 0x49, 0x44, 0x44, 0x45, 0x4e, 0x5f, 0x49, 0x43, 0x4d, - 0x50, 0x56, 0x36, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10, 0xb0, 0x01, 0x12, 0x21, - 0x0a, 0x1c, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x5f, 0x42, 0x59, 0x5f, 0x4c, 0x42, 0x5f, 0x53, - 0x52, 0x43, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x5f, 0x43, 0x48, 0x45, 0x43, 0x4b, 0x10, 0xb1, - 0x01, 0x12, 0x19, 0x0a, 0x14, 0x53, 0x4f, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, - 0x55, 0x50, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0xb2, 0x01, 0x12, 0x19, 0x0a, 0x14, - 0x53, 0x4f, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x49, 0x47, 0x4e, 0x5f, 0x46, 0x41, - 0x49, 0x4c, 0x45, 0x44, 0x10, 0xb3, 0x01, 0x12, 0x31, 0x0a, 0x2c, 0x50, 0x52, 0x4f, 0x58, 0x59, - 0x5f, 0x52, 0x45, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x54, - 0x5f, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x50, - 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x10, 0xb4, 0x01, 0x12, 0x10, 0x0a, 0x0b, 0x50, 0x4f, - 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x44, 0x45, 0x4e, 0x59, 0x10, 0xb5, 0x01, 0x12, 0x12, 0x0a, 0x0d, - 0x56, 0x4c, 0x41, 0x4e, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x45, 0x44, 0x10, 0xb6, 0x01, - 0x12, 0x10, 0x0a, 0x0b, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x56, 0x4e, 0x49, 0x10, - 0xb7, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x54, 0x43, - 0x5f, 0x42, 0x55, 0x46, 0x46, 0x45, 0x52, 0x10, 0xb8, 0x01, 0x12, 0x0b, 0x0a, 0x06, 0x4e, 0x4f, - 0x5f, 0x53, 0x49, 0x44, 0x10, 0xb9, 0x01, 0x12, 0x1b, 0x0a, 0x12, 0x4d, 0x49, 0x53, 0x53, 0x49, - 0x4e, 0x47, 0x5f, 0x53, 0x52, 0x56, 0x36, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x10, 0xba, 0x01, - 0x1a, 0x02, 0x08, 0x01, 0x12, 0x0a, 0x0a, 0x05, 0x4e, 0x41, 0x54, 0x34, 0x36, 0x10, 0xbb, 0x01, - 0x12, 0x0a, 0x0a, 0x05, 0x4e, 0x41, 0x54, 0x36, 0x34, 0x10, 0xbc, 0x01, 0x12, 0x12, 0x0a, 0x0d, - 0x41, 0x55, 0x54, 0x48, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x49, 0x52, 0x45, 0x44, 0x10, 0xbd, 0x01, - 0x12, 0x14, 0x0a, 0x0f, 0x43, 0x54, 0x5f, 0x4e, 0x4f, 0x5f, 0x4d, 0x41, 0x50, 0x5f, 0x46, 0x4f, - 0x55, 0x4e, 0x44, 0x10, 0xbe, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x53, 0x4e, 0x41, 0x54, 0x5f, 0x4e, - 0x4f, 0x5f, 0x4d, 0x41, 0x50, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0xbf, 0x01, 0x12, 0x17, - 0x0a, 0x12, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, - 0x52, 0x5f, 0x49, 0x44, 0x10, 0xc0, 0x01, 0x12, 0x27, 0x0a, 0x22, 0x55, 0x4e, 0x53, 0x55, 0x50, - 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, - 0x46, 0x4f, 0x52, 0x5f, 0x44, 0x53, 0x52, 0x5f, 0x45, 0x4e, 0x43, 0x41, 0x50, 0x10, 0xc1, 0x01, - 0x12, 0x16, 0x0a, 0x11, 0x4e, 0x4f, 0x5f, 0x45, 0x47, 0x52, 0x45, 0x53, 0x53, 0x5f, 0x47, 0x41, - 0x54, 0x45, 0x57, 0x41, 0x59, 0x10, 0xc2, 0x01, 0x12, 0x18, 0x0a, 0x13, 0x55, 0x4e, 0x45, 0x4e, - 0x43, 0x52, 0x59, 0x50, 0x54, 0x45, 0x44, 0x5f, 0x54, 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x10, - 0xc3, 0x01, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x54, 0x4c, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, - 0x45, 0x44, 0x10, 0xc4, 0x01, 0x12, 0x0f, 0x0a, 0x0a, 0x4e, 0x4f, 0x5f, 0x4e, 0x4f, 0x44, 0x45, - 0x5f, 0x49, 0x44, 0x10, 0xc5, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x44, 0x52, 0x4f, 0x50, 0x5f, 0x52, - 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x45, 0x44, 0x10, 0xc6, 0x01, 0x12, 0x11, - 0x0a, 0x0c, 0x49, 0x47, 0x4d, 0x50, 0x5f, 0x48, 0x41, 0x4e, 0x44, 0x4c, 0x45, 0x44, 0x10, 0xc7, - 0x01, 0x12, 0x14, 0x0a, 0x0f, 0x49, 0x47, 0x4d, 0x50, 0x5f, 0x53, 0x55, 0x42, 0x53, 0x43, 0x52, - 0x49, 0x42, 0x45, 0x44, 0x10, 0xc8, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x4d, 0x55, 0x4c, 0x54, 0x49, - 0x43, 0x41, 0x53, 0x54, 0x5f, 0x48, 0x41, 0x4e, 0x44, 0x4c, 0x45, 0x44, 0x10, 0xc9, 0x01, 0x12, - 0x18, 0x0a, 0x13, 0x44, 0x52, 0x4f, 0x50, 0x5f, 0x48, 0x4f, 0x53, 0x54, 0x5f, 0x4e, 0x4f, 0x54, - 0x5f, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0xca, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x44, 0x52, 0x4f, - 0x50, 0x5f, 0x45, 0x50, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0xcb, - 0x01, 0x12, 0x16, 0x0a, 0x11, 0x44, 0x52, 0x4f, 0x50, 0x5f, 0x4e, 0x4f, 0x5f, 0x45, 0x47, 0x52, - 0x45, 0x53, 0x53, 0x5f, 0x49, 0x50, 0x10, 0xcc, 0x01, 0x2a, 0x4a, 0x0a, 0x10, 0x54, 0x72, 0x61, - 0x66, 0x66, 0x69, 0x63, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, - 0x19, 0x54, 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, - 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, - 0x49, 0x4e, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x47, 0x52, - 0x45, 0x53, 0x53, 0x10, 0x02, 0x2a, 0x8d, 0x02, 0x0a, 0x11, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, - 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x19, 0x44, - 0x42, 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, - 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x42, - 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x49, 0x56, 0x45, - 0x52, 0x59, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, - 0x55, 0x52, 0x45, 0x5f, 0x46, 0x52, 0x4f, 0x4d, 0x5f, 0x4c, 0x42, 0x10, 0x05, 0x12, 0x19, 0x0a, - 0x15, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x41, 0x46, 0x54, - 0x45, 0x52, 0x5f, 0x56, 0x34, 0x36, 0x10, 0x06, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x42, 0x47, 0x5f, - 0x43, 0x41, 0x50, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x41, 0x46, 0x54, 0x45, 0x52, 0x5f, 0x56, 0x36, - 0x34, 0x10, 0x07, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x55, - 0x52, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, 0x5f, 0x50, 0x52, 0x45, 0x10, 0x08, 0x12, 0x1a, - 0x0a, 0x16, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x50, 0x52, - 0x4f, 0x58, 0x59, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x10, 0x09, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x42, - 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x53, 0x4e, 0x41, 0x54, 0x5f, 0x50, - 0x52, 0x45, 0x10, 0x0a, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, - 0x55, 0x52, 0x45, 0x5f, 0x53, 0x4e, 0x41, 0x54, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x10, 0x0b, 0x22, - 0x04, 0x08, 0x01, 0x10, 0x03, 0x2a, 0x39, 0x0a, 0x09, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, - 0x0f, 0x0a, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x10, 0x09, - 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x4c, 0x6f, 0x73, 0x74, 0x10, 0x02, - 0x2a, 0x7f, 0x0a, 0x0f, 0x4c, 0x6f, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x4c, - 0x4f, 0x53, 0x54, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, - 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x45, 0x52, 0x46, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, - 0x5f, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x42, 0x55, 0x46, 0x46, 0x45, 0x52, 0x10, 0x01, 0x12, 0x19, - 0x0a, 0x15, 0x4f, 0x42, 0x53, 0x45, 0x52, 0x56, 0x45, 0x52, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, - 0x53, 0x5f, 0x51, 0x55, 0x45, 0x55, 0x45, 0x10, 0x02, 0x12, 0x16, 0x0a, 0x12, 0x48, 0x55, 0x42, - 0x42, 0x4c, 0x45, 0x5f, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x42, 0x55, 0x46, 0x46, 0x45, 0x52, 0x10, - 0x03, 0x2a, 0xae, 0x02, 0x0a, 0x0e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x45, 0x56, - 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x11, 0x0a, - 0x0d, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x02, - 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, - 0x45, 0x44, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x44, - 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x04, 0x12, 0x1f, 0x0a, 0x1b, 0x45, 0x4e, 0x44, 0x50, - 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x5f, - 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x05, 0x12, 0x1f, 0x0a, 0x1b, 0x45, 0x4e, 0x44, - 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, - 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, 0x06, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x4e, - 0x44, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x07, - 0x12, 0x14, 0x0a, 0x10, 0x45, 0x4e, 0x44, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x44, 0x45, 0x4c, - 0x45, 0x54, 0x45, 0x44, 0x10, 0x08, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x50, 0x43, 0x41, 0x43, 0x48, - 0x45, 0x5f, 0x55, 0x50, 0x53, 0x45, 0x52, 0x54, 0x45, 0x44, 0x10, 0x09, 0x12, 0x13, 0x0a, 0x0f, - 0x49, 0x50, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, - 0x0a, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x55, 0x50, 0x53, - 0x45, 0x52, 0x54, 0x45, 0x44, 0x10, 0x0b, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x45, 0x52, 0x56, 0x49, - 0x43, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x0c, 0x22, 0x04, 0x08, 0x01, - 0x10, 0x01, 0x2a, 0xd8, 0x01, 0x0a, 0x16, 0x53, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1c, 0x0a, - 0x18, 0x53, 0x4f, 0x43, 0x4b, 0x5f, 0x58, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x4f, 0x49, 0x4e, - 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x26, 0x0a, 0x22, 0x53, + 0x52, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x4c, 0x34, 0x5f, 0x43, 0x48, 0x45, 0x43, + 0x4b, 0x53, 0x55, 0x4d, 0x10, 0x9a, 0x01, 0x12, 0x1c, 0x0a, 0x17, 0x43, 0x54, 0x5f, 0x4d, 0x41, + 0x50, 0x5f, 0x49, 0x4e, 0x53, 0x45, 0x52, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, + 0x45, 0x44, 0x10, 0x9b, 0x01, 0x12, 0x22, 0x0a, 0x1d, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, + 0x5f, 0x49, 0x50, 0x56, 0x36, 0x5f, 0x45, 0x58, 0x54, 0x45, 0x4e, 0x53, 0x49, 0x4f, 0x4e, 0x5f, + 0x48, 0x45, 0x41, 0x44, 0x45, 0x52, 0x10, 0x9c, 0x01, 0x12, 0x23, 0x0a, 0x1e, 0x49, 0x50, 0x5f, + 0x46, 0x52, 0x41, 0x47, 0x4d, 0x45, 0x4e, 0x54, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, + 0x54, 0x5f, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x10, 0x9d, 0x01, 0x12, 0x1e, + 0x0a, 0x19, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x45, 0x4e, + 0x44, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x9e, 0x01, 0x12, 0x28, + 0x0a, 0x23, 0x4e, 0x4f, 0x5f, 0x54, 0x55, 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x4f, 0x52, 0x5f, 0x45, + 0x4e, 0x43, 0x41, 0x50, 0x53, 0x55, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x4e, 0x44, + 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x10, 0xa0, 0x01, 0x12, 0x23, 0x0a, 0x1e, 0x46, 0x41, 0x49, 0x4c, + 0x45, 0x44, 0x5f, 0x54, 0x4f, 0x5f, 0x49, 0x4e, 0x53, 0x45, 0x52, 0x54, 0x5f, 0x49, 0x4e, 0x54, + 0x4f, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, 0x4d, 0x41, 0x50, 0x10, 0xa1, 0x01, 0x12, 0x2b, 0x0a, + 0x26, 0x52, 0x45, 0x41, 0x43, 0x48, 0x45, 0x44, 0x5f, 0x45, 0x44, 0x54, 0x5f, 0x52, 0x41, 0x54, + 0x45, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x44, 0x52, 0x4f, 0x50, 0x5f, + 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x4f, 0x4e, 0x10, 0xa2, 0x01, 0x12, 0x26, 0x0a, 0x21, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, + 0x5f, 0x54, 0x52, 0x41, 0x43, 0x4b, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x10, + 0xa3, 0x01, 0x12, 0x1e, 0x0a, 0x19, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x48, 0x4f, 0x53, 0x54, + 0x5f, 0x49, 0x53, 0x5f, 0x55, 0x4e, 0x52, 0x45, 0x41, 0x43, 0x48, 0x41, 0x42, 0x4c, 0x45, 0x10, + 0xa4, 0x01, 0x12, 0x3a, 0x0a, 0x35, 0x4e, 0x4f, 0x5f, 0x43, 0x4f, 0x4e, 0x46, 0x49, 0x47, 0x55, + 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x56, 0x41, 0x49, 0x4c, 0x41, 0x42, 0x4c, 0x45, + 0x5f, 0x54, 0x4f, 0x5f, 0x50, 0x45, 0x52, 0x46, 0x4f, 0x52, 0x4d, 0x5f, 0x50, 0x4f, 0x4c, 0x49, + 0x43, 0x59, 0x5f, 0x44, 0x45, 0x43, 0x49, 0x53, 0x49, 0x4f, 0x4e, 0x10, 0xa5, 0x01, 0x12, 0x1c, + 0x0a, 0x17, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x4c, 0x32, + 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x10, 0xa6, 0x01, 0x12, 0x22, 0x0a, 0x1d, + 0x4e, 0x4f, 0x5f, 0x4d, 0x41, 0x50, 0x50, 0x49, 0x4e, 0x47, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x4e, + 0x41, 0x54, 0x5f, 0x4d, 0x41, 0x53, 0x51, 0x55, 0x45, 0x52, 0x41, 0x44, 0x45, 0x10, 0xa7, 0x01, + 0x12, 0x2c, 0x0a, 0x27, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, + 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x4e, 0x41, 0x54, + 0x5f, 0x4d, 0x41, 0x53, 0x51, 0x55, 0x45, 0x52, 0x41, 0x44, 0x45, 0x10, 0xa8, 0x01, 0x12, 0x16, + 0x0a, 0x11, 0x46, 0x49, 0x42, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x46, 0x41, 0x49, + 0x4c, 0x45, 0x44, 0x10, 0xa9, 0x01, 0x12, 0x28, 0x0a, 0x23, 0x45, 0x4e, 0x43, 0x41, 0x50, 0x53, + 0x55, 0x4c, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x54, 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x5f, + 0x49, 0x53, 0x5f, 0x50, 0x52, 0x4f, 0x48, 0x49, 0x42, 0x49, 0x54, 0x45, 0x44, 0x10, 0xaa, 0x01, + 0x12, 0x15, 0x0a, 0x10, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x49, 0x44, 0x45, 0x4e, + 0x54, 0x49, 0x54, 0x59, 0x10, 0xab, 0x01, 0x12, 0x13, 0x0a, 0x0e, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, + 0x57, 0x4e, 0x5f, 0x53, 0x45, 0x4e, 0x44, 0x45, 0x52, 0x10, 0xac, 0x01, 0x12, 0x13, 0x0a, 0x0e, + 0x4e, 0x41, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x4e, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0xad, + 0x01, 0x12, 0x13, 0x0a, 0x0e, 0x49, 0x53, 0x5f, 0x41, 0x5f, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, + 0x52, 0x49, 0x50, 0x10, 0xae, 0x01, 0x12, 0x2e, 0x0a, 0x29, 0x46, 0x49, 0x52, 0x53, 0x54, 0x5f, + 0x4c, 0x4f, 0x47, 0x49, 0x43, 0x41, 0x4c, 0x5f, 0x44, 0x41, 0x54, 0x41, 0x47, 0x52, 0x41, 0x4d, + 0x5f, 0x46, 0x52, 0x41, 0x47, 0x4d, 0x45, 0x4e, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, + 0x55, 0x4e, 0x44, 0x10, 0xaf, 0x01, 0x12, 0x1d, 0x0a, 0x18, 0x46, 0x4f, 0x52, 0x42, 0x49, 0x44, + 0x44, 0x45, 0x4e, 0x5f, 0x49, 0x43, 0x4d, 0x50, 0x56, 0x36, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, + 0x47, 0x45, 0x10, 0xb0, 0x01, 0x12, 0x21, 0x0a, 0x1c, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x5f, + 0x42, 0x59, 0x5f, 0x4c, 0x42, 0x5f, 0x53, 0x52, 0x43, 0x5f, 0x52, 0x41, 0x4e, 0x47, 0x45, 0x5f, + 0x43, 0x48, 0x45, 0x43, 0x4b, 0x10, 0xb1, 0x01, 0x12, 0x19, 0x0a, 0x14, 0x53, 0x4f, 0x43, 0x4b, + 0x45, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, + 0x10, 0xb2, 0x01, 0x12, 0x19, 0x0a, 0x14, 0x53, 0x4f, 0x43, 0x4b, 0x45, 0x54, 0x5f, 0x41, 0x53, + 0x53, 0x49, 0x47, 0x4e, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, 0xb3, 0x01, 0x12, 0x31, + 0x0a, 0x2c, 0x50, 0x52, 0x4f, 0x58, 0x59, 0x5f, 0x52, 0x45, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, + 0x44, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x10, 0xb4, + 0x01, 0x12, 0x10, 0x0a, 0x0b, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x44, 0x45, 0x4e, 0x59, + 0x10, 0xb5, 0x01, 0x12, 0x12, 0x0a, 0x0d, 0x56, 0x4c, 0x41, 0x4e, 0x5f, 0x46, 0x49, 0x4c, 0x54, + 0x45, 0x52, 0x45, 0x44, 0x10, 0xb6, 0x01, 0x12, 0x10, 0x0a, 0x0b, 0x49, 0x4e, 0x56, 0x41, 0x4c, + 0x49, 0x44, 0x5f, 0x56, 0x4e, 0x49, 0x10, 0xb7, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x49, 0x4e, 0x56, + 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x54, 0x43, 0x5f, 0x42, 0x55, 0x46, 0x46, 0x45, 0x52, 0x10, 0xb8, + 0x01, 0x12, 0x0b, 0x0a, 0x06, 0x4e, 0x4f, 0x5f, 0x53, 0x49, 0x44, 0x10, 0xb9, 0x01, 0x12, 0x1b, + 0x0a, 0x12, 0x4d, 0x49, 0x53, 0x53, 0x49, 0x4e, 0x47, 0x5f, 0x53, 0x52, 0x56, 0x36, 0x5f, 0x53, + 0x54, 0x41, 0x54, 0x45, 0x10, 0xba, 0x01, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x0a, 0x0a, 0x05, 0x4e, + 0x41, 0x54, 0x34, 0x36, 0x10, 0xbb, 0x01, 0x12, 0x0a, 0x0a, 0x05, 0x4e, 0x41, 0x54, 0x36, 0x34, + 0x10, 0xbc, 0x01, 0x12, 0x12, 0x0a, 0x0d, 0x41, 0x55, 0x54, 0x48, 0x5f, 0x52, 0x45, 0x51, 0x55, + 0x49, 0x52, 0x45, 0x44, 0x10, 0xbd, 0x01, 0x12, 0x14, 0x0a, 0x0f, 0x43, 0x54, 0x5f, 0x4e, 0x4f, + 0x5f, 0x4d, 0x41, 0x50, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0xbe, 0x01, 0x12, 0x16, 0x0a, + 0x11, 0x53, 0x4e, 0x41, 0x54, 0x5f, 0x4e, 0x4f, 0x5f, 0x4d, 0x41, 0x50, 0x5f, 0x46, 0x4f, 0x55, + 0x4e, 0x44, 0x10, 0xbf, 0x01, 0x12, 0x17, 0x0a, 0x12, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, + 0x5f, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x5f, 0x49, 0x44, 0x10, 0xc0, 0x01, 0x12, 0x27, + 0x0a, 0x22, 0x55, 0x4e, 0x53, 0x55, 0x50, 0x50, 0x4f, 0x52, 0x54, 0x45, 0x44, 0x5f, 0x50, 0x52, + 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x46, 0x4f, 0x52, 0x5f, 0x44, 0x53, 0x52, 0x5f, 0x45, + 0x4e, 0x43, 0x41, 0x50, 0x10, 0xc1, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x4e, 0x4f, 0x5f, 0x45, 0x47, + 0x52, 0x45, 0x53, 0x53, 0x5f, 0x47, 0x41, 0x54, 0x45, 0x57, 0x41, 0x59, 0x10, 0xc2, 0x01, 0x12, + 0x18, 0x0a, 0x13, 0x55, 0x4e, 0x45, 0x4e, 0x43, 0x52, 0x59, 0x50, 0x54, 0x45, 0x44, 0x5f, 0x54, + 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x10, 0xc3, 0x01, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x54, 0x4c, + 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0xc4, 0x01, 0x12, 0x0f, 0x0a, 0x0a, + 0x4e, 0x4f, 0x5f, 0x4e, 0x4f, 0x44, 0x45, 0x5f, 0x49, 0x44, 0x10, 0xc5, 0x01, 0x12, 0x16, 0x0a, + 0x11, 0x44, 0x52, 0x4f, 0x50, 0x5f, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x4c, 0x49, 0x4d, 0x49, 0x54, + 0x45, 0x44, 0x10, 0xc6, 0x01, 0x12, 0x11, 0x0a, 0x0c, 0x49, 0x47, 0x4d, 0x50, 0x5f, 0x48, 0x41, + 0x4e, 0x44, 0x4c, 0x45, 0x44, 0x10, 0xc7, 0x01, 0x12, 0x14, 0x0a, 0x0f, 0x49, 0x47, 0x4d, 0x50, + 0x5f, 0x53, 0x55, 0x42, 0x53, 0x43, 0x52, 0x49, 0x42, 0x45, 0x44, 0x10, 0xc8, 0x01, 0x12, 0x16, + 0x0a, 0x11, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x43, 0x41, 0x53, 0x54, 0x5f, 0x48, 0x41, 0x4e, 0x44, + 0x4c, 0x45, 0x44, 0x10, 0xc9, 0x01, 0x12, 0x18, 0x0a, 0x13, 0x44, 0x52, 0x4f, 0x50, 0x5f, 0x48, + 0x4f, 0x53, 0x54, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0xca, 0x01, + 0x12, 0x16, 0x0a, 0x11, 0x44, 0x52, 0x4f, 0x50, 0x5f, 0x45, 0x50, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, + 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0xcb, 0x01, 0x12, 0x16, 0x0a, 0x11, 0x44, 0x52, 0x4f, 0x50, + 0x5f, 0x4e, 0x4f, 0x5f, 0x45, 0x47, 0x52, 0x45, 0x53, 0x53, 0x5f, 0x49, 0x50, 0x10, 0xcc, 0x01, + 0x2a, 0x4a, 0x0a, 0x10, 0x54, 0x72, 0x61, 0x66, 0x66, 0x69, 0x63, 0x44, 0x69, 0x72, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x19, 0x54, 0x52, 0x41, 0x46, 0x46, 0x49, 0x43, 0x5f, + 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, + 0x4e, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x01, + 0x12, 0x0a, 0x0a, 0x06, 0x45, 0x47, 0x52, 0x45, 0x53, 0x53, 0x10, 0x02, 0x2a, 0x8d, 0x02, 0x0a, + 0x11, 0x44, 0x65, 0x62, 0x75, 0x67, 0x43, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x50, 0x6f, 0x69, + 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x55, 0x52, + 0x45, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, + 0x00, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x55, 0x52, 0x45, + 0x5f, 0x44, 0x45, 0x4c, 0x49, 0x56, 0x45, 0x52, 0x59, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x44, + 0x42, 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x46, 0x52, 0x4f, 0x4d, 0x5f, + 0x4c, 0x42, 0x10, 0x05, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, + 0x55, 0x52, 0x45, 0x5f, 0x41, 0x46, 0x54, 0x45, 0x52, 0x5f, 0x56, 0x34, 0x36, 0x10, 0x06, 0x12, + 0x19, 0x0a, 0x15, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x41, + 0x46, 0x54, 0x45, 0x52, 0x5f, 0x56, 0x36, 0x34, 0x10, 0x07, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x42, + 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, 0x5f, + 0x50, 0x52, 0x45, 0x10, 0x08, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x41, 0x50, + 0x54, 0x55, 0x52, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x10, + 0x09, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x55, 0x52, 0x45, + 0x5f, 0x53, 0x4e, 0x41, 0x54, 0x5f, 0x50, 0x52, 0x45, 0x10, 0x0a, 0x12, 0x19, 0x0a, 0x15, 0x44, + 0x42, 0x47, 0x5f, 0x43, 0x41, 0x50, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x53, 0x4e, 0x41, 0x54, 0x5f, + 0x50, 0x4f, 0x53, 0x54, 0x10, 0x0b, 0x22, 0x04, 0x08, 0x01, 0x10, 0x03, 0x2a, 0x39, 0x0a, 0x09, + 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, + 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x53, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x10, 0x09, 0x12, 0x0e, 0x0a, 0x0a, 0x52, 0x65, 0x63, 0x6f, 0x72, + 0x64, 0x4c, 0x6f, 0x73, 0x74, 0x10, 0x02, 0x2a, 0x7f, 0x0a, 0x0f, 0x4c, 0x6f, 0x73, 0x74, 0x45, + 0x76, 0x65, 0x6e, 0x74, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1d, 0x0a, 0x19, 0x55, 0x4e, + 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x5f, 0x4c, 0x4f, 0x53, 0x54, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, + 0x5f, 0x53, 0x4f, 0x55, 0x52, 0x43, 0x45, 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x45, 0x52, + 0x46, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x52, 0x49, 0x4e, 0x47, 0x5f, 0x42, 0x55, 0x46, + 0x46, 0x45, 0x52, 0x10, 0x01, 0x12, 0x19, 0x0a, 0x15, 0x4f, 0x42, 0x53, 0x45, 0x52, 0x56, 0x45, + 0x52, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x53, 0x5f, 0x51, 0x55, 0x45, 0x55, 0x45, 0x10, 0x02, + 0x12, 0x16, 0x0a, 0x12, 0x48, 0x55, 0x42, 0x42, 0x4c, 0x45, 0x5f, 0x52, 0x49, 0x4e, 0x47, 0x5f, + 0x42, 0x55, 0x46, 0x46, 0x45, 0x52, 0x10, 0x03, 0x2a, 0xae, 0x02, 0x0a, 0x0e, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x41, + 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, + 0x57, 0x4e, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x47, 0x45, 0x4e, 0x54, 0x5f, 0x53, 0x54, + 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x4f, 0x4c, 0x49, 0x43, + 0x59, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x44, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x50, + 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x04, 0x12, + 0x1f, 0x0a, 0x1b, 0x45, 0x4e, 0x44, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x52, 0x45, 0x47, 0x45, + 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x05, + 0x12, 0x1f, 0x0a, 0x1b, 0x45, 0x4e, 0x44, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x52, 0x45, 0x47, + 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x55, 0x52, 0x45, 0x10, + 0x06, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x4e, 0x44, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x43, 0x52, + 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x07, 0x12, 0x14, 0x0a, 0x10, 0x45, 0x4e, 0x44, 0x50, 0x4f, + 0x49, 0x4e, 0x54, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x08, 0x12, 0x14, 0x0a, + 0x10, 0x49, 0x50, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x55, 0x50, 0x53, 0x45, 0x52, 0x54, 0x45, + 0x44, 0x10, 0x09, 0x12, 0x13, 0x0a, 0x0f, 0x49, 0x50, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x44, + 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x0a, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x45, 0x52, 0x56, + 0x49, 0x43, 0x45, 0x5f, 0x55, 0x50, 0x53, 0x45, 0x52, 0x54, 0x45, 0x44, 0x10, 0x0b, 0x12, 0x13, + 0x0a, 0x0f, 0x53, 0x45, 0x52, 0x56, 0x49, 0x43, 0x45, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, + 0x44, 0x10, 0x0c, 0x22, 0x04, 0x08, 0x01, 0x10, 0x01, 0x2a, 0xd8, 0x01, 0x0a, 0x16, 0x53, 0x6f, + 0x63, 0x6b, 0x65, 0x74, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, + 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x4f, 0x43, 0x4b, 0x5f, 0x58, 0x4c, 0x41, + 0x54, 0x45, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, + 0x10, 0x00, 0x12, 0x26, 0x0a, 0x22, 0x53, 0x4f, 0x43, 0x4b, 0x5f, 0x58, 0x4c, 0x41, 0x54, 0x45, + 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x50, 0x52, 0x45, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x57, 0x44, 0x10, 0x01, 0x12, 0x27, 0x0a, 0x23, 0x53, 0x4f, + 0x43, 0x4b, 0x5f, 0x58, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x50, + 0x4f, 0x53, 0x54, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x57, + 0x44, 0x10, 0x02, 0x12, 0x26, 0x0a, 0x22, 0x53, 0x4f, 0x43, 0x4b, 0x5f, 0x58, 0x4c, 0x41, 0x54, + 0x45, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x50, 0x52, 0x45, 0x5f, 0x44, 0x49, 0x52, 0x45, + 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x56, 0x10, 0x03, 0x12, 0x27, 0x0a, 0x23, 0x53, 0x4f, 0x43, 0x4b, 0x5f, 0x58, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, - 0x50, 0x52, 0x45, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x57, - 0x44, 0x10, 0x01, 0x12, 0x27, 0x0a, 0x23, 0x53, 0x4f, 0x43, 0x4b, 0x5f, 0x58, 0x4c, 0x41, 0x54, - 0x45, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x5f, 0x44, 0x49, 0x52, - 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x46, 0x57, 0x44, 0x10, 0x02, 0x12, 0x26, 0x0a, 0x22, - 0x53, 0x4f, 0x43, 0x4b, 0x5f, 0x58, 0x4c, 0x41, 0x54, 0x45, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, - 0x5f, 0x50, 0x52, 0x45, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, - 0x45, 0x56, 0x10, 0x03, 0x12, 0x27, 0x0a, 0x23, 0x53, 0x4f, 0x43, 0x4b, 0x5f, 0x58, 0x4c, 0x41, - 0x54, 0x45, 0x5f, 0x50, 0x4f, 0x49, 0x4e, 0x54, 0x5f, 0x50, 0x4f, 0x53, 0x54, 0x5f, 0x44, 0x49, - 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x56, 0x10, 0x04, 0x2a, 0x81, 0x0d, - 0x0a, 0x0e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x15, 0x0a, 0x11, 0x44, 0x42, 0x47, 0x5f, 0x45, 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x4e, - 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x42, 0x47, 0x5f, 0x47, - 0x45, 0x4e, 0x45, 0x52, 0x49, 0x43, 0x10, 0x01, 0x12, 0x16, 0x0a, 0x12, 0x44, 0x42, 0x47, 0x5f, - 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x44, 0x45, 0x4c, 0x49, 0x56, 0x45, 0x52, 0x59, 0x10, 0x02, - 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x42, 0x47, 0x5f, 0x45, 0x4e, 0x43, 0x41, 0x50, 0x10, 0x03, 0x12, - 0x11, 0x0a, 0x0d, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x58, 0x43, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, - 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x42, 0x47, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, - 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x05, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x42, 0x47, - 0x5f, 0x43, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, - 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x52, 0x45, - 0x56, 0x10, 0x07, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x4d, 0x41, - 0x54, 0x43, 0x48, 0x10, 0x08, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, - 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x09, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x42, 0x47, - 0x5f, 0x43, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x32, 0x10, 0x0a, 0x12, 0x14, - 0x0a, 0x10, 0x44, 0x42, 0x47, 0x5f, 0x49, 0x43, 0x4d, 0x50, 0x36, 0x5f, 0x48, 0x41, 0x4e, 0x44, - 0x4c, 0x45, 0x10, 0x0b, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x42, 0x47, 0x5f, 0x49, 0x43, 0x4d, 0x50, - 0x36, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, 0x10, 0x0c, 0x12, 0x10, 0x0a, 0x0c, 0x44, - 0x42, 0x47, 0x5f, 0x49, 0x43, 0x4d, 0x50, 0x36, 0x5f, 0x4e, 0x53, 0x10, 0x0d, 0x12, 0x1b, 0x0a, - 0x17, 0x44, 0x42, 0x47, 0x5f, 0x49, 0x43, 0x4d, 0x50, 0x36, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, - 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, 0x0e, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x42, - 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x56, 0x45, 0x52, 0x44, 0x49, 0x43, 0x54, 0x10, 0x0f, 0x12, 0x0d, - 0x0a, 0x09, 0x44, 0x42, 0x47, 0x5f, 0x44, 0x45, 0x43, 0x41, 0x50, 0x10, 0x10, 0x12, 0x10, 0x0a, - 0x0c, 0x44, 0x42, 0x47, 0x5f, 0x50, 0x4f, 0x52, 0x54, 0x5f, 0x4d, 0x41, 0x50, 0x10, 0x11, 0x12, - 0x11, 0x0a, 0x0d, 0x44, 0x42, 0x47, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x5f, 0x52, 0x45, 0x54, - 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x42, 0x47, 0x5f, 0x54, 0x4f, 0x5f, 0x48, 0x4f, 0x53, - 0x54, 0x10, 0x13, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x42, 0x47, 0x5f, 0x54, 0x4f, 0x5f, 0x53, 0x54, - 0x41, 0x43, 0x4b, 0x10, 0x14, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x42, 0x47, 0x5f, 0x50, 0x4b, 0x54, - 0x5f, 0x48, 0x41, 0x53, 0x48, 0x10, 0x15, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x42, 0x47, 0x5f, 0x4c, - 0x42, 0x36, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x46, 0x52, 0x4f, 0x4e, 0x54, 0x45, - 0x4e, 0x44, 0x10, 0x16, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x36, 0x5f, - 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x46, 0x52, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x44, 0x5f, - 0x46, 0x41, 0x49, 0x4c, 0x10, 0x17, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, - 0x36, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x45, 0x4e, 0x44, - 0x5f, 0x53, 0x4c, 0x4f, 0x54, 0x10, 0x18, 0x12, 0x27, 0x0a, 0x23, 0x44, 0x42, 0x47, 0x5f, 0x4c, + 0x50, 0x4f, 0x53, 0x54, 0x5f, 0x44, 0x49, 0x52, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, + 0x45, 0x56, 0x10, 0x04, 0x2a, 0x81, 0x0d, 0x0a, 0x0e, 0x44, 0x65, 0x62, 0x75, 0x67, 0x45, 0x76, + 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x42, 0x47, 0x5f, 0x45, + 0x56, 0x45, 0x4e, 0x54, 0x5f, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x0f, + 0x0a, 0x0b, 0x44, 0x42, 0x47, 0x5f, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x49, 0x43, 0x10, 0x01, 0x12, + 0x16, 0x0a, 0x12, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x44, 0x45, 0x4c, + 0x49, 0x56, 0x45, 0x52, 0x59, 0x10, 0x02, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x42, 0x47, 0x5f, 0x45, + 0x4e, 0x43, 0x41, 0x50, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x58, + 0x43, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x04, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x42, 0x47, + 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x44, 0x45, 0x4e, 0x49, 0x45, 0x44, 0x10, 0x05, + 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, + 0x50, 0x10, 0x06, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x4c, 0x4f, + 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x52, 0x45, 0x56, 0x10, 0x07, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x42, + 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x4d, 0x41, 0x54, 0x43, 0x48, 0x10, 0x08, 0x12, 0x12, 0x0a, 0x0e, + 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x10, 0x09, + 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, + 0x45, 0x44, 0x32, 0x10, 0x0a, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x42, 0x47, 0x5f, 0x49, 0x43, 0x4d, + 0x50, 0x36, 0x5f, 0x48, 0x41, 0x4e, 0x44, 0x4c, 0x45, 0x10, 0x0b, 0x12, 0x15, 0x0a, 0x11, 0x44, + 0x42, 0x47, 0x5f, 0x49, 0x43, 0x4d, 0x50, 0x36, 0x5f, 0x52, 0x45, 0x51, 0x55, 0x45, 0x53, 0x54, + 0x10, 0x0c, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x42, 0x47, 0x5f, 0x49, 0x43, 0x4d, 0x50, 0x36, 0x5f, + 0x4e, 0x53, 0x10, 0x0d, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x42, 0x47, 0x5f, 0x49, 0x43, 0x4d, 0x50, + 0x36, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x45, 0x44, 0x10, + 0x0e, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x56, 0x45, 0x52, 0x44, + 0x49, 0x43, 0x54, 0x10, 0x0f, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x42, 0x47, 0x5f, 0x44, 0x45, 0x43, + 0x41, 0x50, 0x10, 0x10, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x42, 0x47, 0x5f, 0x50, 0x4f, 0x52, 0x54, + 0x5f, 0x4d, 0x41, 0x50, 0x10, 0x11, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x42, 0x47, 0x5f, 0x45, 0x52, + 0x52, 0x4f, 0x52, 0x5f, 0x52, 0x45, 0x54, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x42, 0x47, + 0x5f, 0x54, 0x4f, 0x5f, 0x48, 0x4f, 0x53, 0x54, 0x10, 0x13, 0x12, 0x10, 0x0a, 0x0c, 0x44, 0x42, + 0x47, 0x5f, 0x54, 0x4f, 0x5f, 0x53, 0x54, 0x41, 0x43, 0x4b, 0x10, 0x14, 0x12, 0x10, 0x0a, 0x0c, + 0x44, 0x42, 0x47, 0x5f, 0x50, 0x4b, 0x54, 0x5f, 0x48, 0x41, 0x53, 0x48, 0x10, 0x15, 0x12, 0x1b, + 0x0a, 0x17, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x36, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, + 0x5f, 0x46, 0x52, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x44, 0x10, 0x16, 0x12, 0x20, 0x0a, 0x1c, 0x44, + 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x36, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x46, 0x52, + 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x17, 0x12, 0x1f, 0x0a, + 0x1b, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x36, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, + 0x42, 0x41, 0x43, 0x4b, 0x45, 0x4e, 0x44, 0x5f, 0x53, 0x4c, 0x4f, 0x54, 0x10, 0x18, 0x12, 0x27, + 0x0a, 0x23, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x36, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, + 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x45, 0x4e, 0x44, 0x5f, 0x53, 0x4c, 0x4f, 0x54, 0x5f, 0x53, 0x55, + 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x19, 0x12, 0x27, 0x0a, 0x23, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x36, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x45, 0x4e, - 0x44, 0x5f, 0x53, 0x4c, 0x4f, 0x54, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x19, - 0x12, 0x27, 0x0a, 0x23, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x36, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, - 0x55, 0x50, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x45, 0x4e, 0x44, 0x5f, 0x53, 0x4c, 0x4f, 0x54, 0x5f, - 0x56, 0x32, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x1a, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x42, 0x47, - 0x5f, 0x4c, 0x42, 0x36, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x42, 0x41, 0x43, 0x4b, - 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x1b, 0x12, 0x1e, 0x0a, 0x1a, 0x44, 0x42, - 0x47, 0x5f, 0x4c, 0x42, 0x36, 0x5f, 0x52, 0x45, 0x56, 0x45, 0x52, 0x53, 0x45, 0x5f, 0x4e, 0x41, - 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x10, 0x1c, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x42, - 0x47, 0x5f, 0x4c, 0x42, 0x36, 0x5f, 0x52, 0x45, 0x56, 0x45, 0x52, 0x53, 0x45, 0x5f, 0x4e, 0x41, - 0x54, 0x10, 0x1d, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x34, 0x5f, 0x4c, - 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x46, 0x52, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x44, 0x10, 0x1e, - 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x34, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, - 0x55, 0x50, 0x5f, 0x46, 0x52, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, - 0x10, 0x1f, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x34, 0x5f, 0x4c, 0x4f, - 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x45, 0x4e, 0x44, 0x5f, 0x53, 0x4c, 0x4f, - 0x54, 0x10, 0x20, 0x12, 0x27, 0x0a, 0x23, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x34, 0x5f, 0x4c, + 0x44, 0x5f, 0x53, 0x4c, 0x4f, 0x54, 0x5f, 0x56, 0x32, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x1a, + 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x36, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, + 0x55, 0x50, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, + 0x1b, 0x12, 0x1e, 0x0a, 0x1a, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x36, 0x5f, 0x52, 0x45, 0x56, + 0x45, 0x52, 0x53, 0x45, 0x5f, 0x4e, 0x41, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x10, + 0x1c, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x36, 0x5f, 0x52, 0x45, 0x56, + 0x45, 0x52, 0x53, 0x45, 0x5f, 0x4e, 0x41, 0x54, 0x10, 0x1d, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x42, + 0x47, 0x5f, 0x4c, 0x42, 0x34, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x46, 0x52, 0x4f, + 0x4e, 0x54, 0x45, 0x4e, 0x44, 0x10, 0x1e, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x42, 0x47, 0x5f, 0x4c, + 0x42, 0x34, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x46, 0x52, 0x4f, 0x4e, 0x54, 0x45, + 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x1f, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x42, 0x47, + 0x5f, 0x4c, 0x42, 0x34, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x42, 0x41, 0x43, 0x4b, + 0x45, 0x4e, 0x44, 0x5f, 0x53, 0x4c, 0x4f, 0x54, 0x10, 0x20, 0x12, 0x27, 0x0a, 0x23, 0x44, 0x42, + 0x47, 0x5f, 0x4c, 0x42, 0x34, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x42, 0x41, 0x43, + 0x4b, 0x45, 0x4e, 0x44, 0x5f, 0x53, 0x4c, 0x4f, 0x54, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, + 0x53, 0x10, 0x21, 0x12, 0x27, 0x0a, 0x23, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x34, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x45, 0x4e, 0x44, 0x5f, 0x53, 0x4c, - 0x4f, 0x54, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x21, 0x12, 0x27, 0x0a, 0x23, + 0x4f, 0x54, 0x5f, 0x56, 0x32, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x22, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x34, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x42, - 0x41, 0x43, 0x4b, 0x45, 0x4e, 0x44, 0x5f, 0x53, 0x4c, 0x4f, 0x54, 0x5f, 0x56, 0x32, 0x5f, 0x46, - 0x41, 0x49, 0x4c, 0x10, 0x22, 0x12, 0x1f, 0x0a, 0x1b, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x34, - 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x45, 0x4e, 0x44, 0x5f, - 0x46, 0x41, 0x49, 0x4c, 0x10, 0x23, 0x12, 0x1e, 0x0a, 0x1a, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, - 0x34, 0x5f, 0x52, 0x45, 0x56, 0x45, 0x52, 0x53, 0x45, 0x5f, 0x4e, 0x41, 0x54, 0x5f, 0x4c, 0x4f, - 0x4f, 0x4b, 0x55, 0x50, 0x10, 0x24, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, - 0x34, 0x5f, 0x52, 0x45, 0x56, 0x45, 0x52, 0x53, 0x45, 0x5f, 0x4e, 0x41, 0x54, 0x10, 0x25, 0x12, - 0x19, 0x0a, 0x15, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x34, 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x42, - 0x41, 0x43, 0x4b, 0x5f, 0x53, 0x4e, 0x41, 0x54, 0x10, 0x26, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x42, - 0x47, 0x5f, 0x4c, 0x42, 0x34, 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x42, 0x41, 0x43, 0x4b, 0x5f, 0x53, - 0x4e, 0x41, 0x54, 0x5f, 0x52, 0x45, 0x56, 0x10, 0x27, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x42, 0x47, - 0x5f, 0x43, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x34, 0x10, 0x28, 0x12, 0x1b, 0x0a, - 0x17, 0x44, 0x42, 0x47, 0x5f, 0x52, 0x52, 0x5f, 0x42, 0x41, 0x43, 0x4b, 0x45, 0x4e, 0x44, 0x5f, - 0x53, 0x4c, 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x4c, 0x10, 0x29, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x42, - 0x47, 0x5f, 0x52, 0x45, 0x56, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, - 0x55, 0x50, 0x10, 0x2a, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x42, 0x47, 0x5f, 0x52, 0x45, 0x56, 0x5f, - 0x50, 0x52, 0x4f, 0x58, 0x59, 0x5f, 0x46, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x2b, 0x12, 0x18, 0x0a, - 0x14, 0x44, 0x42, 0x47, 0x5f, 0x52, 0x45, 0x56, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, 0x5f, 0x55, - 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x2c, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x42, 0x47, 0x5f, 0x4c, - 0x34, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x10, 0x2d, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x42, - 0x47, 0x5f, 0x4e, 0x45, 0x54, 0x44, 0x45, 0x56, 0x5f, 0x49, 0x4e, 0x5f, 0x43, 0x4c, 0x55, 0x53, - 0x54, 0x45, 0x52, 0x10, 0x2e, 0x12, 0x15, 0x0a, 0x11, 0x44, 0x42, 0x47, 0x5f, 0x4e, 0x45, 0x54, - 0x44, 0x45, 0x56, 0x5f, 0x45, 0x4e, 0x43, 0x41, 0x50, 0x34, 0x10, 0x2f, 0x12, 0x14, 0x0a, 0x10, - 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x34, 0x5f, 0x31, - 0x10, 0x30, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, - 0x4b, 0x55, 0x50, 0x34, 0x5f, 0x32, 0x10, 0x31, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x42, 0x47, 0x5f, - 0x43, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x34, 0x10, 0x32, 0x12, 0x14, 0x0a, - 0x10, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x36, 0x5f, - 0x31, 0x10, 0x33, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x4c, 0x4f, - 0x4f, 0x4b, 0x55, 0x50, 0x36, 0x5f, 0x32, 0x10, 0x34, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x42, 0x47, - 0x5f, 0x43, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x44, 0x36, 0x10, 0x35, 0x12, 0x12, - 0x0a, 0x0e, 0x44, 0x42, 0x47, 0x5f, 0x53, 0x4b, 0x49, 0x50, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, - 0x10, 0x36, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x34, 0x5f, 0x43, 0x52, 0x45, - 0x41, 0x54, 0x45, 0x10, 0x37, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x42, 0x47, 0x5f, 0x49, 0x50, 0x5f, - 0x49, 0x44, 0x5f, 0x4d, 0x41, 0x50, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x34, 0x10, 0x38, - 0x12, 0x19, 0x0a, 0x15, 0x44, 0x42, 0x47, 0x5f, 0x49, 0x50, 0x5f, 0x49, 0x44, 0x5f, 0x4d, 0x41, - 0x50, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x36, 0x10, 0x39, 0x12, 0x1a, 0x0a, 0x16, 0x44, - 0x42, 0x47, 0x5f, 0x49, 0x50, 0x5f, 0x49, 0x44, 0x5f, 0x4d, 0x41, 0x50, 0x5f, 0x53, 0x55, 0x43, - 0x43, 0x45, 0x45, 0x44, 0x34, 0x10, 0x3a, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x42, 0x47, 0x5f, 0x49, - 0x50, 0x5f, 0x49, 0x44, 0x5f, 0x4d, 0x41, 0x50, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, - 0x36, 0x10, 0x3b, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x5f, 0x53, 0x54, - 0x41, 0x4c, 0x45, 0x5f, 0x43, 0x54, 0x10, 0x3c, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x42, 0x47, 0x5f, - 0x49, 0x4e, 0x48, 0x45, 0x52, 0x49, 0x54, 0x5f, 0x49, 0x44, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, - 0x10, 0x3d, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x42, 0x47, 0x5f, 0x53, 0x4b, 0x5f, 0x4c, 0x4f, 0x4f, - 0x4b, 0x55, 0x50, 0x34, 0x10, 0x3e, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x42, 0x47, 0x5f, 0x53, 0x4b, - 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x36, 0x10, 0x3f, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x42, - 0x47, 0x5f, 0x53, 0x4b, 0x5f, 0x41, 0x53, 0x53, 0x49, 0x47, 0x4e, 0x10, 0x40, 0x12, 0x0d, 0x0a, - 0x09, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x37, 0x5f, 0x4c, 0x42, 0x10, 0x41, 0x12, 0x13, 0x0a, 0x0f, - 0x44, 0x42, 0x47, 0x5f, 0x53, 0x4b, 0x49, 0x50, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x10, - 0x42, 0x42, 0x26, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x63, 0x69, 0x6c, 0x69, 0x75, 0x6d, 0x2f, 0x63, 0x69, 0x6c, 0x69, 0x75, 0x6d, 0x2f, 0x61, 0x70, - 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x6c, 0x6f, 0x77, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x41, 0x43, 0x4b, 0x45, 0x4e, 0x44, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x10, 0x23, 0x12, 0x1e, 0x0a, + 0x1a, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x34, 0x5f, 0x52, 0x45, 0x56, 0x45, 0x52, 0x53, 0x45, + 0x5f, 0x4e, 0x41, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x10, 0x24, 0x12, 0x17, 0x0a, + 0x13, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x34, 0x5f, 0x52, 0x45, 0x56, 0x45, 0x52, 0x53, 0x45, + 0x5f, 0x4e, 0x41, 0x54, 0x10, 0x25, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, + 0x34, 0x5f, 0x4c, 0x4f, 0x4f, 0x50, 0x42, 0x41, 0x43, 0x4b, 0x5f, 0x53, 0x4e, 0x41, 0x54, 0x10, + 0x26, 0x12, 0x1d, 0x0a, 0x19, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x42, 0x34, 0x5f, 0x4c, 0x4f, 0x4f, + 0x50, 0x42, 0x41, 0x43, 0x4b, 0x5f, 0x53, 0x4e, 0x41, 0x54, 0x5f, 0x52, 0x45, 0x56, 0x10, 0x27, + 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, + 0x50, 0x34, 0x10, 0x28, 0x12, 0x1b, 0x0a, 0x17, 0x44, 0x42, 0x47, 0x5f, 0x52, 0x52, 0x5f, 0x42, + 0x41, 0x43, 0x4b, 0x45, 0x4e, 0x44, 0x5f, 0x53, 0x4c, 0x4f, 0x54, 0x5f, 0x53, 0x45, 0x4c, 0x10, + 0x29, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x42, 0x47, 0x5f, 0x52, 0x45, 0x56, 0x5f, 0x50, 0x52, 0x4f, + 0x58, 0x59, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x10, 0x2a, 0x12, 0x17, 0x0a, 0x13, 0x44, + 0x42, 0x47, 0x5f, 0x52, 0x45, 0x56, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, 0x5f, 0x46, 0x4f, 0x55, + 0x4e, 0x44, 0x10, 0x2b, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x42, 0x47, 0x5f, 0x52, 0x45, 0x56, 0x5f, + 0x50, 0x52, 0x4f, 0x58, 0x59, 0x5f, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x10, 0x2c, 0x12, 0x11, + 0x0a, 0x0d, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x34, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x10, + 0x2d, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x42, 0x47, 0x5f, 0x4e, 0x45, 0x54, 0x44, 0x45, 0x56, 0x5f, + 0x49, 0x4e, 0x5f, 0x43, 0x4c, 0x55, 0x53, 0x54, 0x45, 0x52, 0x10, 0x2e, 0x12, 0x15, 0x0a, 0x11, + 0x44, 0x42, 0x47, 0x5f, 0x4e, 0x45, 0x54, 0x44, 0x45, 0x56, 0x5f, 0x45, 0x4e, 0x43, 0x41, 0x50, + 0x34, 0x10, 0x2f, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x4c, 0x4f, + 0x4f, 0x4b, 0x55, 0x50, 0x34, 0x5f, 0x31, 0x10, 0x30, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x42, 0x47, + 0x5f, 0x43, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x34, 0x5f, 0x32, 0x10, 0x31, 0x12, + 0x13, 0x0a, 0x0f, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, + 0x44, 0x34, 0x10, 0x32, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x4c, + 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x36, 0x5f, 0x31, 0x10, 0x33, 0x12, 0x14, 0x0a, 0x10, 0x44, 0x42, + 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x36, 0x5f, 0x32, 0x10, 0x34, + 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x42, 0x47, 0x5f, 0x43, 0x54, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, + 0x45, 0x44, 0x36, 0x10, 0x35, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x42, 0x47, 0x5f, 0x53, 0x4b, 0x49, + 0x50, 0x5f, 0x50, 0x52, 0x4f, 0x58, 0x59, 0x10, 0x36, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x42, 0x47, + 0x5f, 0x4c, 0x34, 0x5f, 0x43, 0x52, 0x45, 0x41, 0x54, 0x45, 0x10, 0x37, 0x12, 0x19, 0x0a, 0x15, + 0x44, 0x42, 0x47, 0x5f, 0x49, 0x50, 0x5f, 0x49, 0x44, 0x5f, 0x4d, 0x41, 0x50, 0x5f, 0x46, 0x41, + 0x49, 0x4c, 0x45, 0x44, 0x34, 0x10, 0x38, 0x12, 0x19, 0x0a, 0x15, 0x44, 0x42, 0x47, 0x5f, 0x49, + 0x50, 0x5f, 0x49, 0x44, 0x5f, 0x4d, 0x41, 0x50, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x36, + 0x10, 0x39, 0x12, 0x1a, 0x0a, 0x16, 0x44, 0x42, 0x47, 0x5f, 0x49, 0x50, 0x5f, 0x49, 0x44, 0x5f, + 0x4d, 0x41, 0x50, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x34, 0x10, 0x3a, 0x12, 0x1a, + 0x0a, 0x16, 0x44, 0x42, 0x47, 0x5f, 0x49, 0x50, 0x5f, 0x49, 0x44, 0x5f, 0x4d, 0x41, 0x50, 0x5f, + 0x53, 0x55, 0x43, 0x43, 0x45, 0x45, 0x44, 0x36, 0x10, 0x3b, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x42, + 0x47, 0x5f, 0x4c, 0x42, 0x5f, 0x53, 0x54, 0x41, 0x4c, 0x45, 0x5f, 0x43, 0x54, 0x10, 0x3c, 0x12, + 0x18, 0x0a, 0x14, 0x44, 0x42, 0x47, 0x5f, 0x49, 0x4e, 0x48, 0x45, 0x52, 0x49, 0x54, 0x5f, 0x49, + 0x44, 0x45, 0x4e, 0x54, 0x49, 0x54, 0x59, 0x10, 0x3d, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x42, 0x47, + 0x5f, 0x53, 0x4b, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x34, 0x10, 0x3e, 0x12, 0x12, 0x0a, + 0x0e, 0x44, 0x42, 0x47, 0x5f, 0x53, 0x4b, 0x5f, 0x4c, 0x4f, 0x4f, 0x4b, 0x55, 0x50, 0x36, 0x10, + 0x3f, 0x12, 0x11, 0x0a, 0x0d, 0x44, 0x42, 0x47, 0x5f, 0x53, 0x4b, 0x5f, 0x41, 0x53, 0x53, 0x49, + 0x47, 0x4e, 0x10, 0x40, 0x12, 0x0d, 0x0a, 0x09, 0x44, 0x42, 0x47, 0x5f, 0x4c, 0x37, 0x5f, 0x4c, + 0x42, 0x10, 0x41, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x42, 0x47, 0x5f, 0x53, 0x4b, 0x49, 0x50, 0x5f, + 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x10, 0x42, 0x42, 0x26, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x69, 0x6c, 0x69, 0x75, 0x6d, 0x2f, 0x63, 0x69, + 0x6c, 0x69, 0x75, 0x6d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x66, 0x6c, 0x6f, 0x77, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -5706,7 +5808,7 @@ func file_flow_flow_proto_rawDescGZIP() []byte { } var file_flow_flow_proto_enumTypes = make([]protoimpl.EnumInfo, 15) -var file_flow_flow_proto_msgTypes = make([]protoimpl.MessageInfo, 38) +var file_flow_flow_proto_msgTypes = make([]protoimpl.MessageInfo, 39) var file_flow_flow_proto_goTypes = []any{ (FlowType)(0), // 0: flow.FlowType (AuthType)(0), // 1: flow.AuthType @@ -5724,129 +5826,131 @@ var file_flow_flow_proto_goTypes = []any{ (SocketTranslationPoint)(0), // 13: flow.SocketTranslationPoint (DebugEventType)(0), // 14: flow.DebugEventType (*Flow)(nil), // 15: flow.Flow - (*Layer4)(nil), // 16: flow.Layer4 - (*Layer7)(nil), // 17: flow.Layer7 - (*TraceContext)(nil), // 18: flow.TraceContext - (*TraceParent)(nil), // 19: flow.TraceParent - (*Endpoint)(nil), // 20: flow.Endpoint - (*Workload)(nil), // 21: flow.Workload - (*TCP)(nil), // 22: flow.TCP - (*IP)(nil), // 23: flow.IP - (*Ethernet)(nil), // 24: flow.Ethernet - (*TCPFlags)(nil), // 25: flow.TCPFlags - (*UDP)(nil), // 26: flow.UDP - (*SCTP)(nil), // 27: flow.SCTP - (*ICMPv4)(nil), // 28: flow.ICMPv4 - (*ICMPv6)(nil), // 29: flow.ICMPv6 - (*Policy)(nil), // 30: flow.Policy - (*EventTypeFilter)(nil), // 31: flow.EventTypeFilter - (*CiliumEventType)(nil), // 32: flow.CiliumEventType - (*FlowFilter)(nil), // 33: flow.FlowFilter - (*DNS)(nil), // 34: flow.DNS - (*HTTPHeader)(nil), // 35: flow.HTTPHeader - (*HTTP)(nil), // 36: flow.HTTP - (*Kafka)(nil), // 37: flow.Kafka - (*Service)(nil), // 38: flow.Service - (*LostEvent)(nil), // 39: flow.LostEvent - (*AgentEvent)(nil), // 40: flow.AgentEvent - (*AgentEventUnknown)(nil), // 41: flow.AgentEventUnknown - (*TimeNotification)(nil), // 42: flow.TimeNotification - (*PolicyUpdateNotification)(nil), // 43: flow.PolicyUpdateNotification - (*EndpointRegenNotification)(nil), // 44: flow.EndpointRegenNotification - (*EndpointUpdateNotification)(nil), // 45: flow.EndpointUpdateNotification - (*IPCacheNotification)(nil), // 46: flow.IPCacheNotification - (*ServiceUpsertNotificationAddr)(nil), // 47: flow.ServiceUpsertNotificationAddr - (*ServiceUpsertNotification)(nil), // 48: flow.ServiceUpsertNotification - (*ServiceDeleteNotification)(nil), // 49: flow.ServiceDeleteNotification - (*NetworkInterface)(nil), // 50: flow.NetworkInterface - (*DebugEvent)(nil), // 51: flow.DebugEvent - (*FlowFilter_Experimental)(nil), // 52: flow.FlowFilter.Experimental - (*timestamppb.Timestamp)(nil), // 53: google.protobuf.Timestamp - (*wrapperspb.BoolValue)(nil), // 54: google.protobuf.BoolValue - (*anypb.Any)(nil), // 55: google.protobuf.Any - (*wrapperspb.Int32Value)(nil), // 56: google.protobuf.Int32Value - (*wrapperspb.UInt32Value)(nil), // 57: google.protobuf.UInt32Value + (*FileInfo)(nil), // 16: flow.FileInfo + (*Layer4)(nil), // 17: flow.Layer4 + (*Layer7)(nil), // 18: flow.Layer7 + (*TraceContext)(nil), // 19: flow.TraceContext + (*TraceParent)(nil), // 20: flow.TraceParent + (*Endpoint)(nil), // 21: flow.Endpoint + (*Workload)(nil), // 22: flow.Workload + (*TCP)(nil), // 23: flow.TCP + (*IP)(nil), // 24: flow.IP + (*Ethernet)(nil), // 25: flow.Ethernet + (*TCPFlags)(nil), // 26: flow.TCPFlags + (*UDP)(nil), // 27: flow.UDP + (*SCTP)(nil), // 28: flow.SCTP + (*ICMPv4)(nil), // 29: flow.ICMPv4 + (*ICMPv6)(nil), // 30: flow.ICMPv6 + (*Policy)(nil), // 31: flow.Policy + (*EventTypeFilter)(nil), // 32: flow.EventTypeFilter + (*CiliumEventType)(nil), // 33: flow.CiliumEventType + (*FlowFilter)(nil), // 34: flow.FlowFilter + (*DNS)(nil), // 35: flow.DNS + (*HTTPHeader)(nil), // 36: flow.HTTPHeader + (*HTTP)(nil), // 37: flow.HTTP + (*Kafka)(nil), // 38: flow.Kafka + (*Service)(nil), // 39: flow.Service + (*LostEvent)(nil), // 40: flow.LostEvent + (*AgentEvent)(nil), // 41: flow.AgentEvent + (*AgentEventUnknown)(nil), // 42: flow.AgentEventUnknown + (*TimeNotification)(nil), // 43: flow.TimeNotification + (*PolicyUpdateNotification)(nil), // 44: flow.PolicyUpdateNotification + (*EndpointRegenNotification)(nil), // 45: flow.EndpointRegenNotification + (*EndpointUpdateNotification)(nil), // 46: flow.EndpointUpdateNotification + (*IPCacheNotification)(nil), // 47: flow.IPCacheNotification + (*ServiceUpsertNotificationAddr)(nil), // 48: flow.ServiceUpsertNotificationAddr + (*ServiceUpsertNotification)(nil), // 49: flow.ServiceUpsertNotification + (*ServiceDeleteNotification)(nil), // 50: flow.ServiceDeleteNotification + (*NetworkInterface)(nil), // 51: flow.NetworkInterface + (*DebugEvent)(nil), // 52: flow.DebugEvent + (*FlowFilter_Experimental)(nil), // 53: flow.FlowFilter.Experimental + (*timestamppb.Timestamp)(nil), // 54: google.protobuf.Timestamp + (*wrapperspb.BoolValue)(nil), // 55: google.protobuf.BoolValue + (*anypb.Any)(nil), // 56: google.protobuf.Any + (*wrapperspb.Int32Value)(nil), // 57: google.protobuf.Int32Value + (*wrapperspb.UInt32Value)(nil), // 58: google.protobuf.UInt32Value } var file_flow_flow_proto_depIdxs = []int32{ - 53, // 0: flow.Flow.time:type_name -> google.protobuf.Timestamp + 54, // 0: flow.Flow.time:type_name -> google.protobuf.Timestamp 6, // 1: flow.Flow.verdict:type_name -> flow.Verdict 1, // 2: flow.Flow.auth_type:type_name -> flow.AuthType - 24, // 3: flow.Flow.ethernet:type_name -> flow.Ethernet - 23, // 4: flow.Flow.IP:type_name -> flow.IP - 16, // 5: flow.Flow.l4:type_name -> flow.Layer4 - 20, // 6: flow.Flow.source:type_name -> flow.Endpoint - 20, // 7: flow.Flow.destination:type_name -> flow.Endpoint + 25, // 3: flow.Flow.ethernet:type_name -> flow.Ethernet + 24, // 4: flow.Flow.IP:type_name -> flow.IP + 17, // 5: flow.Flow.l4:type_name -> flow.Layer4 + 21, // 6: flow.Flow.source:type_name -> flow.Endpoint + 21, // 7: flow.Flow.destination:type_name -> flow.Endpoint 0, // 8: flow.Flow.Type:type_name -> flow.FlowType - 17, // 9: flow.Flow.l7:type_name -> flow.Layer7 - 32, // 10: flow.Flow.event_type:type_name -> flow.CiliumEventType - 38, // 11: flow.Flow.source_service:type_name -> flow.Service - 38, // 12: flow.Flow.destination_service:type_name -> flow.Service + 18, // 9: flow.Flow.l7:type_name -> flow.Layer7 + 33, // 10: flow.Flow.event_type:type_name -> flow.CiliumEventType + 39, // 11: flow.Flow.source_service:type_name -> flow.Service + 39, // 12: flow.Flow.destination_service:type_name -> flow.Service 8, // 13: flow.Flow.traffic_direction:type_name -> flow.TrafficDirection 2, // 14: flow.Flow.trace_observation_point:type_name -> flow.TraceObservationPoint 3, // 15: flow.Flow.trace_reason:type_name -> flow.TraceReason - 7, // 16: flow.Flow.drop_reason_desc:type_name -> flow.DropReason - 54, // 17: flow.Flow.is_reply:type_name -> google.protobuf.BoolValue - 9, // 18: flow.Flow.debug_capture_point:type_name -> flow.DebugCapturePoint - 50, // 19: flow.Flow.interface:type_name -> flow.NetworkInterface - 18, // 20: flow.Flow.trace_context:type_name -> flow.TraceContext - 13, // 21: flow.Flow.sock_xlate_point:type_name -> flow.SocketTranslationPoint - 55, // 22: flow.Flow.extensions:type_name -> google.protobuf.Any - 30, // 23: flow.Flow.egress_allowed_by:type_name -> flow.Policy - 30, // 24: flow.Flow.ingress_allowed_by:type_name -> flow.Policy - 30, // 25: flow.Flow.egress_denied_by:type_name -> flow.Policy - 30, // 26: flow.Flow.ingress_denied_by:type_name -> flow.Policy - 22, // 27: flow.Layer4.TCP:type_name -> flow.TCP - 26, // 28: flow.Layer4.UDP:type_name -> flow.UDP - 28, // 29: flow.Layer4.ICMPv4:type_name -> flow.ICMPv4 - 29, // 30: flow.Layer4.ICMPv6:type_name -> flow.ICMPv6 - 27, // 31: flow.Layer4.SCTP:type_name -> flow.SCTP - 4, // 32: flow.Layer7.type:type_name -> flow.L7FlowType - 34, // 33: flow.Layer7.dns:type_name -> flow.DNS - 36, // 34: flow.Layer7.http:type_name -> flow.HTTP - 37, // 35: flow.Layer7.kafka:type_name -> flow.Kafka - 19, // 36: flow.TraceContext.parent:type_name -> flow.TraceParent - 21, // 37: flow.Endpoint.workloads:type_name -> flow.Workload - 25, // 38: flow.TCP.flags:type_name -> flow.TCPFlags - 5, // 39: flow.IP.ipVersion:type_name -> flow.IPVersion - 21, // 40: flow.FlowFilter.source_workload:type_name -> flow.Workload - 21, // 41: flow.FlowFilter.destination_workload:type_name -> flow.Workload - 8, // 42: flow.FlowFilter.traffic_direction:type_name -> flow.TrafficDirection - 6, // 43: flow.FlowFilter.verdict:type_name -> flow.Verdict - 7, // 44: flow.FlowFilter.drop_reason_desc:type_name -> flow.DropReason - 50, // 45: flow.FlowFilter.interface:type_name -> flow.NetworkInterface - 31, // 46: flow.FlowFilter.event_type:type_name -> flow.EventTypeFilter - 35, // 47: flow.FlowFilter.http_header:type_name -> flow.HTTPHeader - 25, // 48: flow.FlowFilter.tcp_flags:type_name -> flow.TCPFlags - 5, // 49: flow.FlowFilter.ip_version:type_name -> flow.IPVersion - 52, // 50: flow.FlowFilter.experimental:type_name -> flow.FlowFilter.Experimental - 35, // 51: flow.HTTP.headers:type_name -> flow.HTTPHeader - 11, // 52: flow.LostEvent.source:type_name -> flow.LostEventSource - 56, // 53: flow.LostEvent.cpu:type_name -> google.protobuf.Int32Value - 12, // 54: flow.AgentEvent.type:type_name -> flow.AgentEventType - 41, // 55: flow.AgentEvent.unknown:type_name -> flow.AgentEventUnknown - 42, // 56: flow.AgentEvent.agent_start:type_name -> flow.TimeNotification - 43, // 57: flow.AgentEvent.policy_update:type_name -> flow.PolicyUpdateNotification - 44, // 58: flow.AgentEvent.endpoint_regenerate:type_name -> flow.EndpointRegenNotification - 45, // 59: flow.AgentEvent.endpoint_update:type_name -> flow.EndpointUpdateNotification - 46, // 60: flow.AgentEvent.ipcache_update:type_name -> flow.IPCacheNotification - 48, // 61: flow.AgentEvent.service_upsert:type_name -> flow.ServiceUpsertNotification - 49, // 62: flow.AgentEvent.service_delete:type_name -> flow.ServiceDeleteNotification - 53, // 63: flow.TimeNotification.time:type_name -> google.protobuf.Timestamp - 57, // 64: flow.IPCacheNotification.old_identity:type_name -> google.protobuf.UInt32Value - 47, // 65: flow.ServiceUpsertNotification.frontend_address:type_name -> flow.ServiceUpsertNotificationAddr - 47, // 66: flow.ServiceUpsertNotification.backend_addresses:type_name -> flow.ServiceUpsertNotificationAddr - 14, // 67: flow.DebugEvent.type:type_name -> flow.DebugEventType - 20, // 68: flow.DebugEvent.source:type_name -> flow.Endpoint - 57, // 69: flow.DebugEvent.hash:type_name -> google.protobuf.UInt32Value - 57, // 70: flow.DebugEvent.arg1:type_name -> google.protobuf.UInt32Value - 57, // 71: flow.DebugEvent.arg2:type_name -> google.protobuf.UInt32Value - 57, // 72: flow.DebugEvent.arg3:type_name -> google.protobuf.UInt32Value - 56, // 73: flow.DebugEvent.cpu:type_name -> google.protobuf.Int32Value - 74, // [74:74] is the sub-list for method output_type - 74, // [74:74] is the sub-list for method input_type - 74, // [74:74] is the sub-list for extension type_name - 74, // [74:74] is the sub-list for extension extendee - 0, // [0:74] is the sub-list for field type_name + 16, // 16: flow.Flow.file:type_name -> flow.FileInfo + 7, // 17: flow.Flow.drop_reason_desc:type_name -> flow.DropReason + 55, // 18: flow.Flow.is_reply:type_name -> google.protobuf.BoolValue + 9, // 19: flow.Flow.debug_capture_point:type_name -> flow.DebugCapturePoint + 51, // 20: flow.Flow.interface:type_name -> flow.NetworkInterface + 19, // 21: flow.Flow.trace_context:type_name -> flow.TraceContext + 13, // 22: flow.Flow.sock_xlate_point:type_name -> flow.SocketTranslationPoint + 56, // 23: flow.Flow.extensions:type_name -> google.protobuf.Any + 31, // 24: flow.Flow.egress_allowed_by:type_name -> flow.Policy + 31, // 25: flow.Flow.ingress_allowed_by:type_name -> flow.Policy + 31, // 26: flow.Flow.egress_denied_by:type_name -> flow.Policy + 31, // 27: flow.Flow.ingress_denied_by:type_name -> flow.Policy + 23, // 28: flow.Layer4.TCP:type_name -> flow.TCP + 27, // 29: flow.Layer4.UDP:type_name -> flow.UDP + 29, // 30: flow.Layer4.ICMPv4:type_name -> flow.ICMPv4 + 30, // 31: flow.Layer4.ICMPv6:type_name -> flow.ICMPv6 + 28, // 32: flow.Layer4.SCTP:type_name -> flow.SCTP + 4, // 33: flow.Layer7.type:type_name -> flow.L7FlowType + 35, // 34: flow.Layer7.dns:type_name -> flow.DNS + 37, // 35: flow.Layer7.http:type_name -> flow.HTTP + 38, // 36: flow.Layer7.kafka:type_name -> flow.Kafka + 20, // 37: flow.TraceContext.parent:type_name -> flow.TraceParent + 22, // 38: flow.Endpoint.workloads:type_name -> flow.Workload + 26, // 39: flow.TCP.flags:type_name -> flow.TCPFlags + 5, // 40: flow.IP.ipVersion:type_name -> flow.IPVersion + 22, // 41: flow.FlowFilter.source_workload:type_name -> flow.Workload + 22, // 42: flow.FlowFilter.destination_workload:type_name -> flow.Workload + 8, // 43: flow.FlowFilter.traffic_direction:type_name -> flow.TrafficDirection + 6, // 44: flow.FlowFilter.verdict:type_name -> flow.Verdict + 7, // 45: flow.FlowFilter.drop_reason_desc:type_name -> flow.DropReason + 51, // 46: flow.FlowFilter.interface:type_name -> flow.NetworkInterface + 32, // 47: flow.FlowFilter.event_type:type_name -> flow.EventTypeFilter + 36, // 48: flow.FlowFilter.http_header:type_name -> flow.HTTPHeader + 26, // 49: flow.FlowFilter.tcp_flags:type_name -> flow.TCPFlags + 5, // 50: flow.FlowFilter.ip_version:type_name -> flow.IPVersion + 53, // 51: flow.FlowFilter.experimental:type_name -> flow.FlowFilter.Experimental + 36, // 52: flow.HTTP.headers:type_name -> flow.HTTPHeader + 11, // 53: flow.LostEvent.source:type_name -> flow.LostEventSource + 57, // 54: flow.LostEvent.cpu:type_name -> google.protobuf.Int32Value + 12, // 55: flow.AgentEvent.type:type_name -> flow.AgentEventType + 42, // 56: flow.AgentEvent.unknown:type_name -> flow.AgentEventUnknown + 43, // 57: flow.AgentEvent.agent_start:type_name -> flow.TimeNotification + 44, // 58: flow.AgentEvent.policy_update:type_name -> flow.PolicyUpdateNotification + 45, // 59: flow.AgentEvent.endpoint_regenerate:type_name -> flow.EndpointRegenNotification + 46, // 60: flow.AgentEvent.endpoint_update:type_name -> flow.EndpointUpdateNotification + 47, // 61: flow.AgentEvent.ipcache_update:type_name -> flow.IPCacheNotification + 49, // 62: flow.AgentEvent.service_upsert:type_name -> flow.ServiceUpsertNotification + 50, // 63: flow.AgentEvent.service_delete:type_name -> flow.ServiceDeleteNotification + 54, // 64: flow.TimeNotification.time:type_name -> google.protobuf.Timestamp + 58, // 65: flow.IPCacheNotification.old_identity:type_name -> google.protobuf.UInt32Value + 48, // 66: flow.ServiceUpsertNotification.frontend_address:type_name -> flow.ServiceUpsertNotificationAddr + 48, // 67: flow.ServiceUpsertNotification.backend_addresses:type_name -> flow.ServiceUpsertNotificationAddr + 14, // 68: flow.DebugEvent.type:type_name -> flow.DebugEventType + 21, // 69: flow.DebugEvent.source:type_name -> flow.Endpoint + 58, // 70: flow.DebugEvent.hash:type_name -> google.protobuf.UInt32Value + 58, // 71: flow.DebugEvent.arg1:type_name -> google.protobuf.UInt32Value + 58, // 72: flow.DebugEvent.arg2:type_name -> google.protobuf.UInt32Value + 58, // 73: flow.DebugEvent.arg3:type_name -> google.protobuf.UInt32Value + 57, // 74: flow.DebugEvent.cpu:type_name -> google.protobuf.Int32Value + 75, // [75:75] is the sub-list for method output_type + 75, // [75:75] is the sub-list for method input_type + 75, // [75:75] is the sub-list for extension type_name + 75, // [75:75] is the sub-list for extension extendee + 0, // [0:75] is the sub-list for field type_name } func init() { file_flow_flow_proto_init() } @@ -5854,19 +5958,19 @@ func file_flow_flow_proto_init() { if File_flow_flow_proto != nil { return } - file_flow_flow_proto_msgTypes[1].OneofWrappers = []any{ + file_flow_flow_proto_msgTypes[2].OneofWrappers = []any{ (*Layer4_TCP)(nil), (*Layer4_UDP)(nil), (*Layer4_ICMPv4)(nil), (*Layer4_ICMPv6)(nil), (*Layer4_SCTP)(nil), } - file_flow_flow_proto_msgTypes[2].OneofWrappers = []any{ + file_flow_flow_proto_msgTypes[3].OneofWrappers = []any{ (*Layer7_Dns)(nil), (*Layer7_Http)(nil), (*Layer7_Kafka)(nil), } - file_flow_flow_proto_msgTypes[25].OneofWrappers = []any{ + file_flow_flow_proto_msgTypes[26].OneofWrappers = []any{ (*AgentEvent_Unknown)(nil), (*AgentEvent_AgentStart)(nil), (*AgentEvent_PolicyUpdate)(nil), @@ -5882,7 +5986,7 @@ func file_flow_flow_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_flow_flow_proto_rawDesc, NumEnums: 15, - NumMessages: 38, + NumMessages: 39, NumExtensions: 0, NumServices: 0, }, diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/flow/flow.pb.json.go b/backend/vendor/github.com/cilium/cilium/api/v1/flow/flow.pb.json.go index 3ce01d7ba..eea816641 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/flow/flow.pb.json.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/flow/flow.pb.json.go @@ -22,6 +22,18 @@ func (msg *Flow) UnmarshalJSON(b []byte) error { return protojson.UnmarshalOptions{}.Unmarshal(b, msg) } +// MarshalJSON implements json.Marshaler +func (msg *FileInfo) MarshalJSON() ([]byte, error) { + return protojson.MarshalOptions{ + UseProtoNames: true, + }.Marshal(msg) +} + +// UnmarshalJSON implements json.Unmarshaler +func (msg *FileInfo) UnmarshalJSON(b []byte) error { + return protojson.UnmarshalOptions{}.Unmarshal(b, msg) +} + // MarshalJSON implements json.Marshaler func (msg *Layer4) MarshalJSON() ([]byte, error) { return protojson.MarshalOptions{ diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/flow/flow.proto b/backend/vendor/github.com/cilium/cilium/api/v1/flow/flow.proto index 48940f378..910174c46 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/flow/flow.proto +++ b/backend/vendor/github.com/cilium/cilium/api/v1/flow/flow.proto @@ -81,6 +81,9 @@ message Flow { TraceObservationPoint trace_observation_point = 24; // Cilium datapath trace reason info. TraceReason trace_reason = 36; + // Cilium datapath filename and line number. Currently only applicable when + // Verdict = DROPPED. + FileInfo file = 38; // only applicable to Verdict = DROPPED. DropReason drop_reason_desc = 25; @@ -204,6 +207,11 @@ enum TraceReason { ENCRYPT_OVERLAY = 8; } +message FileInfo { + string name = 1; + uint32 line = 2; +} + message Layer4 { oneof protocol { TCP TCP = 1; @@ -275,8 +283,9 @@ message TCP { message IP { string source = 1; - // source_xlated is the post translation source IP when the flow was SNATed - // (and in that case source is the the original source IP). + // source_xlated is the post-translation source IP when the flow was + // SNATed. When "source_xlated" is set, the "source" field is populated + // with the pre-translation source IP address. string source_xlated = 5; string destination = 2; IPVersion ipVersion = 3; @@ -434,8 +443,8 @@ enum DropReason { // A BPF program wants to tail call into bpf_host, but the host datapath // hasn't been loaded yet. DROP_HOST_NOT_READY = 202; - // A BPF program wants to tail call some endpoint's policy program in the - // POLICY_CALL_MAP, but the program is not available. + // A BPF program wants to tail call some endpoint's policy program in + // cilium_call_policy, but the program is not available. DROP_EP_NOT_READY = 203; // An Egress Gateway node matched a packet against an Egress Gateway policy // that didn't select a valid Egress IP. @@ -467,6 +476,7 @@ message Policy { string namespace = 2; repeated string labels = 3; uint64 revision = 4; + string kind = 5; } // EventTypeFilter is a filter describing a particular event type. @@ -525,6 +535,8 @@ message FlowFilter { repeated string source_service = 16; // source_workload filters by a list of source workload. repeated Workload source_workload = 26; + // source_cluster_name filters by a list of source cluster names. + repeated string source_cluster_name = 37; // destination_ip filters by a list of destination ips. Each of the // destination ips can be specified as an exact match (e.g. "1.1.1.1") or @@ -540,6 +552,8 @@ message FlowFilter { repeated string destination_service = 17; // destination_workload filters by a list of destination workload. repeated Workload destination_workload = 27; + // destination_cluster_name filters by a list of destination cluster names. + repeated string destination_cluster_name = 38; // traffic_direction filters flow by direction of the connection, e.g. // ingress or egress. diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/models/backend_address.go b/backend/vendor/github.com/cilium/cilium/api/v1/models/backend_address.go index 83524b1fd..64b2bbf46 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/models/backend_address.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/models/backend_address.go @@ -37,6 +37,9 @@ type BackendAddress struct { // on related annotation of global service. Applicable for active state only. Preferred bool `json:"preferred,omitempty"` + // Layer 4 protocol (TCP, UDP, etc) + Protocol string `json:"protocol,omitempty"` + // State of the backend for load-balancing service traffic // Enum: ["active","terminating","quarantined","maintenance"] State string `json:"state,omitempty"` diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/models/bgp_route_policy_statement.go b/backend/vendor/github.com/cilium/cilium/api/v1/models/bgp_route_policy_statement.go index 12db0c788..d36e3fca8 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/models/bgp_route_policy_statement.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/models/bgp_route_policy_statement.go @@ -30,6 +30,9 @@ type BgpRoutePolicyStatement struct { // List of BGP large community values to be added to the matched route AddLargeCommunities []string `json:"add-large-communities"` + // Matches any of the provided address families. If empty matches all address families. + MatchFamilies []*BgpFamily `json:"match-families"` + // Matches any of the provided BGP neighbor IP addresses. If empty matches all neighbors. MatchNeighbors []string `json:"match-neighbors"` @@ -48,6 +51,10 @@ type BgpRoutePolicyStatement struct { func (m *BgpRoutePolicyStatement) Validate(formats strfmt.Registry) error { var res []error + if err := m.validateMatchFamilies(formats); err != nil { + res = append(res, err) + } + if err := m.validateMatchPrefixes(formats); err != nil { res = append(res, err) } @@ -62,6 +69,32 @@ func (m *BgpRoutePolicyStatement) Validate(formats strfmt.Registry) error { return nil } +func (m *BgpRoutePolicyStatement) validateMatchFamilies(formats strfmt.Registry) error { + if swag.IsZero(m.MatchFamilies) { // not required + return nil + } + + for i := 0; i < len(m.MatchFamilies); i++ { + if swag.IsZero(m.MatchFamilies[i]) { // not required + continue + } + + if m.MatchFamilies[i] != nil { + if err := m.MatchFamilies[i].Validate(formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("match-families" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("match-families" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *BgpRoutePolicyStatement) validateMatchPrefixes(formats strfmt.Registry) error { if swag.IsZero(m.MatchPrefixes) { // not required return nil @@ -137,6 +170,10 @@ func (m *BgpRoutePolicyStatement) validateRouteAction(formats strfmt.Registry) e func (m *BgpRoutePolicyStatement) ContextValidate(ctx context.Context, formats strfmt.Registry) error { var res []error + if err := m.contextValidateMatchFamilies(ctx, formats); err != nil { + res = append(res, err) + } + if err := m.contextValidateMatchPrefixes(ctx, formats); err != nil { res = append(res, err) } @@ -147,6 +184,31 @@ func (m *BgpRoutePolicyStatement) ContextValidate(ctx context.Context, formats s return nil } +func (m *BgpRoutePolicyStatement) contextValidateMatchFamilies(ctx context.Context, formats strfmt.Registry) error { + + for i := 0; i < len(m.MatchFamilies); i++ { + + if m.MatchFamilies[i] != nil { + + if swag.IsZero(m.MatchFamilies[i]) { // not required + return nil + } + + if err := m.MatchFamilies[i].ContextValidate(ctx, formats); err != nil { + if ve, ok := err.(*errors.Validation); ok { + return ve.ValidateName("match-families" + "." + strconv.Itoa(i)) + } else if ce, ok := err.(*errors.CompositeError); ok { + return ce.ValidateName("match-families" + "." + strconv.Itoa(i)) + } + return err + } + } + + } + + return nil +} + func (m *BgpRoutePolicyStatement) contextValidateMatchPrefixes(ctx context.Context, formats strfmt.Registry) error { for i := 0; i < len(m.MatchPrefixes); i++ { diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/models/daemon_configuration_status.go b/backend/vendor/github.com/cilium/cilium/api/v1/models/daemon_configuration_status.go index 942c40928..40f9345ce 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/models/daemon_configuration_status.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/models/daemon_configuration_status.go @@ -56,6 +56,11 @@ type DaemonConfigurationStatus struct { // Immutable configuration (read-only) Immutable ConfigurationMap `json:"immutable,omitempty"` + // Install ingress/egress routes through uplink on host for Pods when working with + // delegated IPAM plugin. + // + InstallUplinkRoutesForDelegatedIPAM bool `json:"installUplinkRoutesForDelegatedIPAM,omitempty"` + // Comma-separated list of IP ports should be reserved in the workload network namespace IPLocalReservedPorts string `json:"ipLocalReservedPorts,omitempty"` diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/models/endpoint_change_request.go b/backend/vendor/github.com/cilium/cilium/api/v1/models/endpoint_change_request.go index 47f52efbe..015ca7ac4 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/models/endpoint_change_request.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/models/endpoint_change_request.go @@ -79,6 +79,9 @@ type EndpointChangeRequest struct { // Network namespace cookie NetnsCookie string `json:"netns-cookie,omitempty"` + // Index of network device from which an IP was used as endpoint IP. Only relevant for ENI environments. + ParentInterfaceIndex int64 `json:"parent-interface-index,omitempty"` + // Process ID of the workload belonging to this endpoint Pid int64 `json:"pid,omitempty"` diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/models/kube_proxy_replacement.go b/backend/vendor/github.com/cilium/cilium/api/v1/models/kube_proxy_replacement.go index 1d1461122..6477cb154 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/models/kube_proxy_replacement.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/models/kube_proxy_replacement.go @@ -287,6 +287,9 @@ func (m *KubeProxyReplacementDeviceListItems0) UnmarshalBinary(b []byte) error { // swagger:model KubeProxyReplacementFeatures type KubeProxyReplacementFeatures struct { + // annotations + Annotations []string `json:"annotations"` + // flag bpf-lb-sock-hostns-only BpfSocketLBHostnsOnly bool `json:"bpfSocketLBHostnsOnly,omitempty"` diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/models/remote_cluster.go b/backend/vendor/github.com/cilium/cilium/api/v1/models/remote_cluster.go index ca73d6556..8cb66d83a 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/models/remote_cluster.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/models/remote_cluster.go @@ -49,6 +49,9 @@ type RemoteCluster struct { // Number of nodes in the cluster NumNodes int64 `json:"num-nodes,omitempty"` + // Number of MCS-API service exports in the cluster + NumServiceExports int64 `json:"num-service-exports,omitempty"` + // Number of services in the cluster NumSharedServices int64 `json:"num-shared-services,omitempty"` diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/models/remote_cluster_config.go b/backend/vendor/github.com/cilium/cilium/api/v1/models/remote_cluster_config.go index 0b2ae22dd..a34246bd3 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/models/remote_cluster_config.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/models/remote_cluster_config.go @@ -34,6 +34,9 @@ type RemoteClusterConfig struct { // Whether the configuration has been correctly retrieved Retrieved bool `json:"retrieved,omitempty"` + // Whether or not MCS-API ServiceExports is enabled by the cluster (null means unsupported). + ServiceExportsEnabled *bool `json:"service-exports-enabled,omitempty"` + // Whether the remote cluster supports per-prefix "synced" canaries SyncCanaries bool `json:"sync-canaries,omitempty"` } diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/models/remote_cluster_synced.go b/backend/vendor/github.com/cilium/cilium/api/v1/models/remote_cluster_synced.go index 8c1151ba3..acbc16592 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/models/remote_cluster_synced.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/models/remote_cluster_synced.go @@ -34,6 +34,9 @@ type RemoteClusterSynced struct { // Nodes synchronization status Nodes bool `json:"nodes,omitempty"` + // MCS-API service exports synchronization status (null means that the component is not watching service exports) + ServiceExports *bool `json:"service-exports,omitempty"` + // Services synchronization status Services bool `json:"services,omitempty"` } diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/models/zz_generated.deepcopy.go b/backend/vendor/github.com/cilium/cilium/api/v1/models/zz_generated.deepcopy.go index 59666f708..d93fea4d1 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/models/zz_generated.deepcopy.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/models/zz_generated.deepcopy.go @@ -643,6 +643,11 @@ func (in *KubeProxyReplacementDeviceListItems0) DeepCopy() *KubeProxyReplacement // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *KubeProxyReplacementFeatures) DeepCopyInto(out *KubeProxyReplacementFeatures) { *out = *in + if in.Annotations != nil { + in, out := &in.Annotations, &out.Annotations + *out = make([]string, len(*in)) + copy(*out, *in) + } if in.ExternalIPs != nil { in, out := &in.ExternalIPs, &out.ExternalIPs *out = new(KubeProxyReplacementFeaturesExternalIPs) @@ -1152,13 +1157,13 @@ func (in *RemoteCluster) DeepCopyInto(out *RemoteCluster) { if in.Config != nil { in, out := &in.Config, &out.Config *out = new(RemoteClusterConfig) - **out = **in + (*in).DeepCopyInto(*out) } in.LastFailure.DeepCopyInto(&out.LastFailure) if in.Synced != nil { in, out := &in.Synced, &out.Synced *out = new(RemoteClusterSynced) - **out = **in + (*in).DeepCopyInto(*out) } return } @@ -1176,6 +1181,11 @@ func (in *RemoteCluster) DeepCopy() *RemoteCluster { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RemoteClusterConfig) DeepCopyInto(out *RemoteClusterConfig) { *out = *in + if in.ServiceExportsEnabled != nil { + in, out := &in.ServiceExportsEnabled, &out.ServiceExportsEnabled + *out = new(bool) + **out = **in + } return } @@ -1192,6 +1202,11 @@ func (in *RemoteClusterConfig) DeepCopy() *RemoteClusterConfig { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RemoteClusterSynced) DeepCopyInto(out *RemoteClusterSynced) { *out = *in + if in.ServiceExports != nil { + in, out := &in.ServiceExports, &out.ServiceExports + *out = new(bool) + **out = **in + } return } diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/observer/observer.pb.go b/backend/vendor/github.com/cilium/cilium/api/v1/observer/observer.pb.go index 5cd7b5f9e..d2bd54a84 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/observer/observer.pb.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/observer/observer.pb.go @@ -344,6 +344,7 @@ var DebugEventType_name = flow.DebugEventType_name var DebugEventType_value = flow.DebugEventType_value type Flow = flow.Flow +type FileInfo = flow.FileInfo type Layer4 = flow.Layer4 type Layer4_TCP = flow.Layer4_TCP type Layer4_UDP = flow.Layer4_UDP diff --git a/backend/vendor/github.com/cilium/cilium/api/v1/observer/observer_grpc.pb.go b/backend/vendor/github.com/cilium/cilium/api/v1/observer/observer_grpc.pb.go index e43b2d579..f9e149cf8 100644 --- a/backend/vendor/github.com/cilium/cilium/api/v1/observer/observer_grpc.pb.go +++ b/backend/vendor/github.com/cilium/cilium/api/v1/observer/observer_grpc.pb.go @@ -3,7 +3,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 +// - protoc-gen-go-grpc v1.5.1 // - protoc v5.29.3 // source: observer/observer.proto @@ -18,8 +18,8 @@ import ( // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.62.0 or later. -const _ = grpc.SupportPackageIsVersion8 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Observer_GetFlows_FullMethodName = "/observer.Observer/GetFlows" @@ -38,11 +38,11 @@ const ( // to observe. type ObserverClient interface { // GetFlows returning structured data, meant to eventually obsolete GetLastNFlows. - GetFlows(ctx context.Context, in *GetFlowsRequest, opts ...grpc.CallOption) (Observer_GetFlowsClient, error) + GetFlows(ctx context.Context, in *GetFlowsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetFlowsResponse], error) // GetAgentEvents returns Cilium agent events. - GetAgentEvents(ctx context.Context, in *GetAgentEventsRequest, opts ...grpc.CallOption) (Observer_GetAgentEventsClient, error) + GetAgentEvents(ctx context.Context, in *GetAgentEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetAgentEventsResponse], error) // GetDebugEvents returns Cilium datapath debug events. - GetDebugEvents(ctx context.Context, in *GetDebugEventsRequest, opts ...grpc.CallOption) (Observer_GetDebugEventsClient, error) + GetDebugEvents(ctx context.Context, in *GetDebugEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDebugEventsResponse], error) // GetNodes returns information about nodes in a cluster. GetNodes(ctx context.Context, in *GetNodesRequest, opts ...grpc.CallOption) (*GetNodesResponse, error) // GetNamespaces returns information about namespaces in a cluster. @@ -62,13 +62,13 @@ func NewObserverClient(cc grpc.ClientConnInterface) ObserverClient { return &observerClient{cc} } -func (c *observerClient) GetFlows(ctx context.Context, in *GetFlowsRequest, opts ...grpc.CallOption) (Observer_GetFlowsClient, error) { +func (c *observerClient) GetFlows(ctx context.Context, in *GetFlowsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetFlowsResponse], error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) stream, err := c.cc.NewStream(ctx, &Observer_ServiceDesc.Streams[0], Observer_GetFlows_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &observerGetFlowsClient{ClientStream: stream} + x := &grpc.GenericClientStream[GetFlowsRequest, GetFlowsResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -78,30 +78,16 @@ func (c *observerClient) GetFlows(ctx context.Context, in *GetFlowsRequest, opts return x, nil } -type Observer_GetFlowsClient interface { - Recv() (*GetFlowsResponse, error) - grpc.ClientStream -} - -type observerGetFlowsClient struct { - grpc.ClientStream -} - -func (x *observerGetFlowsClient) Recv() (*GetFlowsResponse, error) { - m := new(GetFlowsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Observer_GetFlowsClient = grpc.ServerStreamingClient[GetFlowsResponse] -func (c *observerClient) GetAgentEvents(ctx context.Context, in *GetAgentEventsRequest, opts ...grpc.CallOption) (Observer_GetAgentEventsClient, error) { +func (c *observerClient) GetAgentEvents(ctx context.Context, in *GetAgentEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetAgentEventsResponse], error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) stream, err := c.cc.NewStream(ctx, &Observer_ServiceDesc.Streams[1], Observer_GetAgentEvents_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &observerGetAgentEventsClient{ClientStream: stream} + x := &grpc.GenericClientStream[GetAgentEventsRequest, GetAgentEventsResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -111,30 +97,16 @@ func (c *observerClient) GetAgentEvents(ctx context.Context, in *GetAgentEventsR return x, nil } -type Observer_GetAgentEventsClient interface { - Recv() (*GetAgentEventsResponse, error) - grpc.ClientStream -} - -type observerGetAgentEventsClient struct { - grpc.ClientStream -} - -func (x *observerGetAgentEventsClient) Recv() (*GetAgentEventsResponse, error) { - m := new(GetAgentEventsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Observer_GetAgentEventsClient = grpc.ServerStreamingClient[GetAgentEventsResponse] -func (c *observerClient) GetDebugEvents(ctx context.Context, in *GetDebugEventsRequest, opts ...grpc.CallOption) (Observer_GetDebugEventsClient, error) { +func (c *observerClient) GetDebugEvents(ctx context.Context, in *GetDebugEventsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDebugEventsResponse], error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) stream, err := c.cc.NewStream(ctx, &Observer_ServiceDesc.Streams[2], Observer_GetDebugEvents_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &observerGetDebugEventsClient{ClientStream: stream} + x := &grpc.GenericClientStream[GetDebugEventsRequest, GetDebugEventsResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -144,22 +116,8 @@ func (c *observerClient) GetDebugEvents(ctx context.Context, in *GetDebugEventsR return x, nil } -type Observer_GetDebugEventsClient interface { - Recv() (*GetDebugEventsResponse, error) - grpc.ClientStream -} - -type observerGetDebugEventsClient struct { - grpc.ClientStream -} - -func (x *observerGetDebugEventsClient) Recv() (*GetDebugEventsResponse, error) { - m := new(GetDebugEventsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Observer_GetDebugEventsClient = grpc.ServerStreamingClient[GetDebugEventsResponse] func (c *observerClient) GetNodes(ctx context.Context, in *GetNodesRequest, opts ...grpc.CallOption) (*GetNodesResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) @@ -193,17 +151,17 @@ func (c *observerClient) ServerStatus(ctx context.Context, in *ServerStatusReque // ObserverServer is the server API for Observer service. // All implementations should embed UnimplementedObserverServer -// for forward compatibility +// for forward compatibility. // // Observer returns a stream of Flows depending on which filter the user want // to observe. type ObserverServer interface { // GetFlows returning structured data, meant to eventually obsolete GetLastNFlows. - GetFlows(*GetFlowsRequest, Observer_GetFlowsServer) error + GetFlows(*GetFlowsRequest, grpc.ServerStreamingServer[GetFlowsResponse]) error // GetAgentEvents returns Cilium agent events. - GetAgentEvents(*GetAgentEventsRequest, Observer_GetAgentEventsServer) error + GetAgentEvents(*GetAgentEventsRequest, grpc.ServerStreamingServer[GetAgentEventsResponse]) error // GetDebugEvents returns Cilium datapath debug events. - GetDebugEvents(*GetDebugEventsRequest, Observer_GetDebugEventsServer) error + GetDebugEvents(*GetDebugEventsRequest, grpc.ServerStreamingServer[GetDebugEventsResponse]) error // GetNodes returns information about nodes in a cluster. GetNodes(context.Context, *GetNodesRequest) (*GetNodesResponse, error) // GetNamespaces returns information about namespaces in a cluster. @@ -215,17 +173,20 @@ type ObserverServer interface { ServerStatus(context.Context, *ServerStatusRequest) (*ServerStatusResponse, error) } -// UnimplementedObserverServer should be embedded to have forward compatible implementations. -type UnimplementedObserverServer struct { -} +// UnimplementedObserverServer should be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedObserverServer struct{} -func (UnimplementedObserverServer) GetFlows(*GetFlowsRequest, Observer_GetFlowsServer) error { +func (UnimplementedObserverServer) GetFlows(*GetFlowsRequest, grpc.ServerStreamingServer[GetFlowsResponse]) error { return status.Errorf(codes.Unimplemented, "method GetFlows not implemented") } -func (UnimplementedObserverServer) GetAgentEvents(*GetAgentEventsRequest, Observer_GetAgentEventsServer) error { +func (UnimplementedObserverServer) GetAgentEvents(*GetAgentEventsRequest, grpc.ServerStreamingServer[GetAgentEventsResponse]) error { return status.Errorf(codes.Unimplemented, "method GetAgentEvents not implemented") } -func (UnimplementedObserverServer) GetDebugEvents(*GetDebugEventsRequest, Observer_GetDebugEventsServer) error { +func (UnimplementedObserverServer) GetDebugEvents(*GetDebugEventsRequest, grpc.ServerStreamingServer[GetDebugEventsResponse]) error { return status.Errorf(codes.Unimplemented, "method GetDebugEvents not implemented") } func (UnimplementedObserverServer) GetNodes(context.Context, *GetNodesRequest) (*GetNodesResponse, error) { @@ -237,6 +198,7 @@ func (UnimplementedObserverServer) GetNamespaces(context.Context, *GetNamespaces func (UnimplementedObserverServer) ServerStatus(context.Context, *ServerStatusRequest) (*ServerStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ServerStatus not implemented") } +func (UnimplementedObserverServer) testEmbeddedByValue() {} // UnsafeObserverServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ObserverServer will @@ -246,6 +208,13 @@ type UnsafeObserverServer interface { } func RegisterObserverServer(s grpc.ServiceRegistrar, srv ObserverServer) { + // If the following call pancis, it indicates UnimplementedObserverServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Observer_ServiceDesc, srv) } @@ -254,63 +223,33 @@ func _Observer_GetFlows_Handler(srv interface{}, stream grpc.ServerStream) error if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ObserverServer).GetFlows(m, &observerGetFlowsServer{ServerStream: stream}) -} - -type Observer_GetFlowsServer interface { - Send(*GetFlowsResponse) error - grpc.ServerStream + return srv.(ObserverServer).GetFlows(m, &grpc.GenericServerStream[GetFlowsRequest, GetFlowsResponse]{ServerStream: stream}) } -type observerGetFlowsServer struct { - grpc.ServerStream -} - -func (x *observerGetFlowsServer) Send(m *GetFlowsResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Observer_GetFlowsServer = grpc.ServerStreamingServer[GetFlowsResponse] func _Observer_GetAgentEvents_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GetAgentEventsRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ObserverServer).GetAgentEvents(m, &observerGetAgentEventsServer{ServerStream: stream}) + return srv.(ObserverServer).GetAgentEvents(m, &grpc.GenericServerStream[GetAgentEventsRequest, GetAgentEventsResponse]{ServerStream: stream}) } -type Observer_GetAgentEventsServer interface { - Send(*GetAgentEventsResponse) error - grpc.ServerStream -} - -type observerGetAgentEventsServer struct { - grpc.ServerStream -} - -func (x *observerGetAgentEventsServer) Send(m *GetAgentEventsResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Observer_GetAgentEventsServer = grpc.ServerStreamingServer[GetAgentEventsResponse] func _Observer_GetDebugEvents_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GetDebugEventsRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ObserverServer).GetDebugEvents(m, &observerGetDebugEventsServer{ServerStream: stream}) + return srv.(ObserverServer).GetDebugEvents(m, &grpc.GenericServerStream[GetDebugEventsRequest, GetDebugEventsResponse]{ServerStream: stream}) } -type Observer_GetDebugEventsServer interface { - Send(*GetDebugEventsResponse) error - grpc.ServerStream -} - -type observerGetDebugEventsServer struct { - grpc.ServerStream -} - -func (x *observerGetDebugEventsServer) Send(m *GetDebugEventsResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type Observer_GetDebugEventsServer = grpc.ServerStreamingServer[GetDebugEventsResponse] func _Observer_GetNodes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetNodesRequest) diff --git a/backend/vendor/github.com/cilium/cilium/pkg/api/apierror.go b/backend/vendor/github.com/cilium/cilium/pkg/api/apierror.go index 7ee425a22..dd1717443 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/api/apierror.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/api/apierror.go @@ -4,6 +4,7 @@ package api import ( + "errors" "fmt" "net/http" @@ -38,10 +39,10 @@ func (a *APIError) GetCode() int { // Error creates a new API error from the code and error. func Error(code int, err error) *APIError { if err == nil { - err = fmt.Errorf("Error pointer was nil") + err = errors.New("Error pointer was nil") } - return New(code, err.Error()) + return New(code, err.Error()) //nolint:govet } // Error returns the API error message. diff --git a/backend/vendor/github.com/cilium/cilium/pkg/api/apipanic.go b/backend/vendor/github.com/cilium/cilium/pkg/api/apipanic.go index 38481b26d..2ff6209d0 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/api/apipanic.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/api/apipanic.go @@ -4,9 +4,11 @@ package api import ( + "errors" "net/http" "os" "runtime/debug" + "syscall" "github.com/sirupsen/logrus" @@ -24,12 +26,17 @@ func (h *APIPanicHandler) ServeHTTP(wr http.ResponseWriter, req *http.Request) { defer func() { if r := recover(); r != nil { fields := logrus.Fields{ - "panic_message": r, - "url": req.URL.String(), - "method": req.Method, - "client": req.RemoteAddr, + "url": req.URL.String(), + "method": req.Method, + "client": req.RemoteAddr, } - log.WithFields(fields).Warn("Cilium API handler panicked") + + if err, ok := r.(error); ok && errors.Is(err, syscall.EPIPE) { + log.WithError(err).WithFields(fields).Debug("Failed to write API response: client connection closed") + return + } + + log.WithFields(fields).WithField("panic_message", r).Warn("Cilium API handler panicked") if logging.DefaultLogger.IsLevelEnabled(logrus.DebugLevel) { os.Stdout.Write(debug.Stack()) } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/aws/eni/types/types.go b/backend/vendor/github.com/cilium/cilium/pkg/aws/eni/types/types.go index c2cba6c38..5fecd2467 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/aws/eni/types/types.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/aws/eni/types/types.go @@ -206,6 +206,11 @@ type ENI struct { // // +optional Tags map[string]string `json:"tags,omitempty"` + + // PublicIP is the public IP associated with the ENI + // + // +optional + PublicIP string `json:"public-ip,omitempty"` } func (e *ENI) DeepCopyInterface() types.Interface { diff --git a/backend/vendor/github.com/cilium/cilium/pkg/aws/eni/types/zz_generated.deepequal.go b/backend/vendor/github.com/cilium/cilium/pkg/aws/eni/types/zz_generated.deepequal.go index 4c1c93fc0..00b50c30d 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/aws/eni/types/zz_generated.deepequal.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/aws/eni/types/zz_generated.deepequal.go @@ -163,6 +163,10 @@ func (in *ENI) DeepEqual(other *ENI) bool { } } + if in.PublicIP != other.PublicIP { + return false + } + return true } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/cidr/cidr.go b/backend/vendor/github.com/cilium/cilium/pkg/cidr/cidr.go index 66c6e5cae..13ff20da1 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/cidr/cidr.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/cidr/cidr.go @@ -7,6 +7,7 @@ import ( "bytes" "fmt" "net" + "slices" ) // NewCIDR returns a new CIDR using a net.IPNet @@ -18,6 +19,30 @@ func NewCIDR(ipnet *net.IPNet) *CIDR { return &CIDR{ipnet} } +func NewCIDRSlice(ipnets []*net.IPNet) []*CIDR { + if ipnets == nil { + return nil + } + + cidrs := make([]*CIDR, len(ipnets)) + for i, ipnet := range ipnets { + cidrs[i] = NewCIDR(ipnet) + } + return cidrs +} + +func CIDRsToIPNets(cidrs []*CIDR) []*net.IPNet { + if cidrs == nil { + return nil + } + + ipnets := make([]*net.IPNet, len(cidrs)) + for i, cidr := range cidrs { + ipnets[i] = cidr.IPNet + } + return ipnets +} + // CIDR is a network CIDR representation based on net.IPNet type CIDR struct { *net.IPNet @@ -119,43 +144,16 @@ func ZeroNet(family int) *net.IPNet { // ContainsAll returns true if 'ipNets1' contains all net.IPNet of 'ipNets2' func ContainsAll(ipNets1, ipNets2 []*net.IPNet) bool { - for _, n := range ipNets2 { - if !Contains(ipNets1, n) { + for _, n2 := range ipNets2 { + if !slices.ContainsFunc(ipNets1, func(n1 *net.IPNet) bool { + return Equal(n2, n1) + }) { return false } } return true } -// Contains returns true if 'ipNets' contains ipNet. -func Contains(ipNets []*net.IPNet, ipNet *net.IPNet) bool { - for _, n := range ipNets { - if Equal(n, ipNet) { - return true - } - } - return false -} - -// RemoveAll removes all cidrs specified in 'toRemove' from 'ipNets'. ipNets -// is clobbered (to ensure removed CIDRs can be garbage collected) and -// must not be used after this function has been called. -// Example usage: -// -// cidrs = cidr.RemoveAll(cidrs, toRemove) -func RemoveAll(ipNets, toRemove []*net.IPNet) []*net.IPNet { - newIPNets := ipNets[:0] - for _, n := range ipNets { - if !Contains(toRemove, n) { - newIPNets = append(newIPNets, n) - } - } - for i := len(newIPNets); i < len(ipNets); i++ { - ipNets[i] = nil // or the zero value of T - } - return newIPNets -} - // ParseCIDR parses the CIDR string using net.ParseCIDR func ParseCIDR(str string) (*CIDR, error) { _, ipnet, err := net.ParseCIDR(str) diff --git a/backend/vendor/github.com/cilium/cilium/pkg/client/client.go b/backend/vendor/github.com/cilium/cilium/pkg/client/client.go index 391dde444..fef6a84f4 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/client/client.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/client/client.go @@ -12,7 +12,7 @@ import ( "net/http" "net/url" "os" - "sort" + "slices" "strings" "text/tabwriter" "time" @@ -39,7 +39,6 @@ func DefaultSockPath() string { e = defaults.SockPath } return "unix://" + e - } func configureTransport(tr *http.Transport, proto, addr string) *http.Transport { @@ -331,7 +330,7 @@ func FormatStatusResponse(w io.Writer, sr *models.StatusResponse, sd StatusDetai if sr.Kubernetes != nil { fmt.Fprintf(w, "Kubernetes:\t%s\t%s\n", sr.Kubernetes.State, sr.Kubernetes.Msg) if sr.Kubernetes.State != models.K8sStatusStateDisabled { - sort.Strings(sr.Kubernetes.K8sAPIVersions) + slices.Sort(sr.Kubernetes.K8sAPIVersions) fmt.Fprintf(w, "Kubernetes APIs:\t[\"%s\"]\n", strings.Join(sr.Kubernetes.K8sAPIVersions, "\", \"")) } @@ -394,7 +393,7 @@ func FormatStatusResponse(w io.Writer, sr *models.StatusResponse, sd StatusDetai for probe := range sr.Stale { sortedProbes = append(sortedProbes, probe) } - sort.Strings(sortedProbes) + slices.Sort(sortedProbes) stalesStr := make([]string, 0, len(sr.Stale)) for _, probe := range sortedProbes { @@ -429,7 +428,7 @@ func FormatStatusResponse(w io.Writer, sr *models.StatusResponse, sd StatusDetai for ip, owner := range sr.Ipam.Allocations { out = append(out, fmt.Sprintf(" %s (%s)", ip, owner)) } - sort.Strings(out) + slices.Sort(out) for _, line := range out { fmt.Fprintln(w, line) } @@ -599,7 +598,7 @@ func FormatStatusResponse(w io.Writer, sr *models.StatusResponse, sd StatusDetai fmt.Fprintf(w, "Controller Status:\t%d/%d healthy\n", nOK, len(sr.Controllers)) if len(out) > 1 { tab := tabwriter.NewWriter(w, 0, 0, 3, ' ', 0) - sort.Strings(out) + slices.Sort(out) for _, s := range out { fmt.Fprint(tab, s) } @@ -618,7 +617,7 @@ func FormatStatusResponse(w io.Writer, sr *models.StatusResponse, sd StatusDetai } tab := tabwriter.NewWriter(w, 0, 0, 3, ' ', 0) fmt.Fprint(tab, " Protocol\tRedirect\tProxy Port\n") - sort.Strings(out) + slices.Sort(out) for _, s := range out { fmt.Fprint(tab, s) } @@ -776,6 +775,10 @@ func FormatStatusResponse(w io.Writer, sr *models.StatusResponse, sd StatusDetai fmt.Fprintf(tab, " - LoadBalancer:\t%s \n", lb) fmt.Fprintf(tab, " - externalIPs:\t%s \n", eIP) fmt.Fprintf(tab, " - HostPort:\t%s\n", hPort) + fmt.Fprintf(tab, " Annotations:\n") + for _, annotation := range sr.KubeProxyReplacement.Features.Annotations { + fmt.Fprintf(tab, " - %s\n", annotation) + } tab.Flush() } @@ -829,9 +832,9 @@ const ( func FormatStatusResponseRemoteClusters(w io.Writer, clusters []*models.RemoteCluster, verbosity RemoteClustersStatusVerbosity) { for _, cluster := range clusters { if verbosity != RemoteClustersStatusNotReadyOnly || !cluster.Ready { - fmt.Fprintf(w, " %s: %s, %d nodes, %d endpoints, %d identities, %d services, %d reconnections (last: %s)\n", + fmt.Fprintf(w, " %s: %s, %d nodes, %d endpoints, %d identities, %d services, %d MCS-API service exports, %d reconnections (last: %s)\n", cluster.Name, clusterReadiness(cluster), cluster.NumNodes, - cluster.NumEndpoints, cluster.NumIdentities, cluster.NumSharedServices, + cluster.NumEndpoints, cluster.NumIdentities, cluster.NumSharedServices, cluster.NumServiceExports, cluster.NumFailures, timeSince(time.Time(cluster.LastFailure))) if verbosity == RemoteClustersStatusBrief && cluster.Ready { @@ -843,9 +846,17 @@ func FormatStatusResponseRemoteClusters(w io.Writer, clusters []*models.RemoteCl fmt.Fprint(w, " └ remote configuration: ") if cluster.Config != nil { fmt.Fprintf(w, "expected=%t, retrieved=%t", cluster.Config.Required, cluster.Config.Retrieved) + serviceExportsConfig := "unsupported" + if cluster.Config.ServiceExportsEnabled != nil { + if *cluster.Config.ServiceExportsEnabled { + serviceExportsConfig = "enabled" + } else { + serviceExportsConfig = "disabled" + } + } if cluster.Config.Retrieved { - fmt.Fprintf(w, ", cluster-id=%d, kvstoremesh=%t, sync-canaries=%t", - cluster.Config.ClusterID, cluster.Config.Kvstoremesh, cluster.Config.SyncCanaries) + fmt.Fprintf(w, ", cluster-id=%d, kvstoremesh=%t, sync-canaries=%t, service-exports=%s", + cluster.Config.ClusterID, cluster.Config.Kvstoremesh, cluster.Config.SyncCanaries, serviceExportsConfig) } } else { fmt.Fprint(w, "expected=unknown, retrieved=unknown") @@ -853,8 +864,12 @@ func FormatStatusResponseRemoteClusters(w io.Writer, clusters []*models.RemoteCl fmt.Fprint(w, "\n") if cluster.Synced != nil { - fmt.Fprintf(w, " └ synchronization status: nodes=%v, endpoints=%v, identities=%v, services=%v\n", + fmt.Fprintf(w, " └ synchronization status: nodes=%v, endpoints=%v, identities=%v, services=%v", cluster.Synced.Nodes, cluster.Synced.Endpoints, cluster.Synced.Identities, cluster.Synced.Services) + if cluster.Synced.ServiceExports != nil { + fmt.Fprintf(w, ", service-exports=%v", *cluster.Synced.ServiceExports) + } + fmt.Fprintln(w) } } } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/clustermesh/types/addressing.go b/backend/vendor/github.com/cilium/cilium/pkg/clustermesh/types/addressing.go index 37135b8ed..354ec8aca 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/clustermesh/types/addressing.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/clustermesh/types/addressing.go @@ -4,6 +4,8 @@ package types import ( + "bytes" + "errors" "fmt" "net" "net/netip" @@ -13,7 +15,6 @@ import ( "go4.org/netipx" "github.com/cilium/cilium/pkg/cidr" - ippkg "github.com/cilium/cilium/pkg/ip" ) // @@ -42,6 +43,55 @@ type AddrCluster struct { const AddrClusterLen = 20 +var ( + errUnmarshalBadAddress = errors.New("AddrCluster.UnmarshalJSON: bad address") + errMarshalInvalidAddress = errors.New("AddrCluster.MarshalJSON: invalid address") + + jsonZeroAddress = []byte("\"\"") +) + +// MarshalJSON marshals the address as a string in the form +// @, e.g. "1.2.3.4@1" +func (a *AddrCluster) MarshalJSON() ([]byte, error) { + if !a.addr.IsValid() { + if a.clusterID != 0 { + return nil, errMarshalInvalidAddress + } + + // AddrCluster{} is the zero value. Preserve this across the + // marshalling by returning an empty string. + return jsonZeroAddress, nil + } + + var b bytes.Buffer + b.WriteByte('"') + b.WriteString(a.String()) + b.WriteByte('"') + return b.Bytes(), nil +} + +func (a *AddrCluster) UnmarshalJSON(data []byte) error { + if bytes.Equal(data, jsonZeroAddress) { + return nil + } + + if len(data) <= 2 || data[0] != '"' || data[len(data)-1] != '"' { + return errUnmarshalBadAddress + } + + // Drop the parens + data = data[1 : len(data)-1] + + a2, err := ParseAddrCluster(string(data)) + if err != nil { + return err + } + a.addr = a2.addr + a.clusterID = a2.clusterID + + return nil +} + // ParseAddrCluster parses s as an IP + ClusterID and returns AddrCluster. // The string s can be a bare IP string (any IP address format allowed in // netip.ParseAddr()) or IP string + @ + ClusterID with decimal. Bare IP @@ -96,10 +146,10 @@ func MustParseAddrCluster(s string) AddrCluster { return addrCluster } -// AddrClusterFromIP parses the given net.IP using ip.AddrFromIP and returns +// AddrClusterFromIP parses the given net.IP using netipx.FromStdIP and returns // AddrCluster with ClusterID = 0. func AddrClusterFromIP(ip net.IP) (AddrCluster, bool) { - addr, ok := ippkg.AddrFromIP(ip) + addr, ok := netipx.FromStdIP(ip) if !ok { return AddrCluster{}, false } @@ -313,7 +363,7 @@ func PrefixClusterFromCIDR(c *cidr.CIDR, opts ...PrefixClusterOpts) PrefixCluste return PrefixCluster{} } - addr, ok := ippkg.AddrFromIP(c.IP) + addr, ok := netipx.FromStdIP(c.IP) if !ok { return PrefixCluster{} } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/clustermesh/types/option.go b/backend/vendor/github.com/cilium/cilium/pkg/clustermesh/types/option.go index 444b25651..fe746e82b 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/clustermesh/types/option.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/clustermesh/types/option.go @@ -7,12 +7,10 @@ import ( "errors" "fmt" - "github.com/sirupsen/logrus" "github.com/spf13/pflag" "github.com/cilium/cilium/pkg/defaults" ipamOption "github.com/cilium/cilium/pkg/ipam/option" - "github.com/cilium/cilium/pkg/logging/logfields" ) const ( @@ -49,23 +47,23 @@ func (def ClusterInfo) Flags(flags *pflag.FlagSet) { // Validate validates that the ClusterID is in the valid range (including ClusterID == 0), // and that the ClusterName is different from the default value if the ClusterID != 0. -func (c ClusterInfo) Validate(log logrus.FieldLogger) error { +func (c ClusterInfo) Validate() error { if c.ID < ClusterIDMin || c.ID > ClusterIDMax { return fmt.Errorf("invalid cluster id %d: must be in range %d..%d", c.ID, ClusterIDMin, ClusterIDMax) } - return c.validateName(log) + return c.validateName() } // ValidateStrict validates that the ClusterID is in the valid range, but not 0, // and that the ClusterName is different from the default value. -func (c ClusterInfo) ValidateStrict(log logrus.FieldLogger) error { +func (c ClusterInfo) ValidateStrict() error { if err := ValidateClusterID(c.ID); err != nil { return err } - return c.validateName(log) + return c.validateName() } // ValidateBuggyClusterID returns an error if a buggy cluster ID (i.e., with the @@ -82,10 +80,9 @@ func (c ClusterInfo) ValidateBuggyClusterID(ipamMode, chainingMode string) error return nil } -func (c ClusterInfo) validateName(log logrus.FieldLogger) error { +func (c ClusterInfo) validateName() error { if err := ValidateClusterName(c.Name); err != nil { - log.WithField(logfields.ClusterName, c.Name).WithError(err). - Error("Invalid cluster name. This may cause degraded functionality, and will be strictly forbidden starting from Cilium v1.17") + return fmt.Errorf("invalid cluster name: %w", err) } if c.ID != 0 && c.Name == defaults.ClusterName { @@ -115,3 +112,26 @@ func (c ClusterInfo) ValidateRemoteConfig(config CiliumClusterConfig) error { return nil } + +// QuirksConfig allows the user to configure how Cilium behaves when a set +// of incompatible options are configured together into the agent. +type QuirksConfig struct { + // AllowUnsafePolicySKBUsage determines whether to hard-fail startup + // due to detection of a configuration combination that may trigger + // connection impact in the dataplane due to clustermesh IDs + // conflicting with other usage of skb->mark field. See GH-21330. + AllowUnsafePolicySKBUsage bool +} + +var DefaultQuirks = QuirksConfig{ + AllowUnsafePolicySKBUsage: false, +} + +func (_ QuirksConfig) Flags(flags *pflag.FlagSet) { + flags.Bool("allow-unsafe-policy-skb-usage", false, + "Allow the daemon to continue to operate even if conflicting "+ + "clustermesh ID configuration is detected which may "+ + "impact the ability for Cilium to enforce network "+ + "policy both within and across clusters") + flags.MarkHidden("allow-unsafe-policy-skb-usage") +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/clustermesh/types/types.go b/backend/vendor/github.com/cilium/cilium/pkg/clustermesh/types/types.go index 08d434e84..930e98335 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/clustermesh/types/types.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/clustermesh/types/types.go @@ -94,4 +94,8 @@ type CiliumClusterConfigCapabilities struct { // The maximum number of clusters the given cluster can support in a ClusterMesh. MaxConnectedClusters uint32 `json:"maxConnectedClusters,omitempty"` + + // Whether or not MCS-API ServiceExports is enabled by the cluster. + // Additionally a nil values means that it's not supported. + ServiceExportsEnabled *bool `json:"serviceExportsEnabled,omitempty"` } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/comparator/comparator.go b/backend/vendor/github.com/cilium/cilium/pkg/comparator/comparator.go index 689629d80..49ccc8dd1 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/comparator/comparator.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/comparator/comparator.go @@ -3,30 +3,6 @@ package comparator -import ( - "github.com/kr/pretty" - "github.com/pmezard/go-difflib/difflib" -) - -// CompareWithNames compares two interfaces and emits a unified diff as string -func CompareWithNames(a, b interface{}, nameA, nameB string) string { - stringA := pretty.Sprintf("%# v", a) - stringB := pretty.Sprintf("%# v", b) - diff := difflib.UnifiedDiff{ - A: difflib.SplitLines(stringA), - B: difflib.SplitLines(stringB), - FromFile: nameA, - ToFile: nameB, - Context: 32, - } - - out, err := difflib.GetUnifiedDiffString(diff) - if err != nil { - return err.Error() - } - return "Unified diff:\n" + out -} - // MapStringEqualsIgnoreKeys returns true if both maps have the same values for // the keys that are not present in the 'ignoreKeys'. func MapStringEqualsIgnoreKeys(m1, m2 map[string]string, ignoreKeys []string) bool { diff --git a/backend/vendor/github.com/cilium/cilium/pkg/container/cache/cache.go b/backend/vendor/github.com/cilium/cilium/pkg/container/cache/cache.go new file mode 100644 index 000000000..dcca33247 --- /dev/null +++ b/backend/vendor/github.com/cilium/cilium/pkg/container/cache/cache.go @@ -0,0 +1,61 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package cache + +import ( + "sync" +) + +const ( + cacheSize = 512 + cacheMask = cacheSize - 1 +) + +func New[T any](hashfn func(T) uint64, skipfn func(x T) bool, eqfn func(a, b T) bool) *Cache[T] { + return &Cache[T]{ + hashfn: hashfn, + eqfn: eqfn, + skipfn: skipfn, + pool: sync.Pool{New: func() any { + var arr [cacheSize]T + return &arr + }}, + } +} + +// Cache is a simple fixed size cache for efficient deduplication of objects. +type Cache[T any] struct { + // pool of cache arrays. Pool is used here as it provides a very efficient + // shared access to a set of "cache arrays", and under low memory scenarios + // allows the Go runtime to drop the caches. + pool sync.Pool + + skipfn func(T) bool + hashfn func(T) uint64 + eqfn func(a, b T) bool +} + +// Get a cached object if any. If Get() was called previously with an object equal to [x] +// and it is found from the cache then it is returned, otherwise [x] is inserted into +// cache. +func (c *Cache[T]) Get(x T) T { + if c.skipfn != nil && c.skipfn(x) { + return x + } + x, _ = c.get(x) + return x +} + +func (c *Cache[T]) get(x T) (T, uint64) { + hash := c.hashfn(x) + arr := c.pool.Get().(*[cacheSize]T) + idx := hash & cacheMask + v := (*arr)[idx] + if !c.eqfn(x, v) { + (*arr)[idx] = x + v = x + } + c.pool.Put(arr) + return v, hash +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/container/cache/caches.go b/backend/vendor/github.com/cilium/cilium/pkg/container/cache/caches.go new file mode 100644 index 000000000..f1d2d792f --- /dev/null +++ b/backend/vendor/github.com/cilium/cilium/pkg/container/cache/caches.go @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package cache + +import ( + "maps" + + "github.com/cespare/xxhash/v2" +) + +var ( + Strings = New( + xxhash.Sum64String, + func(s string) bool { + // Skip caching of long strings + return len(s) > 256 + }, + func(a, b string) bool { return a == b }, + ) + + StringMaps = New( + func(m map[string]string) (hash uint64) { + for k, v := range m { + _, hashk := Strings.get(k) + _, hashv := Strings.get(v) + hash = hash ^ hashk ^ hashv + } + return + }, + func(m map[string]string) bool { + // Skip caching of large maps + return len(m) > 32 + }, + maps.Equal, + ) +) diff --git a/backend/vendor/github.com/cilium/cilium/pkg/counter/counter.go b/backend/vendor/github.com/cilium/cilium/pkg/counter/counter.go index 7bc8622c1..7b154ffe6 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/counter/counter.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/counter/counter.go @@ -36,3 +36,8 @@ func (c Counter[T]) DeepCopy() Counter[T] { } return result } + +// Has returns true if the given key has a non-zero refcount. +func (c Counter[T]) Has(key T) bool { + return c[key] > 0 +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/crypto/certloader/watcher.go b/backend/vendor/github.com/cilium/cilium/pkg/crypto/certloader/watcher.go index e72d743cf..5a0940036 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/crypto/certloader/watcher.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/crypto/certloader/watcher.go @@ -9,7 +9,6 @@ import ( "github.com/sirupsen/logrus" "github.com/cilium/cilium/pkg/fswatcher" - "github.com/cilium/cilium/pkg/inctimer" "github.com/cilium/cilium/pkg/logging/logfields" "github.com/cilium/cilium/pkg/time" ) @@ -149,11 +148,11 @@ func (w *Watcher) Watch() <-chan struct{} { if keypairUpdated { if keypairReload == nil { - keypairReload = inctimer.After(watcherEventCoalesceWindow) + keypairReload = time.After(watcherEventCoalesceWindow) } } else if caUpdated { if caReload == nil { - caReload = inctimer.After(watcherEventCoalesceWindow) + caReload = time.After(watcherEventCoalesceWindow) } } else { // fswatcher should never send events for unknown files @@ -198,7 +197,11 @@ func (w *Watcher) Watch() <-chan struct{} { // Stop watching the files. func (w *Watcher) Stop() { - close(w.stop) + select { + case <-w.stop: + default: + close(w.stop) + } } // newFsWatcher returns a fswatcher.Watcher watching over the given files. diff --git a/backend/vendor/github.com/cilium/cilium/pkg/datapath/linux/probes/probes.go b/backend/vendor/github.com/cilium/cilium/pkg/datapath/linux/probes/probes.go index eed33b5d7..dcf0950dc 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/datapath/linux/probes/probes.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/datapath/linux/probes/probes.go @@ -9,6 +9,7 @@ import ( "errors" "fmt" "io" + "math" "net" "os" "path/filepath" @@ -20,8 +21,8 @@ import ( "github.com/cilium/ebpf/asm" "github.com/cilium/ebpf/features" "github.com/cilium/ebpf/link" - "github.com/google/gopacket" - "github.com/google/gopacket/layers" + "github.com/gopacket/gopacket" + "github.com/gopacket/gopacket/layers" "golang.org/x/sys/unix" "github.com/cilium/cilium/pkg/command/exec" @@ -392,6 +393,13 @@ func HaveFibIfindex() error { return features.HaveProgramHelper(ebpf.SchedCLS, asm.FnRedirectPeer) } +// HaveWriteableQueueMapping checks if kernel has 74e31ca850c1 ("bpf: add +// skb->queue_mapping write access from tc clsact") which is 5.1+. This got merged +// in the same kernel as the bpf_skb_ecn_set_ce() helper. +func HaveWriteableQueueMapping() error { + return features.HaveProgramHelper(ebpf.SchedCLS, asm.FnSkbEcnSetCe) +} + // HaveV2ISA is a wrapper around features.HaveV2ISA() to check if the kernel // supports the V2 ISA. // On unexpected probe results this function will terminate with log.Fatal(). @@ -488,7 +496,7 @@ var HaveNetkit = sync.OnceValue(func() error { l, err := link.AttachNetkit(link.NetkitOptions{ Program: prog, Attach: ebpf.AttachNetkitPrimary, - Interface: int(^uint32(0)), + Interface: math.MaxInt, }) // We rely on this being checked during the syscall. With // an otherwise correct payload we expect ENODEV here as @@ -742,8 +750,6 @@ func ExecuteHeaderProbes() *FeatureProbes { {ebpf.CGroupSockAddr, asm.FnJiffies64}, {ebpf.SchedCLS, asm.FnJiffies64}, {ebpf.XDP, asm.FnJiffies64}, - {ebpf.CGroupSockAddr, asm.FnSkLookupTcp}, - {ebpf.CGroupSockAddr, asm.FnSkLookupUdp}, {ebpf.CGroupSockAddr, asm.FnGetCurrentCgroupId}, {ebpf.CGroupSock, asm.FnSetRetval}, {ebpf.SchedCLS, asm.FnRedirectNeigh}, diff --git a/backend/vendor/github.com/cilium/cilium/pkg/datapath/linux/safenetlink/netlink_linux.go b/backend/vendor/github.com/cilium/cilium/pkg/datapath/linux/safenetlink/netlink_linux.go index 8b1216dd9..00afeadab 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/datapath/linux/safenetlink/netlink_linux.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/datapath/linux/safenetlink/netlink_linux.go @@ -194,6 +194,14 @@ func NeighListExecute(msg netlink.Ndmsg) ([]netlink.Neigh, error) { }) } +// NeighSubscribeWithOptions wraps netlink.NeighSubscribeWithOptions, but retries the call automatically +// if netlink.ErrDumpInterrupted is returned +func NeighSubscribeWithOptions(ch chan<- netlink.NeighUpdate, done <-chan struct{}, options netlink.NeighSubscribeOptions) error { + return WithRetry(func() error { + return netlink.NeighSubscribeWithOptions(ch, done, options) + }) +} + // LinkGetProtinfo wraps netlink.LinkGetProtinfo, but retries the call automatically // if netlink.ErrDumpInterrupted is returned func LinkGetProtinfo(link netlink.Link) (netlink.Protinfo, error) { diff --git a/backend/vendor/github.com/cilium/cilium/pkg/defaults/defaults.go b/backend/vendor/github.com/cilium/cilium/pkg/defaults/defaults.go index a404fb6e6..e8032c231 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/defaults/defaults.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/defaults/defaults.go @@ -72,43 +72,9 @@ const ( // SockPathEnv is the environment variable to overwrite SockPath SockPathEnv = "CILIUM_SOCK" - // HubbleSockPath is the path to the UNIX domain socket exposing the Hubble - // API to clients locally. - HubbleSockPath = RuntimePath + "/hubble.sock" - - // HubbleSockPathEnv is the environment variable to overwrite - // HubbleSockPath. - HubbleSockPathEnv = "HUBBLE_SOCK" - - // HubbleRecorderStoragePath specifies the directory in which pcap files - // created via the Hubble Recorder API are stored - HubbleRecorderStoragePath = RuntimePath + "/pcaps" - - // HubbleRecorderSinkQueueSize is the queue size for each recorder sink - HubbleRecorderSinkQueueSize = 1024 - - // HubbleRedactEnabled controls if sensitive information will be redacted from L7 flows - HubbleRedactEnabled = false - - // HubbleRedactHttpURLQuery controls if the URL query will be redacted from flows - HubbleRedactHttpURLQuery = false - - // HubbleRedactHttpUserInfo controls if the user info will be redacted from flows - HubbleRedactHttpUserInfo = true - - // HubbleRedactKafkaApiKey controls if the Kafka API key will be redacted from flows - HubbleRedactKafkaApiKey = false - - // HubbleDropEventsEnabled controls whether Hubble should create v1.Events - // for packet drops related to pods - HubbleDropEventsEnabled = false - - // HubbleDropEventsInterval controls the minimum time between emitting events - // with the same source and destination IP - HubbleDropEventsInterval = 2 * time.Minute - - // HubbleDropEventsReasons controls which drop reasons to emit events for - HubbleDropEventsReasons = "auth_required,policy_denied" + // ShellSockPath is the path to the UNIX domain socket exposing the debug shell + // to which "cilium-dbg shell" connects to. + ShellSockPath = RuntimePath + "/shell.sock" // MonitorSockPath1_2 is the path to the UNIX domain socket used to // distribute BPF and agent events to listeners. @@ -153,7 +119,7 @@ const ( // ToFQDNsMaxIPsPerHost defines the maximum number of IPs to maintain // for each FQDN name in an endpoint's FQDN cache - ToFQDNsMaxIPsPerHost = 50 + ToFQDNsMaxIPsPerHost = 1000 // ToFQDNsMaxDeferredConnectionDeletes Maximum number of IPs to retain for // expired DNS lookups with still-active connections @@ -223,6 +189,10 @@ const ( // is considered failed StatusCollectorFailureThreshold = 1 * time.Minute + // SessionAffinityTimeoutMaxFallback defines the maximum number of seconds + // for the session affinity timeout. See also lb{4,6}_affinity_timeout(). + SessionAffinityTimeoutMaxFallback = 0xffffff + // EnableIPv4 is the default value for IPv4 enablement EnableIPv4 = true @@ -300,9 +270,6 @@ const ( // EnableBPFTProxy is the default value for EnableBPFTProxy EnableBPFTProxy = false - // EnableXTSocketFallback is the default value for EnableXTSocketFallback - EnableXTSocketFallback = true - // EnableLocalNodeRoute default value for EnableLocalNodeRoute EnableLocalNodeRoute = true @@ -327,6 +294,9 @@ const ( // EnableHealthCheckLoadBalancerIP EnableHealthCheckLoadBalancerIP = false + // HealthCheckICMPFailureThreshold is the default value for HealthCheckICMPFailureThreshold + HealthCheckICMPFailureThreshold = 3 + // AlignCheckerName is the BPF object name for the alignchecker. AlignCheckerName = "bpf_alignchecker.o" @@ -340,8 +310,9 @@ const ( // a kvstore path for too long. KVStoreStaleLockTimeout = 30 * time.Second - // PolicyQueueSize is the default queue size for policy-related events. - PolicyQueueSize = 100 + // KVstorePodNetworkSupport represents whether to enable the support for + // running the Cilium KVstore in pod network. + KVstorePodNetworkSupport = false // KVstoreQPS is default rate limit for kv store operations KVstoreQPS = 20 @@ -407,7 +378,7 @@ const ( LockLeaseTTL = 25 * time.Second // KVstoreLeaseMaxTTL is the upper bound for KVStore lease TTL value. - // It is calculated as Min(int64 positive max, etcd MaxLeaseTTL, consul MaxLeaseTTL) + // It is calculated as Min(int64 positive max, etcd MaxLeaseTTL) KVstoreLeaseMaxTTL = 86400 * time.Second // IPAMPreAllocation is the default value for @@ -465,13 +436,11 @@ const ( // policy updates are invoked. PolicyTriggerInterval = 1 * time.Second - // K8sClientQPSLimit is the default qps for the k8s client. It is set to 0 because the k8s client - // has its own default. - K8sClientQPSLimit float32 = 0.0 + // K8sClientQPSLimit is the default qps for the cilium-agent k8s client. + K8sClientQPSLimit float32 = 10.0 - // K8sClientBurst is the default burst for the k8s client. It is set to 0 because the k8s client - // has its own default. - K8sClientBurst = 0 + // K8sClientBurst is the default burst for the cilium-agent k8s client. + K8sClientBurst = 20 // K8sServiceCacheSize is the default value for option.K8sServiceCacheSize // which denotes the value of Cilium's K8s service cache size. @@ -573,6 +542,13 @@ const ( // EnableK8sNetworkPolicy enables support for K8s NetworkPolicy. EnableK8sNetworkPolicy = true + // EnableCiliumNetworkPolicy enables support for Cilium Network Policy. + EnableCiliumNetworkPolicy = true + + // EnableCiliumClusterwideNetworkPolicy enables support for Cilium Clusterwide + // Network Policy. + EnableCiliumClusterwideNetworkPolicy = true + // MaxConnectedClusters sets the maximum number of clusters that can be // connected in a clustermesh. // The value is used to determine the bit allocation for cluster ID and @@ -592,11 +568,23 @@ const ( // BPFEventsTraceEnabled controls whether the Cilium datapath exposes "trace" events to Cilium monitor and Hubble. BPFEventsTraceEnabled = true + // BPFConntrackAccounting controls whether CT accounting for packets and bytes is enabled + BPFConntrackAccounting = false + // EnableEnvoyConfig is the default value for option.EnableEnvoyConfig EnableEnvoyConfig = false // NetNsPath is the default path to the mounted network namespaces directory NetNsPath = "/var/run/cilium/netns" + + // EnableIternalTrafficPolicy is the default value for option.EnableInternalTrafficPolicy + EnableInternalTrafficPolicy = true + + // EnableNonDefaultDenyPolicies allows policies to define whether they are operating in default-deny mode + EnableNonDefaultDenyPolicies = true + + // EnableSourceIPVerification is the default value for source ip validation + EnableSourceIPVerification = true ) var ( diff --git a/backend/vendor/github.com/cilium/cilium/pkg/health/client/client.go b/backend/vendor/github.com/cilium/cilium/pkg/health/client/client.go index dd943633b..c30e1b25f 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/health/client/client.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/health/client/client.go @@ -164,7 +164,7 @@ func GetPathConnectivityStatusType(cp *models.PathStatus) ConnectivityStatusType return status } -func SummarizePathConnectivityStatusType(cps []*models.PathStatus) ConnectivityStatusType { +func SummarizePathConnectivityStatus(cps []*models.PathStatus) ConnectivityStatusType { status := ConnStatusReachable for _, cp := range cps { switch GetPathConnectivityStatusType(cp) { @@ -181,6 +181,16 @@ func SummarizePathConnectivityStatusType(cps []*models.PathStatus) ConnectivityS return status } +// Returns a map of ConnectivityStatusType --> # of paths with ConnectivityStatusType +func SummarizePathConnectivityStatusType(cps []*models.PathStatus) map[ConnectivityStatusType]int { + status := make(map[ConnectivityStatusType]int) + for _, cp := range cps { + cst := GetPathConnectivityStatusType(cp) + status[cst]++ + } + return status +} + func formatConnectivityStatus(w io.Writer, cs *models.ConnectivityStatus, path, indent string) { status := cs.Status switch GetConnectivityStatusType(cs) { @@ -310,55 +320,88 @@ func GetAllEndpointAddresses(node *models.NodeStatus) []*models.PathStatus { return append([]*models.PathStatus{node.HealthEndpoint.PrimaryAddress}, node.HealthEndpoint.SecondaryAddresses...) } -func formatNodeStatus(w io.Writer, node *models.NodeStatus, printAll, succinct, verbose, localhost bool) { +func formatNodeStatus(w io.Writer, node *models.NodeStatus, allNodes, verbose, localhost bool) bool { localStr := "" if localhost { localStr = " (localhost)" } - if succinct { - if printAll || !nodeIsHealthy(node) { - ips := []string{getPrimaryAddressIP(node)} - for _, addr := range GetHostSecondaryAddresses(node) { - if addr == nil { - continue - } - ips = append(ips, addr.IP) - } - fmt.Fprintf(w, " %s%s\t%s\t%s\t%s\n", node.Name, - localStr, strings.Join(ips, ","), - SummarizePathConnectivityStatusType(GetAllHostAddresses(node)).String(), - SummarizePathConnectivityStatusType(GetAllEndpointAddresses(node)).String()) - } - } else { + + if verbose { fmt.Fprintf(w, " %s%s:\n", node.Name, localStr) formatPathStatus(w, "Host", GetHostPrimaryAddress(node), " ", verbose) unhealthyPaths := !allPathsAreHealthyOrUnknown(GetHostSecondaryAddresses(node)) if (verbose || unhealthyPaths) && node.Host != nil { for _, addr := range node.Host.SecondaryAddresses { - formatPathStatus(w, "Secondary", addr, " ", verbose) + formatPathStatus(w, "Secondary Host", addr, " ", verbose) } } formatPathStatus(w, "Endpoint", GetEndpointPrimaryAddress(node), " ", verbose) unhealthyPaths = !allPathsAreHealthyOrUnknown(GetEndpointSecondaryAddresses(node)) if (verbose || unhealthyPaths) && node.HealthEndpoint != nil { for _, addr := range node.HealthEndpoint.SecondaryAddresses { - formatPathStatus(w, "Secondary", addr, " ", verbose) + formatPathStatus(w, "Secondary Endpoint", addr, " ", verbose) + } + } + return true + } + + hostStatuses := SummarizePathConnectivityStatusType(GetAllHostAddresses(node)) + endpointStatuses := SummarizePathConnectivityStatusType(GetAllEndpointAddresses(node)) + + if !nodeIsHealthy(node) { + ips := []string{getPrimaryAddressIP(node)} + for _, addr := range GetHostSecondaryAddresses(node) { + if addr == nil { + continue + } + ips = append(ips, addr.IP) + } + fmt.Fprintf(w, " %s%s\t%s\t%d/%d", node.Name, localStr, strings.Join(ips, ","), hostStatuses[ConnStatusReachable], len(GetAllHostAddresses(node))) + if hostStatuses[ConnStatusUnknown] > 0 { + fmt.Fprintf(w, " (%d unknown)", hostStatuses[ConnStatusUnknown]) + } + fmt.Fprintf(w, "\t%d/%d", endpointStatuses[ConnStatusReachable], len(GetAllEndpointAddresses(node))) + if endpointStatuses[ConnStatusUnknown] > 0 { + fmt.Fprintf(w, " (%d unknown)", endpointStatuses[ConnStatusUnknown]) + } + fmt.Fprintf(w, "\n") + return true + } + + if allNodes { + ips := []string{getPrimaryAddressIP(node)} + for _, addr := range GetHostSecondaryAddresses(node) { + if addr == nil { + continue } + ips = append(ips, addr.IP) + } + fmt.Fprintf(w, " %s%s\t%s\t%d/%d", node.Name, localStr, strings.Join(ips, ","), hostStatuses[ConnStatusReachable], len(GetAllHostAddresses(node))) + if hostStatuses[ConnStatusUnknown] > 0 { + fmt.Fprintf(w, " (%d unknown)", hostStatuses[ConnStatusUnknown]) } + fmt.Fprintf(w, "\t%d/%d", endpointStatuses[ConnStatusReachable], len(GetAllEndpointAddresses(node))) + if endpointStatuses[ConnStatusUnknown] > 0 { + fmt.Fprintf(w, " (%d unknown)", endpointStatuses[ConnStatusUnknown]) + } + fmt.Fprintf(w, "\n") + return true } + + return false } // FormatHealthStatusResponse writes a HealthStatusResponse as a string to the // writer. // -// 'printAll', if true, causes all nodes to be printed regardless of status -// 'succinct', if true, causes node health to be output as one line per node -// 'verbose', if true, overrides 'succinct' and prints all information +// 'allNodes', if true, causes all nodes to be printed regardless of status +// 'verbose', if true, prints all information // 'maxLines', if nonzero, determines the maximum number of lines to print -func FormatHealthStatusResponse(w io.Writer, sr *models.HealthStatusResponse, printAll, succinct, verbose bool, maxLines int) { +func FormatHealthStatusResponse(w io.Writer, sr *models.HealthStatusResponse, allNodes bool, verbose bool, maxLines int) { var ( - healthy int - localhost *models.NodeStatus + healthy int + localhost *models.NodeStatus + printedLines int ) for _, node := range sr.Nodes { if nodeIsHealthy(node) { @@ -368,37 +411,35 @@ func FormatHealthStatusResponse(w io.Writer, sr *models.HealthStatusResponse, pr localhost = node } } - if succinct { - fmt.Fprintf(w, "Cluster health:\t%d/%d reachable\t(%s)\n", - healthy, len(sr.Nodes), sr.Timestamp) - if printAll || healthy < len(sr.Nodes) { - fmt.Fprintf(w, " Name\tIP\tNode\tEndpoints\n") - } - } else { - fmt.Fprintf(w, "Probe time:\t%s\n", sr.Timestamp) - fmt.Fprintf(w, "Nodes:\n") - } + + fmt.Fprintf(w, "Cluster health:\t%d/%d reachable\t(%s)\n", + healthy, len(sr.Nodes), sr.Timestamp) + + fmt.Fprintf(w, "Name\tIP\tNode\tEndpoints\n") if localhost != nil { - formatNodeStatus(w, localhost, printAll, succinct, verbose, true) - maxLines-- + if formatNodeStatus(w, localhost, allNodes, verbose, true) { + printedLines++ + } } nodes := sr.Nodes sort.Slice(nodes, func(i, j int) bool { return strings.Compare(nodes[i].Name, nodes[j].Name) < 0 }) - for n, node := range nodes { - if maxLines > 0 && n > maxLines { + for _, node := range nodes { + if printedLines == maxLines { break } if node == localhost { continue } - formatNodeStatus(w, node, printAll, succinct, verbose, false) + if formatNodeStatus(w, node, allNodes, verbose, false) { + printedLines++ + } } - if maxLines > 0 && len(sr.Nodes)-healthy > maxLines { - fmt.Fprintf(w, " ...") + if len(sr.Nodes)-printedLines-healthy > 0 { + fmt.Fprintf(w, " ...\n") } } @@ -406,9 +447,9 @@ func FormatHealthStatusResponse(w io.Writer, sr *models.HealthStatusResponse, pr // daemon via the default channel and formats its output as a string to the // writer. // -// 'succinct', 'verbose' and 'maxLines' are handled the same as in +// 'verbose' and 'maxLines' are handled the same as in // FormatHealthStatusResponse(). -func GetAndFormatHealthStatus(w io.Writer, succinct, verbose bool, maxLines int) { +func GetAndFormatHealthStatus(w io.Writer, allNodes bool, verbose bool, maxLines int) { client, err := NewClient("") if err != nil { fmt.Fprintf(w, "Cluster health:\t\t\tClient error: %s\n", err) @@ -420,5 +461,5 @@ func GetAndFormatHealthStatus(w io.Writer, succinct, verbose bool, maxLines int) fmt.Fprintf(w, "Cluster health:\t\t\tWarning\tcilium-health daemon unreachable\n") return } - FormatHealthStatusResponse(w, hr.Payload, verbose, succinct, verbose, maxLines) + FormatHealthStatusResponse(w, hr.Payload, allNodes, verbose, maxLines) } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/health/defaults/defaults.go b/backend/vendor/github.com/cilium/cilium/pkg/health/defaults/defaults.go index d84cecd2c..d58a98e9f 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/health/defaults/defaults.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/health/defaults/defaults.go @@ -20,4 +20,7 @@ const ( // HealthEPName is the name used for the health endpoint, which is also // used by the CLI client to detect when connectivity health is enabled HealthEPName = "cilium-health-ep" + + // PidfilePath + PidfilePath = "health-endpoint.pid" ) diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hive/health/types/types.go b/backend/vendor/github.com/cilium/cilium/pkg/hive/health/types/types.go index 9b346c292..704611896 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hive/health/types/types.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hive/health/types/types.go @@ -31,6 +31,10 @@ func (p pathIdent) String() string { // tables. type HealthID string +func (id HealthID) String() string { + return string(id) +} + // Identifier is a fully qualified, path based identifier for health status // which is made up of module ID and component ID parts. type Identifier struct { @@ -96,6 +100,10 @@ func (s Status) String() string { type Level string +func (s Level) String() string { + return string(s) +} + const ( LevelOK = "OK" LevelDegraded = "Degraded" diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/cluster_name.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/cluster_name.go new file mode 100644 index 000000000..8ac827efa --- /dev/null +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/cluster_name.go @@ -0,0 +1,65 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Hubble + +package filters + +import ( + "context" + "fmt" + + flowpb "github.com/cilium/cilium/api/v1/flow" + v1 "github.com/cilium/cilium/pkg/hubble/api/v1" +) + +func sourceClusterName(ev *v1.Event) string { + return ev.GetFlow().GetSource().GetClusterName() +} + +func destinationClusterName(ev *v1.Event) string { + return ev.GetFlow().GetDestination().GetClusterName() +} + +func filterByClusterName(names []string, getClusterName func(*v1.Event) string) (FilterFunc, error) { + for _, name := range names { + if name == "" { + return nil, fmt.Errorf("invalid filter, name must not be empty") + } + } + + return func(ev *v1.Event) bool { + target := getClusterName(ev) + for _, n := range names { + if n == target { + return true + } + } + + return false + }, nil +} + +// ClusterNameFilter implements filtering based on endpoint cluster name. +type ClusterNameFilter struct{} + +// OnBuildFilter builds a Hubble endpoint cluster name filter. +func (_ *ClusterNameFilter) OnBuildFilter(ctx context.Context, ff *flowpb.FlowFilter) ([]FilterFunc, error) { + var fs []FilterFunc + + if names := ff.GetSourceClusterName(); names != nil { + f, err := filterByClusterName(names, sourceClusterName) + if err != nil { + return nil, err + } + fs = append(fs, f) + } + + if names := ff.GetDestinationClusterName(); names != nil { + f, err := filterByClusterName(names, destinationClusterName) + if err != nil { + return nil, err + } + fs = append(fs, f) + } + + return fs, nil +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/drop_reason_desc.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/drop_reason_desc.go index 8b2022915..c90516397 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/drop_reason_desc.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/drop_reason_desc.go @@ -5,29 +5,24 @@ package filters import ( "context" + "slices" flowpb "github.com/cilium/cilium/api/v1/flow" v1 "github.com/cilium/cilium/pkg/hubble/api/v1" ) -func filterByDropReasonDesc(dropReasons []flowpb.DropReason) (FilterFunc, error) { +func filterByDropReasonDesc(dropReasons []flowpb.DropReason) FilterFunc { return func(ev *v1.Event) bool { flow := ev.GetFlow() if flow == nil { return false } - reasonDesc := flow.GetDropReasonDesc() verdict := flow.GetVerdict() if verdict != flowpb.Verdict_DROPPED { return false } - for _, reason := range dropReasons { - if reason == reasonDesc { - return true - } - } - return false - }, nil + return slices.Contains(dropReasons, flow.GetDropReasonDesc()) + } } type DropReasonDescFilter struct{} @@ -35,11 +30,7 @@ type DropReasonDescFilter struct{} func (f *DropReasonDescFilter) OnBuildFilter(ctx context.Context, ff *flowpb.FlowFilter) ([]FilterFunc, error) { var fs []FilterFunc if ff.GetDropReasonDesc() != nil { - filter, err := filterByDropReasonDesc(ff.GetDropReasonDesc()) - if err != nil { - return nil, err - } - fs = append(fs, filter) + fs = append(fs, filterByDropReasonDesc(ff.GetDropReasonDesc())) } return fs, nil } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/filters.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/filters.go index d50741ad4..06264c424 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/filters.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/filters.go @@ -144,6 +144,7 @@ func DefaultFilters(log logrus.FieldLogger) []OnBuildFilter { &HTTPFilter{}, &TCPFilter{}, &NodeNameFilter{}, + &ClusterNameFilter{}, &IPVersionFilter{}, &TraceIDFilter{}, &TrafficDirectionFilter{}, diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/fqdn.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/fqdn.go index 71cb684e9..4b9a6952f 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/fqdn.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/fqdn.go @@ -7,6 +7,7 @@ import ( "context" "fmt" "regexp" + "slices" flowpb "github.com/cilium/cilium/api/v1/flow" v1 "github.com/cilium/cilium/pkg/hubble/api/v1" @@ -27,18 +28,9 @@ func filterByFQDNs(fqdnPatterns []string, getFQDNs func(*v1.Event) []string) (Fi } return func(ev *v1.Event) bool { - names := getFQDNs(ev) - if len(names) == 0 { - return false - } - - for _, name := range names { - if fqdnRegexp.MatchString(name) { - return true - } - } - - return false + return slices.ContainsFunc(getFQDNs(ev), func(fqdn string) bool { + return fqdnRegexp.MatchString(fqdn) + }) }, nil } @@ -59,12 +51,9 @@ func filterByDNSQueries(queryPatterns []string) (FilterFunc, error) { if dns == nil { return false } - for _, query := range queries { - if query.MatchString(dns.Query) { - return true - } - } - return false + return slices.ContainsFunc(queries, func(query *regexp.Regexp) bool { + return query.MatchString(dns.Query) + }) }, nil } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/http.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/http.go index f6d76dcdc..6a2580943 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/http.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/http.go @@ -9,6 +9,7 @@ import ( "fmt" "net/url" "regexp" + "slices" "strings" flowpb "github.com/cilium/cilium/api/v1/flow" @@ -21,13 +22,9 @@ func httpMatchCompatibleEventFilter(types []*flowpb.EventTypeFilter) bool { return true } - for _, t := range types { - if t.GetType() == api.MessageTypeAccessLog { - return true - } - } - - return false + return slices.ContainsFunc(types, func(t *flowpb.EventTypeFilter) bool { + return t.GetType() == api.MessageTypeAccessLog + }) } var ( @@ -57,18 +54,12 @@ func filterByHTTPStatusCode(statusCodePrefixes []string) (FilterFunc, error) { // Check for both full matches or prefix matches httpStatusCode := fmt.Sprintf("%03d", http.Code) - for _, f := range full { - if httpStatusCode == f { - return true - } - } - for _, p := range prefix { - if strings.HasPrefix(httpStatusCode, p) { - return true - } + if slices.Contains(full, httpStatusCode) { + return true } - - return false + return slices.ContainsFunc(prefix, func(p string) bool { + return strings.HasPrefix(httpStatusCode, p) + }) }, nil } @@ -81,13 +72,9 @@ func filterByHTTPMethods(methods []string) (FilterFunc, error) { return false } - for _, method := range methods { - if strings.EqualFold(http.Method, method) { - return true - } - } - - return false + return slices.ContainsFunc(methods, func(method string) bool { + return strings.EqualFold(http.Method, method) + }) }, nil } @@ -108,13 +95,9 @@ func filterByHTTPUrls(urlRegexpStrs []string) (FilterFunc, error) { return false } - for _, urlRegexp := range urlRegexps { - if urlRegexp.MatchString(http.Url) { - return true - } - } - - return false + return slices.ContainsFunc(urlRegexps, func(urlRegexp *regexp.Regexp) bool { + return urlRegexp.MatchString(http.Url) + }) }, nil } @@ -128,10 +111,10 @@ func filterByHTTPHeaders(headers []*flowpb.HTTPHeader) (FilterFunc, error) { } for _, httpHeader := range http.GetHeaders() { - for _, header := range headers { - if header.Key == httpHeader.Key && header.Value == httpHeader.Value { - return true - } + if slices.ContainsFunc(headers, func(header *flowpb.HTTPHeader) bool { + return header.Key == httpHeader.Key && header.Value == httpHeader.Value + }) { + return true } } @@ -162,13 +145,9 @@ func filterByHTTPPaths(pathRegexpStrs []string) (FilterFunc, error) { // do. return false } - for _, pathRegexp := range pathRegexps { - if pathRegexp.MatchString(uri.Path) { - return true - } - } - - return false + return slices.ContainsFunc(pathRegexps, func(pathRegexp *regexp.Regexp) bool { + return pathRegexp.MatchString(uri.Path) + }) }, nil } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/identity.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/identity.go index 18f4f1248..cd62fddc2 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/identity.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/identity.go @@ -5,6 +5,7 @@ package filters import ( "context" + "slices" flowpb "github.com/cilium/cilium/api/v1/flow" v1 "github.com/cilium/cilium/pkg/hubble/api/v1" @@ -21,11 +22,7 @@ func destinationEndpoint(ev *v1.Event) *flowpb.Endpoint { func filterByIdentity(identities []uint32, getEndpoint func(*v1.Event) *flowpb.Endpoint) FilterFunc { return func(ev *v1.Event) bool { if endpoint := getEndpoint(ev); endpoint != nil { - for _, i := range identities { - if i == endpoint.Identity { - return true - } - } + return slices.Contains(identities, endpoint.Identity) } return false } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/ip.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/ip.go index 5f6354191..7e3af6a38 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/ip.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/ip.go @@ -6,7 +6,8 @@ package filters import ( "context" "fmt" - "net" + "net/netip" + "slices" "strings" flowpb "github.com/cilium/cilium/api/v1/flow" @@ -29,17 +30,18 @@ func filterByIPs(ips []string, getIP func(*v1.Event) string) (FilterFunc, error) // IP filter can either be an exact match (e.g. "1.1.1.1") or a CIDR range // (e.g. "1.1.1.0/24"). Put them into 2 separate lists here. var addresses []string - var cidrs []*net.IPNet + var prefixes []netip.Prefix for _, ip := range ips { if strings.Contains(ip, "/") { - _, ipnet, err := net.ParseCIDR(ip) + prefix, err := netip.ParsePrefix(ip) if err != nil { - return nil, fmt.Errorf("invalid CIDR in filter: %q", ip) + return nil, fmt.Errorf("invalid IP prefix %q in filter: %w", ip, err) } - cidrs = append(cidrs, ipnet) + prefixes = append(prefixes, prefix) } else { - if net.ParseIP(ip) == nil { - return nil, fmt.Errorf("invalid IP address in filter: %q", ip) + _, err := netip.ParseAddr(ip) + if err != nil { + return nil, fmt.Errorf("invalid IP address %q in filter: %w", ip, err) } addresses = append(addresses, ip) } @@ -51,19 +53,18 @@ func filterByIPs(ips []string, getIP func(*v1.Event) string) (FilterFunc, error) return false } - for _, ip := range addresses { - if ip == eventIP { - return true - } + if slices.Contains(addresses, eventIP) { + return true } - if len(cidrs) > 0 { - parsedIP := net.ParseIP(eventIP) - for _, cidr := range cidrs { - if cidr.Contains(parsedIP) { - return true - } + if len(prefixes) > 0 { + addr, err := netip.ParseAddr(eventIP) + if err != nil { + return false } + return slices.ContainsFunc(prefixes, func(prefix netip.Prefix) bool { + return prefix.Contains(addr) + }) } return false @@ -105,20 +106,14 @@ func (f *IPFilter) OnBuildFilter(ctx context.Context, ff *flowpb.FlowFilter) ([] return fs, nil } -func filterByIPVersion(ipver []flowpb.IPVersion) (FilterFunc, error) { +func filterByIPVersion(ipver []flowpb.IPVersion) FilterFunc { return func(ev *v1.Event) bool { flow := ev.GetFlow() if flow == nil { return false } - ver := flow.GetIP().GetIpVersion() - for _, v := range ipver { - if v == ver { - return true - } - } - return false - }, nil + return slices.Contains(ipver, flow.GetIP().GetIpVersion()) + } } // IPVersionFilter implements IP version based filtering @@ -128,12 +123,8 @@ type IPVersionFilter struct{} func (f *IPVersionFilter) OnBuildFilter(ctx context.Context, ff *flowpb.FlowFilter) ([]FilterFunc, error) { var fs []FilterFunc - if ff.GetIpVersion() != nil { - pf, err := filterByIPVersion(ff.GetIpVersion()) - if err != nil { - return nil, err - } - fs = append(fs, pf) + if ipv := ff.GetIpVersion(); ipv != nil { + fs = append(fs, filterByIPVersion(ipv)) } return fs, nil diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/k8s.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/k8s.go index 755e5c1d8..aeeeae6c5 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/k8s.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/k8s.go @@ -6,6 +6,7 @@ package filters import ( "context" "fmt" + "slices" "strings" flowpb "github.com/cilium/cilium/api/v1/flow" @@ -50,13 +51,9 @@ func filterByNamespacedName(names []string, getName func(*v1.Event) (ns, name st return false } - for _, f := range nameFilters { - if (f.prefix == "" || strings.HasPrefix(eventName, f.prefix)) && (f.ns == "" || f.ns == eventNs) { - return true - } - } - - return false + return slices.ContainsFunc(nameFilters, func(f nameFilter) bool { + return (f.prefix == "" || strings.HasPrefix(eventName, f.prefix)) && (f.ns == "" || f.ns == eventNs) + }) }, nil } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/labels.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/labels.go index 26cbb51c6..33474df5e 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/labels.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/labels.go @@ -6,6 +6,7 @@ package filters import ( "context" "fmt" + "slices" flowpb "github.com/cilium/cilium/api/v1/flow" v1 "github.com/cilium/cilium/pkg/hubble/api/v1" @@ -63,12 +64,9 @@ func FilterByLabelSelectors(labelSelectors []string, getLabels func(*v1.Event) k return func(ev *v1.Event) bool { labels := getLabels(ev) - for _, selector := range selectors { - if selector.Matches(labels) { - return true - } - } - return false + return slices.ContainsFunc(selectors, func(selector k8sLabels.Selector) bool { + return selector.Matches(labels) + }) }, nil } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/port.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/port.go index aef4e01ce..15d0e307e 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/port.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/port.go @@ -6,6 +6,7 @@ package filters import ( "context" "fmt" + "slices" "strconv" flowpb "github.com/cilium/cilium/api/v1/flow" @@ -52,11 +53,7 @@ func filterByPort(portStrs []string, getPort func(*v1.Event) (port uint16, ok bo return func(ev *v1.Event) bool { if port, ok := getPort(ev); ok { - for _, p := range ports { - if p == port { - return true - } - } + return slices.Contains(ports, port) } return false }, nil diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/reply.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/reply.go index 457864051..661d7a106 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/reply.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/reply.go @@ -5,6 +5,7 @@ package filters import ( "context" + "slices" flowpb "github.com/cilium/cilium/api/v1/flow" v1 "github.com/cilium/cilium/pkg/hubble/api/v1" @@ -26,12 +27,7 @@ func filterByReplyField(replyParams []bool) FilterFunc { return false } - reply := f.GetIsReply().GetValue() - for _, replyParam := range replyParams { - if reply == replyParam { - return true - } - } + return slices.Contains(replyParams, f.GetIsReply().GetValue()) } return false } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/tracing.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/tracing.go index a5d743805..83b177e15 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/tracing.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/tracing.go @@ -5,6 +5,7 @@ package filters import ( "context" + "slices" flowpb "github.com/cilium/cilium/api/v1/flow" v1 "github.com/cilium/cilium/pkg/hubble/api/v1" @@ -12,13 +13,7 @@ import ( func filterByTraceID(tids []string) FilterFunc { return func(ev *v1.Event) bool { - traceID := ev.GetFlow().GetTraceContext().GetParent().GetTraceId() - for _, tid := range tids { - if tid == traceID { - return true - } - } - return false + return slices.Contains(tids, ev.GetFlow().GetTraceContext().GetParent().GetTraceId()) } } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/traffic_direction.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/traffic_direction.go index e6dd6efc5..599ab1571 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/traffic_direction.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/traffic_direction.go @@ -5,6 +5,7 @@ package filters import ( "context" + "slices" flowpb "github.com/cilium/cilium/api/v1/flow" v1 "github.com/cilium/cilium/pkg/hubble/api/v1" @@ -16,12 +17,7 @@ func filterByTrafficDirection(directions []flowpb.TrafficDirection) FilterFunc { if flow == nil { return false } - for _, d := range directions { - if d == flow.GetTrafficDirection() { - return true - } - } - return false + return slices.Contains(directions, flow.GetTrafficDirection()) } } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/uuid.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/uuid.go index 2fecb080f..3133db8a1 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/uuid.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/uuid.go @@ -5,6 +5,7 @@ package filters import ( "context" + "slices" flowpb "github.com/cilium/cilium/api/v1/flow" v1 "github.com/cilium/cilium/pkg/hubble/api/v1" @@ -16,13 +17,7 @@ func filterByUUID(uuids []string) FilterFunc { if flow == nil { return false } - eid := flow.GetUuid() - for _, id := range uuids { - if id == eid { - return true - } - } - return false + return slices.Contains(uuids, flow.GetUuid()) } } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/verdict.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/verdict.go index 0e8d0acff..639cc610f 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/verdict.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/verdict.go @@ -5,6 +5,7 @@ package filters import ( "context" + "slices" flowpb "github.com/cilium/cilium/api/v1/flow" v1 "github.com/cilium/cilium/pkg/hubble/api/v1" @@ -16,13 +17,7 @@ func filterByVerdicts(vs []flowpb.Verdict) FilterFunc { if flow == nil { return false } - for _, verdict := range vs { - if verdict == flow.GetVerdict() { - return true - } - } - - return false + return slices.Contains(vs, flow.GetVerdict()) } } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/workload.go b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/workload.go index fdbf29f21..f32865380 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/workload.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/hubble/filters/workload.go @@ -5,6 +5,7 @@ package filters import ( "context" + "slices" flowpb "github.com/cilium/cilium/api/v1/flow" v1 "github.com/cilium/cilium/pkg/hubble/api/v1" @@ -13,11 +14,11 @@ import ( func filterByWorkload(wf []*flowpb.Workload, getEndpoint func(*v1.Event) *flowpb.Endpoint) FilterFunc { return func(ev *v1.Event) bool { for _, w := range getEndpoint(ev).GetWorkloads() { - for _, f := range wf { - if (f.GetName() == "" || f.GetName() == w.GetName()) && - (f.GetKind() == "" || f.GetKind() == w.GetKind()) { - return true - } + if slices.ContainsFunc(wf, func(f *flowpb.Workload) bool { + return (f.GetName() == "" || f.GetName() == w.GetName()) && + (f.GetKind() == "" || f.GetKind() == w.GetKind()) + }) { + return true } } return false diff --git a/backend/vendor/github.com/cilium/cilium/pkg/inctimer/inctimer.go b/backend/vendor/github.com/cilium/cilium/pkg/inctimer/inctimer.go deleted file mode 100644 index 072c02a56..000000000 --- a/backend/vendor/github.com/cilium/cilium/pkg/inctimer/inctimer.go +++ /dev/null @@ -1,80 +0,0 @@ -// SPDX-License-Identifier: Apache-2.0 -// Copyright Authors of Cilium - -package inctimer - -import "time" - -// IncTimer should be the preferred mechanism over -// calling `time.After` when wanting an `After`-like -// function in a loop. This prevents memory build up -// as the `time.After` method creates a new timer -// instance every time it is called, and it is not -// garbage collected until after it fires. Conversely, -// IncTimer only uses one timer and correctly stops -// the timer, clears its channel, and resets it -// everytime that `After` is called. -type IncTimer interface { - After(time.Duration) <-chan time.Time -} - -type incTimer struct { - t *time.Timer -} - -// New creates a new IncTimer and a done function. -// IncTimer only uses one timer and correctly stops -// the timer, clears the channel, and resets it every -// time the `After` function is called. -// WARNING: Concurrent use is not expected. The use -// of this timer should be for only one goroutine. -func New() (IncTimer, func() bool) { - it := &incTimer{} - return it, it.stop -} - -// stop returns true if a scheduled timer has been stopped before execution. -func (it *incTimer) stop() bool { - if it.t == nil { - return false - } - return it.t.Stop() -} - -// After returns a channel that will fire after -// the specified duration. -func (it *incTimer) After(d time.Duration) <-chan time.Time { - // Stop the previous timer (if any) to garbage collect it. - // The old timer channel will be garbage collected even if not drained. - it.stop() - - // We have to create a new timer for each invocation, because it is not - // possible to safely use https://golang.org/pkg/time/#Timer.Reset if we - // do not know if the timer channel has already been drained or not (which - // is the case here, as the client might have drained the channel already). - // Even after stopping a timer, it's not safe to attempt to drain its - // timer channel with a default case (for the case where the client has - // drained the channel already), as there is a small window where a timer - // is considered expired, but the channel has not received a value yet [1]. - // This would cause us to erroneously take the default case (assuming the - // channel has been drained by the client), when in fact the channel just - // has not received a value yet. Because the two cases (client has drained - // vs. value not received yet) are indistinguishable for us, we cannot use - // Timer.Reset and need to create a new timer. - // - // [1] The reason why this small window occurs, is because the Go runtime - // will remove a timer from the heap and and mark it as deleted _before_ - // it actually executes the timer function f: - // https://github.com/golang/go/blob/go1.16/src/runtime/time.go#L876 - // This causes t.Stop to report the timer as already expired while it is - // in fact currently running: - // https://github.com/golang/go/blob/go1.16/src/runtime/time.go#L352 - it.t = time.NewTimer(d) - return it.t.C -} - -// After wraps the time.After function to get around the /timeafter linter -// warning for cases where it is inconvenient to use the instantiated version. -func After(d time.Duration) <-chan time.Time { - return time.After(d) -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/ip/cidr.go b/backend/vendor/github.com/cilium/cilium/pkg/ip/cidr.go index eae17bc5f..93481dae6 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/ip/cidr.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/ip/cidr.go @@ -6,6 +6,8 @@ package ip import ( "net" "net/netip" + + "go4.org/netipx" ) // ParseCIDRs fetches all CIDRs referred to by the specified slice and returns @@ -57,26 +59,27 @@ func ParsePrefixes(cidrs []string) (valid []netip.Prefix, invalid []string, erro return valid, invalid, errors } -// AddrToIPNet is a convenience helper to convert a netip.Addr to a *net.IPNet -// with a mask corresponding to the addresses's bit length. -func AddrToIPNet(addr netip.Addr) *net.IPNet { - if !addr.IsValid() { - return nil - } - return &net.IPNet{ - IP: addr.AsSlice(), - Mask: net.CIDRMask(addr.BitLen(), addr.BitLen()), - } -} - // IPToNetPrefix is a convenience helper for migrating from the older 'net' // standard library types to the newer 'netip' types. Use this to plug the new // types in newer code into older types in older code during the migration. // // Note: This function assumes given ip is not an IPv4 mapped IPv6 address. -// See the comment of AddrFromIP for more details. +// +// The problem behind this is that when we convert the IPv4 net.IP address with +// netip.AddrFromSlice, the address is interpreted as an IPv4 mapped IPv6 address in some +// cases. +// +// For example, when we do netip.AddrFromSlice(net.ParseIP("1.1.1.1")), it is interpreted +// as an IPv6 address "::ffff:1.1.1.1". This is because 1) net.IP created with +// net.ParseIP(IPv4 string) holds IPv4 address as an IPv4 mapped IPv6 address internally +// and 2) netip.AddrFromSlice recognizes address family with length of the slice (4-byte = +// IPv4 and 16-byte = IPv6). +// +// By using netipx.FromStdIP, we can preserve the address family, but since we cannot distinguish +// IPv4 and IPv4 mapped IPv6 address only from net.IP value (see #37921 on golang/go) we +// need an assumption that given net.IP is not an IPv4 mapped IPv6 address. func IPToNetPrefix(ip net.IP) netip.Prefix { - a, ok := AddrFromIP(ip) + a, ok := netipx.FromStdIP(ip) if !ok { return netip.Prefix{} } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/ip/ip.go b/backend/vendor/github.com/cilium/cilium/pkg/ip/ip.go index 3c9adcb1f..7f457f340 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/ip/ip.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/ip/ip.go @@ -9,9 +9,10 @@ import ( "math/big" "net" "net/netip" + "slices" "sort" - "github.com/cilium/cilium/pkg/slices" + "go4.org/netipx" ) const ( @@ -305,7 +306,7 @@ func PrefixToIps(prefixCidr string, maxIPs int) ([]string, error) { } netWithRange := ipNetToRange(*ipNet) // Ensure last IP in the prefix is included - for ip := *netWithRange.First; len(prefixIps) < maxIPs || maxIPs == 0; ip = GetNextIP(ip) { + for ip := *netWithRange.First; len(prefixIps) < maxIPs || maxIPs == 0; ip = getNextIP(ip) { prefixIps = append(prefixIps, ip.String()) if ip.Equal(*netWithRange.Last) { break @@ -368,9 +369,9 @@ func getPreviousIP(ip net.IP) net.IP { return previousIP } -// GetNextIP returns the next IP from the given IP address. If the given IP is +// getNextIP returns the next IP from the given IP address. If the given IP is // the last IP of a v4 or v6 range, the same IP is returned. -func GetNextIP(ip net.IP) net.IP { +func getNextIP(ip net.IP) net.IP { if ip.Equal(upperIPv4) || ip.Equal(upperIPv6) { return ip } @@ -595,7 +596,7 @@ func rangeToCIDRs(firstIP, lastIP net.IP) []*net.IPNet { if bytes.Compare(*lastIPSpanning, lastIP) > 0 { // Split on the next IP of the last IP so that the left list of IPs // of the partition include the lastIP. - nextFirstRangeIP := GetNextIP(lastIP) + nextFirstRangeIP := getNextIP(lastIP) var bitLen int if nextFirstRangeIP.To4() != nil { bitLen = ipv4BitLen @@ -751,15 +752,8 @@ func PartitionCIDR(targetCIDR net.IPNet, excludeCIDR net.IPNet) ([]*net.IPNet, [ // netip.Addr.Compare (i.e. IPv4 addresses show up before IPv6). // The slice is manipulated in-place destructively; it does not create a new slice. func KeepUniqueAddrs(addrs []netip.Addr) []netip.Addr { - return slices.SortedUniqueFunc( - addrs, - func(i, j int) bool { - return addrs[i].Compare(addrs[j]) < 0 - }, - func(a, b netip.Addr) bool { - return a == b - }, - ) + SortAddrList(addrs) + return slices.Compact(addrs) } var privateIPBlocks []*net.IPNet @@ -845,15 +839,11 @@ func ListContainsIP(ipList []net.IP, ip net.IP) bool { // SortIPList sorts the provided net.IP slice in place. func SortIPList(ipList []net.IP) { - sort.Slice(ipList, func(i, j int) bool { - return bytes.Compare(ipList[i], ipList[j]) < 0 - }) + slices.SortFunc(ipList, func(a, b net.IP) int { return bytes.Compare(a, b) }) } func SortAddrList(ipList []netip.Addr) { - sort.Slice(ipList, func(i, j int) bool { - return ipList[i].Compare(ipList[j]) < 0 - }) + slices.SortFunc(ipList, netip.Addr.Compare) } // getSortedIPList returns a new net.IP slice in which the IPs are sorted. @@ -899,48 +889,13 @@ func GetIPFromListByFamily(ipList []net.IP, v4Family bool) net.IP { return nil } -// AddrFromIP converts a net.IP to netip.Addr using netip.AddrFromSlice, but preserves -// the original address family. It assumes given net.IP is not an IPv4 mapped IPv6 -// address. -// -// The problem behind this is that when we convert the IPv4 net.IP address with -// netip.AddrFromSlice, the address is interpreted as an IPv4 mapped IPv6 address in some -// cases. -// -// For example, when we do netip.AddrFromSlice(net.ParseIP("1.1.1.1")), it is interpreted -// as an IPv6 address "::ffff:1.1.1.1". This is because 1) net.IP created with -// net.ParseIP(IPv4 string) holds IPv4 address as an IPv4 mapped IPv6 address internally -// and 2) netip.AddrFromSlice recognizes address family with length of the slice (4-byte = -// IPv4 and 16-byte = IPv6). -// -// By using AddrFromIP, we can preserve the address family, but since we cannot distinguish -// IPv4 and IPv4 mapped IPv6 address only from net.IP value (see #37921 on golang/go) we -// need an assumption that given net.IP is not an IPv4 mapped IPv6 address. -func AddrFromIP(ip net.IP) (netip.Addr, bool) { - addr, ok := netip.AddrFromSlice(ip) - if !ok { - return addr, ok - } - return addr.Unmap(), ok -} - -// MustAddrFromIP is the same as AddrFromIP except that it assumes the input is -// a valid IP address and always returns a valid netip.Addr. -func MustAddrFromIP(ip net.IP) netip.Addr { - addr, ok := AddrFromIP(ip) - if !ok { - panic("addr is not a valid IP address") - } - return addr -} - // MustAddrsFromIPs converts a slice of net.IP to a slice of netip.Addr. It assumes // the input slice contains only valid IP addresses and always returns a slice // containing valid netip.Addr. func MustAddrsFromIPs(ips []net.IP) []netip.Addr { addrs := make([]netip.Addr, 0, len(ips)) for _, ip := range ips { - addrs = append(addrs, MustAddrFromIP(ip)) + addrs = append(addrs, netipx.MustFromStdIP(ip)) } return addrs } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/ipam/types/types.go b/backend/vendor/github.com/cilium/cilium/pkg/ipam/types/types.go index 81c6e5ebc..5f938642e 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/ipam/types/types.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/ipam/types/types.go @@ -178,6 +178,13 @@ type IPAMSpec struct { // // +kubebuilder:validation:Minimum=0 MaxAboveWatermark int `json:"max-above-watermark,omitempty"` + + // StaticIPTags are used to determine the pool of IPs from which to + // attribute a static IP to the node. For example in AWS this is used to + // filter Elastic IP Addresses. + // + // +optional + StaticIPTags map[string]string `json:"static-ip-tags,omitempty"` } // IPReleaseStatus defines the valid states in IP release handshake @@ -230,6 +237,11 @@ type IPAMStatus struct { // // +optional ReleaseIPv6s map[string]IPReleaseStatus `json:"release-ipv6s,omitempty"` + + // AssignedStaticIP is the static IP assigned to the node (ex: public Elastic IP address in AWS) + // + // +optional + AssignedStaticIP string `json:"assigned-static-ip,omitempty"` } // IPAMPoolRequest is a request from the agent to the operator, indicating how diff --git a/backend/vendor/github.com/cilium/cilium/pkg/ipam/types/zz_generated.deepcopy.go b/backend/vendor/github.com/cilium/cilium/pkg/ipam/types/zz_generated.deepcopy.go index fb9303d76..b0af2cd05 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/ipam/types/zz_generated.deepcopy.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/ipam/types/zz_generated.deepcopy.go @@ -151,6 +151,13 @@ func (in *IPAMSpec) DeepCopyInto(out *IPAMSpec) { *out = make([]string, len(*in)) copy(*out, *in) } + if in.StaticIPTags != nil { + in, out := &in.StaticIPTags, &out.StaticIPTags + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } return } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/ipam/types/zz_generated.deepequal.go b/backend/vendor/github.com/cilium/cilium/pkg/ipam/types/zz_generated.deepequal.go index cc2d82b01..d0065ee54 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/ipam/types/zz_generated.deepequal.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/ipam/types/zz_generated.deepequal.go @@ -211,6 +211,26 @@ func (in *IPAMSpec) DeepEqual(other *IPAMSpec) bool { if in.MaxAboveWatermark != other.MaxAboveWatermark { return false } + if ((in.StaticIPTags != nil) && (other.StaticIPTags != nil)) || ((in.StaticIPTags == nil) != (other.StaticIPTags == nil)) { + in, other := &in.StaticIPTags, &other.StaticIPTags + if other == nil { + return false + } + + if len(*in) != len(*other) { + return false + } else { + for key, inValue := range *in { + if otherValue, present := (*other)[key]; !present { + return false + } else { + if inValue != otherValue { + return false + } + } + } + } + } return true } @@ -289,6 +309,10 @@ func (in *IPAMStatus) DeepEqual(other *IPAMStatus) bool { } } + if in.AssignedStaticIP != other.AssignedStaticIP { + return false + } + return true } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/register.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/register.go index 6ee29a1f8..2e1d9f740 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/register.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/register.go @@ -15,5 +15,5 @@ const ( // // Maintainers: Run ./Documentation/check-crd-compat-table.sh for each release // Developers: Bump patch for each change in the CRD schema. - CustomResourceDefinitionSchemaVersion = "1.29.14" + CustomResourceDefinitionSchemaVersion = "1.30.8" ) diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/utils/utils.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/utils/utils.go index a0ea8b57a..b88ddedad 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/utils/utils.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/utils/utils.go @@ -203,7 +203,9 @@ func parseToCiliumEgressCommonRule(namespace string, es api.EndpointSelector, eg if egr.ToEndpoints != nil { retRule.ToEndpoints = make([]api.EndpointSelector, len(egr.ToEndpoints)) for j, ep := range egr.ToEndpoints { - retRule.ToEndpoints[j] = getEndpointSelector(namespace, ep.LabelSelector, true, matchesInit) + endpointSelector := getEndpointSelector(namespace, ep.LabelSelector, true, matchesInit) + endpointSelector.Generated = ep.Generated + retRule.ToEndpoints[j] = endpointSelector } } @@ -326,7 +328,9 @@ func ParseToCiliumRule(namespace, name string, uid types.UID, r *api.Rule) *api. retRule.EndpointSelector = api.NewESFromK8sLabelSelector("", r.EndpointSelector.LabelSelector) // The PodSelector should only reflect to the same namespace // the policy is being stored, thus we add the namespace to - // the MatchLabels map. + // the MatchLabels map. Additionally, Policy repository relies + // on this fact to properly choose correct network policies for + // a given Security Identity. // // Policies applying to all namespaces are a special case. // Such policies can match on any traffic from Pods or Nodes, diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/ccnp_types.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/ccnp_types.go index 6c5d301ae..36f8e6282 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/ccnp_types.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/ccnp_types.go @@ -18,6 +18,7 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +deepequal-gen:private-method=true // +kubebuilder:resource:categories={cilium,ciliumpolicy},singular="ciliumclusterwidenetworkpolicy",path="ciliumclusterwidenetworkpolicies",scope="Cluster",shortName={ccnp} +// +kubebuilder:printcolumn:JSONPath=".status.conditions[?(@.type=='Valid')].status",name="Valid",type=string // +kubebuilder:subresource:status // +kubebuilder:storageversion diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/cec_types.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/cec_types.go index d3c92508b..e672fbb31 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/cec_types.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/cec_types.go @@ -15,6 +15,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" slim_metav1 "github.com/cilium/cilium/pkg/k8s/slim/k8s/apis/meta/v1" + "github.com/cilium/cilium/pkg/loadbalancer" "github.com/cilium/cilium/pkg/option" ) @@ -104,6 +105,13 @@ type Service struct { Ports []string `json:"number,omitempty"` } +func (l *Service) ServiceName() loadbalancer.ServiceName { + return loadbalancer.ServiceName{ + Namespace: l.Namespace, + Name: l.Name, + } +} + type ServiceListener struct { // Name is the name of a destination Kubernetes service that identifies traffic // to be redirected. @@ -135,6 +143,13 @@ type ServiceListener struct { Listener string `json:"listener"` } +func (l *ServiceListener) ServiceName() loadbalancer.ServiceName { + return loadbalancer.ServiceName{ + Namespace: l.Namespace, + Name: l.Name, + } +} + // +kubebuilder:pruning:PreserveUnknownFields type XDSResource struct { *anypb.Any `json:"-"` diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/cegp_types.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/cegp_types.go index 0f46e1d98..29e040820 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/cegp_types.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/cegp_types.go @@ -115,4 +115,8 @@ type EgressRule struct { // This is a label selector which selects Pods. This field follows standard label // selector semantics; if present but empty, it selects all pods. PodSelector *slimv1.LabelSelector `json:"podSelector,omitempty"` + + // This is a label selector which selects Pods by Node. This field follows standard label + // selector semantics; if present but empty, it selects all nodes. + NodeSelector *slimv1.LabelSelector `json:"nodeSelector,omitempty"` } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/cnp_types.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/cnp_types.go index 068532594..a3210aff3 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/cnp_types.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/cnp_types.go @@ -23,6 +23,7 @@ import ( // +deepequal-gen:private-method=true // +kubebuilder:resource:categories={cilium,ciliumpolicy},singular="ciliumnetworkpolicy",path="ciliumnetworkpolicies",scope="Namespaced",shortName={cnp,ciliumnp} // +kubebuilder:printcolumn:JSONPath=".metadata.creationTimestamp",name="Age",type=date +// +kubebuilder:printcolumn:JSONPath=".status.conditions[?(@.type=='Valid')].status",name="Valid",type=string // +kubebuilder:subresource:status // +kubebuilder:storageversion diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/types.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/types.go index 7e0641258..d07a0a8a6 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/types.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/types.go @@ -24,7 +24,6 @@ import ( // +kubebuilder:printcolumn:JSONPath=".status.identity.id",description="Security Identity",name="Security Identity",type=integer // +kubebuilder:printcolumn:JSONPath=".status.policy.ingress.state",description="Ingress enforcement in the endpoint",name="Ingress Enforcement",type=string,priority=1 // +kubebuilder:printcolumn:JSONPath=".status.policy.egress.state",description="Egress enforcement in the endpoint",name="Egress Enforcement",type=string,priority=1 -// +kubebuilder:printcolumn:JSONPath=".status.visibility-policy-status",description="Status of visibility policy in the endpoint",name="Visibility Policy",type=string,priority=1 // +kubebuilder:printcolumn:JSONPath=".status.state",description="Endpoint current state",name="Endpoint State",type=string // +kubebuilder:printcolumn:JSONPath=".status.networking.addressing[0].ipv4",description="Endpoint IPv4 address",name="IPv4",type=string // +kubebuilder:printcolumn:JSONPath=".status.networking.addressing[0].ipv6",description="Endpoint IPv6 address",name="IPv6",type=string @@ -77,8 +76,6 @@ type EndpointStatus struct { Policy *EndpointPolicy `json:"policy,omitempty"` - VisibilityPolicyStatus *string `json:"visibility-policy-status,omitempty"` - // State is the state of the endpoint. // // +kubebuilder:validation:Enum=creating;waiting-for-identity;not-ready;waiting-to-regenerate;regenerating;restoring;ready;disconnecting;disconnected;invalid diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/zz_generated.deepcopy.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/zz_generated.deepcopy.go index 029eeacec..7e8f28857 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/zz_generated.deepcopy.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/zz_generated.deepcopy.go @@ -1009,6 +1009,11 @@ func (in *EgressRule) DeepCopyInto(out *EgressRule) { *out = new(v1.LabelSelector) (*in).DeepCopyInto(*out) } + if in.NodeSelector != nil { + in, out := &in.NodeSelector, &out.NodeSelector + *out = new(v1.LabelSelector) + (*in).DeepCopyInto(*out) + } return } @@ -1203,11 +1208,6 @@ func (in *EndpointStatus) DeepCopyInto(out *EndpointStatus) { *out = new(EndpointPolicy) (*in).DeepCopyInto(*out) } - if in.VisibilityPolicyStatus != nil { - in, out := &in.VisibilityPolicyStatus, &out.VisibilityPolicyStatus - *out = new(string) - **out = **in - } if in.NamedPorts != nil { in, out := &in.NamedPorts, &out.NamedPorts *out = make(models.NamedPorts, len(*in)) diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/zz_generated.deepequal.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/zz_generated.deepequal.go index c0727c305..cd7547623 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/zz_generated.deepequal.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2/zz_generated.deepequal.go @@ -704,6 +704,14 @@ func (in *EgressRule) DeepEqual(other *EgressRule) bool { } } + if (in.NodeSelector == nil) != (other.NodeSelector == nil) { + return false + } else if in.NodeSelector != nil { + if !in.NodeSelector.DeepEqual(other.NodeSelector) { + return false + } + } + return true } @@ -921,14 +929,6 @@ func (in *EndpointStatus) DeepEqual(other *EndpointStatus) bool { } } - if (in.VisibilityPolicyStatus == nil) != (other.VisibilityPolicyStatus == nil) { - return false - } else if in.VisibilityPolicyStatus != nil { - if *in.VisibilityPolicyStatus != *other.VisibilityPolicyStatus { - return false - } - } - if in.State != other.State { return false } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_cluster_types.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_cluster_types.go index dad7bb87f..781ce5198 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_cluster_types.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_cluster_types.go @@ -14,6 +14,7 @@ import ( // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:resource:categories={cilium,ciliumbgp},singular="ciliumbgpclusterconfig",path="ciliumbgpclusterconfigs",scope="Cluster",shortName={cbgpcluster} // +kubebuilder:printcolumn:JSONPath=".metadata.creationTimestamp",name="Age",type=date +// +kubebuilder:subresource:status // +kubebuilder:storageversion // CiliumBGPClusterConfig is the Schema for the CiliumBGPClusterConfig API @@ -25,6 +26,11 @@ type CiliumBGPClusterConfig struct { // Spec defines the desired cluster configuration of the BGP control plane. Spec CiliumBGPClusterConfigSpec `json:"spec"` + + // Status is a running status of the cluster configuration + // + // +kubebuilder:validation:Optional + Status CiliumBGPClusterConfigStatus `json:"status"` } // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object @@ -102,9 +108,13 @@ type CiliumBGPPeer struct { // PeerASN is the ASN of the peer BGP router. // Supports extended 32bit ASNs. // + // If peerASN is 0, the BGP OPEN message validation of ASN will be disabled and + // ASN will be determined based on peer's OPEN message. + // // +kubebuilder:validation:Optional - // +kubebuilder:validation:Minimum=1 + // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Maximum=4294967295 + // +kubebuilder:default=0 PeerASN *int64 `json:"peerASN,omitempty"` // PeerConfigRef is a reference to a peer configuration resource. @@ -136,3 +146,30 @@ type PeerConfigReference struct { // +kubebuilder:validation:Required Name string `json:"name"` } + +type CiliumBGPClusterConfigStatus struct { + // The current conditions of the CiliumBGPClusterConfig + // + // +optional + // +listType=map + // +listMapKey=type + // +deepequal-gen=false + Conditions []metav1.Condition `json:"conditions,omitempty"` +} + +// Conditions for CiliumBGPClusterConfig. When you add a new condition, don't +// forget to update the AllBGPClusterConfigConditions list as well. +const ( + // Node selector selects nothing + BGPClusterConfigConditionNoMatchingNode = "cilium.io/NoMatchingNode" + // Referenced peer configs are missing + BGPClusterConfigConditionMissingPeerConfigs = "cilium.io/MissingPeerConfigs" + // ClusterConfig with conflicting nodeSelector present + BGPClusterConfigConditionConflictingClusterConfigs = "cilium.io/ConflictingClusterConfig" +) + +var AllBGPClusterConfigConditions = []string{ + BGPClusterConfigConditionNoMatchingNode, + BGPClusterConfigConditionMissingPeerConfigs, + BGPClusterConfigConditionConflictingClusterConfigs, +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_node_types.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_node_types.go index 2d7477fe1..06cf9071f 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_node_types.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_node_types.go @@ -115,7 +115,7 @@ type CiliumBGPNodePeer struct { // Supports extended 32bit ASNs // // +kubebuilder:validation:Optional - // +kubebuilder:validation:Minimum=1 + // +kubebuilder:validation:Minimum=0 // +kubebuilder:validation:Maximum=4294967295 PeerASN *int64 `json:"peerASN,omitempty"` diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_peer_types.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_peer_types.go index dc4cdb033..752e7b38c 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_peer_types.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/bgp_peer_types.go @@ -28,6 +28,7 @@ type CiliumBGPPeerConfigList struct { // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object // +kubebuilder:resource:categories={cilium,ciliumbgp},singular="ciliumbgppeerconfig",path="ciliumbgppeerconfigs",scope="Cluster",shortName={cbgppeer} // +kubebuilder:printcolumn:JSONPath=".metadata.creationTimestamp",name="Age",type=date +// +kubebuilder:subresource:status // +kubebuilder:storageversion type CiliumBGPPeerConfig struct { @@ -38,6 +39,11 @@ type CiliumBGPPeerConfig struct { // Spec is the specification of the desired behavior of the CiliumBGPPeerConfig. Spec CiliumBGPPeerConfigSpec `json:"spec"` + + // Status is the running status of the CiliumBGPPeerConfig + // + // +kubebuilder:validation:Optional + Status CiliumBGPPeerConfigStatus `json:"status"` } type CiliumBGPPeerConfigSpec struct { @@ -92,6 +98,27 @@ type CiliumBGPPeerConfigSpec struct { Families []CiliumBGPFamilyWithAdverts `json:"families,omitempty"` } +type CiliumBGPPeerConfigStatus struct { + // The current conditions of the CiliumBGPPeerConfig + // + // +optional + // +listType=map + // +listMapKey=type + // +deepequal-gen=false + Conditions []metav1.Condition `json:"conditions,omitempty"` +} + +// Conditions for CiliumBGPPeerConfig. When you add a new condition, don't +// forget to to update the below AllBGPPeerConfigConditions list as well. +const ( + // Referenced auth secret is missing + BGPPeerConfigConditionMissingAuthSecret = "cilium.io/MissingAuthSecret" +) + +var AllBGPPeerConfigConditions = []string{ + BGPPeerConfigConditionMissingAuthSecret, +} + // CiliumBGPFamily represents a AFI/SAFI address family pair. type CiliumBGPFamily struct { // Afi is the Address Family Identifier (AFI) of the family. diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepcopy.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepcopy.go index 0b0bf728d..ad712afe2 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepcopy.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepcopy.go @@ -241,6 +241,7 @@ func (in *CiliumBGPClusterConfig) DeepCopyInto(out *CiliumBGPClusterConfig) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } @@ -323,6 +324,29 @@ func (in *CiliumBGPClusterConfigSpec) DeepCopy() *CiliumBGPClusterConfigSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CiliumBGPClusterConfigStatus) DeepCopyInto(out *CiliumBGPClusterConfigStatus) { + *out = *in + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]metav1.Condition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CiliumBGPClusterConfigStatus. +func (in *CiliumBGPClusterConfigStatus) DeepCopy() *CiliumBGPClusterConfigStatus { + if in == nil { + return nil + } + out := new(CiliumBGPClusterConfigStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CiliumBGPFamily) DeepCopyInto(out *CiliumBGPFamily) { *out = *in @@ -935,6 +959,7 @@ func (in *CiliumBGPPeerConfig) DeepCopyInto(out *CiliumBGPPeerConfig) { out.TypeMeta = in.TypeMeta in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) return } @@ -1037,6 +1062,29 @@ func (in *CiliumBGPPeerConfigSpec) DeepCopy() *CiliumBGPPeerConfigSpec { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CiliumBGPPeerConfigStatus) DeepCopyInto(out *CiliumBGPPeerConfigStatus) { + *out = *in + if in.Conditions != nil { + in, out := &in.Conditions, &out.Conditions + *out = make([]metav1.Condition, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CiliumBGPPeerConfigStatus. +func (in *CiliumBGPPeerConfigStatus) DeepCopy() *CiliumBGPPeerConfigStatus { + if in == nil { + return nil + } + out := new(CiliumBGPPeerConfigStatus) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CiliumBGPPeeringPolicy) DeepCopyInto(out *CiliumBGPPeeringPolicy) { *out = *in diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepequal.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepequal.go index 2bb8aced3..cca99d9ae 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepequal.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1/zz_generated.deepequal.go @@ -243,6 +243,10 @@ func (in *CiliumBGPClusterConfig) DeepEqual(other *CiliumBGPClusterConfig) bool return false } + if !in.Status.DeepEqual(&other.Status) { + return false + } + return true } @@ -281,6 +285,16 @@ func (in *CiliumBGPClusterConfigSpec) DeepEqual(other *CiliumBGPClusterConfigSpe return true } +// DeepEqual is an autogenerated deepequal function, deeply comparing the +// receiver with other. in must be non-nil. +func (in *CiliumBGPClusterConfigStatus) DeepEqual(other *CiliumBGPClusterConfigStatus) bool { + if other == nil { + return false + } + + return true +} + // DeepEqual is an autogenerated deepequal function, deeply comparing the // receiver with other. in must be non-nil. func (in *CiliumBGPFamily) DeepEqual(other *CiliumBGPFamily) bool { @@ -960,6 +974,10 @@ func (in *CiliumBGPPeerConfig) DeepEqual(other *CiliumBGPPeerConfig) bool { return false } + if !in.Status.DeepEqual(&other.Status) { + return false + } + return true } @@ -1030,6 +1048,16 @@ func (in *CiliumBGPPeerConfigSpec) DeepEqual(other *CiliumBGPPeerConfigSpec) boo return true } +// DeepEqual is an autogenerated deepequal function, deeply comparing the +// receiver with other. in must be non-nil. +func (in *CiliumBGPPeerConfigStatus) DeepEqual(other *CiliumBGPPeerConfigStatus) bool { + if other == nil { + return false + } + + return true +} + // DeepEqual is an autogenerated deepequal function, deeply comparing the // receiver with other. in must be non-nil. func (in *CiliumBGPPeeringPolicy) DeepEqual(other *CiliumBGPPeeringPolicy) bool { diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/clientset.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/clientset.go index 720686010..bd6b644e1 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/clientset.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/clientset.go @@ -6,8 +6,8 @@ package versioned import ( - "fmt" - "net/http" + fmt "fmt" + http "net/http" ciliumv2 "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2" ciliumv2alpha1 "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1" diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/cilium.io_client.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/cilium.io_client.go index cb6567440..c079fb85d 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/cilium.io_client.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/cilium.io_client.go @@ -6,10 +6,10 @@ package v2 import ( - "net/http" + http "net/http" - v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" - "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" + ciliumiov2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" + scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) @@ -122,10 +122,10 @@ func New(c rest.Interface) *CiliumV2Client { } func setConfigDefaults(config *rest.Config) error { - gv := v2.SchemeGroupVersion + gv := ciliumiov2.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() + config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion() if config.UserAgent == "" { config.UserAgent = rest.DefaultKubernetesUserAgent() diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumclusterwideenvoyconfig.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumclusterwideenvoyconfig.go index cf8eecec3..4e5007ef7 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumclusterwideenvoyconfig.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumclusterwideenvoyconfig.go @@ -6,15 +6,14 @@ package v2 import ( - "context" - "time" + context "context" - v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" + ciliumiov2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumClusterwideEnvoyConfigsGetter has a method to return a CiliumClusterwideEnvoyConfigInterface. @@ -25,131 +24,34 @@ type CiliumClusterwideEnvoyConfigsGetter interface { // CiliumClusterwideEnvoyConfigInterface has methods to work with CiliumClusterwideEnvoyConfig resources. type CiliumClusterwideEnvoyConfigInterface interface { - Create(ctx context.Context, ciliumClusterwideEnvoyConfig *v2.CiliumClusterwideEnvoyConfig, opts v1.CreateOptions) (*v2.CiliumClusterwideEnvoyConfig, error) - Update(ctx context.Context, ciliumClusterwideEnvoyConfig *v2.CiliumClusterwideEnvoyConfig, opts v1.UpdateOptions) (*v2.CiliumClusterwideEnvoyConfig, error) + Create(ctx context.Context, ciliumClusterwideEnvoyConfig *ciliumiov2.CiliumClusterwideEnvoyConfig, opts v1.CreateOptions) (*ciliumiov2.CiliumClusterwideEnvoyConfig, error) + Update(ctx context.Context, ciliumClusterwideEnvoyConfig *ciliumiov2.CiliumClusterwideEnvoyConfig, opts v1.UpdateOptions) (*ciliumiov2.CiliumClusterwideEnvoyConfig, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2.CiliumClusterwideEnvoyConfig, error) - List(ctx context.Context, opts v1.ListOptions) (*v2.CiliumClusterwideEnvoyConfigList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2.CiliumClusterwideEnvoyConfig, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2.CiliumClusterwideEnvoyConfigList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumClusterwideEnvoyConfig, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2.CiliumClusterwideEnvoyConfig, err error) CiliumClusterwideEnvoyConfigExpansion } // ciliumClusterwideEnvoyConfigs implements CiliumClusterwideEnvoyConfigInterface type ciliumClusterwideEnvoyConfigs struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2.CiliumClusterwideEnvoyConfig, *ciliumiov2.CiliumClusterwideEnvoyConfigList] } // newCiliumClusterwideEnvoyConfigs returns a CiliumClusterwideEnvoyConfigs func newCiliumClusterwideEnvoyConfigs(c *CiliumV2Client) *ciliumClusterwideEnvoyConfigs { return &ciliumClusterwideEnvoyConfigs{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2.CiliumClusterwideEnvoyConfig, *ciliumiov2.CiliumClusterwideEnvoyConfigList]( + "ciliumclusterwideenvoyconfigs", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2.CiliumClusterwideEnvoyConfig { return &ciliumiov2.CiliumClusterwideEnvoyConfig{} }, + func() *ciliumiov2.CiliumClusterwideEnvoyConfigList { + return &ciliumiov2.CiliumClusterwideEnvoyConfigList{} + }, + ), } } - -// Get takes name of the ciliumClusterwideEnvoyConfig, and returns the corresponding ciliumClusterwideEnvoyConfig object, and an error if there is any. -func (c *ciliumClusterwideEnvoyConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.CiliumClusterwideEnvoyConfig, err error) { - result = &v2.CiliumClusterwideEnvoyConfig{} - err = c.client.Get(). - Resource("ciliumclusterwideenvoyconfigs"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumClusterwideEnvoyConfigs that match those selectors. -func (c *ciliumClusterwideEnvoyConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v2.CiliumClusterwideEnvoyConfigList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2.CiliumClusterwideEnvoyConfigList{} - err = c.client.Get(). - Resource("ciliumclusterwideenvoyconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumClusterwideEnvoyConfigs. -func (c *ciliumClusterwideEnvoyConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumclusterwideenvoyconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumClusterwideEnvoyConfig and creates it. Returns the server's representation of the ciliumClusterwideEnvoyConfig, and an error, if there is any. -func (c *ciliumClusterwideEnvoyConfigs) Create(ctx context.Context, ciliumClusterwideEnvoyConfig *v2.CiliumClusterwideEnvoyConfig, opts v1.CreateOptions) (result *v2.CiliumClusterwideEnvoyConfig, err error) { - result = &v2.CiliumClusterwideEnvoyConfig{} - err = c.client.Post(). - Resource("ciliumclusterwideenvoyconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumClusterwideEnvoyConfig). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumClusterwideEnvoyConfig and updates it. Returns the server's representation of the ciliumClusterwideEnvoyConfig, and an error, if there is any. -func (c *ciliumClusterwideEnvoyConfigs) Update(ctx context.Context, ciliumClusterwideEnvoyConfig *v2.CiliumClusterwideEnvoyConfig, opts v1.UpdateOptions) (result *v2.CiliumClusterwideEnvoyConfig, err error) { - result = &v2.CiliumClusterwideEnvoyConfig{} - err = c.client.Put(). - Resource("ciliumclusterwideenvoyconfigs"). - Name(ciliumClusterwideEnvoyConfig.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumClusterwideEnvoyConfig). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumClusterwideEnvoyConfig and deletes it. Returns an error if one occurs. -func (c *ciliumClusterwideEnvoyConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumclusterwideenvoyconfigs"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumClusterwideEnvoyConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumclusterwideenvoyconfigs"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumClusterwideEnvoyConfig. -func (c *ciliumClusterwideEnvoyConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumClusterwideEnvoyConfig, err error) { - result = &v2.CiliumClusterwideEnvoyConfig{} - err = c.client.Patch(pt). - Resource("ciliumclusterwideenvoyconfigs"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumclusterwidenetworkpolicy.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumclusterwidenetworkpolicy.go index 56cde2626..98cd24896 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumclusterwidenetworkpolicy.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumclusterwidenetworkpolicy.go @@ -6,15 +6,14 @@ package v2 import ( - "context" - "time" + context "context" - v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" + ciliumiov2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumClusterwideNetworkPoliciesGetter has a method to return a CiliumClusterwideNetworkPolicyInterface. @@ -25,147 +24,36 @@ type CiliumClusterwideNetworkPoliciesGetter interface { // CiliumClusterwideNetworkPolicyInterface has methods to work with CiliumClusterwideNetworkPolicy resources. type CiliumClusterwideNetworkPolicyInterface interface { - Create(ctx context.Context, ciliumClusterwideNetworkPolicy *v2.CiliumClusterwideNetworkPolicy, opts v1.CreateOptions) (*v2.CiliumClusterwideNetworkPolicy, error) - Update(ctx context.Context, ciliumClusterwideNetworkPolicy *v2.CiliumClusterwideNetworkPolicy, opts v1.UpdateOptions) (*v2.CiliumClusterwideNetworkPolicy, error) - UpdateStatus(ctx context.Context, ciliumClusterwideNetworkPolicy *v2.CiliumClusterwideNetworkPolicy, opts v1.UpdateOptions) (*v2.CiliumClusterwideNetworkPolicy, error) + Create(ctx context.Context, ciliumClusterwideNetworkPolicy *ciliumiov2.CiliumClusterwideNetworkPolicy, opts v1.CreateOptions) (*ciliumiov2.CiliumClusterwideNetworkPolicy, error) + Update(ctx context.Context, ciliumClusterwideNetworkPolicy *ciliumiov2.CiliumClusterwideNetworkPolicy, opts v1.UpdateOptions) (*ciliumiov2.CiliumClusterwideNetworkPolicy, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, ciliumClusterwideNetworkPolicy *ciliumiov2.CiliumClusterwideNetworkPolicy, opts v1.UpdateOptions) (*ciliumiov2.CiliumClusterwideNetworkPolicy, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2.CiliumClusterwideNetworkPolicy, error) - List(ctx context.Context, opts v1.ListOptions) (*v2.CiliumClusterwideNetworkPolicyList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2.CiliumClusterwideNetworkPolicy, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2.CiliumClusterwideNetworkPolicyList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumClusterwideNetworkPolicy, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2.CiliumClusterwideNetworkPolicy, err error) CiliumClusterwideNetworkPolicyExpansion } // ciliumClusterwideNetworkPolicies implements CiliumClusterwideNetworkPolicyInterface type ciliumClusterwideNetworkPolicies struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2.CiliumClusterwideNetworkPolicy, *ciliumiov2.CiliumClusterwideNetworkPolicyList] } // newCiliumClusterwideNetworkPolicies returns a CiliumClusterwideNetworkPolicies func newCiliumClusterwideNetworkPolicies(c *CiliumV2Client) *ciliumClusterwideNetworkPolicies { return &ciliumClusterwideNetworkPolicies{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2.CiliumClusterwideNetworkPolicy, *ciliumiov2.CiliumClusterwideNetworkPolicyList]( + "ciliumclusterwidenetworkpolicies", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2.CiliumClusterwideNetworkPolicy { return &ciliumiov2.CiliumClusterwideNetworkPolicy{} }, + func() *ciliumiov2.CiliumClusterwideNetworkPolicyList { + return &ciliumiov2.CiliumClusterwideNetworkPolicyList{} + }, + ), } } - -// Get takes name of the ciliumClusterwideNetworkPolicy, and returns the corresponding ciliumClusterwideNetworkPolicy object, and an error if there is any. -func (c *ciliumClusterwideNetworkPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.CiliumClusterwideNetworkPolicy, err error) { - result = &v2.CiliumClusterwideNetworkPolicy{} - err = c.client.Get(). - Resource("ciliumclusterwidenetworkpolicies"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumClusterwideNetworkPolicies that match those selectors. -func (c *ciliumClusterwideNetworkPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v2.CiliumClusterwideNetworkPolicyList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2.CiliumClusterwideNetworkPolicyList{} - err = c.client.Get(). - Resource("ciliumclusterwidenetworkpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumClusterwideNetworkPolicies. -func (c *ciliumClusterwideNetworkPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumclusterwidenetworkpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumClusterwideNetworkPolicy and creates it. Returns the server's representation of the ciliumClusterwideNetworkPolicy, and an error, if there is any. -func (c *ciliumClusterwideNetworkPolicies) Create(ctx context.Context, ciliumClusterwideNetworkPolicy *v2.CiliumClusterwideNetworkPolicy, opts v1.CreateOptions) (result *v2.CiliumClusterwideNetworkPolicy, err error) { - result = &v2.CiliumClusterwideNetworkPolicy{} - err = c.client.Post(). - Resource("ciliumclusterwidenetworkpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumClusterwideNetworkPolicy). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumClusterwideNetworkPolicy and updates it. Returns the server's representation of the ciliumClusterwideNetworkPolicy, and an error, if there is any. -func (c *ciliumClusterwideNetworkPolicies) Update(ctx context.Context, ciliumClusterwideNetworkPolicy *v2.CiliumClusterwideNetworkPolicy, opts v1.UpdateOptions) (result *v2.CiliumClusterwideNetworkPolicy, err error) { - result = &v2.CiliumClusterwideNetworkPolicy{} - err = c.client.Put(). - Resource("ciliumclusterwidenetworkpolicies"). - Name(ciliumClusterwideNetworkPolicy.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumClusterwideNetworkPolicy). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *ciliumClusterwideNetworkPolicies) UpdateStatus(ctx context.Context, ciliumClusterwideNetworkPolicy *v2.CiliumClusterwideNetworkPolicy, opts v1.UpdateOptions) (result *v2.CiliumClusterwideNetworkPolicy, err error) { - result = &v2.CiliumClusterwideNetworkPolicy{} - err = c.client.Put(). - Resource("ciliumclusterwidenetworkpolicies"). - Name(ciliumClusterwideNetworkPolicy.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumClusterwideNetworkPolicy). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumClusterwideNetworkPolicy and deletes it. Returns an error if one occurs. -func (c *ciliumClusterwideNetworkPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumclusterwidenetworkpolicies"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumClusterwideNetworkPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumclusterwidenetworkpolicies"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumClusterwideNetworkPolicy. -func (c *ciliumClusterwideNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumClusterwideNetworkPolicy, err error) { - result = &v2.CiliumClusterwideNetworkPolicy{} - err = c.client.Patch(pt). - Resource("ciliumclusterwidenetworkpolicies"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumegressgatewaypolicy.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumegressgatewaypolicy.go index 625a89b74..c00e9d966 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumegressgatewaypolicy.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumegressgatewaypolicy.go @@ -6,15 +6,14 @@ package v2 import ( - "context" - "time" + context "context" - v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" + ciliumiov2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumEgressGatewayPoliciesGetter has a method to return a CiliumEgressGatewayPolicyInterface. @@ -25,131 +24,32 @@ type CiliumEgressGatewayPoliciesGetter interface { // CiliumEgressGatewayPolicyInterface has methods to work with CiliumEgressGatewayPolicy resources. type CiliumEgressGatewayPolicyInterface interface { - Create(ctx context.Context, ciliumEgressGatewayPolicy *v2.CiliumEgressGatewayPolicy, opts v1.CreateOptions) (*v2.CiliumEgressGatewayPolicy, error) - Update(ctx context.Context, ciliumEgressGatewayPolicy *v2.CiliumEgressGatewayPolicy, opts v1.UpdateOptions) (*v2.CiliumEgressGatewayPolicy, error) + Create(ctx context.Context, ciliumEgressGatewayPolicy *ciliumiov2.CiliumEgressGatewayPolicy, opts v1.CreateOptions) (*ciliumiov2.CiliumEgressGatewayPolicy, error) + Update(ctx context.Context, ciliumEgressGatewayPolicy *ciliumiov2.CiliumEgressGatewayPolicy, opts v1.UpdateOptions) (*ciliumiov2.CiliumEgressGatewayPolicy, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2.CiliumEgressGatewayPolicy, error) - List(ctx context.Context, opts v1.ListOptions) (*v2.CiliumEgressGatewayPolicyList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2.CiliumEgressGatewayPolicy, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2.CiliumEgressGatewayPolicyList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumEgressGatewayPolicy, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2.CiliumEgressGatewayPolicy, err error) CiliumEgressGatewayPolicyExpansion } // ciliumEgressGatewayPolicies implements CiliumEgressGatewayPolicyInterface type ciliumEgressGatewayPolicies struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2.CiliumEgressGatewayPolicy, *ciliumiov2.CiliumEgressGatewayPolicyList] } // newCiliumEgressGatewayPolicies returns a CiliumEgressGatewayPolicies func newCiliumEgressGatewayPolicies(c *CiliumV2Client) *ciliumEgressGatewayPolicies { return &ciliumEgressGatewayPolicies{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2.CiliumEgressGatewayPolicy, *ciliumiov2.CiliumEgressGatewayPolicyList]( + "ciliumegressgatewaypolicies", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2.CiliumEgressGatewayPolicy { return &ciliumiov2.CiliumEgressGatewayPolicy{} }, + func() *ciliumiov2.CiliumEgressGatewayPolicyList { return &ciliumiov2.CiliumEgressGatewayPolicyList{} }, + ), } } - -// Get takes name of the ciliumEgressGatewayPolicy, and returns the corresponding ciliumEgressGatewayPolicy object, and an error if there is any. -func (c *ciliumEgressGatewayPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.CiliumEgressGatewayPolicy, err error) { - result = &v2.CiliumEgressGatewayPolicy{} - err = c.client.Get(). - Resource("ciliumegressgatewaypolicies"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumEgressGatewayPolicies that match those selectors. -func (c *ciliumEgressGatewayPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v2.CiliumEgressGatewayPolicyList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2.CiliumEgressGatewayPolicyList{} - err = c.client.Get(). - Resource("ciliumegressgatewaypolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumEgressGatewayPolicies. -func (c *ciliumEgressGatewayPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumegressgatewaypolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumEgressGatewayPolicy and creates it. Returns the server's representation of the ciliumEgressGatewayPolicy, and an error, if there is any. -func (c *ciliumEgressGatewayPolicies) Create(ctx context.Context, ciliumEgressGatewayPolicy *v2.CiliumEgressGatewayPolicy, opts v1.CreateOptions) (result *v2.CiliumEgressGatewayPolicy, err error) { - result = &v2.CiliumEgressGatewayPolicy{} - err = c.client.Post(). - Resource("ciliumegressgatewaypolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumEgressGatewayPolicy). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumEgressGatewayPolicy and updates it. Returns the server's representation of the ciliumEgressGatewayPolicy, and an error, if there is any. -func (c *ciliumEgressGatewayPolicies) Update(ctx context.Context, ciliumEgressGatewayPolicy *v2.CiliumEgressGatewayPolicy, opts v1.UpdateOptions) (result *v2.CiliumEgressGatewayPolicy, err error) { - result = &v2.CiliumEgressGatewayPolicy{} - err = c.client.Put(). - Resource("ciliumegressgatewaypolicies"). - Name(ciliumEgressGatewayPolicy.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumEgressGatewayPolicy). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumEgressGatewayPolicy and deletes it. Returns an error if one occurs. -func (c *ciliumEgressGatewayPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumegressgatewaypolicies"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumEgressGatewayPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumegressgatewaypolicies"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumEgressGatewayPolicy. -func (c *ciliumEgressGatewayPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumEgressGatewayPolicy, err error) { - result = &v2.CiliumEgressGatewayPolicy{} - err = c.client.Patch(pt). - Resource("ciliumegressgatewaypolicies"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumendpoint.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumendpoint.go index 3cd66d46a..276536493 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumendpoint.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumendpoint.go @@ -6,15 +6,14 @@ package v2 import ( - "context" - "time" + context "context" - v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" + ciliumiov2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumEndpointsGetter has a method to return a CiliumEndpointInterface. @@ -25,158 +24,34 @@ type CiliumEndpointsGetter interface { // CiliumEndpointInterface has methods to work with CiliumEndpoint resources. type CiliumEndpointInterface interface { - Create(ctx context.Context, ciliumEndpoint *v2.CiliumEndpoint, opts v1.CreateOptions) (*v2.CiliumEndpoint, error) - Update(ctx context.Context, ciliumEndpoint *v2.CiliumEndpoint, opts v1.UpdateOptions) (*v2.CiliumEndpoint, error) - UpdateStatus(ctx context.Context, ciliumEndpoint *v2.CiliumEndpoint, opts v1.UpdateOptions) (*v2.CiliumEndpoint, error) + Create(ctx context.Context, ciliumEndpoint *ciliumiov2.CiliumEndpoint, opts v1.CreateOptions) (*ciliumiov2.CiliumEndpoint, error) + Update(ctx context.Context, ciliumEndpoint *ciliumiov2.CiliumEndpoint, opts v1.UpdateOptions) (*ciliumiov2.CiliumEndpoint, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, ciliumEndpoint *ciliumiov2.CiliumEndpoint, opts v1.UpdateOptions) (*ciliumiov2.CiliumEndpoint, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2.CiliumEndpoint, error) - List(ctx context.Context, opts v1.ListOptions) (*v2.CiliumEndpointList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2.CiliumEndpoint, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2.CiliumEndpointList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumEndpoint, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2.CiliumEndpoint, err error) CiliumEndpointExpansion } // ciliumEndpoints implements CiliumEndpointInterface type ciliumEndpoints struct { - client rest.Interface - ns string + *gentype.ClientWithList[*ciliumiov2.CiliumEndpoint, *ciliumiov2.CiliumEndpointList] } // newCiliumEndpoints returns a CiliumEndpoints func newCiliumEndpoints(c *CiliumV2Client, namespace string) *ciliumEndpoints { return &ciliumEndpoints{ - client: c.RESTClient(), - ns: namespace, + gentype.NewClientWithList[*ciliumiov2.CiliumEndpoint, *ciliumiov2.CiliumEndpointList]( + "ciliumendpoints", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *ciliumiov2.CiliumEndpoint { return &ciliumiov2.CiliumEndpoint{} }, + func() *ciliumiov2.CiliumEndpointList { return &ciliumiov2.CiliumEndpointList{} }, + ), } } - -// Get takes name of the ciliumEndpoint, and returns the corresponding ciliumEndpoint object, and an error if there is any. -func (c *ciliumEndpoints) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.CiliumEndpoint, err error) { - result = &v2.CiliumEndpoint{} - err = c.client.Get(). - Namespace(c.ns). - Resource("ciliumendpoints"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumEndpoints that match those selectors. -func (c *ciliumEndpoints) List(ctx context.Context, opts v1.ListOptions) (result *v2.CiliumEndpointList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2.CiliumEndpointList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("ciliumendpoints"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumEndpoints. -func (c *ciliumEndpoints) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("ciliumendpoints"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumEndpoint and creates it. Returns the server's representation of the ciliumEndpoint, and an error, if there is any. -func (c *ciliumEndpoints) Create(ctx context.Context, ciliumEndpoint *v2.CiliumEndpoint, opts v1.CreateOptions) (result *v2.CiliumEndpoint, err error) { - result = &v2.CiliumEndpoint{} - err = c.client.Post(). - Namespace(c.ns). - Resource("ciliumendpoints"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumEndpoint). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumEndpoint and updates it. Returns the server's representation of the ciliumEndpoint, and an error, if there is any. -func (c *ciliumEndpoints) Update(ctx context.Context, ciliumEndpoint *v2.CiliumEndpoint, opts v1.UpdateOptions) (result *v2.CiliumEndpoint, err error) { - result = &v2.CiliumEndpoint{} - err = c.client.Put(). - Namespace(c.ns). - Resource("ciliumendpoints"). - Name(ciliumEndpoint.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumEndpoint). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *ciliumEndpoints) UpdateStatus(ctx context.Context, ciliumEndpoint *v2.CiliumEndpoint, opts v1.UpdateOptions) (result *v2.CiliumEndpoint, err error) { - result = &v2.CiliumEndpoint{} - err = c.client.Put(). - Namespace(c.ns). - Resource("ciliumendpoints"). - Name(ciliumEndpoint.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumEndpoint). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumEndpoint and deletes it. Returns an error if one occurs. -func (c *ciliumEndpoints) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("ciliumendpoints"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumEndpoints) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("ciliumendpoints"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumEndpoint. -func (c *ciliumEndpoints) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumEndpoint, err error) { - result = &v2.CiliumEndpoint{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("ciliumendpoints"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumenvoyconfig.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumenvoyconfig.go index 9f5acd456..5cbdb63ae 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumenvoyconfig.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumenvoyconfig.go @@ -6,15 +6,14 @@ package v2 import ( - "context" - "time" + context "context" - v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" + ciliumiov2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumEnvoyConfigsGetter has a method to return a CiliumEnvoyConfigInterface. @@ -25,141 +24,32 @@ type CiliumEnvoyConfigsGetter interface { // CiliumEnvoyConfigInterface has methods to work with CiliumEnvoyConfig resources. type CiliumEnvoyConfigInterface interface { - Create(ctx context.Context, ciliumEnvoyConfig *v2.CiliumEnvoyConfig, opts v1.CreateOptions) (*v2.CiliumEnvoyConfig, error) - Update(ctx context.Context, ciliumEnvoyConfig *v2.CiliumEnvoyConfig, opts v1.UpdateOptions) (*v2.CiliumEnvoyConfig, error) + Create(ctx context.Context, ciliumEnvoyConfig *ciliumiov2.CiliumEnvoyConfig, opts v1.CreateOptions) (*ciliumiov2.CiliumEnvoyConfig, error) + Update(ctx context.Context, ciliumEnvoyConfig *ciliumiov2.CiliumEnvoyConfig, opts v1.UpdateOptions) (*ciliumiov2.CiliumEnvoyConfig, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2.CiliumEnvoyConfig, error) - List(ctx context.Context, opts v1.ListOptions) (*v2.CiliumEnvoyConfigList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2.CiliumEnvoyConfig, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2.CiliumEnvoyConfigList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumEnvoyConfig, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2.CiliumEnvoyConfig, err error) CiliumEnvoyConfigExpansion } // ciliumEnvoyConfigs implements CiliumEnvoyConfigInterface type ciliumEnvoyConfigs struct { - client rest.Interface - ns string + *gentype.ClientWithList[*ciliumiov2.CiliumEnvoyConfig, *ciliumiov2.CiliumEnvoyConfigList] } // newCiliumEnvoyConfigs returns a CiliumEnvoyConfigs func newCiliumEnvoyConfigs(c *CiliumV2Client, namespace string) *ciliumEnvoyConfigs { return &ciliumEnvoyConfigs{ - client: c.RESTClient(), - ns: namespace, + gentype.NewClientWithList[*ciliumiov2.CiliumEnvoyConfig, *ciliumiov2.CiliumEnvoyConfigList]( + "ciliumenvoyconfigs", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *ciliumiov2.CiliumEnvoyConfig { return &ciliumiov2.CiliumEnvoyConfig{} }, + func() *ciliumiov2.CiliumEnvoyConfigList { return &ciliumiov2.CiliumEnvoyConfigList{} }, + ), } } - -// Get takes name of the ciliumEnvoyConfig, and returns the corresponding ciliumEnvoyConfig object, and an error if there is any. -func (c *ciliumEnvoyConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.CiliumEnvoyConfig, err error) { - result = &v2.CiliumEnvoyConfig{} - err = c.client.Get(). - Namespace(c.ns). - Resource("ciliumenvoyconfigs"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumEnvoyConfigs that match those selectors. -func (c *ciliumEnvoyConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v2.CiliumEnvoyConfigList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2.CiliumEnvoyConfigList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("ciliumenvoyconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumEnvoyConfigs. -func (c *ciliumEnvoyConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("ciliumenvoyconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumEnvoyConfig and creates it. Returns the server's representation of the ciliumEnvoyConfig, and an error, if there is any. -func (c *ciliumEnvoyConfigs) Create(ctx context.Context, ciliumEnvoyConfig *v2.CiliumEnvoyConfig, opts v1.CreateOptions) (result *v2.CiliumEnvoyConfig, err error) { - result = &v2.CiliumEnvoyConfig{} - err = c.client.Post(). - Namespace(c.ns). - Resource("ciliumenvoyconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumEnvoyConfig). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumEnvoyConfig and updates it. Returns the server's representation of the ciliumEnvoyConfig, and an error, if there is any. -func (c *ciliumEnvoyConfigs) Update(ctx context.Context, ciliumEnvoyConfig *v2.CiliumEnvoyConfig, opts v1.UpdateOptions) (result *v2.CiliumEnvoyConfig, err error) { - result = &v2.CiliumEnvoyConfig{} - err = c.client.Put(). - Namespace(c.ns). - Resource("ciliumenvoyconfigs"). - Name(ciliumEnvoyConfig.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumEnvoyConfig). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumEnvoyConfig and deletes it. Returns an error if one occurs. -func (c *ciliumEnvoyConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("ciliumenvoyconfigs"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumEnvoyConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("ciliumenvoyconfigs"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumEnvoyConfig. -func (c *ciliumEnvoyConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumEnvoyConfig, err error) { - result = &v2.CiliumEnvoyConfig{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("ciliumenvoyconfigs"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumexternalworkload.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumexternalworkload.go index 261cbfeed..57ef50d69 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumexternalworkload.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumexternalworkload.go @@ -6,15 +6,14 @@ package v2 import ( - "context" - "time" + context "context" - v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" + ciliumiov2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumExternalWorkloadsGetter has a method to return a CiliumExternalWorkloadInterface. @@ -25,147 +24,34 @@ type CiliumExternalWorkloadsGetter interface { // CiliumExternalWorkloadInterface has methods to work with CiliumExternalWorkload resources. type CiliumExternalWorkloadInterface interface { - Create(ctx context.Context, ciliumExternalWorkload *v2.CiliumExternalWorkload, opts v1.CreateOptions) (*v2.CiliumExternalWorkload, error) - Update(ctx context.Context, ciliumExternalWorkload *v2.CiliumExternalWorkload, opts v1.UpdateOptions) (*v2.CiliumExternalWorkload, error) - UpdateStatus(ctx context.Context, ciliumExternalWorkload *v2.CiliumExternalWorkload, opts v1.UpdateOptions) (*v2.CiliumExternalWorkload, error) + Create(ctx context.Context, ciliumExternalWorkload *ciliumiov2.CiliumExternalWorkload, opts v1.CreateOptions) (*ciliumiov2.CiliumExternalWorkload, error) + Update(ctx context.Context, ciliumExternalWorkload *ciliumiov2.CiliumExternalWorkload, opts v1.UpdateOptions) (*ciliumiov2.CiliumExternalWorkload, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, ciliumExternalWorkload *ciliumiov2.CiliumExternalWorkload, opts v1.UpdateOptions) (*ciliumiov2.CiliumExternalWorkload, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2.CiliumExternalWorkload, error) - List(ctx context.Context, opts v1.ListOptions) (*v2.CiliumExternalWorkloadList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2.CiliumExternalWorkload, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2.CiliumExternalWorkloadList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumExternalWorkload, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2.CiliumExternalWorkload, err error) CiliumExternalWorkloadExpansion } // ciliumExternalWorkloads implements CiliumExternalWorkloadInterface type ciliumExternalWorkloads struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2.CiliumExternalWorkload, *ciliumiov2.CiliumExternalWorkloadList] } // newCiliumExternalWorkloads returns a CiliumExternalWorkloads func newCiliumExternalWorkloads(c *CiliumV2Client) *ciliumExternalWorkloads { return &ciliumExternalWorkloads{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2.CiliumExternalWorkload, *ciliumiov2.CiliumExternalWorkloadList]( + "ciliumexternalworkloads", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2.CiliumExternalWorkload { return &ciliumiov2.CiliumExternalWorkload{} }, + func() *ciliumiov2.CiliumExternalWorkloadList { return &ciliumiov2.CiliumExternalWorkloadList{} }, + ), } } - -// Get takes name of the ciliumExternalWorkload, and returns the corresponding ciliumExternalWorkload object, and an error if there is any. -func (c *ciliumExternalWorkloads) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.CiliumExternalWorkload, err error) { - result = &v2.CiliumExternalWorkload{} - err = c.client.Get(). - Resource("ciliumexternalworkloads"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumExternalWorkloads that match those selectors. -func (c *ciliumExternalWorkloads) List(ctx context.Context, opts v1.ListOptions) (result *v2.CiliumExternalWorkloadList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2.CiliumExternalWorkloadList{} - err = c.client.Get(). - Resource("ciliumexternalworkloads"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumExternalWorkloads. -func (c *ciliumExternalWorkloads) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumexternalworkloads"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumExternalWorkload and creates it. Returns the server's representation of the ciliumExternalWorkload, and an error, if there is any. -func (c *ciliumExternalWorkloads) Create(ctx context.Context, ciliumExternalWorkload *v2.CiliumExternalWorkload, opts v1.CreateOptions) (result *v2.CiliumExternalWorkload, err error) { - result = &v2.CiliumExternalWorkload{} - err = c.client.Post(). - Resource("ciliumexternalworkloads"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumExternalWorkload). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumExternalWorkload and updates it. Returns the server's representation of the ciliumExternalWorkload, and an error, if there is any. -func (c *ciliumExternalWorkloads) Update(ctx context.Context, ciliumExternalWorkload *v2.CiliumExternalWorkload, opts v1.UpdateOptions) (result *v2.CiliumExternalWorkload, err error) { - result = &v2.CiliumExternalWorkload{} - err = c.client.Put(). - Resource("ciliumexternalworkloads"). - Name(ciliumExternalWorkload.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumExternalWorkload). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *ciliumExternalWorkloads) UpdateStatus(ctx context.Context, ciliumExternalWorkload *v2.CiliumExternalWorkload, opts v1.UpdateOptions) (result *v2.CiliumExternalWorkload, err error) { - result = &v2.CiliumExternalWorkload{} - err = c.client.Put(). - Resource("ciliumexternalworkloads"). - Name(ciliumExternalWorkload.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumExternalWorkload). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumExternalWorkload and deletes it. Returns an error if one occurs. -func (c *ciliumExternalWorkloads) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumexternalworkloads"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumExternalWorkloads) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumexternalworkloads"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumExternalWorkload. -func (c *ciliumExternalWorkloads) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumExternalWorkload, err error) { - result = &v2.CiliumExternalWorkload{} - err = c.client.Patch(pt). - Resource("ciliumexternalworkloads"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumidentity.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumidentity.go index c23f01726..6e4def6e8 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumidentity.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumidentity.go @@ -6,15 +6,14 @@ package v2 import ( - "context" - "time" + context "context" - v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" + ciliumiov2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumIdentitiesGetter has a method to return a CiliumIdentityInterface. @@ -25,131 +24,32 @@ type CiliumIdentitiesGetter interface { // CiliumIdentityInterface has methods to work with CiliumIdentity resources. type CiliumIdentityInterface interface { - Create(ctx context.Context, ciliumIdentity *v2.CiliumIdentity, opts v1.CreateOptions) (*v2.CiliumIdentity, error) - Update(ctx context.Context, ciliumIdentity *v2.CiliumIdentity, opts v1.UpdateOptions) (*v2.CiliumIdentity, error) + Create(ctx context.Context, ciliumIdentity *ciliumiov2.CiliumIdentity, opts v1.CreateOptions) (*ciliumiov2.CiliumIdentity, error) + Update(ctx context.Context, ciliumIdentity *ciliumiov2.CiliumIdentity, opts v1.UpdateOptions) (*ciliumiov2.CiliumIdentity, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2.CiliumIdentity, error) - List(ctx context.Context, opts v1.ListOptions) (*v2.CiliumIdentityList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2.CiliumIdentity, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2.CiliumIdentityList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumIdentity, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2.CiliumIdentity, err error) CiliumIdentityExpansion } // ciliumIdentities implements CiliumIdentityInterface type ciliumIdentities struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2.CiliumIdentity, *ciliumiov2.CiliumIdentityList] } // newCiliumIdentities returns a CiliumIdentities func newCiliumIdentities(c *CiliumV2Client) *ciliumIdentities { return &ciliumIdentities{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2.CiliumIdentity, *ciliumiov2.CiliumIdentityList]( + "ciliumidentities", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2.CiliumIdentity { return &ciliumiov2.CiliumIdentity{} }, + func() *ciliumiov2.CiliumIdentityList { return &ciliumiov2.CiliumIdentityList{} }, + ), } } - -// Get takes name of the ciliumIdentity, and returns the corresponding ciliumIdentity object, and an error if there is any. -func (c *ciliumIdentities) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.CiliumIdentity, err error) { - result = &v2.CiliumIdentity{} - err = c.client.Get(). - Resource("ciliumidentities"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumIdentities that match those selectors. -func (c *ciliumIdentities) List(ctx context.Context, opts v1.ListOptions) (result *v2.CiliumIdentityList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2.CiliumIdentityList{} - err = c.client.Get(). - Resource("ciliumidentities"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumIdentities. -func (c *ciliumIdentities) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumidentities"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumIdentity and creates it. Returns the server's representation of the ciliumIdentity, and an error, if there is any. -func (c *ciliumIdentities) Create(ctx context.Context, ciliumIdentity *v2.CiliumIdentity, opts v1.CreateOptions) (result *v2.CiliumIdentity, err error) { - result = &v2.CiliumIdentity{} - err = c.client.Post(). - Resource("ciliumidentities"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumIdentity). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumIdentity and updates it. Returns the server's representation of the ciliumIdentity, and an error, if there is any. -func (c *ciliumIdentities) Update(ctx context.Context, ciliumIdentity *v2.CiliumIdentity, opts v1.UpdateOptions) (result *v2.CiliumIdentity, err error) { - result = &v2.CiliumIdentity{} - err = c.client.Put(). - Resource("ciliumidentities"). - Name(ciliumIdentity.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumIdentity). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumIdentity and deletes it. Returns an error if one occurs. -func (c *ciliumIdentities) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumidentities"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumIdentities) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumidentities"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumIdentity. -func (c *ciliumIdentities) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumIdentity, err error) { - result = &v2.CiliumIdentity{} - err = c.client.Patch(pt). - Resource("ciliumidentities"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumlocalredirectpolicy.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumlocalredirectpolicy.go index 9c839eb94..14a744cf0 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumlocalredirectpolicy.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumlocalredirectpolicy.go @@ -6,15 +6,14 @@ package v2 import ( - "context" - "time" + context "context" - v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" + ciliumiov2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumLocalRedirectPoliciesGetter has a method to return a CiliumLocalRedirectPolicyInterface. @@ -25,158 +24,34 @@ type CiliumLocalRedirectPoliciesGetter interface { // CiliumLocalRedirectPolicyInterface has methods to work with CiliumLocalRedirectPolicy resources. type CiliumLocalRedirectPolicyInterface interface { - Create(ctx context.Context, ciliumLocalRedirectPolicy *v2.CiliumLocalRedirectPolicy, opts v1.CreateOptions) (*v2.CiliumLocalRedirectPolicy, error) - Update(ctx context.Context, ciliumLocalRedirectPolicy *v2.CiliumLocalRedirectPolicy, opts v1.UpdateOptions) (*v2.CiliumLocalRedirectPolicy, error) - UpdateStatus(ctx context.Context, ciliumLocalRedirectPolicy *v2.CiliumLocalRedirectPolicy, opts v1.UpdateOptions) (*v2.CiliumLocalRedirectPolicy, error) + Create(ctx context.Context, ciliumLocalRedirectPolicy *ciliumiov2.CiliumLocalRedirectPolicy, opts v1.CreateOptions) (*ciliumiov2.CiliumLocalRedirectPolicy, error) + Update(ctx context.Context, ciliumLocalRedirectPolicy *ciliumiov2.CiliumLocalRedirectPolicy, opts v1.UpdateOptions) (*ciliumiov2.CiliumLocalRedirectPolicy, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, ciliumLocalRedirectPolicy *ciliumiov2.CiliumLocalRedirectPolicy, opts v1.UpdateOptions) (*ciliumiov2.CiliumLocalRedirectPolicy, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2.CiliumLocalRedirectPolicy, error) - List(ctx context.Context, opts v1.ListOptions) (*v2.CiliumLocalRedirectPolicyList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2.CiliumLocalRedirectPolicy, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2.CiliumLocalRedirectPolicyList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumLocalRedirectPolicy, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2.CiliumLocalRedirectPolicy, err error) CiliumLocalRedirectPolicyExpansion } // ciliumLocalRedirectPolicies implements CiliumLocalRedirectPolicyInterface type ciliumLocalRedirectPolicies struct { - client rest.Interface - ns string + *gentype.ClientWithList[*ciliumiov2.CiliumLocalRedirectPolicy, *ciliumiov2.CiliumLocalRedirectPolicyList] } // newCiliumLocalRedirectPolicies returns a CiliumLocalRedirectPolicies func newCiliumLocalRedirectPolicies(c *CiliumV2Client, namespace string) *ciliumLocalRedirectPolicies { return &ciliumLocalRedirectPolicies{ - client: c.RESTClient(), - ns: namespace, + gentype.NewClientWithList[*ciliumiov2.CiliumLocalRedirectPolicy, *ciliumiov2.CiliumLocalRedirectPolicyList]( + "ciliumlocalredirectpolicies", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *ciliumiov2.CiliumLocalRedirectPolicy { return &ciliumiov2.CiliumLocalRedirectPolicy{} }, + func() *ciliumiov2.CiliumLocalRedirectPolicyList { return &ciliumiov2.CiliumLocalRedirectPolicyList{} }, + ), } } - -// Get takes name of the ciliumLocalRedirectPolicy, and returns the corresponding ciliumLocalRedirectPolicy object, and an error if there is any. -func (c *ciliumLocalRedirectPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.CiliumLocalRedirectPolicy, err error) { - result = &v2.CiliumLocalRedirectPolicy{} - err = c.client.Get(). - Namespace(c.ns). - Resource("ciliumlocalredirectpolicies"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumLocalRedirectPolicies that match those selectors. -func (c *ciliumLocalRedirectPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v2.CiliumLocalRedirectPolicyList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2.CiliumLocalRedirectPolicyList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("ciliumlocalredirectpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumLocalRedirectPolicies. -func (c *ciliumLocalRedirectPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("ciliumlocalredirectpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumLocalRedirectPolicy and creates it. Returns the server's representation of the ciliumLocalRedirectPolicy, and an error, if there is any. -func (c *ciliumLocalRedirectPolicies) Create(ctx context.Context, ciliumLocalRedirectPolicy *v2.CiliumLocalRedirectPolicy, opts v1.CreateOptions) (result *v2.CiliumLocalRedirectPolicy, err error) { - result = &v2.CiliumLocalRedirectPolicy{} - err = c.client.Post(). - Namespace(c.ns). - Resource("ciliumlocalredirectpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumLocalRedirectPolicy). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumLocalRedirectPolicy and updates it. Returns the server's representation of the ciliumLocalRedirectPolicy, and an error, if there is any. -func (c *ciliumLocalRedirectPolicies) Update(ctx context.Context, ciliumLocalRedirectPolicy *v2.CiliumLocalRedirectPolicy, opts v1.UpdateOptions) (result *v2.CiliumLocalRedirectPolicy, err error) { - result = &v2.CiliumLocalRedirectPolicy{} - err = c.client.Put(). - Namespace(c.ns). - Resource("ciliumlocalredirectpolicies"). - Name(ciliumLocalRedirectPolicy.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumLocalRedirectPolicy). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *ciliumLocalRedirectPolicies) UpdateStatus(ctx context.Context, ciliumLocalRedirectPolicy *v2.CiliumLocalRedirectPolicy, opts v1.UpdateOptions) (result *v2.CiliumLocalRedirectPolicy, err error) { - result = &v2.CiliumLocalRedirectPolicy{} - err = c.client.Put(). - Namespace(c.ns). - Resource("ciliumlocalredirectpolicies"). - Name(ciliumLocalRedirectPolicy.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumLocalRedirectPolicy). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumLocalRedirectPolicy and deletes it. Returns an error if one occurs. -func (c *ciliumLocalRedirectPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("ciliumlocalredirectpolicies"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumLocalRedirectPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("ciliumlocalredirectpolicies"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumLocalRedirectPolicy. -func (c *ciliumLocalRedirectPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumLocalRedirectPolicy, err error) { - result = &v2.CiliumLocalRedirectPolicy{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("ciliumlocalredirectpolicies"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumnetworkpolicy.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumnetworkpolicy.go index f5d5ae60a..bed778cc0 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumnetworkpolicy.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumnetworkpolicy.go @@ -6,15 +6,14 @@ package v2 import ( - "context" - "time" + context "context" - v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" + ciliumiov2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumNetworkPoliciesGetter has a method to return a CiliumNetworkPolicyInterface. @@ -25,158 +24,34 @@ type CiliumNetworkPoliciesGetter interface { // CiliumNetworkPolicyInterface has methods to work with CiliumNetworkPolicy resources. type CiliumNetworkPolicyInterface interface { - Create(ctx context.Context, ciliumNetworkPolicy *v2.CiliumNetworkPolicy, opts v1.CreateOptions) (*v2.CiliumNetworkPolicy, error) - Update(ctx context.Context, ciliumNetworkPolicy *v2.CiliumNetworkPolicy, opts v1.UpdateOptions) (*v2.CiliumNetworkPolicy, error) - UpdateStatus(ctx context.Context, ciliumNetworkPolicy *v2.CiliumNetworkPolicy, opts v1.UpdateOptions) (*v2.CiliumNetworkPolicy, error) + Create(ctx context.Context, ciliumNetworkPolicy *ciliumiov2.CiliumNetworkPolicy, opts v1.CreateOptions) (*ciliumiov2.CiliumNetworkPolicy, error) + Update(ctx context.Context, ciliumNetworkPolicy *ciliumiov2.CiliumNetworkPolicy, opts v1.UpdateOptions) (*ciliumiov2.CiliumNetworkPolicy, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, ciliumNetworkPolicy *ciliumiov2.CiliumNetworkPolicy, opts v1.UpdateOptions) (*ciliumiov2.CiliumNetworkPolicy, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2.CiliumNetworkPolicy, error) - List(ctx context.Context, opts v1.ListOptions) (*v2.CiliumNetworkPolicyList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2.CiliumNetworkPolicy, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2.CiliumNetworkPolicyList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumNetworkPolicy, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2.CiliumNetworkPolicy, err error) CiliumNetworkPolicyExpansion } // ciliumNetworkPolicies implements CiliumNetworkPolicyInterface type ciliumNetworkPolicies struct { - client rest.Interface - ns string + *gentype.ClientWithList[*ciliumiov2.CiliumNetworkPolicy, *ciliumiov2.CiliumNetworkPolicyList] } // newCiliumNetworkPolicies returns a CiliumNetworkPolicies func newCiliumNetworkPolicies(c *CiliumV2Client, namespace string) *ciliumNetworkPolicies { return &ciliumNetworkPolicies{ - client: c.RESTClient(), - ns: namespace, + gentype.NewClientWithList[*ciliumiov2.CiliumNetworkPolicy, *ciliumiov2.CiliumNetworkPolicyList]( + "ciliumnetworkpolicies", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *ciliumiov2.CiliumNetworkPolicy { return &ciliumiov2.CiliumNetworkPolicy{} }, + func() *ciliumiov2.CiliumNetworkPolicyList { return &ciliumiov2.CiliumNetworkPolicyList{} }, + ), } } - -// Get takes name of the ciliumNetworkPolicy, and returns the corresponding ciliumNetworkPolicy object, and an error if there is any. -func (c *ciliumNetworkPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.CiliumNetworkPolicy, err error) { - result = &v2.CiliumNetworkPolicy{} - err = c.client.Get(). - Namespace(c.ns). - Resource("ciliumnetworkpolicies"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumNetworkPolicies that match those selectors. -func (c *ciliumNetworkPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v2.CiliumNetworkPolicyList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2.CiliumNetworkPolicyList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("ciliumnetworkpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumNetworkPolicies. -func (c *ciliumNetworkPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("ciliumnetworkpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumNetworkPolicy and creates it. Returns the server's representation of the ciliumNetworkPolicy, and an error, if there is any. -func (c *ciliumNetworkPolicies) Create(ctx context.Context, ciliumNetworkPolicy *v2.CiliumNetworkPolicy, opts v1.CreateOptions) (result *v2.CiliumNetworkPolicy, err error) { - result = &v2.CiliumNetworkPolicy{} - err = c.client.Post(). - Namespace(c.ns). - Resource("ciliumnetworkpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumNetworkPolicy). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumNetworkPolicy and updates it. Returns the server's representation of the ciliumNetworkPolicy, and an error, if there is any. -func (c *ciliumNetworkPolicies) Update(ctx context.Context, ciliumNetworkPolicy *v2.CiliumNetworkPolicy, opts v1.UpdateOptions) (result *v2.CiliumNetworkPolicy, err error) { - result = &v2.CiliumNetworkPolicy{} - err = c.client.Put(). - Namespace(c.ns). - Resource("ciliumnetworkpolicies"). - Name(ciliumNetworkPolicy.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumNetworkPolicy). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *ciliumNetworkPolicies) UpdateStatus(ctx context.Context, ciliumNetworkPolicy *v2.CiliumNetworkPolicy, opts v1.UpdateOptions) (result *v2.CiliumNetworkPolicy, err error) { - result = &v2.CiliumNetworkPolicy{} - err = c.client.Put(). - Namespace(c.ns). - Resource("ciliumnetworkpolicies"). - Name(ciliumNetworkPolicy.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumNetworkPolicy). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumNetworkPolicy and deletes it. Returns an error if one occurs. -func (c *ciliumNetworkPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("ciliumnetworkpolicies"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumNetworkPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("ciliumnetworkpolicies"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumNetworkPolicy. -func (c *ciliumNetworkPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumNetworkPolicy, err error) { - result = &v2.CiliumNetworkPolicy{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("ciliumnetworkpolicies"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumnode.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumnode.go index 9cc2e5555..fafb887c2 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumnode.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumnode.go @@ -6,15 +6,14 @@ package v2 import ( - "context" - "time" + context "context" - v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" + ciliumiov2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumNodesGetter has a method to return a CiliumNodeInterface. @@ -25,147 +24,34 @@ type CiliumNodesGetter interface { // CiliumNodeInterface has methods to work with CiliumNode resources. type CiliumNodeInterface interface { - Create(ctx context.Context, ciliumNode *v2.CiliumNode, opts v1.CreateOptions) (*v2.CiliumNode, error) - Update(ctx context.Context, ciliumNode *v2.CiliumNode, opts v1.UpdateOptions) (*v2.CiliumNode, error) - UpdateStatus(ctx context.Context, ciliumNode *v2.CiliumNode, opts v1.UpdateOptions) (*v2.CiliumNode, error) + Create(ctx context.Context, ciliumNode *ciliumiov2.CiliumNode, opts v1.CreateOptions) (*ciliumiov2.CiliumNode, error) + Update(ctx context.Context, ciliumNode *ciliumiov2.CiliumNode, opts v1.UpdateOptions) (*ciliumiov2.CiliumNode, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, ciliumNode *ciliumiov2.CiliumNode, opts v1.UpdateOptions) (*ciliumiov2.CiliumNode, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2.CiliumNode, error) - List(ctx context.Context, opts v1.ListOptions) (*v2.CiliumNodeList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2.CiliumNode, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2.CiliumNodeList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumNode, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2.CiliumNode, err error) CiliumNodeExpansion } // ciliumNodes implements CiliumNodeInterface type ciliumNodes struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2.CiliumNode, *ciliumiov2.CiliumNodeList] } // newCiliumNodes returns a CiliumNodes func newCiliumNodes(c *CiliumV2Client) *ciliumNodes { return &ciliumNodes{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2.CiliumNode, *ciliumiov2.CiliumNodeList]( + "ciliumnodes", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2.CiliumNode { return &ciliumiov2.CiliumNode{} }, + func() *ciliumiov2.CiliumNodeList { return &ciliumiov2.CiliumNodeList{} }, + ), } } - -// Get takes name of the ciliumNode, and returns the corresponding ciliumNode object, and an error if there is any. -func (c *ciliumNodes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.CiliumNode, err error) { - result = &v2.CiliumNode{} - err = c.client.Get(). - Resource("ciliumnodes"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumNodes that match those selectors. -func (c *ciliumNodes) List(ctx context.Context, opts v1.ListOptions) (result *v2.CiliumNodeList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2.CiliumNodeList{} - err = c.client.Get(). - Resource("ciliumnodes"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumNodes. -func (c *ciliumNodes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumnodes"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumNode and creates it. Returns the server's representation of the ciliumNode, and an error, if there is any. -func (c *ciliumNodes) Create(ctx context.Context, ciliumNode *v2.CiliumNode, opts v1.CreateOptions) (result *v2.CiliumNode, err error) { - result = &v2.CiliumNode{} - err = c.client.Post(). - Resource("ciliumnodes"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumNode). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumNode and updates it. Returns the server's representation of the ciliumNode, and an error, if there is any. -func (c *ciliumNodes) Update(ctx context.Context, ciliumNode *v2.CiliumNode, opts v1.UpdateOptions) (result *v2.CiliumNode, err error) { - result = &v2.CiliumNode{} - err = c.client.Put(). - Resource("ciliumnodes"). - Name(ciliumNode.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumNode). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *ciliumNodes) UpdateStatus(ctx context.Context, ciliumNode *v2.CiliumNode, opts v1.UpdateOptions) (result *v2.CiliumNode, err error) { - result = &v2.CiliumNode{} - err = c.client.Put(). - Resource("ciliumnodes"). - Name(ciliumNode.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumNode). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumNode and deletes it. Returns an error if one occurs. -func (c *ciliumNodes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumnodes"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumNodes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumnodes"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumNode. -func (c *ciliumNodes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumNode, err error) { - result = &v2.CiliumNode{} - err = c.client.Patch(pt). - Resource("ciliumnodes"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumnodeconfig.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumnodeconfig.go index ea28dbc7d..f776b2c92 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumnodeconfig.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2/ciliumnodeconfig.go @@ -6,15 +6,14 @@ package v2 import ( - "context" - "time" + context "context" - v2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" + ciliumiov2 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumNodeConfigsGetter has a method to return a CiliumNodeConfigInterface. @@ -25,141 +24,32 @@ type CiliumNodeConfigsGetter interface { // CiliumNodeConfigInterface has methods to work with CiliumNodeConfig resources. type CiliumNodeConfigInterface interface { - Create(ctx context.Context, ciliumNodeConfig *v2.CiliumNodeConfig, opts v1.CreateOptions) (*v2.CiliumNodeConfig, error) - Update(ctx context.Context, ciliumNodeConfig *v2.CiliumNodeConfig, opts v1.UpdateOptions) (*v2.CiliumNodeConfig, error) + Create(ctx context.Context, ciliumNodeConfig *ciliumiov2.CiliumNodeConfig, opts v1.CreateOptions) (*ciliumiov2.CiliumNodeConfig, error) + Update(ctx context.Context, ciliumNodeConfig *ciliumiov2.CiliumNodeConfig, opts v1.UpdateOptions) (*ciliumiov2.CiliumNodeConfig, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2.CiliumNodeConfig, error) - List(ctx context.Context, opts v1.ListOptions) (*v2.CiliumNodeConfigList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2.CiliumNodeConfig, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2.CiliumNodeConfigList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumNodeConfig, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2.CiliumNodeConfig, err error) CiliumNodeConfigExpansion } // ciliumNodeConfigs implements CiliumNodeConfigInterface type ciliumNodeConfigs struct { - client rest.Interface - ns string + *gentype.ClientWithList[*ciliumiov2.CiliumNodeConfig, *ciliumiov2.CiliumNodeConfigList] } // newCiliumNodeConfigs returns a CiliumNodeConfigs func newCiliumNodeConfigs(c *CiliumV2Client, namespace string) *ciliumNodeConfigs { return &ciliumNodeConfigs{ - client: c.RESTClient(), - ns: namespace, + gentype.NewClientWithList[*ciliumiov2.CiliumNodeConfig, *ciliumiov2.CiliumNodeConfigList]( + "ciliumnodeconfigs", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *ciliumiov2.CiliumNodeConfig { return &ciliumiov2.CiliumNodeConfig{} }, + func() *ciliumiov2.CiliumNodeConfigList { return &ciliumiov2.CiliumNodeConfigList{} }, + ), } } - -// Get takes name of the ciliumNodeConfig, and returns the corresponding ciliumNodeConfig object, and an error if there is any. -func (c *ciliumNodeConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.CiliumNodeConfig, err error) { - result = &v2.CiliumNodeConfig{} - err = c.client.Get(). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumNodeConfigs that match those selectors. -func (c *ciliumNodeConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v2.CiliumNodeConfigList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2.CiliumNodeConfigList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumNodeConfigs. -func (c *ciliumNodeConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumNodeConfig and creates it. Returns the server's representation of the ciliumNodeConfig, and an error, if there is any. -func (c *ciliumNodeConfigs) Create(ctx context.Context, ciliumNodeConfig *v2.CiliumNodeConfig, opts v1.CreateOptions) (result *v2.CiliumNodeConfig, err error) { - result = &v2.CiliumNodeConfig{} - err = c.client.Post(). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumNodeConfig). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumNodeConfig and updates it. Returns the server's representation of the ciliumNodeConfig, and an error, if there is any. -func (c *ciliumNodeConfigs) Update(ctx context.Context, ciliumNodeConfig *v2.CiliumNodeConfig, opts v1.UpdateOptions) (result *v2.CiliumNodeConfig, err error) { - result = &v2.CiliumNodeConfig{} - err = c.client.Put(). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - Name(ciliumNodeConfig.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumNodeConfig). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumNodeConfig and deletes it. Returns an error if one occurs. -func (c *ciliumNodeConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumNodeConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumNodeConfig. -func (c *ciliumNodeConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2.CiliumNodeConfig, err error) { - result = &v2.CiliumNodeConfig{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/cilium.io_client.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/cilium.io_client.go index a217d05b8..8e49ea7ff 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/cilium.io_client.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/cilium.io_client.go @@ -6,10 +6,10 @@ package v2alpha1 import ( - "net/http" + http "net/http" - v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" - "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" + ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" + scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) @@ -127,10 +127,10 @@ func New(c rest.Interface) *CiliumV2alpha1Client { } func setConfigDefaults(config *rest.Config) error { - gv := v2alpha1.SchemeGroupVersion + gv := ciliumiov2alpha1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" - config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() + config.NegotiatedSerializer = rest.CodecFactoryForGeneratedClient(scheme.Scheme, scheme.Codecs).WithoutConversion() if config.UserAgent == "" { config.UserAgent = rest.DefaultKubernetesUserAgent() diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpadvertisement.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpadvertisement.go index 3488a9470..66aef037e 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpadvertisement.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpadvertisement.go @@ -6,15 +6,14 @@ package v2alpha1 import ( - "context" - "time" + context "context" - v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" + ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumBGPAdvertisementsGetter has a method to return a CiliumBGPAdvertisementInterface. @@ -25,131 +24,34 @@ type CiliumBGPAdvertisementsGetter interface { // CiliumBGPAdvertisementInterface has methods to work with CiliumBGPAdvertisement resources. type CiliumBGPAdvertisementInterface interface { - Create(ctx context.Context, ciliumBGPAdvertisement *v2alpha1.CiliumBGPAdvertisement, opts v1.CreateOptions) (*v2alpha1.CiliumBGPAdvertisement, error) - Update(ctx context.Context, ciliumBGPAdvertisement *v2alpha1.CiliumBGPAdvertisement, opts v1.UpdateOptions) (*v2alpha1.CiliumBGPAdvertisement, error) + Create(ctx context.Context, ciliumBGPAdvertisement *ciliumiov2alpha1.CiliumBGPAdvertisement, opts v1.CreateOptions) (*ciliumiov2alpha1.CiliumBGPAdvertisement, error) + Update(ctx context.Context, ciliumBGPAdvertisement *ciliumiov2alpha1.CiliumBGPAdvertisement, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumBGPAdvertisement, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2alpha1.CiliumBGPAdvertisement, error) - List(ctx context.Context, opts v1.ListOptions) (*v2alpha1.CiliumBGPAdvertisementList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2alpha1.CiliumBGPAdvertisement, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2alpha1.CiliumBGPAdvertisementList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumBGPAdvertisement, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2alpha1.CiliumBGPAdvertisement, err error) CiliumBGPAdvertisementExpansion } // ciliumBGPAdvertisements implements CiliumBGPAdvertisementInterface type ciliumBGPAdvertisements struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2alpha1.CiliumBGPAdvertisement, *ciliumiov2alpha1.CiliumBGPAdvertisementList] } // newCiliumBGPAdvertisements returns a CiliumBGPAdvertisements func newCiliumBGPAdvertisements(c *CiliumV2alpha1Client) *ciliumBGPAdvertisements { return &ciliumBGPAdvertisements{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2alpha1.CiliumBGPAdvertisement, *ciliumiov2alpha1.CiliumBGPAdvertisementList]( + "ciliumbgpadvertisements", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2alpha1.CiliumBGPAdvertisement { return &ciliumiov2alpha1.CiliumBGPAdvertisement{} }, + func() *ciliumiov2alpha1.CiliumBGPAdvertisementList { + return &ciliumiov2alpha1.CiliumBGPAdvertisementList{} + }, + ), } } - -// Get takes name of the ciliumBGPAdvertisement, and returns the corresponding ciliumBGPAdvertisement object, and an error if there is any. -func (c *ciliumBGPAdvertisements) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.CiliumBGPAdvertisement, err error) { - result = &v2alpha1.CiliumBGPAdvertisement{} - err = c.client.Get(). - Resource("ciliumbgpadvertisements"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumBGPAdvertisements that match those selectors. -func (c *ciliumBGPAdvertisements) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.CiliumBGPAdvertisementList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2alpha1.CiliumBGPAdvertisementList{} - err = c.client.Get(). - Resource("ciliumbgpadvertisements"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumBGPAdvertisements. -func (c *ciliumBGPAdvertisements) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumbgpadvertisements"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumBGPAdvertisement and creates it. Returns the server's representation of the ciliumBGPAdvertisement, and an error, if there is any. -func (c *ciliumBGPAdvertisements) Create(ctx context.Context, ciliumBGPAdvertisement *v2alpha1.CiliumBGPAdvertisement, opts v1.CreateOptions) (result *v2alpha1.CiliumBGPAdvertisement, err error) { - result = &v2alpha1.CiliumBGPAdvertisement{} - err = c.client.Post(). - Resource("ciliumbgpadvertisements"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumBGPAdvertisement). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumBGPAdvertisement and updates it. Returns the server's representation of the ciliumBGPAdvertisement, and an error, if there is any. -func (c *ciliumBGPAdvertisements) Update(ctx context.Context, ciliumBGPAdvertisement *v2alpha1.CiliumBGPAdvertisement, opts v1.UpdateOptions) (result *v2alpha1.CiliumBGPAdvertisement, err error) { - result = &v2alpha1.CiliumBGPAdvertisement{} - err = c.client.Put(). - Resource("ciliumbgpadvertisements"). - Name(ciliumBGPAdvertisement.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumBGPAdvertisement). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumBGPAdvertisement and deletes it. Returns an error if one occurs. -func (c *ciliumBGPAdvertisements) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumbgpadvertisements"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumBGPAdvertisements) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumbgpadvertisements"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumBGPAdvertisement. -func (c *ciliumBGPAdvertisements) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumBGPAdvertisement, err error) { - result = &v2alpha1.CiliumBGPAdvertisement{} - err = c.client.Patch(pt). - Resource("ciliumbgpadvertisements"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpclusterconfig.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpclusterconfig.go index b40c50f25..20a7b98dc 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpclusterconfig.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpclusterconfig.go @@ -6,15 +6,14 @@ package v2alpha1 import ( - "context" - "time" + context "context" - v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" + ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumBGPClusterConfigsGetter has a method to return a CiliumBGPClusterConfigInterface. @@ -25,131 +24,36 @@ type CiliumBGPClusterConfigsGetter interface { // CiliumBGPClusterConfigInterface has methods to work with CiliumBGPClusterConfig resources. type CiliumBGPClusterConfigInterface interface { - Create(ctx context.Context, ciliumBGPClusterConfig *v2alpha1.CiliumBGPClusterConfig, opts v1.CreateOptions) (*v2alpha1.CiliumBGPClusterConfig, error) - Update(ctx context.Context, ciliumBGPClusterConfig *v2alpha1.CiliumBGPClusterConfig, opts v1.UpdateOptions) (*v2alpha1.CiliumBGPClusterConfig, error) + Create(ctx context.Context, ciliumBGPClusterConfig *ciliumiov2alpha1.CiliumBGPClusterConfig, opts v1.CreateOptions) (*ciliumiov2alpha1.CiliumBGPClusterConfig, error) + Update(ctx context.Context, ciliumBGPClusterConfig *ciliumiov2alpha1.CiliumBGPClusterConfig, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumBGPClusterConfig, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, ciliumBGPClusterConfig *ciliumiov2alpha1.CiliumBGPClusterConfig, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumBGPClusterConfig, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2alpha1.CiliumBGPClusterConfig, error) - List(ctx context.Context, opts v1.ListOptions) (*v2alpha1.CiliumBGPClusterConfigList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2alpha1.CiliumBGPClusterConfig, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2alpha1.CiliumBGPClusterConfigList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumBGPClusterConfig, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2alpha1.CiliumBGPClusterConfig, err error) CiliumBGPClusterConfigExpansion } // ciliumBGPClusterConfigs implements CiliumBGPClusterConfigInterface type ciliumBGPClusterConfigs struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2alpha1.CiliumBGPClusterConfig, *ciliumiov2alpha1.CiliumBGPClusterConfigList] } // newCiliumBGPClusterConfigs returns a CiliumBGPClusterConfigs func newCiliumBGPClusterConfigs(c *CiliumV2alpha1Client) *ciliumBGPClusterConfigs { return &ciliumBGPClusterConfigs{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2alpha1.CiliumBGPClusterConfig, *ciliumiov2alpha1.CiliumBGPClusterConfigList]( + "ciliumbgpclusterconfigs", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2alpha1.CiliumBGPClusterConfig { return &ciliumiov2alpha1.CiliumBGPClusterConfig{} }, + func() *ciliumiov2alpha1.CiliumBGPClusterConfigList { + return &ciliumiov2alpha1.CiliumBGPClusterConfigList{} + }, + ), } } - -// Get takes name of the ciliumBGPClusterConfig, and returns the corresponding ciliumBGPClusterConfig object, and an error if there is any. -func (c *ciliumBGPClusterConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.CiliumBGPClusterConfig, err error) { - result = &v2alpha1.CiliumBGPClusterConfig{} - err = c.client.Get(). - Resource("ciliumbgpclusterconfigs"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumBGPClusterConfigs that match those selectors. -func (c *ciliumBGPClusterConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.CiliumBGPClusterConfigList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2alpha1.CiliumBGPClusterConfigList{} - err = c.client.Get(). - Resource("ciliumbgpclusterconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumBGPClusterConfigs. -func (c *ciliumBGPClusterConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumbgpclusterconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumBGPClusterConfig and creates it. Returns the server's representation of the ciliumBGPClusterConfig, and an error, if there is any. -func (c *ciliumBGPClusterConfigs) Create(ctx context.Context, ciliumBGPClusterConfig *v2alpha1.CiliumBGPClusterConfig, opts v1.CreateOptions) (result *v2alpha1.CiliumBGPClusterConfig, err error) { - result = &v2alpha1.CiliumBGPClusterConfig{} - err = c.client.Post(). - Resource("ciliumbgpclusterconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumBGPClusterConfig). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumBGPClusterConfig and updates it. Returns the server's representation of the ciliumBGPClusterConfig, and an error, if there is any. -func (c *ciliumBGPClusterConfigs) Update(ctx context.Context, ciliumBGPClusterConfig *v2alpha1.CiliumBGPClusterConfig, opts v1.UpdateOptions) (result *v2alpha1.CiliumBGPClusterConfig, err error) { - result = &v2alpha1.CiliumBGPClusterConfig{} - err = c.client.Put(). - Resource("ciliumbgpclusterconfigs"). - Name(ciliumBGPClusterConfig.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumBGPClusterConfig). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumBGPClusterConfig and deletes it. Returns an error if one occurs. -func (c *ciliumBGPClusterConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumbgpclusterconfigs"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumBGPClusterConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumbgpclusterconfigs"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumBGPClusterConfig. -func (c *ciliumBGPClusterConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumBGPClusterConfig, err error) { - result = &v2alpha1.CiliumBGPClusterConfig{} - err = c.client.Patch(pt). - Resource("ciliumbgpclusterconfigs"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpnodeconfig.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpnodeconfig.go index 005a60d64..396ceb78d 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpnodeconfig.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpnodeconfig.go @@ -6,15 +6,14 @@ package v2alpha1 import ( - "context" - "time" + context "context" - v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" + ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumBGPNodeConfigsGetter has a method to return a CiliumBGPNodeConfigInterface. @@ -25,147 +24,34 @@ type CiliumBGPNodeConfigsGetter interface { // CiliumBGPNodeConfigInterface has methods to work with CiliumBGPNodeConfig resources. type CiliumBGPNodeConfigInterface interface { - Create(ctx context.Context, ciliumBGPNodeConfig *v2alpha1.CiliumBGPNodeConfig, opts v1.CreateOptions) (*v2alpha1.CiliumBGPNodeConfig, error) - Update(ctx context.Context, ciliumBGPNodeConfig *v2alpha1.CiliumBGPNodeConfig, opts v1.UpdateOptions) (*v2alpha1.CiliumBGPNodeConfig, error) - UpdateStatus(ctx context.Context, ciliumBGPNodeConfig *v2alpha1.CiliumBGPNodeConfig, opts v1.UpdateOptions) (*v2alpha1.CiliumBGPNodeConfig, error) + Create(ctx context.Context, ciliumBGPNodeConfig *ciliumiov2alpha1.CiliumBGPNodeConfig, opts v1.CreateOptions) (*ciliumiov2alpha1.CiliumBGPNodeConfig, error) + Update(ctx context.Context, ciliumBGPNodeConfig *ciliumiov2alpha1.CiliumBGPNodeConfig, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumBGPNodeConfig, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, ciliumBGPNodeConfig *ciliumiov2alpha1.CiliumBGPNodeConfig, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumBGPNodeConfig, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2alpha1.CiliumBGPNodeConfig, error) - List(ctx context.Context, opts v1.ListOptions) (*v2alpha1.CiliumBGPNodeConfigList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2alpha1.CiliumBGPNodeConfig, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2alpha1.CiliumBGPNodeConfigList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumBGPNodeConfig, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2alpha1.CiliumBGPNodeConfig, err error) CiliumBGPNodeConfigExpansion } // ciliumBGPNodeConfigs implements CiliumBGPNodeConfigInterface type ciliumBGPNodeConfigs struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2alpha1.CiliumBGPNodeConfig, *ciliumiov2alpha1.CiliumBGPNodeConfigList] } // newCiliumBGPNodeConfigs returns a CiliumBGPNodeConfigs func newCiliumBGPNodeConfigs(c *CiliumV2alpha1Client) *ciliumBGPNodeConfigs { return &ciliumBGPNodeConfigs{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2alpha1.CiliumBGPNodeConfig, *ciliumiov2alpha1.CiliumBGPNodeConfigList]( + "ciliumbgpnodeconfigs", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2alpha1.CiliumBGPNodeConfig { return &ciliumiov2alpha1.CiliumBGPNodeConfig{} }, + func() *ciliumiov2alpha1.CiliumBGPNodeConfigList { return &ciliumiov2alpha1.CiliumBGPNodeConfigList{} }, + ), } } - -// Get takes name of the ciliumBGPNodeConfig, and returns the corresponding ciliumBGPNodeConfig object, and an error if there is any. -func (c *ciliumBGPNodeConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.CiliumBGPNodeConfig, err error) { - result = &v2alpha1.CiliumBGPNodeConfig{} - err = c.client.Get(). - Resource("ciliumbgpnodeconfigs"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumBGPNodeConfigs that match those selectors. -func (c *ciliumBGPNodeConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.CiliumBGPNodeConfigList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2alpha1.CiliumBGPNodeConfigList{} - err = c.client.Get(). - Resource("ciliumbgpnodeconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumBGPNodeConfigs. -func (c *ciliumBGPNodeConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumbgpnodeconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumBGPNodeConfig and creates it. Returns the server's representation of the ciliumBGPNodeConfig, and an error, if there is any. -func (c *ciliumBGPNodeConfigs) Create(ctx context.Context, ciliumBGPNodeConfig *v2alpha1.CiliumBGPNodeConfig, opts v1.CreateOptions) (result *v2alpha1.CiliumBGPNodeConfig, err error) { - result = &v2alpha1.CiliumBGPNodeConfig{} - err = c.client.Post(). - Resource("ciliumbgpnodeconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumBGPNodeConfig). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumBGPNodeConfig and updates it. Returns the server's representation of the ciliumBGPNodeConfig, and an error, if there is any. -func (c *ciliumBGPNodeConfigs) Update(ctx context.Context, ciliumBGPNodeConfig *v2alpha1.CiliumBGPNodeConfig, opts v1.UpdateOptions) (result *v2alpha1.CiliumBGPNodeConfig, err error) { - result = &v2alpha1.CiliumBGPNodeConfig{} - err = c.client.Put(). - Resource("ciliumbgpnodeconfigs"). - Name(ciliumBGPNodeConfig.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumBGPNodeConfig). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *ciliumBGPNodeConfigs) UpdateStatus(ctx context.Context, ciliumBGPNodeConfig *v2alpha1.CiliumBGPNodeConfig, opts v1.UpdateOptions) (result *v2alpha1.CiliumBGPNodeConfig, err error) { - result = &v2alpha1.CiliumBGPNodeConfig{} - err = c.client.Put(). - Resource("ciliumbgpnodeconfigs"). - Name(ciliumBGPNodeConfig.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumBGPNodeConfig). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumBGPNodeConfig and deletes it. Returns an error if one occurs. -func (c *ciliumBGPNodeConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumbgpnodeconfigs"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumBGPNodeConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumbgpnodeconfigs"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumBGPNodeConfig. -func (c *ciliumBGPNodeConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumBGPNodeConfig, err error) { - result = &v2alpha1.CiliumBGPNodeConfig{} - err = c.client.Patch(pt). - Resource("ciliumbgpnodeconfigs"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpnodeconfigoverride.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpnodeconfigoverride.go index 6c2276fde..5ec33c39f 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpnodeconfigoverride.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgpnodeconfigoverride.go @@ -6,15 +6,14 @@ package v2alpha1 import ( - "context" - "time" + context "context" - v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" + ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumBGPNodeConfigOverridesGetter has a method to return a CiliumBGPNodeConfigOverrideInterface. @@ -25,131 +24,36 @@ type CiliumBGPNodeConfigOverridesGetter interface { // CiliumBGPNodeConfigOverrideInterface has methods to work with CiliumBGPNodeConfigOverride resources. type CiliumBGPNodeConfigOverrideInterface interface { - Create(ctx context.Context, ciliumBGPNodeConfigOverride *v2alpha1.CiliumBGPNodeConfigOverride, opts v1.CreateOptions) (*v2alpha1.CiliumBGPNodeConfigOverride, error) - Update(ctx context.Context, ciliumBGPNodeConfigOverride *v2alpha1.CiliumBGPNodeConfigOverride, opts v1.UpdateOptions) (*v2alpha1.CiliumBGPNodeConfigOverride, error) + Create(ctx context.Context, ciliumBGPNodeConfigOverride *ciliumiov2alpha1.CiliumBGPNodeConfigOverride, opts v1.CreateOptions) (*ciliumiov2alpha1.CiliumBGPNodeConfigOverride, error) + Update(ctx context.Context, ciliumBGPNodeConfigOverride *ciliumiov2alpha1.CiliumBGPNodeConfigOverride, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumBGPNodeConfigOverride, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2alpha1.CiliumBGPNodeConfigOverride, error) - List(ctx context.Context, opts v1.ListOptions) (*v2alpha1.CiliumBGPNodeConfigOverrideList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2alpha1.CiliumBGPNodeConfigOverride, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2alpha1.CiliumBGPNodeConfigOverrideList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumBGPNodeConfigOverride, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2alpha1.CiliumBGPNodeConfigOverride, err error) CiliumBGPNodeConfigOverrideExpansion } // ciliumBGPNodeConfigOverrides implements CiliumBGPNodeConfigOverrideInterface type ciliumBGPNodeConfigOverrides struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2alpha1.CiliumBGPNodeConfigOverride, *ciliumiov2alpha1.CiliumBGPNodeConfigOverrideList] } // newCiliumBGPNodeConfigOverrides returns a CiliumBGPNodeConfigOverrides func newCiliumBGPNodeConfigOverrides(c *CiliumV2alpha1Client) *ciliumBGPNodeConfigOverrides { return &ciliumBGPNodeConfigOverrides{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2alpha1.CiliumBGPNodeConfigOverride, *ciliumiov2alpha1.CiliumBGPNodeConfigOverrideList]( + "ciliumbgpnodeconfigoverrides", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2alpha1.CiliumBGPNodeConfigOverride { + return &ciliumiov2alpha1.CiliumBGPNodeConfigOverride{} + }, + func() *ciliumiov2alpha1.CiliumBGPNodeConfigOverrideList { + return &ciliumiov2alpha1.CiliumBGPNodeConfigOverrideList{} + }, + ), } } - -// Get takes name of the ciliumBGPNodeConfigOverride, and returns the corresponding ciliumBGPNodeConfigOverride object, and an error if there is any. -func (c *ciliumBGPNodeConfigOverrides) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.CiliumBGPNodeConfigOverride, err error) { - result = &v2alpha1.CiliumBGPNodeConfigOverride{} - err = c.client.Get(). - Resource("ciliumbgpnodeconfigoverrides"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumBGPNodeConfigOverrides that match those selectors. -func (c *ciliumBGPNodeConfigOverrides) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.CiliumBGPNodeConfigOverrideList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2alpha1.CiliumBGPNodeConfigOverrideList{} - err = c.client.Get(). - Resource("ciliumbgpnodeconfigoverrides"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumBGPNodeConfigOverrides. -func (c *ciliumBGPNodeConfigOverrides) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumbgpnodeconfigoverrides"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumBGPNodeConfigOverride and creates it. Returns the server's representation of the ciliumBGPNodeConfigOverride, and an error, if there is any. -func (c *ciliumBGPNodeConfigOverrides) Create(ctx context.Context, ciliumBGPNodeConfigOverride *v2alpha1.CiliumBGPNodeConfigOverride, opts v1.CreateOptions) (result *v2alpha1.CiliumBGPNodeConfigOverride, err error) { - result = &v2alpha1.CiliumBGPNodeConfigOverride{} - err = c.client.Post(). - Resource("ciliumbgpnodeconfigoverrides"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumBGPNodeConfigOverride). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumBGPNodeConfigOverride and updates it. Returns the server's representation of the ciliumBGPNodeConfigOverride, and an error, if there is any. -func (c *ciliumBGPNodeConfigOverrides) Update(ctx context.Context, ciliumBGPNodeConfigOverride *v2alpha1.CiliumBGPNodeConfigOverride, opts v1.UpdateOptions) (result *v2alpha1.CiliumBGPNodeConfigOverride, err error) { - result = &v2alpha1.CiliumBGPNodeConfigOverride{} - err = c.client.Put(). - Resource("ciliumbgpnodeconfigoverrides"). - Name(ciliumBGPNodeConfigOverride.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumBGPNodeConfigOverride). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumBGPNodeConfigOverride and deletes it. Returns an error if one occurs. -func (c *ciliumBGPNodeConfigOverrides) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumbgpnodeconfigoverrides"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumBGPNodeConfigOverrides) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumbgpnodeconfigoverrides"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumBGPNodeConfigOverride. -func (c *ciliumBGPNodeConfigOverrides) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumBGPNodeConfigOverride, err error) { - result = &v2alpha1.CiliumBGPNodeConfigOverride{} - err = c.client.Patch(pt). - Resource("ciliumbgpnodeconfigoverrides"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgppeerconfig.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgppeerconfig.go index da9915267..b9350d4f6 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgppeerconfig.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgppeerconfig.go @@ -6,15 +6,14 @@ package v2alpha1 import ( - "context" - "time" + context "context" - v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" + ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumBGPPeerConfigsGetter has a method to return a CiliumBGPPeerConfigInterface. @@ -25,131 +24,34 @@ type CiliumBGPPeerConfigsGetter interface { // CiliumBGPPeerConfigInterface has methods to work with CiliumBGPPeerConfig resources. type CiliumBGPPeerConfigInterface interface { - Create(ctx context.Context, ciliumBGPPeerConfig *v2alpha1.CiliumBGPPeerConfig, opts v1.CreateOptions) (*v2alpha1.CiliumBGPPeerConfig, error) - Update(ctx context.Context, ciliumBGPPeerConfig *v2alpha1.CiliumBGPPeerConfig, opts v1.UpdateOptions) (*v2alpha1.CiliumBGPPeerConfig, error) + Create(ctx context.Context, ciliumBGPPeerConfig *ciliumiov2alpha1.CiliumBGPPeerConfig, opts v1.CreateOptions) (*ciliumiov2alpha1.CiliumBGPPeerConfig, error) + Update(ctx context.Context, ciliumBGPPeerConfig *ciliumiov2alpha1.CiliumBGPPeerConfig, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumBGPPeerConfig, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, ciliumBGPPeerConfig *ciliumiov2alpha1.CiliumBGPPeerConfig, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumBGPPeerConfig, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2alpha1.CiliumBGPPeerConfig, error) - List(ctx context.Context, opts v1.ListOptions) (*v2alpha1.CiliumBGPPeerConfigList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2alpha1.CiliumBGPPeerConfig, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2alpha1.CiliumBGPPeerConfigList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumBGPPeerConfig, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2alpha1.CiliumBGPPeerConfig, err error) CiliumBGPPeerConfigExpansion } // ciliumBGPPeerConfigs implements CiliumBGPPeerConfigInterface type ciliumBGPPeerConfigs struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2alpha1.CiliumBGPPeerConfig, *ciliumiov2alpha1.CiliumBGPPeerConfigList] } // newCiliumBGPPeerConfigs returns a CiliumBGPPeerConfigs func newCiliumBGPPeerConfigs(c *CiliumV2alpha1Client) *ciliumBGPPeerConfigs { return &ciliumBGPPeerConfigs{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2alpha1.CiliumBGPPeerConfig, *ciliumiov2alpha1.CiliumBGPPeerConfigList]( + "ciliumbgppeerconfigs", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2alpha1.CiliumBGPPeerConfig { return &ciliumiov2alpha1.CiliumBGPPeerConfig{} }, + func() *ciliumiov2alpha1.CiliumBGPPeerConfigList { return &ciliumiov2alpha1.CiliumBGPPeerConfigList{} }, + ), } } - -// Get takes name of the ciliumBGPPeerConfig, and returns the corresponding ciliumBGPPeerConfig object, and an error if there is any. -func (c *ciliumBGPPeerConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.CiliumBGPPeerConfig, err error) { - result = &v2alpha1.CiliumBGPPeerConfig{} - err = c.client.Get(). - Resource("ciliumbgppeerconfigs"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumBGPPeerConfigs that match those selectors. -func (c *ciliumBGPPeerConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.CiliumBGPPeerConfigList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2alpha1.CiliumBGPPeerConfigList{} - err = c.client.Get(). - Resource("ciliumbgppeerconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumBGPPeerConfigs. -func (c *ciliumBGPPeerConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumbgppeerconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumBGPPeerConfig and creates it. Returns the server's representation of the ciliumBGPPeerConfig, and an error, if there is any. -func (c *ciliumBGPPeerConfigs) Create(ctx context.Context, ciliumBGPPeerConfig *v2alpha1.CiliumBGPPeerConfig, opts v1.CreateOptions) (result *v2alpha1.CiliumBGPPeerConfig, err error) { - result = &v2alpha1.CiliumBGPPeerConfig{} - err = c.client.Post(). - Resource("ciliumbgppeerconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumBGPPeerConfig). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumBGPPeerConfig and updates it. Returns the server's representation of the ciliumBGPPeerConfig, and an error, if there is any. -func (c *ciliumBGPPeerConfigs) Update(ctx context.Context, ciliumBGPPeerConfig *v2alpha1.CiliumBGPPeerConfig, opts v1.UpdateOptions) (result *v2alpha1.CiliumBGPPeerConfig, err error) { - result = &v2alpha1.CiliumBGPPeerConfig{} - err = c.client.Put(). - Resource("ciliumbgppeerconfigs"). - Name(ciliumBGPPeerConfig.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumBGPPeerConfig). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumBGPPeerConfig and deletes it. Returns an error if one occurs. -func (c *ciliumBGPPeerConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumbgppeerconfigs"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumBGPPeerConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumbgppeerconfigs"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumBGPPeerConfig. -func (c *ciliumBGPPeerConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumBGPPeerConfig, err error) { - result = &v2alpha1.CiliumBGPPeerConfig{} - err = c.client.Patch(pt). - Resource("ciliumbgppeerconfigs"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgppeeringpolicy.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgppeeringpolicy.go index e19727c07..b770595ab 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgppeeringpolicy.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumbgppeeringpolicy.go @@ -6,15 +6,14 @@ package v2alpha1 import ( - "context" - "time" + context "context" - v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" + ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumBGPPeeringPoliciesGetter has a method to return a CiliumBGPPeeringPolicyInterface. @@ -25,131 +24,34 @@ type CiliumBGPPeeringPoliciesGetter interface { // CiliumBGPPeeringPolicyInterface has methods to work with CiliumBGPPeeringPolicy resources. type CiliumBGPPeeringPolicyInterface interface { - Create(ctx context.Context, ciliumBGPPeeringPolicy *v2alpha1.CiliumBGPPeeringPolicy, opts v1.CreateOptions) (*v2alpha1.CiliumBGPPeeringPolicy, error) - Update(ctx context.Context, ciliumBGPPeeringPolicy *v2alpha1.CiliumBGPPeeringPolicy, opts v1.UpdateOptions) (*v2alpha1.CiliumBGPPeeringPolicy, error) + Create(ctx context.Context, ciliumBGPPeeringPolicy *ciliumiov2alpha1.CiliumBGPPeeringPolicy, opts v1.CreateOptions) (*ciliumiov2alpha1.CiliumBGPPeeringPolicy, error) + Update(ctx context.Context, ciliumBGPPeeringPolicy *ciliumiov2alpha1.CiliumBGPPeeringPolicy, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumBGPPeeringPolicy, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2alpha1.CiliumBGPPeeringPolicy, error) - List(ctx context.Context, opts v1.ListOptions) (*v2alpha1.CiliumBGPPeeringPolicyList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2alpha1.CiliumBGPPeeringPolicy, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2alpha1.CiliumBGPPeeringPolicyList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumBGPPeeringPolicy, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2alpha1.CiliumBGPPeeringPolicy, err error) CiliumBGPPeeringPolicyExpansion } // ciliumBGPPeeringPolicies implements CiliumBGPPeeringPolicyInterface type ciliumBGPPeeringPolicies struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2alpha1.CiliumBGPPeeringPolicy, *ciliumiov2alpha1.CiliumBGPPeeringPolicyList] } // newCiliumBGPPeeringPolicies returns a CiliumBGPPeeringPolicies func newCiliumBGPPeeringPolicies(c *CiliumV2alpha1Client) *ciliumBGPPeeringPolicies { return &ciliumBGPPeeringPolicies{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2alpha1.CiliumBGPPeeringPolicy, *ciliumiov2alpha1.CiliumBGPPeeringPolicyList]( + "ciliumbgppeeringpolicies", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2alpha1.CiliumBGPPeeringPolicy { return &ciliumiov2alpha1.CiliumBGPPeeringPolicy{} }, + func() *ciliumiov2alpha1.CiliumBGPPeeringPolicyList { + return &ciliumiov2alpha1.CiliumBGPPeeringPolicyList{} + }, + ), } } - -// Get takes name of the ciliumBGPPeeringPolicy, and returns the corresponding ciliumBGPPeeringPolicy object, and an error if there is any. -func (c *ciliumBGPPeeringPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.CiliumBGPPeeringPolicy, err error) { - result = &v2alpha1.CiliumBGPPeeringPolicy{} - err = c.client.Get(). - Resource("ciliumbgppeeringpolicies"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumBGPPeeringPolicies that match those selectors. -func (c *ciliumBGPPeeringPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.CiliumBGPPeeringPolicyList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2alpha1.CiliumBGPPeeringPolicyList{} - err = c.client.Get(). - Resource("ciliumbgppeeringpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumBGPPeeringPolicies. -func (c *ciliumBGPPeeringPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumbgppeeringpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumBGPPeeringPolicy and creates it. Returns the server's representation of the ciliumBGPPeeringPolicy, and an error, if there is any. -func (c *ciliumBGPPeeringPolicies) Create(ctx context.Context, ciliumBGPPeeringPolicy *v2alpha1.CiliumBGPPeeringPolicy, opts v1.CreateOptions) (result *v2alpha1.CiliumBGPPeeringPolicy, err error) { - result = &v2alpha1.CiliumBGPPeeringPolicy{} - err = c.client.Post(). - Resource("ciliumbgppeeringpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumBGPPeeringPolicy). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumBGPPeeringPolicy and updates it. Returns the server's representation of the ciliumBGPPeeringPolicy, and an error, if there is any. -func (c *ciliumBGPPeeringPolicies) Update(ctx context.Context, ciliumBGPPeeringPolicy *v2alpha1.CiliumBGPPeeringPolicy, opts v1.UpdateOptions) (result *v2alpha1.CiliumBGPPeeringPolicy, err error) { - result = &v2alpha1.CiliumBGPPeeringPolicy{} - err = c.client.Put(). - Resource("ciliumbgppeeringpolicies"). - Name(ciliumBGPPeeringPolicy.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumBGPPeeringPolicy). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumBGPPeeringPolicy and deletes it. Returns an error if one occurs. -func (c *ciliumBGPPeeringPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumbgppeeringpolicies"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumBGPPeeringPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumbgppeeringpolicies"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumBGPPeeringPolicy. -func (c *ciliumBGPPeeringPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumBGPPeeringPolicy, err error) { - result = &v2alpha1.CiliumBGPPeeringPolicy{} - err = c.client.Patch(pt). - Resource("ciliumbgppeeringpolicies"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumcidrgroup.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumcidrgroup.go index 42f93365b..21c9312a9 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumcidrgroup.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumcidrgroup.go @@ -6,15 +6,14 @@ package v2alpha1 import ( - "context" - "time" + context "context" - v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" + ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumCIDRGroupsGetter has a method to return a CiliumCIDRGroupInterface. @@ -25,131 +24,32 @@ type CiliumCIDRGroupsGetter interface { // CiliumCIDRGroupInterface has methods to work with CiliumCIDRGroup resources. type CiliumCIDRGroupInterface interface { - Create(ctx context.Context, ciliumCIDRGroup *v2alpha1.CiliumCIDRGroup, opts v1.CreateOptions) (*v2alpha1.CiliumCIDRGroup, error) - Update(ctx context.Context, ciliumCIDRGroup *v2alpha1.CiliumCIDRGroup, opts v1.UpdateOptions) (*v2alpha1.CiliumCIDRGroup, error) + Create(ctx context.Context, ciliumCIDRGroup *ciliumiov2alpha1.CiliumCIDRGroup, opts v1.CreateOptions) (*ciliumiov2alpha1.CiliumCIDRGroup, error) + Update(ctx context.Context, ciliumCIDRGroup *ciliumiov2alpha1.CiliumCIDRGroup, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumCIDRGroup, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2alpha1.CiliumCIDRGroup, error) - List(ctx context.Context, opts v1.ListOptions) (*v2alpha1.CiliumCIDRGroupList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2alpha1.CiliumCIDRGroup, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2alpha1.CiliumCIDRGroupList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumCIDRGroup, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2alpha1.CiliumCIDRGroup, err error) CiliumCIDRGroupExpansion } // ciliumCIDRGroups implements CiliumCIDRGroupInterface type ciliumCIDRGroups struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2alpha1.CiliumCIDRGroup, *ciliumiov2alpha1.CiliumCIDRGroupList] } // newCiliumCIDRGroups returns a CiliumCIDRGroups func newCiliumCIDRGroups(c *CiliumV2alpha1Client) *ciliumCIDRGroups { return &ciliumCIDRGroups{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2alpha1.CiliumCIDRGroup, *ciliumiov2alpha1.CiliumCIDRGroupList]( + "ciliumcidrgroups", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2alpha1.CiliumCIDRGroup { return &ciliumiov2alpha1.CiliumCIDRGroup{} }, + func() *ciliumiov2alpha1.CiliumCIDRGroupList { return &ciliumiov2alpha1.CiliumCIDRGroupList{} }, + ), } } - -// Get takes name of the ciliumCIDRGroup, and returns the corresponding ciliumCIDRGroup object, and an error if there is any. -func (c *ciliumCIDRGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.CiliumCIDRGroup, err error) { - result = &v2alpha1.CiliumCIDRGroup{} - err = c.client.Get(). - Resource("ciliumcidrgroups"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumCIDRGroups that match those selectors. -func (c *ciliumCIDRGroups) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.CiliumCIDRGroupList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2alpha1.CiliumCIDRGroupList{} - err = c.client.Get(). - Resource("ciliumcidrgroups"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumCIDRGroups. -func (c *ciliumCIDRGroups) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumcidrgroups"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumCIDRGroup and creates it. Returns the server's representation of the ciliumCIDRGroup, and an error, if there is any. -func (c *ciliumCIDRGroups) Create(ctx context.Context, ciliumCIDRGroup *v2alpha1.CiliumCIDRGroup, opts v1.CreateOptions) (result *v2alpha1.CiliumCIDRGroup, err error) { - result = &v2alpha1.CiliumCIDRGroup{} - err = c.client.Post(). - Resource("ciliumcidrgroups"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumCIDRGroup). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumCIDRGroup and updates it. Returns the server's representation of the ciliumCIDRGroup, and an error, if there is any. -func (c *ciliumCIDRGroups) Update(ctx context.Context, ciliumCIDRGroup *v2alpha1.CiliumCIDRGroup, opts v1.UpdateOptions) (result *v2alpha1.CiliumCIDRGroup, err error) { - result = &v2alpha1.CiliumCIDRGroup{} - err = c.client.Put(). - Resource("ciliumcidrgroups"). - Name(ciliumCIDRGroup.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumCIDRGroup). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumCIDRGroup and deletes it. Returns an error if one occurs. -func (c *ciliumCIDRGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumcidrgroups"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumCIDRGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumcidrgroups"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumCIDRGroup. -func (c *ciliumCIDRGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumCIDRGroup, err error) { - result = &v2alpha1.CiliumCIDRGroup{} - err = c.client.Patch(pt). - Resource("ciliumcidrgroups"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumendpointslice.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumendpointslice.go index 55cdaf11b..04829640a 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumendpointslice.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumendpointslice.go @@ -6,15 +6,14 @@ package v2alpha1 import ( - "context" - "time" + context "context" - v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" + ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumEndpointSlicesGetter has a method to return a CiliumEndpointSliceInterface. @@ -25,131 +24,32 @@ type CiliumEndpointSlicesGetter interface { // CiliumEndpointSliceInterface has methods to work with CiliumEndpointSlice resources. type CiliumEndpointSliceInterface interface { - Create(ctx context.Context, ciliumEndpointSlice *v2alpha1.CiliumEndpointSlice, opts v1.CreateOptions) (*v2alpha1.CiliumEndpointSlice, error) - Update(ctx context.Context, ciliumEndpointSlice *v2alpha1.CiliumEndpointSlice, opts v1.UpdateOptions) (*v2alpha1.CiliumEndpointSlice, error) + Create(ctx context.Context, ciliumEndpointSlice *ciliumiov2alpha1.CiliumEndpointSlice, opts v1.CreateOptions) (*ciliumiov2alpha1.CiliumEndpointSlice, error) + Update(ctx context.Context, ciliumEndpointSlice *ciliumiov2alpha1.CiliumEndpointSlice, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumEndpointSlice, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2alpha1.CiliumEndpointSlice, error) - List(ctx context.Context, opts v1.ListOptions) (*v2alpha1.CiliumEndpointSliceList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2alpha1.CiliumEndpointSlice, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2alpha1.CiliumEndpointSliceList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumEndpointSlice, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2alpha1.CiliumEndpointSlice, err error) CiliumEndpointSliceExpansion } // ciliumEndpointSlices implements CiliumEndpointSliceInterface type ciliumEndpointSlices struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2alpha1.CiliumEndpointSlice, *ciliumiov2alpha1.CiliumEndpointSliceList] } // newCiliumEndpointSlices returns a CiliumEndpointSlices func newCiliumEndpointSlices(c *CiliumV2alpha1Client) *ciliumEndpointSlices { return &ciliumEndpointSlices{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2alpha1.CiliumEndpointSlice, *ciliumiov2alpha1.CiliumEndpointSliceList]( + "ciliumendpointslices", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2alpha1.CiliumEndpointSlice { return &ciliumiov2alpha1.CiliumEndpointSlice{} }, + func() *ciliumiov2alpha1.CiliumEndpointSliceList { return &ciliumiov2alpha1.CiliumEndpointSliceList{} }, + ), } } - -// Get takes name of the ciliumEndpointSlice, and returns the corresponding ciliumEndpointSlice object, and an error if there is any. -func (c *ciliumEndpointSlices) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.CiliumEndpointSlice, err error) { - result = &v2alpha1.CiliumEndpointSlice{} - err = c.client.Get(). - Resource("ciliumendpointslices"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumEndpointSlices that match those selectors. -func (c *ciliumEndpointSlices) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.CiliumEndpointSliceList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2alpha1.CiliumEndpointSliceList{} - err = c.client.Get(). - Resource("ciliumendpointslices"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumEndpointSlices. -func (c *ciliumEndpointSlices) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumendpointslices"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumEndpointSlice and creates it. Returns the server's representation of the ciliumEndpointSlice, and an error, if there is any. -func (c *ciliumEndpointSlices) Create(ctx context.Context, ciliumEndpointSlice *v2alpha1.CiliumEndpointSlice, opts v1.CreateOptions) (result *v2alpha1.CiliumEndpointSlice, err error) { - result = &v2alpha1.CiliumEndpointSlice{} - err = c.client.Post(). - Resource("ciliumendpointslices"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumEndpointSlice). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumEndpointSlice and updates it. Returns the server's representation of the ciliumEndpointSlice, and an error, if there is any. -func (c *ciliumEndpointSlices) Update(ctx context.Context, ciliumEndpointSlice *v2alpha1.CiliumEndpointSlice, opts v1.UpdateOptions) (result *v2alpha1.CiliumEndpointSlice, err error) { - result = &v2alpha1.CiliumEndpointSlice{} - err = c.client.Put(). - Resource("ciliumendpointslices"). - Name(ciliumEndpointSlice.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumEndpointSlice). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumEndpointSlice and deletes it. Returns an error if one occurs. -func (c *ciliumEndpointSlices) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumendpointslices"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumEndpointSlices) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumendpointslices"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumEndpointSlice. -func (c *ciliumEndpointSlices) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumEndpointSlice, err error) { - result = &v2alpha1.CiliumEndpointSlice{} - err = c.client.Patch(pt). - Resource("ciliumendpointslices"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliuml2announcementpolicy.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliuml2announcementpolicy.go index bed50df46..31651ab61 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliuml2announcementpolicy.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliuml2announcementpolicy.go @@ -6,15 +6,14 @@ package v2alpha1 import ( - "context" - "time" + context "context" - v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" + ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumL2AnnouncementPoliciesGetter has a method to return a CiliumL2AnnouncementPolicyInterface. @@ -25,147 +24,38 @@ type CiliumL2AnnouncementPoliciesGetter interface { // CiliumL2AnnouncementPolicyInterface has methods to work with CiliumL2AnnouncementPolicy resources. type CiliumL2AnnouncementPolicyInterface interface { - Create(ctx context.Context, ciliumL2AnnouncementPolicy *v2alpha1.CiliumL2AnnouncementPolicy, opts v1.CreateOptions) (*v2alpha1.CiliumL2AnnouncementPolicy, error) - Update(ctx context.Context, ciliumL2AnnouncementPolicy *v2alpha1.CiliumL2AnnouncementPolicy, opts v1.UpdateOptions) (*v2alpha1.CiliumL2AnnouncementPolicy, error) - UpdateStatus(ctx context.Context, ciliumL2AnnouncementPolicy *v2alpha1.CiliumL2AnnouncementPolicy, opts v1.UpdateOptions) (*v2alpha1.CiliumL2AnnouncementPolicy, error) + Create(ctx context.Context, ciliumL2AnnouncementPolicy *ciliumiov2alpha1.CiliumL2AnnouncementPolicy, opts v1.CreateOptions) (*ciliumiov2alpha1.CiliumL2AnnouncementPolicy, error) + Update(ctx context.Context, ciliumL2AnnouncementPolicy *ciliumiov2alpha1.CiliumL2AnnouncementPolicy, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumL2AnnouncementPolicy, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, ciliumL2AnnouncementPolicy *ciliumiov2alpha1.CiliumL2AnnouncementPolicy, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumL2AnnouncementPolicy, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2alpha1.CiliumL2AnnouncementPolicy, error) - List(ctx context.Context, opts v1.ListOptions) (*v2alpha1.CiliumL2AnnouncementPolicyList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2alpha1.CiliumL2AnnouncementPolicy, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2alpha1.CiliumL2AnnouncementPolicyList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumL2AnnouncementPolicy, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2alpha1.CiliumL2AnnouncementPolicy, err error) CiliumL2AnnouncementPolicyExpansion } // ciliumL2AnnouncementPolicies implements CiliumL2AnnouncementPolicyInterface type ciliumL2AnnouncementPolicies struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2alpha1.CiliumL2AnnouncementPolicy, *ciliumiov2alpha1.CiliumL2AnnouncementPolicyList] } // newCiliumL2AnnouncementPolicies returns a CiliumL2AnnouncementPolicies func newCiliumL2AnnouncementPolicies(c *CiliumV2alpha1Client) *ciliumL2AnnouncementPolicies { return &ciliumL2AnnouncementPolicies{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2alpha1.CiliumL2AnnouncementPolicy, *ciliumiov2alpha1.CiliumL2AnnouncementPolicyList]( + "ciliuml2announcementpolicies", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2alpha1.CiliumL2AnnouncementPolicy { + return &ciliumiov2alpha1.CiliumL2AnnouncementPolicy{} + }, + func() *ciliumiov2alpha1.CiliumL2AnnouncementPolicyList { + return &ciliumiov2alpha1.CiliumL2AnnouncementPolicyList{} + }, + ), } } - -// Get takes name of the ciliumL2AnnouncementPolicy, and returns the corresponding ciliumL2AnnouncementPolicy object, and an error if there is any. -func (c *ciliumL2AnnouncementPolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.CiliumL2AnnouncementPolicy, err error) { - result = &v2alpha1.CiliumL2AnnouncementPolicy{} - err = c.client.Get(). - Resource("ciliuml2announcementpolicies"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumL2AnnouncementPolicies that match those selectors. -func (c *ciliumL2AnnouncementPolicies) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.CiliumL2AnnouncementPolicyList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2alpha1.CiliumL2AnnouncementPolicyList{} - err = c.client.Get(). - Resource("ciliuml2announcementpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumL2AnnouncementPolicies. -func (c *ciliumL2AnnouncementPolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliuml2announcementpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumL2AnnouncementPolicy and creates it. Returns the server's representation of the ciliumL2AnnouncementPolicy, and an error, if there is any. -func (c *ciliumL2AnnouncementPolicies) Create(ctx context.Context, ciliumL2AnnouncementPolicy *v2alpha1.CiliumL2AnnouncementPolicy, opts v1.CreateOptions) (result *v2alpha1.CiliumL2AnnouncementPolicy, err error) { - result = &v2alpha1.CiliumL2AnnouncementPolicy{} - err = c.client.Post(). - Resource("ciliuml2announcementpolicies"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumL2AnnouncementPolicy). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumL2AnnouncementPolicy and updates it. Returns the server's representation of the ciliumL2AnnouncementPolicy, and an error, if there is any. -func (c *ciliumL2AnnouncementPolicies) Update(ctx context.Context, ciliumL2AnnouncementPolicy *v2alpha1.CiliumL2AnnouncementPolicy, opts v1.UpdateOptions) (result *v2alpha1.CiliumL2AnnouncementPolicy, err error) { - result = &v2alpha1.CiliumL2AnnouncementPolicy{} - err = c.client.Put(). - Resource("ciliuml2announcementpolicies"). - Name(ciliumL2AnnouncementPolicy.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumL2AnnouncementPolicy). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *ciliumL2AnnouncementPolicies) UpdateStatus(ctx context.Context, ciliumL2AnnouncementPolicy *v2alpha1.CiliumL2AnnouncementPolicy, opts v1.UpdateOptions) (result *v2alpha1.CiliumL2AnnouncementPolicy, err error) { - result = &v2alpha1.CiliumL2AnnouncementPolicy{} - err = c.client.Put(). - Resource("ciliuml2announcementpolicies"). - Name(ciliumL2AnnouncementPolicy.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumL2AnnouncementPolicy). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumL2AnnouncementPolicy and deletes it. Returns an error if one occurs. -func (c *ciliumL2AnnouncementPolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliuml2announcementpolicies"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumL2AnnouncementPolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliuml2announcementpolicies"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumL2AnnouncementPolicy. -func (c *ciliumL2AnnouncementPolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumL2AnnouncementPolicy, err error) { - result = &v2alpha1.CiliumL2AnnouncementPolicy{} - err = c.client.Patch(pt). - Resource("ciliuml2announcementpolicies"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumloadbalancerippool.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumloadbalancerippool.go index bdc76f4a5..21f307b0c 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumloadbalancerippool.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumloadbalancerippool.go @@ -6,15 +6,14 @@ package v2alpha1 import ( - "context" - "time" + context "context" - v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" + ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumLoadBalancerIPPoolsGetter has a method to return a CiliumLoadBalancerIPPoolInterface. @@ -25,147 +24,36 @@ type CiliumLoadBalancerIPPoolsGetter interface { // CiliumLoadBalancerIPPoolInterface has methods to work with CiliumLoadBalancerIPPool resources. type CiliumLoadBalancerIPPoolInterface interface { - Create(ctx context.Context, ciliumLoadBalancerIPPool *v2alpha1.CiliumLoadBalancerIPPool, opts v1.CreateOptions) (*v2alpha1.CiliumLoadBalancerIPPool, error) - Update(ctx context.Context, ciliumLoadBalancerIPPool *v2alpha1.CiliumLoadBalancerIPPool, opts v1.UpdateOptions) (*v2alpha1.CiliumLoadBalancerIPPool, error) - UpdateStatus(ctx context.Context, ciliumLoadBalancerIPPool *v2alpha1.CiliumLoadBalancerIPPool, opts v1.UpdateOptions) (*v2alpha1.CiliumLoadBalancerIPPool, error) + Create(ctx context.Context, ciliumLoadBalancerIPPool *ciliumiov2alpha1.CiliumLoadBalancerIPPool, opts v1.CreateOptions) (*ciliumiov2alpha1.CiliumLoadBalancerIPPool, error) + Update(ctx context.Context, ciliumLoadBalancerIPPool *ciliumiov2alpha1.CiliumLoadBalancerIPPool, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumLoadBalancerIPPool, error) + // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). + UpdateStatus(ctx context.Context, ciliumLoadBalancerIPPool *ciliumiov2alpha1.CiliumLoadBalancerIPPool, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumLoadBalancerIPPool, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2alpha1.CiliumLoadBalancerIPPool, error) - List(ctx context.Context, opts v1.ListOptions) (*v2alpha1.CiliumLoadBalancerIPPoolList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2alpha1.CiliumLoadBalancerIPPool, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2alpha1.CiliumLoadBalancerIPPoolList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumLoadBalancerIPPool, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2alpha1.CiliumLoadBalancerIPPool, err error) CiliumLoadBalancerIPPoolExpansion } // ciliumLoadBalancerIPPools implements CiliumLoadBalancerIPPoolInterface type ciliumLoadBalancerIPPools struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2alpha1.CiliumLoadBalancerIPPool, *ciliumiov2alpha1.CiliumLoadBalancerIPPoolList] } // newCiliumLoadBalancerIPPools returns a CiliumLoadBalancerIPPools func newCiliumLoadBalancerIPPools(c *CiliumV2alpha1Client) *ciliumLoadBalancerIPPools { return &ciliumLoadBalancerIPPools{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2alpha1.CiliumLoadBalancerIPPool, *ciliumiov2alpha1.CiliumLoadBalancerIPPoolList]( + "ciliumloadbalancerippools", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2alpha1.CiliumLoadBalancerIPPool { return &ciliumiov2alpha1.CiliumLoadBalancerIPPool{} }, + func() *ciliumiov2alpha1.CiliumLoadBalancerIPPoolList { + return &ciliumiov2alpha1.CiliumLoadBalancerIPPoolList{} + }, + ), } } - -// Get takes name of the ciliumLoadBalancerIPPool, and returns the corresponding ciliumLoadBalancerIPPool object, and an error if there is any. -func (c *ciliumLoadBalancerIPPools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.CiliumLoadBalancerIPPool, err error) { - result = &v2alpha1.CiliumLoadBalancerIPPool{} - err = c.client.Get(). - Resource("ciliumloadbalancerippools"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumLoadBalancerIPPools that match those selectors. -func (c *ciliumLoadBalancerIPPools) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.CiliumLoadBalancerIPPoolList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2alpha1.CiliumLoadBalancerIPPoolList{} - err = c.client.Get(). - Resource("ciliumloadbalancerippools"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumLoadBalancerIPPools. -func (c *ciliumLoadBalancerIPPools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumloadbalancerippools"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumLoadBalancerIPPool and creates it. Returns the server's representation of the ciliumLoadBalancerIPPool, and an error, if there is any. -func (c *ciliumLoadBalancerIPPools) Create(ctx context.Context, ciliumLoadBalancerIPPool *v2alpha1.CiliumLoadBalancerIPPool, opts v1.CreateOptions) (result *v2alpha1.CiliumLoadBalancerIPPool, err error) { - result = &v2alpha1.CiliumLoadBalancerIPPool{} - err = c.client.Post(). - Resource("ciliumloadbalancerippools"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumLoadBalancerIPPool). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumLoadBalancerIPPool and updates it. Returns the server's representation of the ciliumLoadBalancerIPPool, and an error, if there is any. -func (c *ciliumLoadBalancerIPPools) Update(ctx context.Context, ciliumLoadBalancerIPPool *v2alpha1.CiliumLoadBalancerIPPool, opts v1.UpdateOptions) (result *v2alpha1.CiliumLoadBalancerIPPool, err error) { - result = &v2alpha1.CiliumLoadBalancerIPPool{} - err = c.client.Put(). - Resource("ciliumloadbalancerippools"). - Name(ciliumLoadBalancerIPPool.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumLoadBalancerIPPool). - Do(ctx). - Into(result) - return -} - -// UpdateStatus was generated because the type contains a Status member. -// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *ciliumLoadBalancerIPPools) UpdateStatus(ctx context.Context, ciliumLoadBalancerIPPool *v2alpha1.CiliumLoadBalancerIPPool, opts v1.UpdateOptions) (result *v2alpha1.CiliumLoadBalancerIPPool, err error) { - result = &v2alpha1.CiliumLoadBalancerIPPool{} - err = c.client.Put(). - Resource("ciliumloadbalancerippools"). - Name(ciliumLoadBalancerIPPool.Name). - SubResource("status"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumLoadBalancerIPPool). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumLoadBalancerIPPool and deletes it. Returns an error if one occurs. -func (c *ciliumLoadBalancerIPPools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumloadbalancerippools"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumLoadBalancerIPPools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumloadbalancerippools"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumLoadBalancerIPPool. -func (c *ciliumLoadBalancerIPPools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumLoadBalancerIPPool, err error) { - result = &v2alpha1.CiliumLoadBalancerIPPool{} - err = c.client.Patch(pt). - Resource("ciliumloadbalancerippools"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumnodeconfig.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumnodeconfig.go index bff4996a0..4ace6fc57 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumnodeconfig.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumnodeconfig.go @@ -6,15 +6,14 @@ package v2alpha1 import ( - "context" - "time" + context "context" - v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" + ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumNodeConfigsGetter has a method to return a CiliumNodeConfigInterface. @@ -25,141 +24,32 @@ type CiliumNodeConfigsGetter interface { // CiliumNodeConfigInterface has methods to work with CiliumNodeConfig resources. type CiliumNodeConfigInterface interface { - Create(ctx context.Context, ciliumNodeConfig *v2alpha1.CiliumNodeConfig, opts v1.CreateOptions) (*v2alpha1.CiliumNodeConfig, error) - Update(ctx context.Context, ciliumNodeConfig *v2alpha1.CiliumNodeConfig, opts v1.UpdateOptions) (*v2alpha1.CiliumNodeConfig, error) + Create(ctx context.Context, ciliumNodeConfig *ciliumiov2alpha1.CiliumNodeConfig, opts v1.CreateOptions) (*ciliumiov2alpha1.CiliumNodeConfig, error) + Update(ctx context.Context, ciliumNodeConfig *ciliumiov2alpha1.CiliumNodeConfig, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumNodeConfig, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2alpha1.CiliumNodeConfig, error) - List(ctx context.Context, opts v1.ListOptions) (*v2alpha1.CiliumNodeConfigList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2alpha1.CiliumNodeConfig, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2alpha1.CiliumNodeConfigList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumNodeConfig, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2alpha1.CiliumNodeConfig, err error) CiliumNodeConfigExpansion } // ciliumNodeConfigs implements CiliumNodeConfigInterface type ciliumNodeConfigs struct { - client rest.Interface - ns string + *gentype.ClientWithList[*ciliumiov2alpha1.CiliumNodeConfig, *ciliumiov2alpha1.CiliumNodeConfigList] } // newCiliumNodeConfigs returns a CiliumNodeConfigs func newCiliumNodeConfigs(c *CiliumV2alpha1Client, namespace string) *ciliumNodeConfigs { return &ciliumNodeConfigs{ - client: c.RESTClient(), - ns: namespace, + gentype.NewClientWithList[*ciliumiov2alpha1.CiliumNodeConfig, *ciliumiov2alpha1.CiliumNodeConfigList]( + "ciliumnodeconfigs", + c.RESTClient(), + scheme.ParameterCodec, + namespace, + func() *ciliumiov2alpha1.CiliumNodeConfig { return &ciliumiov2alpha1.CiliumNodeConfig{} }, + func() *ciliumiov2alpha1.CiliumNodeConfigList { return &ciliumiov2alpha1.CiliumNodeConfigList{} }, + ), } } - -// Get takes name of the ciliumNodeConfig, and returns the corresponding ciliumNodeConfig object, and an error if there is any. -func (c *ciliumNodeConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.CiliumNodeConfig, err error) { - result = &v2alpha1.CiliumNodeConfig{} - err = c.client.Get(). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumNodeConfigs that match those selectors. -func (c *ciliumNodeConfigs) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.CiliumNodeConfigList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2alpha1.CiliumNodeConfigList{} - err = c.client.Get(). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumNodeConfigs. -func (c *ciliumNodeConfigs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumNodeConfig and creates it. Returns the server's representation of the ciliumNodeConfig, and an error, if there is any. -func (c *ciliumNodeConfigs) Create(ctx context.Context, ciliumNodeConfig *v2alpha1.CiliumNodeConfig, opts v1.CreateOptions) (result *v2alpha1.CiliumNodeConfig, err error) { - result = &v2alpha1.CiliumNodeConfig{} - err = c.client.Post(). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumNodeConfig). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumNodeConfig and updates it. Returns the server's representation of the ciliumNodeConfig, and an error, if there is any. -func (c *ciliumNodeConfigs) Update(ctx context.Context, ciliumNodeConfig *v2alpha1.CiliumNodeConfig, opts v1.UpdateOptions) (result *v2alpha1.CiliumNodeConfig, err error) { - result = &v2alpha1.CiliumNodeConfig{} - err = c.client.Put(). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - Name(ciliumNodeConfig.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumNodeConfig). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumNodeConfig and deletes it. Returns an error if one occurs. -func (c *ciliumNodeConfigs) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumNodeConfigs) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumNodeConfig. -func (c *ciliumNodeConfigs) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumNodeConfig, err error) { - result = &v2alpha1.CiliumNodeConfig{} - err = c.client.Patch(pt). - Namespace(c.ns). - Resource("ciliumnodeconfigs"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumpodippool.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumpodippool.go index 024442952..2fe4d07d9 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumpodippool.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/typed/cilium.io/v2alpha1/ciliumpodippool.go @@ -6,15 +6,14 @@ package v2alpha1 import ( - "context" - "time" + context "context" - v2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" + ciliumiov2alpha1 "github.com/cilium/cilium/pkg/k8s/apis/cilium.io/v2alpha1" scheme "github.com/cilium/cilium/pkg/k8s/client/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" watch "k8s.io/apimachinery/pkg/watch" - rest "k8s.io/client-go/rest" + gentype "k8s.io/client-go/gentype" ) // CiliumPodIPPoolsGetter has a method to return a CiliumPodIPPoolInterface. @@ -25,131 +24,32 @@ type CiliumPodIPPoolsGetter interface { // CiliumPodIPPoolInterface has methods to work with CiliumPodIPPool resources. type CiliumPodIPPoolInterface interface { - Create(ctx context.Context, ciliumPodIPPool *v2alpha1.CiliumPodIPPool, opts v1.CreateOptions) (*v2alpha1.CiliumPodIPPool, error) - Update(ctx context.Context, ciliumPodIPPool *v2alpha1.CiliumPodIPPool, opts v1.UpdateOptions) (*v2alpha1.CiliumPodIPPool, error) + Create(ctx context.Context, ciliumPodIPPool *ciliumiov2alpha1.CiliumPodIPPool, opts v1.CreateOptions) (*ciliumiov2alpha1.CiliumPodIPPool, error) + Update(ctx context.Context, ciliumPodIPPool *ciliumiov2alpha1.CiliumPodIPPool, opts v1.UpdateOptions) (*ciliumiov2alpha1.CiliumPodIPPool, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v2alpha1.CiliumPodIPPool, error) - List(ctx context.Context, opts v1.ListOptions) (*v2alpha1.CiliumPodIPPoolList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*ciliumiov2alpha1.CiliumPodIPPool, error) + List(ctx context.Context, opts v1.ListOptions) (*ciliumiov2alpha1.CiliumPodIPPoolList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumPodIPPool, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *ciliumiov2alpha1.CiliumPodIPPool, err error) CiliumPodIPPoolExpansion } // ciliumPodIPPools implements CiliumPodIPPoolInterface type ciliumPodIPPools struct { - client rest.Interface + *gentype.ClientWithList[*ciliumiov2alpha1.CiliumPodIPPool, *ciliumiov2alpha1.CiliumPodIPPoolList] } // newCiliumPodIPPools returns a CiliumPodIPPools func newCiliumPodIPPools(c *CiliumV2alpha1Client) *ciliumPodIPPools { return &ciliumPodIPPools{ - client: c.RESTClient(), + gentype.NewClientWithList[*ciliumiov2alpha1.CiliumPodIPPool, *ciliumiov2alpha1.CiliumPodIPPoolList]( + "ciliumpodippools", + c.RESTClient(), + scheme.ParameterCodec, + "", + func() *ciliumiov2alpha1.CiliumPodIPPool { return &ciliumiov2alpha1.CiliumPodIPPool{} }, + func() *ciliumiov2alpha1.CiliumPodIPPoolList { return &ciliumiov2alpha1.CiliumPodIPPoolList{} }, + ), } } - -// Get takes name of the ciliumPodIPPool, and returns the corresponding ciliumPodIPPool object, and an error if there is any. -func (c *ciliumPodIPPools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.CiliumPodIPPool, err error) { - result = &v2alpha1.CiliumPodIPPool{} - err = c.client.Get(). - Resource("ciliumpodippools"). - Name(name). - VersionedParams(&options, scheme.ParameterCodec). - Do(ctx). - Into(result) - return -} - -// List takes label and field selectors, and returns the list of CiliumPodIPPools that match those selectors. -func (c *ciliumPodIPPools) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.CiliumPodIPPoolList, err error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - result = &v2alpha1.CiliumPodIPPoolList{} - err = c.client.Get(). - Resource("ciliumpodippools"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Do(ctx). - Into(result) - return -} - -// Watch returns a watch.Interface that watches the requested ciliumPodIPPools. -func (c *ciliumPodIPPools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { - var timeout time.Duration - if opts.TimeoutSeconds != nil { - timeout = time.Duration(*opts.TimeoutSeconds) * time.Second - } - opts.Watch = true - return c.client.Get(). - Resource("ciliumpodippools"). - VersionedParams(&opts, scheme.ParameterCodec). - Timeout(timeout). - Watch(ctx) -} - -// Create takes the representation of a ciliumPodIPPool and creates it. Returns the server's representation of the ciliumPodIPPool, and an error, if there is any. -func (c *ciliumPodIPPools) Create(ctx context.Context, ciliumPodIPPool *v2alpha1.CiliumPodIPPool, opts v1.CreateOptions) (result *v2alpha1.CiliumPodIPPool, err error) { - result = &v2alpha1.CiliumPodIPPool{} - err = c.client.Post(). - Resource("ciliumpodippools"). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumPodIPPool). - Do(ctx). - Into(result) - return -} - -// Update takes the representation of a ciliumPodIPPool and updates it. Returns the server's representation of the ciliumPodIPPool, and an error, if there is any. -func (c *ciliumPodIPPools) Update(ctx context.Context, ciliumPodIPPool *v2alpha1.CiliumPodIPPool, opts v1.UpdateOptions) (result *v2alpha1.CiliumPodIPPool, err error) { - result = &v2alpha1.CiliumPodIPPool{} - err = c.client.Put(). - Resource("ciliumpodippools"). - Name(ciliumPodIPPool.Name). - VersionedParams(&opts, scheme.ParameterCodec). - Body(ciliumPodIPPool). - Do(ctx). - Into(result) - return -} - -// Delete takes name of the ciliumPodIPPool and deletes it. Returns an error if one occurs. -func (c *ciliumPodIPPools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { - return c.client.Delete(). - Resource("ciliumpodippools"). - Name(name). - Body(&opts). - Do(ctx). - Error() -} - -// DeleteCollection deletes a collection of objects. -func (c *ciliumPodIPPools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { - var timeout time.Duration - if listOpts.TimeoutSeconds != nil { - timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second - } - return c.client.Delete(). - Resource("ciliumpodippools"). - VersionedParams(&listOpts, scheme.ParameterCodec). - Timeout(timeout). - Body(&opts). - Do(ctx). - Error() -} - -// Patch applies the patch and returns the patched ciliumPodIPPool. -func (c *ciliumPodIPPools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v2alpha1.CiliumPodIPPool, err error) { - result = &v2alpha1.CiliumPodIPPool{} - err = c.client.Patch(pt). - Resource("ciliumpodippools"). - Name(name). - SubResource(subresources...). - VersionedParams(&opts, scheme.ParameterCodec). - Body(data). - Do(ctx). - Into(result) - return -} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/api/core/v1/doc.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/api/core/v1/doc.go index dc1108488..014e72e56 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/api/core/v1/doc.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/api/core/v1/doc.go @@ -6,6 +6,7 @@ // +k8s:protobuf-gen=package // +deepequal-gen=package // +groupGoName=core +// +groupName= // Package v1 is the v1 version of the core API. package v1 diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/api/core/v1/generated.proto b/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/api/core/v1/generated.proto index 0d5be21af..f913f3293 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/api/core/v1/generated.proto +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/api/core/v1/generated.proto @@ -105,7 +105,7 @@ message ContainerState { message ContainerStateRunning { // Time at which the container was last (re-)started // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.Time startedAt = 1; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.Time startedAt = 1; } // ContainerStatus contains details for the current status of this container. @@ -219,7 +219,7 @@ message Endpoints { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ObjectMeta metadata = 1; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ObjectMeta metadata = 1; // The set of all endpoints is the union of all subsets. Addresses are placed into // subsets according to the IPs they share. A single address with multiple ports, @@ -238,7 +238,7 @@ message EndpointsList { // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ListMeta metadata = 1; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ListMeta metadata = 1; // List of endpoints. repeated Endpoints items = 2; @@ -288,7 +288,7 @@ message Namespace { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ObjectMeta metadata = 1; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ObjectMeta metadata = 1; } // NamespaceList is a list of Namespaces. @@ -296,7 +296,7 @@ message NamespaceList { // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ListMeta metadata = 1; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ListMeta metadata = 1; // Items is the list of Namespace objects in the list. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ @@ -309,7 +309,7 @@ message Node { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ObjectMeta metadata = 1; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ObjectMeta metadata = 1; // Spec defines the behavior of a node. // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status @@ -351,7 +351,7 @@ message NodeList { // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ListMeta metadata = 1; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ListMeta metadata = 1; // List of nodes repeated Node items = 2; @@ -416,7 +416,7 @@ message Pod { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ObjectMeta metadata = 1; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ObjectMeta metadata = 1; // Specification of the desired behavior of the pod. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status @@ -445,11 +445,11 @@ message PodCondition { // Last time we probed the condition. // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.Time lastProbeTime = 3; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.Time lastProbeTime = 3; // Last time the condition transitioned from one status to another. // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.Time lastTransitionTime = 4; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.Time lastTransitionTime = 4; // Unique, one-word, CamelCase reason for the condition's last transition. // +optional @@ -463,6 +463,7 @@ message PodCondition { // PodIP represents a single IP address allocated to the pod. message PodIP { // IP is the IP address assigned to the pod + // +required optional string ip = 1; } @@ -471,7 +472,7 @@ message PodList { // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ListMeta metadata = 1; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ListMeta metadata = 1; // List of pods. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md @@ -520,10 +521,11 @@ message PodSpec { // +optional optional string serviceAccountName = 8; - // NodeName is a request to schedule this pod onto a specific node. If it is non-empty, - // the scheduler simply schedules this pod onto that node, assuming that it fits resource - // requirements. - // +optional + // NodeName indicates in which node this pod is scheduled. + // If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. + // Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. + // This field should not be used to express a desire for the pod to be scheduled on a specific node. + // https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename optional string nodeName = 10; // Host networking requested for this pod. Use the host's network namespace. @@ -592,7 +594,7 @@ message PodStatus { // RFC 3339 date and time at which the object was acknowledged by the Kubelet. // This is before the Kubelet pulled the container image(s) for the pod. // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.Time startTime = 7; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.Time startTime = 7; // The list has one entry per container in the manifest. // More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status @@ -637,7 +639,7 @@ message Secret { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ObjectMeta metadata = 1; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ObjectMeta metadata = 1; // Immutable, if set to true, ensures that data stored in the Secret cannot // be updated (only object metadata can be modified). @@ -672,7 +674,7 @@ message SecretList { // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ListMeta metadata = 1; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ListMeta metadata = 1; // Items is a list of secret objects. // More info: https://kubernetes.io/docs/concepts/configuration/secret @@ -686,7 +688,7 @@ message Service { // Standard object's metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ObjectMeta metadata = 1; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ObjectMeta metadata = 1; // Spec defines the behavior of a service. // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status @@ -706,7 +708,7 @@ message ServiceList { // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ListMeta metadata = 1; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.ListMeta metadata = 1; // List of services repeated Service items = 2; @@ -758,7 +760,7 @@ message ServicePort { // omitted or set equal to the 'port' field. // More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.util.intstr.IntOrString targetPort = 4; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.util.intstr.IntOrString targetPort = 4; // The port on each node on which this service is exposed when type is // NodePort or LoadBalancer. Usually assigned by the system. If a value is @@ -1003,7 +1005,7 @@ message ServiceStatus { // +patchStrategy=merge // +listType=map // +listMapKey=type - repeated github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.Condition conditions = 2; + repeated .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.Condition conditions = 2; } // SessionAffinityConfig represents the configurations of session affinity. @@ -1031,7 +1033,7 @@ message Taint { // TimeAdded represents the time at which the taint was added. // It is only written for NoExecute taints. // +optional - optional github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.Time timeAdded = 4; + optional .github.com.cilium.cilium.pkg.k8s.slim.k8s.apis.meta.v1.Time timeAdded = 4; } // TypedLocalObjectReference contains enough information to let you locate the diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/api/core/v1/types.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/api/core/v1/types.go index af06a8114..029ced91c 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/api/core/v1/types.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/api/core/v1/types.go @@ -321,10 +321,11 @@ type PodSpec struct { // +optional ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,8,opt,name=serviceAccountName"` - // NodeName is a request to schedule this pod onto a specific node. If it is non-empty, - // the scheduler simply schedules this pod onto that node, assuming that it fits resource - // requirements. - // +optional + // NodeName indicates in which node this pod is scheduled. + // If empty, this pod is a candidate for scheduling by the scheduler defined in schedulerName. + // Once this field is set, the kubelet for this node becomes responsible for the lifecycle of this pod. + // This field should not be used to express a desire for the pod to be scheduled on a specific node. + // https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodename NodeName string `json:"nodeName,omitempty" protobuf:"bytes,10,opt,name=nodeName"` // Host networking requested for this pod. Use the host's network namespace. // If this option is set, the ports that will be used must be specified. @@ -350,7 +351,8 @@ const ( // PodIP represents a single IP address allocated to the pod. type PodIP struct { // IP is the IP address assigned to the pod - IP string `json:"ip,omitempty" protobuf:"bytes,1,opt,name=ip"` + // +required + IP string `json:"ip" protobuf:"bytes,1,opt,name=ip"` } // PodStatus represents information about the status of a pod. Status may trail the actual diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/apis/labels/selector.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/apis/labels/selector.go index 6619aedca..d19a9e678 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/apis/labels/selector.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/slim/k8s/apis/labels/selector.go @@ -7,6 +7,7 @@ package labels import ( "fmt" + "slices" "sort" "strconv" "strings" @@ -15,7 +16,6 @@ import ( "k8s.io/apimachinery/pkg/util/validation" "k8s.io/apimachinery/pkg/util/validation/field" "k8s.io/klog/v2" - stringslices "k8s.io/utils/strings/slices" "github.com/cilium/cilium/pkg/k8s/slim/k8s/apis/selection" ) @@ -283,7 +283,7 @@ func (r Requirement) Equal(x Requirement) bool { if r.operator != x.operator { return false } - return stringslices.Equal(r.strValues, x.strValues) + return slices.Equal(r.strValues, x.strValues) } // Empty returns true if the internalSelector doesn't restrict selection space @@ -351,12 +351,12 @@ func (r *Requirement) String() string { // safeSort sorts input strings without modification func safeSort(in []string) []string { - if sort.StringsAreSorted(in) { + if slices.IsSorted(in) { return in } out := make([]string, len(in)) copy(out, in) - sort.Strings(out) + slices.Sort(out) return out } @@ -982,7 +982,7 @@ func (s ValidatedSetSelector) String() string { keys = append(keys, k) } // Ensure deterministic output - sort.Strings(keys) + slices.Sort(keys) b := strings.Builder{} for i, key := range keys { v := s[key] diff --git a/backend/vendor/github.com/cilium/cilium/pkg/k8s/utils/utils.go b/backend/vendor/github.com/cilium/cilium/pkg/k8s/utils/utils.go index bb03068a9..ad20042c0 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/k8s/utils/utils.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/k8s/utils/utils.go @@ -203,8 +203,8 @@ type nameLabelsGetter interface { GetLabels() map[string]string } -// filterPodLabels returns a copy of the given labels map, without the labels owned by Cilium. -func filterPodLabels(labels map[string]string) map[string]string { +// RemoveCiliumLabels returns a copy of the given labels map, without the labels owned by Cilium. +func RemoveCiliumLabels(labels map[string]string) map[string]string { res := map[string]string{} for k, v := range labels { if strings.HasPrefix(k, k8sconst.LabelPrefix) { @@ -218,7 +218,7 @@ func filterPodLabels(labels map[string]string) map[string]string { // SanitizePodLabels makes sure that no important pod labels were overridden manually on k8s pod // object creation. func SanitizePodLabels(podLabels map[string]string, namespace nameLabelsGetter, serviceAccount, clusterName string) map[string]string { - sanitizedLabels := filterPodLabels(podLabels) + sanitizedLabels := RemoveCiliumLabels(podLabels) // Sanitize namespace labels for k, v := range namespace.GetLabels() { @@ -241,7 +241,7 @@ func SanitizePodLabels(podLabels map[string]string, namespace nameLabelsGetter, // StripPodSpecialLabels strips labels that are not supposed to be coming from a k8s pod object update. func StripPodSpecialLabels(labels map[string]string) map[string]string { sanitizedLabels := make(map[string]string) - for k, v := range filterPodLabels(labels) { + for k, v := range RemoveCiliumLabels(labels) { // If the key contains the prefix for namespace labels then we will // ignore it. if strings.HasPrefix(k, k8sconst.PodNamespaceMetaLabels) { diff --git a/backend/vendor/github.com/cilium/cilium/pkg/labels/arraylist.go b/backend/vendor/github.com/cilium/cilium/pkg/labels/arraylist.go index 11e5669ec..a96810ea1 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/labels/arraylist.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/labels/arraylist.go @@ -3,7 +3,9 @@ package labels -import "sort" +import ( + "sort" +) // LabelArrayList is an array of LabelArrays. It is primarily intended as a // simple collection @@ -45,6 +47,57 @@ func (ls LabelArrayList) Equals(b LabelArrayList) bool { return true } +// Diff returns the string of differences between 'ls' and 'expected' LabelArrayList with +// '+ ' or '- ' for obtaining something unexpected, or not obtaining the expected, respectively. +// For use in debugging. Assumes sorted LabelArrayLists. +func (ls LabelArrayList) Diff(expected LabelArrayList) (res string) { + res += "" + i := 0 + j := 0 + for i < len(ls) && j < len(expected) { + if ls[i].Equals(expected[j]) { + i++ + j++ + continue + } + if ls[i].Less(expected[j]) { + // obtained has an unexpected labelArray + res += " + " + ls[i].String() + "\n" + i++ + } + for j < len(expected) && expected[j].Less(ls[i]) { + // expected has a missing labelArray + res += " - " + expected[j].String() + "\n" + j++ + } + } + for i < len(ls) { + // obtained has an unexpected labelArray + res += " + " + ls[i].String() + "\n" + i++ + } + for j < len(expected) { + // expected has a missing labelArray + res += " - " + expected[j].String() + "\n" + j++ + } + + return res +} + +// GetModel returns the LabelArrayList as a [][]string. Each member LabelArray +// becomes a []string. +func (ls LabelArrayList) String() string { + res := "" + for _, v := range ls { + if res != "" { + res += ", " + } + res += v.String() + } + return res +} + // Sort sorts the LabelArrayList in-place, but also returns the sorted list // for convenience. The LabelArrays themselves must already be sorted. This is // true for all constructors of LabelArray. diff --git a/backend/vendor/github.com/cilium/cilium/pkg/labels/cidr.go b/backend/vendor/github.com/cilium/cilium/pkg/labels/cidr.go index 003e09853..b2eb45f33 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/labels/cidr.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/labels/cidr.go @@ -13,7 +13,7 @@ import ( ) var ( - worldLabelNonDualStack = Label{Key: IDNameWorld, Source: LabelSourceReserved} + worldLabelNonDualStack = Label{Source: LabelSourceReserved, Key: IDNameWorld} worldLabelV4 = Label{Source: LabelSourceReserved, Key: IDNameWorldIPv4} worldLabelV6 = Label{Source: LabelSourceReserved, Key: IDNameWorldIPv6} ) @@ -93,12 +93,12 @@ func GetCIDRLabels(prefix netip.Prefix) Labels { l.cidr = &prefix lbls[l.Key] = l } - AddWorldLabel(prefix.Addr(), lbls) + lbls.AddWorldLabel(prefix.Addr()) return lbls } -func AddWorldLabel(addr netip.Addr, lbls Labels) { +func (lbls Labels) AddWorldLabel(addr netip.Addr) { switch { case !option.Config.IsDualStack(): lbls[worldLabelNonDualStack.Key] = worldLabelNonDualStack diff --git a/backend/vendor/github.com/cilium/cilium/pkg/labels/labels.go b/backend/vendor/github.com/cilium/cilium/pkg/labels/labels.go index 609f1bd54..40c714ee0 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/labels/labels.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/labels/labels.go @@ -9,11 +9,11 @@ import ( "fmt" "net/netip" "slices" - "sort" "strings" "github.com/sirupsen/logrus" + "github.com/cilium/cilium/pkg/container/cache" "github.com/cilium/cilium/pkg/logging/logfields" ) @@ -105,9 +105,18 @@ var ( // on IDNameKubeAPIServer. LabelKubeAPIServer = Labels{IDNameKubeAPIServer: NewLabel(IDNameKubeAPIServer, "", LabelSourceReserved)} + LabelKubeAPIServerExt = Labels{ + IDNameKubeAPIServer: NewLabel(IDNameKubeAPIServer, "", LabelSourceReserved), + IDNameWorld: NewLabel(IDNameWorld, "", LabelSourceReserved), + } + // LabelIngress is the label used for Ingress proxies. See comment // on IDNameIngress. LabelIngress = Labels{IDNameIngress: NewLabel(IDNameIngress, "", LabelSourceReserved)} + + // LabelKeyFixedIdentity is the label that can be used to define a fixed + // identity. + LabelKeyFixedIdentity = "io.cilium.fixed-identity" ) const ( @@ -138,6 +147,12 @@ const ( // LabelSourceCIDR is the label source for generated CIDRs. LabelSourceCIDR = "cidr" + // LabelSourceCIDRGroup is the label source used for labels from CIDRGroups + LabelSourceCIDRGroup = "cidrgroup" + + // LabelSourceCIDRGroupKeyPrefix is the source as a k8s selector key prefix + LabelSourceCIDRGroupKeyPrefix = LabelSourceCIDRGroup + "." + // LabelSourceNode is the label source for remote-nodes. LabelSourceNode = "node" @@ -149,10 +164,6 @@ const ( // LabelSourceDirectory is the label source for policies read from files LabelSourceDirectory = "directory" - - // LabelKeyFixedIdentity is the label that can be used to define a fixed - // identity. - LabelKeyFixedIdentity = "io.cilium.fixed-identity" ) // Label is the Cilium's representation of a container label. @@ -172,6 +183,60 @@ type Label struct { // Labels is a map of labels where the map's key is the same as the label's key. type Labels map[string]Label +// +// Convenience functions to use instead of Has(), which iterates through the labels +// + +// HasLabelWithKey returns true if lbls has a label with 'key' +func (l Labels) HasLabelWithKey(key string) bool { + _, ok := l[key] + return ok +} + +func (l Labels) HasFixedIdentityLabel() bool { + return l.HasLabelWithKey(LabelKeyFixedIdentity) +} + +func (l Labels) HasInitLabel() bool { + return l.HasLabelWithKey(IDNameInit) +} + +func (l Labels) HasHealthLabel() bool { + return l.HasLabelWithKey(IDNameHealth) +} + +func (l Labels) HasIngressLabel() bool { + return l.HasLabelWithKey(IDNameIngress) +} + +func (l Labels) HasHostLabel() bool { + return l.HasLabelWithKey(IDNameHost) +} + +func (l Labels) HasKubeAPIServerLabel() bool { + return l.HasLabelWithKey(IDNameKubeAPIServer) +} + +func (l Labels) HasRemoteNodeLabel() bool { + return l.HasLabelWithKey(IDNameRemoteNode) +} + +func (l Labels) HasWorldIPv6Label() bool { + return l.HasLabelWithKey(IDNameWorldIPv6) +} + +func (l Labels) HasWorldIPv4Label() bool { + return l.HasLabelWithKey(IDNameWorldIPv4) +} + +func (l Labels) HasNonDualstackWorldLabel() bool { + return l.HasLabelWithKey(IDNameWorld) +} + +func (l Labels) HasWorldLabel() bool { + return l.HasNonDualstackWorldLabel() || l.HasWorldIPv4Label() || l.HasWorldIPv6Label() +} + // GetPrintableModel turns the Labels into a sorted list of strings // representing the labels. func (l Labels) GetPrintableModel() (res []string) { @@ -190,7 +255,7 @@ func (l Labels) GetPrintableModel() (res []string) { } } - sort.Strings(res) + slices.Sort(res) return res } @@ -227,6 +292,17 @@ func (l Labels) GetFromSource(source string) Labels { return lbls } +// RemoveFromSource removes all labels that are from the given source +func (l Labels) RemoveFromSource(source string) Labels { + lbls := Labels{} + for k, v := range l { + if v.Source != source { + lbls[k] = v + } + } + return lbls +} + // NewLabel returns a new label from the given key, value and source. If source is empty, // the default value will be LabelSourceUnspec. If key starts with '$', the source // will be overwritten with LabelSourceReserved. If key contains ':', the value @@ -248,9 +324,9 @@ func NewLabel(key string, value string, source string) Label { } l := Label{ - Key: key, - Value: value, - Source: source, + Key: cache.Strings.Get(key), + Value: cache.Strings.Get(value), + Source: cache.Strings.Get(source), } if l.Source == LabelSourceCIDR { c, err := LabelToPrefix(l.Key) diff --git a/backend/vendor/github.com/cilium/cilium/pkg/loadbalancer/loadbalancer.go b/backend/vendor/github.com/cilium/cilium/pkg/loadbalancer/loadbalancer.go index b25218848..d6f258862 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/loadbalancer/loadbalancer.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/loadbalancer/loadbalancer.go @@ -4,16 +4,22 @@ package loadbalancer import ( + "encoding/binary" + "errors" "fmt" "net" "sort" "strconv" "strings" + "github.com/cilium/statedb/index" + "github.com/cilium/statedb/part" + "github.com/cilium/cilium/api/v1/models" "github.com/cilium/cilium/pkg/cidr" cmtypes "github.com/cilium/cilium/pkg/clustermesh/types" "github.com/cilium/cilium/pkg/option" + "github.com/cilium/cilium/pkg/u8proto" ) // SVCType is a type of a service. @@ -47,6 +53,49 @@ const ( SVCNatPolicyNat64 = SVCNatPolicy("Nat64") ) +type SVCForwardingMode string + +const ( + SVCForwardingModeUndef = SVCForwardingMode("undef") + SVCForwardingModeDSR = SVCForwardingMode("dsr") + SVCForwardingModeSNAT = SVCForwardingMode("snat") +) + +func ToSVCForwardingMode(s string) SVCForwardingMode { + if s == option.NodePortModeDSR { + return SVCForwardingModeDSR + } + if s == option.NodePortModeSNAT { + return SVCForwardingModeSNAT + } + return SVCForwardingModeUndef +} + +type SVCLoadBalancingAlgorithm uint8 + +const ( + SVCLoadBalancingAlgorithmUndef = 0 + SVCLoadBalancingAlgorithmRandom = 1 + SVCLoadBalancingAlgorithmMaglev = 2 +) + +func ToSVCLoadBalancingAlgorithm(s string) SVCLoadBalancingAlgorithm { + if s == option.NodePortAlgMaglev { + return SVCLoadBalancingAlgorithmMaglev + } + if s == option.NodePortAlgRandom { + return SVCLoadBalancingAlgorithmRandom + } + return SVCLoadBalancingAlgorithmUndef +} + +type SVCSourceRangesPolicy string + +const ( + SVCSourceRangesPolicyAllow = SVCSourceRangesPolicy("allow") + SVCSourceRangesPolicyDeny = SVCSourceRangesPolicy("deny") +) + // ServiceFlags is the datapath representation of the service flags that can be // used (lb{4,6}_service.flags) type ServiceFlags uint16 @@ -67,18 +116,27 @@ const ( serviceFlagLoopback = 1 << 11 serviceFlagIntLocalScope = 1 << 12 serviceFlagTwoScopes = 1 << 13 + serviceFlagQuarantined = 1 << 14 + // serviceFlagSrcRangesDeny is set on master + // svc entry, serviceFlagQuarantined is only + // set on backend svc entries. + serviceFlagSourceRangeDeny = 1 << 14 + serviceFlagFwdModeDSR = 1 << 15 ) type SvcFlagParam struct { SvcType SVCType SvcNatPolicy SVCNatPolicy + SvcFwdModeDSR bool SvcExtLocal bool SvcIntLocal bool SessionAffinity bool IsRoutable bool CheckSourceRange bool + SourceRangeDeny bool L7LoadBalancer bool LoopbackHostport bool + Quarantined bool } // NewSvcFlag creates service flag @@ -120,6 +178,9 @@ func NewSvcFlag(p *SvcFlagParam) ServiceFlags { if p.IsRoutable { flags |= serviceFlagRoutable } + if p.SourceRangeDeny { + flags |= serviceFlagSourceRangeDeny + } if p.CheckSourceRange { flags |= serviceFlagSourceRange } @@ -129,6 +190,12 @@ func NewSvcFlag(p *SvcFlagParam) ServiceFlags { if p.SvcExtLocal != p.SvcIntLocal && p.SvcType != SVCTypeClusterIP { flags |= serviceFlagTwoScopes } + if p.Quarantined { + flags |= serviceFlagQuarantined + } + if p.SvcFwdModeDSR { + flags |= serviceFlagFwdModeDSR + } return flags } @@ -188,9 +255,19 @@ func (s ServiceFlags) SVCNatPolicy(fe L3n4Addr) SVCNatPolicy { } } +// SVCSlotQuarantined +func (s ServiceFlags) SVCSlotQuarantined() bool { + if s&serviceFlagQuarantined == 0 { + return false + } else { + return true + } +} + // String returns the string implementation of ServiceFlags. func (s ServiceFlags) String() string { var str []string + seenDeny := false str = append(str, string(s.SVCType())) if s&serviceFlagExtLocalScope != 0 { @@ -210,6 +287,10 @@ func (s ServiceFlags) String() string { } if s&serviceFlagSourceRange != 0 { str = append(str, "check source-range") + if s&serviceFlagSourceRangeDeny != 0 { + seenDeny = true + str = append(str, "deny") + } } if s&serviceFlagNat46x64 != 0 { str = append(str, "46x64") @@ -220,7 +301,12 @@ func (s ServiceFlags) String() string { if s&serviceFlagLoopback != 0 { str = append(str, "loopback") } - + if !seenDeny && s&serviceFlagQuarantined != 0 { + str = append(str, "quarantined") + } + if s&serviceFlagFwdModeDSR != 0 { + str = append(str, "dsr") + } return strings.Join(str, ", ") } @@ -230,7 +316,10 @@ func (s ServiceFlags) UInt16() uint16 { } const ( + // NONE type. NONE = L4Type("NONE") + // ANY type. + ANY = L4Type("ANY") // TCP type. TCP = L4Type("TCP") // UDP type. @@ -325,14 +414,25 @@ func GetBackendStateFromFlags(flags uint8) BackendState { // DefaultBackendWeight is used when backend weight is not set in ServiceSpec const DefaultBackendWeight = 100 -var ( - // AllProtocols is the list of all supported L4 protocols - AllProtocols = []L4Type{TCP, UDP, SCTP} -) +// AllProtocols is the list of all supported L4 protocols +var AllProtocols = []L4Type{TCP, UDP, SCTP} // L4Type name. type L4Type = string +func L4TypeAsByte(l4 L4Type) byte { + switch l4 { + case TCP: + return 'T' + case UDP: + return 'U' + case SCTP: + return 'S' + default: + return '?' + } +} + // FEPortName is the name of the frontend's port. type FEPortName string @@ -347,6 +447,31 @@ type ServiceName struct { Cluster string } +func (n *ServiceName) Equal(other ServiceName) bool { + return n.Namespace == other.Namespace && + n.Name == other.Name && + n.Cluster == other.Cluster +} + +func (n ServiceName) Compare(other ServiceName) int { + switch { + case n.Namespace < other.Namespace: + return -1 + case n.Namespace > other.Namespace: + return 1 + case n.Name < other.Name: + return -1 + case n.Name > other.Name: + return 1 + case n.Cluster < other.Cluster: + return -1 + case n.Cluster > other.Cluster: + return 1 + default: + return 0 + } +} + func (n ServiceName) String() string { if n.Cluster != "" { return n.Cluster + "/" + n.Namespace + "/" + n.Name @@ -388,24 +513,29 @@ type Backend struct { } func (b *Backend) String() string { - return b.L3n4Addr.String() + state, _ := b.State.String() + return "[" + b.L3n4Addr.String() + "," + "State:" + state + "]" } // SVC is a structure for storing service details. type SVC struct { - Frontend L3n4AddrID // SVC frontend addr and an allocated ID - Backends []*Backend // List of service backends - Type SVCType // Service type - ExtTrafficPolicy SVCTrafficPolicy // Service external traffic policy - IntTrafficPolicy SVCTrafficPolicy // Service internal traffic policy - NatPolicy SVCNatPolicy // Service NAT 46/64 policy + Frontend L3n4AddrID // SVC frontend addr and an allocated ID + Backends []*Backend // List of service backends + Type SVCType // Service type + ForwardingMode SVCForwardingMode // Service mode (DSR vs SNAT) + ExtTrafficPolicy SVCTrafficPolicy // Service external traffic policy + IntTrafficPolicy SVCTrafficPolicy // Service internal traffic policy + NatPolicy SVCNatPolicy // Service NAT 46/64 policy + SourceRangesPolicy SVCSourceRangesPolicy SessionAffinity bool SessionAffinityTimeoutSec uint32 - HealthCheckNodePort uint16 // Service health check node port - Name ServiceName // Fully qualified service name + HealthCheckNodePort uint16 // Service health check node port + Name ServiceName // Fully qualified service name + LoadBalancerAlgorithm SVCLoadBalancingAlgorithm // Service LB algorithm (random or maglev) LoadBalancerSourceRanges []*cidr.CIDR L7LBProxyPort uint16 // Non-zero for L7 LB services LoopbackHostport bool + Annotations map[string]string } func (s *SVC) GetModel() *models.Service { @@ -526,6 +656,10 @@ func IsValidBackendState(state string) bool { func NewL4Type(name string) (L4Type, error) { switch strings.ToLower(name) { + case "none": + return NONE, nil + case "any": + return ANY, nil case "tcp": return TCP, nil case "udp": @@ -537,6 +671,19 @@ func NewL4Type(name string) (L4Type, error) { } } +func NewL4TypeFromNumber(proto uint8) L4Type { + switch proto { + case 6: + return TCP + case 17: + return UDP + case 132: + return SCTP + default: + return ANY + } +} + // L4Addr is an abstraction for the backend port with a L4Type, usually tcp or udp, and // the Port number. // @@ -560,6 +707,22 @@ func NewL4Addr(protocol L4Type, number uint16) *L4Addr { return &L4Addr{Protocol: protocol, Port: number} } +// Equals returns true if both L4Addr are considered equal. +func (l *L4Addr) Equals(o *L4Addr) bool { + switch { + case (l == nil) != (o == nil): + return false + case (l == nil) && (o == nil): + return true + } + return l.Port == o.Port && l.Protocol == o.Protocol +} + +// String returns a string representation of an L4Addr +func (l *L4Addr) String() string { + return fmt.Sprintf("%d/%s", l.Port, l.Protocol) +} + // L3n4Addr is used to store, as an unique L3+L4 address in the KVStore. It also // includes the lookup scope for frontend addresses which is used in service // handling for externalTrafficPolicy=Local and internalTrafficPolicy=Local, @@ -627,6 +790,76 @@ func NewL3n4AddrFromModel(base *models.FrontendAddress) (*L3n4Addr, error) { return &L3n4Addr{AddrCluster: addrCluster, L4Addr: *l4addr, Scope: scope}, nil } +// L3n4AddrFromString constructs a StateDB key by parsing the input in the form of +// L3n4Addr.String(), e.g. :/protocol. The input can be partial to construct +// keys for prefix searches, e.g. "1.2.3.4". +// This must be kept in sync with Bytes(). +func L3n4AddrFromString(key string) (index.Key, error) { + keyErr := errors.New("bad key, expected \":/(/i)\", e.g. \"1.2.3.4:80/TCP\"") + var out []byte + + if len(key) == 0 { + return index.Key{}, keyErr + } + + // Parse address + var addr string + if strings.HasPrefix(key, "[") { + addr, key, _ = strings.Cut(key[1:], "]") + switch { + case strings.HasPrefix(key, ":"): + key = key[1:] + case len(key) > 0: + return index.Key{}, keyErr + } + } else { + addr, key, _ = strings.Cut(key, ":") + } + + addrCluster, err := cmtypes.ParseAddrCluster(addr) + if err != nil { + return index.Key{}, fmt.Errorf("%w: %w", keyErr, err) + } + addr20 := addrCluster.As20() + out = append(out, addr20[:]...) + + // Parse port + if len(key) > 0 { + var s string + s, key, _ = strings.Cut(key, "/") + port, err := strconv.ParseUint(s, 10, 16) + if err != nil { + return index.Key{}, fmt.Errorf("%w: %w", keyErr, err) + } + out = binary.BigEndian.AppendUint16(out, uint16(port)) + } + + // Parse protocol + hadProto := false + if len(key) > 0 { + var proto string + proto, key, _ = strings.Cut(key, "/") + protoByte := L4TypeAsByte(strings.ToUpper(proto)) + if protoByte == '?' { + return index.Key{}, fmt.Errorf("%w: bad protocol, expected TCP/UDP/SCTP", keyErr) + } + out = append(out, protoByte) + hadProto = true + } + + // Parse scope. + switch { + case key == "i": + out = append(out, ScopeInternal) + case hadProto: + // Since external scope is implicit we add it here if the protocol was + // also provided. This way we can construct partial keys for prefix + // searching and we can construct complete key for 'get'. + out = append(out, ScopeExternal) + } + return index.Key(out), nil +} + // NewBackend creates the Backend struct instance from given params. // The default state for the returned Backend is BackendStateActive. func NewBackend(id BackendID, protocol L4Type, addrCluster cmtypes.AddrCluster, portNumber uint16) *Backend { @@ -653,8 +886,7 @@ func NewBackendFromBackendModel(base *models.BackendAddress) (*Backend, error) { return nil, fmt.Errorf("missing IP address") } - // FIXME: Should this be NONE ? - l4addr := NewL4Addr(NONE, base.Port) + l4addr := NewL4Addr(base.Protocol, base.Port) addrCluster, err := cmtypes.ParseAddrCluster(*base.IP) if err != nil { return nil, err @@ -688,8 +920,7 @@ func NewL3n4AddrFromBackendModel(base *models.BackendAddress) (*L3n4Addr, error) return nil, fmt.Errorf("missing IP address") } - // FIXME: Should this be NONE ? - l4addr := NewL4Addr(NONE, base.Port) + l4addr := NewL4Addr(base.Protocol, base.Port) addrCluster, err := cmtypes.ParseAddrCluster(*base.IP) if err != nil { return nil, err @@ -707,9 +938,10 @@ func (a *L3n4Addr) GetModel() *models.FrontendAddress { scope = models.FrontendAddressScopeInternal } return &models.FrontendAddress{ - IP: a.AddrCluster.String(), - Port: a.Port, - Scope: scope, + IP: a.AddrCluster.String(), + Protocol: a.Protocol, + Port: a.Port, + Scope: scope, } } @@ -722,6 +954,7 @@ func (b *Backend) GetBackendModel() *models.BackendAddress { stateStr, _ := b.State.String() return &models.BackendAddress{ IP: &addrClusterStr, + Protocol: b.Protocol, Port: b.Port, NodeName: b.NodeName, Zone: option.Config.GetZone(b.ZoneID), @@ -731,17 +964,10 @@ func (b *Backend) GetBackendModel() *models.BackendAddress { } } -// String returns the L3n4Addr in the "IPv4:Port[/Scope]" format for IPv4 and -// "[IPv6]:Port[/Scope]" format for IPv6. +// String returns the L3n4Addr in the "IPv4:Port/Protocol[/Scope]" format for IPv4 and +// "[IPv6]:Port/Protocol[/Scope]" format for IPv6. func (a *L3n4Addr) String() string { - var scope string - if a.Scope == ScopeInternal { - scope = "/i" - } - if a.IsIPv6() { - return "[" + a.AddrCluster.String() + "]:" + strconv.FormatUint(uint64(a.Port), 10) + scope - } - return a.AddrCluster.String() + ":" + strconv.FormatUint(uint64(a.Port), 10) + scope + return a.StringWithProtocol() } // StringWithProtocol returns the L3n4Addr in the "IPv4:Port/Protocol[/Scope]" @@ -759,8 +985,6 @@ func (a *L3n4Addr) StringWithProtocol() string { // StringID returns the L3n4Addr as string to be used for unique identification func (a *L3n4Addr) StringID() string { - // This does not include the protocol right now as the datapath does - // not include the protocol in the lookup of the service IP. return a.String() } @@ -768,14 +992,15 @@ func (a *L3n4Addr) StringID() string { // Note: the resulting string is meant to be used as a key for maps and is not // readable by a human eye when printed out. func (a L3n4Addr) Hash() string { - const lenProto = 0 // proto is omitted for now + const lenProto = 1 // proto is uint8 const lenScope = 1 // scope is uint8 which is an alias for byte const lenPort = 2 // port is uint16 which is 2 bytes b := make([]byte, cmtypes.AddrClusterLen+lenProto+lenScope+lenPort) ac20 := a.AddrCluster.As20() copy(b, ac20[:]) - // FIXME: add Protocol once we care about protocols + u8p, _ := u8proto.ParseProtocol(a.Protocol) + b[net.IPv6len] = byte(u8p) // scope is a uint8 which is an alias for byte so a cast is safe b[net.IPv6len+lenProto] = byte(a.Scope) // port is a uint16, so 2 bytes @@ -789,6 +1014,30 @@ func (a *L3n4Addr) IsIPv6() bool { return a.AddrCluster.Is6() } +// ProtocolsEqual returns true if protocols match for both L3 and L4. +func (l *L3n4Addr) ProtocolsEqual(o *L3n4Addr) bool { + return l.Protocol == o.Protocol && + (l.AddrCluster.Is4() && o.AddrCluster.Is4() || + l.AddrCluster.Is6() && o.AddrCluster.Is6()) +} + +// Bytes returns the address as a byte slice for indexing purposes. +// Similar to Hash() but includes the L4 protocol. +func (l L3n4Addr) Bytes() []byte { + const keySize = cmtypes.AddrClusterLen + + 2 /* Port */ + + 1 /* Protocol */ + + 1 /* Scope */ + + key := make([]byte, 0, keySize) + addr20 := l.AddrCluster.As20() + key = append(key, addr20[:]...) + key = binary.BigEndian.AppendUint16(key, l.Port) + key = append(key, L4TypeAsByte(l.Protocol)) + key = append(key, l.Scope) + return key +} + // L3n4AddrID is used to store, as an unique L3+L4 plus the assigned ID, in the // KVStore. // @@ -817,3 +1066,10 @@ func NewL3n4AddrID(protocol L4Type, addrCluster cmtypes.AddrCluster, portNumber func (l *L3n4AddrID) IsIPv6() bool { return l.L3n4Addr.IsIPv6() } + +func init() { + // Register the types for use with part.Map and part.Set. + part.RegisterKeyType( + func(name ServiceName) []byte { return []byte(name.String()) }) + part.RegisterKeyType(L3n4Addr.Bytes) +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/loadbalancer/zz_generated.deepcopy.go b/backend/vendor/github.com/cilium/cilium/pkg/loadbalancer/zz_generated.deepcopy.go index 99b764a8a..465db266e 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/loadbalancer/zz_generated.deepcopy.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/loadbalancer/zz_generated.deepcopy.go @@ -106,6 +106,13 @@ func (in *SVC) DeepCopyInto(out *SVC) { } } } + if in.Annotations != nil { + in, out := &in.Annotations, &out.Annotations + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } return } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/lock/map.go b/backend/vendor/github.com/cilium/cilium/pkg/lock/map.go index f54702a49..04c3b09af 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/lock/map.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/lock/map.go @@ -106,3 +106,13 @@ func (m *Map[K, V]) convert(value any, ok bool) (V, bool) { return value.(V), true } + +func (m *Map[K, V]) IsEmpty() bool { + empty := true + check := func(_ K, _ V) bool { + empty = false + return false // returning false breaks the iteration + } + m.Range(check) + return empty +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/lock/stoppable_waitgroup.go b/backend/vendor/github.com/cilium/cilium/pkg/lock/stoppable_waitgroup.go index 090c351af..8f5f2d6b0 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/lock/stoppable_waitgroup.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/lock/stoppable_waitgroup.go @@ -36,11 +36,11 @@ func (l *StoppableWaitGroup) Stop() { l.stopOnce.Do(func() { // We will do an Add here so we can perform a Done after we close // the l.noopAdd channel. - l.Add() + done := l.Add() close(l.noopAdd) - // Calling Done() here so we know that in case 'l.i' will become zero + // Calling done() here so we know that in case 'l.i' will become zero // it will trigger a close of l.noopDone channel. - l.Done() + done() }) } @@ -57,22 +57,32 @@ func (l *StoppableWaitGroup) WaitChannel() <-chan struct{} { return l.noopDone } +// DoneFunc returned by Add() marks the goroutine as completed. +type DoneFunc func() + // Add adds the goroutine to the list of routines to that Wait() will have // to wait before it returns. // If the StoppableWaitGroup was stopped this will be a no-op. -func (l *StoppableWaitGroup) Add() { +// Returns a "done" function to mark the goroutine as completed. Wait() is +// unblocked once all done functions obtained before Stop() have been called. +func (l *StoppableWaitGroup) Add() DoneFunc { select { case <-l.noopAdd: + return func() {} default: l.i.Add(1) + var once sync.Once + return func() { + once.Do(l.done) + } } } -// Done will decrement the number of goroutines the Wait() will have to wait +// done will decrement the number of goroutines the Wait() will have to wait // before it returns. // This function is a no-op once all goroutines that have called 'Add()' have // also called 'Done()' and the StoppableWaitGroup was stopped. -func (l *StoppableWaitGroup) Done() { +func (l *StoppableWaitGroup) done() { select { case <-l.noopDone: return diff --git a/backend/vendor/github.com/cilium/cilium/pkg/logging/logfields/logfields.go b/backend/vendor/github.com/cilium/cilium/pkg/logging/logfields/logfields.go index 78a963c70..89d2e4638 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/logging/logfields/logfields.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/logging/logfields/logfields.go @@ -11,6 +11,21 @@ const ( // LogSubsys is the field denoting the subsystem when logging LogSubsys = "subsys" + // Version is a field for a generic version number + Version = "version" + + // NewVersion is a field for a new version number + NewVersion = "newVersion" + + // OldVersion is a field for a old version number + OldVersion = "oldVersion" + + // Stacktrace is a field for a stacktrace + Stacktrace = "stacktrace" + + // Changes is a generic field for any relevant changes + Changes = "changes" + // Signal is the field to print os signals on exit etc. Signal = "signal" @@ -290,6 +305,12 @@ const ( // SessionAffinityTimeout is a timeout for the session affinity SessionAffinityTimeout = "sessionAffinityTimeout" + // LoadBalancerAlgorithm is algorithm for backend selection + LoadBalancerAlgorithm = "LoadBalancerAlgorithm" + + // LoadBalancerSourceRangesPolicy is the LB SVC source ranges policy + LoadBalancerSourceRangesPolicy = "loadBalancerSourceRangesPolicy" + // LoadBalancerSourceRanges is the LB SVC source ranges LoadBalancerSourceRanges = "loadBalancerSourceRanges" @@ -317,6 +338,9 @@ const ( // ServiceType is the type of the service ServiceType = "svcType" + // ServiceForwardingMode is the mode of the service (SNAT, DSR) + ServiceForwardingMode = "svcForwardingMode" + // ServiceHealthCheckNodePort is the port on which we serve health checks ServiceHealthCheckNodePort = "svcHealthCheckNodePort" @@ -426,6 +450,9 @@ const ( // Selector is a selector of any sort: endpoint, CIDR, toFQDNs Selector = "Selector" + // SelectorCacgeVersion is the version of the SelectorCache. + SelectorCacheVersion = "selectorCacheVersion" + // EndpointLabelSelector is a selector for Endpoints by label EndpointLabelSelector = "EndpointLabelSelector" @@ -680,6 +707,9 @@ const ( // CEPUID is the UID of the CiliumEndpoint. CEPUID = "ciliumEndpointUID" + // CIDName is the name of the CiliumIdentity. + CIDName = "ciliumIdentityName" + // CESName is the name of the CiliumEndpointSlice. CESName = "ciliumEndpointSliceName" @@ -690,7 +720,8 @@ const ( WorkQueueBurstLimit = "workQueueBurstLimit" // WorkQueueSyncBackoff is the backoff time used by workqueues before an attempt to retry sync with k8s-apiserver. - WorkQueueSyncBackOff = "workQueueSyncBackOff" + WorkQueueSyncBackOff = "workQueueSyncBackOff" + WorkQueueMaxSyncBackOff = "workQueueMaxSyncBackOff" // SourceIP is a source IP SourceIP = "sourceIP" diff --git a/backend/vendor/github.com/cilium/cilium/pkg/logging/logging.go b/backend/vendor/github.com/cilium/cilium/pkg/logging/logging.go index 4c03f85a7..afd927d5c 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/logging/logging.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/logging/logging.go @@ -8,6 +8,7 @@ import ( "bytes" "flag" "fmt" + "io" "os" "regexp" "strings" @@ -51,7 +52,16 @@ const ( // default to avoid external dependencies from writing out unexpectedly var DefaultLogger = initializeDefaultLogger() -func initializeKLog() { +var klogErrorOverrides = []logLevelOverride{ + { + // TODO: We can drop the misspelled case here once client-go version is bumped to include: + // https://github.com/kubernetes/client-go/commit/ae43527480ee9d8750fbcde3d403363873fd3d89 + matcher: regexp.MustCompile("Failed to update lock (optimitically|optimistically).*falling back to slow path"), + targetLevel: logrus.InfoLevel, + }, +} + +func initializeKLog() error { log := DefaultLogger.WithField(logfields.LogSubsys, "klog") //Create a new flag set and set error handler @@ -69,13 +79,120 @@ func initializeKLog() { // necessary. klogFlags.Set("skip_headers", "true") + errWriter, err := severityOverrideWriter(logrus.ErrorLevel, log, klogErrorOverrides) + if err != nil { + return fmt.Errorf("failed to setup klog error writer: %w", err) + } + klog.SetOutputBySeverity("INFO", log.WriterLevel(logrus.InfoLevel)) klog.SetOutputBySeverity("WARNING", log.WriterLevel(logrus.WarnLevel)) - klog.SetOutputBySeverity("ERROR", log.WriterLevel(logrus.ErrorLevel)) + klog.SetOutputBySeverity("ERROR", errWriter) klog.SetOutputBySeverity("FATAL", log.WriterLevel(logrus.FatalLevel)) // Do not repeat log messages on all severities in klog klogFlags.Set("one_output", "true") + + return nil +} + +type logLevelOverride struct { + matcher *regexp.Regexp + targetLevel logrus.Level +} + +func levelToPrintFunc(log *logrus.Entry, level logrus.Level) (func(args ...any), error) { + var printFunc func(args ...any) + switch level { + case logrus.InfoLevel: + printFunc = log.Info + case logrus.WarnLevel: + printFunc = log.Warn + case logrus.ErrorLevel: + printFunc = log.Error + default: + return nil, fmt.Errorf("unsupported log level %q", level) + } + return printFunc, nil +} + +func severityOverrideWriter(level logrus.Level, log *logrus.Entry, overrides []logLevelOverride) (*io.PipeWriter, error) { + printFunc, err := levelToPrintFunc(log, level) + if err != nil { + return nil, err + } + reader, writer := io.Pipe() + + for _, override := range overrides { + _, err := levelToPrintFunc(log, override.targetLevel) + if err != nil { + return nil, fmt.Errorf("failed to validate klog matcher level overrides (%s -> %s): %w", + override.matcher.String(), level, err) + } + } + go writerScanner(log, reader, printFunc, overrides) + return writer, nil +} + +// writerScanner scans the input from the reader and writes it to the appropriate +// log print func. +// In cases where the log message is overridden, that will be emitted via the specified +// target log level logger function. +// +// Based on code from logrus WriterLevel implementation [1] +// +// [1] https://github.com/sirupsen/logrus/blob/v1.9.3/writer.go#L66-L97 +func writerScanner( + entry *logrus.Entry, + reader *io.PipeReader, + defaultPrintFunc func(args ...interface{}), + overrides []logLevelOverride) { + + defer reader.Close() + + scanner := bufio.NewScanner(reader) + + // Set the buffer size to the maximum token size to avoid buffer overflows + scanner.Buffer(make([]byte, bufio.MaxScanTokenSize), bufio.MaxScanTokenSize) + + // Define a split function to split the input into chunks of up to 64KB + chunkSize := bufio.MaxScanTokenSize // 64KB + splitFunc := func(data []byte, atEOF bool) (int, []byte, error) { + if len(data) >= chunkSize { + return chunkSize, data[:chunkSize], nil + } + + return bufio.ScanLines(data, atEOF) + } + + // Use the custom split function to split the input + scanner.Split(splitFunc) + + // Scan the input and write it to the logger using the specified print function + for scanner.Scan() { + line := scanner.Text() + matched := false + for _, override := range overrides { + printFn, err := levelToPrintFunc(entry, override.targetLevel) + if err != nil { + entry.WithError(err).WithField("matcher", override.matcher). + Error("BUG: failed to get printer for klog override matcher") + continue + } + if override.matcher.FindString(line) != "" { + printFn(strings.TrimRight(line, "\r\n")) + matched = true + break + } + } + if !matched { + defaultPrintFunc(strings.TrimRight(scanner.Text(), "\r\n")) + } + } + + if err := scanner.Err(); err != nil { + entry.WithError(err).Error("klog logrus override scanner stopped scanning with an error. " + + "This may mean that k8s client-go logs will no longer be emitted") + } } // LogOptions maps configuration key-value pairs related to logging. @@ -218,6 +335,7 @@ func GetFormatter(format LogFormat) logrus.Formatter { case LogFormatTextTimestamp: return &logrus.TextFormatter{ DisableTimestamp: false, + TimestampFormat: time.RFC3339Nano, DisableColors: true, } case LogFormatJSON: diff --git a/backend/vendor/github.com/cilium/cilium/pkg/logging/slog.go b/backend/vendor/github.com/cilium/cilium/pkg/logging/slog.go index ec95a7e6b..ca062fe0f 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/logging/slog.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/logging/slog.go @@ -11,8 +11,13 @@ import ( "time" "github.com/sirupsen/logrus" + + "github.com/cilium/cilium/pkg/logging/logfields" ) +// logrErrorKey is the key used by the logr library for the error parameter. +const logrErrorKey = "err" + // SlogNopHandler discards all logs. var SlogNopHandler slog.Handler = nopHandler{} @@ -26,7 +31,7 @@ func (n nopHandler) WithGroup(string) slog.Handler { return n } var slogHandlerOpts = &slog.HandlerOptions{ AddSource: false, Level: slog.LevelInfo, - ReplaceAttr: replaceLevelAndDropTime, + ReplaceAttr: replaceAttrFnWithoutTimestamp, } // Default slog logger. Will be overwritten once initializeSlog is called. @@ -59,9 +64,9 @@ func initializeSlog(logOpts LogOptions, useStdout bool) { logFormat := logOpts.GetLogFormat() switch logFormat { case LogFormatJSON, LogFormatText: - opts.ReplaceAttr = replaceLevelAndDropTime + opts.ReplaceAttr = replaceAttrFnWithoutTimestamp case LogFormatJSONTimestamp, LogFormatTextTimestamp: - opts.ReplaceAttr = replaceLevel + opts.ReplaceAttr = replaceAttrFn } writer := os.Stderr @@ -83,7 +88,7 @@ func initializeSlog(logOpts LogOptions, useStdout bool) { } } -func replaceLevel(groups []string, a slog.Attr) slog.Attr { +func replaceAttrFn(groups []string, a slog.Attr) slog.Attr { switch a.Key { case slog.TimeKey: // Adjust to timestamp format that logrus uses; except that we can't @@ -95,21 +100,22 @@ func replaceLevel(groups []string, a slog.Attr) slog.Attr { Key: a.Key, Value: slog.StringValue(strings.ToLower(a.Value.String())), } + case logrErrorKey: + // Uniform the attribute identifying the error + return slog.Attr{ + Key: logfields.Error, + Value: a.Value, + } } return a } -func replaceLevelAndDropTime(groups []string, a slog.Attr) slog.Attr { +func replaceAttrFnWithoutTimestamp(groups []string, a slog.Attr) slog.Attr { switch a.Key { case slog.TimeKey: // Drop timestamps return slog.Attr{} - case slog.LevelKey: - // Lower-case the log level - return slog.Attr{ - Key: a.Key, - Value: slog.StringValue(strings.ToLower(a.Value.String())), - } + default: + return replaceAttrFn(groups, a) } - return a } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/metrics/bpf.go b/backend/vendor/github.com/cilium/cilium/pkg/metrics/bpf.go index c13ca2587..a44e15195 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/metrics/bpf.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/metrics/bpf.go @@ -8,26 +8,52 @@ import ( "encoding/json" "fmt" "os/exec" + "slices" + "strings" "github.com/prometheus/client_golang/prometheus" "github.com/sirupsen/logrus" + "golang.org/x/sync/singleflight" "github.com/cilium/cilium/pkg/time" ) type bpfCollector struct { - bpfMapsMemory *prometheus.Desc - bpfProgMemory *prometheus.Desc + sfg singleflight.Group + + bpfMapsCount *prometheus.Desc + bpfMapsMemory *prometheus.Desc + bpfProgramsCount *prometheus.Desc + bpfProgramsMemory *prometheus.Desc +} + +type bpfUsage struct { + ids []uint64 + virtualMemoryMaxBytes float64 +} + +func (bu bpfUsage) count() float64 { + return float64(len(bu.ids)) } func newbpfCollector() *bpfCollector { return &bpfCollector{ + bpfMapsCount: prometheus.NewDesc( + prometheus.BuildFQName(Namespace, "", "bpf_maps"), + "Total count of BPF maps.", + nil, nil, + ), bpfMapsMemory: prometheus.NewDesc( prometheus.BuildFQName(Namespace, "", "bpf_maps_virtual_memory_max_bytes"), "BPF maps kernel max memory usage size in bytes.", nil, nil, ), - bpfProgMemory: prometheus.NewDesc( + bpfProgramsCount: prometheus.NewDesc( + prometheus.BuildFQName(Namespace, "", "bpf_progs"), + "Total count of BPF programs.", + nil, nil, + ), + bpfProgramsMemory: prometheus.NewDesc( prometheus.BuildFQName(Namespace, "", "bpf_progs_virtual_memory_max_bytes"), "BPF programs kernel max memory usage size in bytes.", nil, nil, @@ -36,55 +62,111 @@ func newbpfCollector() *bpfCollector { } func (s *bpfCollector) Describe(ch chan<- *prometheus.Desc) { - ch <- s.bpfMapsMemory - ch <- s.bpfProgMemory + prometheus.DescribeByCollect(s, ch) } type memoryEntry struct { + ID uint64 `json:"id"` + Name string `json:"name"` BytesMemlock uint64 `json:"bytes_memlock"` + + // (returned only for programs) + MapIDs []uint64 `json:"map_ids"` } -func getMemoryUsage(typ string) (uint64, error) { +func getBPFUsage(typ string, filter func(memoryEntry) bool) (bpfUsage, error) { ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) defer cancel() cmd := exec.CommandContext(ctx, "bpftool", "-j", typ, "show") out, err := cmd.Output() if err != nil { - return 0, fmt.Errorf("unable to get bpftool output: %w", err) + return bpfUsage{}, fmt.Errorf("unable to get bpftool output: %w", err) } - var memoryEntries []memoryEntry + var ( + memoryEntries []memoryEntry + usage bpfUsage + ) + err = json.Unmarshal(out, &memoryEntries) if err != nil { - return 0, fmt.Errorf("unable to unmarshal bpftool output: %w", err) + return usage, fmt.Errorf("unable to unmarshal bpftool output: %w", err) } - var totalMem uint64 + for _, entry := range memoryEntries { - totalMem += entry.BytesMemlock + if !filter(entry) { + continue + } + + usage.ids = append(usage.ids, entry.ID) + usage.virtualMemoryMaxBytes += float64(entry.BytesMemlock) } - return totalMem, nil + + return usage, nil } func (s *bpfCollector) Collect(ch chan<- prometheus.Metric) { - mapMem, err := getMemoryUsage("map") - if err != nil { - logrus.WithError(err).Error("Error while getting BPF maps memory usage") - } else { - ch <- prometheus.MustNewConstMetric( - s.bpfMapsMemory, - prometheus.GaugeValue, - float64(mapMem), - ) + type bpfUsageResults struct { + maps bpfUsage + programs bpfUsage } - progMem, err := getMemoryUsage("prog") - if err != nil { - logrus.WithError(err).Error("Error while getting BPF progs memory usage") - } else { - ch <- prometheus.MustNewConstMetric( - s.bpfProgMemory, - prometheus.GaugeValue, - float64(progMem), + // Avoid querying BPF multiple times concurrently, if it happens, additional callers will wait for the + // first one to finish and reuse its resulting values. + results, err, _ := s.sfg.Do("collect", func() (interface{}, error) { + var ( + results = bpfUsageResults{} + err error ) + + if results.maps, err = getBPFUsage("map", func(entry memoryEntry) bool { + // Filter on maps prefixed with cilium_ + return strings.HasPrefix(entry.Name, "cilium_") + }); err != nil { + return results, err + } + + if results.programs, err = getBPFUsage("prog", func(entry memoryEntry) bool { + // Filter on programs related to cilium maps + for i := 0; i < len(entry.MapIDs); i++ { + if slices.Contains(results.maps.ids, entry.MapIDs[i]) { + return true + } + } + return false + }); err != nil { + return results, err + } + + return results, nil + }) + + if err != nil { + logrus.WithError(err).Error("retrieving BPF maps & programs usage") + return } + + ch <- prometheus.MustNewConstMetric( + s.bpfMapsCount, + prometheus.GaugeValue, + results.(bpfUsageResults).maps.count(), + ) + + ch <- prometheus.MustNewConstMetric( + s.bpfMapsMemory, + prometheus.GaugeValue, + results.(bpfUsageResults).maps.virtualMemoryMaxBytes, + ) + + ch <- prometheus.MustNewConstMetric( + s.bpfProgramsCount, + prometheus.GaugeValue, + results.(bpfUsageResults).programs.count(), + ) + + ch <- prometheus.MustNewConstMetric( + s.bpfProgramsMemory, + prometheus.GaugeValue, + results.(bpfUsageResults).programs.virtualMemoryMaxBytes, + ) } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/metrics/cell.go b/backend/vendor/github.com/cilium/cilium/pkg/metrics/cell.go index cd37f76d5..fcfa7cf0f 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/metrics/cell.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/metrics/cell.go @@ -23,6 +23,10 @@ var Cell = cell.Module("metrics", "Metrics", // phase are emitted as metrics. FlushLoggingMetrics() }), + cell.Provide( + metricsCommands, + newSampler, + ), ) // Metric constructs a new metric cell. diff --git a/backend/vendor/github.com/cilium/cilium/pkg/metrics/cmd.go b/backend/vendor/github.com/cilium/cilium/pkg/metrics/cmd.go new file mode 100644 index 000000000..d9b9ffca1 --- /dev/null +++ b/backend/vendor/github.com/cilium/cilium/pkg/metrics/cmd.go @@ -0,0 +1,513 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package metrics + +import ( + "cmp" + _ "embed" + "encoding/json" + "fmt" + "html/template" + "io" + "maps" + "math" + "os" + "regexp" + "slices" + "sort" + "strings" + "text/tabwriter" + + "github.com/cilium/hive" + "github.com/cilium/hive/script" + "github.com/prometheus/client_golang/prometheus" + dto "github.com/prometheus/client_model/go" + "github.com/spf13/pflag" + "gopkg.in/yaml.v3" + + "github.com/cilium/cilium/api/v1/models" +) + +func metricsCommands(r *Registry, dc *sampler) hive.ScriptCmdsOut { + return hive.NewScriptCmds(map[string]script.Cmd{ + "metrics": metricsCommand(r, dc), + "metrics/plot": plotCommand(dc), + "metrics/html": htmlCommand(dc), + }) +} + +// metricsCommand implements the "metrics" script command. This can be accessed +// in script tests, via "cilium-dbg shell" or indirectly via 'cilium-dbg metrics list'. +func metricsCommand(r *Registry, dc *sampler) script.Cmd { + return script.Command( + script.CmdUsage{ + Summary: "List registered metrics", + Args: "[match regex]", + Flags: func(fs *pflag.FlagSet) { + fs.StringP("out", "o", "", "Output file") + fs.BoolP("sampled", "s", false, "Show sampled metrics") + fs.StringP("format", "f", "table", "Output format, one of: table, json or yaml") + }, + RegexpArgs: func(rawArgs ...string) []int { + for i, arg := range rawArgs { + if !strings.HasPrefix(arg, "-") { + return []int{i} + } + if arg == "--" { + return []int{i + 1} + } + } + return nil + }, + Detail: []string{ + "To write the metrics to a file: 'metrics --out=/path/to/file'", + "To show metrics matching a regex: 'metrics foo.*'", + "To show samples from last 60 minutes: 'metrics --sampled'", + "", + "The metric samples can be plotted with 'metrics/plot' command.", + "", + "Run 'metrics -h' for extended help of the flags.", + "", + "Metrics can be filtered with a regexp. The match is made", + "against the metric name and its labels.", + "For example 'metrics regen.*scope=total' would match the", + "regenerations metric with one of the labels being scope=total", + "", + "In the sample output the 50th, 90th and 99th quantiles are shown", + "for histograms, e.g. in '15ms / 30ms / 60ms' 50th is 15ms and so on.", + }, + }, + func(s *script.State, args ...string) (script.WaitFunc, error) { + file, err := s.Flags.GetString("out") + if err != nil { + return nil, err + } + sampled, err := s.Flags.GetBool("sampled") + if err != nil { + return nil, err + } + format, err := s.Flags.GetString("format") + if err != nil { + return nil, err + } + var re *regexp.Regexp + if len(args) > 0 { + var err error + re, err = regexp.Compile(args[0]) + if err != nil { + return nil, fmt.Errorf("regex: %w", err) + } + } + + var w io.Writer + if file != "" { + f, err := os.OpenFile(s.Path(file), os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0644) + if err != nil { + return nil, err + } + w = f + defer f.Close() + } else { + w = s.LogWriter() + } + + if sampled { + return nil, writeMetricsFromSamples(w, format, re, dc) + } + + return nil, writeMetricsFromRegistry(w, format, re, r.inner) + }, + ) +} + +// plotCommand implements the "metrics/plot" script command. This can be accessed +// in script tests, via "cilium-dbg shell" or indirectly via 'cilium-dbg metrics list'. +func plotCommand(dc *sampler) script.Cmd { + return script.Command( + script.CmdUsage{ + Summary: "Plot sampled metrics as a line graph", + Args: "[match regex]", + Flags: func(fs *pflag.FlagSet) { + fs.StringP("out", "o", "", "Output file") + fs.Bool("rate", false, "Plot the rate of change") + }, + RegexpArgs: func(rawArgs ...string) []int { + for i, arg := range rawArgs { + if !strings.HasPrefix(arg, "-") { + return []int{i} + } + if arg == "--" { + return []int{i + 1} + } + } + return nil + }, + Detail: []string{ + "The sampled metric is specified with the regex argument.", + "Both the metric name and its labels are matched against.", + "Use the 'metrics' command to search for the right regex.", + "", + "For example to plot the 'go_sched_latencies_seconds':", + "", + "cilium> metrics/plot go_sched_lat", + "", + "Or to plot the sysctl reconciliation durations:", + "", + "cilium> metrics/plot reconciler_duration.*sysctl", + "", + "Specify '-rate' to show the rate of change for a counter,", + "for example to plot how many bytes are allocated per minute:", + "", + "cilium> metrics/plot -rate go.*heap_alloc_bytes", + }, + }, + func(s *script.State, args ...string) (script.WaitFunc, error) { + s.Logf("args: %v\n", args) + + file, err := s.Flags.GetString("out") + if err != nil { + return nil, err + } + rate, err := s.Flags.GetBool("rate") + if err != nil { + return nil, err + } + var re *regexp.Regexp + if len(args) > 0 { + var err error + re, err = regexp.Compile(args[0]) + if err != nil { + return nil, fmt.Errorf("regex: %w", err) + } + } + + var w io.Writer + if file != "" { + f, err := os.OpenFile(s.Path(file), os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0644) + if err != nil { + return nil, err + } + w = f + defer f.Close() + } else { + w = s.LogWriter() + } + + dc.mu.Lock() + defer dc.mu.Unlock() + + if re == nil { + fmt.Fprintln(w, "regexp needed to find metric") + return nil, nil + } + + sampledMetrics := slices.Collect(maps.Values(dc.metrics)) + slices.SortFunc(sampledMetrics, func(a, b debugSamples) int { + return cmp.Or( + cmp.Compare(a.getName(), b.getName()), + cmp.Compare(a.getLabels(), b.getLabels()), + ) + }) + + var ds debugSamples + matched := true + for _, ds = range sampledMetrics { + matched = re.MatchString(ds.getName() + ds.getLabels()) + if matched { + break + } + } + if !matched { + fmt.Fprintf(w, "no metric found matching regexp %q", re.String()) + return nil, nil + } + + switch ds := ds.(type) { + case *gaugeOrCounterSamples: + PlotSamples(w, rate, ds.getName(), ds.getLabels(), samplingTimeSpan, ds.samples.grab(), ds.bits) + case *histogramSamples: + PlotSamples(w, rate, ds.getName()+" (p50)", ds.getLabels(), samplingTimeSpan, ds.p50.grab(), ds.bits) + fmt.Fprintln(w) + PlotSamples(w, rate, ds.getName()+" (p90)", ds.getLabels(), samplingTimeSpan, ds.p90.grab(), ds.bits) + fmt.Fprintln(w) + PlotSamples(w, rate, ds.getName()+" (p99)", ds.getLabels(), samplingTimeSpan, ds.p99.grab(), ds.bits) + } + + return nil, nil + }, + ) +} + +//go:embed dump.html.tmpl +var htmlTemplate string + +func htmlCommand(dc *sampler) script.Cmd { + return script.Command( + script.CmdUsage{ + Summary: "Produce a HTML file from the sampled metrics", + Args: "", + Flags: func(fs *pflag.FlagSet) { + fs.StringP("out", "o", "", "Output file") + }, + Detail: []string{}, + }, + func(s *script.State, args ...string) (script.WaitFunc, error) { + file, err := s.Flags.GetString("out") + if err != nil { + return nil, err + } + var w io.Writer + if file != "" { + f, err := os.OpenFile(s.Path(file), os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0644) + if err != nil { + return nil, err + } + w = f + defer f.Close() + } else { + w = s.LogWriter() + } + + dc.mu.Lock() + defer dc.mu.Unlock() + + dump := JSONSampleDump{ + NumSamples: numSamples, + IntervalSeconds: int(samplingInterval.Seconds()), + } + for _, ds := range dc.metrics { + dump.Samples = append(dump.Samples, ds.getJSON()) + } + slices.SortFunc(dump.Samples, func(a, b JSONSamples) int { + return cmp.Or( + cmp.Compare(a.Name, b.Name), + cmp.Compare(a.Labels, b.Labels), + ) + }) + + tmpl, err := template.New("metrics.html").Parse(htmlTemplate) + if err != nil { + return nil, err + } + return nil, tmpl.Execute(w, &dump) + }, + ) +} + +func writeMetricsFromSamples(outw io.Writer, format string, re *regexp.Regexp, dc *sampler) error { + dc.mu.Lock() + defer dc.mu.Unlock() + + sampledMetrics := slices.Collect(maps.Values(dc.metrics)) + slices.SortFunc(sampledMetrics, func(a, b debugSamples) int { + return cmp.Or( + cmp.Compare(a.getName(), b.getName()), + cmp.Compare(a.getLabels(), b.getLabels()), + ) + }) + + switch format { + case "json", "yaml": + dump := JSONSampleDump{ + NumSamples: numSamples, + IntervalSeconds: int(samplingInterval.Seconds()), + } + for _, ds := range sampledMetrics { + if re != nil && !re.MatchString(ds.getName()+ds.getLabels()) { + continue + } + dump.Samples = append(dump.Samples, ds.getJSON()) + } + if format == "json" { + enc := json.NewEncoder(outw) + enc.SetIndent("", " ") + return enc.Encode(dump) + } else { + enc := yaml.NewEncoder(outw) + return enc.Encode(dump) + } + case "table": + w := tabwriter.NewWriter(outw, 5, 0, 3, ' ', 0) + defer w.Flush() + _, err := fmt.Fprintln(w, "Metric\tLabels\t5min\t30min\t60min\t120min") + if err != nil { + return err + } + for _, ds := range sampledMetrics { + if re != nil && !re.MatchString(ds.getName()+ds.getLabels()) { + continue + } + m5, m30, m60, m120 := ds.get() + _, err := fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\t%s\n", ds.getName(), ds.getLabels(), m5, m30, m60, m120) + if err != nil { + return err + } + } + return nil + default: + return fmt.Errorf("unknown format %q", format) + } +} + +func writeMetricsFromRegistry(w io.Writer, format string, re *regexp.Regexp, reg *prometheus.Registry) error { + metrics, err := reg.Gather() + if err != nil { + return fmt.Errorf("gather: %w", err) + } + + var ( + // Since Gather() collects the metrics in unsorted order, we need + // to collect the lines we want to write and then sort them. + lines []string + + jsonMetrics []models.Metric + ) + + for _, val := range metrics { + metricName := val.GetName() + metricType := val.GetType() + + for _, metric := range val.Metric { + value, valueS := getMetricValue(metricName, metricType, metric) + label := joinLabels(metric.GetLabel()) + if re != nil && !re.MatchString(metricName+label) { + continue + } + if format == "table" { + lines = append(lines, fmt.Sprintf("%s\t%s\t%s\n", metricName, label, valueS)) + } else { + jsonMetrics = append(jsonMetrics, + models.Metric{ + Name: metricName, + Labels: labelsMap(metric.GetLabel()), + Value: value, + }) + } + } + } + + switch format { + case "json": + enc := json.NewEncoder(w) + enc.SetIndent("", " ") + return enc.Encode(jsonMetrics) + case "yaml": + enc := yaml.NewEncoder(w) + return enc.Encode(jsonMetrics) + case "table": + sort.Strings(lines) + + tw := tabwriter.NewWriter(w, 5, 0, 3, ' ', 0) + defer tw.Flush() + if _, err := fmt.Fprintln(tw, "Metric\tLabels\tValue"); err != nil { + return err + } + for _, l := range lines { + _, err := tw.Write([]byte(l)) + if err != nil { + return err + } + } + return nil + default: + return fmt.Errorf("unknown format %q", format) + } +} + +// getMetricValue produces a single representative value out of the metric. +func getMetricValue(name string, typ dto.MetricType, m *dto.Metric) (float64, string) { + suffix := "" + if strings.HasSuffix(name, "seconds") { + suffix = "s" + } + + switch typ { + case dto.MetricType_COUNTER: + v := m.Counter.GetValue() + return v, fmt.Sprintf("%f", v) + case dto.MetricType_GAUGE: + v := m.Gauge.GetValue() + return v, fmt.Sprintf("%f", v) + case dto.MetricType_SUMMARY: + s := m.Summary + x := "" + for i, q := range s.Quantile { + x += fmt.Sprintf("p%d(%s%s)", int(100.0*(*q.Quantile)), prettyValue(*q.Value), suffix) + if i != len(s.Quantile)-1 { + x += " " + } + } + return 0.0, x + + case dto.MetricType_HISTOGRAM: + b := convertHistogram(m.Histogram) + p50 := getHistogramQuantile(b, 0.50) + p90 := getHistogramQuantile(b, 0.90) + p99 := getHistogramQuantile(b, 0.99) + return p90, fmt.Sprintf("%s%s / %s%s / %s%s", + prettyValue(p50), suffix, prettyValue(p90), suffix, prettyValue(p99), suffix) + default: + return -1, fmt.Sprintf("(?%s)", typ) + } +} + +func joinLabels(labels []*dto.LabelPair) string { + var b strings.Builder + for i, lp := range labels { + b.WriteString(lp.GetName()) + b.WriteByte('=') + b.WriteString(lp.GetValue()) + if i < len(labels)-1 { + b.WriteByte(' ') + } + } + return b.String() +} + +func labelsMap(labels []*dto.LabelPair) map[string]string { + m := map[string]string{} + for _, lp := range labels { + m[lp.GetName()] = lp.GetValue() + } + return m +} + +func prettyValue(v float64) string { + unit, multp := chooseUnit(v) + return fmt.Sprintf("%.4g%s", v*multp, unit) +} + +func chooseUnit(v float64) (string, float64) { + unit := "" + multp := 1.0 + v = math.Abs(v) + switch { + case v == 0.0: + case v > 1_000_000_000_000: + unit = "T" + multp = 0.000_000_000_001 + case v > 1_000_000_000: + unit = "G" + multp = 0.000_000_001 + case v > 1_000_000: + unit = "M" + multp = 0.000_001 + case v > 1000: + unit = "k" + multp = 0.001 + case v < 0.000_000_001: + unit = "p" + multp = 1_000_000_000_000 + case v < 0.000_001: + unit = "n" + multp = 1_000_000_000 + case v < 0.001: + unit = "µ" + multp = 1_000_000 + case v < 1: + unit = "m" + multp = 1000 + } + return unit, multp +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/metrics/dump.html.tmpl b/backend/vendor/github.com/cilium/cilium/pkg/metrics/dump.html.tmpl new file mode 100644 index 000000000..257b08981 --- /dev/null +++ b/backend/vendor/github.com/cilium/cilium/pkg/metrics/dump.html.tmpl @@ -0,0 +1,159 @@ + + + + + + Metrics + + + + +
+ +
+ + + + + + + + + + +
NameLabelsLatest
+ + + + + + diff --git a/backend/vendor/github.com/cilium/cilium/pkg/metrics/histogram.go b/backend/vendor/github.com/cilium/cilium/pkg/metrics/histogram.go new file mode 100644 index 000000000..fb42706d3 --- /dev/null +++ b/backend/vendor/github.com/cilium/cilium/pkg/metrics/histogram.go @@ -0,0 +1,89 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package metrics + +import ( + "cmp" + "math" + "slices" + "sort" + + dto "github.com/prometheus/client_model/go" +) + +type histogramBucket struct { + cumulativeCount uint64 + upperBound float64 +} + +func convertHistogram(h *dto.Histogram) []histogramBucket { + histogram := make([]histogramBucket, len(h.GetBucket())) + for i, b := range h.GetBucket() { + histogram[i] = histogramBucket{b.GetCumulativeCount(), b.GetUpperBound()} + } + slices.SortFunc(histogram, + func(a, b histogramBucket) int { + return cmp.Compare(a.upperBound, b.upperBound) + }) + return histogram +} + +// subtractHistogram removes from 'a' the observations from 'b'. +func subtractHistogram(a, b []histogramBucket) { + if len(a) != len(b) { + panic("impossible: histogram bucket sizes do not match") + } + for i := range a { + if a[i].upperBound != b[i].upperBound { + panic("impossible: different upper bounds") + } + a[i].cumulativeCount -= b[i].cumulativeCount + } +} + +func histogramSampleCount(histogram []histogramBucket) uint64 { + if len(histogram) == 0 { + return 0 + } + return histogram[len(histogram)-1].cumulativeCount +} + +// getHistogramQuantile calculates quantile from the Prometheus Histogram message. +// For example: getHistogramQuantile(h, 0.95) returns the 95th quantile. +func getHistogramQuantile(histogram []histogramBucket, quantile float64) float64 { + if len(histogram) < 1 { + return 0.0 + } + if quantile < 0.0 { + return math.Inf(-1) + } else if quantile > 1.0 { + return math.Inf(+1) + } + + totalCount := histogram[len(histogram)-1].cumulativeCount + if totalCount == 0 { + return 0.0 + } + + // Find the bucket onto which the quantile falls + rank := quantile * float64(totalCount) + index := sort.Search( + len(histogram)-1, + func(i int) bool { + return float64(histogram[i].cumulativeCount) >= rank + }) + + if index == 0 { + // Sample in first bucket, interpolate between 0.0..UpperBound within the bucket. + return histogram[0].upperBound * (rank / float64(histogram[0].cumulativeCount)) + } + + // Return the linearly interpolated value between the upper bounds of the + // two buckets in between which the quantile falls. + start := histogram[index-1].upperBound + end := histogram[index].upperBound + relativeCount := float64(histogram[index].cumulativeCount - histogram[index-1].cumulativeCount) + relativeRank := rank - float64(histogram[index-1].cumulativeCount) + return start + (end-start)*(relativeRank/relativeCount) +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/metrics/json.go b/backend/vendor/github.com/cilium/cilium/pkg/metrics/json.go new file mode 100644 index 000000000..c3ba7e224 --- /dev/null +++ b/backend/vendor/github.com/cilium/cilium/pkg/metrics/json.go @@ -0,0 +1,28 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package metrics + +type JSONSampleDump struct { + NumSamples int `json:"nsamples" yaml:"nsamples"` + IntervalSeconds int `json:"interval_seconds" yaml:"interval_seconds"` + Samples []JSONSamples `json:"samples" yaml:"samples"` +} + +type JSONGaugeOrCounter struct { + Samples []float32 `json:"samples,omitempty" yaml:"samples,omitempty"` +} + +type JSONHistogram struct { + P50 []float32 `json:"p50,omitempty" yaml:"p50,omitempty"` + P90 []float32 `json:"p90,omitempty" yaml:"p90,omitempty"` + P99 []float32 `json:"p99,omitempty" yaml:"p99,omitempty"` +} + +type JSONSamples struct { + Name string `json:"name" yaml:"name"` + Labels string `json:"labels,omitempty" yaml:"labels,omitempty"` + GaugeOrCounter *JSONGaugeOrCounter `json:"gaugeOrCounter,omitempty" yaml:"gaugeOrCounter,omitempty"` + Histogram *JSONHistogram `json:"histogram,omitempty" yaml:"histogram,omitempty"` + Latest string `json:"latest" yaml:"latest"` +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/counter.go b/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/counter.go index bcbf938c6..83a84b16c 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/counter.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/counter.go @@ -30,12 +30,6 @@ type counter struct { metric } -func (c *counter) Collect(metricChan chan<- prometheus.Metric) { - if c.enabled { - c.Counter.Collect(metricChan) - } -} - func (c *counter) Get() float64 { var pm dto.Metric err := c.Counter.Write(&pm) @@ -45,21 +39,6 @@ func (c *counter) Get() float64 { return 0 } -// Inc increments the counter by 1. Use Add to increment it by arbitrary -// non-negative values. -func (c *counter) Inc() { - if c.enabled { - c.Counter.Inc() - } -} - -// Add adds the given value to the counter. It panics if the value is < 0. -func (c *counter) Add(val float64) { - if c.enabled { - c.Counter.Add(val) - } -} - // NewCounterVec creates a new DeletableVec[Counter] based on the provided CounterOpts and // partitioned by the given label names. func NewCounterVec(opts CounterOpts, labelNames []string) *counterVec { @@ -121,12 +100,6 @@ func (cv *counterVec) CurryWith(labels prometheus.Labels) (Vec[Counter], error) } func (cv *counterVec) GetMetricWith(labels prometheus.Labels) (Counter, error) { - if !cv.enabled { - return &counter{ - metric: metric{enabled: false}, - }, nil - } - promCounter, err := cv.CounterVec.GetMetricWith(labels) if err == nil { return &counter{ @@ -138,12 +111,6 @@ func (cv *counterVec) GetMetricWith(labels prometheus.Labels) (Counter, error) { } func (cv *counterVec) GetMetricWithLabelValues(lvs ...string) (Counter, error) { - if !cv.enabled { - return &counter{ - metric: metric{enabled: false}, - }, nil - } - promCounter, err := cv.CounterVec.GetMetricWithLabelValues(lvs...) if err == nil { return &counter{ @@ -156,12 +123,6 @@ func (cv *counterVec) GetMetricWithLabelValues(lvs ...string) (Counter, error) { func (cv *counterVec) With(labels prometheus.Labels) Counter { cv.checkLabels(labels) - if !cv.enabled { - return &counter{ - metric: metric{enabled: false}, - } - } - promCounter := cv.CounterVec.With(labels) return &counter{ Counter: promCounter, @@ -171,12 +132,6 @@ func (cv *counterVec) With(labels prometheus.Labels) Counter { func (cv *counterVec) WithLabelValues(lvs ...string) Counter { cv.checkLabelValues(lvs...) - if !cv.enabled { - return &counter{ - metric: metric{enabled: false}, - } - } - promCounter := cv.CounterVec.WithLabelValues(lvs...) return &counter{ Counter: promCounter, diff --git a/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/gauge.go b/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/gauge.go index 083caef55..c2636952e 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/gauge.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/gauge.go @@ -30,17 +30,7 @@ type gauge struct { metric } -func (g *gauge) Collect(metricChan chan<- prometheus.Metric) { - if g.enabled { - g.Gauge.Collect(metricChan) - } -} - func (g *gauge) Get() float64 { - if !g.enabled { - return 0 - } - var pm dto.Metric err := g.Gauge.Write(&pm) if err == nil { @@ -49,52 +39,6 @@ func (g *gauge) Get() float64 { return 0 } -// Set sets the Gauge to an arbitrary value. -func (g *gauge) Set(val float64) { - if g.enabled { - g.Gauge.Set(val) - } -} - -// Inc increments the Gauge by 1. Use Add to increment it by arbitrary -// values. -func (g *gauge) Inc() { - if g.enabled { - g.Gauge.Inc() - } -} - -// Dec decrements the Gauge by 1. Use Sub to decrement it by arbitrary -// values. -func (g *gauge) Dec() { - if g.enabled { - g.Gauge.Dec() - } -} - -// Add adds the given value to the Gauge. (The value can be negative, -// resulting in a decrease of the Gauge.) -func (g *gauge) Add(val float64) { - if g.enabled { - g.Gauge.Add(val) - } -} - -// Sub subtracts the given value from the Gauge. (The value can be -// negative, resulting in an increase of the Gauge.) -func (g *gauge) Sub(i float64) { - if g.enabled { - g.Gauge.Sub(i) - } -} - -// SetToCurrentTime sets the Gauge to the current Unix time in seconds. -func (g *gauge) SetToCurrentTime() { - if g.enabled { - g.Gauge.SetToCurrentTime() - } -} - // NewGaugeVec creates a new DeletableVec[Gauge] based on the provided GaugeOpts and // partitioned by the given label names. func NewGaugeVec(opts GaugeOpts, labelNames []string) *gaugeVec { @@ -157,12 +101,6 @@ func (gv *gaugeVec) CurryWith(labels prometheus.Labels) (Vec[Gauge], error) { } func (gv *gaugeVec) GetMetricWith(labels prometheus.Labels) (Gauge, error) { - if !gv.enabled { - return &gauge{ - metric: metric{enabled: false}, - }, nil - } - promGauge, err := gv.GaugeVec.GetMetricWith(labels) if err == nil { return &gauge{ @@ -174,12 +112,6 @@ func (gv *gaugeVec) GetMetricWith(labels prometheus.Labels) (Gauge, error) { } func (gv *gaugeVec) GetMetricWithLabelValues(lvs ...string) (Gauge, error) { - if !gv.enabled { - return &gauge{ - metric: metric{enabled: false}, - }, nil - } - promGauge, err := gv.GaugeVec.GetMetricWithLabelValues(lvs...) if err == nil { return &gauge{ @@ -191,11 +123,6 @@ func (gv *gaugeVec) GetMetricWithLabelValues(lvs ...string) (Gauge, error) { } func (gv *gaugeVec) With(labels prometheus.Labels) Gauge { - if !gv.enabled { - return &gauge{ - metric: metric{enabled: false}, - } - } gv.checkLabels(labels) promGauge := gv.GaugeVec.With(labels) @@ -207,11 +134,6 @@ func (gv *gaugeVec) With(labels prometheus.Labels) Gauge { func (gv *gaugeVec) WithLabelValues(lvs ...string) Gauge { gv.checkLabelValues(lvs...) - if !gv.enabled { - return &gauge{ - metric: metric{enabled: false}, - } - } promGauge := gv.GaugeVec.WithLabelValues(lvs...) return &gauge{ @@ -248,12 +170,6 @@ type gaugeFunc struct { metric } -func (gf *gaugeFunc) Collect(metricChan chan<- prometheus.Metric) { - if gf.enabled { - gf.GaugeFunc.Collect(metricChan) - } -} - type GaugeOpts Opts func (o GaugeOpts) toPrometheus() prometheus.GaugeOpts { diff --git a/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/histogram.go b/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/histogram.go index 6d499707d..c908cb48b 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/histogram.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/histogram.go @@ -29,25 +29,6 @@ type histogram struct { metric } -func (h *histogram) Collect(metricChan chan<- prometheus.Metric) { - if h.enabled { - h.Histogram.Collect(metricChan) - } -} - -// Observe adds a single observation to the histogram. Observations are -// usually positive or zero. Negative observations are accepted but -// prevent current versions of Prometheus from properly detecting -// counter resets in the sum of observations. (The experimental Native -// Histograms handle negative observations properly.) See -// https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations -// for details. -func (h *histogram) Observe(val float64) { - if h.enabled { - h.Histogram.Observe(val) - } -} - type Observer interface { prometheus.Observer WithMetadata @@ -58,19 +39,6 @@ type observer struct { metric } -// Observe adds a single observation to the histogram. Observations are -// usually positive or zero. Negative observations are accepted but -// prevent current versions of Prometheus from properly detecting -// counter resets in the sum of observations. (The experimental Native -// Histograms handle negative observations properly.) See -// https://prometheus.io/docs/practices/histograms/#count-and-sum-of-observations -// for details. -func (o *observer) Observe(val float64) { - if o.enabled { - o.Observer.Observe(val) - } -} - // NewHistogramVec creates a new Vec[Observer] (i.e. Histogram Vec) based on the provided HistogramOpts and // partitioned by the given label names. func NewHistogramVec(opts HistogramOpts, labelNames []string) *histogramVec { @@ -113,12 +81,6 @@ func (cv *histogramVec) CurryWith(labels prometheus.Labels) (Vec[Observer], erro } func (cv *histogramVec) GetMetricWith(labels prometheus.Labels) (Observer, error) { - if !cv.enabled { - return &observer{ - metric: metric{enabled: false}, - }, nil - } - promObserver, err := cv.ObserverVec.GetMetricWith(labels) if err == nil { return &observer{ @@ -130,12 +92,6 @@ func (cv *histogramVec) GetMetricWith(labels prometheus.Labels) (Observer, error } func (cv *histogramVec) GetMetricWithLabelValues(lvs ...string) (Observer, error) { - if !cv.enabled { - return &observer{ - metric: metric{enabled: false}, - }, nil - } - promObserver, err := cv.ObserverVec.GetMetricWithLabelValues(lvs...) if err == nil { return &observer{ @@ -147,11 +103,6 @@ func (cv *histogramVec) GetMetricWithLabelValues(lvs ...string) (Observer, error } func (cv *histogramVec) With(labels prometheus.Labels) Observer { - if !cv.enabled { - return &observer{ - metric: metric{enabled: false}, - } - } cv.checkLabels(labels) promObserver := cv.ObserverVec.With(labels) @@ -162,11 +113,6 @@ func (cv *histogramVec) With(labels prometheus.Labels) Observer { } func (cv *histogramVec) WithLabelValues(lvs ...string) Observer { - if !cv.enabled { - return &observer{ - metric: metric{enabled: false}, - } - } cv.checkLabelValues(lvs...) promObserver := cv.ObserverVec.WithLabelValues(lvs...) diff --git a/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/metric.go b/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/metric.go index 580e8ff32..39e13e9d8 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/metric.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/metrics/metric/metric.go @@ -5,10 +5,11 @@ package metric import ( "fmt" + "maps" + "slices" "github.com/prometheus/client_golang/prometheus" "github.com/sirupsen/logrus" - "golang.org/x/exp/maps" "github.com/cilium/cilium/pkg/logging/logfields" "github.com/cilium/cilium/pkg/metrics/metric/collections" @@ -40,7 +41,7 @@ func (b *metric) forEachLabelVector(fn func(lvls []string)) { } var labelValues [][]string for _, label := range b.labels.lbls { - labelValues = append(labelValues, maps.Keys(label.Values)) + labelValues = append(labelValues, slices.Collect(maps.Keys(label.Values))) } for _, labelVector := range collections.CartesianProduct(labelValues...) { fn(labelVector) @@ -90,11 +91,35 @@ func (b *metric) Opts() Opts { return b.opts } +type collectorWithMetadata interface { + prometheus.Collector + WithMetadata +} + +// EnabledCollector collects the underlying metric only when it's enabled. +type EnabledCollector struct { + C prometheus.Collector +} + +// Collect implements prometheus.Collector. +func (e EnabledCollector) Collect(ch chan<- prometheus.Metric) { + if m, ok := e.C.(WithMetadata); ok && !m.IsEnabled() { + return + } + e.C.Collect(ch) +} + +// Describe implements prometheus.Collector. +func (e EnabledCollector) Describe(ch chan<- *prometheus.Desc) { + e.C.Describe(ch) +} + +var _ prometheus.Collector = &EnabledCollector{} + // Vec is a generic type to describe the vectorized version of another metric type, for example Vec[Counter] would be // our version of a prometheus.CounterVec. type Vec[T any] interface { - prometheus.Collector - WithMetadata + collectorWithMetadata // CurryWith returns a vector curried with the provided labels, i.e. the // returned vector has those labels pre-set for all labeled operations performed diff --git a/backend/vendor/github.com/cilium/cilium/pkg/metrics/metrics.go b/backend/vendor/github.com/cilium/cilium/pkg/metrics/metrics.go index c842ec639..ac6a77f13 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/metrics/metrics.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/metrics/metrics.go @@ -17,7 +17,6 @@ import ( dto "github.com/prometheus/client_model/go" "github.com/sirupsen/logrus" - "github.com/cilium/cilium/api/v1/models" "github.com/cilium/cilium/pkg/metrics/metric" "github.com/cilium/cilium/pkg/promise" "github.com/cilium/cilium/pkg/source" @@ -254,6 +253,12 @@ const ( LabelAddressType = "address_type" LabelAddressTypePrimary = "primary" LabelAddressTypeSecondary = "secondary" + + // LabelConnectivityStatus is the label for connectivity statuses + LabelConnectivityStatus = "status" + LabelReachable = "reachable" + LabelUnreachable = "unreachable" + LabelUnknown = "unknown" ) var ( @@ -285,6 +290,14 @@ var ( // other node intra or inter cluster. NodeConnectivityLatency = NoOpGaugeDeletableVec + // NodeHealthConnectivityStatus is the number of connections with connectivity status + // between local node to other node intra or inter cluster. + NodeHealthConnectivityStatus = NoOpGaugeVec + + // NodeHealthConnectivityLatency is the histogram connectivity latency between local node to + // other node intra or inter cluster. + NodeHealthConnectivityLatency = NoOpObserverVec + // Endpoint // Endpoint is a function used to collect this metric. @@ -346,10 +359,6 @@ var ( // CNPs with empty or non-existing CIDRGroupRefs are not considered. CIDRGroupsReferenced = NoOpGauge - // CIDRGroupTranslationTimeStats is the time taken to translate the policy field `FromCIDRGroupRef` - // after the referenced CIDRGroups have been updated or deleted. - CIDRGroupTranslationTimeStats = NoOpHistogram - // Identity // Identity is the number of identities currently in use on the node by type @@ -534,18 +543,6 @@ var ( // BPFMapCapacity is the max capacity of bpf maps, labelled by map group classification. BPFMapCapacity = NoOpGaugeVec - // TriggerPolicyUpdateTotal is the metric to count total number of - // policy update triggers - TriggerPolicyUpdateTotal = NoOpCounterVec - - // TriggerPolicyUpdateFolds is the current level folding that is - // happening when running policy update triggers - TriggerPolicyUpdateFolds = NoOpGauge - - // TriggerPolicyUpdateCallDuration measures the latency and call - // duration of policy update triggers - TriggerPolicyUpdateCallDuration = NoOpObserverVec - // VersionMetric labelled by Cilium version VersionMetric = NoOpGaugeVec @@ -657,6 +654,8 @@ type LegacyMetrics struct { APIInteractions metric.Vec[metric.Observer] NodeConnectivityStatus metric.DeletableVec[metric.Gauge] NodeConnectivityLatency metric.DeletableVec[metric.Gauge] + NodeHealthConnectivityStatus metric.Vec[metric.Gauge] + NodeHealthConnectivityLatency metric.Vec[metric.Observer] Endpoint metric.GaugeFunc EndpointMaxIfindex metric.Gauge EndpointRegenerationTotal metric.Vec[metric.Counter] @@ -671,7 +670,6 @@ type LegacyMetrics struct { PolicyEndpointStatus metric.Vec[metric.Gauge] PolicyImplementationDelay metric.Vec[metric.Observer] CIDRGroupsReferenced metric.Gauge - CIDRGroupTranslationTimeStats metric.Histogram Identity metric.Vec[metric.Gauge] IdentityLabelSources metric.Vec[metric.Gauge] EventTS metric.Vec[metric.Gauge] @@ -716,9 +714,6 @@ type LegacyMetrics struct { BPFSyscallDuration metric.Vec[metric.Observer] BPFMapOps metric.Vec[metric.Counter] BPFMapCapacity metric.Vec[metric.Gauge] - TriggerPolicyUpdateTotal metric.Vec[metric.Counter] - TriggerPolicyUpdateFolds metric.Gauge - TriggerPolicyUpdateCallDuration metric.Vec[metric.Observer] VersionMetric metric.Vec[metric.Gauge] APILimiterWaitHistoryDuration metric.Vec[metric.Observer] APILimiterWaitDuration metric.Vec[metric.Gauge] @@ -855,15 +850,6 @@ func NewLegacyMetrics() *LegacyMetrics { Help: "Number of CNPs and CCNPs referencing at least one CiliumCIDRGroup. CNPs with empty or non-existing CIDRGroupRefs are not considered", }), - CIDRGroupTranslationTimeStats: metric.NewHistogram(metric.HistogramOpts{ - ConfigName: Namespace + "cidrgroup_translation_time_stats_seconds", - Disabled: true, - - Namespace: Namespace, - Name: "cidrgroup_translation_time_stats_seconds", - Help: "CIDRGroup translation time stats", - }), - Identity: metric.NewGaugeVec(metric.GaugeOpts{ ConfigName: Namespace + "_identity", @@ -1225,30 +1211,6 @@ func NewLegacyMetrics() *LegacyMetrics { Help: "Capacity of map, tagged by map group. All maps with a capacity of 65536 are grouped under 'default'", }, []string{LabelMapGroup}), - TriggerPolicyUpdateTotal: metric.NewCounterVec(metric.CounterOpts{ - ConfigName: Namespace + "_" + SubsystemTriggers + "_policy_update_total", - Namespace: Namespace, - Subsystem: SubsystemTriggers, - Name: "policy_update_total", - Help: "Total number of policy update trigger invocations labeled by reason", - }, []string{"reason"}), - - TriggerPolicyUpdateFolds: metric.NewGauge(metric.GaugeOpts{ - ConfigName: Namespace + "_" + SubsystemTriggers + "_policy_update_folds", - Namespace: Namespace, - Subsystem: SubsystemTriggers, - Name: "policy_update_folds", - Help: "Current number of folds", - }), - - TriggerPolicyUpdateCallDuration: metric.NewHistogramVec(metric.HistogramOpts{ - ConfigName: Namespace + "_" + SubsystemTriggers + "_policy_update_call_duration_seconds", - Namespace: Namespace, - Subsystem: SubsystemTriggers, - Name: "policy_update_call_duration_seconds", - Help: "Duration of policy update trigger", - }, []string{LabelType}), - VersionMetric: metric.NewGaugeVec(metric.GaugeOpts{ ConfigName: Namespace + "_version", Namespace: Namespace, @@ -1352,6 +1314,32 @@ func NewLegacyMetrics() *LegacyMetrics { LabelAddressType, }), + NodeHealthConnectivityStatus: metric.NewGaugeVec(metric.GaugeOpts{ + ConfigName: Namespace + "_node_health_connectivity_status", + Namespace: Namespace, + Name: "node_health_connectivity_status", + Help: "The number of endpoints with last observed status of both ICMP and HTTP connectivity between the current Cilium agent and other Cilium nodes", + }, []string{ + LabelSourceCluster, + LabelSourceNodeName, + LabelType, + LabelConnectivityStatus, + }), + + NodeHealthConnectivityLatency: metric.NewHistogramVec(metric.HistogramOpts{ + ConfigName: Namespace + "_node_health_connectivity_latency_seconds", + Namespace: Namespace, + Name: "node_health_connectivity_latency_seconds", + Help: "The histogram for last observed latency between the current Cilium agent and other Cilium nodes in seconds", + Buckets: []float64{0.001, 0.0025, 0.005, 0.01, 0.025, 0.05, 0.1, 0.25, 0.5, 1.0, 2.0, 4.0, 8.0}, + }, []string{ + LabelSourceCluster, + LabelSourceNodeName, + LabelType, + LabelProtocol, + LabelAddressType, + }), + WorkQueueDepth: WorkQueueDepth, WorkQueueAddsTotal: WorkQueueAddsTotal, WorkQueueLatency: WorkQueueLatency, @@ -1378,6 +1366,8 @@ func NewLegacyMetrics() *LegacyMetrics { APIInteractions = lm.APIInteractions NodeConnectivityStatus = lm.NodeConnectivityStatus NodeConnectivityLatency = lm.NodeConnectivityLatency + NodeHealthConnectivityStatus = lm.NodeHealthConnectivityStatus + NodeHealthConnectivityLatency = lm.NodeHealthConnectivityLatency Endpoint = lm.Endpoint EndpointMaxIfindex = lm.EndpointMaxIfindex EndpointRegenerationTotal = lm.EndpointRegenerationTotal @@ -1392,7 +1382,6 @@ func NewLegacyMetrics() *LegacyMetrics { PolicyEndpointStatus = lm.PolicyEndpointStatus PolicyImplementationDelay = lm.PolicyImplementationDelay CIDRGroupsReferenced = lm.CIDRGroupsReferenced - CIDRGroupTranslationTimeStats = lm.CIDRGroupTranslationTimeStats Identity = lm.Identity IdentityLabelSources = lm.IdentityLabelSources EventTS = lm.EventTS @@ -1437,9 +1426,6 @@ func NewLegacyMetrics() *LegacyMetrics { BPFSyscallDuration = lm.BPFSyscallDuration BPFMapOps = lm.BPFMapOps BPFMapCapacity = lm.BPFMapCapacity - TriggerPolicyUpdateTotal = lm.TriggerPolicyUpdateTotal - TriggerPolicyUpdateFolds = lm.TriggerPolicyUpdateFolds - TriggerPolicyUpdateCallDuration = lm.TriggerPolicyUpdateCallDuration VersionMetric = lm.VersionMetric APILimiterWaitHistoryDuration = lm.APILimiterWaitHistoryDuration APILimiterWaitDuration = lm.APILimiterWaitDuration @@ -1562,19 +1548,6 @@ func Unregister(c prometheus.Collector) bool { return false } -// DumpMetrics gets the current Cilium metrics and dumps all into a -// models.Metrics structure.If metrics cannot be retrieved, returns an error -func DumpMetrics() ([]*models.Metric, error) { - ctx, cancel := context.WithTimeout(context.Background(), time.Second) - defer cancel() - reg, err := registry.Await(ctx) - if err == nil { - return reg.DumpMetrics() - } - - return nil, nil -} - // withRegistry waits up to 1 second for the registry promise to resolve, if it does not then // we might be calling this function before hive has been started, so to avoid a deadlock, // wait in a routine so actions are deferred until the registry is initialized. diff --git a/backend/vendor/github.com/cilium/cilium/pkg/metrics/plot.go b/backend/vendor/github.com/cilium/cilium/pkg/metrics/plot.go new file mode 100644 index 000000000..82555a92e --- /dev/null +++ b/backend/vendor/github.com/cilium/cilium/pkg/metrics/plot.go @@ -0,0 +1,211 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package metrics + +import ( + "fmt" + "io" + "math" + "runtime" + "slices" + "strings" + + "github.com/mitchellh/go-wordwrap" + + "github.com/cilium/cilium/pkg/time" +) + +// PlotSamples plots the given samples as a line graph using the unicode braille characters. +func PlotSamples(w io.Writer, rate bool, name, labels string, timeSpan time.Duration, samples []float32, sb SampleBitmap) { + // Do not let panics propagate from here. Log the sample input that caused the panic. + defer func() { + if err := recover(); err != nil { + _, file, line, _ := runtime.Caller(2) + fmt.Fprintf(w, "panic: samples=%v, err=%s, source=%s:%d\n", samples, err, file, line) + } + }() + + title := name + + // Reverse the samples (samples is a fixed size array, thus was passed by value). + // We want them ordered from oldest to newest the same as our X-axis. + slices.Reverse(samples[:]) + if rate { + // Compute the rate per second by iterating from oldest to newest and + // subtracting the previous sample and dividing by our sampling + // interval. + prev := samples[0] + for i := 1; i < len(samples); i++ { + s := samples[i] + samples[i] = (s - prev) / float32(samplingInterval.Seconds()) + prev = s + } + samples[0] = 0 + title += " (rate per second)" + } + sampleExists := func(index int) bool { + if index < 0 || index >= len(samples) { + return false + } + return sb.exists(len(samples) - 1 - int(index)) + } + + // Set up coordinates. We have two systems here, one for character + // coordinates (width, height, originX, originY, plotHeight, plotWidth) + // and one for the "dot" coordinates (plotHeightDots, plotWidthDots) using + // the braille symbols and thus 4x the height and 2x the width. + const width, height = 80, 10 + originX, originY := 11, 7 + plotHeight := height - 3 + plotHeightDots := plotHeight * 4 + plotWidth := width - originX - 1 + plotWidthDots := plotWidth * 2 + indentPlotOriginX := strings.Repeat(" ", originX) + + // Write the name of the metric at the center. + fmt.Fprintf(w, "%s%s%s\n", + indentPlotOriginX, + strings.Repeat(" ", plotWidth/2-len(title)/2), + title) + + // Write out the labels, also centered, but leave some margins. + if labels != "" { + for _, line := range strings.Split(wordwrap.WrapString(labels, uint(plotWidth-4)), "\n") { + fmt.Fprintf(w, "%s%s[ %s ]\n", + indentPlotOriginX, + strings.Repeat(" ", plotWidth/2-(len(line)+4)/2), + line) + } + } + + // Set up a canvas into which to draw in. + canvas := make([]rune, width*height) + for x := 0; x < width; x++ { + for y := 0; y < height; y++ { + if x >= originX && y <= originY { + // initialize the plot area to the braille base. this way we can + // just OR in the dots we want to show. + canvas[y*width+x] = '\u2800' + } else { + canvas[y*width+x] = ' ' + } + } + } + // setDot sets a braille dot within the dot coordinate system + // (0,0)...(plotWidthDots,plotHeightDots). + setDot := func(x, y int) { + var braillePixels = [][]rune{ + {0x1, 0x2, 0x4, 0x40}, // left dots (even 'x') + {0x08, 0x10, 0x20, 0x80}, // right + } + pos := rune((plotHeightDots - y - 1) % 4) + canvas[(originY-y/4)*width+originX+x/2] |= braillePixels[x%2][pos] + } + writeText := func(y, x int, format string, args ...any) { + copy(canvas[y*width+x:], []rune(fmt.Sprintf(format, args...))) + } + + // Calculate the graph minimum and maximum values + minY, maxY := float32(math.Inf(+1)), float32(math.Inf(-1)) + for _, y := range samples { + minY = min(minY, y) + maxY = max(maxY, y) + } + midY := (maxY + minY) / 2 + + // Figure out how to show the Y units + suffix := "" + if strings.Contains(name, "seconds") { + suffix = "s" + } + unit, multp := chooseUnit(float64(maxY)) + fmtY := func(v float32) string { + return fmt.Sprintf("%.1f%s%s", v*float32(multp), unit, suffix) + } + + // Render the labels and the box. + writeText(0, originX-1, "╭"+strings.Repeat("─", width-originX-1)+"╮") + writeText(1, 1, "%8s ┤", fmtY(maxY)) + writeText(1, width-1, "│") + writeText(2, originX-1, "│") + writeText(2, width-1, "│") + writeText(3, originX-1, "│") + writeText(3, width-1, "│") + writeText(4, 1, "%8s ┤", fmtY(midY)) + writeText(4, width-1, "│") + writeText(5, originX-1, "│") + writeText(5, width-1, "│") + writeText(6, originX-1, "│") + writeText(6, width-1, "│") + writeText(7, 1, "%8s ┤", fmtY(minY)) + writeText(7, width-1, "│") + writeText(8, originX-1, "╰"+strings.Repeat("─", width-originX-1)+"╯") + writeText(8, originX+3, "┬") + writeText(9, originX, "-%.0fmin", timeSpan.Minutes()) + writeText(8, originX+3, "┬") + writeText(8, originX+3+((width-10)/2)-3, "┬") + writeText(9, originX+((width-10)/2)-3, "-%.0fmin", timeSpan.Minutes()/2) + writeText(8, width-3, "┬") + writeText(9, width-4, "now") + + // Normalize negative values for plotting + if minY < 0.0 { + for i := range samples { + samples[i] += -minY + } + maxY += -minY + minY = 0.0 + } + if maxY == 0.0 { + maxY = 0.000001 + } + + // getSample returns the interpolated sample for the given x position + // in the dot coordinates. + getSample := func(x int) (float32, bool) { + // find which sample is closest to x (rounding down) + pos := float64(x) / float64(plotWidthDots) + index := int(float64(len(samples)-1) * pos) + + if !sampleExists(int(index)) { + return 0.0, false + } else if !sampleExists(index + 1) { + // the next sample is either out of range or not present, + // just return this sample without any interpolation. + return samples[index], true + } + + // interpolate between two samples for estimate value of 'x' + prevPos := float64(index) / float64(len(samples)-1) + nextPos := float64(index+1) / float64(len(samples)-1) + rel := float32((pos - prevPos) / (nextPos - prevPos)) + + return samples[index] + (samples[index+1]-samples[index])*rel, true + } + + // mapToY maps the value to the Y position + mapToY := func(v float32) int { + return int(((v - minY) / maxY) * (float32(plotHeightDots) - 0.001)) + } + + // Plot the samples (up to second to last column) + for x := 0; x < plotWidthDots-1; x++ { + if v, exists := getSample(x); exists { + setDot(x, mapToY(v)) + } + } + // Plot the last sample without interpolation so that we always show + // the latest sample even if it's the only one. + if sampleExists(len(samples) - 1) { + setDot( + plotWidthDots-1, + mapToY(samples[len(samples)-1]), + ) + } + + // Finally write out our canvas. + for i := range height { + fmt.Fprintln(w, string(canvas[i*width:i*width+width])) + } +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/metrics/registry.go b/backend/vendor/github.com/cilium/cilium/pkg/metrics/registry.go index 260ecff83..c426696e0 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/metrics/registry.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/metrics/registry.go @@ -14,11 +14,10 @@ import ( "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/collectors" "github.com/prometheus/client_golang/prometheus/promhttp" - dto "github.com/prometheus/client_model/go" "github.com/sirupsen/logrus" "github.com/spf13/pflag" - "github.com/cilium/cilium/api/v1/models" + "github.com/cilium/cilium/pkg/lock" metricpkg "github.com/cilium/cilium/pkg/metrics/metric" "github.com/cilium/cilium/pkg/option" ) @@ -57,8 +56,15 @@ type RegistryParams struct { // on which all enabled metrics will be available. A reference to this registry can also be used to dynamically // register or unregister `prometheus.Collector`s. type Registry struct { + // inner registry of metrics. + // Served under the default /metrics endpoint. Each collector is wrapped with + // [metric.EnabledCollector] to only collect enabled metrics. inner *prometheus.Registry + // collectors holds all registered collectors. Used to periodically sample the + // metrics. + collectors collectorSet + params RegistryParams } @@ -104,11 +110,13 @@ func NewRegistry(params RegistryParams) *Registry { // Register registers a collector func (r *Registry) Register(c prometheus.Collector) error { - return r.inner.Register(c) + r.collectors.add(c) + return r.inner.Register(metricpkg.EnabledCollector{C: c}) } // Unregister unregisters a collector func (r *Registry) Unregister(c prometheus.Collector) bool { + r.collectors.remove(c) return r.inner.Unregister(c) } @@ -125,8 +133,11 @@ func (r *Registry) Reinitialize() { collectors.WithGoCollectorRuntimeMetrics( collectors.GoRuntimeMetricsRule{Matcher: goCustomCollectorsRX}, ))) - r.MustRegister(newStatusCollector()) - r.MustRegister(newbpfCollector()) + + // Don't register status and BPF collectors into the [r.collectors] as it is + // expensive to sample and currently not terrible useful to keep data on. + r.inner.MustRegister(metricpkg.EnabledCollector{C: newStatusCollector()}) + r.inner.MustRegister(metricpkg.EnabledCollector{C: newbpfCollector()}) metrics := make(map[string]metricpkg.WithMetadata) for i, autoMetric := range r.params.AutoMetrics { @@ -179,8 +190,11 @@ func (r *Registry) Reinitialize() { // MustRegister adds the collector to the registry, exposing this metric to // prometheus scrapes. // It will panic on error. -func (r *Registry) MustRegister(c ...prometheus.Collector) { - r.inner.MustRegister(c...) +func (r *Registry) MustRegister(cs ...prometheus.Collector) { + for _, c := range cs { + r.collectors.add(c) + r.inner.MustRegister(metricpkg.EnabledCollector{C: c}) + } } // RegisterList registers a list of collectors. If registration of one @@ -202,48 +216,38 @@ func (r *Registry) RegisterList(list []prometheus.Collector) error { return nil } -// DumpMetrics gets the current Cilium metrics and dumps all into a -// models.Metrics structure.If metrics cannot be retrieved, returns an error -func (r *Registry) DumpMetrics() ([]*models.Metric, error) { - result := []*models.Metric{} - currentMetrics, err := r.inner.Gather() - if err != nil { - return result, err - } - - for _, val := range currentMetrics { - metricName := val.GetName() - metricType := val.GetType() - - for _, metricLabel := range val.Metric { - labels := map[string]string{} - for _, label := range metricLabel.GetLabel() { - labels[label.GetName()] = label.GetValue() - } - - var value float64 - switch metricType { - case dto.MetricType_COUNTER: - value = metricLabel.Counter.GetValue() - case dto.MetricType_GAUGE: - value = metricLabel.GetGauge().GetValue() - case dto.MetricType_UNTYPED: - value = metricLabel.GetUntyped().GetValue() - case dto.MetricType_SUMMARY: - value = metricLabel.GetSummary().GetSampleSum() - case dto.MetricType_HISTOGRAM: - value = metricLabel.GetHistogram().GetSampleSum() - default: - continue - } +// collectorSet holds the prometheus collectors so that we can sample them +// periodically. The collectors are not wrapped with [EnabledCollector] so +// that they're sampled regardless if they're enabled or not. +type collectorSet struct { + mu lock.Mutex + collectors map[prometheus.Collector]struct{} +} - metric := &models.Metric{ - Name: metricName, - Labels: labels, - Value: value, - } - result = append(result, metric) +func (cs *collectorSet) collect() <-chan prometheus.Metric { + ch := make(chan prometheus.Metric, 100) + go func() { + cs.mu.Lock() + defer cs.mu.Unlock() + defer close(ch) + for c := range cs.collectors { + c.Collect(ch) } + }() + return ch +} + +func (cs *collectorSet) add(c prometheus.Collector) { + cs.mu.Lock() + if cs.collectors == nil { + cs.collectors = make(map[prometheus.Collector]struct{}) } - return result, nil + cs.collectors[c] = struct{}{} + cs.mu.Unlock() +} + +func (cs *collectorSet) remove(c prometheus.Collector) { + cs.mu.Lock() + delete(cs.collectors, c) + cs.mu.Unlock() } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/metrics/sampler.go b/backend/vendor/github.com/cilium/cilium/pkg/metrics/sampler.go new file mode 100644 index 000000000..76ce354d5 --- /dev/null +++ b/backend/vendor/github.com/cilium/cilium/pkg/metrics/sampler.go @@ -0,0 +1,424 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package metrics + +import ( + "context" + "fmt" + "log/slog" + "slices" + "strings" + + "github.com/cespare/xxhash/v2" + "github.com/cilium/hive/cell" + "github.com/cilium/hive/job" + "github.com/prometheus/client_golang/prometheus" + dto "github.com/prometheus/client_model/go" + "github.com/prometheus/common/model" + + "github.com/cilium/cilium/pkg/lock" + "github.com/cilium/cilium/pkg/time" +) + +// sampler periodically samples all metrics (enabled or not). +// The sampled metrics can be inspected with the 'metrics' command. +// 'metrics -s' lists all metrics with samples from the past 2 hours, +// and 'metrics/plot (regex)' plots the matching metric. See files in +// 'testdata/' for examples. +type sampler struct { + reg *Registry + log *slog.Logger + mu lock.Mutex + metrics map[metricKey]debugSamples + maxWarningLogged bool +} + +func newSampler(log *slog.Logger, reg *Registry, jg job.Group) *sampler { + sampler := &sampler{ + log: log, + reg: reg, + metrics: make(map[metricKey]debugSamples), + } + jg.Add( + job.OneShot("collect", sampler.collectLoop), + job.Timer("cleanup", sampler.cleanup, metricDeadDuration/2), + ) + return sampler +} + +const ( + // Sample every 5 minutes and keep 2 hours of samples. + samplingInterval = 5 * time.Minute + // if you change this, fix m*Index below. + samplingTimeSpan = 2 * time.Hour + numSamples = int(samplingTimeSpan / samplingInterval) // 24 samples + m30Index = numSamples/4 - 1 + m60Index = numSamples/2 - 1 + m120Index = numSamples - 1 + + // Cap the number of metrics we keep around to put an upper limit on memory usage. + // As there's way fewer histograms than gauges or counters, we can roughly estimate + // the memory usage as: + // max 2000 (20% histo): 400 * sizeof(histogram) + 1600 * sizeof(gaugeOrCounter) + // ~= 400 * 508 + 1600 * 164 + // ~= 466kB + // worst (100% histo): 2000 * 520 ~= 1MB + // sizeof(baseSamples) = 24+2*16 = 56 + // sizeof(sampleRing) = 24*4+4 = 100 + // sizeof(histogramSamples): sizeof(baseSamples) + 24+16*8 /* prev */ + 3*sizeof(sampleRing) = 508 + // sizeof(gaugeOrCounterSamples): sizeof(baseSamples) + sizeof(sampleRing) + 8 = 164 + // See also TestSamplerMaxMemoryUsage. + maxSampledMetrics = 2000 + + // The amount of time that has to pass before a sampled metric is considered + // dead/unregistered. Once passed the sampled data is dropped. + metricDeadDuration = samplingInterval * time.Duration(numSamples) +) + +// metricKey identifies a single metric. We are relying on the fact that +// Desc() always returns by pointer the same Desc. +type metricKey struct { + desc *prometheus.Desc + labelsHash uint64 +} + +func (k *metricKey) fqName() string { + // Unfortunately we need to rely on the implementation details of Desc.String() + // here to extract the name. If it ever changes our tests will catch it. + // This method is only invoked when the 'metrics' or 'metrics/plot' commands + // are used, so efficiency is not a huge concern. + s := k.desc.String() + const fqNamePrefix = `fqName: "` + start := strings.Index(s, fqNamePrefix) + if start < 0 { + return "???" + } + start += len(fqNamePrefix) + end := strings.Index(s[start:], `"`) + if end < 0 { + return "???" + } + return s[start : start+end] +} + +// SampleBitmap tracks which of the 'numSamples' actually exists. +// For histograms we only mark it sampled when the counts have changed. +type SampleBitmap uint64 + +func (sb *SampleBitmap) mark(b bool) { + *sb <<= 1 + if b { + *sb |= 1 + } +} + +func (sb SampleBitmap) exists(index int) bool { + return (sb>>index)&1 == 1 +} + +type debugSamples interface { + getName() string + getLabels() string + getJSON() JSONSamples + + get() (m5, m30, m60, m120 string) + getUpdatedAt() time.Time +} + +type baseSamples struct { + updatedAt time.Time + name string + labels string +} + +func (bs baseSamples) getName() string { + return bs.name +} +func (bs baseSamples) getLabels() string { + return bs.labels +} + +type gaugeOrCounterSamples struct { + baseSamples + + samples sampleRing + + // pos points to index where the next sample goes. + // the latest sample is pos-1. + bits SampleBitmap +} + +type sampleRing struct { + samples [numSamples]float32 + pos int +} + +func (r *sampleRing) push(sample float32) { + r.samples[r.pos] = sample + r.pos = (r.pos + 1) % numSamples +} + +func (r *sampleRing) grab() []float32 { + var samples [numSamples]float32 + pos := r.pos - 1 + if pos < 0 { + pos = numSamples - 1 + } + for i := range numSamples { + samples[i] = r.samples[pos] + pos = pos - 1 + if pos < 0 { + pos = numSamples - 1 + } + } + return samples[:] +} + +func (g *gaugeOrCounterSamples) getUpdatedAt() time.Time { + return g.updatedAt +} + +func (g *gaugeOrCounterSamples) getJSON() JSONSamples { + samples := g.samples.grab() + return JSONSamples{ + Name: g.name, + Labels: g.labels, + GaugeOrCounter: &JSONGaugeOrCounter{ + Samples: samples[:], + }, + Latest: prettyValue(float64(samples[0])), + } +} + +func (g *gaugeOrCounterSamples) get() (m1, m30, m60, m120 string) { + samples := g.samples.grab() + return prettyValue(float64(samples[0])), + prettyValue(float64(samples[m30Index])), + prettyValue(float64(samples[m60Index])), + prettyValue(float64(samples[m120Index])) +} + +type histogramSamples struct { + baseSamples + prev []histogramBucket + p50, p90, p99 sampleRing + bits SampleBitmap + isSeconds bool +} + +func (h *histogramSamples) get() (m5, m30, m60, m120 string) { + suffix := "" + if h.isSeconds { + suffix = "s" + } + pretty := func(p50, p90, p99 float32) string { + return fmt.Sprintf("%s%s / %s%s / %s%s", + prettyValue(float64(p50)), + suffix, prettyValue(float64(p90)), + suffix, prettyValue(float64(p99)), suffix) + } + p50, p90, p99 := h.p50.grab(), h.p90.grab(), h.p99.grab() + + m5 = pretty(p50[0], p90[0], p99[0]) + m30 = pretty(p50[m30Index], p90[m30Index], p99[m30Index]) + m60 = pretty(p50[m60Index], p90[m60Index], p99[m60Index]) + m120 = pretty(p50[m120Index], p90[m120Index], p99[m120Index]) + return +} + +func (h *histogramSamples) getUpdatedAt() time.Time { + return h.updatedAt +} + +func (h *histogramSamples) getJSON() JSONSamples { + p50, p90, p99 := h.p50.grab(), h.p90.grab(), h.p99.grab() + suffix := "" + if h.isSeconds { + suffix = "s" + } + return JSONSamples{ + Name: h.name, + Labels: h.labels, + Histogram: &JSONHistogram{ + P50: p50[:], + P90: p90[:], + P99: p99[:], + }, + Latest: fmt.Sprintf("%s%s / %s%s / %s%s", + prettyValue(float64(p50[0])), + suffix, prettyValue(float64(p90[0])), + suffix, prettyValue(float64(p99[0])), suffix), + } +} + +// cleanup runs every hour to remove samples that have not been updated +// in more than an hour (e.g. the metric has been unregistered). +func (dc *sampler) cleanup(ctx context.Context) error { + dc.mu.Lock() + defer dc.mu.Unlock() + for k, s := range dc.metrics { + if time.Since(s.getUpdatedAt()) > metricDeadDuration { + delete(dc.metrics, k) + } + } + return nil +} + +func (dc *sampler) collectLoop(ctx context.Context, health cell.Health) error { + ticker := time.NewTicker(samplingInterval) + defer ticker.Stop() + + for { + dc.collect(health) + + select { + case <-ctx.Done(): + return nil + case <-ticker.C: + } + } +} + +func (dc *sampler) collect(health cell.Health) { + dc.mu.Lock() + defer dc.mu.Unlock() + + health.OK("Collecting metrics") + + t0 := time.Now() + + // Since this is meant to have very low overhead we want to avoid heap allocations + // and other expensive operations as much as possible. Thus we're using Collect() + // to collect metric one at a time (vs Gather() that does a lot in parallel) and + // also avoiding building up temporary data structures. + // One downside of this approach is that we need to parse Desc.String to extract + // the fqName and the labels, but we do this only when encountering a new metric + // and tests catch if it ever breaks. + + metricChan := dc.reg.collectors.collect() + + addNewMetric := func(key metricKey, s debugSamples) bool { + if len(dc.metrics) >= maxSampledMetrics { + if !dc.maxWarningLogged { + dc.log.Debug("maximum number of sampled metrics reached") + dc.maxWarningLogged = true + } + return false + } + dc.metrics[key] = s + return true + } + + numSampled := 0 + + for metric := range metricChan { + var msg dto.Metric + desc := metric.Desc() + if err := metric.Write(&msg); err != nil { + continue + } + key := newMetricKey(desc, msg.Label) + + if msg.Histogram != nil { + var histogram *histogramSamples + if samples, ok := dc.metrics[key]; !ok { + name := key.fqName() + histogram = &histogramSamples{ + baseSamples: baseSamples{name: name, labels: concatLabels(msg.Label)}, + isSeconds: strings.Contains(name, "seconds"), + } + if !addNewMetric(key, histogram) { + continue + } + } else { + histogram = samples.(*histogramSamples) + } + histogram.updatedAt = t0 + buckets := convertHistogram(msg.GetHistogram()) + + updated := histogramSampleCount(buckets) != histogramSampleCount(histogram.prev) + if updated { + b := buckets + if histogram.prev != nil { + // Previous sample exists, deduct the counts from it to get the quantiles + // of the last period. + b = slices.Clone(buckets) + subtractHistogram(b, histogram.prev) + } + histogram.p50.push(float32(getHistogramQuantile(b, 0.50))) + histogram.p90.push(float32(getHistogramQuantile(b, 0.90))) + histogram.p99.push(float32(getHistogramQuantile(b, 0.99))) + histogram.bits.mark(true) + } else { + histogram.p50.push(0.0) + histogram.p90.push(0.0) + histogram.p99.push(0.0) + histogram.bits.mark(false) + } + histogram.prev = buckets + } else { + var s *gaugeOrCounterSamples + if samples, ok := dc.metrics[key]; !ok { + s = &gaugeOrCounterSamples{ + baseSamples: baseSamples{name: key.fqName(), labels: concatLabels(msg.Label)}, + } + if !addNewMetric(key, s) { + continue + } + } else { + s = samples.(*gaugeOrCounterSamples) + } + s.updatedAt = t0 + + var value float64 + switch { + case msg.Counter != nil: + value = msg.Counter.GetValue() + case msg.Gauge != nil: + value = msg.Gauge.GetValue() + case msg.Summary != nil: + value = msg.Summary.GetSampleSum() / float64(msg.Summary.GetSampleCount()) + default: + value = -1.0 + } + s.samples.push(float32(value)) + s.bits.mark(true) + } + + numSampled++ + } + + health.OK(fmt.Sprintf("Sampled %d metrics in %s, next collection at %s", numSamples, time.Since(t0), t0.Add(samplingInterval))) +} + +var sep = []byte{model.SeparatorByte} + +// newMetricKey constructs a key to uniquely identify a specific metric. Designed +// to avoid heap allocations. +func newMetricKey(desc *prometheus.Desc, labels []*dto.LabelPair) metricKey { + var xxh xxhash.Digest + xxh.Reset() + for _, lp := range labels { + xxh.WriteString(lp.GetName()) + xxh.Write(sep) + xxh.WriteString(lp.GetValue()) + } + return metricKey{ + desc: desc, + labelsHash: xxh.Sum64(), + } +} + +func concatLabels(labels []*dto.LabelPair) string { + var b strings.Builder + for i, lp := range labels { + b.WriteString(lp.GetName()) + b.WriteByte('=') + b.WriteString(lp.GetValue()) + if i < len(labels)-1 { + b.WriteByte(' ') + } + } + return b.String() +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/monitor/api/files.go b/backend/vendor/github.com/cilium/cilium/pkg/monitor/api/files.go index a2b4f460a..b314a0582 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/monitor/api/files.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/monitor/api/files.go @@ -5,7 +5,7 @@ package api import "fmt" -// Keep in sync with __source_file_name_to_id in bpf/source_names_to_ids.h. +// Keep in sync with __id_for_file in bpf/lib/source_info.h. var files = map[uint8]string{ // @@ source files list begin @@ -32,6 +32,8 @@ var files = map[uint8]string{ 111: "trace.h", 112: "encap.h", 113: "encrypt.h", + 114: "host_firewall.h", + 115: "nodeport_egress.h", // @@ source files list end } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/monitor/api/types.go b/backend/vendor/github.com/cilium/cilium/pkg/monitor/api/types.go index 364b2bfb5..fc15a962a 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/monitor/api/types.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/monitor/api/types.go @@ -459,9 +459,7 @@ type ServiceUpsertNotification struct { Backends []ServiceUpsertNotificationAddr `json:"backend-addresses"` NumBackendsOmitted int `json:"num-backends-omitted,omitempty"` - Type string `json:"type,omitempty"` - // Deprecated: superseded by ExtTrafficPolicy. - TrafficPolicy string `json:"traffic-policy,omitempty"` + Type string `json:"type,omitempty"` ExtTrafficPolicy string `json:"ext-traffic-policy,omitempty"` IntTrafficPolicy string `json:"int-traffic-policy,omitempty"` @@ -483,7 +481,6 @@ func ServiceUpsertMessage( Backends: backends, NumBackendsOmitted: numBackendsOmitted, Type: svcType, - TrafficPolicy: svcExtTrafficPolicy, ExtTrafficPolicy: svcExtTrafficPolicy, IntTrafficPolicy: svcIntTrafficPolicy, Name: svcName, diff --git a/backend/vendor/github.com/cilium/cilium/pkg/option/config.go b/backend/vendor/github.com/cilium/cilium/pkg/option/config.go index 630dad159..8d76f8a41 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/option/config.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/option/config.go @@ -5,12 +5,10 @@ package option import ( "bytes" - "context" "crypto/sha256" "encoding/json" "errors" "fmt" - "io" "math" "net" "net/netip" @@ -18,7 +16,7 @@ import ( "path/filepath" "regexp" "runtime" - "sort" + "slices" "strconv" "strings" "unicode" @@ -32,10 +30,8 @@ import ( "github.com/spf13/cobra" "github.com/spf13/pflag" "github.com/spf13/viper" - "google.golang.org/protobuf/types/known/fieldmaskpb" k8sLabels "k8s.io/apimachinery/pkg/labels" - flowpb "github.com/cilium/cilium/api/v1/flow" "github.com/cilium/cilium/api/v1/models" "github.com/cilium/cilium/pkg/cidr" clustermeshTypes "github.com/cilium/cilium/pkg/clustermesh/types" @@ -43,7 +39,6 @@ import ( "github.com/cilium/cilium/pkg/defaults" "github.com/cilium/cilium/pkg/ip" ipamOption "github.com/cilium/cilium/pkg/ipam/option" - "github.com/cilium/cilium/pkg/lock" "github.com/cilium/cilium/pkg/logging" "github.com/cilium/cilium/pkg/logging/logfields" "github.com/cilium/cilium/pkg/mac" @@ -262,12 +257,13 @@ const ( // Alias to NodePortMode LoadBalancerMode = "bpf-lb-mode" + // LoadBalancerModeAnnotation tells whether controller should check service + // level annotation for configuring bpf loadbalancing method (snat vs dsr). + LoadBalancerModeAnnotation = "bpf-lb-mode-annotation" + // Alias to DSR dispatch method LoadBalancerDSRDispatch = "bpf-lb-dsr-dispatch" - // Alias to DSR L4 translation method - LoadBalancerDSRL4Xlate = "bpf-lb-dsr-l4-xlate" - // Alias to DSR/IPIP IPv4 source CIDR LoadBalancerRSSv4CIDR = "bpf-lb-rss-ipv4-src-cidr" @@ -275,16 +271,21 @@ const ( LoadBalancerRSSv6CIDR = "bpf-lb-rss-ipv6-src-cidr" // Alias to NodePortAlg - LoadBalancerAlg = "bpf-lb-algorithm" + LoadBalancerAlgorithm = "bpf-lb-algorithm" + + // LoadBalancerAlgorithmAnnotation tells whether controller should check service + // level annotation for configuring bpf loadbalancing algorithm. + LoadBalancerAlgorithmAnnotation = "bpf-lb-algorithm-annotation" // Alias to NodePortAcceleration LoadBalancerAcceleration = "bpf-lb-acceleration" - // MaglevTableSize determines the size of the backend table per service - MaglevTableSize = "bpf-lb-maglev-table-size" + // LoadBalancerExternalControlPlane switch skips connectivity to kube-apiserver + // which is relevant in lb-only mode + LoadBalancerExternalControlPlane = "bpf-lb-external-control-plane" - // MaglevHashSeed contains the cluster-wide seed for the hash - MaglevHashSeed = "bpf-lb-maglev-hash-seed" + // LoadBalancerProtocolDifferentiation enables support for service protocol differentiation (TCP, UDP, SCTP) + LoadBalancerProtocolDifferentiation = "bpf-lb-proto-diff" // NodePortBindProtection rejects bind requests to NodePort service ports NodePortBindProtection = "node-port-bind-protection" @@ -339,9 +340,6 @@ const ( // LogOpt sets log driver options for cilium LogOpt = "log-opt" - // Logstash enables logstash integration - Logstash = "logstash" - // EnableIPv4Masquerade masquerades IPv4 packets from endpoints leaving the host. EnableIPv4Masquerade = "enable-ipv4-masquerade" @@ -550,6 +548,9 @@ const ( // AuthMapEntriesDefault defines the default auth map limit. AuthMapEntriesDefault = 1 << 19 + // BPFConntrackAccounting controls whether CT accounting for packets and bytes is enabled + BPFConntrackAccountingDefault = false + // AuthMapEntriesName configures max entries for BPF auth map. AuthMapEntriesName = "bpf-auth-map-max" @@ -693,6 +694,25 @@ const ( // IPv6MCastDevice is the name of the option to select IPv6 multicast device IPv6MCastDevice = "ipv6-mcast-device" + // BPFEventsDefaultRateLimit specifies limit of messages per second that can be written to + // BPF events map. This limit is defined for all types of events except dbg and pcap. + // The number of messages is averaged, meaning that if no messages were written + // to the map over 5 seconds, it's possible to write more events than the value of rate limit + // in the 6th second. + // + // If BPFEventsDefaultRateLimit > 0, non-zero value for BPFEventsDefaultBurstLimit must also be provided + // lest the configuration is considered invalid. + // If both rate and burst limit are 0 or not specified, no limit is imposed. + BPFEventsDefaultRateLimit = "bpf-events-default-rate-limit" + + // BPFEventsDefaultBurstLimit specifies the maximum number of messages that can be written + // to BPF events map in 1 second. This limit is defined for all types of events except dbg and pcap. + // + // If BPFEventsDefaultBurstLimit > 0, non-zero value for BPFEventsDefaultRateLimit must also be provided + // lest the configuration is considered invalid. + // If both burst and rate limit are 0 or not specified, no limit is imposed. + BPFEventsDefaultBurstLimit = "bpf-events-default-burst-limit" + // FQDNRejectResponseCode is the name for the option for dns-proxy reject response code FQDNRejectResponseCode = "tofqdns-dns-reject-response-code" @@ -719,9 +739,6 @@ const ( // EnableBPFTProxy option supports enabling or disabling BPF TProxy. EnableBPFTProxy = "enable-bpf-tproxy" - // EnableXTSocketFallbackName is the name of the EnableXTSocketFallback option - EnableXTSocketFallbackName = "enable-xt-socket-fallback" - // EnableAutoDirectRoutingName is the name for the EnableAutoDirectRouting option EnableAutoDirectRoutingName = "auto-direct-node-routes" @@ -752,6 +769,11 @@ const ( // This feature will encrypt overlay traffic before it leaves the cluster. EnableIPSecEncryptedOverlay = "enable-ipsec-encrypted-overlay" + // BootIDFilename is a hidden flag that allows users to specify a + // filename other than /proc/sys/kernel/random/boot_id. This can be + // useful for testing purposes in local containerized cluster. + BootIDFilename = "boot-id-file" + // EnableWireguard is the name of the option to enable WireGuard EnableWireguard = "enable-wireguard" @@ -778,9 +800,6 @@ const ( // or direct routing is used and the node CIDR and pod CIDR overlap. EncryptionStrictModeAllowRemoteNodeIdentities = "encryption-strict-mode-allow-remote-node-identities" - // EnableWireguardUserspaceFallback is the name of the option that enables the fallback to WireGuard userspace mode - EnableWireguardUserspaceFallback = "enable-wireguard-userspace-fallback" - // WireguardPersistentKeepalivee controls Wireguard PersistentKeepalive option. Set 0 to disable. WireguardPersistentKeepalive = "wireguard-persistent-keepalive" @@ -801,6 +820,10 @@ const ( // KVstoreConnectivityTimeout is the timeout when performing kvstore operations KVstoreConnectivityTimeout = "kvstore-connectivity-timeout" + // KVstorePodNetworkSupport enables the support for running the Cilium KVstore + // in pod network. + KVstorePodNetworkSupport = "kvstore-pod-network-support" + // IdentityChangeGracePeriod is the name of the // IdentityChangeGracePeriod option IdentityChangeGracePeriod = "identity-change-grace-period" @@ -821,9 +844,8 @@ const ( // EnableHealthCheckLoadBalancerIP is the name of the EnableHealthCheckLoadBalancerIP option EnableHealthCheckLoadBalancerIP = "enable-health-check-loadbalancer-ip" - // PolicyQueueSize is the size of the queues utilized by the policy - // repository. - PolicyQueueSize = "policy-queue-size" + // HealthCheckICMPFailureThreshold is the name of the HealthCheckICMPFailureThreshold option + HealthCheckICMPFailureThreshold = "health-check-icmp-failure-threshold" // EndpointQueueSize is the size of the EventQueue per-endpoint. EndpointQueueSize = "endpoint-queue-size" @@ -832,6 +854,9 @@ const ( // endpoints that are no longer alive and healthy. EndpointGCInterval = "endpoint-gc-interval" + // EndpointRegenInterval is the interval of the periodic endpoint regeneration loop. + EndpointRegenInterval = "endpoint-regen-interval" + // LoopbackIPv4 is the address to use for service loopback SNAT LoopbackIPv4 = "ipv4-service-loopback-address" @@ -928,6 +953,14 @@ const ( // identity allocation IdentityAllocationModeCRD = "crd" + // IdentityAllocationModeDoubleWriteReadKVstore writes identities to the KVStore and as CRDs at the same time. + // Identities are then read from the KVStore. + IdentityAllocationModeDoubleWriteReadKVstore = "doublewrite-readkvstore" + + // IdentityAllocationModeDoubleWriteReadCRD writes identities to the KVStore and as CRDs at the same time. + // Identities are then read from the CRDs. + IdentityAllocationModeDoubleWriteReadCRD = "doublewrite-readcrd" + // EnableLocalNodeRoute controls installation of the route which points // the allocation prefix of the local node. EnableLocalNodeRoute = "enable-local-node-route" @@ -943,141 +976,6 @@ const ( // PolicyAccountingArg argument enable policy accounting. PolicyAccountingArg = "policy-accounting" - // EnableHubble enables hubble in the agent. - EnableHubble = "enable-hubble" - - // HubbleSocketPath specifies the UNIX domain socket for Hubble server to listen to. - HubbleSocketPath = "hubble-socket-path" - - // HubbleListenAddress specifies address for Hubble server to listen to. - HubbleListenAddress = "hubble-listen-address" - - // HubblePreferIpv6 controls whether IPv6 or IPv4 addresses should be preferred for - // communication to agents, if both are available. - HubblePreferIpv6 = "hubble-prefer-ipv6" - - // HubbleTLSDisabled allows the Hubble server to run on the given listen - // address without TLS. - HubbleTLSDisabled = "hubble-disable-tls" - - // HubbleTLSCertFile specifies the path to the public key file for the - // Hubble server. The file must contain PEM encoded data. - HubbleTLSCertFile = "hubble-tls-cert-file" - - // HubbleTLSKeyFile specifies the path to the private key file for the - // Hubble server. The file must contain PEM encoded data. - HubbleTLSKeyFile = "hubble-tls-key-file" - - // HubbleTLSClientCAFiles specifies the path to one or more client CA - // certificates to use for TLS with mutual authentication (mTLS). The files - // must contain PEM encoded data. - HubbleTLSClientCAFiles = "hubble-tls-client-ca-files" - - // HubbleEventBufferCapacity specifies the capacity of Hubble events buffer. - HubbleEventBufferCapacity = "hubble-event-buffer-capacity" - - // HubbleEventQueueSize specifies the buffer size of the channel to receive monitor events. - HubbleEventQueueSize = "hubble-event-queue-size" - - // HubbleMetricsServer specifies the addresses to serve Hubble metrics on. - HubbleMetricsServer = "hubble-metrics-server" - - // HubbleMetricsTLSEnabled allows the Hubble metrics server to run on the given listen - // address with TLS. - HubbleMetricsTLSEnabled = "hubble-metrics-server-enable-tls" - - // HubbleMetricsServerTLSCertFile specifies the path to the public key file for the - // Hubble metrics server. The file must contain PEM encoded data. - HubbleMetricsTLSCertFile = "hubble-metrics-server-tls-cert-file" - - // HubbleMetricsServerTLSKeyFile specifies the path to the private key file for the - // Hubble metrics server. The file must contain PEM encoded data. - HubbleMetricsTLSKeyFile = "hubble-metrics-server-tls-key-file" - - // HubbleMetricsServerTLSClientCAFiles specifies the path to one or more client CA - // certificates to use for TLS with mutual authentication (mTLS) on the Hubble metrics server. - // The files must contain PEM encoded data. - HubbleMetricsTLSClientCAFiles = "hubble-metrics-server-tls-client-ca-files" - - // HubbleMetrics specifies enabled metrics and their configuration options. - HubbleMetrics = "hubble-metrics" - - // HubbleFlowlogsConfigFilePath specifies the filepath with configuration of hubble flowlogs. - // e.g. "/etc/cilium/flowlog.yaml" - HubbleFlowlogsConfigFilePath = "hubble-flowlogs-config-path" - - // HubbleExportFilePath specifies the filepath to write Hubble events to. - // e.g. "/var/run/cilium/hubble/events.log" - HubbleExportFilePath = "hubble-export-file-path" - - // HubbleExportFileMaxSizeMB specifies the file size in MB at which to rotate - // the Hubble export file. - HubbleExportFileMaxSizeMB = "hubble-export-file-max-size-mb" - - // HubbleExportFileMaxBacks specifies the number of rotated files to keep. - HubbleExportFileMaxBackups = "hubble-export-file-max-backups" - - // HubbleExportFileCompress specifies whether rotated files are compressed. - HubbleExportFileCompress = "hubble-export-file-compress" - - // HubbleExportAllowlist specifies allow list filter use by exporter. - HubbleExportAllowlist = "hubble-export-allowlist" - - // HubbleExportDenylist specifies deny list filter use by exporter. - HubbleExportDenylist = "hubble-export-denylist" - - // HubbleExportFieldmask specifies list of fields to log in exporter. - HubbleExportFieldmask = "hubble-export-fieldmask" - - // EnableHubbleRecorderAPI specifies if the Hubble Recorder API should be served - EnableHubbleRecorderAPI = "enable-hubble-recorder-api" - - // EnableHubbleOpenMetrics enables exporting hubble metrics in OpenMetrics format. - EnableHubbleOpenMetrics = "enable-hubble-open-metrics" - - // HubbleRecorderStoragePath specifies the directory in which pcap files - // created via the Hubble Recorder API are stored - HubbleRecorderStoragePath = "hubble-recorder-storage-path" - - // HubbleRecorderSinkQueueSize is the queue size for each recorder sink - HubbleRecorderSinkQueueSize = "hubble-recorder-sink-queue-size" - - // HubbleSkipUnknownCGroupIDs specifies if events with unknown cgroup ids should be skipped - HubbleSkipUnknownCGroupIDs = "hubble-skip-unknown-cgroup-ids" - - // HubbleMonitorEvents specifies Cilium monitor events for Hubble to observe. - // By default, Hubble observes all monitor events. - HubbleMonitorEvents = "hubble-monitor-events" - - // HubbleRedactEnabled controls if sensitive information will be redacted from L7 flows - HubbleRedactEnabled = "hubble-redact-enabled" - - // HubbleRedactHttpURLQuery controls if the URL query will be redacted from flows - HubbleRedactHttpURLQuery = "hubble-redact-http-urlquery" - - // HubbleRedactHttpUserInfo controls if the user info will be redacted from flows - HubbleRedactHttpUserInfo = "hubble-redact-http-userinfo" - - // HubbleRedactKafkaApiKey controls if the Kafka API key will be redacted from flows - HubbleRedactKafkaApiKey = "hubble-redact-kafka-apikey" - - // HubbleRedactHttpHeadersAllow controls which http headers will not be redacted from flows - HubbleRedactHttpHeadersAllow = "hubble-redact-http-headers-allow" - - // HubbleRedactHttpHeadersDeny controls which http headers will be redacted from flows - HubbleRedactHttpHeadersDeny = "hubble-redact-http-headers-deny" - - // HubbleDropEvents controls whether Hubble should create v1.Events - // for packet drops related to pods - HubbleDropEvents = "hubble-drop-events" - - // HubbleDropEventsInterval controls the minimum time between emitting events - // with the same source and destination IP - HubbleDropEventsInterval = "hubble-drop-events-interval" - - // HubbleDropEventsReasons controls which drop reasons to emit events for - HubbleDropEventsReasons = "hubble-drop-events-reasons" - // K8sClientConnectionTimeout configures the timeout for K8s client connections. K8sClientConnectionTimeout = "k8s-client-connection-timeout" @@ -1113,6 +1011,9 @@ const ( // LBAffinityMapMaxEntries configures max entries of bpf map for session affinity. LBAffinityMapMaxEntries = "bpf-lb-affinity-map-max" + // LBSourceRangeAllTypes configures service source ranges for all service types. + LBSourceRangeAllTypes = "bpf-lb-source-range-all-types" + // LBSourceRangeMapMaxEntries configures max entries of bpf map for service source ranges. LBSourceRangeMapMaxEntries = "bpf-lb-source-range-map-max" @@ -1128,20 +1029,14 @@ const ( // Otherwise, it will use the old scheme. EgressMultiHomeIPRuleCompat = "egress-multi-home-ip-rule-compat" + // Install ingress/egress routes through uplink on host for Pods when working with + // delegated IPAM plugin. + InstallUplinkRoutesForDelegatedIPAM = "install-uplink-routes-for-delegated-ipam" + // EnableCustomCallsName is the name of the option to enable tail calls // for user-defined custom eBPF programs. EnableCustomCallsName = "enable-custom-calls" - // BGPAnnounceLBIP announces service IPs of type LoadBalancer via BGP - BGPAnnounceLBIP = "bgp-announce-lb-ip" - - // BGPAnnouncePodCIDR announces the node's pod CIDR via BGP - BGPAnnouncePodCIDR = "bgp-announce-pod-cidr" - - // BGPConfigPath is the file path to the BGP configuration. It is - // compatible with MetalLB's configuration. - BGPConfigPath = "bgp-config-path" - // BGPSecretsNamespace is the Kubernetes namespace to get BGP control plane secrets from. BGPSecretsNamespace = "bgp-secrets-namespace" @@ -1192,6 +1087,9 @@ const ( // Flag to enable BGP control plane features EnableBGPControlPlane = "enable-bgp-control-plane" + // EnableBGPControlPlaneStatusReport enables BGP Control Plane CRD status reporting + EnableBGPControlPlaneStatusReport = "enable-bgp-control-plane-status-report" + // EnableRuntimeDeviceDetection is the name of the option to enable detection // of new and removed datapath devices during the agent runtime. EnableRuntimeDeviceDetection = "enable-runtime-device-detection" @@ -1211,6 +1109,13 @@ const ( // EnableK8sNetworkPolicy enables support for K8s NetworkPolicy. EnableK8sNetworkPolicy = "enable-k8s-networkpolicy" + // EnableCiliumNetworkPolicy enables support for Cilium Network Policy. + EnableCiliumNetworkPolicy = "enable-cilium-network-policy" + + // EnableCiliumClusterwideNetworkPolicy enables support for Cilium Clusterwide + // Network Policy. + EnableCiliumClusterwideNetworkPolicy = "enable-cilium-clusterwide-network-policy" + // PolicyCIDRMatchMode defines the entities that CIDR selectors can reach PolicyCIDRMatchMode = "policy-cidr-match-mode" @@ -1229,6 +1134,19 @@ const ( // BPFEventsTraceEnabled defines the TraceNotification setting for any endpoint BPFEventsTraceEnabled = "bpf-events-trace-enabled" + + // BPFConntrackAccounting controls whether CT accounting for packets and bytes is enabled + BPFConntrackAccounting = "bpf-conntrack-accounting" + + // EnableInternalTrafficPolicy enables handling routing for services with internalTrafficPolicy configured + EnableInternalTrafficPolicy = "enable-internal-traffic-policy" + + // EnableNonDefaultDenyPolicies allows policies to define whether they are operating in default-deny mode + EnableNonDefaultDenyPolicies = "enable-non-default-deny-policies" + + // EnableEndpointLockdownOnPolicyOverflow enables endpoint lockdown when an endpoint's + // policy map overflows. + EnableEndpointLockdownOnPolicyOverflow = "enable-endpoint-lockdown-on-policy-overflow" ) // Default string arguments @@ -1279,6 +1197,9 @@ const ( // EnableExternalWorkloads enables the support for external workloads. EnableExternalWorkloads = "enable-external-workloads" + + // EnableSourceIPVerification enables the source ip verification, defaults to true + EnableSourceIPVerification = "enable-source-ip-verification" ) const ( @@ -1312,12 +1233,6 @@ const ( // DSR dispatch mode to encapsulate to Geneve DSRDispatchGeneve = "geneve" - // DSR L4 translation to frontend port - DSRL4XlateFrontend = "frontend" - - // DSR L4 translation to backend port - DSRL4XlateBackend = "backend" - // NodePortAccelerationDisabled means we do not accelerate NodePort via XDP NodePortAccelerationDisabled = XDPModeDisabled @@ -1379,7 +1294,7 @@ func BindEnvWithLegacyEnvFallback(vp *viper.Viper, optName, legacyEnvName string // LogRegisteredOptions logs all options that where bound to viper. func LogRegisteredOptions(vp *viper.Viper, entry *logrus.Entry) { keys := vp.AllKeys() - sort.Strings(keys) + slices.Sort(keys) for _, k := range keys { ss := vp.GetStringSlice(k) if len(ss) == 0 { @@ -1403,20 +1318,19 @@ type DaemonConfig struct { // after. shaSum [32]byte - CreationTime time.Time - BpfDir string // BPF template files directory - LibDir string // Cilium library files directory - RunDir string // Cilium runtime directory - ExternalEnvoyProxy bool // Whether Envoy is deployed as external DaemonSet or not - DirectRoutingDevice string // Direct routing device (used by BPF NodePort and BPF Host Routing) - LBDevInheritIPAddr string // Device which IP addr used by bpf_host devices - EnableXDPPrefilter bool // Enable XDP-based prefiltering - XDPMode string // XDP mode, values: { xdpdrv | xdpgeneric | none } - EnableTCX bool // Enable attaching endpoint programs using tcx if the kernel supports it - HostV4Addr net.IP // Host v4 address of the snooping device - HostV6Addr net.IP // Host v6 address of the snooping device - EncryptInterface []string // Set of network facing interface to encrypt over - EncryptNode bool // Set to true for encrypting node IP traffic + CreationTime time.Time + BpfDir string // BPF template files directory + LibDir string // Cilium library files directory + RunDir string // Cilium runtime directory + ExternalEnvoyProxy bool // Whether Envoy is deployed as external DaemonSet or not + LBDevInheritIPAddr string // Device which IP addr used by bpf_host devices + EnableXDPPrefilter bool // Enable XDP-based prefiltering + XDPMode string // XDP mode, values: { xdpdrv | xdpgeneric | none } + EnableTCX bool // Enable attaching endpoint programs using tcx if the kernel supports it + HostV4Addr net.IP // Host v4 address of the snooping device + HostV6Addr net.IP // Host v6 address of the snooping device + EncryptInterface []string // Set of network facing interface to encrypt over + EncryptNode bool // Set to true for encrypting node IP traffic // If set to true the daemon will detect new and deleted datapath devices // at runtime and reconfigure the datapath to load programs onto the new @@ -1443,9 +1357,6 @@ type DaemonConfig struct { // Options changeable at runtime Opts *IntOptions - // Mutex for serializing configuration updates to the daemon. - ConfigPatchMutex *lock.RWMutex - // Monitor contains the configuration for the node monitor. Monitor *models.MonitorStatus @@ -1534,6 +1445,24 @@ type DaemonConfig struct { // is enabled. Network byte-order. MonitorAggregationFlags uint16 + // BPFEventsDefaultRateLimit specifies limit of messages per second that can be written to + // BPF events map. This limit is defined for all types of events except dbg and pcap. + // The number of messages is averaged, meaning that if no messages were written + // to the map over 5 seconds, it's possible to write more events than the value of rate limit + // in the 6th second. + // + // If BPFEventsDefaultRateLimit > 0, non-zero value for BPFEventsDefaultBurstLimit must also be provided + // lest the configuration is considered invalid. + BPFEventsDefaultRateLimit uint32 + + // BPFEventsDefaultBurstLimit specifies the maximum number of messages that can be written + // to BPF events map in 1 second. This limit is defined for all types of events except dbg and pcap. + // + // If BPFEventsDefaultBurstLimit > 0, non-zero value for BPFEventsDefaultRateLimit must also be provided + // lest the configuration is considered invalid. + // If both burst and rate limit are 0 or not specified, no limit is imposed. + BPFEventsDefaultBurstLimit uint32 + // BPFMapsDynamicSizeRatio is ratio of total system memory to use for // dynamic sizing of the CT, NAT, Neighbor and SockRevNAT BPF maps. BPFMapsDynamicSizeRatio float64 @@ -1635,6 +1564,9 @@ type DaemonConfig struct { // EnableIPSecEncryptedOverlay enables IPSec encryption for overlay traffic. EnableIPSecEncryptedOverlay bool + // BootIDFile is the file containing the boot ID of the node + BootIDFile string + // EnableWireguard enables Wireguard encryption EnableWireguard bool @@ -1649,9 +1581,6 @@ type DaemonConfig struct { // or direct routing is used and the node CIDR and pod CIDR overlap. EncryptionStrictModeAllowRemoteNodeIdentities bool - // EnableWireguardUserspaceFallback enables the fallback to the userspace implementation - EnableWireguardUserspaceFallback bool - // WireguardPersistentKeepalive controls Wireguard PersistentKeepalive option. WireguardPersistentKeepalive time.Duration @@ -1711,7 +1640,6 @@ type DaemonConfig struct { Labels []string LogDriver []string LogOpt map[string]string - Logstash bool LogSystemLoadConfig bool // Masquerade specifies whether or not to masquerade packets from endpoints @@ -1811,10 +1739,6 @@ type DaemonConfig struct { // between the DNS proxy and the upstream server to be closed. DNSProxySocketLingerTimeout int - // EnableXTSocketFallback allows disabling of kernel's ip_early_demux - // sysctl option if `xt_socket` kernel module is not available. - EnableXTSocketFallback bool - // EnableBPFTProxy enables implementing proxy redirection via BPF // mechanisms rather than iptables rules. EnableBPFTProxy bool @@ -1847,6 +1771,11 @@ type DaemonConfig struct { // by cilium EnableHealthCheckLoadBalancerIP bool + // HealthCheckICMPFailureThreshold is the number of ICMP packets sent for each health + // checking run. If at least an ICMP response is received, the node or endpoint + // is marked as healthy. + HealthCheckICMPFailureThreshold int + // KVstoreKeepAliveInterval is the interval in which the lease is being // renewed. This must be set to a value lesser than the LeaseTTL ideally // by a factor of 3. @@ -1866,6 +1795,10 @@ type DaemonConfig struct { // KVstoreConnectivityTimeout is the timeout when performing kvstore operations KVstoreConnectivityTimeout time.Duration + // KVstorePodNetworkSupport enables the support for running the Cilium KVstore + // in pod network. + KVstorePodNetworkSupport bool + // IdentityChangeGracePeriod is the grace period that needs to pass // before an endpoint that has changed its identity will start using // that new identity. During the grace period, the new identity has @@ -1882,10 +1815,6 @@ type DaemonConfig struct { // The default is 30 seconds for k8s clusters, and 10 minutes for kvstore clusters IdentityRestoreGracePeriod time.Duration - // PolicyQueueSize is the size of the queues for the policy repository. - // A larger queue means that more events related to policy can be buffered. - PolicyQueueSize int - // EndpointQueueSize is the size of the EventQueue per-endpoint. A larger // queue means that more events can be buffered per-endpoint. This is useful // in the case where a cluster might be under high load for endpoint-related @@ -1937,19 +1866,22 @@ type DaemonConfig struct { // ("snat", "dsr" or "hybrid") NodePortMode string + // LoadBalancerModeAnnotation tells whether controller should check service + // level annotation for configuring bpf load balancing algorithm. + LoadBalancerModeAnnotation bool + // NodePortAlg indicates which backend selection algorithm is used // ("random" or "maglev") NodePortAlg string + // LoadBalancerAlgorithmAnnotation tells whether controller should check service + // level annotation for configuring bpf load balancing algorithm. + LoadBalancerAlgorithmAnnotation bool + // LoadBalancerDSRDispatch indicates the method for pushing packets to // backends under DSR ("opt" or "ipip") LoadBalancerDSRDispatch string - // LoadBalancerDSRL4Xlate indicates the method for L4 DNAT translation - // under IPIP dispatch, that is, whether the inner packet will be - // translated to the frontend or backend port. - LoadBalancerDSRL4Xlate string - // LoadBalancerRSSv4CIDR defines the outer source IPv4 prefix for DSR/IPIP LoadBalancerRSSv4CIDR string LoadBalancerRSSv4 net.IPNet @@ -1958,16 +1890,17 @@ type DaemonConfig struct { LoadBalancerRSSv6CIDR string LoadBalancerRSSv6 net.IPNet + // LoadBalancerExternalControlPlane tells whether to not use kube-apiserver as + // its control plane in lb-only mode. + LoadBalancerExternalControlPlane bool + + // LoadBalancerProtocolDifferentiation enables support for service protocol differentiation (TCP, UDP, SCTP) + LoadBalancerProtocolDifferentiation bool + // EnablePMTUDiscovery indicates whether to send ICMP fragmentation-needed // replies to the client (when needed). EnablePMTUDiscovery bool - // Maglev backend table size (M) per service. Must be prime number. - MaglevTableSize int - - // MaglevHashSeed contains the cluster-wide seed for the hash(es). - MaglevHashSeed string - // NodePortAcceleration indicates whether NodePort should be accelerated // via XDP ("none", "generic", "native", or "best-effort") NodePortAcceleration string @@ -2066,11 +1999,8 @@ type DaemonConfig struct { IPv6NativeRoutingCIDR *cidr.CIDR // MasqueradeInterfaces is the selector used to select interfaces subject - // to egress masquerading. EgressMasqueradeInterfaces is the same but as - // a string representation. It's deprecated and can be removed once the GH - // issue https://github.com/cilium/cilium-cli/issues/1896 is fixed. - MasqueradeInterfaces []string - EgressMasqueradeInterfaces string + // to egress masquerading. + MasqueradeInterfaces []string // PolicyTriggerInterval is the amount of time between when policy updates // are triggered. @@ -2099,141 +2029,6 @@ type DaemonConfig struct { // PolicyAccounting enable policy accounting PolicyAccounting bool - // EnableHubble specifies whether to enable the hubble server. - EnableHubble bool - - // HubbleSocketPath specifies the UNIX domain socket for Hubble server to listen to. - HubbleSocketPath string - - // HubbleListenAddress specifies address for Hubble to listen to. - HubbleListenAddress string - - // HubblePreferIpv6 controls whether IPv6 or IPv4 addresses should be preferred for - // communication to agents, if both are available. - HubblePreferIpv6 bool - - // HubbleTLSDisabled allows the Hubble server to run on the given listen - // address without TLS. - HubbleTLSDisabled bool - - // HubbleTLSCertFile specifies the path to the public key file for the - // Hubble server. The file must contain PEM encoded data. - HubbleTLSCertFile string - - // HubbleTLSKeyFile specifies the path to the private key file for the - // Hubble server. The file must contain PEM encoded data. - HubbleTLSKeyFile string - - // HubbleTLSClientCAFiles specifies the path to one or more client CA - // certificates to use for TLS with mutual authentication (mTLS). The files - // must contain PEM encoded data. - HubbleTLSClientCAFiles []string - - // HubbleEventBufferCapacity specifies the capacity of Hubble events buffer. - HubbleEventBufferCapacity int - - // HubbleEventQueueSize specifies the buffer size of the channel to receive monitor events. - HubbleEventQueueSize int - - // HubbleMetricsServer specifies the addresses to serve Hubble metrics on. - HubbleMetricsServer string - - // HubbleMetricsServerTLSEnabled allows the Hubble metrics server to run on the given listen - // address with TLS. - HubbleMetricsServerTLSEnabled bool - - // HubbleMetricsServerTLSCertFile specifies the path to the public key file for the - // Hubble server. The file must contain PEM encoded data. - HubbleMetricsServerTLSCertFile string - - // HubbleMetricsServerTLSKeyFile specifies the path to the private key file for the - // Hubble server. The file must contain PEM encoded data. - HubbleMetricsServerTLSKeyFile string - - // HubbleMetricsServerTLSClientCAFiles specifies the path to one or more client CA - // certificates to use for TLS with mutual authentication (mTLS). The files - // must contain PEM encoded data. - HubbleMetricsServerTLSClientCAFiles []string - - // HubbleMetrics specifies enabled metrics and their configuration options. - HubbleMetrics []string - - // HubbleFlowlogsConfigFilePath specifies the filepath with configuration of hubble flowlogs. - // e.g. "/etc/cilium/flowlog.yaml" - HubbleFlowlogsConfigFilePath string - - // HubbleExportFilePath specifies the filepath to write Hubble events to. - // e.g. "/var/run/cilium/hubble/events.log" - HubbleExportFilePath string - - // HubbleExportFileMaxSizeMB specifies the file size in MB at which to rotate - // the Hubble export file. - HubbleExportFileMaxSizeMB int - - // HubbleExportFileMaxBacks specifies the number of rotated files to keep. - HubbleExportFileMaxBackups int - - // HubbleExportFileCompress specifies whether rotated files are compressed. - HubbleExportFileCompress bool - - // HubbleExportAllowlist specifies allow list filter use by exporter. - HubbleExportAllowlist []*flowpb.FlowFilter - - // HubbleExportDenylist specifies deny list filter use by exporter. - HubbleExportDenylist []*flowpb.FlowFilter - - // HubbleExportFieldmask specifies list of fields to log in exporter. - HubbleExportFieldmask []string - - // EnableHubbleRecorderAPI specifies if the Hubble Recorder API should be served - EnableHubbleRecorderAPI bool - - // EnableHubbleOpenMetrics enables exporting hubble metrics in OpenMetrics format. - EnableHubbleOpenMetrics bool - - // HubbleRecorderStoragePath specifies the directory in which pcap files - // created via the Hubble Recorder API are stored - HubbleRecorderStoragePath string - - // HubbleRecorderSinkQueueSize is the queue size for each recorder sink - HubbleRecorderSinkQueueSize int - - // HubbleSkipUnknownCGroupIDs specifies if events with unknown cgroup ids should be skipped - HubbleSkipUnknownCGroupIDs bool - - // HubbleMonitorEvents specifies Cilium monitor events for Hubble to observe. - // By default, Hubble observes all monitor events. - HubbleMonitorEvents []string - - // HubbleRedactEnabled controls if Hubble will be redacting sensitive information from L7 flows - HubbleRedactEnabled bool - - // HubbleRedactURLQuery controls if the URL query will be redacted from flows - HubbleRedactHttpURLQuery bool - - // HubbleRedactUserInfo controls if the user info will be redacted from flows - HubbleRedactHttpUserInfo bool - - // HubbleRedactKafkaApiKey controls if Kafka API key will be redacted from flows - HubbleRedactKafkaApiKey bool - - // HubbleRedactHttpHeadersAllow controls which http headers will not be redacted from flows - HubbleRedactHttpHeadersAllow []string - - // HubbleRedactHttpHeadersDeny controls which http headers will be redacted from flows - HubbleRedactHttpHeadersDeny []string - - // HubbleDropEvents controls whether Hubble should create v1.Events - // for packet drops related to pods - HubbleDropEvents bool - - // HubbleDropEventsInterval controls the minimum time between emitting events - // with the same source and destination IP - HubbleDropEventsInterval time.Duration - - // HubbleDropEventsReasons controls which drop reasons to emit events for - HubbleDropEventsReasons []string - // EnableIPv4FragmentsTracking enables IPv4 fragments tracking for // L4-based lookups. Needs LRU map support. EnableIPv4FragmentsTracking bool @@ -2280,6 +2075,10 @@ type DaemonConfig struct { // LBAffinityMapEntries is the maximum number of entries allowed in BPF lbmap for session affinities. LBAffinityMapEntries int + // LBSourceRangeAllTypes enables propagation of loadbalancerSourceRanges to all Kubernetes + // service types which were created from the LoadBalancer service. + LBSourceRangeAllTypes bool + // LBSourceRangeMapEntries is the maximum number of entries allowed in BPF lbmap for source ranges. LBSourceRangeMapEntries int @@ -2295,6 +2094,10 @@ type DaemonConfig struct { // Otherwise, it will use the old scheme. EgressMultiHomeIPRuleCompat bool + // Install ingress/egress routes through uplink on host for Pods when working with + // delegated IPAM plugin. + InstallUplinkRoutesForDelegatedIPAM bool + // InstallNoConntrackIptRules instructs Cilium to install Iptables rules to skip netfilter connection tracking on all pod traffic. InstallNoConntrackIptRules bool @@ -2307,16 +2110,6 @@ type DaemonConfig struct { // metrics. EnableCustomCalls bool - // BGPAnnounceLBIP announces service IPs of type LoadBalancer via BGP. - BGPAnnounceLBIP bool - - // BGPAnnouncePodCIDR announces the node's pod CIDR via BGP. - BGPAnnouncePodCIDR bool - - // BGPConfigPath is the file path to the BGP configuration. It is - // compatible with MetalLB's configuration. - BGPConfigPath string - // BGPSecretsNamespace is the Kubernetes namespace to get BGP control plane secrets from. BGPSecretsNamespace string @@ -2380,6 +2173,9 @@ type DaemonConfig struct { // Enables BGP control plane features. EnableBGPControlPlane bool + // Enables BGP control plane status reporting. + EnableBGPControlPlaneStatusReport bool + // BPFMapEventBuffers has configuration on what BPF map event buffers to enabled // and configuration options for those. BPFMapEventBuffers map[string]string @@ -2395,6 +2191,9 @@ type DaemonConfig struct { // BPFEventsTraceEnabled controls whether the Cilium datapath exposes "trace" events to Cilium monitor and Hubble. BPFEventsTraceEnabled bool + // BPFConntrackAccounting controls whether CT accounting for packets and bytes is enabled. + BPFConntrackAccounting bool + // IPAMCiliumNodeUpdateRate is the maximum rate at which the CiliumNode custom // resource is updated. IPAMCiliumNodeUpdateRate time.Duration @@ -2402,6 +2201,13 @@ type DaemonConfig struct { // EnableK8sNetworkPolicy enables support for K8s NetworkPolicy. EnableK8sNetworkPolicy bool + // EnableCiliumNetworkPolicy enables support for Cilium Network Policy. + EnableCiliumNetworkPolicy bool + + // EnableCiliumClusterwideNetworkPolicy enables support for Cilium Clusterwide + // Network Policy. + EnableCiliumClusterwideNetworkPolicy bool + // PolicyCIDRMatchMode is the list of entities that can be selected by CIDR policy. // Currently supported values: // - world @@ -2431,6 +2237,19 @@ type DaemonConfig struct { // EnableSocketLBPodConnectionTermination enables the termination of connections from pods // to deleted service backends when socket-LB is enabled EnableSocketLBPodConnectionTermination bool + + // EnableInternalTrafficPolicy enables handling routing for services with internalTrafficPolicy configured + EnableInternalTrafficPolicy bool + + // EnableNonDefaultDenyPolicies allows policies to define whether they are operating in default-deny mode + EnableNonDefaultDenyPolicies bool + + // EnableSourceIPVerification enables the source ip validation of connection from endpoints to endpoints + EnableSourceIPVerification bool + + // EnableEndpointLockdownOnPolicyOverflow enables endpoint lockdown when an endpoint's + // policy map overflows. + EnableEndpointLockdownOnPolicyOverflow bool } var ( @@ -2438,7 +2257,6 @@ var ( Config = &DaemonConfig{ CreationTime: time.Now(), Opts: NewIntOptions(&DaemonOptionLibrary), - ConfigPatchMutex: new(lock.RWMutex), Monitor: &models.MonitorStatus{Cpus: int64(runtime.NumCPU()), Npages: 64, Pagesize: int64(os.Getpagesize()), Lost: 0, Unknown: 0}, IPv6ClusterAllocCIDR: defaults.IPv6ClusterAllocCIDR, IPv6ClusterAllocCIDRBase: defaults.IPv6ClusterAllocCIDRBase, @@ -2447,6 +2265,7 @@ var ( EnableEndpointHealthChecking: defaults.EnableEndpointHealthChecking, EnableHealthCheckLoadBalancerIP: defaults.EnableHealthCheckLoadBalancerIP, EnableHealthCheckNodePort: defaults.EnableHealthCheckNodePort, + HealthCheckICMPFailureThreshold: defaults.HealthCheckICMPFailureThreshold, EnableIPv4: defaults.EnableIPv4, EnableIPv6: defaults.EnableIPv6, EnableIPv6NDP: defaults.EnableIPv6NDP, @@ -2456,6 +2275,7 @@ var ( ToFQDNsMaxIPsPerHost: defaults.ToFQDNsMaxIPsPerHost, KVstorePeriodicSync: defaults.KVstorePeriodicSync, KVstoreConnectivityTimeout: defaults.KVstoreConnectivityTimeout, + KVstorePodNetworkSupport: defaults.KVstorePodNetworkSupport, IdentityChangeGracePeriod: defaults.IdentityChangeGracePeriod, IdentityRestoreGracePeriod: defaults.IdentityRestoreGracePeriodK8s, FixedIdentityMapping: make(map[string]string), @@ -2475,49 +2295,27 @@ var ( K8sEnableLeasesFallbackDiscovery: defaults.K8sEnableLeasesFallbackDiscovery, - ExternalClusterIP: defaults.ExternalClusterIP, - EnableVTEP: defaults.EnableVTEP, - EnableBGPControlPlane: defaults.EnableBGPControlPlane, - EnableK8sNetworkPolicy: defaults.EnableK8sNetworkPolicy, - PolicyCIDRMatchMode: defaults.PolicyCIDRMatchMode, - MaxConnectedClusters: defaults.MaxConnectedClusters, + ExternalClusterIP: defaults.ExternalClusterIP, + EnableVTEP: defaults.EnableVTEP, + EnableBGPControlPlane: defaults.EnableBGPControlPlane, + EnableK8sNetworkPolicy: defaults.EnableK8sNetworkPolicy, + EnableCiliumNetworkPolicy: defaults.EnableCiliumNetworkPolicy, + EnableCiliumClusterwideNetworkPolicy: defaults.EnableCiliumClusterwideNetworkPolicy, + PolicyCIDRMatchMode: defaults.PolicyCIDRMatchMode, + MaxConnectedClusters: defaults.MaxConnectedClusters, BPFEventsDropEnabled: defaults.BPFEventsDropEnabled, BPFEventsPolicyVerdictEnabled: defaults.BPFEventsPolicyVerdictEnabled, BPFEventsTraceEnabled: defaults.BPFEventsTraceEnabled, + BPFConntrackAccounting: defaults.BPFConntrackAccounting, EnableEnvoyConfig: defaults.EnableEnvoyConfig, - } -) + EnableInternalTrafficPolicy: defaults.EnableInternalTrafficPolicy, -// GetIPv4NativeRoutingCIDR returns the native routing CIDR if configured -func (c *DaemonConfig) GetIPv4NativeRoutingCIDR() (cidr *cidr.CIDR) { - c.ConfigPatchMutex.RLock() - cidr = c.IPv4NativeRoutingCIDR - c.ConfigPatchMutex.RUnlock() - return -} - -// SetIPv4NativeRoutingCIDR sets the native routing CIDR -func (c *DaemonConfig) SetIPv4NativeRoutingCIDR(cidr *cidr.CIDR) { - c.ConfigPatchMutex.Lock() - c.IPv4NativeRoutingCIDR = cidr - c.ConfigPatchMutex.Unlock() -} + EnableNonDefaultDenyPolicies: defaults.EnableNonDefaultDenyPolicies, -// GetIPv6NativeRoutingCIDR returns the native routing CIDR if configured -func (c *DaemonConfig) GetIPv6NativeRoutingCIDR() (cidr *cidr.CIDR) { - c.ConfigPatchMutex.RLock() - cidr = c.IPv6NativeRoutingCIDR - c.ConfigPatchMutex.RUnlock() - return -} - -// SetIPv6NativeRoutingCIDR sets the native routing CIDR -func (c *DaemonConfig) SetIPv6NativeRoutingCIDR(cidr *cidr.CIDR) { - c.ConfigPatchMutex.Lock() - c.IPv6NativeRoutingCIDR = cidr - c.ConfigPatchMutex.Unlock() -} + EnableSourceIPVerification: defaults.EnableSourceIPVerification, + } +) // IsExcludedLocalAddress returns true if the specified IP matches one of the // excluded local IP ranges @@ -2580,14 +2378,33 @@ func (c *DaemonConfig) AreDevicesRequired() bool { c.EnableIPSecEncryptedOverlay } -// When WG & encrypt-node are on, a NodePort BPF to-be forwarded request -// to a remote node running a selected service endpoint must be encrypted. -// To make the NodePort's rev-{S,D}NAT translations to happen for a reply -// from the remote node, we need to attach bpf_host to the Cilium's WG -// netdev (otherwise, the WG netdev after decrypting the reply will pass -// it to the stack which drops the packet). +// NeedBPFHostOnWireGuardDevice returns true if the agent needs to attach +// a BPF program on the Ingress of Cilium's WireGuard device func (c *DaemonConfig) NeedBPFHostOnWireGuardDevice() bool { - return c.EnableNodePort && c.EnableWireguard && c.EncryptNode + if !c.EnableWireguard { + return false + } + + // In native routing mode we want to deliver packets to local endpoints + // straight from BPF, without passing through the stack. + // This matches overlay mode (where bpf_overlay would handle the delivery) + // and native routing mode without encryption (where bpf_host at the native + // device would handle the delivery). + if !c.TunnelingEnabled() { + return true + } + + // When WG & encrypt-node are on, a NodePort BPF to-be forwarded request + // to a remote node running a selected service endpoint must be encrypted. + // To make the NodePort's rev-{S,D}NAT translations to happen for a reply + // from the remote node, we need to attach bpf_host to the Cilium's WG + // netdev (otherwise, the WG netdev after decrypting the reply will pass + // it to the stack which drops the packet). + if c.EnableNodePort && c.EncryptNode { + return true + } + + return false } // MasqueradingEnabled returns true if either IPv4 or IPv6 masquerading is enabled. @@ -2639,6 +2456,11 @@ func (c *DaemonConfig) IPv6Enabled() bool { return c.EnableIPv6 } +// LBProtoDiffEnabled returns true if LoadBalancerProtocolDifferentiation is enabled +func (c *DaemonConfig) LBProtoDiffEnabled() bool { + return c.LoadBalancerProtocolDifferentiation +} + // IPv6NDPEnabled returns true if IPv6 NDP support is enabled func (c *DaemonConfig) IPv6NDPEnabled() bool { return c.EnableIPv6NDP @@ -2736,7 +2558,14 @@ func (c *DaemonConfig) DirectRoutingDeviceRequired() bool { func (c *DaemonConfig) LoadBalancerUsesDSR() bool { return c.NodePortMode == NodePortModeDSR || - c.NodePortMode == NodePortModeHybrid + c.NodePortMode == NodePortModeHybrid || + c.LoadBalancerModeAnnotation +} + +// KVstoreEnabledWithoutPodNetworkSupport returns whether Cilium is configured to connect +// to an external KVStore, and the support for running it in pod network is disabled. +func (c *DaemonConfig) KVstoreEnabledWithoutPodNetworkSupport() bool { + return c.KVStore != "" && !c.KVstorePodNetworkSupport } func (c *DaemonConfig) validateIPv6ClusterAllocCIDR() error { @@ -2767,13 +2596,6 @@ func (c *DaemonConfig) validateIPv6NAT46x64CIDR() error { return nil } -func (c *DaemonConfig) validateHubbleRedact() error { - if len(c.HubbleRedactHttpHeadersAllow) > 0 && len(c.HubbleRedactHttpHeadersDeny) > 0 { - return fmt.Errorf("Only one of --hubble-redact-http-headers-allow and --hubble-redact-http-headers-deny can be specified, not both") - } - return nil -} - func (c *DaemonConfig) validateContainerIPLocalReservedPorts() error { if c.ContainerIPLocalReservedPorts == "" || c.ContainerIPLocalReservedPorts == defaults.ContainerIPLocalReservedPortsAuto { return nil @@ -2798,10 +2620,6 @@ func (c *DaemonConfig) Validate(vp *viper.Viper) error { c.IPv6NAT46x64CIDR, err) } - if err := c.validateHubbleRedact(); err != nil { - return err - } - if c.MTU < 0 { return fmt.Errorf("MTU '%d' cannot be negative", c.MTU) } @@ -2838,7 +2656,7 @@ func (c *DaemonConfig) Validate(vp *viper.Viper) error { if err := cinfo.InitClusterIDMax(); err != nil { return err } - if err := cinfo.Validate(log); err != nil { + if err := cinfo.Validate(); err != nil { return err } @@ -2971,7 +2789,30 @@ func (c *DaemonConfig) parseExcludedLocalAddresses(s []string) error { return nil } -// Populate sets all options with the values from viper +// SetupLogging sets all logging-related options with the values from viper, +// then setup logging based on these options and the given tag. +// +// This allows initializing logging as early as possible, then log entries +// produced below in Populate can honor the requested logging configurations. +func (c *DaemonConfig) SetupLogging(vp *viper.Viper, tag string) { + c.Debug = vp.GetBool(DebugArg) + c.LogDriver = vp.GetStringSlice(LogDriver) + + if m, err := command.GetStringMapStringE(vp, LogOpt); err != nil { + log.Fatalf("unable to parse %s: %s", LogOpt, err) + } else { + c.LogOpt = m + } + + if err := logging.SetupLogging(c.LogDriver, logging.LogOptions(c.LogOpt), tag, c.Debug); err != nil { + log.Fatal(err) + } +} + +// Populate sets all non-logging options with the values from viper. +// +// This function may emit logs. Consider calling SetupLogging before this +// to make sure that they honor logging-related options. func (c *DaemonConfig) Populate(vp *viper.Viper) { var err error @@ -2991,9 +2832,7 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { c.ClusterName = vp.GetString(clustermeshTypes.OptClusterName) c.MaxConnectedClusters = vp.GetUint32(clustermeshTypes.OptMaxConnectedClusters) c.DatapathMode = vp.GetString(DatapathMode) - c.Debug = vp.GetBool(DebugArg) c.DebugVerbose = vp.GetStringSlice(DebugVerbose) - c.DirectRoutingDevice = vp.GetString(DirectRoutingDevice) c.EnableIPv4 = vp.GetBool(EnableIPv4Name) c.EnableIPv6 = vp.GetBool(EnableIPv6Name) c.EnableIPv6NDP = vp.GetBool(EnableIPv6NDPName) @@ -3007,20 +2846,17 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { c.L2AnnouncerLeaseDuration = vp.GetDuration(L2AnnouncerLeaseDuration) c.L2AnnouncerRenewDeadline = vp.GetDuration(L2AnnouncerRenewDeadline) c.L2AnnouncerRetryPeriod = vp.GetDuration(L2AnnouncerRetryPeriod) - c.EnableWireguardUserspaceFallback = vp.GetBool(EnableWireguardUserspaceFallback) c.WireguardPersistentKeepalive = vp.GetDuration(WireguardPersistentKeepalive) c.EnableWellKnownIdentities = vp.GetBool(EnableWellKnownIdentities) c.EnableXDPPrefilter = vp.GetBool(EnableXDPPrefilter) c.EnableTCX = vp.GetBool(EnableTCX) c.DisableCiliumEndpointCRD = vp.GetBool(DisableCiliumEndpointCRDName) c.MasqueradeInterfaces = vp.GetStringSlice(MasqueradeInterfaces) - c.EgressMasqueradeInterfaces = strings.Join(c.MasqueradeInterfaces, ",") c.BPFSocketLBHostnsOnly = vp.GetBool(BPFSocketLBHostnsOnly) c.EnableSocketLB = vp.GetBool(EnableSocketLB) c.EnableSocketLBTracing = vp.GetBool(EnableSocketLBTracing) c.EnableSocketLBPodConnectionTermination = vp.GetBool(EnableSocketLBPodConnectionTermination) c.EnableBPFTProxy = vp.GetBool(EnableBPFTProxy) - c.EnableXTSocketFallback = vp.GetBool(EnableXTSocketFallbackName) c.EnableAutoDirectRouting = vp.GetBool(EnableAutoDirectRoutingName) c.DirectRoutingSkipUnreachable = vp.GetBool(DirectRoutingSkipUnreachableName) c.EnableEndpointRoutes = vp.GetBool(EnableEndpointRoutes) @@ -3028,6 +2864,7 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { c.EnableEndpointHealthChecking = vp.GetBool(EnableEndpointHealthChecking) c.EnableHealthCheckNodePort = vp.GetBool(EnableHealthCheckNodePort) c.EnableHealthCheckLoadBalancerIP = vp.GetBool(EnableHealthCheckLoadBalancerIP) + c.HealthCheckICMPFailureThreshold = vp.GetInt(HealthCheckICMPFailureThreshold) c.EnableLocalNodeRoute = vp.GetBool(EnableLocalNodeRoute) c.EnablePolicy = strings.ToLower(vp.GetString(EnablePolicy)) c.EnableExternalIPs = vp.GetBool(EnableExternalIPs) @@ -3039,8 +2876,6 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { c.EnableSVCSourceRangeCheck = vp.GetBool(EnableSVCSourceRangeCheck) c.EnableHostPort = vp.GetBool(EnableHostPort) c.EnableHostLegacyRouting = vp.GetBool(EnableHostLegacyRouting) - c.MaglevTableSize = vp.GetInt(MaglevTableSize) - c.MaglevHashSeed = vp.GetString(MaglevHashSeed) c.NodePortBindProtection = vp.GetBool(NodePortBindProtection) c.EnableAutoProtectNodePortRange = vp.GetBool(EnableAutoProtectNodePortRange) c.KubeProxyReplacement = vp.GetString(KubeProxyReplacement) @@ -3076,13 +2911,12 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { c.KVstoreKeepAliveInterval = c.KVstoreLeaseTTL / defaults.KVstoreKeepAliveIntervalFactor c.KVstorePeriodicSync = vp.GetDuration(KVstorePeriodicSync) c.KVstoreConnectivityTimeout = vp.GetDuration(KVstoreConnectivityTimeout) + c.KVstorePodNetworkSupport = vp.GetBool(KVstorePodNetworkSupport) c.KVstoreMaxConsecutiveQuorumErrors = vp.GetUint(KVstoreMaxConsecutiveQuorumErrorsName) c.LabelPrefixFile = vp.GetString(LabelPrefixFile) c.Labels = vp.GetStringSlice(Labels) c.LibDir = vp.GetString(LibDir) - c.LogDriver = vp.GetStringSlice(LogDriver) c.LogSystemLoadConfig = vp.GetBool(LogSystemLoadConfigName) - c.Logstash = vp.GetBool(Logstash) c.LoopbackIPv4 = vp.GetString(LoopbackIPv4) c.LocalRouterIPv4 = vp.GetString(LocalRouterIPv4) c.LocalRouterIPv6 = vp.GetString(LocalRouterIPv6) @@ -3122,15 +2956,11 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { c.FragmentsMapEntries = vp.GetInt(FragmentsMapEntriesName) c.CRDWaitTimeout = vp.GetDuration(CRDWaitTimeout) c.LoadBalancerDSRDispatch = vp.GetString(LoadBalancerDSRDispatch) - c.LoadBalancerDSRL4Xlate = vp.GetString(LoadBalancerDSRL4Xlate) c.LoadBalancerRSSv4CIDR = vp.GetString(LoadBalancerRSSv4CIDR) c.LoadBalancerRSSv6CIDR = vp.GetString(LoadBalancerRSSv6CIDR) c.InstallNoConntrackIptRules = vp.GetBool(InstallNoConntrackIptRules) c.ContainerIPLocalReservedPorts = vp.GetString(ContainerIPLocalReservedPorts) c.EnableCustomCalls = vp.GetBool(EnableCustomCallsName) - c.BGPAnnounceLBIP = vp.GetBool(BGPAnnounceLBIP) - c.BGPAnnouncePodCIDR = vp.GetBool(BGPAnnouncePodCIDR) - c.BGPConfigPath = vp.GetString(BGPConfigPath) c.BGPSecretsNamespace = vp.GetString(BGPSecretsNamespace) c.ExternalClusterIP = vp.GetBool(ExternalClusterIPName) c.EnableNat46X64Gateway = vp.GetBool(EnableNat46X64Gateway) @@ -3145,7 +2975,10 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { c.BPFEventsDropEnabled = vp.GetBool(BPFEventsDropEnabled) c.BPFEventsPolicyVerdictEnabled = vp.GetBool(BPFEventsPolicyVerdictEnabled) c.BPFEventsTraceEnabled = vp.GetBool(BPFEventsTraceEnabled) + c.BPFConntrackAccounting = vp.GetBool(BPFConntrackAccounting) c.EnableIPSecEncryptedOverlay = vp.GetBool(EnableIPSecEncryptedOverlay) + c.LBSourceRangeAllTypes = vp.GetBool(LBSourceRangeAllTypes) + c.BootIDFile = vp.GetString(BootIDFilename) c.ServiceNoBackendResponse = vp.GetString(ServiceNoBackendResponse) switch c.ServiceNoBackendResponse { @@ -3159,6 +2992,7 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { c.populateLoadBalancerSettings(vp) c.EnableRuntimeDeviceDetection = vp.GetBool(EnableRuntimeDeviceDetection) c.EgressMultiHomeIPRuleCompat = vp.GetBool(EgressMultiHomeIPRuleCompat) + c.InstallUplinkRoutesForDelegatedIPAM = vp.GetBool(InstallUplinkRoutesForDelegatedIPAM) vlanBPFBypassIDs := vp.GetStringSlice(VLANBPFBypass) c.VLANBPFBypass = make([]int, 0, len(vlanBPFBypassIDs)) @@ -3303,8 +3137,6 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { } c.IPv6PodSubnets = subnets - c.XDPMode = XDPModeLinkNone - err = c.populateNodePortRange(vp) if err != nil { log.WithError(err).Fatal("Failed to populate NodePortRange") @@ -3360,10 +3192,16 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { c.KVStoreOpt = m } - if m, err := command.GetStringMapStringE(vp, LogOpt); err != nil { - log.Fatalf("unable to parse %s: %s", LogOpt, err) - } else { - c.LogOpt = m + bpfEventsDefaultRateLimit := vp.GetUint32(BPFEventsDefaultRateLimit) + bpfEventsDefaultBurstLimit := vp.GetUint32(BPFEventsDefaultBurstLimit) + switch { + case bpfEventsDefaultRateLimit > 0 && bpfEventsDefaultBurstLimit == 0: + log.Fatalf("invalid BPF events default config: burst limit must also be specified when rate limit is provided") + case bpfEventsDefaultRateLimit == 0 && bpfEventsDefaultBurstLimit > 0: + log.Fatalf("invalid BPF events default config: rate limit must also be specified when burst limit is provided") + default: + c.BPFEventsDefaultRateLimit = vp.GetUint32(BPFEventsDefaultRateLimit) + c.BPFEventsDefaultBurstLimit = vp.GetUint32(BPFEventsDefaultBurstLimit) } c.bpfMapEventConfigs = make(BPFEventBufferConfigs) @@ -3392,23 +3230,32 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { EnableCiliumEndpointSlice, c.EnableCiliumEndpointSlice, DisableCiliumEndpointCRDName) } + // To support K8s NetworkPolicy + c.EnableK8sNetworkPolicy = vp.GetBool(EnableK8sNetworkPolicy) + c.PolicyCIDRMatchMode = vp.GetStringSlice(PolicyCIDRMatchMode) + c.EnableNodeSelectorLabels = vp.GetBool(EnableNodeSelectorLabels) + c.NodeLabels = vp.GetStringSlice(NodeLabels) + + c.EnableCiliumNetworkPolicy = vp.GetBool(EnableCiliumNetworkPolicy) + c.EnableCiliumClusterwideNetworkPolicy = vp.GetBool(EnableCiliumClusterwideNetworkPolicy) + c.IdentityAllocationMode = vp.GetString(IdentityAllocationMode) switch c.IdentityAllocationMode { // This is here for tests. Some call Populate without the normal init case "": c.IdentityAllocationMode = IdentityAllocationModeKVstore - case IdentityAllocationModeKVstore, IdentityAllocationModeCRD: + case IdentityAllocationModeKVstore, IdentityAllocationModeCRD, IdentityAllocationModeDoubleWriteReadKVstore, IdentityAllocationModeDoubleWriteReadCRD: // c.IdentityAllocationMode is set above default: - log.Fatalf("Invalid identity allocation mode %q. It must be one of %s or %s", c.IdentityAllocationMode, IdentityAllocationModeKVstore, IdentityAllocationModeCRD) + log.Fatalf("Invalid identity allocation mode %q. It must be one of %s, %s or %s / %s", c.IdentityAllocationMode, IdentityAllocationModeKVstore, IdentityAllocationModeCRD, IdentityAllocationModeDoubleWriteReadKVstore, IdentityAllocationModeDoubleWriteReadCRD) } if c.KVStore == "" { if c.IdentityAllocationMode != IdentityAllocationModeCRD { log.Warningf("Running Cilium with %q=%q requires identity allocation via CRDs. Changing %s to %q", KVStore, c.KVStore, IdentityAllocationMode, IdentityAllocationModeCRD) c.IdentityAllocationMode = IdentityAllocationModeCRD } - if c.DisableCiliumEndpointCRD { - log.Warningf("Running Cilium with %q=%q requires endpoint CRDs. Changing %s to %t", KVStore, c.KVStore, DisableCiliumEndpointCRDName, false) + if c.DisableCiliumEndpointCRD && NetworkPolicyEnabled(c) { + log.Warningf("Running Cilium with %q=%q requires endpoint CRDs when network policy enforcement system is enabled. Changing %s to %t", KVStore, c.KVStore, DisableCiliumEndpointCRDName, false) c.DisableCiliumEndpointCRD = false } } @@ -3434,82 +3281,6 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { } c.KubeProxyReplacementHealthzBindAddr = vp.GetString(KubeProxyReplacementHealthzBindAddr) - // Hubble options. - c.EnableHubble = vp.GetBool(EnableHubble) - c.EnableHubbleOpenMetrics = vp.GetBool(EnableHubbleOpenMetrics) - c.HubbleSocketPath = vp.GetString(HubbleSocketPath) - c.HubbleListenAddress = vp.GetString(HubbleListenAddress) - c.HubblePreferIpv6 = vp.GetBool(HubblePreferIpv6) - c.HubbleTLSDisabled = vp.GetBool(HubbleTLSDisabled) - c.HubbleTLSCertFile = vp.GetString(HubbleTLSCertFile) - c.HubbleTLSKeyFile = vp.GetString(HubbleTLSKeyFile) - c.HubbleTLSClientCAFiles = vp.GetStringSlice(HubbleTLSClientCAFiles) - c.HubbleEventBufferCapacity = vp.GetInt(HubbleEventBufferCapacity) - c.HubbleEventQueueSize = vp.GetInt(HubbleEventQueueSize) - if c.HubbleEventQueueSize == 0 { - c.HubbleEventQueueSize = getDefaultMonitorQueueSize(runtime.NumCPU()) - } - c.HubbleMetricsServer = vp.GetString(HubbleMetricsServer) - c.HubbleMetricsServerTLSEnabled = vp.GetBool(HubbleMetricsTLSEnabled) - c.HubbleMetricsServerTLSCertFile = vp.GetString(HubbleMetricsTLSCertFile) - c.HubbleMetricsServerTLSKeyFile = vp.GetString(HubbleMetricsTLSKeyFile) - c.HubbleMetricsServerTLSClientCAFiles = vp.GetStringSlice(HubbleMetricsTLSClientCAFiles) - c.HubbleMetrics = vp.GetStringSlice(HubbleMetrics) - - c.HubbleExportFilePath = vp.GetString(HubbleExportFilePath) - c.HubbleExportFileMaxSizeMB = vp.GetInt(HubbleExportFileMaxSizeMB) - c.HubbleExportFileMaxBackups = vp.GetInt(HubbleExportFileMaxBackups) - c.HubbleExportFileCompress = vp.GetBool(HubbleExportFileCompress) - - for _, enc := range vp.GetStringSlice(HubbleExportAllowlist) { - dec := json.NewDecoder(strings.NewReader(enc)) - var result flowpb.FlowFilter - if err := dec.Decode(&result); err != nil { - if errors.Is(err, io.EOF) { - break - } - log.Fatalf("failed to decode hubble-export-allowlist '%v': %s", enc, err) - } - c.HubbleExportAllowlist = append(c.HubbleExportAllowlist, &result) - } - - for _, enc := range vp.GetStringSlice(HubbleExportDenylist) { - dec := json.NewDecoder(strings.NewReader(enc)) - var result flowpb.FlowFilter - if err := dec.Decode(&result); err != nil { - if errors.Is(err, io.EOF) { - break - } - log.Fatalf("failed to decode hubble-export-denylist '%v': %s", enc, err) - } - c.HubbleExportDenylist = append(c.HubbleExportDenylist, &result) - } - - if fm := vp.GetStringSlice(HubbleExportFieldmask); len(fm) > 0 { - _, err := fieldmaskpb.New(&flowpb.Flow{}, fm...) - if err != nil { - log.Fatalf("hubble-export-fieldmask contains invalid fieldmask '%v': %s", fm, err) - } - c.HubbleExportFieldmask = vp.GetStringSlice(HubbleExportFieldmask) - } - - c.HubbleFlowlogsConfigFilePath = vp.GetString(HubbleFlowlogsConfigFilePath) - - c.EnableHubbleRecorderAPI = vp.GetBool(EnableHubbleRecorderAPI) - c.HubbleRecorderStoragePath = vp.GetString(HubbleRecorderStoragePath) - c.HubbleRecorderSinkQueueSize = vp.GetInt(HubbleRecorderSinkQueueSize) - c.HubbleSkipUnknownCGroupIDs = vp.GetBool(HubbleSkipUnknownCGroupIDs) - c.HubbleMonitorEvents = vp.GetStringSlice(HubbleMonitorEvents) - c.HubbleRedactEnabled = vp.GetBool(HubbleRedactEnabled) - c.HubbleRedactHttpURLQuery = vp.GetBool(HubbleRedactHttpURLQuery) - c.HubbleRedactHttpUserInfo = vp.GetBool(HubbleRedactHttpUserInfo) - c.HubbleRedactKafkaApiKey = vp.GetBool(HubbleRedactKafkaApiKey) - c.HubbleRedactHttpHeadersAllow = vp.GetStringSlice(HubbleRedactHttpHeadersAllow) - c.HubbleRedactHttpHeadersDeny = vp.GetStringSlice(HubbleRedactHttpHeadersDeny) - c.HubbleDropEvents = vp.GetBool(HubbleDropEvents) - c.HubbleDropEventsInterval = vp.GetDuration(HubbleDropEventsInterval) - c.HubbleDropEventsReasons = vp.GetStringSlice(HubbleDropEventsReasons) - // Hidden options c.CompilerFlags = vp.GetStringSlice(CompilerFlags) c.ConfigFile = vp.GetString(ConfigFile) @@ -3517,7 +3288,6 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { c.K8sNamespace = vp.GetString(K8sNamespaceName) c.AgentNotReadyNodeTaintKey = vp.GetString(AgentNotReadyNodeTaintKeyName) c.MaxControllerInterval = vp.GetInt(MaxCtrlIntervalName) - c.PolicyQueueSize = sanitizeIntParam(vp, PolicyQueueSize, defaults.PolicyQueueSize) c.EndpointQueueSize = sanitizeIntParam(vp, EndpointQueueSize, defaults.EndpointQueueSize) c.EnableICMPRules = vp.GetBool(EnableICMPRules) c.UseCiliumInternalIPForIPsec = vp.GetBool(UseCiliumInternalIPForIPsec) @@ -3530,11 +3300,11 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { // Enable BGP control plane features c.EnableBGPControlPlane = vp.GetBool(EnableBGPControlPlane) - // To support K8s NetworkPolicy - c.EnableK8sNetworkPolicy = vp.GetBool(EnableK8sNetworkPolicy) - c.PolicyCIDRMatchMode = vp.GetStringSlice(PolicyCIDRMatchMode) - c.EnableNodeSelectorLabels = vp.GetBool(EnableNodeSelectorLabels) - c.NodeLabels = vp.GetStringSlice(NodeLabels) + // Enable BGP control plane status reporting + c.EnableBGPControlPlaneStatusReport = vp.GetBool(EnableBGPControlPlaneStatusReport) + + // Support failure-mode for policy map overflow + c.EnableEndpointLockdownOnPolicyOverflow = vp.GetBool(EnableEndpointLockdownOnPolicyOverflow) // Parse node label patterns nodeLabelPatterns := vp.GetStringSlice(ExcludeNodeLabelPatterns) @@ -3550,12 +3320,20 @@ func (c *DaemonConfig) Populate(vp *viper.Viper) { if c.KVStore != "" { c.IdentityRestoreGracePeriod = defaults.IdentityRestoreGracePeriodKvstore } + + c.LoadBalancerProtocolDifferentiation = vp.GetBool(LoadBalancerProtocolDifferentiation) + + c.EnableInternalTrafficPolicy = vp.GetBool(EnableInternalTrafficPolicy) + + c.EnableSourceIPVerification = vp.GetBool(EnableSourceIPVerification) } func (c *DaemonConfig) populateLoadBalancerSettings(vp *viper.Viper) { c.NodePortAcceleration = vp.GetString(LoadBalancerAcceleration) c.NodePortMode = vp.GetString(LoadBalancerMode) - c.NodePortAlg = vp.GetString(LoadBalancerAlg) + c.LoadBalancerModeAnnotation = vp.GetBool(LoadBalancerModeAnnotation) + c.NodePortAlg = vp.GetString(LoadBalancerAlgorithm) + c.LoadBalancerAlgorithmAnnotation = vp.GetBool(LoadBalancerAlgorithmAnnotation) // If old settings were explicitly set by the user, then have them // override the new ones in order to not break existing setups. if vp.IsSet(NodePortAcceleration) { @@ -3577,9 +3355,9 @@ func (c *DaemonConfig) populateLoadBalancerSettings(vp *viper.Viper) { if vp.IsSet(NodePortAlg) { prior := c.NodePortAlg c.NodePortAlg = vp.GetString(NodePortAlg) - if vp.IsSet(LoadBalancerAlg) && prior != c.NodePortAlg { + if vp.IsSet(LoadBalancerAlgorithm) && prior != c.NodePortAlg { log.Fatalf("Both --%s and --%s were set. Only use --%s instead.", - LoadBalancerAlg, NodePortAlg, LoadBalancerAlg) + LoadBalancerAlgorithm, NodePortAlg, LoadBalancerAlgorithm) } } } @@ -3703,7 +3481,7 @@ func (c *DaemonConfig) checkMapSizeLimits() error { } func (c *DaemonConfig) checkIPv4NativeRoutingCIDR() error { - if c.GetIPv4NativeRoutingCIDR() != nil { + if c.IPv4NativeRoutingCIDR != nil { return nil } if !c.EnableIPv4 || !c.EnableIPv4Masquerade { @@ -3730,7 +3508,7 @@ func (c *DaemonConfig) checkIPv4NativeRoutingCIDR() error { } func (c *DaemonConfig) checkIPv6NativeRoutingCIDR() error { - if c.GetIPv6NativeRoutingCIDR() != nil { + if c.IPv6NativeRoutingCIDR != nil { return nil } if !c.EnableIPv6 || !c.EnableIPv6Masquerade { @@ -3853,7 +3631,7 @@ func (c *DaemonConfig) calculateDynamicBPFMapSizes(vp *viper.Viper, totalMemory // 4GB 265121 132560 265121 // 16GB 1060485 530242 1060485 memoryAvailableForMaps := int(float64(totalMemory) * dynamicSizeRatio) - log.Infof("Memory available for map entries (%.3f%% of %dB): %dB", dynamicSizeRatio, totalMemory, memoryAvailableForMaps) + log.Infof("Memory available for map entries (%.3f%% of %dB): %dB", dynamicSizeRatio*100, totalMemory, memoryAvailableForMaps) totalMapMemoryDefault := CTMapEntriesGlobalTCPDefault*c.SizeofCTElement + CTMapEntriesGlobalAnyDefault*c.SizeofCTElement + NATMapEntriesGlobalDefault*c.SizeofNATElement + @@ -3998,6 +3776,7 @@ var backupFileNames []string = []string{ // name 'daemon-config.json'. If this file already exists, it is renamed to // 'daemon-config-1.json', if 'daemon-config-1.json' also exists, // 'daemon-config-1.json' is renamed to 'daemon-config-2.json' +// Caller is responsible for blocking concurrent changes. func (c *DaemonConfig) StoreInFile(dir string) error { backupFiles(dir, backupFileNames) f, err := os.Create(backupFileNames[0]) @@ -4008,12 +3787,8 @@ func (c *DaemonConfig) StoreInFile(dir string) error { e := json.NewEncoder(f) e.SetIndent("", " ") - // Exclude concurrent modification of fields protected by c.ConfigPatchMutex - // we store the file - c.ConfigPatchMutex.RLock() err = e.Encode(c) c.shaSum = c.checksum() - c.ConfigPatchMutex.RUnlock() return err } @@ -4030,15 +3805,10 @@ func (c *DaemonConfig) checksum() [32]byte { return sha256.Sum256(cBytes) } -// ValidateUnchanged takes a context that is unused so that it can be used as a doFunc in a -// controller -func (c *DaemonConfig) ValidateUnchanged(context.Context) error { - // Exclude concurrent modification of fields protected by c.ConfigPatchMutex - // we store the file - c.ConfigPatchMutex.RLock() +// ValidateUnchanged checks that invariable parts of the config have not changed since init. +// Caller is responsible for blocking concurrent changes. +func (c *DaemonConfig) ValidateUnchanged() error { sum := c.checksum() - c.ConfigPatchMutex.RUnlock() - if sum != c.shaSum { return c.diffFromFile() } @@ -4268,7 +4038,7 @@ func InitConfig(cmd *cobra.Command, programName, configName string, vp *viper.Vi log.WithField(logfields.Path, vp.ConfigFileUsed()). Info("Using config from file") } else if Config.ConfigFile != "" { - log.WithField(logfields.Path, Config.ConfigFile). + log.WithField(logfields.Path, Config.ConfigFile).WithError(err). Fatal("Error reading config file") } else { log.WithError(err).Debug("Skipped reading configuration file") @@ -4282,14 +4052,6 @@ func InitConfig(cmd *cobra.Command, programName, configName string, vp *viper.Vi } } -func getDefaultMonitorQueueSize(numCPU int) int { - monitorQueueSize := numCPU * defaults.MonitorQueueSizePerCPU - if monitorQueueSize > defaults.MonitorQueueSizePerCPUMaximum { - monitorQueueSize = defaults.MonitorQueueSizePerCPUMaximum - } - return monitorQueueSize -} - // BPFEventBufferConfig contains parsed configuration for a bpf map event buffer. type BPFEventBufferConfig struct { Enabled bool diff --git a/backend/vendor/github.com/cilium/cilium/pkg/option/daemon.go b/backend/vendor/github.com/cilium/cilium/pkg/option/daemon.go index d5ad6266e..003f1cc60 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/option/daemon.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/option/daemon.go @@ -37,6 +37,6 @@ func init() { } // ParseDaemonOption parses a string as daemon option -func ParseDaemonOption(opt string) (string, OptionSetting, error) { - return ParseOption(opt, &DaemonOptionLibrary) +func ParseDaemonOption(opt string) (string, OptionSetting, bool, error) { + return DaemonOptionLibrary.ParseOption(opt) } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/option/features.go b/backend/vendor/github.com/cilium/cilium/pkg/option/features.go new file mode 100644 index 000000000..06543451a --- /dev/null +++ b/backend/vendor/github.com/cilium/cilium/pkg/option/features.go @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package option + +import "cmp" + +// NetworkPolicyEnabled returns true if the network policy enforcement +// system is enabled for K8s, Cilium and Cilium Clusterwide network policies. +func NetworkPolicyEnabled(cfg *DaemonConfig) bool { + return cmp.Or( + cfg.EnablePolicy != NeverEnforce, + cfg.EnableK8sNetworkPolicy, + cfg.EnableCiliumNetworkPolicy, + cfg.EnableCiliumClusterwideNetworkPolicy, + !cfg.DisableCiliumEndpointCRD, + cfg.IdentityAllocationMode != IdentityAllocationModeCRD, + ) +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/option/option.go b/backend/vendor/github.com/cilium/cilium/pkg/option/option.go index c2ca5d5ec..ad8e0467a 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/option/option.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/option/option.go @@ -4,8 +4,9 @@ package option import ( + "encoding/json" "fmt" - "sort" + "slices" "strings" "github.com/cilium/cilium/api/v1/models" @@ -44,6 +45,9 @@ type Option struct { Format FormatFunc // Verify is called prior to applying the option Verify VerifyFunc + // Deprecated is true if this option is deprecated and a warning + // should be printed. + Deprecated bool } // OptionSetting specifies the different choices each Option has. @@ -103,7 +107,7 @@ func NormalizeBool(value string) (OptionSetting, error) { func (l *OptionLibrary) ValidateConfigurationMap(n models.ConfigurationMap) (OptionMap, error) { o := make(OptionMap) for k, v := range n { - _, newVal, err := ParseKeyValue(l, k, v) + _, newVal, _, err := l.parseKeyValue(k, v) if err != nil { return nil, err } @@ -148,9 +152,49 @@ func (om OptionMap) DeepCopy() OptionMap { // locking by the caller, while functions with internal access presume // the caller to have taken care of any locking needed. type IntOptions struct { - optsMU lock.RWMutex // Protects all variables from this structure below this line - Opts OptionMap `json:"map"` - Library *OptionLibrary `json:"-"` + optsMU lock.RWMutex // Protects all variables from this structure below this line + opts OptionMap + library *OptionLibrary +} + +// intOptions is only used for JSON +type intOptions struct { + Opts OptionMap `json:"map"` +} + +// ValidateConfigurationMap validates a given configuration map based on the +// option library +func (o *IntOptions) ValidateConfigurationMap(n models.ConfigurationMap) (OptionMap, error) { + return o.library.ValidateConfigurationMap(n) +} + +// Custom json marshal for unexported 'opts' while holding a read lock +func (o *IntOptions) MarshalJSON() ([]byte, error) { + o.optsMU.RLock() + defer o.optsMU.RUnlock() + return json.Marshal(&intOptions{ + Opts: o.opts, + }) +} + +// Custom json unmarshal for unexported 'opts' while holding a write lock +func (o *IntOptions) UnmarshalJSON(b []byte) error { + o.optsMU.Lock() + defer o.optsMU.Unlock() + err := json.Unmarshal(b, &intOptions{ + Opts: o.opts, + }) + if err != nil { + return err + } + // Silently discard unsupported options + for k := range o.opts { + key, _ := o.library.Lookup(k) + if key == "" { + delete(o.opts, k) + } + } + return nil } // GetImmutableModel returns the set of immutable options as a ConfigurationMap API model. @@ -163,8 +207,8 @@ func (o *IntOptions) GetImmutableModel() *models.ConfigurationMap { func (o *IntOptions) GetMutableModel() *models.ConfigurationMap { mutableCfg := make(models.ConfigurationMap) o.optsMU.RLock() - for k, v := range o.Opts { - _, config := o.Library.Lookup(k) + for k, v := range o.opts { + _, config := o.library.Lookup(k) // It's possible that an option has since been removed and thus has // no corresponding configuration; need to check if configuration is @@ -189,8 +233,8 @@ func (o *IntOptions) GetMutableModel() *models.ConfigurationMap { func (o *IntOptions) DeepCopy() *IntOptions { o.optsMU.RLock() cpy := &IntOptions{ - Opts: o.Opts.DeepCopy(), - Library: o.Library, + opts: o.opts.DeepCopy(), + library: o.library, } o.optsMU.RUnlock() return cpy @@ -198,13 +242,13 @@ func (o *IntOptions) DeepCopy() *IntOptions { func NewIntOptions(lib *OptionLibrary) *IntOptions { return &IntOptions{ - Opts: OptionMap{}, - Library: lib, + opts: OptionMap{}, + library: lib, } } func (o *IntOptions) getValue(key string) OptionSetting { - value, exists := o.Opts[key] + value, exists := o.opts[key] if !exists { return OptionDisabled } @@ -226,7 +270,7 @@ func (o *IntOptions) IsEnabled(key string) bool { // expected to have validated the input to this function. func (o *IntOptions) SetValidated(key string, value OptionSetting) { o.optsMU.Lock() - o.Opts[key] = value + o.opts[key] = value o.optsMU.Unlock() } @@ -237,31 +281,31 @@ func (o *IntOptions) SetBool(key string, value bool) { intValue = OptionEnabled } o.optsMU.Lock() - o.Opts[key] = intValue + o.opts[key] = intValue o.optsMU.Unlock() } func (o *IntOptions) Delete(key string) { o.optsMU.Lock() - delete(o.Opts, key) + delete(o.opts, key) o.optsMU.Unlock() } func (o *IntOptions) SetIfUnset(key string, value OptionSetting) { o.optsMU.Lock() - if _, exists := o.Opts[key]; !exists { - o.Opts[key] = value + if _, exists := o.opts[key]; !exists { + o.opts[key] = value } o.optsMU.Unlock() } func (o *IntOptions) InheritDefault(parent *IntOptions, key string) { o.optsMU.RLock() - o.Opts[key] = parent.GetValue(key) + o.opts[key] = parent.GetValue(key) o.optsMU.RUnlock() } -func ParseOption(arg string, lib *OptionLibrary) (string, OptionSetting, error) { +func (l *OptionLibrary) ParseOption(arg string) (string, OptionSetting, bool, error) { result := OptionEnabled if arg[0] == '!' { @@ -273,21 +317,21 @@ func ParseOption(arg string, lib *OptionLibrary) (string, OptionSetting, error) arg = optionSplit[0] if len(optionSplit) > 1 { if result == OptionDisabled { - return "", OptionDisabled, fmt.Errorf("invalid boolean format") + return "", OptionDisabled, false, fmt.Errorf("invalid boolean format") } - return ParseKeyValue(lib, arg, optionSplit[1]) + return l.parseKeyValue(arg, optionSplit[1]) } - return "", OptionDisabled, fmt.Errorf("invalid option format") + return "", OptionDisabled, false, fmt.Errorf("invalid option format") } -func ParseKeyValue(lib *OptionLibrary, arg, value string) (string, OptionSetting, error) { +func (l *OptionLibrary) parseKeyValue(arg, value string) (string, OptionSetting, bool, error) { var result OptionSetting - key, spec := lib.Lookup(arg) + key, spec := l.Lookup(arg) if key == "" { - return "", OptionDisabled, fmt.Errorf("unknown option %q", arg) + return "", OptionDisabled, false, fmt.Errorf("unknown option %q", arg) } var err error @@ -297,40 +341,40 @@ func ParseKeyValue(lib *OptionLibrary, arg, value string) (string, OptionSetting result, err = NormalizeBool(value) } if err != nil { - return "", OptionDisabled, err + return "", OptionDisabled, false, err } if spec.Immutable { - return "", OptionDisabled, fmt.Errorf("specified option is immutable (read-only)") + return "", OptionDisabled, spec.Deprecated, fmt.Errorf("specified option is immutable (read-only)") } - return key, result, nil + return key, result, spec.Deprecated, nil } // getFmtOpt returns #define name if option exists and is set to true in endpoint's Opts // map or #undef name if option does not exist or exists but is set to false func (o *IntOptions) getFmtOpt(name string) string { - define := o.Library.Define(name) + define := o.library.Define(name) if define == "" { return "" } value := o.getValue(name) if value != OptionDisabled { - return fmt.Sprintf("#define %s %d", o.Library.Define(name), value) + return fmt.Sprintf("#define %s %d", o.library.Define(name), value) } - return "#undef " + o.Library.Define(name) + return "#undef " + o.library.Define(name) } func (o *IntOptions) GetFmtList() string { txt := "" o.optsMU.RLock() - opts := make([]string, 0, len(o.Opts)) - for k := range o.Opts { + opts := make([]string, 0, len(o.opts)) + for k := range o.opts { opts = append(opts, k) } - sort.Strings(opts) + slices.Sort(opts) for _, k := range opts { def := o.getFmtOpt(k) @@ -349,23 +393,23 @@ func (o *IntOptions) Dump() { } o.optsMU.RLock() - opts := make([]string, 0, len(o.Opts)) - for k := range o.Opts { + opts := make([]string, 0, len(o.opts)) + for k := range o.opts { opts = append(opts, k) } - sort.Strings(opts) + slices.Sort(opts) for _, k := range opts { var text string - _, option := o.Library.Lookup(k) + _, option := o.library.Lookup(k) if option == nil || option.Format == nil { - if o.Opts[k] == OptionDisabled { + if o.opts[k] == OptionDisabled { text = "Disabled" } else { text = "Enabled" } } else { - text = option.Format(o.Opts[k]) + text = option.Format(o.opts[k]) } fmt.Printf("%-24s %s\n", k, text) @@ -378,17 +422,17 @@ func (o *IntOptions) Validate(n models.ConfigurationMap) error { o.optsMU.RLock() defer o.optsMU.RUnlock() for k, v := range n { - _, newVal, err := ParseKeyValue(o.Library, k, v) + _, newVal, _, err := o.library.parseKeyValue(k, v) if err != nil { return err } // Ignore validation if value is identical - if oldVal, ok := o.Opts[k]; ok && oldVal == newVal { + if oldVal, ok := o.opts[k]; ok && oldVal == newVal { continue } - if err := o.Library.Validate(k, v); err != nil { + if err := o.library.Validate(k, v); err != nil { return err } } @@ -401,35 +445,35 @@ type ChangedFunc func(key string, value OptionSetting, data interface{}) // enable enables the option `name` with all its dependencies func (o *IntOptions) enable(name string) { - if o.Library != nil { - if _, opt := o.Library.Lookup(name); opt != nil { + if o.library != nil { + if _, opt := o.library.Lookup(name); opt != nil { for _, dependency := range opt.Requires { o.enable(dependency) } } } - o.Opts[name] = OptionEnabled + o.opts[name] = OptionEnabled } // set enables the option `name` with all its dependencies, and sets the // integer level of the option to `value`. func (o *IntOptions) set(name string, value OptionSetting) { o.enable(name) - o.Opts[name] = value + o.opts[name] = value } // disable disables the option `name`. All options which depend on the option // to be disabled will be disabled. Options which have previously been enabled // as a dependency will not be automatically disabled. func (o *IntOptions) disable(name string) { - o.Opts[name] = OptionDisabled + o.opts[name] = OptionDisabled - if o.Library != nil { + if o.library != nil { // Disable all options which have a dependency on the option // that was just disabled - for key, opt := range *o.Library { - if opt.RequiresOption(name) && o.Opts[key] != OptionDisabled { + for key, opt := range *o.library { + if opt.RequiresOption(name) && o.opts[key] != OptionDisabled { o.disable(key) } } @@ -453,7 +497,7 @@ func (o *IntOptions) ApplyValidated(n OptionMap, changed ChangedFunc, data inter o.optsMU.Lock() for k, optVal := range n { - val, ok := o.Opts[k] + val, ok := o.opts[k] if optVal == OptionDisabled { /* Only disable if enabled already */ diff --git a/backend/vendor/github.com/cilium/cilium/pkg/option/runtime_options.go b/backend/vendor/github.com/cilium/cilium/pkg/option/runtime_options.go index a5da6f273..e872b5564 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/option/runtime_options.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/option/runtime_options.go @@ -34,6 +34,7 @@ var ( Define: "CONNTRACK_LOCAL", Description: "Use endpoint dedicated tracking table instead of global one", Requires: nil, + Deprecated: true, } specDebug = Option{ diff --git a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/cidr.go b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/cidr.go index 181caef57..e30a00b91 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/cidr.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/cidr.go @@ -4,11 +4,10 @@ package api import ( - "net" "net/netip" "strings" - "github.com/cilium/cilium/pkg/ip" + slim_metav1 "github.com/cilium/cilium/pkg/k8s/slim/k8s/apis/meta/v1" "github.com/cilium/cilium/pkg/labels" "github.com/cilium/cilium/pkg/option" ) @@ -22,6 +21,10 @@ type CIDR string var ( ipv4All = CIDR("0.0.0.0/0") ipv6All = CIDR("::/0") + + worldLabelNonDualStack = labels.Label{Source: labels.LabelSourceReserved, Key: labels.IDNameWorld} + worldLabelV4 = labels.Label{Source: labels.LabelSourceReserved, Key: labels.IDNameWorldIPv4} + worldLabelV6 = labels.Label{Source: labels.LabelSourceReserved, Key: labels.IDNameWorldIPv6} ) // CIDRRule is a rule that specifies a CIDR prefix to/from which outside @@ -41,6 +44,12 @@ type CIDRRule struct { // +kubebuilder:validation:OneOf CIDRGroupRef CIDRGroupRef `json:"cidrGroupRef,omitempty"` + // CIDRGroupSelector selects CiliumCIDRGroups by their labels, + // rather than by name. + // + // +kubebuilder:validation:OneOf + CIDRGroupSelector *slim_metav1.LabelSelector `json:"cidrGroupSelector,omitempty"` + // ExceptCIDRs is a list of IP blocks which the endpoint subject to the rule // is not allowed to initiate connections to. These CIDR prefixes should be // contained within Cidr, using ExceptCIDRs together with CIDRGroupRef is not @@ -136,43 +145,78 @@ type CIDRRuleSlice []CIDRRule // GetAsEndpointSelectors returns the provided CIDRRule slice as a slice of // endpoint selectors +// +// The ExceptCIDRs block is inserted as a negative match. Specifically, the +// DoesNotExist qualifier. For example, the CIDRRule +// +// cidr: 1.1.1.0/24 +// exceptCIDRs: ["1.1.1.1/32"] +// +// results in the selector equivalent to "cidr:1.1.1.0/24 !cidr:1.1.1.1/32". +// +// This works because the label selectors will select numeric identities belonging only +// to the shorter prefixes. However, longer prefixes will have a different numeric +// identity, as the bpf ipcache is an LPM lookup. This essentially acts as a +// "carve-out", using the LPM mechanism to exlude subsets of a larger prefix. func (s CIDRRuleSlice) GetAsEndpointSelectors() EndpointSelectorSlice { - cidrs := ComputeResultantCIDRSet(s) - return cidrs.GetAsEndpointSelectors() -} + ces := make(EndpointSelectorSlice, 0, len(s)) -// StringSlice returns the CIDRRuleSlice as a slice of strings. -func (s CIDRRuleSlice) StringSlice() []string { - result := make([]string, 0, len(s)) - for _, c := range s { - result = append(result, c.String()) - } - return result -} + for _, r := range s { + ls := slim_metav1.LabelSelector{ + MatchExpressions: make([]slim_metav1.LabelSelectorRequirement, 0, 1+len(r.ExceptCIDRs)), + } -// ComputeResultantCIDRSet converts a slice of CIDRRules into a slice of -// individual CIDRs. This expands the cidr defined by each CIDRRule, applies -// the CIDR exceptions defined in "ExceptCIDRs", and forms a minimal set of -// CIDRs that cover all of the CIDRRules. -// -// Assumes no error checking is necessary as CIDRRule.Sanitize already does this. -func ComputeResultantCIDRSet(cidrs CIDRRuleSlice) CIDRSlice { - var allResultantAllowedCIDRs CIDRSlice - for _, s := range cidrs { - _, allowNet, _ := net.ParseCIDR(string(s.Cidr)) - - var removeSubnets []*net.IPNet - for _, t := range s.ExceptCIDRs { - _, removeSubnet, _ := net.ParseCIDR(string(t)) - removeSubnets = append(removeSubnets, removeSubnet) + // add the "main" label: + // either a CIDR, CIDRGroupRef, or CIDRGroupSelector + if r.Cidr != "" { + var lbl labels.Label + switch r.Cidr { + case ipv4All: + if option.Config.IsDualStack() { + lbl = worldLabelV4 + } else { + lbl = worldLabelNonDualStack + } + case ipv6All: + if option.Config.IsDualStack() { + lbl = worldLabelV6 + } else { + lbl = worldLabelNonDualStack + } + default: + lbl, _ = labels.IPStringToLabel(string(r.Cidr)) + } + ls.MatchExpressions = append(ls.MatchExpressions, slim_metav1.LabelSelectorRequirement{ + Key: lbl.GetExtendedKey(), + Operator: slim_metav1.LabelSelectorOpExists, + }) + } else if r.CIDRGroupRef != "" { + lbl := LabelForCIDRGroupRef(string(r.CIDRGroupRef)) + ls.MatchExpressions = append(ls.MatchExpressions, slim_metav1.LabelSelectorRequirement{ + Key: lbl.GetExtendedKey(), + Operator: slim_metav1.LabelSelectorOpExists, + }) + } else if r.CIDRGroupSelector != nil { + ls = *NewESFromK8sLabelSelector(labels.LabelSourceCIDRGroupKeyPrefix, r.CIDRGroupSelector).LabelSelector + } else { + // should never be hit, but paranoia + continue } - resultantAllowedCIDRs := ip.RemoveCIDRs([]*net.IPNet{allowNet}, removeSubnets) - for _, u := range resultantAllowedCIDRs { - allResultantAllowedCIDRs = append(allResultantAllowedCIDRs, CIDR(u.String())) + // exclude any excepted CIDRs. + // Do so by inserting a "DoesNotExist" requirement for the given prefix key + for _, exceptCIDR := range r.ExceptCIDRs { + lbl, _ := labels.IPStringToLabel(string(exceptCIDR)) + ls.MatchExpressions = append(ls.MatchExpressions, slim_metav1.LabelSelectorRequirement{ + Key: lbl.GetExtendedKey(), + Operator: slim_metav1.LabelSelectorOpDoesNotExist, + }) } + + ces = append(ces, NewESFromK8sLabelSelector("", &ls)) } - return allResultantAllowedCIDRs + + return ces } // addrsToCIDRRules generates CIDRRules for the IPs passed in. @@ -199,3 +243,18 @@ func addrsToCIDRRules(addrs []netip.Addr) []CIDRRule { // A CIDR Group is a list of CIDRs whose IP addresses should be considered as a // same entity when applying fromCIDRGroupRefs policies on incoming network traffic. type CIDRGroupRef string + +const LabelPrefixGroupName = "io.cilium.policy.cidrgroupname" + +func LabelForCIDRGroupRef(ref string) labels.Label { + var key strings.Builder + key.Grow(len(LabelPrefixGroupName) + len(ref) + 1) + key.WriteString(LabelPrefixGroupName) + key.WriteString("/") + key.WriteString(ref) + return labels.NewLabel( + key.String(), + "", + labels.LabelSourceCIDRGroup, + ) +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/egress.go b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/egress.go index 95b3ca309..ca7f82a56 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/egress.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/egress.go @@ -80,12 +80,7 @@ type EgressCommonRule struct { // ToServices is a list of services to which the endpoint subject // to the rule is allowed to initiate connections. - // Currently Cilium only supports toServices for K8s services without - // selectors. - // - // Example: - // Any endpoint with the label "app=backend-app" is allowed to - // initiate connections to all cidrs backing the "external-service" service + // Currently Cilium only supports toServices for K8s services. // // +kubebuilder:validation:Optional ToServices []Service `json:"toServices,omitempty"` diff --git a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/fqdn.go b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/fqdn.go index 9296cdf61..765ca48cf 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/fqdn.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/fqdn.go @@ -38,6 +38,7 @@ type FQDNSelector struct { // MatchName matches literal DNS names. A trailing "." is automatically added // when missing. // + // +kubebuilder:validation:MaxLength=255 // +kubebuilder:validation:Pattern=`^([-a-zA-Z0-9_]+[.]?)+$` // +kubebuilder:validation:OneOf MatchName string `json:"matchName,omitempty"` @@ -60,6 +61,7 @@ type FQDNSelector struct { // sub.cilium.io and subdomain.cilium.io match, www.cilium.io, // blog.cilium.io, cilium.io and google.com do not // + // +kubebuilder:validation:MaxLength=255 // +kubebuilder:validation:Pattern=`^([-a-zA-Z0-9_*]+[.]?)+$` // +kubebuilder:validation:OneOf MatchPattern string `json:"matchPattern,omitempty"` diff --git a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/l4.go b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/l4.go index 08f38351f..348fc047a 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/l4.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/l4.go @@ -28,6 +28,12 @@ func (l4 L4Proto) IsAny() bool { return l4 == ProtoAny || string(l4) == "" } +// SupportedProtocols returns the currently supported protocols in the policy +// engine, excluding "ANY". +func SupportedProtocols() []L4Proto { + return []L4Proto{ProtoTCP, ProtoUDP, ProtoSCTP} +} + // PortProtocol specifies an L4 port with an optional transport protocol type PortProtocol struct { // Port can be an L4 port number, or a name in the form of "http" @@ -160,7 +166,7 @@ type Listener struct { // +kubebuilder:validation:Minimum=1 // +kubebuilder:validation:Maximum=100 // +kubebuilder:validation:Optional - Priority uint16 `json:"priority"` + Priority uint8 `json:"priority"` } // PortRule is a list of ports/protocol combinations with optional Layer 7 diff --git a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/rule.go b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/rule.go index 8390f0309..c77b131f1 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/rule.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/rule.go @@ -76,7 +76,7 @@ type Rule struct { // Ingress is a list of IngressRule which are enforced at ingress. // If omitted or empty, this rule does not apply at ingress. // - // +kubebuilder:validation:Optional + // +kubebuilder:validation:AnyOf Ingress []IngressRule `json:"ingress,omitempty"` // IngressDeny is a list of IngressDenyRule which are enforced at ingress. @@ -84,13 +84,13 @@ type Rule struct { // rules in the 'ingress' field. // If omitted or empty, this rule does not apply at ingress. // - // +kubebuilder:validation:Optional + // +kubebuilder:validation:AnyOf IngressDeny []IngressDenyRule `json:"ingressDeny,omitempty"` // Egress is a list of EgressRule which are enforced at egress. // If omitted or empty, this rule does not apply at egress. // - // +kubebuilder:validation:Optional + // +kubebuilder:validation:AnyOf Egress []EgressRule `json:"egress,omitempty"` // EgressDeny is a list of EgressDenyRule which are enforced at egress. @@ -98,7 +98,7 @@ type Rule struct { // rules in the 'egress' field. // If omitted or empty, this rule does not apply at egress. // - // +kubebuilder:validation:Optional + // +kubebuilder:validation:AnyOf EgressDeny []EgressDenyRule `json:"egressDeny,omitempty"` // Labels is a list of optional strings which can be used to @@ -140,24 +140,28 @@ type Rule struct { // enforce omitempty on the EndpointSelector nested structures. func (r *Rule) MarshalJSON() ([]byte, error) { type common struct { - Ingress []IngressRule `json:"ingress,omitempty"` - IngressDeny []IngressDenyRule `json:"ingressDeny,omitempty"` - Egress []EgressRule `json:"egress,omitempty"` - EgressDeny []EgressDenyRule `json:"egressDeny,omitempty"` - Labels labels.LabelArray `json:"labels,omitempty"` - EnableDefaultDeny DefaultDenyConfig `json:"enableDefaultDeny,omitempty"` - Description string `json:"description,omitempty"` + Ingress []IngressRule `json:"ingress,omitempty"` + IngressDeny []IngressDenyRule `json:"ingressDeny,omitempty"` + Egress []EgressRule `json:"egress,omitempty"` + EgressDeny []EgressDenyRule `json:"egressDeny,omitempty"` + Labels labels.LabelArray `json:"labels,omitempty"` + EnableDefaultDeny *DefaultDenyConfig `json:"enableDefaultDeny,omitempty"` + Description string `json:"description,omitempty"` } var a interface{} ruleCommon := common{ - Ingress: r.Ingress, - IngressDeny: r.IngressDeny, - Egress: r.Egress, - EgressDeny: r.EgressDeny, - Labels: r.Labels, - EnableDefaultDeny: r.EnableDefaultDeny, - Description: r.Description, + Ingress: r.Ingress, + IngressDeny: r.IngressDeny, + Egress: r.Egress, + EgressDeny: r.EgressDeny, + Labels: r.Labels, + Description: r.Description, + } + + // TODO: convert this to `omitzero` when Go v1.24 is released + if r.EnableDefaultDeny.Egress != nil || r.EnableDefaultDeny.Ingress != nil { + ruleCommon.EnableDefaultDeny = &r.EnableDefaultDeny } // Only one of endpointSelector or nodeSelector is permitted. @@ -228,6 +232,12 @@ func (r *Rule) WithEgressDenyRules(rules []EgressDenyRule) *Rule { return r } +// WithEnableDefaultDeny configures the Rule to enable default deny. +func (r *Rule) WithEnableDefaultDeny(ingress, egress bool) *Rule { + r.EnableDefaultDeny = DefaultDenyConfig{&ingress, &egress} + return r +} + // WithLabels configures the Rule with the specified labels metadata. func (r *Rule) WithLabels(labels labels.LabelArray) *Rule { r.Labels = labels diff --git a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/rule_validation.go b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/rule_validation.go index ab102cd04..57f61f279 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/rule_validation.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/rule_validation.go @@ -11,6 +11,7 @@ import ( "strings" "github.com/cilium/cilium/pkg/iana" + "github.com/cilium/cilium/pkg/labels" "github.com/cilium/cilium/pkg/option" ) @@ -21,6 +22,11 @@ const ( var ( ErrFromToNodesRequiresNodeSelectorOption = fmt.Errorf("FromNodes/ToNodes rules can only be applied when the %q flag is set", option.EnableNodeSelectorLabels) + + errUnsupportedICMPWithToPorts = errors.New("the ICMPs block may only be present without ToPorts. Define a separate rule to use ToPorts") + errEmptyServerName = errors.New("empty server name is not allowed") + + enableDefaultDenyDefault = true ) // Sanitize validates and sanitizes a policy rule. Minor edits such as @@ -30,24 +36,34 @@ var ( // Note: this function is called from both the operator and the agent; // make sure any configuration flags are bound in **both** binaries. func (r *Rule) Sanitize() error { - // Fill in the default traffic posture of this Rule. - // Default posture is per-direction (ingress or egress), - // if there is a peer selector for that direction, the - // default is deny, else allow. - if r.EnableDefaultDeny.Egress == nil { - x := len(r.Egress) > 0 || len(r.EgressDeny) > 0 - r.EnableDefaultDeny.Egress = &x + if len(r.Ingress) == 0 && len(r.IngressDeny) == 0 && len(r.Egress) == 0 && len(r.EgressDeny) == 0 { + return fmt.Errorf("rule must have at least one of Ingress, IngressDeny, Egress, EgressDeny") } - if r.EnableDefaultDeny.Ingress == nil { - x := len(r.Ingress) > 0 || len(r.IngressDeny) > 0 - r.EnableDefaultDeny.Ingress = &x + + if option.Config.EnableNonDefaultDenyPolicies { + // Fill in the default traffic posture of this Rule. + // Default posture is per-direction (ingress or egress), + // if there is a peer selector for that direction, the + // default is deny, else allow. + if r.EnableDefaultDeny.Egress == nil { + x := len(r.Egress) > 0 || len(r.EgressDeny) > 0 + r.EnableDefaultDeny.Egress = &x + } + if r.EnableDefaultDeny.Ingress == nil { + x := len(r.Ingress) > 0 || len(r.IngressDeny) > 0 + r.EnableDefaultDeny.Ingress = &x + } + } else { + // Since Non Default Deny Policies is disabled by flag, set EnableDefaultDeny to true + r.EnableDefaultDeny.Egress = &enableDefaultDenyDefault + r.EnableDefaultDeny.Ingress = &enableDefaultDenyDefault } if r.EndpointSelector.LabelSelector == nil && r.NodeSelector.LabelSelector == nil { - return fmt.Errorf("rule must have one of EndpointSelector or NodeSelector") + return errors.New("rule must have one of EndpointSelector or NodeSelector") } if r.EndpointSelector.LabelSelector != nil && r.NodeSelector.LabelSelector != nil { - return fmt.Errorf("rule cannot have both EndpointSelector and NodeSelector") + return errors.New("rule cannot have both EndpointSelector and NodeSelector") } if r.EndpointSelector.LabelSelector != nil { @@ -65,24 +81,26 @@ func (r *Rule) Sanitize() error { } for i := range r.Ingress { - if err := r.Ingress[i].sanitize(); err != nil { + if err := r.Ingress[i].sanitize(hostPolicy); err != nil { return err } - if hostPolicy { - if len(countL7Rules(r.Ingress[i].ToPorts)) > 0 { - return fmt.Errorf("host policies do not support L7 rules yet") - } + } + + for i := range r.IngressDeny { + if err := r.IngressDeny[i].sanitize(); err != nil { + return err } } for i := range r.Egress { - if err := r.Egress[i].sanitize(); err != nil { + if err := r.Egress[i].sanitize(hostPolicy); err != nil { return err } - if hostPolicy { - if len(countL7Rules(r.Egress[i].ToPorts)) > 0 { - return fmt.Errorf("host policies do not support L7 rules yet") - } + } + + for i := range r.EgressDeny { + if err := r.EgressDeny[i].sanitize(); err != nil { + return err } } @@ -101,17 +119,7 @@ func countL7Rules(ports []PortRule) map[string]int { return result } -func (i *IngressRule) sanitize() error { - var retErr error - - l3Members := map[string]int{ - "FromEndpoints": len(i.FromEndpoints), - "FromCIDR": len(i.FromCIDR), - "FromCIDRSet": len(i.FromCIDRSet), - "FromEntities": len(i.FromEntities), - "FromNodes": len(i.FromNodes), - "FromGroups": len(i.FromGroups), - } +func (i *IngressRule) sanitize(hostPolicy bool) error { l7Members := countL7Rules(i.ToPorts) l7IngressSupport := map[string]bool{ "DNS": false, @@ -119,12 +127,12 @@ func (i *IngressRule) sanitize() error { "HTTP": true, } - for m1 := range l3Members { - for m2 := range l3Members { - if m2 != m1 && l3Members[m1] > 0 && l3Members[m2] > 0 { - return fmt.Errorf("Combining %s and %s is not supported yet", m1, m2) - } - } + if err := i.IngressCommonRule.sanitize(); err != nil { + return err + } + + if hostPolicy && len(l7Members) > 0 { + return errors.New("L7 policy is not supported on host ingress yet") } if len(l7Members) > 0 && !option.Config.EnableL7Proxy { @@ -141,27 +149,41 @@ func (i *IngressRule) sanitize() error { } if len(i.ICMPs) > 0 && len(i.ToPorts) > 0 { - return fmt.Errorf("The ICMPs block may only be present without ToPorts. Define a separate rule to use ToPorts.") + return errUnsupportedICMPWithToPorts } - if len(i.FromNodes) > 0 && !option.Config.EnableNodeSelectorLabels { - retErr = ErrFromToNodesRequiresNodeSelectorOption - } - - for _, es := range i.FromEndpoints { - if err := es.sanitize(); err != nil { + for n := range i.ToPorts { + if err := i.ToPorts[n].sanitize(true); err != nil { return err } } - for _, es := range i.FromRequires { - if err := es.sanitize(); err != nil { + for n := range i.ICMPs { + if err := i.ICMPs[n].verify(); err != nil { return err } } + i.SetAggregatedSelectors() + + return nil +} + +func (i *IngressDenyRule) sanitize() error { + if err := i.IngressCommonRule.sanitize(); err != nil { + return err + } + + if len(i.ICMPs) > 0 && !option.Config.EnableICMPRules { + return fmt.Errorf("ICMP rules can only be applied when the %q flag is set", option.EnableICMPRules) + } + + if len(i.ICMPs) > 0 && len(i.ToPorts) > 0 { + return errUnsupportedICMPWithToPorts + } + for n := range i.ToPorts { - if err := i.ToPorts[n].sanitize(true); err != nil { + if err := i.ToPorts[n].sanitize(); err != nil { return err } } @@ -172,33 +194,72 @@ func (i *IngressRule) sanitize() error { } } + i.SetAggregatedSelectors() + + return nil +} + +func (i *IngressCommonRule) sanitize() error { + l3Members := map[string]int{ + "FromEndpoints": len(i.FromEndpoints), + "FromCIDR": len(i.FromCIDR), + "FromCIDRSet": len(i.FromCIDRSet), + "FromEntities": len(i.FromEntities), + "FromNodes": len(i.FromNodes), + "FromGroups": len(i.FromGroups), + } + + for m1 := range l3Members { + for m2 := range l3Members { + if m2 != m1 && l3Members[m1] > 0 && l3Members[m2] > 0 { + return fmt.Errorf("combining %s and %s is not supported yet", m1, m2) + } + } + } + + var retErr error + + if len(i.FromNodes) > 0 && !option.Config.EnableNodeSelectorLabels { + retErr = ErrFromToNodesRequiresNodeSelectorOption + } + + for _, es := range i.FromEndpoints { + if err := es.sanitize(); err != nil { + return errors.Join(err, retErr) + } + } + + for _, es := range i.FromRequires { + if err := es.sanitize(); err != nil { + return errors.Join(err, retErr) + } + } + for _, ns := range i.FromNodes { if err := ns.sanitize(); err != nil { - return err + return errors.Join(err, retErr) } } for n := range i.FromCIDR { if err := i.FromCIDR[n].sanitize(); err != nil { - return err + return errors.Join(err, retErr) } } for n := range i.FromCIDRSet { if err := i.FromCIDRSet[n].sanitize(); err != nil { - return err + return errors.Join(err, retErr) } } for _, fromEntity := range i.FromEntities { _, ok := EntitySelectorMapping[fromEntity] if !ok { - return fmt.Errorf("unsupported entity: %s", fromEntity) + return errors.Join(fmt.Errorf("unsupported entity: %s", fromEntity), retErr) } } - i.SetAggregatedSelectors() - return retErr } @@ -219,46 +280,40 @@ func countNonGeneratedCIDRRules(s CIDRRuleSlice) int { return n } -func (e *EgressRule) sanitize() error { - var retErr error - - l3Members := map[string]int{ - "ToCIDR": len(e.ToCIDR), - "ToCIDRSet": countNonGeneratedCIDRRules(e.ToCIDRSet), - "ToEndpoints": len(e.ToEndpoints), - "ToEntities": len(e.ToEntities), - "ToServices": len(e.ToServices), - "ToFQDNs": len(e.ToFQDNs), - "ToGroups": len(e.ToGroups), - "ToNodes": len(e.ToNodes), - } - l3DependentL4Support := map[interface{}]bool{ - "ToCIDR": true, - "ToCIDRSet": true, - "ToEndpoints": true, - "ToEntities": true, - "ToServices": false, // see https://github.com/cilium/cilium/issues/20067 - "ToFQDNs": true, - "ToGroups": true, - "ToNodes": true, +// countNonGeneratedEndpoints counts the number of EndpointSelector items which are not +// `Generated`, i.e. were directly provided by the user. +// The `Generated` field is currently only set by the `ToServices` +// implementation, which extracts service endpoints and translates them as +// ToEndpoints rules before the CNP is passed to the policy repository. +// Therefore, we want to allow the combination of ToEndpoints and ToServices +// rules, if (and only if) the ToEndpoints only contains `Generated` entries. +func countNonGeneratedEndpoints(s []EndpointSelector) int { + n := 0 + for _, c := range s { + if !c.Generated { + n++ + } } + return n +} + +func (e *EgressRule) sanitize(hostPolicy bool) error { + l3Members := e.l3Members() + l3DependentL4Support := e.l3DependentL4Support() l7Members := countL7Rules(e.ToPorts) l7EgressSupport := map[string]bool{ "DNS": true, - "Kafka": true, - "HTTP": true, + "Kafka": !hostPolicy, + "HTTP": !hostPolicy, } - for m1 := range l3Members { - for m2 := range l3Members { - if m2 != m1 && l3Members[m1] > 0 && l3Members[m2] > 0 { - return fmt.Errorf("Combining %s and %s is not supported yet", m1, m2) - } - } + if err := e.EgressCommonRule.sanitize(l3Members); err != nil { + return err } + for member := range l3Members { if l3Members[member] > 0 && len(e.ToPorts) > 0 && !l3DependentL4Support[member] { - return fmt.Errorf("Combining %s and ToPorts is not supported yet", member) + return fmt.Errorf("combining %s and ToPorts is not supported yet", member) } } @@ -267,7 +322,11 @@ func (e *EgressRule) sanitize() error { } for member := range l7Members { if l7Members[member] > 0 && !l7EgressSupport[member] { - return fmt.Errorf("L7 protocol %s is not supported on egress yet", member) + where := "" + if hostPolicy { + where = "host " + } + return fmt.Errorf("L7 protocol %s is not supported on %segress yet", member, where) } } @@ -276,27 +335,69 @@ func (e *EgressRule) sanitize() error { } if len(e.ICMPs) > 0 && len(e.ToPorts) > 0 { - return fmt.Errorf("The ICMPs block may only be present without ToPorts. Define a separate rule to use ToPorts.") + return errUnsupportedICMPWithToPorts } - if len(e.ToNodes) > 0 && !option.Config.EnableNodeSelectorLabels { - retErr = ErrFromToNodesRequiresNodeSelectorOption + for i := range e.ToPorts { + if err := e.ToPorts[i].sanitize(false); err != nil { + return err + } } - for _, es := range e.ToEndpoints { - if err := es.sanitize(); err != nil { + for n := range e.ICMPs { + if err := e.ICMPs[n].verify(); err != nil { return err } } - for _, es := range e.ToRequires { - if err := es.sanitize(); err != nil { + for i := range e.ToFQDNs { + err := e.ToFQDNs[i].sanitize() + if err != nil { return err } } + e.SetAggregatedSelectors() + + return nil +} + +func (e *EgressRule) l3Members() map[string]int { + l3Members := e.EgressCommonRule.l3Members() + l3Members["ToFQDNs"] = len(e.ToFQDNs) + return l3Members +} + +func (e *EgressRule) l3DependentL4Support() map[string]bool { + l3DependentL4Support := e.EgressCommonRule.l3DependentL4Support() + l3DependentL4Support["ToFQDNs"] = true + return l3DependentL4Support +} + +func (e *EgressDenyRule) sanitize() error { + l3Members := e.l3Members() + l3DependentL4Support := e.l3DependentL4Support() + + if err := e.EgressCommonRule.sanitize(l3Members); err != nil { + return err + } + + for member := range l3Members { + if l3Members[member] > 0 && len(e.ToPorts) > 0 && !l3DependentL4Support[member] { + return fmt.Errorf("combining %s and ToPorts is not supported yet", member) + } + } + + if len(e.ICMPs) > 0 && !option.Config.EnableICMPRules { + return fmt.Errorf("ICMP rules can only be applied when the %q flag is set", option.EnableICMPRules) + } + + if len(e.ICMPs) > 0 && len(e.ToPorts) > 0 { + return errUnsupportedICMPWithToPorts + } + for i := range e.ToPorts { - if err := e.ToPorts[i].sanitize(false); err != nil { + if err := e.ToPorts[i].sanitize(); err != nil { return err } } @@ -307,40 +408,95 @@ func (e *EgressRule) sanitize() error { } } + e.SetAggregatedSelectors() + + return nil +} + +func (e *EgressDenyRule) l3Members() map[string]int { + return e.EgressCommonRule.l3Members() +} + +func (e *EgressDenyRule) l3DependentL4Support() map[string]bool { + return e.EgressCommonRule.l3DependentL4Support() +} + +func (e *EgressCommonRule) sanitize(l3Members map[string]int) error { + for m1 := range l3Members { + for m2 := range l3Members { + if m2 != m1 && l3Members[m1] > 0 && l3Members[m2] > 0 { + return fmt.Errorf("combining %s and %s is not supported yet", m1, m2) + } + } + } + + var retErr error + + if len(e.ToNodes) > 0 && !option.Config.EnableNodeSelectorLabels { + retErr = ErrFromToNodesRequiresNodeSelectorOption + } + + for _, es := range e.ToEndpoints { + if err := es.sanitize(); err != nil { + return errors.Join(err, retErr) + } + } + + for _, es := range e.ToRequires { + if err := es.sanitize(); err != nil { + return errors.Join(err, retErr) + } + } + for _, ns := range e.ToNodes { if err := ns.sanitize(); err != nil { - return err + return errors.Join(err, retErr) } } for i := range e.ToCIDR { if err := e.ToCIDR[i].sanitize(); err != nil { - return err + return errors.Join(err, retErr) } } for i := range e.ToCIDRSet { if err := e.ToCIDRSet[i].sanitize(); err != nil { - return err + return errors.Join(err, retErr) } } for _, toEntity := range e.ToEntities { _, ok := EntitySelectorMapping[toEntity] if !ok { - return fmt.Errorf("unsupported entity: %s", toEntity) + return errors.Join(fmt.Errorf("unsupported entity: %s", toEntity), retErr) } } - for i := range e.ToFQDNs { - err := e.ToFQDNs[i].sanitize() - if err != nil { - return err - } - } + return retErr +} - e.SetAggregatedSelectors() +func (e *EgressCommonRule) l3Members() map[string]int { + return map[string]int{ + "ToCIDR": len(e.ToCIDR), + "ToCIDRSet": countNonGeneratedCIDRRules(e.ToCIDRSet), + "ToEndpoints": countNonGeneratedEndpoints(e.ToEndpoints), + "ToEntities": len(e.ToEntities), + "ToServices": len(e.ToServices), + "ToGroups": len(e.ToGroups), + "ToNodes": len(e.ToNodes), + } +} - return retErr +func (e *EgressCommonRule) l3DependentL4Support() map[string]bool { + return map[string]bool{ + "ToCIDR": true, + "ToCIDRSet": true, + "ToEndpoints": true, + "ToEntities": true, + "ToServices": true, + "ToGroups": true, + "ToNodes": true, + } } func (pr *L7Rules) sanitize(ports []PortProtocol) error { @@ -368,7 +524,7 @@ func (pr *L7Rules) sanitize(ports []PortProtocol) error { // Forthcoming TPROXY redirection restricts DNS proxy to the standard DNS port (53). // Require the port 53 be explicitly configured, and disallow other port numbers. if len(ports) == 0 { - return fmt.Errorf("Port 53 must be specified for DNS rules") + return errors.New("port 53 must be specified for DNS rules") } nTypes++ @@ -407,13 +563,12 @@ func (pr *PortRule) sanitize(ingress bool) error { return fmt.Errorf("DNS rules are not allowed on ingress") } - hasL7Rules := pr.Rules != nil && !pr.Rules.IsEmpty() - if len(pr.ServerNames) > 0 && hasL7Rules && pr.TerminatingTLS == nil { + if len(pr.ServerNames) > 0 && !pr.Rules.IsEmpty() && pr.TerminatingTLS == nil { return fmt.Errorf("ServerNames are not allowed with L7 rules without TLS termination") } for _, sn := range pr.ServerNames { if sn == "" { - return fmt.Errorf("Empty server name is not allowed") + return errEmptyServerName } } @@ -424,7 +579,7 @@ func (pr *PortRule) sanitize(ingress bool) error { for i := range pr.Ports { var isZero bool var err error - if isZero, err = pr.Ports[i].sanitize(hasL7Rules); err != nil { + if isZero, err = pr.Ports[i].sanitize(hasDNSRules); err != nil { return err } if isZero { @@ -459,7 +614,7 @@ func (pr *PortRule) sanitize(ingress bool) error { // Sanitize L7 rules if !pr.Rules.IsEmpty() { if haveZeroPort { - return fmt.Errorf("L7 rules can not be used when a port is 0") + return errors.New("L7 rules can not be used when a port is 0") } if err := pr.Rules.sanitize(pr.Ports); err != nil { @@ -469,9 +624,22 @@ func (pr *PortRule) sanitize(ingress bool) error { return nil } -func (pp *PortProtocol) sanitize(hasL7Rules bool) (isZero bool, err error) { +func (pr *PortDenyRule) sanitize() error { + if len(pr.Ports) > maxPorts { + return fmt.Errorf("too many ports, the max is %d", maxPorts) + } + for i := range pr.Ports { + if _, err := pr.Ports[i].sanitize(false); err != nil { + return err + } + } + + return nil +} + +func (pp *PortProtocol) sanitize(hasDNSRules bool) (isZero bool, err error) { if pp.Port == "" { - return isZero, fmt.Errorf("Port must be specified") + return isZero, errors.New("Port must be specified") } // Port names are formatted as IANA Service Names. This means that @@ -482,11 +650,11 @@ func (pp *PortProtocol) sanitize(hasL7Rules bool) (isZero bool, err error) { } else { p, err := strconv.ParseUint(pp.Port, 0, 16) if err != nil { - return isZero, fmt.Errorf("Unable to parse port: %w", err) + return isZero, fmt.Errorf("unable to parse port: %w", err) } isZero = p == 0 - if hasL7Rules && pp.EndPort > int32(p) { - return isZero, errors.New("L7 rules do not support port ranges") + if hasDNSRules && pp.EndPort > int32(p) { + return isZero, errors.New("DNS rules do not support port ranges") } } @@ -535,15 +703,37 @@ func (c CIDR) sanitize() error { // valid, and ensuring that all of the exception CIDR prefixes are contained // within the allowed CIDR prefix. func (c *CIDRRule) sanitize() error { - if c.CIDRGroupRef != "" { - // When a CIDRGroupRef is set, we don't need to validate the CIDR - return nil + // Exactly one of CIDR, CIDRGroupRef, or CIDRGroupSelector must be set + cnt := 0 + if len(c.CIDRGroupRef) > 0 { + cnt++ + } + if len(c.Cidr) > 0 { + cnt++ } + if c.CIDRGroupSelector != nil { + cnt++ + es := NewESFromK8sLabelSelector(labels.LabelSourceCIDRGroupKeyPrefix, c.CIDRGroupSelector) + if err := es.sanitize(); err != nil { + return fmt.Errorf("failed to parse cidrGroupSelector %v: %w", c.CIDRGroupSelector.String(), err) + } + } + if cnt == 0 { + return fmt.Errorf("one of cidr, cidrGroupRef, or cidrGroupSelector is required") + } + if cnt > 1 { + return fmt.Errorf("more than one of cidr, cidrGroupRef, or cidrGroupSelector may not be set") + } + + if len(c.CIDRGroupRef) > 0 || c.CIDRGroupSelector != nil { + return nil // these are selectors; + } + // Only allow notation /. Note that this differs from // the logic in api.CIDR.Sanitize(). prefix, err := netip.ParsePrefix(string(c.Cidr)) if err != nil { - return fmt.Errorf("Unable to parse CIDRRule %q: %w", c.Cidr, err) + return fmt.Errorf("unable to parse CIDRRule %q: %w", c.Cidr, err) } prefixLength := prefix.Bits() diff --git a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/selector.go b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/selector.go index c23aa0d9c..7dc6c987f 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/selector.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/selector.go @@ -34,6 +34,10 @@ type EndpointSelector struct { // EndpointSelectors are created via `NewESFromMatchRequirements`. It is // immutable after its creation. cachedLabelSelectorString string `json:"-"` + + // Generated indicates whether the rule was generated based on other rules + // or provided by user + Generated bool `json:"-"` } // LabelSelectorString returns a user-friendly string representation of diff --git a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/service.go b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/service.go index 57868a367..4c8debda9 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/service.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/service.go @@ -6,7 +6,10 @@ package api // ServiceSelector is a label selector for k8s services type ServiceSelector EndpointSelector -// Service wraps around selectors for services +// Service selects policy targets that are bundled as part of a +// logical load-balanced service. +// +// Currently only Kubernetes-based Services are supported. type Service struct { // K8sServiceSelector selects services by k8s labels and namespace K8sServiceSelector *K8sServiceSelectorNamespace `json:"k8sServiceSelector,omitempty"` @@ -14,13 +17,13 @@ type Service struct { K8sService *K8sServiceNamespace `json:"k8sService,omitempty"` } -// K8sServiceNamespace is an abstraction for the k8s service + namespace types. +// K8sServiceNamespace selects services by name and, optionally, namespace. type K8sServiceNamespace struct { ServiceName string `json:"serviceName,omitempty"` Namespace string `json:"namespace,omitempty"` } -// K8sServiceSelectorNamespace wraps service selector with namespace +// K8sServiceSelectorNamespace selects services by labels. type K8sServiceSelectorNamespace struct { // +kubebuilder:validation:Required Selector ServiceSelector `json:"selector"` diff --git a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/zz_generated.deepcopy.go b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/zz_generated.deepcopy.go index c4fd467bf..d00bcda93 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/zz_generated.deepcopy.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/zz_generated.deepcopy.go @@ -67,6 +67,11 @@ func (in *Authentication) DeepCopy() *Authentication { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *CIDRRule) DeepCopyInto(out *CIDRRule) { *out = *in + if in.CIDRGroupSelector != nil { + in, out := &in.CIDRGroupSelector, &out.CIDRGroupSelector + *out = new(v1.LabelSelector) + (*in).DeepCopyInto(*out) + } if in.ExceptCIDRs != nil { in, out := &in.ExceptCIDRs, &out.ExceptCIDRs *out = make([]CIDR, len(*in)) diff --git a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/zz_generated.deepequal.go b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/zz_generated.deepequal.go index ced0d973b..8b2891070 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/policy/api/zz_generated.deepequal.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/policy/api/zz_generated.deepequal.go @@ -104,6 +104,14 @@ func (in *CIDRRule) DeepEqual(other *CIDRRule) bool { if in.CIDRGroupRef != other.CIDRGroupRef { return false } + if (in.CIDRGroupSelector == nil) != (other.CIDRGroupSelector == nil) { + return false + } else if in.CIDRGroupSelector != nil { + if !in.CIDRGroupSelector.DeepEqual(other.CIDRGroupSelector) { + return false + } + } + if ((in.ExceptCIDRs != nil) && (other.ExceptCIDRs != nil)) || ((in.ExceptCIDRs == nil) != (other.ExceptCIDRs == nil)) { in, other := &in.ExceptCIDRs, &other.ExceptCIDRs if other == nil { @@ -414,6 +422,9 @@ func (in *EndpointSelector) DeepEqual(other *EndpointSelector) bool { if in.cachedLabelSelectorString != other.cachedLabelSelectorString { return false } + if in.Generated != other.Generated { + return false + } return true } @@ -1377,6 +1388,9 @@ func (in *ServiceSelector) DeepEqual(other *ServiceSelector) bool { if in.cachedLabelSelectorString != other.cachedLabelSelectorString { return false } + if in.Generated != other.Generated { + return false + } return true } diff --git a/backend/vendor/github.com/cilium/cilium/pkg/promise/promise.go b/backend/vendor/github.com/cilium/cilium/pkg/promise/promise.go index 1ca251eb0..d6a7a5f4e 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/promise/promise.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/promise/promise.go @@ -88,13 +88,15 @@ func (p *promise[T]) Reject(err error) { // Await blocks until the promise has been resolved, rejected or context cancelled. func (p *promise[T]) Await(ctx context.Context) (value T, err error) { - // Fork off a goroutine to wait for cancellation and wake up. - ctx, cancel := context.WithCancel(ctx) - defer cancel() - go func() { - <-ctx.Done() + // Wake up the for-loop below if the context is cancelled. + // See https://pkg.go.dev/context#AfterFunc for a more detailed + // explanation of this pattern + cleanupCancellation := context.AfterFunc(ctx, func() { + p.Lock() + defer p.Unlock() p.cond.Broadcast() - }() + }) + defer cleanupCancellation() p.Lock() defer p.Unlock() diff --git a/backend/vendor/github.com/cilium/cilium/pkg/slices/slices.go b/backend/vendor/github.com/cilium/cilium/pkg/slices/slices.go index 6e1e0040f..9e81fb955 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/slices/slices.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/slices/slices.go @@ -4,10 +4,8 @@ package slices import ( + "cmp" "slices" - "sort" - - "golang.org/x/exp/constraints" ) // Unique deduplicates the elements in the input slice, preserving their ordering and @@ -46,6 +44,7 @@ func Unique[S ~[]T, T comparable](s S) S { } } + clear(s[last:]) // zero out obsolete elements for GC return s[:last] } @@ -69,41 +68,22 @@ func UniqueFunc[S ~[]T, T any, K comparable](s S, key func(i int) K) S { last++ } + clear(s[last:]) // zero out obsolete elements for GC return s[:last] } // SortedUnique sorts and dedup the input slice in place. // It uses the < operator to compare the elements in the slice and thus requires // the elements to satisfies contraints.Ordered. -func SortedUnique[S ~[]T, T constraints.Ordered](s S) S { +func SortedUnique[S ~[]T, T cmp.Ordered](s S) S { if len(s) < 2 { return s } - sort.Slice(s, func(i, j int) bool { - return s[i] < s[j] - }) + slices.Sort(s) return slices.Compact(s) } -// SortedUniqueFunc is like SortedUnique but allows the user to specify custom functions -// for ordering (less function) and comparing (eq function) the elements in the slice. -// This is useful in all the cases where SortedUnique cannot be used: -// - for types that do not satisfy constraints.Ordered (e.g: composite types) -// - when the user wants to customize how elements are compared (e.g: user wants to enforce reverse ordering) -func SortedUniqueFunc[S ~[]T, T any]( - s S, - less func(i, j int) bool, - eq func(a, b T) bool, -) S { - if len(s) < 2 { - return s - } - - sort.Slice(s, less) - return slices.CompactFunc(s, eq) -} - // Diff returns a slice of elements which is the difference of a and b. // The returned slice keeps the elements in the same order found in the "a" slice. // Both input slices are considered as sets, that is, all elements are considered as diff --git a/backend/vendor/github.com/cilium/cilium/pkg/source/source.go b/backend/vendor/github.com/cilium/cilium/pkg/source/source.go index 9c5ae913f..0406349f6 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/source/source.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/source/source.go @@ -3,6 +3,10 @@ package source +import ( + "github.com/cilium/hive/cell" +) + // Source describes the source of a definition type Source string @@ -52,8 +56,26 @@ const ( // Directory is the source used for watching and reading // cilium network policy files from specific directory. Directory Source = "directory" + + // Please remember to add your source to defaultSources below. ) +// Sources is a priority-sorted slice of sources. +type Sources []Source + +var defaultSources Sources = []Source{ + KubeAPIServer, + Local, + KVStore, + CustomResource, + Kubernetes, + ClusterMesh, + LocalAPI, + Generated, + Restored, + Unspec, +} + // AllowOverwrite returns true if new state from a particular source is allowed // to overwrite existing state from another source func AllowOverwrite(existing, new Source) bool { @@ -107,6 +129,16 @@ func AllowOverwrite(existing, new Source) bool { case Unspec: return true } - return true } + +var Cell = cell.Module( + "source", + "Definitions and priorities of data sources", + cell.Provide(NewSources), +) + +// NewSources returns sources ordered from the most preferred. +func NewSources() Sources { + return defaultSources +} diff --git a/backend/vendor/github.com/cilium/cilium/pkg/time/time.go b/backend/vendor/github.com/cilium/cilium/pkg/time/time.go index 694b21f03..925088acd 100644 --- a/backend/vendor/github.com/cilium/cilium/pkg/time/time.go +++ b/backend/vendor/github.com/cilium/cilium/pkg/time/time.go @@ -51,6 +51,7 @@ var ( Now = time.Now Parse = time.Parse ParseInLocation = time.ParseInLocation + UTC = time.UTC Unix = time.Unix UnixMicro = time.UnixMicro UnixMilli = time.UnixMilli diff --git a/backend/vendor/github.com/cilium/cilium/pkg/u8proto/u8proto.go b/backend/vendor/github.com/cilium/cilium/pkg/u8proto/u8proto.go new file mode 100644 index 000000000..988d11e07 --- /dev/null +++ b/backend/vendor/github.com/cilium/cilium/pkg/u8proto/u8proto.go @@ -0,0 +1,67 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package u8proto + +import ( + "fmt" + "strconv" + "strings" +) + +// These definitions must contain and be compatible with the string +// values defined for pkg/pollicy/api/L4Proto + +const ( + // ANY represents all protocols. + ANY U8proto = 0 + ICMP U8proto = 1 + TCP U8proto = 6 + UDP U8proto = 17 + ICMPv6 U8proto = 58 + SCTP U8proto = 132 +) + +var protoNames = map[U8proto]string{ + 0: "ANY", + 1: "ICMP", + 6: "TCP", + 17: "UDP", + 58: "ICMPv6", + 132: "SCTP", +} + +var ProtoIDs = map[string]U8proto{ + "all": 0, + "any": 0, + "none": 0, + "icmp": 1, + "tcp": 6, + "udp": 17, + "icmpv6": 58, + "sctp": 132, +} + +type U8proto uint8 + +func (p U8proto) String() string { + if _, ok := protoNames[p]; ok { + return protoNames[p] + } + return strconv.Itoa(int(p)) +} + +func ParseProtocol(proto string) (U8proto, error) { + if u, ok := ProtoIDs[strings.ToLower(proto)]; ok { + return u, nil + } + return 0, fmt.Errorf("unknown protocol '%s'", proto) +} + +func FromNumber(proto uint8) (U8proto, error) { + _, ok := protoNames[U8proto(proto)] + if !ok { + return 0, fmt.Errorf("unknown protocol %d", proto) + } + return U8proto(proto), nil +} diff --git a/backend/vendor/github.com/cilium/ebpf/.golangci.yaml b/backend/vendor/github.com/cilium/ebpf/.golangci.yaml index 8298e59ed..366d4893f 100644 --- a/backend/vendor/github.com/cilium/ebpf/.golangci.yaml +++ b/backend/vendor/github.com/cilium/ebpf/.golangci.yaml @@ -11,21 +11,9 @@ linters: - typecheck - unused - gofmt - - depguard linters-settings: goimports: # A comma-separated list of prefixes, which, if set, checks import paths # with the given prefixes are grouped after 3rd-party packages. # Default: "" local-prefixes: github.com/cilium/ebpf - depguard: - rules: - no-x-sys-unix: - files: - # Filenames are matched against absolute paths, include **/ at the start. - - '!**/internal/unix/*.go' - - '!**/examples/**/*.go' - - '!**/docs/**/*.go' - deny: - - pkg: golang.org/x/sys/unix - desc: use internal/unix instead diff --git a/backend/vendor/github.com/cilium/ebpf/asm/func.go b/backend/vendor/github.com/cilium/ebpf/asm/func.go index 7a59acf38..84a40b227 100644 --- a/backend/vendor/github.com/cilium/ebpf/asm/func.go +++ b/backend/vendor/github.com/cilium/ebpf/asm/func.go @@ -5,6 +5,10 @@ package asm // BuiltinFunc is a built-in eBPF function. type BuiltinFunc int32 +func (_ BuiltinFunc) Max() BuiltinFunc { + return maxBuiltinFunc - 1 +} + // eBPF built-in functions // // You can regenerate this list using the following gawk script: @@ -233,6 +237,8 @@ const ( FnUserRingbufDrain FnCgrpStorageGet FnCgrpStorageDelete + + maxBuiltinFunc ) // Call emits a function call. diff --git a/backend/vendor/github.com/cilium/ebpf/asm/func_string.go b/backend/vendor/github.com/cilium/ebpf/asm/func_string.go index 6c4ba3789..47150bc4f 100644 --- a/backend/vendor/github.com/cilium/ebpf/asm/func_string.go +++ b/backend/vendor/github.com/cilium/ebpf/asm/func_string.go @@ -220,11 +220,12 @@ func _() { _ = x[FnUserRingbufDrain-209] _ = x[FnCgrpStorageGet-210] _ = x[FnCgrpStorageDelete-211] + _ = x[maxBuiltinFunc-212] } -const _BuiltinFunc_name = "FnUnspecFnMapLookupElemFnMapUpdateElemFnMapDeleteElemFnProbeReadFnKtimeGetNsFnTracePrintkFnGetPrandomU32FnGetSmpProcessorIdFnSkbStoreBytesFnL3CsumReplaceFnL4CsumReplaceFnTailCallFnCloneRedirectFnGetCurrentPidTgidFnGetCurrentUidGidFnGetCurrentCommFnGetCgroupClassidFnSkbVlanPushFnSkbVlanPopFnSkbGetTunnelKeyFnSkbSetTunnelKeyFnPerfEventReadFnRedirectFnGetRouteRealmFnPerfEventOutputFnSkbLoadBytesFnGetStackidFnCsumDiffFnSkbGetTunnelOptFnSkbSetTunnelOptFnSkbChangeProtoFnSkbChangeTypeFnSkbUnderCgroupFnGetHashRecalcFnGetCurrentTaskFnProbeWriteUserFnCurrentTaskUnderCgroupFnSkbChangeTailFnSkbPullDataFnCsumUpdateFnSetHashInvalidFnGetNumaNodeIdFnSkbChangeHeadFnXdpAdjustHeadFnProbeReadStrFnGetSocketCookieFnGetSocketUidFnSetHashFnSetsockoptFnSkbAdjustRoomFnRedirectMapFnSkRedirectMapFnSockMapUpdateFnXdpAdjustMetaFnPerfEventReadValueFnPerfProgReadValueFnGetsockoptFnOverrideReturnFnSockOpsCbFlagsSetFnMsgRedirectMapFnMsgApplyBytesFnMsgCorkBytesFnMsgPullDataFnBindFnXdpAdjustTailFnSkbGetXfrmStateFnGetStackFnSkbLoadBytesRelativeFnFibLookupFnSockHashUpdateFnMsgRedirectHashFnSkRedirectHashFnLwtPushEncapFnLwtSeg6StoreBytesFnLwtSeg6AdjustSrhFnLwtSeg6ActionFnRcRepeatFnRcKeydownFnSkbCgroupIdFnGetCurrentCgroupIdFnGetLocalStorageFnSkSelectReuseportFnSkbAncestorCgroupIdFnSkLookupTcpFnSkLookupUdpFnSkReleaseFnMapPushElemFnMapPopElemFnMapPeekElemFnMsgPushDataFnMsgPopDataFnRcPointerRelFnSpinLockFnSpinUnlockFnSkFullsockFnTcpSockFnSkbEcnSetCeFnGetListenerSockFnSkcLookupTcpFnTcpCheckSyncookieFnSysctlGetNameFnSysctlGetCurrentValueFnSysctlGetNewValueFnSysctlSetNewValueFnStrtolFnStrtoulFnSkStorageGetFnSkStorageDeleteFnSendSignalFnTcpGenSyncookieFnSkbOutputFnProbeReadUserFnProbeReadKernelFnProbeReadUserStrFnProbeReadKernelStrFnTcpSendAckFnSendSignalThreadFnJiffies64FnReadBranchRecordsFnGetNsCurrentPidTgidFnXdpOutputFnGetNetnsCookieFnGetCurrentAncestorCgroupIdFnSkAssignFnKtimeGetBootNsFnSeqPrintfFnSeqWriteFnSkCgroupIdFnSkAncestorCgroupIdFnRingbufOutputFnRingbufReserveFnRingbufSubmitFnRingbufDiscardFnRingbufQueryFnCsumLevelFnSkcToTcp6SockFnSkcToTcpSockFnSkcToTcpTimewaitSockFnSkcToTcpRequestSockFnSkcToUdp6SockFnGetTaskStackFnLoadHdrOptFnStoreHdrOptFnReserveHdrOptFnInodeStorageGetFnInodeStorageDeleteFnDPathFnCopyFromUserFnSnprintfBtfFnSeqPrintfBtfFnSkbCgroupClassidFnRedirectNeighFnPerCpuPtrFnThisCpuPtrFnRedirectPeerFnTaskStorageGetFnTaskStorageDeleteFnGetCurrentTaskBtfFnBprmOptsSetFnKtimeGetCoarseNsFnImaInodeHashFnSockFromFileFnCheckMtuFnForEachMapElemFnSnprintfFnSysBpfFnBtfFindByNameKindFnSysCloseFnTimerInitFnTimerSetCallbackFnTimerStartFnTimerCancelFnGetFuncIpFnGetAttachCookieFnTaskPtRegsFnGetBranchSnapshotFnTraceVprintkFnSkcToUnixSockFnKallsymsLookupNameFnFindVmaFnLoopFnStrncmpFnGetFuncArgFnGetFuncRetFnGetFuncArgCntFnGetRetvalFnSetRetvalFnXdpGetBuffLenFnXdpLoadBytesFnXdpStoreBytesFnCopyFromUserTaskFnSkbSetTstampFnImaFileHashFnKptrXchgFnMapLookupPercpuElemFnSkcToMptcpSockFnDynptrFromMemFnRingbufReserveDynptrFnRingbufSubmitDynptrFnRingbufDiscardDynptrFnDynptrReadFnDynptrWriteFnDynptrDataFnTcpRawGenSyncookieIpv4FnTcpRawGenSyncookieIpv6FnTcpRawCheckSyncookieIpv4FnTcpRawCheckSyncookieIpv6FnKtimeGetTaiNsFnUserRingbufDrainFnCgrpStorageGetFnCgrpStorageDelete" +const _BuiltinFunc_name = "FnUnspecFnMapLookupElemFnMapUpdateElemFnMapDeleteElemFnProbeReadFnKtimeGetNsFnTracePrintkFnGetPrandomU32FnGetSmpProcessorIdFnSkbStoreBytesFnL3CsumReplaceFnL4CsumReplaceFnTailCallFnCloneRedirectFnGetCurrentPidTgidFnGetCurrentUidGidFnGetCurrentCommFnGetCgroupClassidFnSkbVlanPushFnSkbVlanPopFnSkbGetTunnelKeyFnSkbSetTunnelKeyFnPerfEventReadFnRedirectFnGetRouteRealmFnPerfEventOutputFnSkbLoadBytesFnGetStackidFnCsumDiffFnSkbGetTunnelOptFnSkbSetTunnelOptFnSkbChangeProtoFnSkbChangeTypeFnSkbUnderCgroupFnGetHashRecalcFnGetCurrentTaskFnProbeWriteUserFnCurrentTaskUnderCgroupFnSkbChangeTailFnSkbPullDataFnCsumUpdateFnSetHashInvalidFnGetNumaNodeIdFnSkbChangeHeadFnXdpAdjustHeadFnProbeReadStrFnGetSocketCookieFnGetSocketUidFnSetHashFnSetsockoptFnSkbAdjustRoomFnRedirectMapFnSkRedirectMapFnSockMapUpdateFnXdpAdjustMetaFnPerfEventReadValueFnPerfProgReadValueFnGetsockoptFnOverrideReturnFnSockOpsCbFlagsSetFnMsgRedirectMapFnMsgApplyBytesFnMsgCorkBytesFnMsgPullDataFnBindFnXdpAdjustTailFnSkbGetXfrmStateFnGetStackFnSkbLoadBytesRelativeFnFibLookupFnSockHashUpdateFnMsgRedirectHashFnSkRedirectHashFnLwtPushEncapFnLwtSeg6StoreBytesFnLwtSeg6AdjustSrhFnLwtSeg6ActionFnRcRepeatFnRcKeydownFnSkbCgroupIdFnGetCurrentCgroupIdFnGetLocalStorageFnSkSelectReuseportFnSkbAncestorCgroupIdFnSkLookupTcpFnSkLookupUdpFnSkReleaseFnMapPushElemFnMapPopElemFnMapPeekElemFnMsgPushDataFnMsgPopDataFnRcPointerRelFnSpinLockFnSpinUnlockFnSkFullsockFnTcpSockFnSkbEcnSetCeFnGetListenerSockFnSkcLookupTcpFnTcpCheckSyncookieFnSysctlGetNameFnSysctlGetCurrentValueFnSysctlGetNewValueFnSysctlSetNewValueFnStrtolFnStrtoulFnSkStorageGetFnSkStorageDeleteFnSendSignalFnTcpGenSyncookieFnSkbOutputFnProbeReadUserFnProbeReadKernelFnProbeReadUserStrFnProbeReadKernelStrFnTcpSendAckFnSendSignalThreadFnJiffies64FnReadBranchRecordsFnGetNsCurrentPidTgidFnXdpOutputFnGetNetnsCookieFnGetCurrentAncestorCgroupIdFnSkAssignFnKtimeGetBootNsFnSeqPrintfFnSeqWriteFnSkCgroupIdFnSkAncestorCgroupIdFnRingbufOutputFnRingbufReserveFnRingbufSubmitFnRingbufDiscardFnRingbufQueryFnCsumLevelFnSkcToTcp6SockFnSkcToTcpSockFnSkcToTcpTimewaitSockFnSkcToTcpRequestSockFnSkcToUdp6SockFnGetTaskStackFnLoadHdrOptFnStoreHdrOptFnReserveHdrOptFnInodeStorageGetFnInodeStorageDeleteFnDPathFnCopyFromUserFnSnprintfBtfFnSeqPrintfBtfFnSkbCgroupClassidFnRedirectNeighFnPerCpuPtrFnThisCpuPtrFnRedirectPeerFnTaskStorageGetFnTaskStorageDeleteFnGetCurrentTaskBtfFnBprmOptsSetFnKtimeGetCoarseNsFnImaInodeHashFnSockFromFileFnCheckMtuFnForEachMapElemFnSnprintfFnSysBpfFnBtfFindByNameKindFnSysCloseFnTimerInitFnTimerSetCallbackFnTimerStartFnTimerCancelFnGetFuncIpFnGetAttachCookieFnTaskPtRegsFnGetBranchSnapshotFnTraceVprintkFnSkcToUnixSockFnKallsymsLookupNameFnFindVmaFnLoopFnStrncmpFnGetFuncArgFnGetFuncRetFnGetFuncArgCntFnGetRetvalFnSetRetvalFnXdpGetBuffLenFnXdpLoadBytesFnXdpStoreBytesFnCopyFromUserTaskFnSkbSetTstampFnImaFileHashFnKptrXchgFnMapLookupPercpuElemFnSkcToMptcpSockFnDynptrFromMemFnRingbufReserveDynptrFnRingbufSubmitDynptrFnRingbufDiscardDynptrFnDynptrReadFnDynptrWriteFnDynptrDataFnTcpRawGenSyncookieIpv4FnTcpRawGenSyncookieIpv6FnTcpRawCheckSyncookieIpv4FnTcpRawCheckSyncookieIpv6FnKtimeGetTaiNsFnUserRingbufDrainFnCgrpStorageGetFnCgrpStorageDeletemaxBuiltinFunc" -var _BuiltinFunc_index = [...]uint16{0, 8, 23, 38, 53, 64, 76, 89, 104, 123, 138, 153, 168, 178, 193, 212, 230, 246, 264, 277, 289, 306, 323, 338, 348, 363, 380, 394, 406, 416, 433, 450, 466, 481, 497, 512, 528, 544, 568, 583, 596, 608, 624, 639, 654, 669, 683, 700, 714, 723, 735, 750, 763, 778, 793, 808, 828, 847, 859, 875, 894, 910, 925, 939, 952, 958, 973, 990, 1000, 1022, 1033, 1049, 1066, 1082, 1096, 1115, 1133, 1148, 1158, 1169, 1182, 1202, 1219, 1238, 1259, 1272, 1285, 1296, 1309, 1321, 1334, 1347, 1359, 1373, 1383, 1395, 1407, 1416, 1429, 1446, 1460, 1479, 1494, 1517, 1536, 1555, 1563, 1572, 1586, 1603, 1615, 1632, 1643, 1658, 1675, 1693, 1713, 1725, 1743, 1754, 1773, 1794, 1805, 1821, 1849, 1859, 1875, 1886, 1896, 1908, 1928, 1943, 1959, 1974, 1990, 2004, 2015, 2030, 2044, 2066, 2087, 2102, 2116, 2128, 2141, 2156, 2173, 2193, 2200, 2214, 2227, 2241, 2259, 2274, 2285, 2297, 2311, 2327, 2346, 2365, 2378, 2396, 2410, 2424, 2434, 2450, 2460, 2468, 2487, 2497, 2508, 2526, 2538, 2551, 2562, 2579, 2591, 2610, 2624, 2639, 2659, 2668, 2674, 2683, 2695, 2707, 2722, 2733, 2744, 2759, 2773, 2788, 2806, 2820, 2833, 2843, 2864, 2880, 2895, 2917, 2938, 2960, 2972, 2985, 2997, 3021, 3045, 3071, 3097, 3112, 3130, 3146, 3165} +var _BuiltinFunc_index = [...]uint16{0, 8, 23, 38, 53, 64, 76, 89, 104, 123, 138, 153, 168, 178, 193, 212, 230, 246, 264, 277, 289, 306, 323, 338, 348, 363, 380, 394, 406, 416, 433, 450, 466, 481, 497, 512, 528, 544, 568, 583, 596, 608, 624, 639, 654, 669, 683, 700, 714, 723, 735, 750, 763, 778, 793, 808, 828, 847, 859, 875, 894, 910, 925, 939, 952, 958, 973, 990, 1000, 1022, 1033, 1049, 1066, 1082, 1096, 1115, 1133, 1148, 1158, 1169, 1182, 1202, 1219, 1238, 1259, 1272, 1285, 1296, 1309, 1321, 1334, 1347, 1359, 1373, 1383, 1395, 1407, 1416, 1429, 1446, 1460, 1479, 1494, 1517, 1536, 1555, 1563, 1572, 1586, 1603, 1615, 1632, 1643, 1658, 1675, 1693, 1713, 1725, 1743, 1754, 1773, 1794, 1805, 1821, 1849, 1859, 1875, 1886, 1896, 1908, 1928, 1943, 1959, 1974, 1990, 2004, 2015, 2030, 2044, 2066, 2087, 2102, 2116, 2128, 2141, 2156, 2173, 2193, 2200, 2214, 2227, 2241, 2259, 2274, 2285, 2297, 2311, 2327, 2346, 2365, 2378, 2396, 2410, 2424, 2434, 2450, 2460, 2468, 2487, 2497, 2508, 2526, 2538, 2551, 2562, 2579, 2591, 2610, 2624, 2639, 2659, 2668, 2674, 2683, 2695, 2707, 2722, 2733, 2744, 2759, 2773, 2788, 2806, 2820, 2833, 2843, 2864, 2880, 2895, 2917, 2938, 2960, 2972, 2985, 2997, 3021, 3045, 3071, 3097, 3112, 3130, 3146, 3165, 3179} func (i BuiltinFunc) String() string { if i < 0 || i >= BuiltinFunc(len(_BuiltinFunc_index)-1) { diff --git a/backend/vendor/github.com/cilium/ebpf/attachtype_string.go b/backend/vendor/github.com/cilium/ebpf/attachtype_string.go index 84445a325..bece896bb 100644 --- a/backend/vendor/github.com/cilium/ebpf/attachtype_string.go +++ b/backend/vendor/github.com/cilium/ebpf/attachtype_string.go @@ -52,7 +52,6 @@ func _() { _ = x[AttachSkReuseportSelectOrMigrate-40] _ = x[AttachPerfEvent-41] _ = x[AttachTraceKprobeMulti-42] - _ = x[AttachTraceKprobeSession-56] _ = x[AttachLSMCgroup-43] _ = x[AttachStructOps-44] _ = x[AttachNetfilter-45] @@ -68,9 +67,9 @@ func _() { _ = x[AttachNetkitPeer-55] } -const _AttachType_name = "NoneCGroupInetEgressCGroupInetSockCreateCGroupSockOpsSkSKBStreamParserSkSKBStreamVerdictCGroupDeviceSkMsgVerdictCGroupInet4BindCGroupInet6BindCGroupInet4ConnectCGroupInet6ConnectCGroupInet4PostBindCGroupInet6PostBindCGroupUDP4SendmsgCGroupUDP6SendmsgLircMode2FlowDissectorCGroupSysctlCGroupUDP4RecvmsgCGroupUDP6RecvmsgCGroupGetsockoptCGroupSetsockoptTraceRawTpTraceFEntryTraceFExitModifyReturnLSMMacTraceIterCgroupInet4GetPeernameCgroupInet6GetPeernameCgroupInet4GetSocknameCgroupInet6GetSocknameXDPDevMapCgroupInetSockReleaseXDPCPUMapSkLookupXDPSkSKBVerdictSkReuseportSelectSkReuseportSelectOrMigratePerfEventTraceKprobeMultiLSMCgroupStructOpsNetfilterTCXIngressTCXEgressTraceUprobeMultiCgroupUnixConnectCgroupUnixSendmsgCgroupUnixRecvmsgCgroupUnixGetpeernameCgroupUnixGetsocknameNetkitPrimaryNetkitPeerTraceKprobeSession" +const _AttachType_name = "NoneCGroupInetEgressCGroupInetSockCreateCGroupSockOpsSkSKBStreamParserSkSKBStreamVerdictCGroupDeviceSkMsgVerdictCGroupInet4BindCGroupInet6BindCGroupInet4ConnectCGroupInet6ConnectCGroupInet4PostBindCGroupInet6PostBindCGroupUDP4SendmsgCGroupUDP6SendmsgLircMode2FlowDissectorCGroupSysctlCGroupUDP4RecvmsgCGroupUDP6RecvmsgCGroupGetsockoptCGroupSetsockoptTraceRawTpTraceFEntryTraceFExitModifyReturnLSMMacTraceIterCgroupInet4GetPeernameCgroupInet6GetPeernameCgroupInet4GetSocknameCgroupInet6GetSocknameXDPDevMapCgroupInetSockReleaseXDPCPUMapSkLookupXDPSkSKBVerdictSkReuseportSelectSkReuseportSelectOrMigratePerfEventTraceKprobeMultiLSMCgroupStructOpsNetfilterTCXIngressTCXEgressTraceUprobeMultiCgroupUnixConnectCgroupUnixSendmsgCgroupUnixRecvmsgCgroupUnixGetpeernameCgroupUnixGetsocknameNetkitPrimaryNetkitPeer" -var _AttachType_index = [...]uint16{0, 4, 20, 40, 53, 70, 88, 100, 112, 127, 142, 160, 178, 197, 216, 233, 250, 259, 272, 284, 301, 318, 334, 350, 360, 371, 381, 393, 399, 408, 430, 452, 474, 496, 505, 526, 535, 543, 546, 558, 575, 601, 610, 626, 635, 644, 653, 663, 672, 688, 705, 722, 739, 760, 781, 794, 804, 822} +var _AttachType_index = [...]uint16{0, 4, 20, 40, 53, 70, 88, 100, 112, 127, 142, 160, 178, 197, 216, 233, 250, 259, 272, 284, 301, 318, 334, 350, 360, 371, 381, 393, 399, 408, 430, 452, 474, 496, 505, 526, 535, 543, 546, 558, 575, 601, 610, 626, 635, 644, 653, 663, 672, 688, 705, 722, 739, 760, 781, 794, 804} func (i AttachType) String() string { if i >= AttachType(len(_AttachType_index)-1) { diff --git a/backend/vendor/github.com/cilium/ebpf/collection.go b/backend/vendor/github.com/cilium/ebpf/collection.go index a7b6cb31b..1bda110a4 100644 --- a/backend/vendor/github.com/cilium/ebpf/collection.go +++ b/backend/vendor/github.com/cilium/ebpf/collection.go @@ -411,10 +411,15 @@ func newCollectionLoader(coll *CollectionSpec, opts *CollectionOptions) (*collec } // Check for existing MapSpecs in the CollectionSpec for all provided replacement maps. - for name := range opts.MapReplacements { - if _, ok := coll.Maps[name]; !ok { + for name, m := range opts.MapReplacements { + spec, ok := coll.Maps[name] + if !ok { return nil, fmt.Errorf("replacement map %s not found in CollectionSpec", name) } + + if err := spec.Compatible(m); err != nil { + return nil, fmt.Errorf("using replacement map %s: %w", spec.Name, err) + } } if err := populateKallsyms(coll.Programs); err != nil { @@ -489,22 +494,7 @@ func (cl *collectionLoader) loadMap(mapName string) (*Map, error) { return nil, fmt.Errorf("missing map %s", mapName) } - mapSpec = mapSpec.Copy() - - // Defer setting the mmapable flag on maps until load time. This avoids the - // MapSpec having different flags on some kernel versions. Also avoid running - // syscalls during ELF loading, so platforms like wasm can also parse an ELF. - if isDataSection(mapSpec.Name) && haveMmapableMaps() == nil { - mapSpec.Flags |= sys.BPF_F_MMAPABLE - } - if replaceMap, ok := cl.opts.MapReplacements[mapName]; ok { - // Check compatibility with the replacement map after setting - // feature-dependent map flags. - if err := mapSpec.Compatible(replaceMap); err != nil { - return nil, fmt.Errorf("using replacement map %s: %w", mapSpec.Name, err) - } - // Clone the map to avoid closing user's map later on. m, err := replaceMap.Clone() if err != nil { @@ -515,6 +505,13 @@ func (cl *collectionLoader) loadMap(mapName string) (*Map, error) { return m, nil } + // Defer setting the mmapable flag on maps until load time. This avoids the + // MapSpec having different flags on some kernel versions. Also avoid running + // syscalls during ELF loading, so platforms like wasm can also parse an ELF. + if isDataSection(mapSpec.Name) && haveMmapableMaps() == nil { + mapSpec.Flags |= sys.BPF_F_MMAPABLE + } + m, err := newMapWithOptions(mapSpec, cl.opts.Maps) if err != nil { return nil, fmt.Errorf("map %s: %w", mapName, err) diff --git a/backend/vendor/github.com/cilium/ebpf/elf_sections.go b/backend/vendor/github.com/cilium/ebpf/elf_sections.go index 43dcfb103..4b58251d9 100644 --- a/backend/vendor/github.com/cilium/ebpf/elf_sections.go +++ b/backend/vendor/github.com/cilium/ebpf/elf_sections.go @@ -18,7 +18,6 @@ var elfSectionDefs = []libbpfElfSectionDef{ {"uretprobe.s+", sys.BPF_PROG_TYPE_KPROBE, 0, _SEC_SLEEPABLE}, {"kprobe.multi+", sys.BPF_PROG_TYPE_KPROBE, sys.BPF_TRACE_KPROBE_MULTI, _SEC_NONE}, {"kretprobe.multi+", sys.BPF_PROG_TYPE_KPROBE, sys.BPF_TRACE_KPROBE_MULTI, _SEC_NONE}, - {"kprobe.session+", sys.BPF_PROG_TYPE_KPROBE, sys.BPF_TRACE_KPROBE_SESSION, _SEC_NONE}, {"uprobe.multi+", sys.BPF_PROG_TYPE_KPROBE, sys.BPF_TRACE_UPROBE_MULTI, _SEC_NONE}, {"uretprobe.multi+", sys.BPF_PROG_TYPE_KPROBE, sys.BPF_TRACE_UPROBE_MULTI, _SEC_NONE}, {"uprobe.multi.s+", sys.BPF_PROG_TYPE_KPROBE, sys.BPF_TRACE_UPROBE_MULTI, _SEC_SLEEPABLE}, @@ -70,7 +69,6 @@ var elfSectionDefs = []libbpfElfSectionDef{ {"sockops", sys.BPF_PROG_TYPE_SOCK_OPS, sys.BPF_CGROUP_SOCK_OPS, _SEC_ATTACHABLE_OPT}, {"sk_skb/stream_parser", sys.BPF_PROG_TYPE_SK_SKB, sys.BPF_SK_SKB_STREAM_PARSER, _SEC_ATTACHABLE_OPT}, {"sk_skb/stream_verdict", sys.BPF_PROG_TYPE_SK_SKB, sys.BPF_SK_SKB_STREAM_VERDICT, _SEC_ATTACHABLE_OPT}, - {"sk_skb/verdict", sys.BPF_PROG_TYPE_SK_SKB, sys.BPF_SK_SKB_VERDICT, _SEC_ATTACHABLE_OPT}, {"sk_skb", sys.BPF_PROG_TYPE_SK_SKB, 0, _SEC_NONE}, {"sk_msg", sys.BPF_PROG_TYPE_SK_MSG, sys.BPF_SK_MSG_VERDICT, _SEC_ATTACHABLE_OPT}, {"lirc_mode2", sys.BPF_PROG_TYPE_LIRC_MODE2, sys.BPF_LIRC_MODE2, _SEC_ATTACHABLE_OPT}, diff --git a/backend/vendor/github.com/cilium/ebpf/features/map.go b/backend/vendor/github.com/cilium/ebpf/features/map.go index 2c68ab05d..4b16e6af4 100644 --- a/backend/vendor/github.com/cilium/ebpf/features/map.go +++ b/backend/vendor/github.com/cilium/ebpf/features/map.go @@ -1,5 +1,3 @@ -//go:build linux - package features import ( diff --git a/backend/vendor/github.com/cilium/ebpf/features/misc.go b/backend/vendor/github.com/cilium/ebpf/features/misc.go index f07ef92ad..c039020a9 100644 --- a/backend/vendor/github.com/cilium/ebpf/features/misc.go +++ b/backend/vendor/github.com/cilium/ebpf/features/misc.go @@ -1,5 +1,3 @@ -//go:build linux - package features import ( diff --git a/backend/vendor/github.com/cilium/ebpf/features/prog.go b/backend/vendor/github.com/cilium/ebpf/features/prog.go index e71525e5f..003bf0064 100644 --- a/backend/vendor/github.com/cilium/ebpf/features/prog.go +++ b/backend/vendor/github.com/cilium/ebpf/features/prog.go @@ -1,12 +1,9 @@ -//go:build linux - package features import ( "errors" "fmt" - "slices" - "strings" + "os" "github.com/cilium/ebpf" "github.com/cilium/ebpf/asm" @@ -232,6 +229,10 @@ var helperCache = internal.NewFeatureCache(func(key helperKey) *internal.Feature // // Probe results are cached and persist throughout any process capability changes. func HaveProgramHelper(pt ebpf.ProgramType, helper asm.BuiltinFunc) error { + if helper > helper.Max() { + return os.ErrInvalid + } + return helperCache.Result(helperKey{pt, helper}) } @@ -266,59 +267,30 @@ func haveProgramHelper(pt ebpf.ProgramType, helper asm.BuiltinFunc) error { } prog, err := ebpf.NewProgramWithOptions(spec, ebpf.ProgramOptions{ - LogLevel: 1, + LogDisabled: true, }) if err == nil { prog.Close() } - var verr *ebpf.VerifierError - if !errors.As(err, &verr) { - return err - } - - helperTag := fmt.Sprintf("#%d", helper) - switch { // EACCES occurs when attempting to create a program probe with a helper // while the register args when calling this helper aren't set up properly. // We interpret this as the helper being available, because the verifier // returns EINVAL if the helper is not supported by the running kernel. case errors.Is(err, unix.EACCES): + // TODO: possibly we need to check verifier output here to be sure err = nil // EINVAL occurs when attempting to create a program with an unknown helper. case errors.Is(err, unix.EINVAL): - // https://github.com/torvalds/linux/blob/09a0fa92e5b45e99cf435b2fbf5ebcf889cf8780/kernel/bpf/verifier.c#L10663 - if logContainsAll(verr.Log, "invalid func", helperTag) { - return ebpf.ErrNotSupported - } - - // https://github.com/torvalds/linux/blob/09a0fa92e5b45e99cf435b2fbf5ebcf889cf8780/kernel/bpf/verifier.c#L10668 - wrongProgramType := logContainsAll(verr.Log, "program of this type cannot use helper", helperTag) - // https://github.com/torvalds/linux/blob/59b418c7063d30e0a3e1f592d47df096db83185c/kernel/bpf/verifier.c#L10204 - // 4.9 doesn't include # in verifier output. - wrongProgramType = wrongProgramType || logContainsAll(verr.Log, "unknown func") - if wrongProgramType { - return fmt.Errorf("program of this type cannot use helper: %w", ebpf.ErrNotSupported) - } + // TODO: possibly we need to check verifier output here to be sure + err = ebpf.ErrNotSupported } return err } -func logContainsAll(log []string, needles ...string) bool { - first := max(len(log)-5, 0) // Check last 5 lines. - return slices.ContainsFunc(log[first:], func(line string) bool { - for _, needle := range needles { - if !strings.Contains(line, needle) { - return false - } - } - return true - }) -} - func helperProbeNotImplemented(pt ebpf.ProgramType) bool { switch pt { case ebpf.Extension, ebpf.LSM, ebpf.StructOps, ebpf.Tracing: diff --git a/backend/vendor/github.com/cilium/ebpf/features/version.go b/backend/vendor/github.com/cilium/ebpf/features/version.go index 124dcd2bc..d54d3ea21 100644 --- a/backend/vendor/github.com/cilium/ebpf/features/version.go +++ b/backend/vendor/github.com/cilium/ebpf/features/version.go @@ -1,5 +1,3 @@ -//go:build linux - package features import "github.com/cilium/ebpf/internal/linux" diff --git a/backend/vendor/github.com/cilium/ebpf/internal/feature.go b/backend/vendor/github.com/cilium/ebpf/internal/feature.go index 6f64822e1..6399be085 100644 --- a/backend/vendor/github.com/cilium/ebpf/internal/feature.go +++ b/backend/vendor/github.com/cilium/ebpf/internal/feature.go @@ -93,7 +93,7 @@ func NewFeatureTest(name string, fn FeatureTestFn, versions ...string) func() er break } - if OnLinux && !strings.ContainsRune(version, ':') { + if runtime.GOOS == "linux" && !strings.ContainsRune(version, ':') { // Allow version numbers without a GOOS prefix on Linux. ft.Version = version break diff --git a/backend/vendor/github.com/cilium/ebpf/internal/goos.go b/backend/vendor/github.com/cilium/ebpf/internal/goos.go deleted file mode 100644 index 0569d5ce0..000000000 --- a/backend/vendor/github.com/cilium/ebpf/internal/goos.go +++ /dev/null @@ -1,7 +0,0 @@ -package internal - -import "runtime" - -const ( - OnLinux = runtime.GOOS == "linux" -) diff --git a/backend/vendor/github.com/cilium/ebpf/internal/kallsyms/kallsyms.go b/backend/vendor/github.com/cilium/ebpf/internal/kallsyms/kallsyms.go index 2cdfb56a5..f93d78584 100644 --- a/backend/vendor/github.com/cilium/ebpf/internal/kallsyms/kallsyms.go +++ b/backend/vendor/github.com/cilium/ebpf/internal/kallsyms/kallsyms.go @@ -8,8 +8,6 @@ import ( "slices" "strconv" "strings" - - "github.com/cilium/ebpf/internal" ) var errAmbiguousKsym = errors.New("multiple kernel symbols with the same name") @@ -49,10 +47,6 @@ func Module(name string) (string, error) { // Any symbols missing in the kernel are ignored. Returns an error if multiple // symbols with a given name were found. func AssignModules(symbols map[string]string) error { - if !internal.OnLinux { - return fmt.Errorf("read /proc/kallsyms: %w", internal.ErrNotSupportedOnOS) - } - if len(symbols) == 0 { return nil } @@ -77,7 +71,6 @@ func AssignModules(symbols map[string]string) error { if err != nil { return err } - defer f.Close() if err := assignModules(f, request); err != nil { return fmt.Errorf("assigning symbol modules: %w", err) @@ -168,10 +161,6 @@ func Address(symbol string) (uint64, error) { // Any symbols missing in the kernel are ignored. Returns an error if multiple // addresses were found for a symbol. func AssignAddresses(symbols map[string]uint64) error { - if !internal.OnLinux { - return fmt.Errorf("read /proc/kallsyms: %w", internal.ErrNotSupportedOnOS) - } - if len(symbols) == 0 { return nil } @@ -196,7 +185,6 @@ func AssignAddresses(symbols map[string]uint64) error { if err != nil { return err } - defer f.Close() if err := assignAddresses(f, request); err != nil { return fmt.Errorf("loading symbol addresses: %w", err) diff --git a/backend/vendor/github.com/cilium/ebpf/internal/linux/auxv.go b/backend/vendor/github.com/cilium/ebpf/internal/linux/auxv.go index 07d5efee0..98bb5d83c 100644 --- a/backend/vendor/github.com/cilium/ebpf/internal/linux/auxv.go +++ b/backend/vendor/github.com/cilium/ebpf/internal/linux/auxv.go @@ -2,11 +2,8 @@ package linux import ( "errors" - "fmt" "io" _ "unsafe" - - "github.com/cilium/ebpf/internal" ) type auxvPairReader interface { @@ -50,10 +47,6 @@ func (r *auxvRuntimeReader) ReadAuxvPair() (uint64, uint64, error) { } func newAuxvRuntimeReader() (auxvPairReader, error) { - if !internal.OnLinux { - return nil, fmt.Errorf("read auxv from runtime: %w", internal.ErrNotSupportedOnOS) - } - data := runtime_getAuxv() if len(data)%2 != 0 { diff --git a/backend/vendor/github.com/cilium/ebpf/internal/sys/types.go b/backend/vendor/github.com/cilium/ebpf/internal/sys/types.go index 82f3492a8..88001c319 100644 --- a/backend/vendor/github.com/cilium/ebpf/internal/sys/types.go +++ b/backend/vendor/github.com/cilium/ebpf/internal/sys/types.go @@ -26,7 +26,6 @@ const ( BPF_FIB_LKUP_RET_UNREACHABLE = 2 BPF_FIB_LKUP_RET_UNSUPP_LWT = 6 BPF_FIB_LOOKUP_DIRECT = 1 - BPF_FIB_LOOKUP_MARK = 32 BPF_FIB_LOOKUP_OUTPUT = 2 BPF_FIB_LOOKUP_SKIP_NEIGH = 4 BPF_FIB_LOOKUP_SRC = 16 @@ -69,7 +68,6 @@ const ( BPF_F_NO_COMMON_LRU = 2 BPF_F_NO_PREALLOC = 1 BPF_F_NO_TUNNEL_KEY = 16 - BPF_F_NO_USER_CONV = 262144 BPF_F_NUMA_NODE = 4 BPF_F_PATH_FD = 16384 BPF_F_PEER = 4 @@ -79,20 +77,17 @@ const ( BPF_F_RDONLY_PROG = 128 BPF_F_RECOMPUTE_CSUM = 1 BPF_F_REUSE_STACKID = 1024 - BPF_F_SEGV_ON_FAULT = 131072 BPF_F_SEQ_NUMBER = 8 BPF_F_SKIP_FIELD_MASK = 255 BPF_F_STACK_BUILD_ID = 32 BPF_F_SYSCTL_BASE_NAME = 1 BPF_F_TIMER_ABS = 1 BPF_F_TIMER_CPU_PIN = 2 - BPF_F_TOKEN_FD = 65536 BPF_F_TUNINFO_FLAGS = 16 BPF_F_TUNINFO_IPV6 = 1 BPF_F_UPROBE_MULTI_RETURN = 1 BPF_F_USER_BUILD_ID = 2048 BPF_F_USER_STACK = 256 - BPF_F_VTYPE_BTF_OBJ_FD = 32768 BPF_F_WRONLY = 16 BPF_F_WRONLY_PROG = 256 BPF_F_ZERO_CSUM_TX = 2 @@ -122,9 +117,6 @@ const ( BPF_RINGBUF_BUSY_BIT = 2147483648 BPF_RINGBUF_DISCARD_BIT = 1073741824 BPF_RINGBUF_HDR_SZ = 8 - BPF_SKB_CLOCK_MONOTONIC = 1 - BPF_SKB_CLOCK_REALTIME = 0 - BPF_SKB_CLOCK_TAI = 2 BPF_SKB_TSTAMP_DELIVERY_MONO = 1 BPF_SKB_TSTAMP_UNSPEC = 0 BPF_SK_LOOKUP_F_NO_REUSEPORT = 2 @@ -154,6 +146,8 @@ const ( BPF_SOCK_OPS_VOID = 0 BPF_SOCK_OPS_WRITE_HDR_OPT_CB = 15 BPF_SOCK_OPS_WRITE_HDR_OPT_CB_FLAG = 64 + BPF_STRUCT_OPS_TYPE_bpf_dummy_ops = 0 + BPF_STRUCT_OPS_TYPE_tcp_congestion_ops = 1 BPF_TASK_ITER_ALL_PROCS = 0 BPF_TASK_ITER_ALL_THREADS = 1 BPF_TASK_ITER_PROC_THREADS = 2 @@ -242,8 +236,7 @@ const ( BPF_CGROUP_UNIX_GETSOCKNAME AttachType = 53 BPF_NETKIT_PRIMARY AttachType = 54 BPF_NETKIT_PEER AttachType = 55 - BPF_TRACE_KPROBE_SESSION AttachType = 56 - __MAX_BPF_ATTACH_TYPE AttachType = 57 + __MAX_BPF_ATTACH_TYPE AttachType = 56 ) type Cmd uint32 @@ -286,8 +279,6 @@ const ( BPF_ITER_CREATE Cmd = 33 BPF_LINK_DETACH Cmd = 34 BPF_PROG_BIND_MAP Cmd = 35 - BPF_TOKEN_CREATE Cmd = 36 - __MAX_BPF_CMD Cmd = 37 ) type FunctionId uint32 @@ -532,8 +523,7 @@ const ( BPF_LINK_TYPE_TCX LinkType = 11 BPF_LINK_TYPE_UPROBE_MULTI LinkType = 12 BPF_LINK_TYPE_NETKIT LinkType = 13 - BPF_LINK_TYPE_SOCKMAP LinkType = 14 - __MAX_BPF_LINK_TYPE LinkType = 15 + __MAX_BPF_LINK_TYPE LinkType = 14 ) type MapType uint32 @@ -574,8 +564,6 @@ const ( BPF_MAP_TYPE_BLOOM_FILTER MapType = 30 BPF_MAP_TYPE_USER_RINGBUF MapType = 31 BPF_MAP_TYPE_CGRP_STORAGE MapType = 32 - BPF_MAP_TYPE_ARENA MapType = 33 - __MAX_BPF_MAP_TYPE MapType = 34 ) type ObjType uint32 @@ -635,7 +623,6 @@ const ( BPF_PROG_TYPE_SK_LOOKUP ProgType = 30 BPF_PROG_TYPE_SYSCALL ProgType = 31 BPF_PROG_TYPE_NETFILTER ProgType = 32 - __MAX_BPF_PROG_TYPE ProgType = 33 ) type RetCode uint32 @@ -732,7 +719,7 @@ type MapInfo struct { BtfId uint32 BtfKeyTypeId TypeID BtfValueTypeId TypeID - BtfVmlinuxId uint32 + _ [4]byte MapExtra uint64 } @@ -829,8 +816,6 @@ type BtfLoadAttr struct { BtfLogSize uint32 BtfLogLevel uint32 BtfLogTrueSize uint32 - BtfFlags uint32 - BtfTokenFd int32 } func BtfLoad(attr *BtfLoadAttr) (*FD, error) { @@ -1084,8 +1069,6 @@ type MapCreateAttr struct { BtfValueTypeId TypeID BtfVmlinuxValueTypeId TypeID MapExtra uint64 - ValueTypeBtfObjFd int32 - MapTokenFd int32 } func MapCreate(attr *MapCreateAttr) (*FD, error) { @@ -1379,8 +1362,6 @@ type ProgLoadAttr struct { CoreRelos Pointer CoreReloRecSize uint32 LogTrueSize uint32 - ProgTokenFd int32 - _ [4]byte } func ProgLoad(attr *ProgLoadAttr) (*FD, error) { @@ -1438,7 +1419,6 @@ type RawTracepointOpenAttr struct { Name Pointer ProgFd uint32 _ [4]byte - Cookie uint64 } func RawTracepointOpen(attr *RawTracepointOpenAttr) (*FD, error) { @@ -1480,20 +1460,19 @@ type KprobeLinkInfo struct { Offset uint32 Addr uint64 Missed uint64 - Cookie uint64 + _ [8]byte } type KprobeMultiLinkInfo struct { - Type LinkType - Id LinkID - ProgId uint32 - _ [4]byte - Addrs Pointer - Count uint32 - Flags uint32 - Missed uint64 - Cookies uint64 - _ [16]byte + Type LinkType + Id LinkID + ProgId uint32 + _ [4]byte + Addrs Pointer + Count uint32 + Flags uint32 + Missed uint64 + _ [24]byte } type NetNsLinkInfo struct { diff --git a/backend/vendor/github.com/cilium/ebpf/internal/tracefs/kprobe.go b/backend/vendor/github.com/cilium/ebpf/internal/tracefs/kprobe.go index bdadf4d8e..062bef9ec 100644 --- a/backend/vendor/github.com/cilium/ebpf/internal/tracefs/kprobe.go +++ b/backend/vendor/github.com/cilium/ebpf/internal/tracefs/kprobe.go @@ -113,10 +113,6 @@ func sanitizeTracefsPath(path ...string) (string, error) { // but may be also be available at /sys/kernel/debug/tracing if debugfs is mounted. // The available tracefs paths will depends on distribution choices. var getTracefsPath = sync.OnceValues(func() (string, error) { - if !internal.OnLinux { - return "", fmt.Errorf("tracefs: %w", internal.ErrNotSupportedOnOS) - } - for _, p := range []struct { path string fsType int64 diff --git a/backend/vendor/github.com/cilium/ebpf/internal/unix/error.go b/backend/vendor/github.com/cilium/ebpf/internal/unix/error.go deleted file mode 100644 index 48017c100..000000000 --- a/backend/vendor/github.com/cilium/ebpf/internal/unix/error.go +++ /dev/null @@ -1,23 +0,0 @@ -package unix - -import ( - "fmt" - "runtime" - "strings" - - "github.com/cilium/ebpf/internal" -) - -// errNonLinux returns an error which wraps [internal.ErrNotSupportedOnOS] and -// includes the name of the calling function. -func errNonLinux() error { - name := "unknown" - pc, _, _, ok := runtime.Caller(1) - if ok { - name = runtime.FuncForPC(pc).Name() - if pos := strings.LastIndexByte(name, '.'); pos != -1 { - name = name[pos+1:] - } - } - return fmt.Errorf("unix: %s: %w", name, internal.ErrNotSupportedOnOS) -} diff --git a/backend/vendor/github.com/cilium/ebpf/internal/unix/strings_other.go b/backend/vendor/github.com/cilium/ebpf/internal/unix/strings_other.go deleted file mode 100644 index 49e1fe217..000000000 --- a/backend/vendor/github.com/cilium/ebpf/internal/unix/strings_other.go +++ /dev/null @@ -1,11 +0,0 @@ -//go:build !linux && !windows - -package unix - -func BytePtrFromString(s string) (*byte, error) { - return nil, errNonLinux() -} - -func ByteSliceToString(s []byte) string { - return "" -} diff --git a/backend/vendor/github.com/cilium/ebpf/internal/unix/strings_windows.go b/backend/vendor/github.com/cilium/ebpf/internal/unix/strings_windows.go deleted file mode 100644 index 7e3d4da77..000000000 --- a/backend/vendor/github.com/cilium/ebpf/internal/unix/strings_windows.go +++ /dev/null @@ -1,19 +0,0 @@ -package unix - -import ( - "syscall" - - "golang.org/x/sys/windows" -) - -func BytePtrFromString(s string) (*byte, error) { - p, err := windows.BytePtrFromString(s) - if err == syscall.EINVAL { - err = EINVAL - } - return p, err -} - -func ByteSliceToString(s []byte) string { - return windows.ByteSliceToString(s) -} diff --git a/backend/vendor/github.com/cilium/ebpf/internal/unix/types_other.go b/backend/vendor/github.com/cilium/ebpf/internal/unix/types_other.go index 806c6e567..06cc3a096 100644 --- a/backend/vendor/github.com/cilium/ebpf/internal/unix/types_other.go +++ b/backend/vendor/github.com/cilium/ebpf/internal/unix/types_other.go @@ -3,9 +3,13 @@ package unix import ( + "fmt" + "runtime" "syscall" ) +var errNonLinux = fmt.Errorf("unsupported platform %s/%s", runtime.GOOS, runtime.GOARCH) + // Errnos are distinct and non-zero. const ( ENOENT syscall.Errno = iota + 1 @@ -138,23 +142,23 @@ func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { } func PthreadSigmask(how int, set, oldset *Sigset_t) error { - return errNonLinux() + return errNonLinux } func FcntlInt(fd uintptr, cmd, arg int) (int, error) { - return -1, errNonLinux() + return -1, errNonLinux } func IoctlSetInt(fd int, req uint, value int) error { - return errNonLinux() + return errNonLinux } func Statfs(path string, buf *Statfs_t) error { - return errNonLinux() + return errNonLinux } func Close(fd int) (err error) { - return errNonLinux() + return errNonLinux } type EpollEvent struct { @@ -164,23 +168,23 @@ type EpollEvent struct { } func EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) { - return 0, errNonLinux() + return 0, errNonLinux } func EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error) { - return errNonLinux() + return errNonLinux } func Eventfd(initval uint, flags int) (fd int, err error) { - return 0, errNonLinux() + return 0, errNonLinux } func Write(fd int, p []byte) (n int, err error) { - return 0, errNonLinux() + return 0, errNonLinux } func EpollCreate1(flag int) (fd int, err error) { - return 0, errNonLinux() + return 0, errNonLinux } type PerfEventMmapPage struct { @@ -210,15 +214,15 @@ type PerfEventMmapPage struct { } func SetNonblock(fd int, nonblocking bool) (err error) { - return errNonLinux() + return errNonLinux } func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) { - return []byte{}, errNonLinux() + return []byte{}, errNonLinux } func Munmap(b []byte) (err error) { - return errNonLinux() + return errNonLinux } type PerfEventAttr struct { @@ -243,7 +247,7 @@ type PerfEventAttr struct { } func PerfEventOpen(attr *PerfEventAttr, pid int, cpu int, groupFd int, flags int) (fd int, err error) { - return 0, errNonLinux() + return 0, errNonLinux } type Utsname struct { @@ -252,7 +256,7 @@ type Utsname struct { } func Uname(buf *Utsname) (err error) { - return errNonLinux() + return errNonLinux } func Getpid() int { @@ -264,27 +268,35 @@ func Gettid() int { } func Tgkill(tgid int, tid int, sig syscall.Signal) (err error) { - return errNonLinux() + return errNonLinux +} + +func BytePtrFromString(s string) (*byte, error) { + return nil, errNonLinux +} + +func ByteSliceToString(s []byte) string { + return "" } func Renameat2(olddirfd int, oldpath string, newdirfd int, newpath string, flags uint) error { - return errNonLinux() + return errNonLinux } func Prlimit(pid, resource int, new, old *Rlimit) error { - return errNonLinux() + return errNonLinux } func Open(path string, mode int, perm uint32) (int, error) { - return -1, errNonLinux() + return -1, errNonLinux } func Fstat(fd int, stat *Stat_t) error { - return errNonLinux() + return errNonLinux } func SetsockoptInt(fd, level, opt, value int) error { - return errNonLinux() + return errNonLinux } type CPUSet struct{} @@ -292,9 +304,9 @@ type CPUSet struct{} func (*CPUSet) Set(int) {} func SchedSetaffinity(pid int, set *CPUSet) error { - return errNonLinux() + return errNonLinux } func SchedGetaffinity(pid int, set *CPUSet) error { - return errNonLinux() + return errNonLinux } diff --git a/backend/vendor/github.com/cilium/ebpf/link/kprobe_multi.go b/backend/vendor/github.com/cilium/ebpf/link/kprobe_multi.go index f19f9f4c7..094cb0538 100644 --- a/backend/vendor/github.com/cilium/ebpf/link/kprobe_multi.go +++ b/backend/vendor/github.com/cilium/ebpf/link/kprobe_multi.go @@ -37,14 +37,6 @@ type KprobeMultiOptions struct { // Each Cookie is assigned to the Symbol or Address specified at the // corresponding slice index. Cookies []uint64 - - // Session must be true when attaching Programs with the - // [ebpf.AttachTraceKprobeSession] attach type. - // - // This makes a Kprobe execute on both function entry and return. The entry - // program can share a cookie value with the return program and can decide - // whether the return program gets executed. - Session bool } // KprobeMulti attaches the given eBPF program to the entry point of a given set @@ -90,14 +82,9 @@ func kprobeMulti(prog *ebpf.Program, opts KprobeMultiOptions, flags uint32) (Lin return nil, fmt.Errorf("Cookies must be exactly Symbols or Addresses in length: %w", errInvalidInput) } - attachType := sys.BPF_TRACE_KPROBE_MULTI - if opts.Session { - attachType = sys.BPF_TRACE_KPROBE_SESSION - } - attr := &sys.LinkCreateKprobeMultiAttr{ ProgFd: uint32(prog.FD()), - AttachType: attachType, + AttachType: sys.BPF_TRACE_KPROBE_MULTI, KprobeMultiFlags: flags, } @@ -116,31 +103,21 @@ func kprobeMulti(prog *ebpf.Program, opts KprobeMultiOptions, flags uint32) (Lin } fd, err := sys.LinkCreateKprobeMulti(attr) - if err == nil { - return &kprobeMultiLink{RawLink{fd, ""}}, nil - } - if errors.Is(err, unix.ESRCH) { return nil, fmt.Errorf("couldn't find one or more symbols: %w", os.ErrNotExist) } + if errors.Is(err, unix.EINVAL) { + return nil, fmt.Errorf("%w (missing kernel symbol or prog's AttachType not AttachTraceKprobeMulti?)", err) + } - if opts.Session { - if haveFeatErr := haveBPFLinkKprobeSession(); haveFeatErr != nil { - return nil, haveFeatErr - } - } else { + if err != nil { if haveFeatErr := haveBPFLinkKprobeMulti(); haveFeatErr != nil { return nil, haveFeatErr } + return nil, err } - // Check EINVAL after running feature probes, since it's also returned when - // the kernel doesn't support the multi/session attach types. - if errors.Is(err, unix.EINVAL) { - return nil, fmt.Errorf("%w (missing kernel symbol or prog's AttachType not %s?)", err, ebpf.AttachType(attachType)) - } - - return nil, err + return &kprobeMultiLink{RawLink{fd, ""}}, nil } type kprobeMultiLink struct { @@ -212,44 +189,3 @@ var haveBPFLinkKprobeMulti = internal.NewFeatureTest("bpf_link_kprobe_multi", fu return nil }, "5.18") - -var haveBPFLinkKprobeSession = internal.NewFeatureTest("bpf_link_kprobe_session", func() error { - prog, err := ebpf.NewProgram(&ebpf.ProgramSpec{ - Name: "probe_kps_link", - Type: ebpf.Kprobe, - Instructions: asm.Instructions{ - asm.Mov.Imm(asm.R0, 0), - asm.Return(), - }, - AttachType: ebpf.AttachTraceKprobeSession, - License: "MIT", - }) - if errors.Is(err, unix.E2BIG) { - // Kernel doesn't support AttachType field. - return internal.ErrNotSupported - } - if err != nil { - return err - } - defer prog.Close() - - fd, err := sys.LinkCreateKprobeMulti(&sys.LinkCreateKprobeMultiAttr{ - ProgFd: uint32(prog.FD()), - AttachType: sys.BPF_TRACE_KPROBE_SESSION, - Count: 1, - Syms: sys.NewStringSlicePointer([]string{"vprintk"}), - }) - switch { - case errors.Is(err, unix.EINVAL): - return internal.ErrNotSupported - // If CONFIG_FPROBE isn't set. - case errors.Is(err, unix.EOPNOTSUPP): - return internal.ErrNotSupported - case err != nil: - return err - } - - fd.Close() - - return nil -}, "6.10") diff --git a/backend/vendor/github.com/cilium/ebpf/linker.go b/backend/vendor/github.com/cilium/ebpf/linker.go index 024b72bbc..6f97af278 100644 --- a/backend/vendor/github.com/cilium/ebpf/linker.go +++ b/backend/vendor/github.com/cilium/ebpf/linker.go @@ -207,19 +207,13 @@ func flattenPrograms(progs map[string]*ProgramSpec, names []string) { // dependencies of each program. func flattenInstructions(name string, progs map[string]*ProgramSpec, refs map[*ProgramSpec][]string) asm.Instructions { prog := progs[name] - progRefs := refs[prog] - - if len(progRefs) == 0 { - // No references, nothing to do. - return prog.Instructions - } insns := make(asm.Instructions, len(prog.Instructions)) copy(insns, prog.Instructions) // Add all direct references of prog to the list of to be linked programs. - pending := make([]string, len(progRefs)) - copy(pending, progRefs) + pending := make([]string, len(refs[prog])) + copy(pending, refs[prog]) // All references for which we've appended instructions. linked := make(map[string]bool) diff --git a/backend/vendor/github.com/cilium/ebpf/prog.go b/backend/vendor/github.com/cilium/ebpf/prog.go index 8fcae6a3f..4f3ce43bf 100644 --- a/backend/vendor/github.com/cilium/ebpf/prog.go +++ b/backend/vendor/github.com/cilium/ebpf/prog.go @@ -169,7 +169,7 @@ func (ps *ProgramSpec) Tag() (string, error) { // ProgramSpec.AttachTo, if any. Returns an empty string if the symbol is not // present or not part of a kernel module. func (ps *ProgramSpec) kernelModule() (string, error) { - if ps.targetsKernelModule() { + if ps.AttachTo == "" && ps.targetsKernelModule() { return kallsyms.Module(ps.AttachTo) } diff --git a/backend/vendor/github.com/cilium/ebpf/types.go b/backend/vendor/github.com/cilium/ebpf/types.go index d7fb00509..211b308bb 100644 --- a/backend/vendor/github.com/cilium/ebpf/types.go +++ b/backend/vendor/github.com/cilium/ebpf/types.go @@ -236,7 +236,6 @@ const ( AttachSkReuseportSelectOrMigrate = AttachType(sys.BPF_SK_REUSEPORT_SELECT_OR_MIGRATE) AttachPerfEvent = AttachType(sys.BPF_PERF_EVENT) AttachTraceKprobeMulti = AttachType(sys.BPF_TRACE_KPROBE_MULTI) - AttachTraceKprobeSession = AttachType(sys.BPF_TRACE_KPROBE_SESSION) AttachLSMCgroup = AttachType(sys.BPF_LSM_CGROUP) AttachStructOps = AttachType(sys.BPF_STRUCT_OPS) AttachNetfilter = AttachType(sys.BPF_NETFILTER) diff --git a/backend/vendor/github.com/cilium/hive/hive.go b/backend/vendor/github.com/cilium/hive/hive.go index 7760ec8ad..bb2795df1 100644 --- a/backend/vendor/github.com/cilium/hive/hive.go +++ b/backend/vendor/github.com/cilium/hive/hive.go @@ -339,9 +339,9 @@ func (h *Hive) Start(log *slog.Logger, ctx context.Context) error { start := time.Now() err := h.lifecycle.Start(log, ctx) if err == nil { - log.Info("Started", "duration", time.Since(start)) + log.Info("Started hive", "duration", time.Since(start)) } else { - log.Error("Start failed", "error", err, "duration", time.Since(start)) + log.Error("Failed to start hive", "error", err, "duration", time.Since(start)) } return err } @@ -351,7 +351,7 @@ func (h *Hive) Start(log *slog.Logger, ctx context.Context) error { // then after 5 more seconds the process will be terminated forcefully. func (h *Hive) Stop(log *slog.Logger, ctx context.Context) error { defer close(h.fatalOnTimeout(ctx)) - log.Info("Stopping") + log.Info("Stopping hive") return h.lifecycle.Stop(log, ctx) } diff --git a/backend/vendor/github.com/cilium/hive/job/job.go b/backend/vendor/github.com/cilium/hive/job/job.go new file mode 100644 index 000000000..1bcd751ce --- /dev/null +++ b/backend/vendor/github.com/cilium/hive/job/job.go @@ -0,0 +1,265 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package job + +import ( + "context" + "crypto/sha256" + "fmt" + "log/slog" + "runtime/pprof" + "sync" + + "github.com/cilium/hive" + "github.com/cilium/hive/cell" +) + +// Cell provides job.Registry which constructs job.Group's. Job groups automate a lot of the logic involved with +// lifecycle management of goroutines within a Hive Cell. Providing a context that is canceled on shutdown and making +// sure multiple goroutines properly shutdown takes a lot of boilerplate. Job groups make it easy to queue, spawn, and +// collect jobs with minimal boilerplate. The registry maintains references to all groups which will allow us to add +// automatic metrics collection and/or status reporting in the future. +var Cell = cell.Module( + "jobs", + "Managed background goroutines and timers", + cell.Provide( + newRegistry, + ), +) + +// A Registry creates Groups, it maintains references to these groups for the purposes of collecting information +// centralized like metrics. +type Registry interface { + // NewGroup creates a new group of jobs which can be started and stopped together as part of the cells lifecycle. + // The provided scope is used to report health status of the jobs. A `cell.Scope` can be obtained via injection + // an object with the correct scope is provided by the closest `cell.Module`. + NewGroup(health cell.Health, opts ...groupOpt) Group +} + +type registry struct { + logger *slog.Logger + shutdowner hive.Shutdowner + + mu sync.Mutex + groups []Group +} + +func newRegistry( + logger *slog.Logger, + shutdowner hive.Shutdowner, +) Registry { + return ®istry{ + logger: logger, + shutdowner: shutdowner, + } +} + +// NewGroup creates a new Group with the given `opts` options, which allows you to customize the behavior for the +// group as a whole. For example by allowing you to add pprof labels to the group or by customizing the logger. +func (c *registry) NewGroup(health cell.Health, opts ...groupOpt) Group { + c.mu.Lock() + defer c.mu.Unlock() + + var options options + options.logger = c.logger + options.shutdowner = c.shutdowner + + for _, opt := range opts { + opt(&options) + } + + g := &group{ + options: options, + wg: &sync.WaitGroup{}, + health: health, + } + + c.groups = append(c.groups, g) + + return g +} + +// Group aims to streamline the management of work within a cell. Group implements cell.HookInterface and takes care +// of proper start and stop behavior as expected by hive. A group allows you to add multiple types of jobs which +// different kinds of logic. No matter the job type, the function provided to is always called with a context which +// is bound to the lifecycle of the cell. +type Group interface { + // Add append the job. If the group has not yet been started the job is queued, otherwise it is started + // immediately. + Add(...Job) + + // Scoped creates a scoped group, jobs added to this scoped group will appear as a sub-scope in the health reporter + Scoped(name string) ScopedGroup + + // HookInterface is implemented to Start and Stop the jobs in the group. + cell.HookInterface +} + +// Job in an interface that describes a unit of work which can be added to a Group. This interface contains unexported +// methods and thus can only be implemented by functions in this package such as OneShot, Timer, or Observer. +type Job interface { + start(ctx context.Context, wg *sync.WaitGroup, health cell.Health, options options) +} + +type group struct { + options options + + wg *sync.WaitGroup + + mu sync.Mutex + ctx context.Context + cancel context.CancelFunc + queuedJobs []Job + + health cell.Health +} + +type options struct { + pprofLabels pprof.LabelSet + logger *slog.Logger + shutdowner hive.Shutdowner + metrics Metrics +} + +type groupOpt func(o *options) + +// WithLogger replaces the default logger with the given logger, useful if you want to add certain fields to the logs +// created by the group/jobs. +func WithLogger(logger *slog.Logger) groupOpt { + return func(o *options) { + o.logger = logger + } +} + +// WithPprofLabels adds pprof labels which will be added to the goroutines spawned for the jobs and thus included in +// the pprof profiles. +func WithPprofLabels(pprofLabels pprof.LabelSet) groupOpt { + return func(o *options) { + o.pprofLabels = pprofLabels + } +} + +func WithMetrics(metrics Metrics) groupOpt { + return func(o *options) { + o.metrics = metrics + } +} + +var _ cell.HookInterface = (*group)(nil) + +// Start implements the cell.HookInterface interface +func (jg *group) Start(_ cell.HookContext) error { + jg.mu.Lock() + defer jg.mu.Unlock() + + jg.ctx, jg.cancel = context.WithCancel(context.Background()) + + jg.wg.Add(len(jg.queuedJobs)) + for _, job := range jg.queuedJobs { + pprof.Do(jg.ctx, jg.options.pprofLabels, func(ctx context.Context) { + go job.start(ctx, jg.wg, jg.health, jg.options) + }) + } + // Nil the queue once we start so it can be GC'ed + jg.queuedJobs = nil + + return nil +} + +// Stop implements the cell.HookInterface interface +func (jg *group) Stop(stopCtx cell.HookContext) error { + jg.mu.Lock() + defer jg.mu.Unlock() + + done := make(chan struct{}) + go func() { + jg.wg.Wait() + close(done) + }() + + jg.cancel() + + select { + case <-stopCtx.Done(): + jg.options.logger.Error("Stop hook context expired before job group was done") + case <-done: + } + + return nil +} + +func (jg *group) Add(jobs ...Job) { + jg.add(jg.health, jobs...) +} + +func (jg *group) add(health cell.Health, jobs ...Job) { + jg.mu.Lock() + defer jg.mu.Unlock() + + // The context is only set once the group has been started. If we have not yet started, queue the jobs. + if jg.ctx == nil { + jg.queuedJobs = append(jg.queuedJobs, jobs...) + return + } + + for _, j := range jobs { + jg.wg.Add(1) + pprof.Do(jg.ctx, jg.options.pprofLabels, func(ctx context.Context) { + go j.start(ctx, jg.wg, health, jg.options) + }) + } +} + +// Scoped creates a scoped group, jobs added to this scoped group will appear as a sub-scope in the health reporter +func (jg *group) Scoped(name string) ScopedGroup { + return &scopedGroup{ + group: jg, + health: jg.health.NewScope(name), + } +} + +type ScopedGroup interface { + Add(jobs ...Job) +} + +type scopedGroup struct { + group *group + health cell.Health +} + +func (sg *scopedGroup) Add(jobs ...Job) { + sg.group.add(sg.health, jobs...) +} + +const maxNameLength = 100 + +func sanitizeName(name string) string { + mangled := false + newLength := min(maxNameLength, len(name)) + runes := make([]rune, 0, newLength) + for _, r := range name[:newLength] { + switch { + case r >= 'a' && r <= 'z': + fallthrough + case r >= 'A' && r <= 'Z': + fallthrough + case r >= '0' && r <= '9': + fallthrough + case r == '-' || r == '_': + runes = append(runes, r) + default: + // Skip invalid characters. + mangled = true + } + } + if mangled || len(name) > maxNameLength { + // Name was mangled or is too long, truncate and append hash. + const hashLen = 10 + hash := fmt.Sprintf("%x", sha256.Sum256([]byte(name))) + newLen := min(maxNameLength-hashLen, len(runes)) + runes = runes[:newLen] + return string(runes) + "-" + hash[:hashLen] + } + return string(runes) +} diff --git a/backend/vendor/github.com/cilium/hive/job/metrics.go b/backend/vendor/github.com/cilium/hive/job/metrics.go new file mode 100644 index 000000000..103de7294 --- /dev/null +++ b/backend/vendor/github.com/cilium/hive/job/metrics.go @@ -0,0 +1,35 @@ +package job + +import "time" + +type Metrics interface { + JobError(name string, err error) + OneShotRunDuration(name string, duration time.Duration) + TimerRunDuration(name string, duration time.Duration) + TimerTriggerStats(name string, latency time.Duration, folds int) + ObserverRunDuration(name string, duration time.Duration) +} + +type NopMetrics struct{} + +// JobError implements Metrics. +func (NopMetrics) JobError(name string, err error) { +} + +// ObserverRunDuration implements Metrics. +func (NopMetrics) ObserverRunDuration(name string, duration time.Duration) { +} + +// OneShotRunDuration implements Metrics. +func (NopMetrics) OneShotRunDuration(name string, duration time.Duration) { +} + +// TimerRunDuration implements Metrics. +func (NopMetrics) TimerRunDuration(name string, duration time.Duration) { +} + +// TimerTriggerStats implements Metrics. +func (NopMetrics) TimerTriggerStats(name string, latency time.Duration, folds int) { +} + +var _ Metrics = NopMetrics{} diff --git a/backend/vendor/github.com/cilium/hive/job/observer.go b/backend/vendor/github.com/cilium/hive/job/observer.go new file mode 100644 index 000000000..aa29f5704 --- /dev/null +++ b/backend/vendor/github.com/cilium/hive/job/observer.go @@ -0,0 +1,129 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package job + +import ( + "context" + "errors" + "strconv" + "sync" + "time" + + "github.com/cilium/stream" + + "github.com/cilium/hive" + "github.com/cilium/hive/cell" + "github.com/cilium/hive/internal" +) + +// Observer jobs invoke the given `fn` for each item observed on `observable`. +// The Observer name must match regex "^[a-zA-Z][a-zA-Z0-9_\-]{0,100}$". If the `observable` completes, the job stops. +// The context given to the observable is also canceled once the group stops. +func Observer[T any](name string, fn ObserverFunc[T], observable stream.Observable[T], opts ...observerOpt[T]) Job { + name = sanitizeName(name) + if fn == nil { + panic("`fn` must not be nil") + } + + job := &jobObserver[T]{ + name: name, + fn: fn, + observable: observable, + opts: opts, + } + + return job +} + +// ObserverFunc is the func type invoked by observer jobs. +// A ObserverFunc is expected to return as soon as ctx is canceled. +type ObserverFunc[T any] func(ctx context.Context, event T) error + +type observerOpt[T any] func(*jobObserver[T]) + +type jobObserver[T any] struct { + name string + fn ObserverFunc[T] + opts []observerOpt[T] + + health cell.Health + + observable stream.Observable[T] + + // If not nil, call the shutdowner on error + shutdown hive.Shutdowner +} + +func (jo *jobObserver[T]) start(ctx context.Context, wg *sync.WaitGroup, health cell.Health, options options) { + defer wg.Done() + + for _, opt := range jo.opts { + opt(jo) + } + + jo.health = health.NewScope("observer-job-" + jo.name) + reportTicker := time.NewTicker(10 * time.Second) + defer reportTicker.Stop() + + l := options.logger.With( + "name", jo.name, + "func", internal.FuncNameAndLocation(jo.fn)) + + l.Debug("Observer job started") + jo.health.OK("Primed") + var msgCount uint64 + + done := make(chan struct{}) + + var err error + jo.observable.Observe(ctx, func(t T) { + start := time.Now() + err := jo.fn(ctx, t) + duration := time.Since(start) + + if options.metrics != nil { + options.metrics.ObserverRunDuration(jo.name, duration) + } + + if err != nil { + if errors.Is(err, context.Canceled) { + return + } + + jo.health.Degraded("observer job errored", err) + l.Error("Observer job errored", "error", err) + + if options.metrics != nil { + options.metrics.JobError(jo.name, err) + } + if jo.shutdown != nil { + jo.shutdown.Shutdown(hive.ShutdownWithError( + err, + )) + } + return + } + + msgCount++ + + // Don't report health for every event, only when we have not done so for a bit + select { + case <-reportTicker.C: + jo.health.OK("OK (" + duration.String() + ") [" + strconv.FormatUint(msgCount, 10) + "]") + default: + } + }, func(e error) { + err = e + close(done) + }) + + <-done + + jo.health.Stopped("observer job done") + if err != nil && !errors.Is(err, context.Canceled) { + l.Error("Observer job stopped with an error", "error", err) + } else { + l.Debug("Observer job stopped") + } +} diff --git a/backend/vendor/github.com/cilium/hive/job/oneshot.go b/backend/vendor/github.com/cilium/hive/job/oneshot.go new file mode 100644 index 000000000..959bbe85b --- /dev/null +++ b/backend/vendor/github.com/cilium/hive/job/oneshot.go @@ -0,0 +1,159 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package job + +import ( + "context" + "errors" + "sync" + "time" + + "github.com/cilium/hive" + "github.com/cilium/hive/cell" + "github.com/cilium/hive/internal" +) + +// OneShot creates a "one shot" job which can be added to a Group. +// The OneShot job name must match regex "^[a-zA-Z][a-zA-Z0-9_\-]{0,100}$". The function passed is invoked once at startup. +// It can live for the entire lifetime of the group or exit early depending on its task. +// If it returns an error, it can optionally be retried if the WithRetry option. If retries are not configured or +// all retries failed as well, a shutdown of the hive can be triggered by specifying the WithShutdown option. +// +// The given function is expected to exit as soon as the context given to it expires, this is especially important for +// blocking or long running jobs. +func OneShot(name string, fn OneShotFunc, opts ...jobOneShotOpt) Job { + name = sanitizeName(name) + if fn == nil { + panic("`fn` must not be nil") + } + + job := &jobOneShot{ + name: name, + fn: fn, + opts: opts, + } + + return job +} + +type jobOneShotOpt func(*jobOneShot) + +type RetryBackoff interface { + Wait() time.Duration +} + +type ConstantBackoff time.Duration + +func (d ConstantBackoff) Wait() time.Duration { + return time.Duration(d) +} + +type ExponentialBackoff struct { + Min time.Duration + Max time.Duration + current time.Duration +} + +func (e *ExponentialBackoff) Wait() time.Duration { + if e.current == 0 { + e.current = e.Min + } else { + e.current *= 2 + if e.current > e.Max { + e.current = e.Max + } + } + return e.current +} + +// WithRetry option configures a one shot job to retry `times` amount of times. On each retry attempt the +// rate limiter is waited upon before making another attempt. +// If `times` is <0, then the job is retried forever. +func WithRetry(times int, backoff RetryBackoff) jobOneShotOpt { + return func(jos *jobOneShot) { + jos.retry = times + jos.backoff = backoff + } +} + +// WithShutdown option configures a one shot job to shutdown the whole hive if the job returns an error. If the +// WithRetry option is also configured, all retries must be exhausted before we trigger the shutdown. +func WithShutdown() jobOneShotOpt { + return func(jos *jobOneShot) { + jos.shutdownOnError = true + } +} + +// OneShotFunc is the function type which is invoked by a one shot job. The given function is expected to exit as soon +// as the context given to it expires, this is especially important for blocking or long running jobs. +type OneShotFunc func(ctx context.Context, health cell.Health) error + +type jobOneShot struct { + name string + fn OneShotFunc + opts []jobOneShotOpt + + health cell.Health + + // If retry > 0, retry on error x times. + retry int + backoff RetryBackoff + shutdownOnError bool +} + +func (jos *jobOneShot) start(ctx context.Context, wg *sync.WaitGroup, health cell.Health, options options) { + defer wg.Done() + + for _, opt := range jos.opts { + opt(jos) + } + + jos.health = health.NewScope("job-" + jos.name) + defer jos.health.Stopped("one-shot job done") + + l := options.logger.With( + "name", jos.name, + "func", internal.FuncNameAndLocation(jos.fn)) + + var err error + for i := 0; jos.retry < 0 || i <= jos.retry; i++ { + if i != 0 { + timeout := jos.backoff.Wait() + options.logger.Debug("Delaying retry attempt", + "backoff", timeout, + "retry-count", i, + ) + select { + case <-ctx.Done(): + return + case <-time.After(timeout): + } + } + + l.Debug("Starting one-shot job") + + jos.health.OK("Running") + start := time.Now() + err = jos.fn(ctx, jos.health) + + if options.metrics != nil { + duration := time.Since(start) + options.metrics.OneShotRunDuration(jos.name, duration) + } + + if err == nil { + return + } else if !errors.Is(err, context.Canceled) { + jos.health.Degraded("one-shot job errored", err) + l.Error("one-shot job errored", "error", err) + if options.metrics != nil { + options.metrics.JobError(jos.name, err) + } + } + } + + if options.shutdowner != nil && jos.shutdownOnError { + options.shutdowner.Shutdown(hive.ShutdownWithError(err)) + } +} diff --git a/backend/vendor/github.com/cilium/hive/job/timer.go b/backend/vendor/github.com/cilium/hive/job/timer.go new file mode 100644 index 000000000..4fe37f070 --- /dev/null +++ b/backend/vendor/github.com/cilium/hive/job/timer.go @@ -0,0 +1,219 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package job + +import ( + "context" + "errors" + "sync" + "time" + + "github.com/cilium/hive" + "github.com/cilium/hive/cell" + "github.com/cilium/hive/internal" +) + +// Timer creates a timer job which can be added to a Group. +// The Timer job name must match regex "^[a-zA-Z][a-zA-Z0-9_\-]{0,100}$". The function passed is invoked at the specified interval. +// Timer jobs are particularly useful to implement periodic syncs and cleanup actions. +// Timer jobs can optionally be triggered by an external Trigger with the WithTrigger option. +// This trigger can for example be passed between cells or between jobs in the same cell to allow for an additional +// invocation of the function. +// +// The interval between invocations is counted from the start of the last invocation. If the `fn` takes longer than the +// interval, its next invocation is not delayed. The `fn` is expected to stop as soon as the context passed to it +// expires. This is especially important for long running functions. The signal created by a Trigger is coalesced so +// multiple calls to trigger before the invocation takes place can result in just a single invocation. +func Timer(name string, fn TimerFunc, interval time.Duration, opts ...timerOpt) Job { + name = sanitizeName(name) + if fn == nil { + panic("`fn` must not be nil") + } + + job := &jobTimer{ + name: name, + fn: fn, + interval: interval, + opts: opts, + } + + return job +} + +// TimerFunc is the func type invoked by a timer job. A TimerFunc is expected to return as soon as the ctx expires. +type TimerFunc func(ctx context.Context) error + +type timerOpt func(*jobTimer) + +// Trigger which can be used to trigger a timer job, trigger events are coalesced. +type Trigger interface { + _trigger() + Trigger() +} + +// NewTrigger creates a new trigger, which can be used to trigger a timer job. +func NewTrigger(opts ...triggerOpt) *trigger { + t := &trigger{ + c: make(chan struct{}, 1), + } + for _, opt := range opts { + opt(t) + } + return t +} + +// WithDebounce allows to specify an interval over with multiple trigger requests will be folded into one. +func WithDebounce(interval time.Duration) triggerOpt { + return func(t *trigger) { + t.debounce = interval + } +} + +type trigger struct { + debounce time.Duration + + mu sync.Mutex + c chan struct{} + lastTriggered time.Time + folds int + waitStart time.Time +} + +func (t *trigger) _trigger() {} + +func (t *trigger) Trigger() { + t.mu.Lock() + defer t.mu.Unlock() + + if t.folds == 0 { + t.waitStart = time.Now() + } + t.folds++ + + if t.debounce > 0 && time.Since(t.lastTriggered) < t.debounce { + return + } + + select { + case t.c <- struct{}{}: + default: + } +} + +func (t *trigger) markTriggered(name string, metrics Metrics) { + t.mu.Lock() + defer t.mu.Unlock() + + t.lastTriggered = time.Now() + if metrics != nil { + metrics.TimerTriggerStats(name, t.lastTriggered.Sub(t.waitStart), t.folds) + } + t.folds = 0 + + // discard a possibly enqueued trigger notification. + // This is needed when a notification is already enqueued in the channel (and thus has already passed the debounce check) + // but the fair scheduling receives from the ticker channel. + select { + case <-t.c: + default: + } +} + +type triggerOpt func(t *trigger) + +// WithTrigger option allows a user to specify a trigger, which if triggered will invoke the function of a timer +// before the configured interval has expired. +func WithTrigger(trig Trigger) timerOpt { + return func(jt *jobTimer) { + jt.trigger = trig.(*trigger) + } +} + +type jobTimer struct { + name string + fn TimerFunc + opts []timerOpt + + health cell.Health + + interval time.Duration + trigger *trigger + + // If not nil, call the shutdowner on error + shutdown hive.Shutdowner +} + +func (jt *jobTimer) start(ctx context.Context, wg *sync.WaitGroup, health cell.Health, options options) { + defer wg.Done() + + for _, opt := range jt.opts { + opt(jt) + } + + jt.health = health.NewScope("timer-job-" + jt.name) + + l := options.logger.With( + "name", jt.name, + "func", internal.FuncNameAndLocation(jt.fn)) + + var tickerChan <-chan time.Time + if jt.interval > 0 { + ticker := time.NewTicker(jt.interval) + defer ticker.Stop() + tickerChan = ticker.C + } + + var triggerChan chan struct{} + if jt.trigger != nil { + triggerChan = jt.trigger.c + } + + l.Debug("Starting timer job") + jt.health.OK("Primed") + + for { + select { + case <-ctx.Done(): + jt.health.Stopped("timer job context done") + return + case <-tickerChan: + case <-triggerChan: + } + + l.Debug("Timer job triggered") + + if jt.trigger != nil { + jt.trigger.markTriggered(jt.name, options.metrics) + } + + start := time.Now() + err := jt.fn(ctx) + duration := time.Since(start) + + if options.metrics != nil { + options.metrics.TimerRunDuration(jt.name, duration) + } + + if err == nil { + jt.health.OK("OK (" + duration.String() + ")") + l.Debug("Timer job finished") + } else if !errors.Is(err, context.Canceled) { + jt.health.Degraded("timer job errored", err) + l.Error("Timer job errored", "error", err) + + if options.metrics != nil { + options.metrics.JobError(jt.name, err) + } + if jt.shutdown != nil { + jt.shutdown.Shutdown(hive.ShutdownWithError(err)) + } + } + + // If we exited due to the ctx closing we do not guaranteed return. + // The select can pick the timer or trigger signals over ctx.Done due to fair scheduling, so this guarantees it. + if ctx.Err() != nil { + return + } + } +} diff --git a/backend/vendor/github.com/cilium/statedb/LICENSE b/backend/vendor/github.com/cilium/statedb/LICENSE new file mode 100644 index 000000000..a2e486a80 --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/LICENSE @@ -0,0 +1,202 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} Authors of Cilium + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + diff --git a/backend/vendor/github.com/cilium/statedb/index/bool.go b/backend/vendor/github.com/cilium/statedb/index/bool.go new file mode 100644 index 000000000..8e3737154 --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/index/bool.go @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package index + +import "strconv" + +var ( + trueKey = []byte{'T'} + falseKey = []byte{'F'} +) + +func Bool(b bool) Key { + if b { + return trueKey + } + return falseKey +} + +func BoolString(s string) (Key, error) { + b, err := strconv.ParseBool(s) + return Bool(b), err +} diff --git a/backend/vendor/github.com/cilium/statedb/index/int.go b/backend/vendor/github.com/cilium/statedb/index/int.go new file mode 100644 index 000000000..caf26d8a8 --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/index/int.go @@ -0,0 +1,97 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package index + +import ( + "encoding/binary" + "strconv" +) + +// The indexing functions on integers should use big-endian encoding. +// This allows prefix searching on integers as the most significant +// byte is first. +// For example to find 16-bit key larger than 260 (0x0104) from 3 (0x0003) +// and 270 (0x0109) +// 00 (3) < 01 (260) => skip, +// 01 (270) >= 01 (260) => 09 > 04 => found! + +func Int(n int) Key { + return Int32(int32(n)) +} + +func IntString(s string) (Key, error) { + return Int32String(s) +} + +func Int64(n int64) Key { + return Uint64(uint64(n)) +} + +func Int64String(s string) (Key, error) { + n, err := strconv.ParseInt(s, 10, 64) + if err != nil { + return Key{}, err + } + return Uint64(uint64(n)), nil +} + +func Int32(n int32) Key { + return Uint32(uint32(n)) +} + +func Int32String(s string) (Key, error) { + n, err := strconv.ParseInt(s, 10, 32) + if err != nil { + return Key{}, err + } + return Uint32(uint32(n)), nil +} + +func Int16(n int16) Key { + return Uint16(uint16(n)) +} + +func Int16String(s string) (Key, error) { + n, err := strconv.ParseInt(s, 10, 16) + if err != nil { + return Key{}, err + } + return Uint16(uint16(n)), nil +} + +func Uint64(n uint64) Key { + return binary.BigEndian.AppendUint64(nil, n) +} + +func Uint64String(s string) (Key, error) { + n, err := strconv.ParseUint(s, 10, 64) + if err != nil { + return Key{}, err + } + return Uint64(n), nil +} + +func Uint32(n uint32) Key { + return binary.BigEndian.AppendUint32(nil, n) +} + +func Uint32String(s string) (Key, error) { + n, err := strconv.ParseUint(s, 10, 32) + if err != nil { + return Key{}, err + } + return Uint32(uint32(n)), nil +} + +func Uint16(n uint16) Key { + return binary.BigEndian.AppendUint16(nil, n) +} + +func Uint16String(s string) (Key, error) { + n, err := strconv.ParseUint(s, 10, 16) + if err != nil { + return Key{}, err + } + return Uint16(uint16(n)), nil +} diff --git a/backend/vendor/github.com/cilium/statedb/index/keyset.go b/backend/vendor/github.com/cilium/statedb/index/keyset.go new file mode 100644 index 000000000..b9dd90f62 --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/index/keyset.go @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package index + +import ( + "bytes" +) + +// Key is a byte slice describing a key used in an index by statedb. +type Key []byte + +func (k Key) Equal(k2 Key) bool { + return bytes.Equal(k, k2) +} + +type KeySet struct { + head Key + tail []Key +} + +func (ks KeySet) First() Key { + return ks.head +} + +func (ks KeySet) Foreach(fn func(Key)) { + if ks.head == nil { + return + } + fn(ks.head) + for _, k := range ks.tail { + fn(k) + } +} + +func (ks KeySet) Exists(k Key) bool { + if ks.head.Equal(k) { + return true + } + for _, k2 := range ks.tail { + if k2.Equal(k) { + return true + } + } + return false +} + +func NewKeySet(keys ...Key) KeySet { + if len(keys) == 0 { + return KeySet{} + } + return KeySet{keys[0], keys[1:]} +} diff --git a/backend/vendor/github.com/cilium/statedb/index/map.go b/backend/vendor/github.com/cilium/statedb/index/map.go new file mode 100644 index 000000000..8ea6548ae --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/index/map.go @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package index + +func StringMap[V any](m map[string]V) KeySet { + keys := make([]Key, 0, len(m)) + for k := range m { + keys = append(keys, String(k)) + } + return NewKeySet(keys...) +} diff --git a/backend/vendor/github.com/cilium/statedb/index/netip.go b/backend/vendor/github.com/cilium/statedb/index/netip.go new file mode 100644 index 000000000..7a95f6346 --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/index/netip.go @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package index + +import ( + "bytes" + "net" + "net/netip" +) + +func NetIP(ip net.IP) Key { + // Use the 16-byte form to have a constant-size key. + return bytes.Clone(ip.To16()) +} + +func NetIPAddr(addr netip.Addr) Key { + // Use the 16-byte form to have a constant-size key. + buf := addr.As16() + return buf[:] +} + +func NetIPAddrString(s string) (Key, error) { + addr, err := netip.ParseAddr(s) + if err != nil { + return Key{}, err + } + return NetIPAddr(addr), nil +} + +func NetIPPrefix(prefix netip.Prefix) Key { + // Use the 16-byte form plus bits to have a constant-size key. + addrBytes := prefix.Addr().As16() + return append(addrBytes[:], uint8(prefix.Bits())) +} + +func NetIPPrefixString(s string) (Key, error) { + prefix, err := netip.ParsePrefix(s) + if err != nil { + return Key{}, err + } + return NetIPPrefix(prefix), nil +} diff --git a/backend/vendor/github.com/cilium/statedb/index/seq.go b/backend/vendor/github.com/cilium/statedb/index/seq.go new file mode 100644 index 000000000..d7063ba2f --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/index/seq.go @@ -0,0 +1,38 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package index + +import "iter" + +// Seq creates a KeySet from an iter.Seq[T] with the given indexing function. +// Example usage: +// +// var strings iter.Seq[string] +// keys := Seq[string](index.String, strings) +func Seq[T any]( + toKey func(T) Key, + seq iter.Seq[T], +) KeySet { + keys := []Key{} + for v := range seq { + keys = append(keys, toKey(v)) + } + return NewKeySet(keys...) +} + +// Seq2 creates a KeySet from an iter.Seq2[A,B] with the given indexing function. +// Example usage: +// +// var seq iter.Seq2[string, int] +// keys := Seq2(index.String, seq) +func Seq2[A, B any]( + toKey func(A) Key, + seq iter.Seq2[A, B], +) KeySet { + keys := []Key{} + for a := range seq { + keys = append(keys, toKey(a)) + } + return NewKeySet(keys...) +} diff --git a/backend/vendor/github.com/cilium/statedb/index/set.go b/backend/vendor/github.com/cilium/statedb/index/set.go new file mode 100644 index 000000000..ae90bab82 --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/index/set.go @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package index + +import "github.com/cilium/statedb/part" + +// Set creates a KeySet from a part.Set. +func Set[T any](s part.Set[T]) KeySet { + toBytes := s.ToBytesFunc() + switch s.Len() { + case 0: + return NewKeySet() + case 1: + for v := range s.All() { + return NewKeySet(toBytes(v)) + } + panic("BUG: Set.Len() == 1, but ranging returned nothing") + default: + keys := make([]Key, 0, s.Len()) + for v := range s.All() { + keys = append(keys, toBytes(v)) + } + return NewKeySet(keys...) + } +} diff --git a/backend/vendor/github.com/cilium/statedb/index/string.go b/backend/vendor/github.com/cilium/statedb/index/string.go new file mode 100644 index 000000000..99430bc3b --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/index/string.go @@ -0,0 +1,45 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package index + +import ( + "fmt" + "iter" +) + +func String(s string) Key { + return []byte(s) +} + +func FromString(s string) (Key, error) { + return String(s), nil +} + +func Stringer[T fmt.Stringer](s T) Key { + return String(s.String()) +} + +func StringSlice(ss []string) KeySet { + keys := make([]Key, 0, len(ss)) + for _, s := range ss { + keys = append(keys, String(s)) + } + return NewKeySet(keys...) +} + +func StringerSlice[T fmt.Stringer](ss []T) KeySet { + keys := make([]Key, 0, len(ss)) + for _, s := range ss { + keys = append(keys, Stringer(s)) + } + return NewKeySet(keys...) +} + +func StringerSeq[T fmt.Stringer](seq iter.Seq[T]) KeySet { + return Seq[T](Stringer, seq) +} + +func StringerSeq2[A fmt.Stringer, B any](seq iter.Seq2[A, B]) KeySet { + return Seq2[A, B](Stringer, seq) +} diff --git a/backend/vendor/github.com/cilium/statedb/part/cache.go b/backend/vendor/github.com/cilium/statedb/part/cache.go new file mode 100644 index 000000000..16425f895 --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/part/cache.go @@ -0,0 +1,37 @@ +package part + +import "unsafe" + +const nodeMutatedSize = 32 // must be power-of-two + +type nodeMutated[T any] struct { + ptrs [nodeMutatedSize]*header[T] + used bool +} + +func (p *nodeMutated[T]) put(ptr *header[T]) { + ptrInt := uintptr(unsafe.Pointer(ptr)) + p.ptrs[slot(ptrInt)] = ptr + p.used = true +} + +func (p *nodeMutated[T]) exists(ptr *header[T]) bool { + ptrInt := uintptr(unsafe.Pointer(ptr)) + return p.ptrs[slot(ptrInt)] == ptr +} + +func slot(p uintptr) int { + var slot uint8 + // use some relevant bits from the pointer + slot = slot + uint8(p>>4) + slot = slot + uint8(p>>12) + slot = slot + uint8(p>>20) + return int(slot & (nodeMutatedSize - 1)) +} + +func (p *nodeMutated[T]) clear() { + if p.used { + clear(p.ptrs[:]) + } + p.used = false +} diff --git a/backend/vendor/github.com/cilium/statedb/part/iterator.go b/backend/vendor/github.com/cilium/statedb/part/iterator.go new file mode 100644 index 000000000..329284471 --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/part/iterator.go @@ -0,0 +1,188 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package part + +import ( + "bytes" + "slices" + "sort" +) + +// Iterator for key and value pairs where value is of type T +type Iterator[T any] struct { + next [][]*header[T] // sets of edges to explore +} + +// Clone returns a copy of the iterator, allowing restarting +// the iterator from scratch. +func (it *Iterator[T]) Clone() *Iterator[T] { + // Since the iterator does not mutate the edge array elements themselves ([]*header[T]) + // it is enough to do a shallow clone here. + return &Iterator[T]{slices.Clone(it.next)} +} + +// Next returns the next key, value and true if the value exists, +// otherwise it returns false. +func (it *Iterator[T]) Next() (key []byte, value T, ok bool) { + for len(it.next) > 0 { + // Pop the next set of edges to explore + edges := it.next[len(it.next)-1] + for len(edges) > 0 && edges[0] == nil { + // Node256 may have nil children, so jump over them. + edges = edges[1:] + } + it.next = it.next[:len(it.next)-1] + + if len(edges) == 0 { + continue + } else if len(edges) > 1 { + // More edges remain to be explored, add them back. + it.next = append(it.next, edges[1:]) + } + + // Follow the smallest edge and add its children to the queue. + node := edges[0] + + if node.size() > 0 { + it.next = append(it.next, node.children()) + } + if leaf := node.getLeaf(); leaf != nil { + key = leaf.key + value = leaf.value + ok = true + return + } + } + return +} + +func newIterator[T any](start *header[T]) *Iterator[T] { + if start == nil { + return &Iterator[T]{nil} + } + return &Iterator[T]{[][]*header[T]{{start}}} +} + +func prefixSearch[T any](root *header[T], key []byte) (*Iterator[T], <-chan struct{}) { + this := root + var watch <-chan struct{} + for { + if !this.isLeaf() && this.watch != nil { + // Leaf watch channels only close when the leaf is manipulated, + // thus we only return non-leaf watch channels. + watch = this.watch + } + + switch { + case bytes.Equal(key, this.prefix[:min(len(key), len(this.prefix))]): + return newIterator(this), watch + + case bytes.HasPrefix(key, this.prefix): + key = key[len(this.prefix):] + if len(key) == 0 { + return newIterator(this), this.watch + } + + default: + return newIterator[T](nil), root.watch + } + + this = this.find(key[0]) + if this == nil { + return newIterator[T](nil), root.watch + } + } +} + +func traverseToMin[T any](n *header[T], edges [][]*header[T]) [][]*header[T] { + if leaf := n.getLeaf(); leaf != nil { + return append(edges, []*header[T]{n}) + } + children := n.children() + + // Find the first non-nil child + for len(children) > 0 && children[0] == nil { + children = children[1:] + } + + if len(children) > 0 { + // Add the larger children. + if len(children) > 1 { + edges = append(edges, children[1:]) + } + // Recurse into the smallest child + return traverseToMin(children[0], edges) + } + return edges +} + +func lowerbound[T any](start *header[T], key []byte) *Iterator[T] { + // The starting edges to explore. This contains all larger nodes encountered + // on the path to the node larger or equal to the key. + edges := [][]*header[T]{} + this := start +loop: + for { + switch bytes.Compare(this.prefix, key[:min(len(key), len(this.prefix))]) { + case -1: + // Prefix is smaller, stop here and return an iterator for + // the larger nodes in the parent's. + break loop + + case 0: + if len(this.prefix) == len(key) { + // Exact match. + edges = append(edges, []*header[T]{this}) + break loop + } + + // Prefix matches the beginning of the key, but more + // remains of the key. Drop the matching part and keep + // going further. + key = key[len(this.prefix):] + + if this.kind() == nodeKind256 { + children := this.node256().children[:] + idx := int(key[0]) + this = children[idx] + + // Add all larger children and recurse further. + children = children[idx+1:] + for len(children) > 0 && children[0] == nil { + children = children[1:] + } + edges = append(edges, children) + + if this == nil { + break loop + } + } else { + children := this.children() + + // Find the smallest child that is equal or larger than the lower bound + idx := sort.Search(len(children), func(i int) bool { + return children[i].prefix[0] >= key[0] + }) + if idx >= this.size() { + break loop + } + // Add all larger children and recurse further. + if len(children) > idx+1 { + edges = append(edges, children[idx+1:]) + } + this = children[idx] + } + + case 1: + // Prefix bigger than lowerbound, go to smallest node and stop. + edges = traverseToMin(this, edges) + break loop + } + } + + if len(edges) > 0 { + return &Iterator[T]{edges} + } + return &Iterator[T]{nil} +} diff --git a/backend/vendor/github.com/cilium/statedb/part/map.go b/backend/vendor/github.com/cilium/statedb/part/map.go new file mode 100644 index 000000000..f3d045598 --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/part/map.go @@ -0,0 +1,270 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package part + +import ( + "bytes" + "encoding/json" + "fmt" + "iter" + "reflect" + + "gopkg.in/yaml.v3" +) + +// Map of key-value pairs. The zero value is ready for use, provided +// that the key type has been registered with RegisterKeyType. +// +// Map is a typed wrapper around Tree[T] for working with +// keys that are not []byte. +type Map[K, V any] struct { + bytesFromKey func(K) []byte + tree *Tree[mapKVPair[K, V]] +} + +type mapKVPair[K, V any] struct { + Key K `json:"k" yaml:"k"` + Value V `json:"v" yaml:"v"` +} + +// FromMap copies values from the hash map into the given Map. +// This is not implemented as a method on Map[K,V] as hash maps require the +// comparable constraint and we do not need to limit Map[K, V] to that. +func FromMap[K comparable, V any](m Map[K, V], hm map[K]V) Map[K, V] { + m.ensureTree() + txn := m.tree.Txn() + for k, v := range hm { + txn.Insert(m.bytesFromKey(k), mapKVPair[K, V]{k, v}) + } + m.tree = txn.CommitOnly() + return m +} + +// ensureTree checks that the tree is not nil and allocates it if +// it is. The whole nil tree thing is to make sure that creating +// an empty map does not allocate anything. +func (m *Map[K, V]) ensureTree() { + if m.tree == nil { + m.tree = New[mapKVPair[K, V]](RootOnlyWatch) + } + m.bytesFromKey = lookupKeyType[K]() +} + +// Get a value from the map by its key. +func (m Map[K, V]) Get(key K) (value V, found bool) { + if m.tree == nil { + return + } + kv, _, found := m.tree.Get(m.bytesFromKey(key)) + return kv.Value, found +} + +// Set a value. Returns a new map with the value set. +// Original map is unchanged. +func (m Map[K, V]) Set(key K, value V) Map[K, V] { + m.ensureTree() + txn := m.tree.Txn() + txn.Insert(m.bytesFromKey(key), mapKVPair[K, V]{key, value}) + m.tree = txn.CommitOnly() + return m +} + +// Delete a value from the map. Returns a new map +// without the element pointed to by the key (if found). +func (m Map[K, V]) Delete(key K) Map[K, V] { + if m.tree != nil { + txn := m.tree.Txn() + txn.Delete(m.bytesFromKey(key)) + // Map is a struct passed by value, so we can modify + // it without changing the caller's view of it. + m.tree = txn.CommitOnly() + } + return m +} + +func toSeq2[K, V any](iter *Iterator[mapKVPair[K, V]]) iter.Seq2[K, V] { + return func(yield func(K, V) bool) { + if iter == nil { + return + } + iter = iter.Clone() + for _, kv, ok := iter.Next(); ok; _, kv, ok = iter.Next() { + if !yield(kv.Key, kv.Value) { + break + } + } + } +} + +// LowerBound iterates over all keys in order with value equal +// to or greater than [from]. +func (m Map[K, V]) LowerBound(from K) iter.Seq2[K, V] { + if m.tree == nil { + return toSeq2[K, V](nil) + } + return toSeq2(m.tree.LowerBound(m.bytesFromKey(from))) +} + +// Prefix iterates in order over all keys that start with +// the given prefix. +func (m Map[K, V]) Prefix(prefix K) iter.Seq2[K, V] { + if m.tree == nil { + return toSeq2[K, V](nil) + } + iter, _ := m.tree.Prefix(m.bytesFromKey(prefix)) + return toSeq2(iter) +} + +// All iterates every key-value in the map in order. +// The order is in bytewise order of the byte slice +// returned by bytesFromKey. +func (m Map[K, V]) All() iter.Seq2[K, V] { + if m.tree == nil { + return toSeq2[K, V](nil) + } + return toSeq2(m.tree.Iterator()) +} + +// EqualKeys returns true if both maps contain the same keys. +func (m Map[K, V]) EqualKeys(other Map[K, V]) bool { + switch { + case m.tree == nil && other.tree == nil: + return true + case m.Len() != other.Len(): + return false + default: + iter1 := m.tree.Iterator() + iter2 := other.tree.Iterator() + for { + k1, _, ok := iter1.Next() + if !ok { + break + } + k2, _, _ := iter2.Next() + // Equal lengths, no need to check 'ok' for 'iter2'. + if !bytes.Equal(k1, k2) { + return false + } + } + return true + } +} + +// SlowEqual returns true if the two maps contain the same keys and values. +// Value comparison is implemented with reflect.DeepEqual which makes this +// slow and mostly useful for testing. +func (m Map[K, V]) SlowEqual(other Map[K, V]) bool { + switch { + case m.tree == nil && other.tree == nil: + return true + case m.Len() != other.Len(): + return false + default: + iter1 := m.tree.Iterator() + iter2 := other.tree.Iterator() + for { + k1, v1, ok := iter1.Next() + if !ok { + break + } + k2, v2, _ := iter2.Next() + // Equal lengths, no need to check 'ok' for 'iter2'. + if !bytes.Equal(k1, k2) || !reflect.DeepEqual(v1, v2) { + return false + } + } + return true + } +} + +// Len returns the number of elements in the map. +func (m Map[K, V]) Len() int { + if m.tree == nil { + return 0 + } + return m.tree.size +} + +func (m Map[K, V]) MarshalJSON() ([]byte, error) { + if m.tree == nil { + return []byte("[]"), nil + } + + var b bytes.Buffer + b.WriteRune('[') + iter := m.tree.Iterator() + _, kv, ok := iter.Next() + for ok { + bs, err := json.Marshal(kv) + if err != nil { + return nil, err + } + b.Write(bs) + _, kv, ok = iter.Next() + if ok { + b.WriteRune(',') + } + } + b.WriteRune(']') + return b.Bytes(), nil +} + +func (m *Map[K, V]) UnmarshalJSON(data []byte) error { + dec := json.NewDecoder(bytes.NewReader(data)) + t, err := dec.Token() + if err != nil { + return err + } + if d, ok := t.(json.Delim); !ok || d != '[' { + return fmt.Errorf("%T.UnmarshalJSON: expected '[' got %v", m, t) + } + m.ensureTree() + txn := m.tree.Txn() + for dec.More() { + var kv mapKVPair[K, V] + err := dec.Decode(&kv) + if err != nil { + return err + } + txn.Insert(m.bytesFromKey(kv.Key), mapKVPair[K, V]{kv.Key, kv.Value}) + } + + t, err = dec.Token() + if err != nil { + return err + } + if d, ok := t.(json.Delim); !ok || d != ']' { + return fmt.Errorf("%T.UnmarshalJSON: expected ']' got %v", m, t) + } + m.tree = txn.CommitOnly() + return nil +} + +func (m Map[K, V]) MarshalYAML() (any, error) { + kvs := make([]mapKVPair[K, V], 0, m.Len()) + if m.tree != nil { + iter := m.tree.Iterator() + for _, kv, ok := iter.Next(); ok; _, kv, ok = iter.Next() { + kvs = append(kvs, kv) + } + } + return kvs, nil +} + +func (m *Map[K, V]) UnmarshalYAML(value *yaml.Node) error { + if value.Kind != yaml.SequenceNode { + return fmt.Errorf("%T.UnmarshalYAML: expected sequence", m) + } + m.ensureTree() + txn := m.tree.Txn() + for _, e := range value.Content { + var kv mapKVPair[K, V] + if err := e.Decode(&kv); err != nil { + return err + } + txn.Insert(m.bytesFromKey(kv.Key), mapKVPair[K, V]{kv.Key, kv.Value}) + } + m.tree = txn.CommitOnly() + return nil +} diff --git a/backend/vendor/github.com/cilium/statedb/part/node.go b/backend/vendor/github.com/cilium/statedb/part/node.go new file mode 100644 index 000000000..1f89c9af5 --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/part/node.go @@ -0,0 +1,510 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package part + +import ( + "bytes" + "fmt" + "sort" + "strings" + "unsafe" +) + +type nodeKind uint8 + +const ( + nodeKindUnknown = iota + nodeKindLeaf + nodeKind4 + nodeKind16 + nodeKind48 + nodeKind256 +) + +// header is the common header shared by all node kinds. +type header[T any] struct { + flags uint16 // kind(4b) | unused(3b) | size(9b) + prefix []byte // the compressed prefix, [0] is the key + watch chan struct{} // watch channel that is closed when this node mutates +} + +const kindMask = uint16(0b1111_000_00000000_0) + +func (n *header[T]) kind() nodeKind { + return nodeKind(n.flags >> 12) +} + +func (n *header[T]) setKind(k nodeKind) { + n.flags = (n.flags & ^kindMask) | (uint16(k&0b1111) << 12) +} + +const sizeMask = uint16(0b0000_000_1111_1111_1) + +func (n *header[T]) cap() int { + switch n.kind() { + case nodeKindLeaf: + return 0 + case nodeKind4: + return 4 + case nodeKind16: + return 16 + case nodeKind48: + return 48 + case nodeKind256: + return 256 + default: + panic(fmt.Sprintf("unknown node kind: %x", n.kind())) + } +} + +func (n *header[T]) isLeaf() bool { + return n.kind() == nodeKindLeaf +} + +func (n *header[T]) getLeaf() *leaf[T] { + switch n.kind() { + case nodeKindLeaf: + return (*leaf[T])(unsafe.Pointer(n)) + case nodeKind4: + return n.node4().leaf + case nodeKind16: + return n.node16().leaf + case nodeKind48: + return n.node48().leaf + case nodeKind256: + return n.node256().leaf + default: + panic(fmt.Sprintf("unknown node kind: %x", n.kind())) + } +} + +func (n *header[T]) setLeaf(l *leaf[T]) { + switch n.kind() { + case nodeKindLeaf: + panic("cannot setLeaf on a leaf[T]") + case nodeKind4: + n.node4().leaf = l + case nodeKind16: + n.node16().leaf = l + case nodeKind48: + n.node48().leaf = l + case nodeKind256: + n.node256().leaf = l + default: + panic(fmt.Sprintf("unknown node kind: %x", n.kind())) + } +} + +func (n *header[T]) size() int { + return int(n.flags & sizeMask) +} + +func (n *header[T]) setSize(size int) { + n.flags = (n.flags & ^sizeMask) | uint16(size)&sizeMask +} + +func (n *header[T]) self() *header[T] { + return n +} + +func (n *header[T]) node4() *node4[T] { + return (*node4[T])(unsafe.Pointer(n)) +} + +func (n *header[T]) node16() *node16[T] { + return (*node16[T])(unsafe.Pointer(n)) +} + +func (n *header[T]) node48() *node48[T] { + return (*node48[T])(unsafe.Pointer(n)) +} + +func (n *header[T]) node256() *node256[T] { + return (*node256[T])(unsafe.Pointer(n)) +} + +// clone returns a shallow clone of the node. +// We are working on the assumption here that only +// value-types are mutated in the returned clone. +func (n *header[T]) clone(watch bool) *header[T] { + var nCopy *header[T] + switch n.kind() { + case nodeKindLeaf: + l := *n.getLeaf() + nCopy = (&l).self() + case nodeKind4: + n4 := *n.node4() + nCopy = (&n4).self() + case nodeKind16: + n16 := *n.node16() + nCopy = (&n16).self() + case nodeKind48: + n48 := *n.node48() + nCopy = (&n48).self() + case nodeKind256: + nCopy256 := *n.node256() + nCopy = (&nCopy256).self() + default: + panic(fmt.Sprintf("unknown node kind: %x", n.kind())) + } + if watch { + nCopy.watch = make(chan struct{}) + } else { + nCopy.watch = nil + } + return nCopy +} + +func (n *header[T]) promote(watch bool) *header[T] { + switch n.kind() { + case nodeKindLeaf: + node4 := &node4[T]{} + node4.prefix = n.prefix + node4.leaf = n.getLeaf() + node4.setKind(nodeKind4) + if watch { + node4.watch = make(chan struct{}) + } + return node4.self() + case nodeKind4: + node4 := n.node4() + node16 := &node16[T]{header: *n} + node16.setKind(nodeKind16) + node16.leaf = n.getLeaf() + size := node4.size() + copy(node16.children[:], node4.children[:size]) + copy(node16.keys[:], node4.keys[:size]) + if watch { + node16.watch = make(chan struct{}) + } + return node16.self() + case nodeKind16: + node16 := n.node16() + node48 := &node48[T]{header: *n} + node48.setKind(nodeKind48) + node48.leaf = n.getLeaf() + copy(node48.children[:], node16.children[:node16.size()]) + for i, k := range node16.keys[:node16.size()] { + node48.index[k] = int8(i) + } + if watch { + node48.watch = make(chan struct{}) + } + return node48.self() + case nodeKind48: + node48 := n.node48() + node256 := &node256[T]{header: *n} + node256.setKind(nodeKind256) + node256.leaf = n.getLeaf() + + // Since Node256 has children indexed directly, iterate over the children + // to assign them to the right index. + for _, child := range node48.children[:node48.size()] { + node256.children[child.prefix[0]] = child + } + if watch { + node256.watch = make(chan struct{}) + } + return node256.self() + case nodeKind256: + panic("BUG: should not need to promote node256") + default: + panic(fmt.Sprintf("unknown node kind: %x", n.kind())) + } +} + +func (n *header[T]) printTree(level int) { + fmt.Print(strings.Repeat(" ", level)) + + var children []*header[T] + switch n.kind() { + case nodeKindLeaf: + fmt.Printf("leaf[%x]:", n.prefix) + case nodeKind4: + fmt.Printf("node4[%x]:", n.prefix) + children = n.node4().children[:n.size()] + case nodeKind16: + fmt.Printf("node16[%x]:", n.prefix) + children = n.node16().children[:n.size()] + case nodeKind48: + fmt.Printf("node48[%x]:", n.prefix) + children = n.node48().children[:n.size()] + case nodeKind256: + fmt.Printf("node256[%x]:", n.prefix) + children = n.node256().children[:] + default: + panic("unknown node kind") + } + if leaf := n.getLeaf(); leaf != nil { + fmt.Printf(" %x -> %v (L:%p W:%p)", leaf.key, leaf.value, leaf, leaf.watch) + } + fmt.Printf(" (N:%p, W:%p)\n", n, n.watch) + + for _, child := range children { + if child != nil { + child.printTree(level + 1) + } + } +} + +func (n *header[T]) children() []*header[T] { + switch n.kind() { + case nodeKindLeaf: + return nil + case nodeKind4: + return n.node4().children[0:n.size():4] + case nodeKind16: + return n.node16().children[0:n.size():16] + case nodeKind48: + return n.node48().children[0:n.size():48] + case nodeKind256: + return n.node256().children[:] + default: + panic(fmt.Sprintf("unknown node kind: %x", n.kind())) + } +} + +func (n *header[T]) findIndex(key byte) (*header[T], int) { + switch n.kind() { + case nodeKindLeaf: + return nil, 0 + case nodeKind4: + n4 := n.node4() + size := n4.size() + for i := 0; i < int(size); i++ { + if n4.keys[i] == key { + return n4.children[i], i + } else if n4.keys[i] > key { + return nil, i + } + } + return nil, size + case nodeKind16: + n16 := n.node16() + size := n16.size() + for i := 0; i < int(size); i++ { + if n16.keys[i] == key { + return n16.children[i], i + } else if n16.keys[i] > key { + return nil, i + } + } + return nil, size + case nodeKind48: + children := n.children() + idx := sort.Search(len(children), func(i int) bool { + return children[i].prefix[0] >= key + }) + if idx >= n.size() || children[idx].prefix[0] != key { + // No node found, return nil and the index into + // which it should go. + return nil, idx + } + return children[idx], idx + case nodeKind256: + return n.node256().children[key], int(key) + default: + panic(fmt.Sprintf("unknown node kind: %x", n.kind())) + } +} + +func (n *header[T]) find(key byte) *header[T] { + switch n.kind() { + case nodeKindLeaf: + return nil + case nodeKind4: + n4 := n.node4() + size := n4.size() + for i := 0; i < int(size); i++ { + if n4.keys[i] == key { + return n4.children[i] + } else if n4.keys[i] > key { + return nil + } + } + return nil + case nodeKind16: + n16 := n.node16() + size := n16.size() + for i := 0; i < int(size); i++ { + if n16.keys[i] == key { + return n16.children[i] + } else if n16.keys[i] > key { + return nil + } + } + return nil + case nodeKind48: + n48 := n.node48() + idx := n48.index[key] + if idx < 0 { + return nil + } + return n48.children[idx] + case nodeKind256: + return n.node256().children[key] + default: + panic(fmt.Sprintf("unknown node kind: %x", n.kind())) + } +} + +func (n *header[T]) insert(idx int, child *header[T]) { + size := n.size() + newSize := size + 1 + switch n.kind() { + case nodeKind4: + n4 := n.node4() + // Shift to make room + copy(n4.children[idx+1:newSize], n4.children[idx:newSize]) + copy(n4.keys[idx+1:newSize], n4.keys[idx:newSize]) + n4.children[idx] = child + n4.keys[idx] = child.prefix[0] + case nodeKind16: + n16 := n.node16() + // Shift to make room + copy(n16.children[idx+1:newSize], n16.children[idx:newSize]) + copy(n16.keys[idx+1:newSize], n16.keys[idx:newSize]) + n16.children[idx] = child + n16.keys[idx] = child.prefix[0] + case nodeKind48: + // Shift to make room + n48 := n.node48() + for i := size - 1; i >= idx; i-- { + c := n48.children[i] + n48.index[c.prefix[0]] = int8(i + 1) + n48.children[i+1] = c + } + n48.children[idx] = child + n48.index[child.prefix[0]] = int8(idx) + case nodeKind256: + n.node256().children[child.prefix[0]] = child + default: + panic(fmt.Sprintf("unknown node kind: %x", n.kind())) + } + n.setSize(size + 1) +} + +func (n *header[T]) remove(idx int) { + newSize := n.size() - 1 + switch n.kind() { + case nodeKind4: + size := n.size() + n4 := n.node4() + copy(n4.keys[idx:size], n4.keys[idx+1:size]) + copy(n4.children[idx:size], n4.children[idx+1:size]) + n4.children[newSize] = nil + n4.keys[newSize] = 255 + case nodeKind16: + size := n.size() + n16 := n.node16() + copy(n16.keys[idx:size], n16.keys[idx+1:size]) + copy(n16.children[idx:size], n16.children[idx+1:size]) + n16.children[newSize] = nil + n16.keys[newSize] = 255 + case nodeKind48: + children := n.children() + key := children[idx].prefix[0] + n48 := n.node48() + for i := idx; i < newSize; i++ { + child := children[i+1] + children[i] = child + n48.index[child.prefix[0]] = int8(i) + } + n48.index[key] = -1 + children[newSize] = nil + case nodeKind256: + n.node256().children[idx] = nil + default: + panic(fmt.Sprintf("unknown node kind: %x", n.kind())) + } + n.setSize(newSize) +} + +type leaf[T any] struct { + header[T] + key []byte + value T +} + +func newLeaf[T any](o *options, prefix, key []byte, value T) *leaf[T] { + leaf := &leaf[T]{key: key, value: value} + leaf.prefix = prefix + leaf.setKind(nodeKindLeaf) + + if !o.rootOnlyWatch { + leaf.watch = make(chan struct{}) + } + + return leaf +} + +type node4[T any] struct { + header[T] + keys [4]byte + children [4]*header[T] + leaf *leaf[T] // non-nil if this node contains a value +} + +type node16[T any] struct { + header[T] + keys [16]byte + children [16]*header[T] + leaf *leaf[T] // non-nil if this node contains a value +} + +type node48[T any] struct { + header[T] + index [256]int8 + children [48]*header[T] + leaf *leaf[T] // non-nil if this node contains a value +} + +type node256[T any] struct { + header[T] + children [256]*header[T] + leaf *leaf[T] // non-nil if this node contains a value +} + +func newNode4[T any]() *header[T] { + n := &node4[T]{header: header[T]{watch: make(chan struct{})}} + n.setKind(nodeKind4) + return n.self() +} + +func search[T any](root *header[T], key []byte) (value T, watch <-chan struct{}, ok bool) { + this := root + for { + watch = this.watch + + // Consume the prefix + if !bytes.HasPrefix(key, this.prefix) { + return + } + key = key[len(this.prefix):] + + if len(key) == 0 { + if leaf := this.getLeaf(); leaf != nil { + value = leaf.value + watch = leaf.watch + ok = true + } + return + } + + this = this.find(key[0]) + if this == nil { + return + } + } +} + +func commonPrefix(a, b []byte) []byte { + n := min(len(a), len(b)) + for i := 0; i < n; i++ { + if a[i] != b[i] { + return a[:i] + } + } + return a[:n] +} diff --git a/backend/vendor/github.com/cilium/statedb/part/ops.go b/backend/vendor/github.com/cilium/statedb/part/ops.go new file mode 100644 index 000000000..3787bfca3 --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/part/ops.go @@ -0,0 +1,42 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package part + +// Ops is the common operations that can be performed with a Tree +// or Txn. +type Ops[T any] interface { + // Len returns the number of objects in the tree. + Len() int + + // Get fetches the value associated with the given key. + // Returns the value, a watch channel (which is closed on + // modification to the key) and boolean which is true if + // value was found. + Get(key []byte) (T, <-chan struct{}, bool) + + // Prefix returns an iterator for all objects that starts with the + // given prefix, and a channel that closes when any objects matching + // the given prefix are upserted or deleted. + Prefix(key []byte) (*Iterator[T], <-chan struct{}) + + // LowerBound returns an iterator for all objects that have a + // key equal or higher than the given 'key'. + LowerBound(key []byte) *Iterator[T] + + // RootWatch returns a watch channel for the root of the tree. + // Since this is the channel associated with the root, this closes + // when there are any changes to the tree. + RootWatch() <-chan struct{} + + // Iterator returns an iterator for all objects. + Iterator() *Iterator[T] + + // PrintTree to the standard output. For debugging. + PrintTree() +} + +var ( + _ Ops[int] = &Tree[int]{} + _ Ops[int] = &Txn[int]{} +) diff --git a/backend/vendor/github.com/cilium/statedb/part/registry.go b/backend/vendor/github.com/cilium/statedb/part/registry.go new file mode 100644 index 000000000..d54245bc5 --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/part/registry.go @@ -0,0 +1,74 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package part + +import ( + "encoding/binary" + "fmt" + "math" + "reflect" + "sync" + "unicode/utf8" +) + +// keyTypeRegistry is a registry of functions to convert to/from keys (of type K). +// This mechanism enables use of zero value and JSON marshalling and unmarshalling +// with Map and Set. +var keyTypeRegistry sync.Map // map[reflect.Type]func(K) []byte + +// RegisterKeyType registers a new key type to be used with the Map and Set types. +// Intended to be called from init() functions. +// For Set-only usage only the [bytesFromKey] function is needed. +func RegisterKeyType[K any](bytesFromKey func(K) []byte) { + keyType := reflect.TypeFor[K]() + keyTypeRegistry.Store( + keyType, + bytesFromKey, + ) +} + +func lookupKeyType[K any]() func(K) []byte { + keyType := reflect.TypeFor[K]() + funcAny, ok := keyTypeRegistry.Load(keyType) + if !ok { + panic(fmt.Sprintf("Key type %q not registered with part.RegisterMapKeyType()", keyType)) + } + return funcAny.(func(K) []byte) +} + +func init() { + // Register common key types. + RegisterKeyType[string](func(s string) []byte { return []byte(s) }) + RegisterKeyType[[]byte](func(b []byte) []byte { return b }) + RegisterKeyType[byte](func(b byte) []byte { return []byte{b} }) + RegisterKeyType[rune](func(r rune) []byte { return utf8.AppendRune(nil, r) }) + RegisterKeyType[complex128](func(c complex128) []byte { + buf := make([]byte, 0, 16) + buf = binary.BigEndian.AppendUint64(buf, math.Float64bits(real(c))) + buf = binary.BigEndian.AppendUint64(buf, math.Float64bits(imag(c))) + return buf + }) + RegisterKeyType[float64](func(x float64) []byte { return binary.BigEndian.AppendUint64(nil, math.Float64bits(x)) }) + RegisterKeyType[float32](func(x float32) []byte { return binary.BigEndian.AppendUint32(nil, math.Float32bits(x)) }) + RegisterKeyType[uint64](func(x uint64) []byte { return binary.BigEndian.AppendUint64(nil, x) }) + RegisterKeyType[uint32](func(x uint32) []byte { return binary.BigEndian.AppendUint32(nil, x) }) + RegisterKeyType[uint16](func(x uint16) []byte { return binary.BigEndian.AppendUint16(nil, x) }) + RegisterKeyType[int64](func(x int64) []byte { return binary.BigEndian.AppendUint64(nil, uint64(x)) }) + RegisterKeyType[int32](func(x int32) []byte { return binary.BigEndian.AppendUint32(nil, uint32(x)) }) + RegisterKeyType[int16](func(x int16) []byte { return binary.BigEndian.AppendUint16(nil, uint16(x)) }) + RegisterKeyType[int](func(x int) []byte { return binary.BigEndian.AppendUint64(nil, uint64(x)) }) + + var ( + trueBytes = []byte{'T'} + falseBytes = []byte{'F'} + ) + RegisterKeyType[bool](func(b bool) []byte { + if b { + return trueBytes + } else { + return falseBytes + } + }) + +} diff --git a/backend/vendor/github.com/cilium/statedb/part/set.go b/backend/vendor/github.com/cilium/statedb/part/set.go new file mode 100644 index 000000000..89a91f0a6 --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/part/set.go @@ -0,0 +1,252 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package part + +import ( + "bytes" + "encoding/json" + "fmt" + "iter" + "slices" + + "gopkg.in/yaml.v3" +) + +// Set is a persistent (immutable) set of values. A Set can be +// defined for any type for which a byte slice key can be derived. +// +// A zero value Set[T] can be used provided that the conversion +// function for T have been registered with RegisterKeyType. +// For Set-only use only [bytesFromKey] needs to be defined. +type Set[T any] struct { + toBytes func(T) []byte + tree *Tree[T] +} + +// NewSet creates a new set of T. +// The value type T must be registered with RegisterKeyType. +func NewSet[T any](values ...T) Set[T] { + s := Set[T]{tree: New[T](RootOnlyWatch)} + s.toBytes = lookupKeyType[T]() + if len(values) > 0 { + txn := s.tree.Txn() + for _, v := range values { + txn.Insert(s.toBytes(v), v) + } + s.tree = txn.CommitOnly() + } + return s +} + +// Set a value. Returns a new set. Original is unchanged. +func (s Set[T]) Set(v T) Set[T] { + if s.tree == nil { + return NewSet(v) + } + txn := s.tree.Txn() + txn.Insert(s.toBytes(v), v) + s.tree = txn.CommitOnly() // As Set is passed by value we can just modify it. + return s +} + +// Delete returns a new set without the value. The original +// set is unchanged. +func (s Set[T]) Delete(v T) Set[T] { + if s.tree == nil { + return s + } + txn := s.tree.Txn() + txn.Delete(s.toBytes(v)) + s.tree = txn.CommitOnly() + return s +} + +// Has returns true if the set has the value. +func (s Set[T]) Has(v T) bool { + if s.tree == nil { + return false + } + _, _, found := s.tree.Get(s.toBytes(v)) + return found +} + +// All returns an iterator for all values. +func (s Set[T]) All() iter.Seq[T] { + if s.tree == nil { + return toSeq[T](nil) + } + return toSeq(s.tree.Iterator()) +} + +// Union returns a set that is the union of the values +// in the input sets. +func (s Set[T]) Union(s2 Set[T]) Set[T] { + if s2.tree == nil { + return s + } + if s.tree == nil { + return s2 + } + txn := s.tree.Txn() + iter := s2.tree.Iterator() + for k, v, ok := iter.Next(); ok; k, v, ok = iter.Next() { + txn.Insert(k, v) + } + s.tree = txn.CommitOnly() + return s +} + +// Difference returns a set with values that only +// appear in the first set. +func (s Set[T]) Difference(s2 Set[T]) Set[T] { + if s.tree == nil || s2.tree == nil { + return s + } + + txn := s.tree.Txn() + iter := s2.tree.Iterator() + for k, _, ok := iter.Next(); ok; k, _, ok = iter.Next() { + txn.Delete(k) + } + s.tree = txn.CommitOnly() + return s +} + +// Len returns the number of values in the set. +func (s Set[T]) Len() int { + if s.tree == nil { + return 0 + } + return s.tree.size +} + +// Equal returns true if the two sets contain the equal keys. +func (s Set[T]) Equal(other Set[T]) bool { + switch { + case s.tree == nil && other.tree == nil: + return true + case s.Len() != other.Len(): + return false + default: + iter1 := s.tree.Iterator() + iter2 := other.tree.Iterator() + for { + k1, _, ok := iter1.Next() + if !ok { + break + } + k2, _, _ := iter2.Next() + // Equal lengths, no need to check 'ok' for 'iter2'. + if !bytes.Equal(k1, k2) { + return false + } + } + return true + } +} + +// ToBytesFunc returns the function to extract the key from +// the element type. Useful for utilities that are interested +// in the key. +func (s Set[T]) ToBytesFunc() func(T) []byte { + return s.toBytes +} + +func (s Set[T]) MarshalJSON() ([]byte, error) { + if s.tree == nil { + return []byte("[]"), nil + } + var b bytes.Buffer + b.WriteRune('[') + iter := s.tree.Iterator() + _, v, ok := iter.Next() + for ok { + bs, err := json.Marshal(v) + if err != nil { + return nil, err + } + b.Write(bs) + _, v, ok = iter.Next() + if ok { + b.WriteRune(',') + } + } + b.WriteRune(']') + return b.Bytes(), nil +} + +func (s *Set[T]) UnmarshalJSON(data []byte) error { + dec := json.NewDecoder(bytes.NewReader(data)) + t, err := dec.Token() + if err != nil { + return err + } + if d, ok := t.(json.Delim); !ok || d != '[' { + return fmt.Errorf("%T.UnmarshalJSON: expected '[' got %v", s, t) + } + + if s.tree == nil { + *s = NewSet[T]() + } + txn := s.tree.Txn() + + for dec.More() { + var x T + err := dec.Decode(&x) + if err != nil { + return err + } + txn.Insert(s.toBytes(x), x) + } + s.tree = txn.CommitOnly() + + t, err = dec.Token() + if err != nil { + return err + } + if d, ok := t.(json.Delim); !ok || d != ']' { + return fmt.Errorf("%T.UnmarshalJSON: expected ']' got %v", s, t) + } + return nil +} + +func (s Set[T]) MarshalYAML() (any, error) { + // TODO: Once yaml.v3 supports iter.Seq, drop the Collect(). + return slices.Collect(s.All()), nil +} + +func (s *Set[T]) UnmarshalYAML(value *yaml.Node) error { + if value.Kind != yaml.SequenceNode { + return fmt.Errorf("%T.UnmarshalYAML: expected sequence", s) + } + + if s.tree == nil { + *s = NewSet[T]() + } + txn := s.tree.Txn() + + for _, e := range value.Content { + var v T + if err := e.Decode(&v); err != nil { + return err + } + txn.Insert(s.toBytes(v), v) + } + s.tree = txn.CommitOnly() + return nil +} + +func toSeq[T any](iter *Iterator[T]) iter.Seq[T] { + return func(yield func(T) bool) { + if iter == nil { + return + } + iter = iter.Clone() + for _, x, ok := iter.Next(); ok; _, x, ok = iter.Next() { + if !yield(x) { + break + } + } + } +} diff --git a/backend/vendor/github.com/cilium/statedb/part/tree.go b/backend/vendor/github.com/cilium/statedb/part/tree.go new file mode 100644 index 000000000..8e542a733 --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/part/tree.go @@ -0,0 +1,130 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package part + +// Tree is a persistent (immutable) adaptive radix tree. It supports +// map-like operations on values keyed by []byte and additionally +// prefix searching and lower bound searching. Each node in the tree +// has an associated channel that is closed when that node is mutated. +// This allows watching any part of the tree (any prefix) for changes. +type Tree[T any] struct { + opts *options + root *header[T] + size int // the number of objects in the tree +} + +// New constructs a new tree. +func New[T any](opts ...Option) *Tree[T] { + var o options + for _, opt := range opts { + opt(&o) + } + return &Tree[T]{ + root: newNode4[T](), + size: 0, + opts: &o, + } +} + +type Option func(*options) + +// RootOnlyWatch sets the tree to only have a watch channel on the root +// node. This improves the speed at the cost of having a much more coarse +// grained notifications. +func RootOnlyWatch(o *options) { o.rootOnlyWatch = true } + +// Txn constructs a new transaction against the tree. Transactions +// enable efficient large mutations of the tree by caching cloned +// nodes. +func (t *Tree[T]) Txn() *Txn[T] { + txn := &Txn[T]{ + Tree: *t, + watches: make(map[chan struct{}]struct{}), + } + return txn +} + +// Len returns the number of objects in the tree. +func (t *Tree[T]) Len() int { + return t.size +} + +// Get fetches the value associated with the given key. +// Returns the value, a watch channel (which is closed on +// modification to the key) and boolean which is true if +// value was found. +func (t *Tree[T]) Get(key []byte) (T, <-chan struct{}, bool) { + value, watch, ok := search(t.root, key) + if t.opts.rootOnlyWatch { + watch = t.root.watch + } + return value, watch, ok +} + +// Prefix returns an iterator for all objects that starts with the +// given prefix, and a channel that closes when any objects matching +// the given prefix are upserted or deleted. +func (t *Tree[T]) Prefix(prefix []byte) (*Iterator[T], <-chan struct{}) { + iter, watch := prefixSearch(t.root, prefix) + if t.opts.rootOnlyWatch { + watch = t.root.watch + } + return iter, watch +} + +// RootWatch returns a watch channel for the root of the tree. +// Since this is the channel associated with the root, this closes +// when there are any changes to the tree. +func (t *Tree[T]) RootWatch() <-chan struct{} { + return t.root.watch +} + +// LowerBound returns an iterator for all keys that have a value +// equal to or higher than 'key'. +func (t *Tree[T]) LowerBound(key []byte) *Iterator[T] { + return lowerbound(t.root, key) +} + +// Insert inserts the key into the tree with the given value. +// Returns the old value if it exists and a new tree. +func (t *Tree[T]) Insert(key []byte, value T) (old T, hadOld bool, tree *Tree[T]) { + txn := t.Txn() + old, hadOld = txn.Insert(key, value) + tree = txn.Commit() + return +} + +// Modify a value in the tree. If the key does not exist the modify +// function is called with the zero value for T. It is up to the +// caller to not mutate the value in-place and to return a clone. +// Returns the old value if it exists. +func (t *Tree[T]) Modify(key []byte, mod func(T) T) (old T, hadOld bool, tree *Tree[T]) { + txn := t.Txn() + old, hadOld = txn.Modify(key, mod) + tree = txn.Commit() + return +} + +// Delete the given key from the tree. +// Returns the old value if it exists and the new tree. +func (t *Tree[T]) Delete(key []byte) (old T, hadOld bool, tree *Tree[T]) { + txn := t.Txn() + old, hadOld = txn.Delete(key) + tree = txn.Commit() + return +} + +// Iterator returns an iterator for all objects. +func (t *Tree[T]) Iterator() *Iterator[T] { + return newIterator[T](t.root) +} + +// PrintTree to the standard output. For debugging. +func (t *Tree[T]) PrintTree() { + t.root.printTree(0) +} + +type options struct { + rootOnlyWatch bool +} diff --git a/backend/vendor/github.com/cilium/statedb/part/txn.go b/backend/vendor/github.com/cilium/statedb/part/txn.go new file mode 100644 index 000000000..943ab23aa --- /dev/null +++ b/backend/vendor/github.com/cilium/statedb/part/txn.go @@ -0,0 +1,485 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package part + +import ( + "bytes" +) + +// Txn is a transaction against a tree. It allows doing efficient +// modifications to a tree by caching and reusing cloned nodes. +type Txn[T any] struct { + // tree is the tree being modified + Tree[T] + + // mutated is the set of nodes mutated in this transaction + // that we can keep mutating without cloning them again. + // It is cleared if the transaction is cloned or iterated + // upon. + mutated nodeMutated[T] + + // watches contains the channels of cloned nodes that should be closed + // when transaction is committed. + watches map[chan struct{}]struct{} + + // deleteParentsCache keeps the last allocated slice to avoid + // reallocating it on every deletion. + deleteParentsCache []deleteParent[T] +} + +// Len returns the number of objects in the tree. +func (txn *Txn[T]) Len() int { + return txn.size +} + +// Clone returns a clone of the transaction. The clone is unaffected +// by any future changes done with the original transaction. +func (txn *Txn[T]) Clone() *Txn[T] { + // Clear the mutated nodes so that the returned clone won't be changed by + // further modifications in this transaction. + txn.mutated.clear() + return &Txn[T]{ + Tree: txn.Tree, + watches: map[chan struct{}]struct{}{}, + deleteParentsCache: nil, + } +} + +// Insert or update the tree with the given key and value. +// Returns the old value if it exists. +func (txn *Txn[T]) Insert(key []byte, value T) (old T, hadOld bool) { + old, hadOld, txn.root = txn.insert(txn.root, key, value) + if !hadOld { + txn.size++ + } + return +} + +// Modify a value in the tree. If the key does not exist the modify +// function is called with the zero value for T. It is up to the +// caller to not mutate the value in-place and to return a clone. +// Returns the old value if it exists. +func (txn *Txn[T]) Modify(key []byte, mod func(T) T) (old T, hadOld bool) { + old, hadOld, txn.root = txn.modify(txn.root, key, mod) + if !hadOld { + txn.size++ + } + return +} + +// Delete the given key from the tree. +// Returns the old value if it exists. +func (txn *Txn[T]) Delete(key []byte) (old T, hadOld bool) { + old, hadOld, txn.root = txn.delete(txn.root, key) + if hadOld { + txn.size-- + } + return +} + +// RootWatch returns a watch channel for the root of the tree. +// Since this is the channel associated with the root, this closes +// when there are any changes to the tree. +func (txn *Txn[T]) RootWatch() <-chan struct{} { + return txn.root.watch +} + +// Get fetches the value associated with the given key. +// Returns the value, a watch channel (which is closed on +// modification to the key) and boolean which is true if +// value was found. +func (txn *Txn[T]) Get(key []byte) (T, <-chan struct{}, bool) { + value, watch, ok := search(txn.root, key) + if txn.opts.rootOnlyWatch { + watch = txn.root.watch + } + return value, watch, ok +} + +// Prefix returns an iterator for all objects that starts with the +// given prefix, and a channel that closes when any objects matching +// the given prefix are upserted or deleted. +func (txn *Txn[T]) Prefix(key []byte) (*Iterator[T], <-chan struct{}) { + txn.mutated.clear() + iter, watch := prefixSearch(txn.root, key) + if txn.opts.rootOnlyWatch { + watch = txn.root.watch + } + return iter, watch +} + +// LowerBound returns an iterator for all objects that have a +// key equal or higher than the given 'key'. +func (txn *Txn[T]) LowerBound(key []byte) *Iterator[T] { + txn.mutated.clear() + return lowerbound(txn.root, key) +} + +// Iterator returns an iterator for all objects. +func (txn *Txn[T]) Iterator() *Iterator[T] { + txn.mutated.clear() + return newIterator[T](txn.root) +} + +// Commit the transaction and produce the new tree. +func (txn *Txn[T]) Commit() *Tree[T] { + txn.mutated.clear() + for ch := range txn.watches { + close(ch) + } + txn.watches = nil + return &Tree[T]{txn.opts, txn.root, txn.size} +} + +// CommitOnly the transaction, but do not close the +// watch channels. Returns the new tree. +// To close the watch channels call Notify(). +func (txn *Txn[T]) CommitOnly() *Tree[T] { + txn.mutated.clear() + return &Tree[T]{txn.opts, txn.root, txn.size} +} + +// Notify closes the watch channels of nodes that were +// mutated as part of this transaction. +func (txn *Txn[T]) Notify() { + for ch := range txn.watches { + close(ch) + } + txn.watches = nil +} + +// PrintTree to the standard output. For debugging. +func (txn *Txn[T]) PrintTree() { + txn.root.printTree(0) +} + +func (txn *Txn[T]) cloneNode(n *header[T]) *header[T] { + if txn.mutated.exists(n) { + return n + } + if n.watch != nil { + txn.watches[n.watch] = struct{}{} + } + n = n.clone(!txn.opts.rootOnlyWatch || n == txn.root) + txn.mutated.put(n) + return n +} + +func (txn *Txn[T]) insert(root *header[T], key []byte, value T) (oldValue T, hadOld bool, newRoot *header[T]) { + return txn.modify(root, key, func(_ T) T { return value }) +} + +func (txn *Txn[T]) modify(root *header[T], key []byte, mod func(T) T) (oldValue T, hadOld bool, newRoot *header[T]) { + fullKey := key + + this := root + thisp := &newRoot + + // Try to insert the key into the tree. If we find a free slot into which to insert + // it, we do it and return. If an existing node exists where the key should go, then + // we stop. 'this' points to that node, and 'thisp' to its memory location. It has + // not been cloned. + for { + if this.isLeaf() { + // We've reached a leaf node, cannot go further. + break + } + + if !bytes.HasPrefix(key, this.prefix) { + break + } + + // Prefix matched. Consume it and go further. + key = key[len(this.prefix):] + if len(key) == 0 { + // Our key matches this node. + break + } + + child, idx := this.findIndex(key[0]) + if child == nil { + // We've found a free slot where to insert the key. + if this.size()+1 > this.cap() { + // Node too small, promote it to the next size. + if this.watch != nil { + txn.watches[this.watch] = struct{}{} + } + this = this.promote(!txn.opts.rootOnlyWatch || this == newRoot) + txn.mutated.put(this) + } else { + // Node is big enough, clone it so we can mutate it + this = txn.cloneNode(this) + } + var zero T + this.insert(idx, newLeaf(txn.opts, key, fullKey, mod(zero)).self()) + *thisp = this + return + } + + // Clone the parent so we can modify it + this = txn.cloneNode(this) + *thisp = this + // And recurse into the child + thisp = &this.children()[idx] + this = *thisp + } + + // A node exists where we wanted to insert the key. + // 'this' points to it, and 'thisp' is its memory location. The parents + // have been cloned. + switch { + case this.isLeaf(): + common := commonPrefix(key, this.prefix) + if len(common) == len(this.prefix) && len(common) == len(key) { + // Exact match, clone and update the value. + oldValue = this.getLeaf().value + hadOld = true + this = txn.cloneNode(this) + *thisp = this + this.getLeaf().value = mod(oldValue) + } else { + // Partially matching prefix. + newNode := &node4[T]{ + header: header[T]{prefix: common}, + } + newNode.setKind(nodeKind4) + + // Make a shallow copy of the leaf. But keep its watch channel + // intact since we're only manipulating its prefix. + oldLeafCopy := *this.getLeaf() + oldLeaf := &oldLeafCopy + oldLeaf.prefix = oldLeaf.prefix[len(common):] + key = key[len(common):] + var zero T + newLeaf := newLeaf(txn.opts, key, fullKey, mod(zero)) + + // Insert the two leaves into the node we created. If one has + // a key that is a subset of the other, then we can insert them + // as a leaf of the node4, otherwise they become children. + switch { + case len(oldLeaf.prefix) == 0: + oldLeaf.prefix = common + newNode.setLeaf(oldLeaf) + newNode.children[0] = newLeaf.self() + newNode.keys[0] = newLeaf.prefix[0] + newNode.setSize(1) + + case len(key) == 0: + newLeaf.prefix = common + newNode.setLeaf(newLeaf) + newNode.children[0] = oldLeaf.self() + newNode.keys[0] = oldLeaf.prefix[0] + newNode.setSize(1) + + case oldLeaf.prefix[0] < key[0]: + newNode.children[0] = oldLeaf.self() + newNode.keys[0] = oldLeaf.prefix[0] + newNode.children[1] = newLeaf.self() + newNode.keys[1] = key[0] + newNode.setSize(2) + + default: + newNode.children[0] = newLeaf.self() + newNode.keys[0] = key[0] + newNode.children[1] = oldLeaf.self() + newNode.keys[1] = oldLeaf.prefix[0] + newNode.setSize(2) + } + *thisp = newNode.self() + } + case len(key) == 0: + // Exact match, but not a leaf node + this = txn.cloneNode(this) + *thisp = this + if leaf := this.getLeaf(); leaf != nil { + // Replace the existing leaf + oldValue = leaf.value + hadOld = true + leaf = txn.cloneNode(leaf.self()).getLeaf() + leaf.value = mod(oldValue) + this.setLeaf(leaf) + } else { + // Set the leaf + var zero T + this.setLeaf(newLeaf(txn.opts, this.prefix, fullKey, mod(zero))) + } + + default: + // Partially matching prefix, non-leaf node. + common := commonPrefix(key, this.prefix) + + this = txn.cloneNode(this) + *thisp = this + this.prefix = this.prefix[len(common):] + key = key[len(common):] + + var zero T + newLeaf := newLeaf(txn.opts, key, fullKey, mod(zero)) + newNode := &node4[T]{ + header: header[T]{prefix: common}, + } + newNode.setKind(nodeKind4) + + switch { + case len(key) == 0: + newLeaf.prefix = common + newNode.setLeaf(newLeaf) + newNode.children[0] = this + newNode.keys[0] = this.prefix[0] + newNode.setSize(1) + + case this.prefix[0] < key[0]: + newNode.children[0] = this + newNode.keys[0] = this.prefix[0] + newNode.children[1] = newLeaf.self() + newNode.keys[1] = key[0] + newNode.setSize(2) + default: + newNode.children[0] = newLeaf.self() + newNode.keys[0] = key[0] + newNode.children[1] = this + newNode.keys[1] = this.prefix[0] + newNode.setSize(2) + } + *thisp = newNode.self() + } + return +} + +// deleteParent tracks a node on the path to the target node that is being +// deleted. +type deleteParent[T any] struct { + node *header[T] + index int // the index of this node at its parent +} + +func (txn *Txn[T]) delete(root *header[T], key []byte) (oldValue T, hadOld bool, newRoot *header[T]) { + // Reuse the same slice in the transaction to hold the parents in order to avoid + // allocations. Pre-allocate 32 levels to cover most of the use-cases without + // reallocation. + if txn.deleteParentsCache == nil { + txn.deleteParentsCache = make([]deleteParent[T], 0, 32) + } + parents := txn.deleteParentsCache[:1] // Placeholder for root + + newRoot = root + this := root + + // Find the target node and record the path to it. + var leaf *leaf[T] + for { + if bytes.HasPrefix(key, this.prefix) { + key = key[len(this.prefix):] + if len(key) == 0 { + leaf = this.getLeaf() + if leaf == nil { + return + } + // Target node found! + break + } + var idx int + this, idx = this.findIndex(key[0]) + if this == nil { + return + } + parents = append(parents, deleteParent[T]{this, idx}) + } else { + // Reached a node with a different prefix, so node not found. + return + } + } + + oldValue = leaf.value + hadOld = true + + // Mark the watch channel of the target for closing if not mutated already. + if leaf.watch != nil { + txn.watches[leaf.watch] = struct{}{} + } + + if this == root { + // Target is the root, clear it. + if root.isLeaf() || newRoot.size() == 0 { + // Replace leaf or empty root with a node4 + newRoot = newNode4[T]() + } else { + newRoot = txn.cloneNode(root) + newRoot.setLeaf(nil) + } + return + } + + // The target was found, rebuild the tree from the root upwards. + parents[0].node = root + + for i := len(parents) - 1; i > 0; i-- { + parent := &parents[i-1] + target := &parents[i] + + // Clone the parent to mutate it. + parent.node = txn.cloneNode(parent.node) + children := parent.node.children() + + if target.node == this && target.node.size() > 0 { + // This is the node that we want to delete, but it has + // children. Clone and clear the leaf. + target.node = txn.cloneNode(target.node) + target.node.setLeaf(nil) + children[target.index] = target.node + } else if target.node.size() == 0 && (target.node == this || target.node.getLeaf() == nil) { + // The node is empty, remove it from the parent. + parent.node.remove(target.index) + } else { + // Update the target (as it may have been cloned) + children[target.index] = target.node + } + + if parent.node.size() > 0 { + // Check if the node should be demoted. + // To avoid thrashing we don't demote at the boundary, but at a slightly + // smaller size. + // TODO: Can we avoid the initial clone of parent.node? + var newNode *header[T] + switch { + case parent.node.kind() == nodeKind256 && parent.node.size() <= 37: + newNode = (&node48[T]{header: *parent.node}).self() + newNode.setKind(nodeKind48) + n48 := newNode.node48() + n48.leaf = parent.node.getLeaf() + children := n48.children[:0] + for k, n := range parent.node.node256().children[:] { + if n != nil { + n48.index[k] = int8(len(children)) + children = append(children, n) + } + } + case parent.node.kind() == nodeKind48 && parent.node.size() <= 12: + newNode = (&node16[T]{header: *parent.node}).self() + newNode.setKind(nodeKind16) + copy(newNode.children()[:], parent.node.children()) + n16 := newNode.node16() + n16.leaf = parent.node.getLeaf() + size := n16.size() + for i := 0; i < size; i++ { + n16.keys[i] = n16.children[i].prefix[0] + } + case parent.node.kind() == nodeKind16 && parent.node.size() <= 3: + newNode = (&node4[T]{header: *parent.node}).self() + newNode.setKind(nodeKind4) + n16 := parent.node.node16() + size := n16.size() + n4 := newNode.node4() + n4.leaf = n16.leaf + copy(n4.children[:], n16.children[:size]) + copy(n4.keys[:], n16.keys[:size]) + } + if newNode != nil { + parent.node = newNode + } + } + } + newRoot = parents[0].node + return +} diff --git a/backend/vendor/github.com/cilium/stream/CODEOWNERS b/backend/vendor/github.com/cilium/stream/CODEOWNERS new file mode 100644 index 000000000..1031f9db4 --- /dev/null +++ b/backend/vendor/github.com/cilium/stream/CODEOWNERS @@ -0,0 +1,12 @@ +# Code owners groups assigned to this repository and a brief description of their areas: +# @cilium/ci-structure Continuous integration, testing +# @cilium/contributing Developer documentation & tools +# @cilium/github-sec GitHub security (handling of secrets, consequences of pull_request_target, etc.) +# @cilium/sig-foundations Core libraries and guidance to overall software architecture. + +# The following filepaths should be sorted so that more specific paths occur +# after the less specific paths, otherwise the ownership for the specific paths +# is not properly picked up in Github. +* @cilium/sig-foundations +/.github/workflows/ @cilium/github-sec @cilium/ci-structure @cilium/sig-foundations +/CODEOWNERS @cilium/contributing @cilium/sig-foundations diff --git a/backend/vendor/github.com/cilium/stream/LICENSE b/backend/vendor/github.com/cilium/stream/LICENSE new file mode 100644 index 000000000..a2e486a80 --- /dev/null +++ b/backend/vendor/github.com/cilium/stream/LICENSE @@ -0,0 +1,202 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} Authors of Cilium + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + diff --git a/backend/vendor/github.com/cilium/stream/Makefile b/backend/vendor/github.com/cilium/stream/Makefile new file mode 100644 index 000000000..df2ee74e7 --- /dev/null +++ b/backend/vendor/github.com/cilium/stream/Makefile @@ -0,0 +1,15 @@ +.PHONY: all build test test-race bench + +all: build test test-race bench + +build: + go build ./... + +test: + go test ./... -cover + +test-race: + go test -race ./... + +bench: + go test ./... -bench . -test.run xxx diff --git a/backend/vendor/github.com/cilium/stream/README.md b/backend/vendor/github.com/cilium/stream/README.md new file mode 100644 index 000000000..6e9a0a032 --- /dev/null +++ b/backend/vendor/github.com/cilium/stream/README.md @@ -0,0 +1,164 @@ +# Reactive streams for Go + +A reactive streams library for Go in the spirit of Reactive Extensions (Rx) implemented +with generic functions. The library provides a rich set of utilities for wiring +event-passing in a complex application. Included are, for example, operators for +pubsub/fanning out (Multicast), for transforming (Map, Reduce), for rate limiting (Throttle) +and for buffering/coalescing (Buffer). New operators are easy to add as they are normal +top-level functions that take/return the `Observable` type. + +## The Observable + +The stream package provides the Observable interface for observing a stream of +values that can be cancelled and can be either infinite or finite in length. + +The Observable interface is defined as: + +```go +type Observable[T any] interface { + Observe(ctx context.Context, next func(T), complete func(error)) +} +``` + +The `next` function is called for each element in the stream. When the stream +is terminated or cancelled (via `ctx`) `next` will be called for remaining +elements and then `complete` after which neither function is invoked. + +An Observable must adhere to the following rules: + +* Observe() call must not block, e.g. be asynchronous by forking a goroutine. +* `next` must be called sequentially and never in parallel (previous call must complete + before `next` can be called again). +* `complete` can be called at most once. `complete` must not be called in parallel with + `next`. After `complete` is called neither `next` nor `complete` can be called again. +* if `ctx` is completed, calls to `next` should stop in short amount of time and `complete` + must be called with `ctx.Err()`. + +## Operators + +The functions that operate on `Observable[T]` are divided into: + +* [sources](sources.go) that create Observables +* [operators](operators.go) that transform Observables +* [sinks](sinks.go) that consume the Observable + +Since Go's generics does not yet allow new type parameters in methods, all of these +are implemented as top-level functions rather than methods in the Observable interface. +This also makes it easy to add new operators as they're just normal functions. + +## Creating an observable by hand + +As a first example, we'll implement a simple source `Observable` that emits a single integer: + +```go + +type singleIntegerObservable int + +func (num singleIntegerObservable) Observe(ctx context.Context, next func(int), complete func(error)) { + go func() { + next(int(num)) + complete(nil) + }() +} +``` + +We can now try it out with the `Map` operator: + +```go +func main() { + var ten stream.Observable[int] = singleIntegerObservable(10) + + twenty := stream.Map(ten, func(x int) int) { return x * 2 }) + + twenty.Observe( + context.Background(), + func(x int) { + fmt.Printf("%d\n", x) + }, + func(err error) { + fmt.Printf("complete: %s\n", err) + }, + ) +} +``` + +Instead of defining a new type every time we want to implement `Observe`, we can use the `FuncObservable` +helper: + +```go +func singleInt(x int) stream.Observable[int] { + return stream.FuncObservable( + func(ctx context.Context, next func(int), complete func(error)) error { + next(x) + complete(nil) + }, + ) +} +``` + +## Tour of the included operators + +[Sources](sources.go) provide different ways of creating `Observable`s without +having to implement `Observe`: + +```go +Just(10) // emits 10 and completes +Error(errors.New("oh no")) // completes with error +Empty() // completes with nil error +FromSlice([]int{1,2,3}) // emits 1,2,3 and completes +FromChannel(in) // emits items from the given channel +Range(0,3) // emits 0,1,2 and completes + + +// Multicast creates an observable that emits items to all observers. +src, next, complete := Multicast[int]() + +ch1 := ToChannel(ctx, src) +ch2 := ToChannel(ctx, src) +next(1) +<-ch1 // 1 +<-ch2 // 1 +``` + +[Operators](operators.go) transform streams in different ways: +```go +// Map[A, B any](src Observable[A], apply func(A) B) Observable[B] +Map(src, apply) // applies function 'apply' to each item. + +// Filter[T any](src Observable[T], filter func(T) bool) Observable[T] +Filter(src, filter) // applies function 'filter' to each item. If 'filter' returns false the + // item is dropped. + +// Reduce[T, Result any](src Observable[T], init Result, reduce func(T, Result) Result) Observable[Result] +// Applies function 'reduce' to each item to "reduce" the stream into a single value. +Reduce(Range(0, 3), 0, func(x, result int) int { return x + result }) // 0 + 1 + 2 = 3 + +// ToMulticast[T any](src Observable[T], opts ...MulticastOpt) (mcast Observable[T], connect func(context.Context)) +// Converts an observable into a multicast observable +src, connect := ToMulticast(Range(1,5)) +ch1 := ToChannel(ctx, src) +ch2 := ToChannel(ctx, src) +connect(ctx) // start observing the parent observable +<-ch1 // 1 +<-ch2 // 1 +``` + +[Sinks](stream/sinks.go) consume streams: +```go +// First[T any](ctx context.Context, src Observable[T]) (item T, err error) +// Takes the first item from the observable and then cancels it. +item, err := First(ctx, src) + +// ToSlice[T any](ctx context.Context, src Observable[T]) (items []T, err error) +// Converts the observable into a slice. +items, err := ToSlice(ctx, src) + +// ToChannel[T any](ctx context.Context, src Observable[T], opts ...ToChannelOpt) <-chan T +// Converts the observable into a channel. +items := ToChannel(ctx, src) + +// Discard[T any](ctx context.Context, src Observable[T]) error +// Consumes the observable by discarding the elements. +Discard(ctx, src) +``` + diff --git a/backend/vendor/github.com/cilium/stream/observable.go b/backend/vendor/github.com/cilium/stream/observable.go new file mode 100644 index 000000000..22e96af95 --- /dev/null +++ b/backend/vendor/github.com/cilium/stream/observable.go @@ -0,0 +1,59 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +// The stream package provides utilities for working with observable streams. +// Any type that implements the Observable interface can be transformed and +// consumed with these utilities. +package stream + +import "context" + +// Observable defines the Observe method for observing a stream of values. +// +// Also see https://reactivex.io/documentation/observable.html for in-depth +// description of observables. +// +// For interactive diagrams see https://rxmarbles.com/. +type Observable[T any] interface { + // Observe a stream of values as long as the given context is valid. + // 'next' is called for each item, and finally 'complete' is called + // when the stream is complete, or an error has occurred. + // + // Observable implementations are allowed to call 'next' and 'complete' + // from any goroutine, but never concurrently. + Observe(ctx context.Context, next func(T), complete func(error)) +} + +// FuncObservable implements the Observable interface with a function. +// +// This provides a convenient way of creating new observables without having +// to introduce a new type: +// +// var Ones Observable[int] = +// FuncObservable[int]( +// func(ctx context.Context, next func(int), complete func(error)) { +// go func() { +// defer complete(nil) +// for ctx.Err() == nil { +// next(1) +// } +// }() +// }) +// +// versus with a new type: +// +// type onesObservable struct {} +// +// func (o onesObservable) Observe(ctx context.Context, next func(int), complete func(error)) { +// go func() { +// defer complete(nil) +// for ctx.Err() == nil { +// next(1) +// } +// }() +// } +type FuncObservable[T any] func(context.Context, func(T), func(error)) + +func (f FuncObservable[T]) Observe(ctx context.Context, next func(T), complete func(error)) { + f(ctx, next, complete) +} diff --git a/backend/vendor/github.com/cilium/stream/operators.go b/backend/vendor/github.com/cilium/stream/operators.go new file mode 100644 index 000000000..6823f281a --- /dev/null +++ b/backend/vendor/github.com/cilium/stream/operators.go @@ -0,0 +1,383 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package stream + +import ( + "context" + "time" + + "golang.org/x/time/rate" +) + +// +// Operators transform the observable stream. +// + +// Map applies a function onto values of an observable and emits the resulting values. +// +// Map(Range(1,4), func(x int) int { return x * 2}) +// => [2,4,6] +func Map[A, B any](src Observable[A], apply func(A) B) Observable[B] { + return FuncObservable[B]( + func(ctx context.Context, next func(B), complete func(error)) { + src.Observe( + ctx, + func(a A) { next(apply(a)) }, + complete) + }) +} + +// Filter only emits the values for which the provided predicate returns true. +// +// Filter(Range(1,4), func(x int) int { return x%2 == 0 }) +// => [2] +func Filter[T any](src Observable[T], pred func(T) bool) Observable[T] { + return FuncObservable[T]( + func(ctx context.Context, next func(T), complete func(error)) { + src.Observe( + ctx, + func(x T) { + if pred(x) { + next(x) + } + }, + complete) + }) +} + +// Reduce takes an initial state, and a function 'reduce' that is called on each element +// along with a state and returns an observable with a single item: the state produced +// by the last call to 'reduce'. +// +// Reduce(Range(1,4), 0, func(sum, item int) int { return sum + item }) +// => [(0+1+2+3)] => [6] +func Reduce[Item, Result any](src Observable[Item], init Result, reduce func(Result, Item) Result) Observable[Result] { + result := init + return FuncObservable[Result]( + func(ctx context.Context, next func(Result), complete func(error)) { + src.Observe( + ctx, + func(x Item) { + result = reduce(result, x) + }, + func(err error) { + if err == nil { + next(result) + } + complete(err) + }) + }) +} + +// Concat takes one or more observable of the same type and emits the items from each of +// them in order. +func Concat[T any](srcs ...Observable[T]) Observable[T] { + return FuncObservable[T]( + func(ctx context.Context, next func(T), complete func(error)) { + go func() { + for _, src := range srcs { + errs := make(chan error, 1) + src.Observe( + ctx, + next, + func(err error) { + if err != nil { + errs <- err + } + close(errs) + }, + ) + if err, ok := <-errs; ok { + complete(err) + return + } + } + complete(nil) + }() + }) +} + +// FlatMap applies a function that returns an observable of Bs to the source observable of As. +// The observable from the 'apply' function is flattened to produce a flat stream of Bs. +func FlatMap[A, B any](src Observable[A], apply func(A) Observable[B]) Observable[B] { + return FuncObservable[B]( + func(ctx context.Context, next func(B), complete func(error)) { + ctx, cancel := context.WithCancel(ctx) + innerErrs := make(chan error, 1) + src.Observe( + ctx, + func(a A) { + done := make(chan struct{}) + apply(a).Observe( + ctx, + next, + func(err error) { + if err != nil { + select { + case innerErrs <- err: + default: + } + cancel() + } + close(done) + }, + ) + <-done + }, + func(err error) { + defer close(innerErrs) + select { + case innerErr := <-innerErrs: + complete(innerErr) + default: + complete(err) + } + }, + ) + }) +} + +// Distinct skips adjacent equal values. +// +// Distinct(FromSlice([]int{1,1,2,2,3}) +// => [1,2,3] +func Distinct[T comparable](src Observable[T]) Observable[T] { + var prev T + first := true + return Filter(src, func(item T) bool { + if first { + first = false + prev = item + return true + } + eq := prev == item + prev = item + return !eq + }) +} + +// RetryFunc decides whether the processing should be retried given the error +type RetryFunc func(err error) bool + +// Retry resubscribes to the observable if it completes with an error. +func Retry[T any](src Observable[T], shouldRetry RetryFunc) Observable[T] { + return FuncObservable[T]( + func(ctx context.Context, next func(T), complete func(error)) { + var observe func() + observe = func() { + src.Observe( + ctx, + next, + func(err error) { + if err != nil && shouldRetry(err) { + observe() + } else { + complete(err) + } + }) + } + observe() + }) +} + +// AlwaysRetry always asks for a retry regardless of the error. +func AlwaysRetry(err error) bool { + return true +} + +// BackoffRetry retries with an exponential backoff. +func BackoffRetry(shouldRetry RetryFunc, minBackoff, maxBackoff time.Duration) RetryFunc { + backoff := minBackoff + return func(err error) bool { + time.Sleep(backoff) + backoff *= 2 + if backoff > maxBackoff { + backoff = maxBackoff + } + return shouldRetry(err) + } + +} + +// LimitRetries limits the number of retries with the given retry method. +// e.g. LimitRetries(BackoffRetry(time.Millisecond, time.Second), 5) +func LimitRetries(shouldRetry RetryFunc, numRetries int) RetryFunc { + return func(err error) bool { + if numRetries <= 0 { + return false + } + numRetries-- + return shouldRetry(err) + } +} + +// ToMulticast makes 'src' a multicast observable, e.g. each observer will observe +// the same sequence. Useful for fanning out items to multiple observers from a source +// that is consumed by the act of observing. +// +// mcast, connect := ToMulticast(FromChannel(values)) +// a := ToSlice(mcast) +// b := ToSlice(mcast) +// connect(ctx) // start! +// => a == b +func ToMulticast[T any](src Observable[T], opts ...MulticastOpt) (mcast Observable[T], connect func(context.Context)) { + mcast, next, complete := Multicast[T](opts...) + connect = func(ctx context.Context) { + src.Observe(ctx, next, complete) + } + return mcast, connect +} + +// Throttle limits the rate at which items are emitted. +func Throttle[T any](src Observable[T], ratePerSecond float64, burst int) Observable[T] { + return FuncObservable[T]( + func(ctx context.Context, next func(T), complete func(error)) { + limiter := rate.NewLimiter(rate.Limit(ratePerSecond), burst) + var limiterErr error + subCtx, cancel := context.WithCancel(ctx) + src.Observe( + subCtx, + func(item T) { + limiterErr = limiter.Wait(ctx) + if limiterErr != nil { + cancel() + return + } + next(item) + }, + func(err error) { + if limiterErr != nil { + complete(limiterErr) + } else { + complete(err) + } + + }, + ) + }) +} + +// Debounce emits an item only after the specified duration has lapsed since +// the previous item was emitted. Only the latest item is emitted. +// +// In: a b c d e |-> +// Out: a d e |-> +func Debounce[T any](src Observable[T], duration time.Duration) Observable[T] { + return FuncObservable[T]( + func(ctx context.Context, next func(T), complete func(error)) { + errs := make(chan error, 1) + items := ToChannel(ctx, src, WithErrorChan(errs)) + go func() { + defer close(errs) + + timer := time.NewTimer(duration) + defer timer.Stop() + + timerElapsed := true // Do not delay the first item. + var latest *T + + for { + select { + case err := <-errs: + complete(err) + return + + case item, ok := <-items: + if !ok { + items = nil + latest = nil + continue + } + + if timerElapsed { + next(item) + timerElapsed = false + latest = nil + timer.Reset(duration) + } else { + latest = &item + } + + case <-timer.C: + if latest != nil { + next(*latest) + latest = nil + timer.Reset(duration) + } else { + timerElapsed = true + } + } + } + }() + }) +} + +// Buffer collects items into a buffer using the given buffering function and +// emits the buffer when 'waitTime' has elapsed. Buffer does not emit empty +// buffers. +// +// In: a b c |-> +// Out: [a,b] [c] |-> +func Buffer[Buf any, T any]( + src Observable[T], + bufferSize int, + waitTime time.Duration, + bufferItem func(Buf, T) Buf) Observable[Buf] { + + return FuncObservable[Buf]( + func(ctx context.Context, next func(Buf), complete func(error)) { + items := make(chan T, bufferSize) + errs := make(chan error, 1) + src.Observe( + ctx, + func(item T) { + items <- item + }, + func(err error) { + close(items) + errs <- err + close(errs) + }) + go func() { + ticker := time.NewTicker(waitTime) + defer ticker.Stop() + + var ( + emptyBuf Buf + buf Buf + ) + n := 0 + loop: + for { + select { + case <-ticker.C: + if n > 0 { + next(buf) + buf = emptyBuf + n = 0 + } + + case item, ok := <-items: + if !ok { + break loop + } + buf = bufferItem(buf, item) + n++ + if n >= bufferSize { + next(buf) + buf = emptyBuf + n = 0 + } + } + } + + if n > 0 { + next(buf) + } + complete(<-errs) + }() + + }) + +} diff --git a/backend/vendor/github.com/cilium/stream/sinks.go b/backend/vendor/github.com/cilium/stream/sinks.go new file mode 100644 index 000000000..0cfcc01ab --- /dev/null +++ b/backend/vendor/github.com/cilium/stream/sinks.go @@ -0,0 +1,194 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package stream + +import ( + "context" + "io" + "sync" + "sync/atomic" +) + +// +// Sinks: operators that consume the observable to produce a value. +// + +// First returns the first item from 'src' observable and then cancels +// the subscription. Blocks until first item is observed or the stream +// is completed. If the observable completes without emitting items +// then io.EOF error is returned. +func First[T any](ctx context.Context, src Observable[T]) (item T, err error) { + subCtx, cancel := context.WithCancel(ctx) + var taken atomic.Bool + errs := make(chan error) + src.Observe(subCtx, + func(x T) { + if !taken.CompareAndSwap(false, true) { + return + } + item = x + cancel() + }, + func(err error) { + errs <- err + close(errs) + }) + + err = <-errs + + if taken.Load() { + // We got the item, ignore any error. + err = nil + } else if err == nil { + // No error and no item => EOF + err = io.EOF + } + + return +} + +// Last returns the last item from 'src' observable. Blocks until +// the stream has been completed. If no items are observed then +// io.EOF error is returned. +func Last[T any](ctx context.Context, src Observable[T]) (item T, err error) { + errs := make(chan error) + var taken atomic.Bool + src.Observe( + ctx, + func(x T) { + item = x + taken.Store(true) + }, + func(err error) { + errs <- err + close(errs) + }) + + err = <-errs + if taken.Load() { + // We got the item, ignore any error. + err = nil + } else if err == nil { + // No error and no item => EOF + err = io.EOF + } + return item, err +} + +// ToSlice converts an Observable into a slice. +// +// ToSlice(ctx, Range(1,4)) +// => ([]int{1,2,3}, nil) +func ToSlice[T any](ctx context.Context, src Observable[T]) (items []T, err error) { + errs := make(chan error) + items = make([]T, 0) + src.Observe( + ctx, + func(item T) { + items = append(items, item) + }, + func(err error) { + errs <- err + close(errs) + }) + return items, <-errs +} + +type toChannelOpts struct { + bufferSize int + errorChan chan error +} + +type ToChannelOpt func(*toChannelOpts) + +// WithBufferSize sets the buffer size of the channel returned by ToChannel. +func WithBufferSize(n int) ToChannelOpt { + return func(o *toChannelOpts) { + o.bufferSize = n + } +} + +// WithErrorChan asks ToChannel to send completion error to the provided channel. +func WithErrorChan(errCh chan error) ToChannelOpt { + return func(o *toChannelOpts) { + o.errorChan = errCh + } +} + +// ToChannel converts an observable into a channel. +// When the provided context is cancelled the underlying subscription is cancelled +// and the channel is closed. To receive completion errors use [WithErrorChan]. +// +// items <- ToChannel(ctx, Range(1,4)) +// a := <- items +// b := <- items +// c := <- items +// _, ok := <- items +// => a=1, b=2, c=3, ok=false +func ToChannel[T any](ctx context.Context, src Observable[T], opts ...ToChannelOpt) <-chan T { + var o toChannelOpts + for _, opt := range opts { + opt(&o) + } + items := make(chan T, o.bufferSize) + src.Observe( + ctx, + func(item T) { items <- item }, + func(err error) { + close(items) + if o.errorChan != nil { + o.errorChan <- err + } + }) + return items +} + +// ToTruncatingChannel is like ToChannel but with a local buffer to decouple the +// source observable from the observer. +// It is useful when the source observable cannot be delayed by a slow consumer +// and it is safe for the consumer to lose intermediate items while busy. +func ToTruncatingChannel[T any](ctx context.Context, src Observable[T], opts ...ToChannelOpt) <-chan T { + items := ToChannel(ctx, src, opts...) + out := make(chan T) + go func() { + defer close(out) + var ( + ch chan T + buf T + ) + for { + select { + case v, ok := <-items: + if !ok { + return + } + buf = v + ch = out + case ch <- buf: + ch = nil + } + } + }() + return out +} + +// Discard discards all items from 'src'. +func Discard[T any](ctx context.Context, src Observable[T]) { + src.Observe(ctx, + func(item T) {}, + func(err error) {}) +} + +// ObserveWithWaitGroup is like Observe(), but adds to a WaitGroup and calls +// Done() when complete. +func ObserveWithWaitGroup[T any](ctx context.Context, wg *sync.WaitGroup, src Observable[T], next func(T), complete func(error)) { + wg.Add(1) + src.Observe( + ctx, + next, + func(err error) { + complete(err) + wg.Done() + }) +} diff --git a/backend/vendor/github.com/cilium/stream/sources.go b/backend/vendor/github.com/cilium/stream/sources.go new file mode 100644 index 000000000..004532fd2 --- /dev/null +++ b/backend/vendor/github.com/cilium/stream/sources.go @@ -0,0 +1,262 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright Authors of Cilium + +package stream + +import ( + "context" + "sync" +) + +// Just creates an observable that emits a single item and completes. +// +// xs, err := ToSlice(ctx, Just(1)) +// => xs == []int{1}, err == nil +func Just[T any](item T) Observable[T] { + return FuncObservable[T]( + func(ctx context.Context, next func(T), complete func(error)) { + go func() { + if err := ctx.Err(); err != nil { + complete(err) + } else { + next(item) + complete(nil) + } + }() + }) +} + +// Stuck creates an observable that never emits anything and +// just waits for the context to be cancelled. +// Mainly meant for testing. +func Stuck[T any]() Observable[T] { + return FuncObservable[T]( + func(ctx context.Context, next func(T), complete func(error)) { + go func() { + <-ctx.Done() + complete(ctx.Err()) + }() + }) +} + +// Error creates an observable that fails immediately with given error. +// +// failErr = errors.New("fail") +// xs, err := ToSlice(ctx, Error[int](failErr)) +// => xs == []int{}, err == failErr +func Error[T any](err error) Observable[T] { + return FuncObservable[T]( + func(ctx context.Context, next func(T), complete func(error)) { + go complete(err) + }) +} + +// Empty creates an "empty" observable that completes immediately. +// +// xs, err := ToSlice(Empty[int]()) +// => xs == []int{}, err == nil +func Empty[T any]() Observable[T] { + return Error[T](nil) +} + +// FromSlice converts a slice into an Observable. +// +// ToSlice(ctx, FromSlice([]int{1,2,3}) +// => []int{1,2,3} +func FromSlice[T any](items []T) Observable[T] { + // Emit items in chunks to reduce overhead of mutex in ctx.Err(). + const chunkSize = 64 + return FuncObservable[T]( + func(ctx context.Context, next func(T), complete func(error)) { + go func() { + for chunk := 0; chunk < len(items); chunk += chunkSize { + if err := ctx.Err(); err != nil { + complete(err) + return + } + for i := chunk; i < len(items) && i < chunk+chunkSize; i++ { + next(items[i]) + } + } + complete(nil) + }() + }) +} + +// FromChannel creates an observable from a channel. The channel is consumed +// by the first observer. +// +// values := make(chan int) +// go func() { +// values <- 1 +// values <- 2 +// values <- 3 +// close(values) +// }() +// obs := FromChannel(values) +// xs, err := ToSlice(ctx, obs) +// => xs == []int{1,2,3}, err == nil +// +// xs, err = ToSlice(ctx, obs) +// => xs == []int{}, err == nil +func FromChannel[T any](in <-chan T) Observable[T] { + return FuncObservable[T]( + func(ctx context.Context, next func(T), complete func(error)) { + go func() { + done := ctx.Done() + for { + select { + case <-done: + complete(ctx.Err()) + return + case v, ok := <-in: + if !ok { + complete(nil) + return + } + next(v) + } + } + }() + }) +} + +// Range creates an observable that emits integers in range from...to-1. +// +// ToSlice(ctx, Range(1,2,3)) => []int{1,2,3} +func Range(from, to int) Observable[int] { + return FuncObservable[int]( + func(ctx context.Context, next func(int), complete func(error)) { + go func() { + for i := from; i < to; i++ { + if ctx.Err() != nil { + break + } + next(i) + } + complete(ctx.Err()) + }() + }) +} + +type mcastSubscriber[T any] struct { + next func(T) + complete func() +} + +type MulticastOpt func(o *mcastOpts) + +type mcastOpts struct { + emitLatest bool +} + +func (o mcastOpts) apply(opts []MulticastOpt) mcastOpts { + for _, opt := range opts { + opt(&o) + } + return o +} + +// Multicast options +var ( + // Emit the latest seen item when subscribing. + EmitLatest = func(o *mcastOpts) { o.emitLatest = true } +) + +// Multicast creates an observable that "multicasts" the emitted items to all observers. +// +// mcast, next, complete := Multicast[int]() +// next(1) // no observers, none receives this +// sub1 := ToChannel(ctx, mcast, WithBufferSize(10)) +// sub2 := ToChannel(ctx, mcast, WithBufferSize(10)) +// next(2) +// next(3) +// complete(nil) +// => sub1 == sub2 == [2,3] +// +// mcast, next, complete = Multicast[int](EmitLatest) +// next(1) +// next(2) // "EmitLatest" tells Multicast to keep this +// x, err := First(ctx, mcast) +// => x == 2, err == nil +func Multicast[T any](opts ...MulticastOpt) (mcast Observable[T], next func(T), complete func(error)) { + var ( + mu sync.Mutex + subId int + subs = make(map[int]mcastSubscriber[T]) + latestValue T + completed bool + completeErr error + haveLatest bool + opt = mcastOpts{}.apply(opts) + ) + + next = func(item T) { + mu.Lock() + defer mu.Unlock() + if completed { + return + } + if opt.emitLatest { + latestValue = item + haveLatest = true + } + for _, sub := range subs { + sub.next(item) + } + } + + complete = func(err error) { + mu.Lock() + defer mu.Unlock() + completed = true + completeErr = err + for _, sub := range subs { + sub.complete() + } + subs = nil + } + + mcast = FuncObservable[T]( + func(ctx context.Context, subNext func(T), subComplete func(error)) { + mu.Lock() + if completed { + mu.Unlock() + go subComplete(completeErr) + return + } + + subCtx, cancel := context.WithCancel(ctx) + thisId := subId + subId++ + subs[thisId] = mcastSubscriber[T]{ + subNext, + cancel, + } + + // Continue subscribing asynchronously so caller is not blocked. + go func() { + if opt.emitLatest && haveLatest { + subNext(latestValue) + } + mu.Unlock() + + // Wait for cancellation by observer, or completion from upstream. + <-subCtx.Done() + + // Remove the observer and complete. + var err error + mu.Lock() + delete(subs, thisId) + if completed { + err = completeErr + } else { + err = subCtx.Err() + } + mu.Unlock() + subComplete(err) + }() + }) + + return +} diff --git a/backend/vendor/github.com/google/gopacket/.travis.gofmt.sh b/backend/vendor/github.com/google/gopacket/.travis.gofmt.sh deleted file mode 100644 index e341a1cb7..000000000 --- a/backend/vendor/github.com/google/gopacket/.travis.gofmt.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -cd "$(dirname $0)" -if [ -n "$(go fmt ./...)" ]; then - echo "Go code is not formatted, run 'go fmt github.com/google/stenographer/...'" >&2 - exit 1 -fi diff --git a/backend/vendor/github.com/google/gopacket/.travis.golint.sh b/backend/vendor/github.com/google/gopacket/.travis.golint.sh deleted file mode 100644 index 0e267f521..000000000 --- a/backend/vendor/github.com/google/gopacket/.travis.golint.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -cd "$(dirname $0)" - -go get golang.org/x/lint/golint -DIRS=". tcpassembly tcpassembly/tcpreader ip4defrag reassembly macs pcapgo pcap afpacket pfring routing defrag/lcmdefrag" -# Add subdirectories here as we clean up golint on each. -for subdir in $DIRS; do - pushd $subdir - if golint | - grep -v CannotSetRFMon | # pcap exported error name - grep -v DataLost | # tcpassembly/tcpreader exported error name - grep .; then - exit 1 - fi - popd -done - -pushd layers -for file in *.go; do - if cat .lint_blacklist | grep -q $file; then - echo "Skipping lint of $file due to .lint_blacklist" - elif golint $file | grep .; then - echo "Lint error in file $file" - exit 1 - fi -done -popd diff --git a/backend/vendor/github.com/google/gopacket/.travis.govet.sh b/backend/vendor/github.com/google/gopacket/.travis.govet.sh deleted file mode 100644 index a5c13544c..000000000 --- a/backend/vendor/github.com/google/gopacket/.travis.govet.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -cd "$(dirname $0)" -DIRS=". layers pcap pcapgo tcpassembly tcpassembly/tcpreader routing ip4defrag bytediff macs defrag/lcmdefrag" -set -e -for subdir in $DIRS; do - pushd $subdir - go vet - popd -done diff --git a/backend/vendor/github.com/google/gopacket/.travis.install.sh b/backend/vendor/github.com/google/gopacket/.travis.install.sh deleted file mode 100644 index 648c90163..000000000 --- a/backend/vendor/github.com/google/gopacket/.travis.install.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -set -ev - -go get github.com/google/gopacket -go get github.com/google/gopacket/layers -go get github.com/google/gopacket/tcpassembly -go get github.com/google/gopacket/reassembly -go get github.com/google/gopacket/pcapgo diff --git a/backend/vendor/github.com/google/gopacket/.travis.script.sh b/backend/vendor/github.com/google/gopacket/.travis.script.sh deleted file mode 100644 index a483f4f7c..000000000 --- a/backend/vendor/github.com/google/gopacket/.travis.script.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -set -ev - -go test github.com/google/gopacket -go test github.com/google/gopacket/layers -go test github.com/google/gopacket/tcpassembly -go test github.com/google/gopacket/reassembly -go test github.com/google/gopacket/pcapgo -go test github.com/google/gopacket/pcap diff --git a/backend/vendor/github.com/google/gopacket/.travis.yml b/backend/vendor/github.com/google/gopacket/.travis.yml deleted file mode 100644 index 84f1f4945..000000000 --- a/backend/vendor/github.com/google/gopacket/.travis.yml +++ /dev/null @@ -1,57 +0,0 @@ -language: go -go: - - 1.11.x - - 1.12.x - - 1.13.x - - master - -addons: - apt: - packages: - libpcap-dev - -# use modules except for older versions (see below) -install: true - -env: - - GO111MODULE=on - -script: ./.travis.script.sh - -matrix: - fast_finish: true - allow_failures: - - go: master - -jobs: - include: - - go: 1.5.x - install: ./.travis.install.sh - - go: 1.6.x - install: ./.travis.install.sh - - go: 1.7.x - install: ./.travis.install.sh - - go: 1.8.x - install: ./.travis.install.sh - - go: 1.9.x - install: ./.travis.install.sh - - go: 1.10.x - install: ./.travis.install.sh - - os: osx - go: 1.x -# windows doesn't work on travis (package installation just hangs and then errors out) -# - os: windows -# go: 1.x -# # We don't need nmap - but that's the only way to get npcap: -# before_install: choco install npcap --version 0.86 -y - - stage: style - name: "fmt/vet/lint" - go: 1.x - script: - - ./.travis.gofmt.sh - - ./.travis.govet.sh - - ./.travis.golint.sh - -stages: - - style - - test diff --git a/backend/vendor/github.com/google/gopacket/README.md b/backend/vendor/github.com/google/gopacket/README.md deleted file mode 100644 index efe462ee1..000000000 --- a/backend/vendor/github.com/google/gopacket/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# GoPacket - -This library provides packet decoding capabilities for Go. -See [godoc](https://godoc.org/github.com/google/gopacket) for more details. - -[![Build Status](https://travis-ci.org/google/gopacket.svg?branch=master)](https://travis-ci.org/google/gopacket) -[![GoDoc](https://godoc.org/github.com/google/gopacket?status.svg)](https://godoc.org/github.com/google/gopacket) - -Minimum Go version required is 1.5 except for pcapgo/EthernetHandle, afpacket, and bsdbpf which need at least 1.9 due to x/sys/unix dependencies. - -Originally forked from the gopcap project written by Andreas -Krennmair (http://github.com/akrennmair/gopcap). diff --git a/backend/vendor/github.com/google/gopacket/layers/enums_generated.go b/backend/vendor/github.com/google/gopacket/layers/enums_generated.go deleted file mode 100644 index bf77aac50..000000000 --- a/backend/vendor/github.com/google/gopacket/layers/enums_generated.go +++ /dev/null @@ -1,434 +0,0 @@ -// Copyright 2012 Google, Inc. All rights reserved. - -package layers - -// Created by gen2.go, don't edit manually -// Generated at 2017-10-23 10:20:24.458771856 -0600 MDT m=+0.001159033 - -import ( - "fmt" - - "github.com/google/gopacket" -) - -func init() { - initUnknownTypesForLinkType() - initUnknownTypesForEthernetType() - initUnknownTypesForPPPType() - initUnknownTypesForIPProtocol() - initUnknownTypesForSCTPChunkType() - initUnknownTypesForPPPoECode() - initUnknownTypesForFDDIFrameControl() - initUnknownTypesForEAPOLType() - initUnknownTypesForProtocolFamily() - initUnknownTypesForDot11Type() - initUnknownTypesForUSBTransportType() - initActualTypeData() -} - -// Decoder calls LinkTypeMetadata.DecodeWith's decoder. -func (a LinkType) Decode(data []byte, p gopacket.PacketBuilder) error { - return LinkTypeMetadata[a].DecodeWith.Decode(data, p) -} - -// String returns LinkTypeMetadata.Name. -func (a LinkType) String() string { - return LinkTypeMetadata[a].Name -} - -// LayerType returns LinkTypeMetadata.LayerType. -func (a LinkType) LayerType() gopacket.LayerType { - return LinkTypeMetadata[a].LayerType -} - -type errorDecoderForLinkType int - -func (a *errorDecoderForLinkType) Decode(data []byte, p gopacket.PacketBuilder) error { - return a -} -func (a *errorDecoderForLinkType) Error() string { - return fmt.Sprintf("Unable to decode LinkType %d", int(*a)) -} - -var errorDecodersForLinkType [256]errorDecoderForLinkType -var LinkTypeMetadata [256]EnumMetadata - -func initUnknownTypesForLinkType() { - for i := 0; i < 256; i++ { - errorDecodersForLinkType[i] = errorDecoderForLinkType(i) - LinkTypeMetadata[i] = EnumMetadata{ - DecodeWith: &errorDecodersForLinkType[i], - Name: "UnknownLinkType", - } - } -} - -// Decoder calls EthernetTypeMetadata.DecodeWith's decoder. -func (a EthernetType) Decode(data []byte, p gopacket.PacketBuilder) error { - return EthernetTypeMetadata[a].DecodeWith.Decode(data, p) -} - -// String returns EthernetTypeMetadata.Name. -func (a EthernetType) String() string { - return EthernetTypeMetadata[a].Name -} - -// LayerType returns EthernetTypeMetadata.LayerType. -func (a EthernetType) LayerType() gopacket.LayerType { - return EthernetTypeMetadata[a].LayerType -} - -type errorDecoderForEthernetType int - -func (a *errorDecoderForEthernetType) Decode(data []byte, p gopacket.PacketBuilder) error { - return a -} -func (a *errorDecoderForEthernetType) Error() string { - return fmt.Sprintf("Unable to decode EthernetType %d", int(*a)) -} - -var errorDecodersForEthernetType [65536]errorDecoderForEthernetType -var EthernetTypeMetadata [65536]EnumMetadata - -func initUnknownTypesForEthernetType() { - for i := 0; i < 65536; i++ { - errorDecodersForEthernetType[i] = errorDecoderForEthernetType(i) - EthernetTypeMetadata[i] = EnumMetadata{ - DecodeWith: &errorDecodersForEthernetType[i], - Name: "UnknownEthernetType", - } - } -} - -// Decoder calls PPPTypeMetadata.DecodeWith's decoder. -func (a PPPType) Decode(data []byte, p gopacket.PacketBuilder) error { - return PPPTypeMetadata[a].DecodeWith.Decode(data, p) -} - -// String returns PPPTypeMetadata.Name. -func (a PPPType) String() string { - return PPPTypeMetadata[a].Name -} - -// LayerType returns PPPTypeMetadata.LayerType. -func (a PPPType) LayerType() gopacket.LayerType { - return PPPTypeMetadata[a].LayerType -} - -type errorDecoderForPPPType int - -func (a *errorDecoderForPPPType) Decode(data []byte, p gopacket.PacketBuilder) error { - return a -} -func (a *errorDecoderForPPPType) Error() string { - return fmt.Sprintf("Unable to decode PPPType %d", int(*a)) -} - -var errorDecodersForPPPType [65536]errorDecoderForPPPType -var PPPTypeMetadata [65536]EnumMetadata - -func initUnknownTypesForPPPType() { - for i := 0; i < 65536; i++ { - errorDecodersForPPPType[i] = errorDecoderForPPPType(i) - PPPTypeMetadata[i] = EnumMetadata{ - DecodeWith: &errorDecodersForPPPType[i], - Name: "UnknownPPPType", - } - } -} - -// Decoder calls IPProtocolMetadata.DecodeWith's decoder. -func (a IPProtocol) Decode(data []byte, p gopacket.PacketBuilder) error { - return IPProtocolMetadata[a].DecodeWith.Decode(data, p) -} - -// String returns IPProtocolMetadata.Name. -func (a IPProtocol) String() string { - return IPProtocolMetadata[a].Name -} - -// LayerType returns IPProtocolMetadata.LayerType. -func (a IPProtocol) LayerType() gopacket.LayerType { - return IPProtocolMetadata[a].LayerType -} - -type errorDecoderForIPProtocol int - -func (a *errorDecoderForIPProtocol) Decode(data []byte, p gopacket.PacketBuilder) error { - return a -} -func (a *errorDecoderForIPProtocol) Error() string { - return fmt.Sprintf("Unable to decode IPProtocol %d", int(*a)) -} - -var errorDecodersForIPProtocol [256]errorDecoderForIPProtocol -var IPProtocolMetadata [256]EnumMetadata - -func initUnknownTypesForIPProtocol() { - for i := 0; i < 256; i++ { - errorDecodersForIPProtocol[i] = errorDecoderForIPProtocol(i) - IPProtocolMetadata[i] = EnumMetadata{ - DecodeWith: &errorDecodersForIPProtocol[i], - Name: "UnknownIPProtocol", - } - } -} - -// Decoder calls SCTPChunkTypeMetadata.DecodeWith's decoder. -func (a SCTPChunkType) Decode(data []byte, p gopacket.PacketBuilder) error { - return SCTPChunkTypeMetadata[a].DecodeWith.Decode(data, p) -} - -// String returns SCTPChunkTypeMetadata.Name. -func (a SCTPChunkType) String() string { - return SCTPChunkTypeMetadata[a].Name -} - -// LayerType returns SCTPChunkTypeMetadata.LayerType. -func (a SCTPChunkType) LayerType() gopacket.LayerType { - return SCTPChunkTypeMetadata[a].LayerType -} - -type errorDecoderForSCTPChunkType int - -func (a *errorDecoderForSCTPChunkType) Decode(data []byte, p gopacket.PacketBuilder) error { - return a -} -func (a *errorDecoderForSCTPChunkType) Error() string { - return fmt.Sprintf("Unable to decode SCTPChunkType %d", int(*a)) -} - -var errorDecodersForSCTPChunkType [256]errorDecoderForSCTPChunkType -var SCTPChunkTypeMetadata [256]EnumMetadata - -func initUnknownTypesForSCTPChunkType() { - for i := 0; i < 256; i++ { - errorDecodersForSCTPChunkType[i] = errorDecoderForSCTPChunkType(i) - SCTPChunkTypeMetadata[i] = EnumMetadata{ - DecodeWith: &errorDecodersForSCTPChunkType[i], - Name: "UnknownSCTPChunkType", - } - } -} - -// Decoder calls PPPoECodeMetadata.DecodeWith's decoder. -func (a PPPoECode) Decode(data []byte, p gopacket.PacketBuilder) error { - return PPPoECodeMetadata[a].DecodeWith.Decode(data, p) -} - -// String returns PPPoECodeMetadata.Name. -func (a PPPoECode) String() string { - return PPPoECodeMetadata[a].Name -} - -// LayerType returns PPPoECodeMetadata.LayerType. -func (a PPPoECode) LayerType() gopacket.LayerType { - return PPPoECodeMetadata[a].LayerType -} - -type errorDecoderForPPPoECode int - -func (a *errorDecoderForPPPoECode) Decode(data []byte, p gopacket.PacketBuilder) error { - return a -} -func (a *errorDecoderForPPPoECode) Error() string { - return fmt.Sprintf("Unable to decode PPPoECode %d", int(*a)) -} - -var errorDecodersForPPPoECode [256]errorDecoderForPPPoECode -var PPPoECodeMetadata [256]EnumMetadata - -func initUnknownTypesForPPPoECode() { - for i := 0; i < 256; i++ { - errorDecodersForPPPoECode[i] = errorDecoderForPPPoECode(i) - PPPoECodeMetadata[i] = EnumMetadata{ - DecodeWith: &errorDecodersForPPPoECode[i], - Name: "UnknownPPPoECode", - } - } -} - -// Decoder calls FDDIFrameControlMetadata.DecodeWith's decoder. -func (a FDDIFrameControl) Decode(data []byte, p gopacket.PacketBuilder) error { - return FDDIFrameControlMetadata[a].DecodeWith.Decode(data, p) -} - -// String returns FDDIFrameControlMetadata.Name. -func (a FDDIFrameControl) String() string { - return FDDIFrameControlMetadata[a].Name -} - -// LayerType returns FDDIFrameControlMetadata.LayerType. -func (a FDDIFrameControl) LayerType() gopacket.LayerType { - return FDDIFrameControlMetadata[a].LayerType -} - -type errorDecoderForFDDIFrameControl int - -func (a *errorDecoderForFDDIFrameControl) Decode(data []byte, p gopacket.PacketBuilder) error { - return a -} -func (a *errorDecoderForFDDIFrameControl) Error() string { - return fmt.Sprintf("Unable to decode FDDIFrameControl %d", int(*a)) -} - -var errorDecodersForFDDIFrameControl [256]errorDecoderForFDDIFrameControl -var FDDIFrameControlMetadata [256]EnumMetadata - -func initUnknownTypesForFDDIFrameControl() { - for i := 0; i < 256; i++ { - errorDecodersForFDDIFrameControl[i] = errorDecoderForFDDIFrameControl(i) - FDDIFrameControlMetadata[i] = EnumMetadata{ - DecodeWith: &errorDecodersForFDDIFrameControl[i], - Name: "UnknownFDDIFrameControl", - } - } -} - -// Decoder calls EAPOLTypeMetadata.DecodeWith's decoder. -func (a EAPOLType) Decode(data []byte, p gopacket.PacketBuilder) error { - return EAPOLTypeMetadata[a].DecodeWith.Decode(data, p) -} - -// String returns EAPOLTypeMetadata.Name. -func (a EAPOLType) String() string { - return EAPOLTypeMetadata[a].Name -} - -// LayerType returns EAPOLTypeMetadata.LayerType. -func (a EAPOLType) LayerType() gopacket.LayerType { - return EAPOLTypeMetadata[a].LayerType -} - -type errorDecoderForEAPOLType int - -func (a *errorDecoderForEAPOLType) Decode(data []byte, p gopacket.PacketBuilder) error { - return a -} -func (a *errorDecoderForEAPOLType) Error() string { - return fmt.Sprintf("Unable to decode EAPOLType %d", int(*a)) -} - -var errorDecodersForEAPOLType [256]errorDecoderForEAPOLType -var EAPOLTypeMetadata [256]EnumMetadata - -func initUnknownTypesForEAPOLType() { - for i := 0; i < 256; i++ { - errorDecodersForEAPOLType[i] = errorDecoderForEAPOLType(i) - EAPOLTypeMetadata[i] = EnumMetadata{ - DecodeWith: &errorDecodersForEAPOLType[i], - Name: "UnknownEAPOLType", - } - } -} - -// Decoder calls ProtocolFamilyMetadata.DecodeWith's decoder. -func (a ProtocolFamily) Decode(data []byte, p gopacket.PacketBuilder) error { - return ProtocolFamilyMetadata[a].DecodeWith.Decode(data, p) -} - -// String returns ProtocolFamilyMetadata.Name. -func (a ProtocolFamily) String() string { - return ProtocolFamilyMetadata[a].Name -} - -// LayerType returns ProtocolFamilyMetadata.LayerType. -func (a ProtocolFamily) LayerType() gopacket.LayerType { - return ProtocolFamilyMetadata[a].LayerType -} - -type errorDecoderForProtocolFamily int - -func (a *errorDecoderForProtocolFamily) Decode(data []byte, p gopacket.PacketBuilder) error { - return a -} -func (a *errorDecoderForProtocolFamily) Error() string { - return fmt.Sprintf("Unable to decode ProtocolFamily %d", int(*a)) -} - -var errorDecodersForProtocolFamily [256]errorDecoderForProtocolFamily -var ProtocolFamilyMetadata [256]EnumMetadata - -func initUnknownTypesForProtocolFamily() { - for i := 0; i < 256; i++ { - errorDecodersForProtocolFamily[i] = errorDecoderForProtocolFamily(i) - ProtocolFamilyMetadata[i] = EnumMetadata{ - DecodeWith: &errorDecodersForProtocolFamily[i], - Name: "UnknownProtocolFamily", - } - } -} - -// Decoder calls Dot11TypeMetadata.DecodeWith's decoder. -func (a Dot11Type) Decode(data []byte, p gopacket.PacketBuilder) error { - return Dot11TypeMetadata[a].DecodeWith.Decode(data, p) -} - -// String returns Dot11TypeMetadata.Name. -func (a Dot11Type) String() string { - return Dot11TypeMetadata[a].Name -} - -// LayerType returns Dot11TypeMetadata.LayerType. -func (a Dot11Type) LayerType() gopacket.LayerType { - return Dot11TypeMetadata[a].LayerType -} - -type errorDecoderForDot11Type int - -func (a *errorDecoderForDot11Type) Decode(data []byte, p gopacket.PacketBuilder) error { - return a -} -func (a *errorDecoderForDot11Type) Error() string { - return fmt.Sprintf("Unable to decode Dot11Type %d", int(*a)) -} - -var errorDecodersForDot11Type [256]errorDecoderForDot11Type -var Dot11TypeMetadata [256]EnumMetadata - -func initUnknownTypesForDot11Type() { - for i := 0; i < 256; i++ { - errorDecodersForDot11Type[i] = errorDecoderForDot11Type(i) - Dot11TypeMetadata[i] = EnumMetadata{ - DecodeWith: &errorDecodersForDot11Type[i], - Name: "UnknownDot11Type", - } - } -} - -// Decoder calls USBTransportTypeMetadata.DecodeWith's decoder. -func (a USBTransportType) Decode(data []byte, p gopacket.PacketBuilder) error { - return USBTransportTypeMetadata[a].DecodeWith.Decode(data, p) -} - -// String returns USBTransportTypeMetadata.Name. -func (a USBTransportType) String() string { - return USBTransportTypeMetadata[a].Name -} - -// LayerType returns USBTransportTypeMetadata.LayerType. -func (a USBTransportType) LayerType() gopacket.LayerType { - return USBTransportTypeMetadata[a].LayerType -} - -type errorDecoderForUSBTransportType int - -func (a *errorDecoderForUSBTransportType) Decode(data []byte, p gopacket.PacketBuilder) error { - return a -} -func (a *errorDecoderForUSBTransportType) Error() string { - return fmt.Sprintf("Unable to decode USBTransportType %d", int(*a)) -} - -var errorDecodersForUSBTransportType [256]errorDecoderForUSBTransportType -var USBTransportTypeMetadata [256]EnumMetadata - -func initUnknownTypesForUSBTransportType() { - for i := 0; i < 256; i++ { - errorDecodersForUSBTransportType[i] = errorDecoderForUSBTransportType(i) - USBTransportTypeMetadata[i] = EnumMetadata{ - DecodeWith: &errorDecodersForUSBTransportType[i], - Name: "UnknownUSBTransportType", - } - } -} diff --git a/backend/vendor/github.com/google/gopacket/layers/iana_ports.go b/backend/vendor/github.com/google/gopacket/layers/iana_ports.go deleted file mode 100644 index ddcf3ecdb..000000000 --- a/backend/vendor/github.com/google/gopacket/layers/iana_ports.go +++ /dev/null @@ -1,11351 +0,0 @@ -// Copyright 2012 Google, Inc. All rights reserved. - -package layers - -// Created by gen.go, don't edit manually -// Generated at 2017-10-23 09:57:28.214859163 -0600 MDT m=+1.011679290 -// Fetched from "http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml" - -// TCPPortNames contains the port names for all TCP ports. -var TCPPortNames = tcpPortNames - -// UDPPortNames contains the port names for all UDP ports. -var UDPPortNames = udpPortNames - -// SCTPPortNames contains the port names for all SCTP ports. -var SCTPPortNames = sctpPortNames - -var tcpPortNames = map[TCPPort]string{ - 1: "tcpmux", - 2: "compressnet", - 3: "compressnet", - 5: "rje", - 7: "echo", - 9: "discard", - 11: "systat", - 13: "daytime", - 17: "qotd", - 18: "msp", - 19: "chargen", - 20: "ftp-data", - 21: "ftp", - 22: "ssh", - 23: "telnet", - 25: "smtp", - 27: "nsw-fe", - 29: "msg-icp", - 31: "msg-auth", - 33: "dsp", - 37: "time", - 38: "rap", - 39: "rlp", - 41: "graphics", - 42: "name", - 43: "nicname", - 44: "mpm-flags", - 45: "mpm", - 46: "mpm-snd", - 48: "auditd", - 49: "tacacs", - 50: "re-mail-ck", - 52: "xns-time", - 53: "domain", - 54: "xns-ch", - 55: "isi-gl", - 56: "xns-auth", - 58: "xns-mail", - 62: "acas", - 63: "whoispp", - 64: "covia", - 65: "tacacs-ds", - 66: "sql-net", - 67: "bootps", - 68: "bootpc", - 69: "tftp", - 70: "gopher", - 71: "netrjs-1", - 72: "netrjs-2", - 73: "netrjs-3", - 74: "netrjs-4", - 76: "deos", - 78: "vettcp", - 79: "finger", - 80: "http", - 82: "xfer", - 83: "mit-ml-dev", - 84: "ctf", - 85: "mit-ml-dev", - 86: "mfcobol", - 88: "kerberos", - 89: "su-mit-tg", - 90: "dnsix", - 91: "mit-dov", - 92: "npp", - 93: "dcp", - 94: "objcall", - 95: "supdup", - 96: "dixie", - 97: "swift-rvf", - 98: "tacnews", - 99: "metagram", - 101: "hostname", - 102: "iso-tsap", - 103: "gppitnp", - 104: "acr-nema", - 105: "cso", - 106: "3com-tsmux", - 107: "rtelnet", - 108: "snagas", - 109: "pop2", - 110: "pop3", - 111: "sunrpc", - 112: "mcidas", - 113: "ident", - 115: "sftp", - 116: "ansanotify", - 117: "uucp-path", - 118: "sqlserv", - 119: "nntp", - 120: "cfdptkt", - 121: "erpc", - 122: "smakynet", - 123: "ntp", - 124: "ansatrader", - 125: "locus-map", - 126: "nxedit", - 127: "locus-con", - 128: "gss-xlicen", - 129: "pwdgen", - 130: "cisco-fna", - 131: "cisco-tna", - 132: "cisco-sys", - 133: "statsrv", - 134: "ingres-net", - 135: "epmap", - 136: "profile", - 137: "netbios-ns", - 138: "netbios-dgm", - 139: "netbios-ssn", - 140: "emfis-data", - 141: "emfis-cntl", - 142: "bl-idm", - 143: "imap", - 144: "uma", - 145: "uaac", - 146: "iso-tp0", - 147: "iso-ip", - 148: "jargon", - 149: "aed-512", - 150: "sql-net", - 151: "hems", - 152: "bftp", - 153: "sgmp", - 154: "netsc-prod", - 155: "netsc-dev", - 156: "sqlsrv", - 157: "knet-cmp", - 158: "pcmail-srv", - 159: "nss-routing", - 160: "sgmp-traps", - 161: "snmp", - 162: "snmptrap", - 163: "cmip-man", - 164: "cmip-agent", - 165: "xns-courier", - 166: "s-net", - 167: "namp", - 168: "rsvd", - 169: "send", - 170: "print-srv", - 171: "multiplex", - 172: "cl-1", - 173: "xyplex-mux", - 174: "mailq", - 175: "vmnet", - 176: "genrad-mux", - 177: "xdmcp", - 178: "nextstep", - 179: "bgp", - 180: "ris", - 181: "unify", - 182: "audit", - 183: "ocbinder", - 184: "ocserver", - 185: "remote-kis", - 186: "kis", - 187: "aci", - 188: "mumps", - 189: "qft", - 190: "gacp", - 191: "prospero", - 192: "osu-nms", - 193: "srmp", - 194: "irc", - 195: "dn6-nlm-aud", - 196: "dn6-smm-red", - 197: "dls", - 198: "dls-mon", - 199: "smux", - 200: "src", - 201: "at-rtmp", - 202: "at-nbp", - 203: "at-3", - 204: "at-echo", - 205: "at-5", - 206: "at-zis", - 207: "at-7", - 208: "at-8", - 209: "qmtp", - 210: "z39-50", - 211: "914c-g", - 212: "anet", - 213: "ipx", - 214: "vmpwscs", - 215: "softpc", - 216: "CAIlic", - 217: "dbase", - 218: "mpp", - 219: "uarps", - 220: "imap3", - 221: "fln-spx", - 222: "rsh-spx", - 223: "cdc", - 224: "masqdialer", - 242: "direct", - 243: "sur-meas", - 244: "inbusiness", - 245: "link", - 246: "dsp3270", - 247: "subntbcst-tftp", - 248: "bhfhs", - 256: "rap", - 257: "set", - 259: "esro-gen", - 260: "openport", - 261: "nsiiops", - 262: "arcisdms", - 263: "hdap", - 264: "bgmp", - 265: "x-bone-ctl", - 266: "sst", - 267: "td-service", - 268: "td-replica", - 269: "manet", - 271: "pt-tls", - 280: "http-mgmt", - 281: "personal-link", - 282: "cableport-ax", - 283: "rescap", - 284: "corerjd", - 286: "fxp", - 287: "k-block", - 308: "novastorbakcup", - 309: "entrusttime", - 310: "bhmds", - 311: "asip-webadmin", - 312: "vslmp", - 313: "magenta-logic", - 314: "opalis-robot", - 315: "dpsi", - 316: "decauth", - 317: "zannet", - 318: "pkix-timestamp", - 319: "ptp-event", - 320: "ptp-general", - 321: "pip", - 322: "rtsps", - 323: "rpki-rtr", - 324: "rpki-rtr-tls", - 333: "texar", - 344: "pdap", - 345: "pawserv", - 346: "zserv", - 347: "fatserv", - 348: "csi-sgwp", - 349: "mftp", - 350: "matip-type-a", - 351: "matip-type-b", - 352: "dtag-ste-sb", - 353: "ndsauth", - 354: "bh611", - 355: "datex-asn", - 356: "cloanto-net-1", - 357: "bhevent", - 358: "shrinkwrap", - 359: "nsrmp", - 360: "scoi2odialog", - 361: "semantix", - 362: "srssend", - 363: "rsvp-tunnel", - 364: "aurora-cmgr", - 365: "dtk", - 366: "odmr", - 367: "mortgageware", - 368: "qbikgdp", - 369: "rpc2portmap", - 370: "codaauth2", - 371: "clearcase", - 372: "ulistproc", - 373: "legent-1", - 374: "legent-2", - 375: "hassle", - 376: "nip", - 377: "tnETOS", - 378: "dsETOS", - 379: "is99c", - 380: "is99s", - 381: "hp-collector", - 382: "hp-managed-node", - 383: "hp-alarm-mgr", - 384: "arns", - 385: "ibm-app", - 386: "asa", - 387: "aurp", - 388: "unidata-ldm", - 389: "ldap", - 390: "uis", - 391: "synotics-relay", - 392: "synotics-broker", - 393: "meta5", - 394: "embl-ndt", - 395: "netcp", - 396: "netware-ip", - 397: "mptn", - 398: "kryptolan", - 399: "iso-tsap-c2", - 400: "osb-sd", - 401: "ups", - 402: "genie", - 403: "decap", - 404: "nced", - 405: "ncld", - 406: "imsp", - 407: "timbuktu", - 408: "prm-sm", - 409: "prm-nm", - 410: "decladebug", - 411: "rmt", - 412: "synoptics-trap", - 413: "smsp", - 414: "infoseek", - 415: "bnet", - 416: "silverplatter", - 417: "onmux", - 418: "hyper-g", - 419: "ariel1", - 420: "smpte", - 421: "ariel2", - 422: "ariel3", - 423: "opc-job-start", - 424: "opc-job-track", - 425: "icad-el", - 426: "smartsdp", - 427: "svrloc", - 428: "ocs-cmu", - 429: "ocs-amu", - 430: "utmpsd", - 431: "utmpcd", - 432: "iasd", - 433: "nnsp", - 434: "mobileip-agent", - 435: "mobilip-mn", - 436: "dna-cml", - 437: "comscm", - 438: "dsfgw", - 439: "dasp", - 440: "sgcp", - 441: "decvms-sysmgt", - 442: "cvc-hostd", - 443: "https", - 444: "snpp", - 445: "microsoft-ds", - 446: "ddm-rdb", - 447: "ddm-dfm", - 448: "ddm-ssl", - 449: "as-servermap", - 450: "tserver", - 451: "sfs-smp-net", - 452: "sfs-config", - 453: "creativeserver", - 454: "contentserver", - 455: "creativepartnr", - 456: "macon-tcp", - 457: "scohelp", - 458: "appleqtc", - 459: "ampr-rcmd", - 460: "skronk", - 461: "datasurfsrv", - 462: "datasurfsrvsec", - 463: "alpes", - 464: "kpasswd", - 465: "urd", - 466: "digital-vrc", - 467: "mylex-mapd", - 468: "photuris", - 469: "rcp", - 470: "scx-proxy", - 471: "mondex", - 472: "ljk-login", - 473: "hybrid-pop", - 474: "tn-tl-w1", - 475: "tcpnethaspsrv", - 476: "tn-tl-fd1", - 477: "ss7ns", - 478: "spsc", - 479: "iafserver", - 480: "iafdbase", - 481: "ph", - 482: "bgs-nsi", - 483: "ulpnet", - 484: "integra-sme", - 485: "powerburst", - 486: "avian", - 487: "saft", - 488: "gss-http", - 489: "nest-protocol", - 490: "micom-pfs", - 491: "go-login", - 492: "ticf-1", - 493: "ticf-2", - 494: "pov-ray", - 495: "intecourier", - 496: "pim-rp-disc", - 497: "retrospect", - 498: "siam", - 499: "iso-ill", - 500: "isakmp", - 501: "stmf", - 502: "mbap", - 503: "intrinsa", - 504: "citadel", - 505: "mailbox-lm", - 506: "ohimsrv", - 507: "crs", - 508: "xvttp", - 509: "snare", - 510: "fcp", - 511: "passgo", - 512: "exec", - 513: "login", - 514: "shell", - 515: "printer", - 516: "videotex", - 517: "talk", - 518: "ntalk", - 519: "utime", - 520: "efs", - 521: "ripng", - 522: "ulp", - 523: "ibm-db2", - 524: "ncp", - 525: "timed", - 526: "tempo", - 527: "stx", - 528: "custix", - 529: "irc-serv", - 530: "courier", - 531: "conference", - 532: "netnews", - 533: "netwall", - 534: "windream", - 535: "iiop", - 536: "opalis-rdv", - 537: "nmsp", - 538: "gdomap", - 539: "apertus-ldp", - 540: "uucp", - 541: "uucp-rlogin", - 542: "commerce", - 543: "klogin", - 544: "kshell", - 545: "appleqtcsrvr", - 546: "dhcpv6-client", - 547: "dhcpv6-server", - 548: "afpovertcp", - 549: "idfp", - 550: "new-rwho", - 551: "cybercash", - 552: "devshr-nts", - 553: "pirp", - 554: "rtsp", - 555: "dsf", - 556: "remotefs", - 557: "openvms-sysipc", - 558: "sdnskmp", - 559: "teedtap", - 560: "rmonitor", - 561: "monitor", - 562: "chshell", - 563: "nntps", - 564: "9pfs", - 565: "whoami", - 566: "streettalk", - 567: "banyan-rpc", - 568: "ms-shuttle", - 569: "ms-rome", - 570: "meter", - 571: "meter", - 572: "sonar", - 573: "banyan-vip", - 574: "ftp-agent", - 575: "vemmi", - 576: "ipcd", - 577: "vnas", - 578: "ipdd", - 579: "decbsrv", - 580: "sntp-heartbeat", - 581: "bdp", - 582: "scc-security", - 583: "philips-vc", - 584: "keyserver", - 586: "password-chg", - 587: "submission", - 588: "cal", - 589: "eyelink", - 590: "tns-cml", - 591: "http-alt", - 592: "eudora-set", - 593: "http-rpc-epmap", - 594: "tpip", - 595: "cab-protocol", - 596: "smsd", - 597: "ptcnameservice", - 598: "sco-websrvrmg3", - 599: "acp", - 600: "ipcserver", - 601: "syslog-conn", - 602: "xmlrpc-beep", - 603: "idxp", - 604: "tunnel", - 605: "soap-beep", - 606: "urm", - 607: "nqs", - 608: "sift-uft", - 609: "npmp-trap", - 610: "npmp-local", - 611: "npmp-gui", - 612: "hmmp-ind", - 613: "hmmp-op", - 614: "sshell", - 615: "sco-inetmgr", - 616: "sco-sysmgr", - 617: "sco-dtmgr", - 618: "dei-icda", - 619: "compaq-evm", - 620: "sco-websrvrmgr", - 621: "escp-ip", - 622: "collaborator", - 623: "oob-ws-http", - 624: "cryptoadmin", - 625: "dec-dlm", - 626: "asia", - 627: "passgo-tivoli", - 628: "qmqp", - 629: "3com-amp3", - 630: "rda", - 631: "ipp", - 632: "bmpp", - 633: "servstat", - 634: "ginad", - 635: "rlzdbase", - 636: "ldaps", - 637: "lanserver", - 638: "mcns-sec", - 639: "msdp", - 640: "entrust-sps", - 641: "repcmd", - 642: "esro-emsdp", - 643: "sanity", - 644: "dwr", - 645: "pssc", - 646: "ldp", - 647: "dhcp-failover", - 648: "rrp", - 649: "cadview-3d", - 650: "obex", - 651: "ieee-mms", - 652: "hello-port", - 653: "repscmd", - 654: "aodv", - 655: "tinc", - 656: "spmp", - 657: "rmc", - 658: "tenfold", - 660: "mac-srvr-admin", - 661: "hap", - 662: "pftp", - 663: "purenoise", - 664: "oob-ws-https", - 665: "sun-dr", - 666: "mdqs", - 667: "disclose", - 668: "mecomm", - 669: "meregister", - 670: "vacdsm-sws", - 671: "vacdsm-app", - 672: "vpps-qua", - 673: "cimplex", - 674: "acap", - 675: "dctp", - 676: "vpps-via", - 677: "vpp", - 678: "ggf-ncp", - 679: "mrm", - 680: "entrust-aaas", - 681: "entrust-aams", - 682: "xfr", - 683: "corba-iiop", - 684: "corba-iiop-ssl", - 685: "mdc-portmapper", - 686: "hcp-wismar", - 687: "asipregistry", - 688: "realm-rusd", - 689: "nmap", - 690: "vatp", - 691: "msexch-routing", - 692: "hyperwave-isp", - 693: "connendp", - 694: "ha-cluster", - 695: "ieee-mms-ssl", - 696: "rushd", - 697: "uuidgen", - 698: "olsr", - 699: "accessnetwork", - 700: "epp", - 701: "lmp", - 702: "iris-beep", - 704: "elcsd", - 705: "agentx", - 706: "silc", - 707: "borland-dsj", - 709: "entrust-kmsh", - 710: "entrust-ash", - 711: "cisco-tdp", - 712: "tbrpf", - 713: "iris-xpc", - 714: "iris-xpcs", - 715: "iris-lwz", - 729: "netviewdm1", - 730: "netviewdm2", - 731: "netviewdm3", - 741: "netgw", - 742: "netrcs", - 744: "flexlm", - 747: "fujitsu-dev", - 748: "ris-cm", - 749: "kerberos-adm", - 750: "rfile", - 751: "pump", - 752: "qrh", - 753: "rrh", - 754: "tell", - 758: "nlogin", - 759: "con", - 760: "ns", - 761: "rxe", - 762: "quotad", - 763: "cycleserv", - 764: "omserv", - 765: "webster", - 767: "phonebook", - 769: "vid", - 770: "cadlock", - 771: "rtip", - 772: "cycleserv2", - 773: "submit", - 774: "rpasswd", - 775: "entomb", - 776: "wpages", - 777: "multiling-http", - 780: "wpgs", - 800: "mdbs-daemon", - 801: "device", - 802: "mbap-s", - 810: "fcp-udp", - 828: "itm-mcell-s", - 829: "pkix-3-ca-ra", - 830: "netconf-ssh", - 831: "netconf-beep", - 832: "netconfsoaphttp", - 833: "netconfsoapbeep", - 847: "dhcp-failover2", - 848: "gdoi", - 853: "domain-s", - 854: "dlep", - 860: "iscsi", - 861: "owamp-control", - 862: "twamp-control", - 873: "rsync", - 886: "iclcnet-locate", - 887: "iclcnet-svinfo", - 888: "accessbuilder", - 900: "omginitialrefs", - 901: "smpnameres", - 902: "ideafarm-door", - 903: "ideafarm-panic", - 910: "kink", - 911: "xact-backup", - 912: "apex-mesh", - 913: "apex-edge", - 953: "rndc", - 989: "ftps-data", - 990: "ftps", - 991: "nas", - 992: "telnets", - 993: "imaps", - 995: "pop3s", - 996: "vsinet", - 997: "maitrd", - 998: "busboy", - 999: "garcon", - 1000: "cadlock2", - 1001: "webpush", - 1010: "surf", - 1021: "exp1", - 1022: "exp2", - 1025: "blackjack", - 1026: "cap", - 1029: "solid-mux", - 1033: "netinfo-local", - 1034: "activesync", - 1035: "mxxrlogin", - 1036: "nsstp", - 1037: "ams", - 1038: "mtqp", - 1039: "sbl", - 1040: "netarx", - 1041: "danf-ak2", - 1042: "afrog", - 1043: "boinc-client", - 1044: "dcutility", - 1045: "fpitp", - 1046: "wfremotertm", - 1047: "neod1", - 1048: "neod2", - 1049: "td-postman", - 1050: "cma", - 1051: "optima-vnet", - 1052: "ddt", - 1053: "remote-as", - 1054: "brvread", - 1055: "ansyslmd", - 1056: "vfo", - 1057: "startron", - 1058: "nim", - 1059: "nimreg", - 1060: "polestar", - 1061: "kiosk", - 1062: "veracity", - 1063: "kyoceranetdev", - 1064: "jstel", - 1065: "syscomlan", - 1066: "fpo-fns", - 1067: "instl-boots", - 1068: "instl-bootc", - 1069: "cognex-insight", - 1070: "gmrupdateserv", - 1071: "bsquare-voip", - 1072: "cardax", - 1073: "bridgecontrol", - 1074: "warmspotMgmt", - 1075: "rdrmshc", - 1076: "dab-sti-c", - 1077: "imgames", - 1078: "avocent-proxy", - 1079: "asprovatalk", - 1080: "socks", - 1081: "pvuniwien", - 1082: "amt-esd-prot", - 1083: "ansoft-lm-1", - 1084: "ansoft-lm-2", - 1085: "webobjects", - 1086: "cplscrambler-lg", - 1087: "cplscrambler-in", - 1088: "cplscrambler-al", - 1089: "ff-annunc", - 1090: "ff-fms", - 1091: "ff-sm", - 1092: "obrpd", - 1093: "proofd", - 1094: "rootd", - 1095: "nicelink", - 1096: "cnrprotocol", - 1097: "sunclustermgr", - 1098: "rmiactivation", - 1099: "rmiregistry", - 1100: "mctp", - 1101: "pt2-discover", - 1102: "adobeserver-1", - 1103: "adobeserver-2", - 1104: "xrl", - 1105: "ftranhc", - 1106: "isoipsigport-1", - 1107: "isoipsigport-2", - 1108: "ratio-adp", - 1110: "webadmstart", - 1111: "lmsocialserver", - 1112: "icp", - 1113: "ltp-deepspace", - 1114: "mini-sql", - 1115: "ardus-trns", - 1116: "ardus-cntl", - 1117: "ardus-mtrns", - 1118: "sacred", - 1119: "bnetgame", - 1120: "bnetfile", - 1121: "rmpp", - 1122: "availant-mgr", - 1123: "murray", - 1124: "hpvmmcontrol", - 1125: "hpvmmagent", - 1126: "hpvmmdata", - 1127: "kwdb-commn", - 1128: "saphostctrl", - 1129: "saphostctrls", - 1130: "casp", - 1131: "caspssl", - 1132: "kvm-via-ip", - 1133: "dfn", - 1134: "aplx", - 1135: "omnivision", - 1136: "hhb-gateway", - 1137: "trim", - 1138: "encrypted-admin", - 1139: "evm", - 1140: "autonoc", - 1141: "mxomss", - 1142: "edtools", - 1143: "imyx", - 1144: "fuscript", - 1145: "x9-icue", - 1146: "audit-transfer", - 1147: "capioverlan", - 1148: "elfiq-repl", - 1149: "bvtsonar", - 1150: "blaze", - 1151: "unizensus", - 1152: "winpoplanmess", - 1153: "c1222-acse", - 1154: "resacommunity", - 1155: "nfa", - 1156: "iascontrol-oms", - 1157: "iascontrol", - 1158: "dbcontrol-oms", - 1159: "oracle-oms", - 1160: "olsv", - 1161: "health-polling", - 1162: "health-trap", - 1163: "sddp", - 1164: "qsm-proxy", - 1165: "qsm-gui", - 1166: "qsm-remote", - 1167: "cisco-ipsla", - 1168: "vchat", - 1169: "tripwire", - 1170: "atc-lm", - 1171: "atc-appserver", - 1172: "dnap", - 1173: "d-cinema-rrp", - 1174: "fnet-remote-ui", - 1175: "dossier", - 1176: "indigo-server", - 1177: "dkmessenger", - 1178: "sgi-storman", - 1179: "b2n", - 1180: "mc-client", - 1181: "3comnetman", - 1182: "accelenet", - 1183: "llsurfup-http", - 1184: "llsurfup-https", - 1185: "catchpole", - 1186: "mysql-cluster", - 1187: "alias", - 1188: "hp-webadmin", - 1189: "unet", - 1190: "commlinx-avl", - 1191: "gpfs", - 1192: "caids-sensor", - 1193: "fiveacross", - 1194: "openvpn", - 1195: "rsf-1", - 1196: "netmagic", - 1197: "carrius-rshell", - 1198: "cajo-discovery", - 1199: "dmidi", - 1200: "scol", - 1201: "nucleus-sand", - 1202: "caiccipc", - 1203: "ssslic-mgr", - 1204: "ssslog-mgr", - 1205: "accord-mgc", - 1206: "anthony-data", - 1207: "metasage", - 1208: "seagull-ais", - 1209: "ipcd3", - 1210: "eoss", - 1211: "groove-dpp", - 1212: "lupa", - 1213: "mpc-lifenet", - 1214: "kazaa", - 1215: "scanstat-1", - 1216: "etebac5", - 1217: "hpss-ndapi", - 1218: "aeroflight-ads", - 1219: "aeroflight-ret", - 1220: "qt-serveradmin", - 1221: "sweetware-apps", - 1222: "nerv", - 1223: "tgp", - 1224: "vpnz", - 1225: "slinkysearch", - 1226: "stgxfws", - 1227: "dns2go", - 1228: "florence", - 1229: "zented", - 1230: "periscope", - 1231: "menandmice-lpm", - 1232: "first-defense", - 1233: "univ-appserver", - 1234: "search-agent", - 1235: "mosaicsyssvc1", - 1236: "bvcontrol", - 1237: "tsdos390", - 1238: "hacl-qs", - 1239: "nmsd", - 1240: "instantia", - 1241: "nessus", - 1242: "nmasoverip", - 1243: "serialgateway", - 1244: "isbconference1", - 1245: "isbconference2", - 1246: "payrouter", - 1247: "visionpyramid", - 1248: "hermes", - 1249: "mesavistaco", - 1250: "swldy-sias", - 1251: "servergraph", - 1252: "bspne-pcc", - 1253: "q55-pcc", - 1254: "de-noc", - 1255: "de-cache-query", - 1256: "de-server", - 1257: "shockwave2", - 1258: "opennl", - 1259: "opennl-voice", - 1260: "ibm-ssd", - 1261: "mpshrsv", - 1262: "qnts-orb", - 1263: "dka", - 1264: "prat", - 1265: "dssiapi", - 1266: "dellpwrappks", - 1267: "epc", - 1268: "propel-msgsys", - 1269: "watilapp", - 1270: "opsmgr", - 1271: "excw", - 1272: "cspmlockmgr", - 1273: "emc-gateway", - 1274: "t1distproc", - 1275: "ivcollector", - 1277: "miva-mqs", - 1278: "dellwebadmin-1", - 1279: "dellwebadmin-2", - 1280: "pictrography", - 1281: "healthd", - 1282: "emperion", - 1283: "productinfo", - 1284: "iee-qfx", - 1285: "neoiface", - 1286: "netuitive", - 1287: "routematch", - 1288: "navbuddy", - 1289: "jwalkserver", - 1290: "winjaserver", - 1291: "seagulllms", - 1292: "dsdn", - 1293: "pkt-krb-ipsec", - 1294: "cmmdriver", - 1295: "ehtp", - 1296: "dproxy", - 1297: "sdproxy", - 1298: "lpcp", - 1299: "hp-sci", - 1300: "h323hostcallsc", - 1301: "ci3-software-1", - 1302: "ci3-software-2", - 1303: "sftsrv", - 1304: "boomerang", - 1305: "pe-mike", - 1306: "re-conn-proto", - 1307: "pacmand", - 1308: "odsi", - 1309: "jtag-server", - 1310: "husky", - 1311: "rxmon", - 1312: "sti-envision", - 1313: "bmc-patroldb", - 1314: "pdps", - 1315: "els", - 1316: "exbit-escp", - 1317: "vrts-ipcserver", - 1318: "krb5gatekeeper", - 1319: "amx-icsp", - 1320: "amx-axbnet", - 1321: "pip", - 1322: "novation", - 1323: "brcd", - 1324: "delta-mcp", - 1325: "dx-instrument", - 1326: "wimsic", - 1327: "ultrex", - 1328: "ewall", - 1329: "netdb-export", - 1330: "streetperfect", - 1331: "intersan", - 1332: "pcia-rxp-b", - 1333: "passwrd-policy", - 1334: "writesrv", - 1335: "digital-notary", - 1336: "ischat", - 1337: "menandmice-dns", - 1338: "wmc-log-svc", - 1339: "kjtsiteserver", - 1340: "naap", - 1341: "qubes", - 1342: "esbroker", - 1343: "re101", - 1344: "icap", - 1345: "vpjp", - 1346: "alta-ana-lm", - 1347: "bbn-mmc", - 1348: "bbn-mmx", - 1349: "sbook", - 1350: "editbench", - 1351: "equationbuilder", - 1352: "lotusnote", - 1353: "relief", - 1354: "XSIP-network", - 1355: "intuitive-edge", - 1356: "cuillamartin", - 1357: "pegboard", - 1358: "connlcli", - 1359: "ftsrv", - 1360: "mimer", - 1361: "linx", - 1362: "timeflies", - 1363: "ndm-requester", - 1364: "ndm-server", - 1365: "adapt-sna", - 1366: "netware-csp", - 1367: "dcs", - 1368: "screencast", - 1369: "gv-us", - 1370: "us-gv", - 1371: "fc-cli", - 1372: "fc-ser", - 1373: "chromagrafx", - 1374: "molly", - 1375: "bytex", - 1376: "ibm-pps", - 1377: "cichlid", - 1378: "elan", - 1379: "dbreporter", - 1380: "telesis-licman", - 1381: "apple-licman", - 1382: "udt-os", - 1383: "gwha", - 1384: "os-licman", - 1385: "atex-elmd", - 1386: "checksum", - 1387: "cadsi-lm", - 1388: "objective-dbc", - 1389: "iclpv-dm", - 1390: "iclpv-sc", - 1391: "iclpv-sas", - 1392: "iclpv-pm", - 1393: "iclpv-nls", - 1394: "iclpv-nlc", - 1395: "iclpv-wsm", - 1396: "dvl-activemail", - 1397: "audio-activmail", - 1398: "video-activmail", - 1399: "cadkey-licman", - 1400: "cadkey-tablet", - 1401: "goldleaf-licman", - 1402: "prm-sm-np", - 1403: "prm-nm-np", - 1404: "igi-lm", - 1405: "ibm-res", - 1406: "netlabs-lm", - 1407: "tibet-server", - 1408: "sophia-lm", - 1409: "here-lm", - 1410: "hiq", - 1411: "af", - 1412: "innosys", - 1413: "innosys-acl", - 1414: "ibm-mqseries", - 1415: "dbstar", - 1416: "novell-lu6-2", - 1417: "timbuktu-srv1", - 1418: "timbuktu-srv2", - 1419: "timbuktu-srv3", - 1420: "timbuktu-srv4", - 1421: "gandalf-lm", - 1422: "autodesk-lm", - 1423: "essbase", - 1424: "hybrid", - 1425: "zion-lm", - 1426: "sais", - 1427: "mloadd", - 1428: "informatik-lm", - 1429: "nms", - 1430: "tpdu", - 1431: "rgtp", - 1432: "blueberry-lm", - 1433: "ms-sql-s", - 1434: "ms-sql-m", - 1435: "ibm-cics", - 1436: "saism", - 1437: "tabula", - 1438: "eicon-server", - 1439: "eicon-x25", - 1440: "eicon-slp", - 1441: "cadis-1", - 1442: "cadis-2", - 1443: "ies-lm", - 1444: "marcam-lm", - 1445: "proxima-lm", - 1446: "ora-lm", - 1447: "apri-lm", - 1448: "oc-lm", - 1449: "peport", - 1450: "dwf", - 1451: "infoman", - 1452: "gtegsc-lm", - 1453: "genie-lm", - 1454: "interhdl-elmd", - 1455: "esl-lm", - 1456: "dca", - 1457: "valisys-lm", - 1458: "nrcabq-lm", - 1459: "proshare1", - 1460: "proshare2", - 1461: "ibm-wrless-lan", - 1462: "world-lm", - 1463: "nucleus", - 1464: "msl-lmd", - 1465: "pipes", - 1466: "oceansoft-lm", - 1467: "csdmbase", - 1468: "csdm", - 1469: "aal-lm", - 1470: "uaiact", - 1471: "csdmbase", - 1472: "csdm", - 1473: "openmath", - 1474: "telefinder", - 1475: "taligent-lm", - 1476: "clvm-cfg", - 1477: "ms-sna-server", - 1478: "ms-sna-base", - 1479: "dberegister", - 1480: "pacerforum", - 1481: "airs", - 1482: "miteksys-lm", - 1483: "afs", - 1484: "confluent", - 1485: "lansource", - 1486: "nms-topo-serv", - 1487: "localinfosrvr", - 1488: "docstor", - 1489: "dmdocbroker", - 1490: "insitu-conf", - 1492: "stone-design-1", - 1493: "netmap-lm", - 1494: "ica", - 1495: "cvc", - 1496: "liberty-lm", - 1497: "rfx-lm", - 1498: "sybase-sqlany", - 1499: "fhc", - 1500: "vlsi-lm", - 1501: "saiscm", - 1502: "shivadiscovery", - 1503: "imtc-mcs", - 1504: "evb-elm", - 1505: "funkproxy", - 1506: "utcd", - 1507: "symplex", - 1508: "diagmond", - 1509: "robcad-lm", - 1510: "mvx-lm", - 1511: "3l-l1", - 1512: "wins", - 1513: "fujitsu-dtc", - 1514: "fujitsu-dtcns", - 1515: "ifor-protocol", - 1516: "vpad", - 1517: "vpac", - 1518: "vpvd", - 1519: "vpvc", - 1520: "atm-zip-office", - 1521: "ncube-lm", - 1522: "ricardo-lm", - 1523: "cichild-lm", - 1524: "ingreslock", - 1525: "orasrv", - 1526: "pdap-np", - 1527: "tlisrv", - 1529: "coauthor", - 1530: "rap-service", - 1531: "rap-listen", - 1532: "miroconnect", - 1533: "virtual-places", - 1534: "micromuse-lm", - 1535: "ampr-info", - 1536: "ampr-inter", - 1537: "sdsc-lm", - 1538: "3ds-lm", - 1539: "intellistor-lm", - 1540: "rds", - 1541: "rds2", - 1542: "gridgen-elmd", - 1543: "simba-cs", - 1544: "aspeclmd", - 1545: "vistium-share", - 1546: "abbaccuray", - 1547: "laplink", - 1548: "axon-lm", - 1549: "shivahose", - 1550: "3m-image-lm", - 1551: "hecmtl-db", - 1552: "pciarray", - 1553: "sna-cs", - 1554: "caci-lm", - 1555: "livelan", - 1556: "veritas-pbx", - 1557: "arbortext-lm", - 1558: "xingmpeg", - 1559: "web2host", - 1560: "asci-val", - 1561: "facilityview", - 1562: "pconnectmgr", - 1563: "cadabra-lm", - 1564: "pay-per-view", - 1565: "winddlb", - 1566: "corelvideo", - 1567: "jlicelmd", - 1568: "tsspmap", - 1569: "ets", - 1570: "orbixd", - 1571: "rdb-dbs-disp", - 1572: "chip-lm", - 1573: "itscomm-ns", - 1574: "mvel-lm", - 1575: "oraclenames", - 1576: "moldflow-lm", - 1577: "hypercube-lm", - 1578: "jacobus-lm", - 1579: "ioc-sea-lm", - 1580: "tn-tl-r1", - 1581: "mil-2045-47001", - 1582: "msims", - 1583: "simbaexpress", - 1584: "tn-tl-fd2", - 1585: "intv", - 1586: "ibm-abtact", - 1587: "pra-elmd", - 1588: "triquest-lm", - 1589: "vqp", - 1590: "gemini-lm", - 1591: "ncpm-pm", - 1592: "commonspace", - 1593: "mainsoft-lm", - 1594: "sixtrak", - 1595: "radio", - 1596: "radio-sm", - 1597: "orbplus-iiop", - 1598: "picknfs", - 1599: "simbaservices", - 1600: "issd", - 1601: "aas", - 1602: "inspect", - 1603: "picodbc", - 1604: "icabrowser", - 1605: "slp", - 1606: "slm-api", - 1607: "stt", - 1608: "smart-lm", - 1609: "isysg-lm", - 1610: "taurus-wh", - 1611: "ill", - 1612: "netbill-trans", - 1613: "netbill-keyrep", - 1614: "netbill-cred", - 1615: "netbill-auth", - 1616: "netbill-prod", - 1617: "nimrod-agent", - 1618: "skytelnet", - 1619: "xs-openstorage", - 1620: "faxportwinport", - 1621: "softdataphone", - 1622: "ontime", - 1623: "jaleosnd", - 1624: "udp-sr-port", - 1625: "svs-omagent", - 1626: "shockwave", - 1627: "t128-gateway", - 1628: "lontalk-norm", - 1629: "lontalk-urgnt", - 1630: "oraclenet8cman", - 1631: "visitview", - 1632: "pammratc", - 1633: "pammrpc", - 1634: "loaprobe", - 1635: "edb-server1", - 1636: "isdc", - 1637: "islc", - 1638: "ismc", - 1639: "cert-initiator", - 1640: "cert-responder", - 1641: "invision", - 1642: "isis-am", - 1643: "isis-ambc", - 1644: "saiseh", - 1645: "sightline", - 1646: "sa-msg-port", - 1647: "rsap", - 1648: "concurrent-lm", - 1649: "kermit", - 1650: "nkd", - 1651: "shiva-confsrvr", - 1652: "xnmp", - 1653: "alphatech-lm", - 1654: "stargatealerts", - 1655: "dec-mbadmin", - 1656: "dec-mbadmin-h", - 1657: "fujitsu-mmpdc", - 1658: "sixnetudr", - 1659: "sg-lm", - 1660: "skip-mc-gikreq", - 1661: "netview-aix-1", - 1662: "netview-aix-2", - 1663: "netview-aix-3", - 1664: "netview-aix-4", - 1665: "netview-aix-5", - 1666: "netview-aix-6", - 1667: "netview-aix-7", - 1668: "netview-aix-8", - 1669: "netview-aix-9", - 1670: "netview-aix-10", - 1671: "netview-aix-11", - 1672: "netview-aix-12", - 1673: "proshare-mc-1", - 1674: "proshare-mc-2", - 1675: "pdp", - 1676: "netcomm1", - 1677: "groupwise", - 1678: "prolink", - 1679: "darcorp-lm", - 1680: "microcom-sbp", - 1681: "sd-elmd", - 1682: "lanyon-lantern", - 1683: "ncpm-hip", - 1684: "snaresecure", - 1685: "n2nremote", - 1686: "cvmon", - 1687: "nsjtp-ctrl", - 1688: "nsjtp-data", - 1689: "firefox", - 1690: "ng-umds", - 1691: "empire-empuma", - 1692: "sstsys-lm", - 1693: "rrirtr", - 1694: "rrimwm", - 1695: "rrilwm", - 1696: "rrifmm", - 1697: "rrisat", - 1698: "rsvp-encap-1", - 1699: "rsvp-encap-2", - 1700: "mps-raft", - 1701: "l2f", - 1702: "deskshare", - 1703: "hb-engine", - 1704: "bcs-broker", - 1705: "slingshot", - 1706: "jetform", - 1707: "vdmplay", - 1708: "gat-lmd", - 1709: "centra", - 1710: "impera", - 1711: "pptconference", - 1712: "registrar", - 1713: "conferencetalk", - 1714: "sesi-lm", - 1715: "houdini-lm", - 1716: "xmsg", - 1717: "fj-hdnet", - 1718: "h323gatedisc", - 1719: "h323gatestat", - 1720: "h323hostcall", - 1721: "caicci", - 1722: "hks-lm", - 1723: "pptp", - 1724: "csbphonemaster", - 1725: "iden-ralp", - 1726: "iberiagames", - 1727: "winddx", - 1728: "telindus", - 1729: "citynl", - 1730: "roketz", - 1731: "msiccp", - 1732: "proxim", - 1733: "siipat", - 1734: "cambertx-lm", - 1735: "privatechat", - 1736: "street-stream", - 1737: "ultimad", - 1738: "gamegen1", - 1739: "webaccess", - 1740: "encore", - 1741: "cisco-net-mgmt", - 1742: "3Com-nsd", - 1743: "cinegrfx-lm", - 1744: "ncpm-ft", - 1745: "remote-winsock", - 1746: "ftrapid-1", - 1747: "ftrapid-2", - 1748: "oracle-em1", - 1749: "aspen-services", - 1750: "sslp", - 1751: "swiftnet", - 1752: "lofr-lm", - 1753: "predatar-comms", - 1754: "oracle-em2", - 1755: "ms-streaming", - 1756: "capfast-lmd", - 1757: "cnhrp", - 1758: "tftp-mcast", - 1759: "spss-lm", - 1760: "www-ldap-gw", - 1761: "cft-0", - 1762: "cft-1", - 1763: "cft-2", - 1764: "cft-3", - 1765: "cft-4", - 1766: "cft-5", - 1767: "cft-6", - 1768: "cft-7", - 1769: "bmc-net-adm", - 1770: "bmc-net-svc", - 1771: "vaultbase", - 1772: "essweb-gw", - 1773: "kmscontrol", - 1774: "global-dtserv", - 1775: "vdab", - 1776: "femis", - 1777: "powerguardian", - 1778: "prodigy-intrnet", - 1779: "pharmasoft", - 1780: "dpkeyserv", - 1781: "answersoft-lm", - 1782: "hp-hcip", - 1784: "finle-lm", - 1785: "windlm", - 1786: "funk-logger", - 1787: "funk-license", - 1788: "psmond", - 1789: "hello", - 1790: "nmsp", - 1791: "ea1", - 1792: "ibm-dt-2", - 1793: "rsc-robot", - 1794: "cera-bcm", - 1795: "dpi-proxy", - 1796: "vocaltec-admin", - 1797: "uma", - 1798: "etp", - 1799: "netrisk", - 1800: "ansys-lm", - 1801: "msmq", - 1802: "concomp1", - 1803: "hp-hcip-gwy", - 1804: "enl", - 1805: "enl-name", - 1806: "musiconline", - 1807: "fhsp", - 1808: "oracle-vp2", - 1809: "oracle-vp1", - 1810: "jerand-lm", - 1811: "scientia-sdb", - 1812: "radius", - 1813: "radius-acct", - 1814: "tdp-suite", - 1815: "mmpft", - 1816: "harp", - 1817: "rkb-oscs", - 1818: "etftp", - 1819: "plato-lm", - 1820: "mcagent", - 1821: "donnyworld", - 1822: "es-elmd", - 1823: "unisys-lm", - 1824: "metrics-pas", - 1825: "direcpc-video", - 1826: "ardt", - 1827: "asi", - 1828: "itm-mcell-u", - 1829: "optika-emedia", - 1830: "net8-cman", - 1831: "myrtle", - 1832: "tht-treasure", - 1833: "udpradio", - 1834: "ardusuni", - 1835: "ardusmul", - 1836: "ste-smsc", - 1837: "csoft1", - 1838: "talnet", - 1839: "netopia-vo1", - 1840: "netopia-vo2", - 1841: "netopia-vo3", - 1842: "netopia-vo4", - 1843: "netopia-vo5", - 1844: "direcpc-dll", - 1845: "altalink", - 1846: "tunstall-pnc", - 1847: "slp-notify", - 1848: "fjdocdist", - 1849: "alpha-sms", - 1850: "gsi", - 1851: "ctcd", - 1852: "virtual-time", - 1853: "vids-avtp", - 1854: "buddy-draw", - 1855: "fiorano-rtrsvc", - 1856: "fiorano-msgsvc", - 1857: "datacaptor", - 1858: "privateark", - 1859: "gammafetchsvr", - 1860: "sunscalar-svc", - 1861: "lecroy-vicp", - 1862: "mysql-cm-agent", - 1863: "msnp", - 1864: "paradym-31port", - 1865: "entp", - 1866: "swrmi", - 1867: "udrive", - 1868: "viziblebrowser", - 1869: "transact", - 1870: "sunscalar-dns", - 1871: "canocentral0", - 1872: "canocentral1", - 1873: "fjmpjps", - 1874: "fjswapsnp", - 1875: "westell-stats", - 1876: "ewcappsrv", - 1877: "hp-webqosdb", - 1878: "drmsmc", - 1879: "nettgain-nms", - 1880: "vsat-control", - 1881: "ibm-mqseries2", - 1882: "ecsqdmn", - 1883: "mqtt", - 1884: "idmaps", - 1885: "vrtstrapserver", - 1886: "leoip", - 1887: "filex-lport", - 1888: "ncconfig", - 1889: "unify-adapter", - 1890: "wilkenlistener", - 1891: "childkey-notif", - 1892: "childkey-ctrl", - 1893: "elad", - 1894: "o2server-port", - 1896: "b-novative-ls", - 1897: "metaagent", - 1898: "cymtec-port", - 1899: "mc2studios", - 1900: "ssdp", - 1901: "fjicl-tep-a", - 1902: "fjicl-tep-b", - 1903: "linkname", - 1904: "fjicl-tep-c", - 1905: "sugp", - 1906: "tpmd", - 1907: "intrastar", - 1908: "dawn", - 1909: "global-wlink", - 1910: "ultrabac", - 1911: "mtp", - 1912: "rhp-iibp", - 1913: "armadp", - 1914: "elm-momentum", - 1915: "facelink", - 1916: "persona", - 1917: "noagent", - 1918: "can-nds", - 1919: "can-dch", - 1920: "can-ferret", - 1921: "noadmin", - 1922: "tapestry", - 1923: "spice", - 1924: "xiip", - 1925: "discovery-port", - 1926: "egs", - 1927: "videte-cipc", - 1928: "emsd-port", - 1929: "bandwiz-system", - 1930: "driveappserver", - 1931: "amdsched", - 1932: "ctt-broker", - 1933: "xmapi", - 1934: "xaapi", - 1935: "macromedia-fcs", - 1936: "jetcmeserver", - 1937: "jwserver", - 1938: "jwclient", - 1939: "jvserver", - 1940: "jvclient", - 1941: "dic-aida", - 1942: "res", - 1943: "beeyond-media", - 1944: "close-combat", - 1945: "dialogic-elmd", - 1946: "tekpls", - 1947: "sentinelsrm", - 1948: "eye2eye", - 1949: "ismaeasdaqlive", - 1950: "ismaeasdaqtest", - 1951: "bcs-lmserver", - 1952: "mpnjsc", - 1953: "rapidbase", - 1954: "abr-api", - 1955: "abr-secure", - 1956: "vrtl-vmf-ds", - 1957: "unix-status", - 1958: "dxadmind", - 1959: "simp-all", - 1960: "nasmanager", - 1961: "bts-appserver", - 1962: "biap-mp", - 1963: "webmachine", - 1964: "solid-e-engine", - 1965: "tivoli-npm", - 1966: "slush", - 1967: "sns-quote", - 1968: "lipsinc", - 1969: "lipsinc1", - 1970: "netop-rc", - 1971: "netop-school", - 1972: "intersys-cache", - 1973: "dlsrap", - 1974: "drp", - 1975: "tcoflashagent", - 1976: "tcoregagent", - 1977: "tcoaddressbook", - 1978: "unisql", - 1979: "unisql-java", - 1980: "pearldoc-xact", - 1981: "p2pq", - 1982: "estamp", - 1983: "lhtp", - 1984: "bb", - 1985: "hsrp", - 1986: "licensedaemon", - 1987: "tr-rsrb-p1", - 1988: "tr-rsrb-p2", - 1989: "tr-rsrb-p3", - 1990: "stun-p1", - 1991: "stun-p2", - 1992: "stun-p3", - 1993: "snmp-tcp-port", - 1994: "stun-port", - 1995: "perf-port", - 1996: "tr-rsrb-port", - 1997: "gdp-port", - 1998: "x25-svc-port", - 1999: "tcp-id-port", - 2000: "cisco-sccp", - 2001: "dc", - 2002: "globe", - 2003: "brutus", - 2004: "mailbox", - 2005: "berknet", - 2006: "invokator", - 2007: "dectalk", - 2008: "conf", - 2009: "news", - 2010: "search", - 2011: "raid-cc", - 2012: "ttyinfo", - 2013: "raid-am", - 2014: "troff", - 2015: "cypress", - 2016: "bootserver", - 2017: "cypress-stat", - 2018: "terminaldb", - 2019: "whosockami", - 2020: "xinupageserver", - 2021: "servexec", - 2022: "down", - 2023: "xinuexpansion3", - 2024: "xinuexpansion4", - 2025: "ellpack", - 2026: "scrabble", - 2027: "shadowserver", - 2028: "submitserver", - 2029: "hsrpv6", - 2030: "device2", - 2031: "mobrien-chat", - 2032: "blackboard", - 2033: "glogger", - 2034: "scoremgr", - 2035: "imsldoc", - 2036: "e-dpnet", - 2037: "applus", - 2038: "objectmanager", - 2039: "prizma", - 2040: "lam", - 2041: "interbase", - 2042: "isis", - 2043: "isis-bcast", - 2044: "rimsl", - 2045: "cdfunc", - 2046: "sdfunc", - 2047: "dls", - 2048: "dls-monitor", - 2049: "shilp", - 2050: "av-emb-config", - 2051: "epnsdp", - 2052: "clearvisn", - 2053: "lot105-ds-upd", - 2054: "weblogin", - 2055: "iop", - 2056: "omnisky", - 2057: "rich-cp", - 2058: "newwavesearch", - 2059: "bmc-messaging", - 2060: "teleniumdaemon", - 2061: "netmount", - 2062: "icg-swp", - 2063: "icg-bridge", - 2064: "icg-iprelay", - 2065: "dlsrpn", - 2066: "aura", - 2067: "dlswpn", - 2068: "avauthsrvprtcl", - 2069: "event-port", - 2070: "ah-esp-encap", - 2071: "acp-port", - 2072: "msync", - 2073: "gxs-data-port", - 2074: "vrtl-vmf-sa", - 2075: "newlixengine", - 2076: "newlixconfig", - 2077: "tsrmagt", - 2078: "tpcsrvr", - 2079: "idware-router", - 2080: "autodesk-nlm", - 2081: "kme-trap-port", - 2082: "infowave", - 2083: "radsec", - 2084: "sunclustergeo", - 2085: "ada-cip", - 2086: "gnunet", - 2087: "eli", - 2088: "ip-blf", - 2089: "sep", - 2090: "lrp", - 2091: "prp", - 2092: "descent3", - 2093: "nbx-cc", - 2094: "nbx-au", - 2095: "nbx-ser", - 2096: "nbx-dir", - 2097: "jetformpreview", - 2098: "dialog-port", - 2099: "h2250-annex-g", - 2100: "amiganetfs", - 2101: "rtcm-sc104", - 2102: "zephyr-srv", - 2103: "zephyr-clt", - 2104: "zephyr-hm", - 2105: "minipay", - 2106: "mzap", - 2107: "bintec-admin", - 2108: "comcam", - 2109: "ergolight", - 2110: "umsp", - 2111: "dsatp", - 2112: "idonix-metanet", - 2113: "hsl-storm", - 2114: "newheights", - 2115: "kdm", - 2116: "ccowcmr", - 2117: "mentaclient", - 2118: "mentaserver", - 2119: "gsigatekeeper", - 2120: "qencp", - 2121: "scientia-ssdb", - 2122: "caupc-remote", - 2123: "gtp-control", - 2124: "elatelink", - 2125: "lockstep", - 2126: "pktcable-cops", - 2127: "index-pc-wb", - 2128: "net-steward", - 2129: "cs-live", - 2130: "xds", - 2131: "avantageb2b", - 2132: "solera-epmap", - 2133: "zymed-zpp", - 2134: "avenue", - 2135: "gris", - 2136: "appworxsrv", - 2137: "connect", - 2138: "unbind-cluster", - 2139: "ias-auth", - 2140: "ias-reg", - 2141: "ias-admind", - 2142: "tdmoip", - 2143: "lv-jc", - 2144: "lv-ffx", - 2145: "lv-pici", - 2146: "lv-not", - 2147: "lv-auth", - 2148: "veritas-ucl", - 2149: "acptsys", - 2150: "dynamic3d", - 2151: "docent", - 2152: "gtp-user", - 2153: "ctlptc", - 2154: "stdptc", - 2155: "brdptc", - 2156: "trp", - 2157: "xnds", - 2158: "touchnetplus", - 2159: "gdbremote", - 2160: "apc-2160", - 2161: "apc-2161", - 2162: "navisphere", - 2163: "navisphere-sec", - 2164: "ddns-v3", - 2165: "x-bone-api", - 2166: "iwserver", - 2167: "raw-serial", - 2168: "easy-soft-mux", - 2169: "brain", - 2170: "eyetv", - 2171: "msfw-storage", - 2172: "msfw-s-storage", - 2173: "msfw-replica", - 2174: "msfw-array", - 2175: "airsync", - 2176: "rapi", - 2177: "qwave", - 2178: "bitspeer", - 2179: "vmrdp", - 2180: "mc-gt-srv", - 2181: "eforward", - 2182: "cgn-stat", - 2183: "cgn-config", - 2184: "nvd", - 2185: "onbase-dds", - 2186: "gtaua", - 2187: "ssmc", - 2188: "radware-rpm", - 2189: "radware-rpm-s", - 2190: "tivoconnect", - 2191: "tvbus", - 2192: "asdis", - 2193: "drwcs", - 2197: "mnp-exchange", - 2198: "onehome-remote", - 2199: "onehome-help", - 2200: "ici", - 2201: "ats", - 2202: "imtc-map", - 2203: "b2-runtime", - 2204: "b2-license", - 2205: "jps", - 2206: "hpocbus", - 2207: "hpssd", - 2208: "hpiod", - 2209: "rimf-ps", - 2210: "noaaport", - 2211: "emwin", - 2212: "leecoposserver", - 2213: "kali", - 2214: "rpi", - 2215: "ipcore", - 2216: "vtu-comms", - 2217: "gotodevice", - 2218: "bounzza", - 2219: "netiq-ncap", - 2220: "netiq", - 2221: "ethernet-ip-s", - 2222: "EtherNet-IP-1", - 2223: "rockwell-csp2", - 2224: "efi-mg", - 2225: "rcip-itu", - 2226: "di-drm", - 2227: "di-msg", - 2228: "ehome-ms", - 2229: "datalens", - 2230: "queueadm", - 2231: "wimaxasncp", - 2232: "ivs-video", - 2233: "infocrypt", - 2234: "directplay", - 2235: "sercomm-wlink", - 2236: "nani", - 2237: "optech-port1-lm", - 2238: "aviva-sna", - 2239: "imagequery", - 2240: "recipe", - 2241: "ivsd", - 2242: "foliocorp", - 2243: "magicom", - 2244: "nmsserver", - 2245: "hao", - 2246: "pc-mta-addrmap", - 2247: "antidotemgrsvr", - 2248: "ums", - 2249: "rfmp", - 2250: "remote-collab", - 2251: "dif-port", - 2252: "njenet-ssl", - 2253: "dtv-chan-req", - 2254: "seispoc", - 2255: "vrtp", - 2256: "pcc-mfp", - 2257: "simple-tx-rx", - 2258: "rcts", - 2260: "apc-2260", - 2261: "comotionmaster", - 2262: "comotionback", - 2263: "ecwcfg", - 2264: "apx500api-1", - 2265: "apx500api-2", - 2266: "mfserver", - 2267: "ontobroker", - 2268: "amt", - 2269: "mikey", - 2270: "starschool", - 2271: "mmcals", - 2272: "mmcal", - 2273: "mysql-im", - 2274: "pcttunnell", - 2275: "ibridge-data", - 2276: "ibridge-mgmt", - 2277: "bluectrlproxy", - 2278: "s3db", - 2279: "xmquery", - 2280: "lnvpoller", - 2281: "lnvconsole", - 2282: "lnvalarm", - 2283: "lnvstatus", - 2284: "lnvmaps", - 2285: "lnvmailmon", - 2286: "nas-metering", - 2287: "dna", - 2288: "netml", - 2289: "dict-lookup", - 2290: "sonus-logging", - 2291: "eapsp", - 2292: "mib-streaming", - 2293: "npdbgmngr", - 2294: "konshus-lm", - 2295: "advant-lm", - 2296: "theta-lm", - 2297: "d2k-datamover1", - 2298: "d2k-datamover2", - 2299: "pc-telecommute", - 2300: "cvmmon", - 2301: "cpq-wbem", - 2302: "binderysupport", - 2303: "proxy-gateway", - 2304: "attachmate-uts", - 2305: "mt-scaleserver", - 2306: "tappi-boxnet", - 2307: "pehelp", - 2308: "sdhelp", - 2309: "sdserver", - 2310: "sdclient", - 2311: "messageservice", - 2312: "wanscaler", - 2313: "iapp", - 2314: "cr-websystems", - 2315: "precise-sft", - 2316: "sent-lm", - 2317: "attachmate-g32", - 2318: "cadencecontrol", - 2319: "infolibria", - 2320: "siebel-ns", - 2321: "rdlap", - 2322: "ofsd", - 2323: "3d-nfsd", - 2324: "cosmocall", - 2325: "ansysli", - 2326: "idcp", - 2327: "xingcsm", - 2328: "netrix-sftm", - 2329: "nvd", - 2330: "tscchat", - 2331: "agentview", - 2332: "rcc-host", - 2333: "snapp", - 2334: "ace-client", - 2335: "ace-proxy", - 2336: "appleugcontrol", - 2337: "ideesrv", - 2338: "norton-lambert", - 2339: "3com-webview", - 2340: "wrs-registry", - 2341: "xiostatus", - 2342: "manage-exec", - 2343: "nati-logos", - 2344: "fcmsys", - 2345: "dbm", - 2346: "redstorm-join", - 2347: "redstorm-find", - 2348: "redstorm-info", - 2349: "redstorm-diag", - 2350: "psbserver", - 2351: "psrserver", - 2352: "pslserver", - 2353: "pspserver", - 2354: "psprserver", - 2355: "psdbserver", - 2356: "gxtelmd", - 2357: "unihub-server", - 2358: "futrix", - 2359: "flukeserver", - 2360: "nexstorindltd", - 2361: "tl1", - 2362: "digiman", - 2363: "mediacntrlnfsd", - 2364: "oi-2000", - 2365: "dbref", - 2366: "qip-login", - 2367: "service-ctrl", - 2368: "opentable", - 2370: "l3-hbmon", - 2371: "hp-rda", - 2372: "lanmessenger", - 2373: "remographlm", - 2374: "hydra", - 2375: "docker", - 2376: "docker-s", - 2377: "swarm", - 2379: "etcd-client", - 2380: "etcd-server", - 2381: "compaq-https", - 2382: "ms-olap3", - 2383: "ms-olap4", - 2384: "sd-request", - 2385: "sd-data", - 2386: "virtualtape", - 2387: "vsamredirector", - 2388: "mynahautostart", - 2389: "ovsessionmgr", - 2390: "rsmtp", - 2391: "3com-net-mgmt", - 2392: "tacticalauth", - 2393: "ms-olap1", - 2394: "ms-olap2", - 2395: "lan900-remote", - 2396: "wusage", - 2397: "ncl", - 2398: "orbiter", - 2399: "fmpro-fdal", - 2400: "opequus-server", - 2401: "cvspserver", - 2402: "taskmaster2000", - 2403: "taskmaster2000", - 2404: "iec-104", - 2405: "trc-netpoll", - 2406: "jediserver", - 2407: "orion", - 2408: "railgun-webaccl", - 2409: "sns-protocol", - 2410: "vrts-registry", - 2411: "netwave-ap-mgmt", - 2412: "cdn", - 2413: "orion-rmi-reg", - 2414: "beeyond", - 2415: "codima-rtp", - 2416: "rmtserver", - 2417: "composit-server", - 2418: "cas", - 2419: "attachmate-s2s", - 2420: "dslremote-mgmt", - 2421: "g-talk", - 2422: "crmsbits", - 2423: "rnrp", - 2424: "kofax-svr", - 2425: "fjitsuappmgr", - 2426: "vcmp", - 2427: "mgcp-gateway", - 2428: "ott", - 2429: "ft-role", - 2430: "venus", - 2431: "venus-se", - 2432: "codasrv", - 2433: "codasrv-se", - 2434: "pxc-epmap", - 2435: "optilogic", - 2436: "topx", - 2437: "unicontrol", - 2438: "msp", - 2439: "sybasedbsynch", - 2440: "spearway", - 2441: "pvsw-inet", - 2442: "netangel", - 2443: "powerclientcsf", - 2444: "btpp2sectrans", - 2445: "dtn1", - 2446: "bues-service", - 2447: "ovwdb", - 2448: "hpppssvr", - 2449: "ratl", - 2450: "netadmin", - 2451: "netchat", - 2452: "snifferclient", - 2453: "madge-ltd", - 2454: "indx-dds", - 2455: "wago-io-system", - 2456: "altav-remmgt", - 2457: "rapido-ip", - 2458: "griffin", - 2459: "community", - 2460: "ms-theater", - 2461: "qadmifoper", - 2462: "qadmifevent", - 2463: "lsi-raid-mgmt", - 2464: "direcpc-si", - 2465: "lbm", - 2466: "lbf", - 2467: "high-criteria", - 2468: "qip-msgd", - 2469: "mti-tcs-comm", - 2470: "taskman-port", - 2471: "seaodbc", - 2472: "c3", - 2473: "aker-cdp", - 2474: "vitalanalysis", - 2475: "ace-server", - 2476: "ace-svr-prop", - 2477: "ssm-cvs", - 2478: "ssm-cssps", - 2479: "ssm-els", - 2480: "powerexchange", - 2481: "giop", - 2482: "giop-ssl", - 2483: "ttc", - 2484: "ttc-ssl", - 2485: "netobjects1", - 2486: "netobjects2", - 2487: "pns", - 2488: "moy-corp", - 2489: "tsilb", - 2490: "qip-qdhcp", - 2491: "conclave-cpp", - 2492: "groove", - 2493: "talarian-mqs", - 2494: "bmc-ar", - 2495: "fast-rem-serv", - 2496: "dirgis", - 2497: "quaddb", - 2498: "odn-castraq", - 2499: "unicontrol", - 2500: "rtsserv", - 2501: "rtsclient", - 2502: "kentrox-prot", - 2503: "nms-dpnss", - 2504: "wlbs", - 2505: "ppcontrol", - 2506: "jbroker", - 2507: "spock", - 2508: "jdatastore", - 2509: "fjmpss", - 2510: "fjappmgrbulk", - 2511: "metastorm", - 2512: "citrixima", - 2513: "citrixadmin", - 2514: "facsys-ntp", - 2515: "facsys-router", - 2516: "maincontrol", - 2517: "call-sig-trans", - 2518: "willy", - 2519: "globmsgsvc", - 2520: "pvsw", - 2521: "adaptecmgr", - 2522: "windb", - 2523: "qke-llc-v3", - 2524: "optiwave-lm", - 2525: "ms-v-worlds", - 2526: "ema-sent-lm", - 2527: "iqserver", - 2528: "ncr-ccl", - 2529: "utsftp", - 2530: "vrcommerce", - 2531: "ito-e-gui", - 2532: "ovtopmd", - 2533: "snifferserver", - 2534: "combox-web-acc", - 2535: "madcap", - 2536: "btpp2audctr1", - 2537: "upgrade", - 2538: "vnwk-prapi", - 2539: "vsiadmin", - 2540: "lonworks", - 2541: "lonworks2", - 2542: "udrawgraph", - 2543: "reftek", - 2544: "novell-zen", - 2545: "sis-emt", - 2546: "vytalvaultbrtp", - 2547: "vytalvaultvsmp", - 2548: "vytalvaultpipe", - 2549: "ipass", - 2550: "ads", - 2551: "isg-uda-server", - 2552: "call-logging", - 2553: "efidiningport", - 2554: "vcnet-link-v10", - 2555: "compaq-wcp", - 2556: "nicetec-nmsvc", - 2557: "nicetec-mgmt", - 2558: "pclemultimedia", - 2559: "lstp", - 2560: "labrat", - 2561: "mosaixcc", - 2562: "delibo", - 2563: "cti-redwood", - 2564: "hp-3000-telnet", - 2565: "coord-svr", - 2566: "pcs-pcw", - 2567: "clp", - 2568: "spamtrap", - 2569: "sonuscallsig", - 2570: "hs-port", - 2571: "cecsvc", - 2572: "ibp", - 2573: "trustestablish", - 2574: "blockade-bpsp", - 2575: "hl7", - 2576: "tclprodebugger", - 2577: "scipticslsrvr", - 2578: "rvs-isdn-dcp", - 2579: "mpfoncl", - 2580: "tributary", - 2581: "argis-te", - 2582: "argis-ds", - 2583: "mon", - 2584: "cyaserv", - 2585: "netx-server", - 2586: "netx-agent", - 2587: "masc", - 2588: "privilege", - 2589: "quartus-tcl", - 2590: "idotdist", - 2591: "maytagshuffle", - 2592: "netrek", - 2593: "mns-mail", - 2594: "dts", - 2595: "worldfusion1", - 2596: "worldfusion2", - 2597: "homesteadglory", - 2598: "citriximaclient", - 2599: "snapd", - 2600: "hpstgmgr", - 2601: "discp-client", - 2602: "discp-server", - 2603: "servicemeter", - 2604: "nsc-ccs", - 2605: "nsc-posa", - 2606: "netmon", - 2607: "connection", - 2608: "wag-service", - 2609: "system-monitor", - 2610: "versa-tek", - 2611: "lionhead", - 2612: "qpasa-agent", - 2613: "smntubootstrap", - 2614: "neveroffline", - 2615: "firepower", - 2616: "appswitch-emp", - 2617: "cmadmin", - 2618: "priority-e-com", - 2619: "bruce", - 2620: "lpsrecommender", - 2621: "miles-apart", - 2622: "metricadbc", - 2623: "lmdp", - 2624: "aria", - 2625: "blwnkl-port", - 2626: "gbjd816", - 2627: "moshebeeri", - 2628: "dict", - 2629: "sitaraserver", - 2630: "sitaramgmt", - 2631: "sitaradir", - 2632: "irdg-post", - 2633: "interintelli", - 2634: "pk-electronics", - 2635: "backburner", - 2636: "solve", - 2637: "imdocsvc", - 2638: "sybaseanywhere", - 2639: "aminet", - 2640: "ami-control", - 2641: "hdl-srv", - 2642: "tragic", - 2643: "gte-samp", - 2644: "travsoft-ipx-t", - 2645: "novell-ipx-cmd", - 2646: "and-lm", - 2647: "syncserver", - 2648: "upsnotifyprot", - 2649: "vpsipport", - 2650: "eristwoguns", - 2651: "ebinsite", - 2652: "interpathpanel", - 2653: "sonus", - 2654: "corel-vncadmin", - 2655: "unglue", - 2656: "kana", - 2657: "sns-dispatcher", - 2658: "sns-admin", - 2659: "sns-query", - 2660: "gcmonitor", - 2661: "olhost", - 2662: "bintec-capi", - 2663: "bintec-tapi", - 2664: "patrol-mq-gm", - 2665: "patrol-mq-nm", - 2666: "extensis", - 2667: "alarm-clock-s", - 2668: "alarm-clock-c", - 2669: "toad", - 2670: "tve-announce", - 2671: "newlixreg", - 2672: "nhserver", - 2673: "firstcall42", - 2674: "ewnn", - 2675: "ttc-etap", - 2676: "simslink", - 2677: "gadgetgate1way", - 2678: "gadgetgate2way", - 2679: "syncserverssl", - 2680: "pxc-sapxom", - 2681: "mpnjsomb", - 2683: "ncdloadbalance", - 2684: "mpnjsosv", - 2685: "mpnjsocl", - 2686: "mpnjsomg", - 2687: "pq-lic-mgmt", - 2688: "md-cg-http", - 2689: "fastlynx", - 2690: "hp-nnm-data", - 2691: "itinternet", - 2692: "admins-lms", - 2694: "pwrsevent", - 2695: "vspread", - 2696: "unifyadmin", - 2697: "oce-snmp-trap", - 2698: "mck-ivpip", - 2699: "csoft-plusclnt", - 2700: "tqdata", - 2701: "sms-rcinfo", - 2702: "sms-xfer", - 2703: "sms-chat", - 2704: "sms-remctrl", - 2705: "sds-admin", - 2706: "ncdmirroring", - 2707: "emcsymapiport", - 2708: "banyan-net", - 2709: "supermon", - 2710: "sso-service", - 2711: "sso-control", - 2712: "aocp", - 2713: "raventbs", - 2714: "raventdm", - 2715: "hpstgmgr2", - 2716: "inova-ip-disco", - 2717: "pn-requester", - 2718: "pn-requester2", - 2719: "scan-change", - 2720: "wkars", - 2721: "smart-diagnose", - 2722: "proactivesrvr", - 2723: "watchdog-nt", - 2724: "qotps", - 2725: "msolap-ptp2", - 2726: "tams", - 2727: "mgcp-callagent", - 2728: "sqdr", - 2729: "tcim-control", - 2730: "nec-raidplus", - 2731: "fyre-messanger", - 2732: "g5m", - 2733: "signet-ctf", - 2734: "ccs-software", - 2735: "netiq-mc", - 2736: "radwiz-nms-srv", - 2737: "srp-feedback", - 2738: "ndl-tcp-ois-gw", - 2739: "tn-timing", - 2740: "alarm", - 2741: "tsb", - 2742: "tsb2", - 2743: "murx", - 2744: "honyaku", - 2745: "urbisnet", - 2746: "cpudpencap", - 2747: "fjippol-swrly", - 2748: "fjippol-polsvr", - 2749: "fjippol-cnsl", - 2750: "fjippol-port1", - 2751: "fjippol-port2", - 2752: "rsisysaccess", - 2753: "de-spot", - 2754: "apollo-cc", - 2755: "expresspay", - 2756: "simplement-tie", - 2757: "cnrp", - 2758: "apollo-status", - 2759: "apollo-gms", - 2760: "sabams", - 2761: "dicom-iscl", - 2762: "dicom-tls", - 2763: "desktop-dna", - 2764: "data-insurance", - 2765: "qip-audup", - 2766: "compaq-scp", - 2767: "uadtc", - 2768: "uacs", - 2769: "exce", - 2770: "veronica", - 2771: "vergencecm", - 2772: "auris", - 2773: "rbakcup1", - 2774: "rbakcup2", - 2775: "smpp", - 2776: "ridgeway1", - 2777: "ridgeway2", - 2778: "gwen-sonya", - 2779: "lbc-sync", - 2780: "lbc-control", - 2781: "whosells", - 2782: "everydayrc", - 2783: "aises", - 2784: "www-dev", - 2785: "aic-np", - 2786: "aic-oncrpc", - 2787: "piccolo", - 2788: "fryeserv", - 2789: "media-agent", - 2790: "plgproxy", - 2791: "mtport-regist", - 2792: "f5-globalsite", - 2793: "initlsmsad", - 2795: "livestats", - 2796: "ac-tech", - 2797: "esp-encap", - 2798: "tmesis-upshot", - 2799: "icon-discover", - 2800: "acc-raid", - 2801: "igcp", - 2802: "veritas-tcp1", - 2803: "btprjctrl", - 2804: "dvr-esm", - 2805: "wta-wsp-s", - 2806: "cspuni", - 2807: "cspmulti", - 2808: "j-lan-p", - 2809: "corbaloc", - 2810: "netsteward", - 2811: "gsiftp", - 2812: "atmtcp", - 2813: "llm-pass", - 2814: "llm-csv", - 2815: "lbc-measure", - 2816: "lbc-watchdog", - 2817: "nmsigport", - 2818: "rmlnk", - 2819: "fc-faultnotify", - 2820: "univision", - 2821: "vrts-at-port", - 2822: "ka0wuc", - 2823: "cqg-netlan", - 2824: "cqg-netlan-1", - 2826: "slc-systemlog", - 2827: "slc-ctrlrloops", - 2828: "itm-lm", - 2829: "silkp1", - 2830: "silkp2", - 2831: "silkp3", - 2832: "silkp4", - 2833: "glishd", - 2834: "evtp", - 2835: "evtp-data", - 2836: "catalyst", - 2837: "repliweb", - 2838: "starbot", - 2839: "nmsigport", - 2840: "l3-exprt", - 2841: "l3-ranger", - 2842: "l3-hawk", - 2843: "pdnet", - 2844: "bpcp-poll", - 2845: "bpcp-trap", - 2846: "aimpp-hello", - 2847: "aimpp-port-req", - 2848: "amt-blc-port", - 2849: "fxp", - 2850: "metaconsole", - 2851: "webemshttp", - 2852: "bears-01", - 2853: "ispipes", - 2854: "infomover", - 2855: "msrp", - 2856: "cesdinv", - 2857: "simctlp", - 2858: "ecnp", - 2859: "activememory", - 2860: "dialpad-voice1", - 2861: "dialpad-voice2", - 2862: "ttg-protocol", - 2863: "sonardata", - 2864: "astromed-main", - 2865: "pit-vpn", - 2866: "iwlistener", - 2867: "esps-portal", - 2868: "npep-messaging", - 2869: "icslap", - 2870: "daishi", - 2871: "msi-selectplay", - 2872: "radix", - 2874: "dxmessagebase1", - 2875: "dxmessagebase2", - 2876: "sps-tunnel", - 2877: "bluelance", - 2878: "aap", - 2879: "ucentric-ds", - 2880: "synapse", - 2881: "ndsp", - 2882: "ndtp", - 2883: "ndnp", - 2884: "flashmsg", - 2885: "topflow", - 2886: "responselogic", - 2887: "aironetddp", - 2888: "spcsdlobby", - 2889: "rsom", - 2890: "cspclmulti", - 2891: "cinegrfx-elmd", - 2892: "snifferdata", - 2893: "vseconnector", - 2894: "abacus-remote", - 2895: "natuslink", - 2896: "ecovisiong6-1", - 2897: "citrix-rtmp", - 2898: "appliance-cfg", - 2899: "powergemplus", - 2900: "quicksuite", - 2901: "allstorcns", - 2902: "netaspi", - 2903: "suitcase", - 2904: "m2ua", - 2905: "m3ua", - 2906: "caller9", - 2907: "webmethods-b2b", - 2908: "mao", - 2909: "funk-dialout", - 2910: "tdaccess", - 2911: "blockade", - 2912: "epicon", - 2913: "boosterware", - 2914: "gamelobby", - 2915: "tksocket", - 2916: "elvin-server", - 2917: "elvin-client", - 2918: "kastenchasepad", - 2919: "roboer", - 2920: "roboeda", - 2921: "cesdcdman", - 2922: "cesdcdtrn", - 2923: "wta-wsp-wtp-s", - 2924: "precise-vip", - 2926: "mobile-file-dl", - 2927: "unimobilectrl", - 2928: "redstone-cpss", - 2929: "amx-webadmin", - 2930: "amx-weblinx", - 2931: "circle-x", - 2932: "incp", - 2933: "4-tieropmgw", - 2934: "4-tieropmcli", - 2935: "qtp", - 2936: "otpatch", - 2937: "pnaconsult-lm", - 2938: "sm-pas-1", - 2939: "sm-pas-2", - 2940: "sm-pas-3", - 2941: "sm-pas-4", - 2942: "sm-pas-5", - 2943: "ttnrepository", - 2944: "megaco-h248", - 2945: "h248-binary", - 2946: "fjsvmpor", - 2947: "gpsd", - 2948: "wap-push", - 2949: "wap-pushsecure", - 2950: "esip", - 2951: "ottp", - 2952: "mpfwsas", - 2953: "ovalarmsrv", - 2954: "ovalarmsrv-cmd", - 2955: "csnotify", - 2956: "ovrimosdbman", - 2957: "jmact5", - 2958: "jmact6", - 2959: "rmopagt", - 2960: "dfoxserver", - 2961: "boldsoft-lm", - 2962: "iph-policy-cli", - 2963: "iph-policy-adm", - 2964: "bullant-srap", - 2965: "bullant-rap", - 2966: "idp-infotrieve", - 2967: "ssc-agent", - 2968: "enpp", - 2969: "essp", - 2970: "index-net", - 2971: "netclip", - 2972: "pmsm-webrctl", - 2973: "svnetworks", - 2974: "signal", - 2975: "fjmpcm", - 2976: "cns-srv-port", - 2977: "ttc-etap-ns", - 2978: "ttc-etap-ds", - 2979: "h263-video", - 2980: "wimd", - 2981: "mylxamport", - 2982: "iwb-whiteboard", - 2983: "netplan", - 2984: "hpidsadmin", - 2985: "hpidsagent", - 2986: "stonefalls", - 2987: "identify", - 2988: "hippad", - 2989: "zarkov", - 2990: "boscap", - 2991: "wkstn-mon", - 2992: "avenyo", - 2993: "veritas-vis1", - 2994: "veritas-vis2", - 2995: "idrs", - 2996: "vsixml", - 2997: "rebol", - 2998: "realsecure", - 2999: "remoteware-un", - 3000: "hbci", - 3001: "origo-native", - 3002: "exlm-agent", - 3003: "cgms", - 3004: "csoftragent", - 3005: "geniuslm", - 3006: "ii-admin", - 3007: "lotusmtap", - 3008: "midnight-tech", - 3009: "pxc-ntfy", - 3010: "gw", - 3011: "trusted-web", - 3012: "twsdss", - 3013: "gilatskysurfer", - 3014: "broker-service", - 3015: "nati-dstp", - 3016: "notify-srvr", - 3017: "event-listener", - 3018: "srvc-registry", - 3019: "resource-mgr", - 3020: "cifs", - 3021: "agriserver", - 3022: "csregagent", - 3023: "magicnotes", - 3024: "nds-sso", - 3025: "arepa-raft", - 3026: "agri-gateway", - 3027: "LiebDevMgmt-C", - 3028: "LiebDevMgmt-DM", - 3029: "LiebDevMgmt-A", - 3030: "arepa-cas", - 3031: "eppc", - 3032: "redwood-chat", - 3033: "pdb", - 3034: "osmosis-aeea", - 3035: "fjsv-gssagt", - 3036: "hagel-dump", - 3037: "hp-san-mgmt", - 3038: "santak-ups", - 3039: "cogitate", - 3040: "tomato-springs", - 3041: "di-traceware", - 3042: "journee", - 3043: "brp", - 3044: "epp", - 3045: "responsenet", - 3046: "di-ase", - 3047: "hlserver", - 3048: "pctrader", - 3049: "nsws", - 3050: "gds-db", - 3051: "galaxy-server", - 3052: "apc-3052", - 3053: "dsom-server", - 3054: "amt-cnf-prot", - 3055: "policyserver", - 3056: "cdl-server", - 3057: "goahead-fldup", - 3058: "videobeans", - 3059: "qsoft", - 3060: "interserver", - 3061: "cautcpd", - 3062: "ncacn-ip-tcp", - 3063: "ncadg-ip-udp", - 3064: "rprt", - 3065: "slinterbase", - 3066: "netattachsdmp", - 3067: "fjhpjp", - 3068: "ls3bcast", - 3069: "ls3", - 3070: "mgxswitch", - 3071: "xplat-replicate", - 3072: "csd-monitor", - 3073: "vcrp", - 3074: "xbox", - 3075: "orbix-locator", - 3076: "orbix-config", - 3077: "orbix-loc-ssl", - 3078: "orbix-cfg-ssl", - 3079: "lv-frontpanel", - 3080: "stm-pproc", - 3081: "tl1-lv", - 3082: "tl1-raw", - 3083: "tl1-telnet", - 3084: "itm-mccs", - 3085: "pcihreq", - 3086: "jdl-dbkitchen", - 3087: "asoki-sma", - 3088: "xdtp", - 3089: "ptk-alink", - 3090: "stss", - 3091: "1ci-smcs", - 3093: "rapidmq-center", - 3094: "rapidmq-reg", - 3095: "panasas", - 3096: "ndl-aps", - 3098: "umm-port", - 3099: "chmd", - 3100: "opcon-xps", - 3101: "hp-pxpib", - 3102: "slslavemon", - 3103: "autocuesmi", - 3104: "autocuelog", - 3105: "cardbox", - 3106: "cardbox-http", - 3107: "business", - 3108: "geolocate", - 3109: "personnel", - 3110: "sim-control", - 3111: "wsynch", - 3112: "ksysguard", - 3113: "cs-auth-svr", - 3114: "ccmad", - 3115: "mctet-master", - 3116: "mctet-gateway", - 3117: "mctet-jserv", - 3118: "pkagent", - 3119: "d2000kernel", - 3120: "d2000webserver", - 3121: "pcmk-remote", - 3122: "vtr-emulator", - 3123: "edix", - 3124: "beacon-port", - 3125: "a13-an", - 3127: "ctx-bridge", - 3128: "ndl-aas", - 3129: "netport-id", - 3130: "icpv2", - 3131: "netbookmark", - 3132: "ms-rule-engine", - 3133: "prism-deploy", - 3134: "ecp", - 3135: "peerbook-port", - 3136: "grubd", - 3137: "rtnt-1", - 3138: "rtnt-2", - 3139: "incognitorv", - 3140: "ariliamulti", - 3141: "vmodem", - 3142: "rdc-wh-eos", - 3143: "seaview", - 3144: "tarantella", - 3145: "csi-lfap", - 3146: "bears-02", - 3147: "rfio", - 3148: "nm-game-admin", - 3149: "nm-game-server", - 3150: "nm-asses-admin", - 3151: "nm-assessor", - 3152: "feitianrockey", - 3153: "s8-client-port", - 3154: "ccmrmi", - 3155: "jpegmpeg", - 3156: "indura", - 3157: "e3consultants", - 3158: "stvp", - 3159: "navegaweb-port", - 3160: "tip-app-server", - 3161: "doc1lm", - 3162: "sflm", - 3163: "res-sap", - 3164: "imprs", - 3165: "newgenpay", - 3166: "sossecollector", - 3167: "nowcontact", - 3168: "poweronnud", - 3169: "serverview-as", - 3170: "serverview-asn", - 3171: "serverview-gf", - 3172: "serverview-rm", - 3173: "serverview-icc", - 3174: "armi-server", - 3175: "t1-e1-over-ip", - 3176: "ars-master", - 3177: "phonex-port", - 3178: "radclientport", - 3179: "h2gf-w-2m", - 3180: "mc-brk-srv", - 3181: "bmcpatrolagent", - 3182: "bmcpatrolrnvu", - 3183: "cops-tls", - 3184: "apogeex-port", - 3185: "smpppd", - 3186: "iiw-port", - 3187: "odi-port", - 3188: "brcm-comm-port", - 3189: "pcle-infex", - 3190: "csvr-proxy", - 3191: "csvr-sslproxy", - 3192: "firemonrcc", - 3193: "spandataport", - 3194: "magbind", - 3195: "ncu-1", - 3196: "ncu-2", - 3197: "embrace-dp-s", - 3198: "embrace-dp-c", - 3199: "dmod-workspace", - 3200: "tick-port", - 3201: "cpq-tasksmart", - 3202: "intraintra", - 3203: "netwatcher-mon", - 3204: "netwatcher-db", - 3205: "isns", - 3206: "ironmail", - 3207: "vx-auth-port", - 3208: "pfu-prcallback", - 3209: "netwkpathengine", - 3210: "flamenco-proxy", - 3211: "avsecuremgmt", - 3212: "surveyinst", - 3213: "neon24x7", - 3214: "jmq-daemon-1", - 3215: "jmq-daemon-2", - 3216: "ferrari-foam", - 3217: "unite", - 3218: "smartpackets", - 3219: "wms-messenger", - 3220: "xnm-ssl", - 3221: "xnm-clear-text", - 3222: "glbp", - 3223: "digivote", - 3224: "aes-discovery", - 3225: "fcip-port", - 3226: "isi-irp", - 3227: "dwnmshttp", - 3228: "dwmsgserver", - 3229: "global-cd-port", - 3230: "sftdst-port", - 3231: "vidigo", - 3232: "mdtp", - 3233: "whisker", - 3234: "alchemy", - 3235: "mdap-port", - 3236: "apparenet-ts", - 3237: "apparenet-tps", - 3238: "apparenet-as", - 3239: "apparenet-ui", - 3240: "triomotion", - 3241: "sysorb", - 3242: "sdp-id-port", - 3243: "timelot", - 3244: "onesaf", - 3245: "vieo-fe", - 3246: "dvt-system", - 3247: "dvt-data", - 3248: "procos-lm", - 3249: "ssp", - 3250: "hicp", - 3251: "sysscanner", - 3252: "dhe", - 3253: "pda-data", - 3254: "pda-sys", - 3255: "semaphore", - 3256: "cpqrpm-agent", - 3257: "cpqrpm-server", - 3258: "ivecon-port", - 3259: "epncdp2", - 3260: "iscsi-target", - 3261: "winshadow", - 3262: "necp", - 3263: "ecolor-imager", - 3264: "ccmail", - 3265: "altav-tunnel", - 3266: "ns-cfg-server", - 3267: "ibm-dial-out", - 3268: "msft-gc", - 3269: "msft-gc-ssl", - 3270: "verismart", - 3271: "csoft-prev", - 3272: "user-manager", - 3273: "sxmp", - 3274: "ordinox-server", - 3275: "samd", - 3276: "maxim-asics", - 3277: "awg-proxy", - 3278: "lkcmserver", - 3279: "admind", - 3280: "vs-server", - 3281: "sysopt", - 3282: "datusorb", - 3283: "Apple Remote Desktop (Net Assistant)", - 3284: "4talk", - 3285: "plato", - 3286: "e-net", - 3287: "directvdata", - 3288: "cops", - 3289: "enpc", - 3290: "caps-lm", - 3291: "sah-lm", - 3292: "cart-o-rama", - 3293: "fg-fps", - 3294: "fg-gip", - 3295: "dyniplookup", - 3296: "rib-slm", - 3297: "cytel-lm", - 3298: "deskview", - 3299: "pdrncs", - 3300: "ceph", - 3302: "mcs-fastmail", - 3303: "opsession-clnt", - 3304: "opsession-srvr", - 3305: "odette-ftp", - 3306: "mysql", - 3307: "opsession-prxy", - 3308: "tns-server", - 3309: "tns-adv", - 3310: "dyna-access", - 3311: "mcns-tel-ret", - 3312: "appman-server", - 3313: "uorb", - 3314: "uohost", - 3315: "cdid", - 3316: "aicc-cmi", - 3317: "vsaiport", - 3318: "ssrip", - 3319: "sdt-lmd", - 3320: "officelink2000", - 3321: "vnsstr", - 3326: "sftu", - 3327: "bbars", - 3328: "egptlm", - 3329: "hp-device-disc", - 3330: "mcs-calypsoicf", - 3331: "mcs-messaging", - 3332: "mcs-mailsvr", - 3333: "dec-notes", - 3334: "directv-web", - 3335: "directv-soft", - 3336: "directv-tick", - 3337: "directv-catlg", - 3338: "anet-b", - 3339: "anet-l", - 3340: "anet-m", - 3341: "anet-h", - 3342: "webtie", - 3343: "ms-cluster-net", - 3344: "bnt-manager", - 3345: "influence", - 3346: "trnsprntproxy", - 3347: "phoenix-rpc", - 3348: "pangolin-laser", - 3349: "chevinservices", - 3350: "findviatv", - 3351: "btrieve", - 3352: "ssql", - 3353: "fatpipe", - 3354: "suitjd", - 3355: "ordinox-dbase", - 3356: "upnotifyps", - 3357: "adtech-test", - 3358: "mpsysrmsvr", - 3359: "wg-netforce", - 3360: "kv-server", - 3361: "kv-agent", - 3362: "dj-ilm", - 3363: "nati-vi-server", - 3364: "creativeserver", - 3365: "contentserver", - 3366: "creativepartnr", - 3372: "tip2", - 3373: "lavenir-lm", - 3374: "cluster-disc", - 3375: "vsnm-agent", - 3376: "cdbroker", - 3377: "cogsys-lm", - 3378: "wsicopy", - 3379: "socorfs", - 3380: "sns-channels", - 3381: "geneous", - 3382: "fujitsu-neat", - 3383: "esp-lm", - 3384: "hp-clic", - 3385: "qnxnetman", - 3386: "gprs-data", - 3387: "backroomnet", - 3388: "cbserver", - 3389: "ms-wbt-server", - 3390: "dsc", - 3391: "savant", - 3392: "efi-lm", - 3393: "d2k-tapestry1", - 3394: "d2k-tapestry2", - 3395: "dyna-lm", - 3396: "printer-agent", - 3397: "cloanto-lm", - 3398: "mercantile", - 3399: "csms", - 3400: "csms2", - 3401: "filecast", - 3402: "fxaengine-net", - 3405: "nokia-ann-ch1", - 3406: "nokia-ann-ch2", - 3407: "ldap-admin", - 3408: "BESApi", - 3409: "networklens", - 3410: "networklenss", - 3411: "biolink-auth", - 3412: "xmlblaster", - 3413: "svnet", - 3414: "wip-port", - 3415: "bcinameservice", - 3416: "commandport", - 3417: "csvr", - 3418: "rnmap", - 3419: "softaudit", - 3420: "ifcp-port", - 3421: "bmap", - 3422: "rusb-sys-port", - 3423: "xtrm", - 3424: "xtrms", - 3425: "agps-port", - 3426: "arkivio", - 3427: "websphere-snmp", - 3428: "twcss", - 3429: "gcsp", - 3430: "ssdispatch", - 3431: "ndl-als", - 3432: "osdcp", - 3433: "opnet-smp", - 3434: "opencm", - 3435: "pacom", - 3436: "gc-config", - 3437: "autocueds", - 3438: "spiral-admin", - 3439: "hri-port", - 3440: "ans-console", - 3441: "connect-client", - 3442: "connect-server", - 3443: "ov-nnm-websrv", - 3444: "denali-server", - 3445: "monp", - 3446: "3comfaxrpc", - 3447: "directnet", - 3448: "dnc-port", - 3449: "hotu-chat", - 3450: "castorproxy", - 3451: "asam", - 3452: "sabp-signal", - 3453: "pscupd", - 3454: "mira", - 3455: "prsvp", - 3456: "vat", - 3457: "vat-control", - 3458: "d3winosfi", - 3459: "integral", - 3460: "edm-manager", - 3461: "edm-stager", - 3462: "edm-std-notify", - 3463: "edm-adm-notify", - 3464: "edm-mgr-sync", - 3465: "edm-mgr-cntrl", - 3466: "workflow", - 3467: "rcst", - 3468: "ttcmremotectrl", - 3469: "pluribus", - 3470: "jt400", - 3471: "jt400-ssl", - 3472: "jaugsremotec-1", - 3473: "jaugsremotec-2", - 3474: "ttntspauto", - 3475: "genisar-port", - 3476: "nppmp", - 3477: "ecomm", - 3478: "stun", - 3479: "twrpc", - 3480: "plethora", - 3481: "cleanerliverc", - 3482: "vulture", - 3483: "slim-devices", - 3484: "gbs-stp", - 3485: "celatalk", - 3486: "ifsf-hb-port", - 3487: "ltctcp", - 3488: "fs-rh-srv", - 3489: "dtp-dia", - 3490: "colubris", - 3491: "swr-port", - 3492: "tvdumtray-port", - 3493: "nut", - 3494: "ibm3494", - 3495: "seclayer-tcp", - 3496: "seclayer-tls", - 3497: "ipether232port", - 3498: "dashpas-port", - 3499: "sccip-media", - 3500: "rtmp-port", - 3501: "isoft-p2p", - 3502: "avinstalldisc", - 3503: "lsp-ping", - 3504: "ironstorm", - 3505: "ccmcomm", - 3506: "apc-3506", - 3507: "nesh-broker", - 3508: "interactionweb", - 3509: "vt-ssl", - 3510: "xss-port", - 3511: "webmail-2", - 3512: "aztec", - 3513: "arcpd", - 3514: "must-p2p", - 3515: "must-backplane", - 3516: "smartcard-port", - 3517: "802-11-iapp", - 3518: "artifact-msg", - 3519: "nvmsgd", - 3520: "galileolog", - 3521: "mc3ss", - 3522: "nssocketport", - 3523: "odeumservlink", - 3524: "ecmport", - 3525: "eisport", - 3526: "starquiz-port", - 3527: "beserver-msg-q", - 3528: "jboss-iiop", - 3529: "jboss-iiop-ssl", - 3530: "gf", - 3531: "joltid", - 3532: "raven-rmp", - 3533: "raven-rdp", - 3534: "urld-port", - 3535: "ms-la", - 3536: "snac", - 3537: "ni-visa-remote", - 3538: "ibm-diradm", - 3539: "ibm-diradm-ssl", - 3540: "pnrp-port", - 3541: "voispeed-port", - 3542: "hacl-monitor", - 3543: "qftest-lookup", - 3544: "teredo", - 3545: "camac", - 3547: "symantec-sim", - 3548: "interworld", - 3549: "tellumat-nms", - 3550: "ssmpp", - 3551: "apcupsd", - 3552: "taserver", - 3553: "rbr-discovery", - 3554: "questnotify", - 3555: "razor", - 3556: "sky-transport", - 3557: "personalos-001", - 3558: "mcp-port", - 3559: "cctv-port", - 3560: "iniserve-port", - 3561: "bmc-onekey", - 3562: "sdbproxy", - 3563: "watcomdebug", - 3564: "esimport", - 3565: "m2pa", - 3566: "quest-data-hub", - 3567: "dof-eps", - 3568: "dof-tunnel-sec", - 3569: "mbg-ctrl", - 3570: "mccwebsvr-port", - 3571: "megardsvr-port", - 3572: "megaregsvrport", - 3573: "tag-ups-1", - 3574: "dmaf-server", - 3575: "ccm-port", - 3576: "cmc-port", - 3577: "config-port", - 3578: "data-port", - 3579: "ttat3lb", - 3580: "nati-svrloc", - 3581: "kfxaclicensing", - 3582: "press", - 3583: "canex-watch", - 3584: "u-dbap", - 3585: "emprise-lls", - 3586: "emprise-lsc", - 3587: "p2pgroup", - 3588: "sentinel", - 3589: "isomair", - 3590: "wv-csp-sms", - 3591: "gtrack-server", - 3592: "gtrack-ne", - 3593: "bpmd", - 3594: "mediaspace", - 3595: "shareapp", - 3596: "iw-mmogame", - 3597: "a14", - 3598: "a15", - 3599: "quasar-server", - 3600: "trap-daemon", - 3601: "visinet-gui", - 3602: "infiniswitchcl", - 3603: "int-rcv-cntrl", - 3604: "bmc-jmx-port", - 3605: "comcam-io", - 3606: "splitlock", - 3607: "precise-i3", - 3608: "trendchip-dcp", - 3609: "cpdi-pidas-cm", - 3610: "echonet", - 3611: "six-degrees", - 3612: "hp-dataprotect", - 3613: "alaris-disc", - 3614: "sigma-port", - 3615: "start-network", - 3616: "cd3o-protocol", - 3617: "sharp-server", - 3618: "aairnet-1", - 3619: "aairnet-2", - 3620: "ep-pcp", - 3621: "ep-nsp", - 3622: "ff-lr-port", - 3623: "haipe-discover", - 3624: "dist-upgrade", - 3625: "volley", - 3626: "bvcdaemon-port", - 3627: "jamserverport", - 3628: "ept-machine", - 3629: "escvpnet", - 3630: "cs-remote-db", - 3631: "cs-services", - 3632: "distcc", - 3633: "wacp", - 3634: "hlibmgr", - 3635: "sdo", - 3636: "servistaitsm", - 3637: "scservp", - 3638: "ehp-backup", - 3639: "xap-ha", - 3640: "netplay-port1", - 3641: "netplay-port2", - 3642: "juxml-port", - 3643: "audiojuggler", - 3644: "ssowatch", - 3645: "cyc", - 3646: "xss-srv-port", - 3647: "splitlock-gw", - 3648: "fjcp", - 3649: "nmmp", - 3650: "prismiq-plugin", - 3651: "xrpc-registry", - 3652: "vxcrnbuport", - 3653: "tsp", - 3654: "vaprtm", - 3655: "abatemgr", - 3656: "abatjss", - 3657: "immedianet-bcn", - 3658: "ps-ams", - 3659: "apple-sasl", - 3660: "can-nds-ssl", - 3661: "can-ferret-ssl", - 3662: "pserver", - 3663: "dtp", - 3664: "ups-engine", - 3665: "ent-engine", - 3666: "eserver-pap", - 3667: "infoexch", - 3668: "dell-rm-port", - 3669: "casanswmgmt", - 3670: "smile", - 3671: "efcp", - 3672: "lispworks-orb", - 3673: "mediavault-gui", - 3674: "wininstall-ipc", - 3675: "calltrax", - 3676: "va-pacbase", - 3677: "roverlog", - 3678: "ipr-dglt", - 3679: "Escale (Newton Dock)", - 3680: "npds-tracker", - 3681: "bts-x73", - 3682: "cas-mapi", - 3683: "bmc-ea", - 3684: "faxstfx-port", - 3685: "dsx-agent", - 3686: "tnmpv2", - 3687: "simple-push", - 3688: "simple-push-s", - 3689: "daap", - 3690: "svn", - 3691: "magaya-network", - 3692: "intelsync", - 3693: "easl", - 3695: "bmc-data-coll", - 3696: "telnetcpcd", - 3697: "nw-license", - 3698: "sagectlpanel", - 3699: "kpn-icw", - 3700: "lrs-paging", - 3701: "netcelera", - 3702: "ws-discovery", - 3703: "adobeserver-3", - 3704: "adobeserver-4", - 3705: "adobeserver-5", - 3706: "rt-event", - 3707: "rt-event-s", - 3708: "sun-as-iiops", - 3709: "ca-idms", - 3710: "portgate-auth", - 3711: "edb-server2", - 3712: "sentinel-ent", - 3713: "tftps", - 3714: "delos-dms", - 3715: "anoto-rendezv", - 3716: "wv-csp-sms-cir", - 3717: "wv-csp-udp-cir", - 3718: "opus-services", - 3719: "itelserverport", - 3720: "ufastro-instr", - 3721: "xsync", - 3722: "xserveraid", - 3723: "sychrond", - 3724: "blizwow", - 3725: "na-er-tip", - 3726: "array-manager", - 3727: "e-mdu", - 3728: "e-woa", - 3729: "fksp-audit", - 3730: "client-ctrl", - 3731: "smap", - 3732: "m-wnn", - 3733: "multip-msg", - 3734: "synel-data", - 3735: "pwdis", - 3736: "rs-rmi", - 3737: "xpanel", - 3738: "versatalk", - 3739: "launchbird-lm", - 3740: "heartbeat", - 3741: "wysdma", - 3742: "cst-port", - 3743: "ipcs-command", - 3744: "sasg", - 3745: "gw-call-port", - 3746: "linktest", - 3747: "linktest-s", - 3748: "webdata", - 3749: "cimtrak", - 3750: "cbos-ip-port", - 3751: "gprs-cube", - 3752: "vipremoteagent", - 3753: "nattyserver", - 3754: "timestenbroker", - 3755: "sas-remote-hlp", - 3756: "canon-capt", - 3757: "grf-port", - 3758: "apw-registry", - 3759: "exapt-lmgr", - 3760: "adtempusclient", - 3761: "gsakmp", - 3762: "gbs-smp", - 3763: "xo-wave", - 3764: "mni-prot-rout", - 3765: "rtraceroute", - 3766: "sitewatch-s", - 3767: "listmgr-port", - 3768: "rblcheckd", - 3769: "haipe-otnk", - 3770: "cindycollab", - 3771: "paging-port", - 3772: "ctp", - 3773: "ctdhercules", - 3774: "zicom", - 3775: "ispmmgr", - 3776: "dvcprov-port", - 3777: "jibe-eb", - 3778: "c-h-it-port", - 3779: "cognima", - 3780: "nnp", - 3781: "abcvoice-port", - 3782: "iso-tp0s", - 3783: "bim-pem", - 3784: "bfd-control", - 3785: "bfd-echo", - 3786: "upstriggervsw", - 3787: "fintrx", - 3788: "isrp-port", - 3789: "remotedeploy", - 3790: "quickbooksrds", - 3791: "tvnetworkvideo", - 3792: "sitewatch", - 3793: "dcsoftware", - 3794: "jaus", - 3795: "myblast", - 3796: "spw-dialer", - 3797: "idps", - 3798: "minilock", - 3799: "radius-dynauth", - 3800: "pwgpsi", - 3801: "ibm-mgr", - 3802: "vhd", - 3803: "soniqsync", - 3804: "iqnet-port", - 3805: "tcpdataserver", - 3806: "wsmlb", - 3807: "spugna", - 3808: "sun-as-iiops-ca", - 3809: "apocd", - 3810: "wlanauth", - 3811: "amp", - 3812: "neto-wol-server", - 3813: "rap-ip", - 3814: "neto-dcs", - 3815: "lansurveyorxml", - 3816: "sunlps-http", - 3817: "tapeware", - 3818: "crinis-hb", - 3819: "epl-slp", - 3820: "scp", - 3821: "pmcp", - 3822: "acp-discovery", - 3823: "acp-conduit", - 3824: "acp-policy", - 3825: "ffserver", - 3826: "warmux", - 3827: "netmpi", - 3828: "neteh", - 3829: "neteh-ext", - 3830: "cernsysmgmtagt", - 3831: "dvapps", - 3832: "xxnetserver", - 3833: "aipn-auth", - 3834: "spectardata", - 3835: "spectardb", - 3836: "markem-dcp", - 3837: "mkm-discovery", - 3838: "sos", - 3839: "amx-rms", - 3840: "flirtmitmir", - 3841: "shiprush-db-svr", - 3842: "nhci", - 3843: "quest-agent", - 3844: "rnm", - 3845: "v-one-spp", - 3846: "an-pcp", - 3847: "msfw-control", - 3848: "item", - 3849: "spw-dnspreload", - 3850: "qtms-bootstrap", - 3851: "spectraport", - 3852: "sse-app-config", - 3853: "sscan", - 3854: "stryker-com", - 3855: "opentrac", - 3856: "informer", - 3857: "trap-port", - 3858: "trap-port-mom", - 3859: "nav-port", - 3860: "sasp", - 3861: "winshadow-hd", - 3862: "giga-pocket", - 3863: "asap-tcp", - 3864: "asap-tcp-tls", - 3865: "xpl", - 3866: "dzdaemon", - 3867: "dzoglserver", - 3868: "diameter", - 3869: "ovsam-mgmt", - 3870: "ovsam-d-agent", - 3871: "avocent-adsap", - 3872: "oem-agent", - 3873: "fagordnc", - 3874: "sixxsconfig", - 3875: "pnbscada", - 3876: "dl-agent", - 3877: "xmpcr-interface", - 3878: "fotogcad", - 3879: "appss-lm", - 3880: "igrs", - 3881: "idac", - 3882: "msdts1", - 3883: "vrpn", - 3884: "softrack-meter", - 3885: "topflow-ssl", - 3886: "nei-management", - 3887: "ciphire-data", - 3888: "ciphire-serv", - 3889: "dandv-tester", - 3890: "ndsconnect", - 3891: "rtc-pm-port", - 3892: "pcc-image-port", - 3893: "cgi-starapi", - 3894: "syam-agent", - 3895: "syam-smc", - 3896: "sdo-tls", - 3897: "sdo-ssh", - 3898: "senip", - 3899: "itv-control", - 3900: "udt-os", - 3901: "nimsh", - 3902: "nimaux", - 3903: "charsetmgr", - 3904: "omnilink-port", - 3905: "mupdate", - 3906: "topovista-data", - 3907: "imoguia-port", - 3908: "hppronetman", - 3909: "surfcontrolcpa", - 3910: "prnrequest", - 3911: "prnstatus", - 3912: "gbmt-stars", - 3913: "listcrt-port", - 3914: "listcrt-port-2", - 3915: "agcat", - 3916: "wysdmc", - 3917: "aftmux", - 3918: "pktcablemmcops", - 3919: "hyperip", - 3920: "exasoftport1", - 3921: "herodotus-net", - 3922: "sor-update", - 3923: "symb-sb-port", - 3924: "mpl-gprs-port", - 3925: "zmp", - 3926: "winport", - 3927: "natdataservice", - 3928: "netboot-pxe", - 3929: "smauth-port", - 3930: "syam-webserver", - 3931: "msr-plugin-port", - 3932: "dyn-site", - 3933: "plbserve-port", - 3934: "sunfm-port", - 3935: "sdp-portmapper", - 3936: "mailprox", - 3937: "dvbservdsc", - 3938: "dbcontrol-agent", - 3939: "aamp", - 3940: "xecp-node", - 3941: "homeportal-web", - 3942: "srdp", - 3943: "tig", - 3944: "sops", - 3945: "emcads", - 3946: "backupedge", - 3947: "ccp", - 3948: "apdap", - 3949: "drip", - 3950: "namemunge", - 3951: "pwgippfax", - 3952: "i3-sessionmgr", - 3953: "xmlink-connect", - 3954: "adrep", - 3955: "p2pcommunity", - 3956: "gvcp", - 3957: "mqe-broker", - 3958: "mqe-agent", - 3959: "treehopper", - 3960: "bess", - 3961: "proaxess", - 3962: "sbi-agent", - 3963: "thrp", - 3964: "sasggprs", - 3965: "ati-ip-to-ncpe", - 3966: "bflckmgr", - 3967: "ppsms", - 3968: "ianywhere-dbns", - 3969: "landmarks", - 3970: "lanrevagent", - 3971: "lanrevserver", - 3972: "iconp", - 3973: "progistics", - 3974: "citysearch", - 3975: "airshot", - 3976: "opswagent", - 3977: "opswmanager", - 3978: "secure-cfg-svr", - 3979: "smwan", - 3980: "acms", - 3981: "starfish", - 3982: "eis", - 3983: "eisp", - 3984: "mapper-nodemgr", - 3985: "mapper-mapethd", - 3986: "mapper-ws-ethd", - 3987: "centerline", - 3988: "dcs-config", - 3989: "bv-queryengine", - 3990: "bv-is", - 3991: "bv-smcsrv", - 3992: "bv-ds", - 3993: "bv-agent", - 3995: "iss-mgmt-ssl", - 3996: "abcsoftware", - 3997: "agentsease-db", - 3998: "dnx", - 3999: "nvcnet", - 4000: "terabase", - 4001: "newoak", - 4002: "pxc-spvr-ft", - 4003: "pxc-splr-ft", - 4004: "pxc-roid", - 4005: "pxc-pin", - 4006: "pxc-spvr", - 4007: "pxc-splr", - 4008: "netcheque", - 4009: "chimera-hwm", - 4010: "samsung-unidex", - 4011: "altserviceboot", - 4012: "pda-gate", - 4013: "acl-manager", - 4014: "taiclock", - 4015: "talarian-mcast1", - 4016: "talarian-mcast2", - 4017: "talarian-mcast3", - 4018: "talarian-mcast4", - 4019: "talarian-mcast5", - 4020: "trap", - 4021: "nexus-portal", - 4022: "dnox", - 4023: "esnm-zoning", - 4024: "tnp1-port", - 4025: "partimage", - 4026: "as-debug", - 4027: "bxp", - 4028: "dtserver-port", - 4029: "ip-qsig", - 4030: "jdmn-port", - 4031: "suucp", - 4032: "vrts-auth-port", - 4033: "sanavigator", - 4034: "ubxd", - 4035: "wap-push-http", - 4036: "wap-push-https", - 4037: "ravehd", - 4038: "fazzt-ptp", - 4039: "fazzt-admin", - 4040: "yo-main", - 4041: "houston", - 4042: "ldxp", - 4043: "nirp", - 4044: "ltp", - 4045: "npp", - 4046: "acp-proto", - 4047: "ctp-state", - 4049: "wafs", - 4050: "cisco-wafs", - 4051: "cppdp", - 4052: "interact", - 4053: "ccu-comm-1", - 4054: "ccu-comm-2", - 4055: "ccu-comm-3", - 4056: "lms", - 4057: "wfm", - 4058: "kingfisher", - 4059: "dlms-cosem", - 4060: "dsmeter-iatc", - 4061: "ice-location", - 4062: "ice-slocation", - 4063: "ice-router", - 4064: "ice-srouter", - 4065: "avanti-cdp", - 4066: "pmas", - 4067: "idp", - 4068: "ipfltbcst", - 4069: "minger", - 4070: "tripe", - 4071: "aibkup", - 4072: "zieto-sock", - 4073: "iRAPP", - 4074: "cequint-cityid", - 4075: "perimlan", - 4076: "seraph", - 4078: "cssp", - 4079: "santools", - 4080: "lorica-in", - 4081: "lorica-in-sec", - 4082: "lorica-out", - 4083: "lorica-out-sec", - 4085: "ezmessagesrv", - 4087: "applusservice", - 4088: "npsp", - 4089: "opencore", - 4090: "omasgport", - 4091: "ewinstaller", - 4092: "ewdgs", - 4093: "pvxpluscs", - 4094: "sysrqd", - 4095: "xtgui", - 4096: "bre", - 4097: "patrolview", - 4098: "drmsfsd", - 4099: "dpcp", - 4100: "igo-incognito", - 4101: "brlp-0", - 4102: "brlp-1", - 4103: "brlp-2", - 4104: "brlp-3", - 4105: "shofar", - 4106: "synchronite", - 4107: "j-ac", - 4108: "accel", - 4109: "izm", - 4110: "g2tag", - 4111: "xgrid", - 4112: "apple-vpns-rp", - 4113: "aipn-reg", - 4114: "jomamqmonitor", - 4115: "cds", - 4116: "smartcard-tls", - 4117: "hillrserv", - 4118: "netscript", - 4119: "assuria-slm", - 4120: "minirem", - 4121: "e-builder", - 4122: "fprams", - 4123: "z-wave", - 4124: "tigv2", - 4125: "opsview-envoy", - 4126: "ddrepl", - 4127: "unikeypro", - 4128: "nufw", - 4129: "nuauth", - 4130: "fronet", - 4131: "stars", - 4132: "nuts-dem", - 4133: "nuts-bootp", - 4134: "nifty-hmi", - 4135: "cl-db-attach", - 4136: "cl-db-request", - 4137: "cl-db-remote", - 4138: "nettest", - 4139: "thrtx", - 4140: "cedros-fds", - 4141: "oirtgsvc", - 4142: "oidocsvc", - 4143: "oidsr", - 4145: "vvr-control", - 4146: "tgcconnect", - 4147: "vrxpservman", - 4148: "hhb-handheld", - 4149: "agslb", - 4150: "PowerAlert-nsa", - 4151: "menandmice-noh", - 4152: "idig-mux", - 4153: "mbl-battd", - 4154: "atlinks", - 4155: "bzr", - 4156: "stat-results", - 4157: "stat-scanner", - 4158: "stat-cc", - 4159: "nss", - 4160: "jini-discovery", - 4161: "omscontact", - 4162: "omstopology", - 4163: "silverpeakpeer", - 4164: "silverpeakcomm", - 4165: "altcp", - 4166: "joost", - 4167: "ddgn", - 4168: "pslicser", - 4169: "iadt", - 4170: "d-cinema-csp", - 4171: "ml-svnet", - 4172: "pcoip", - 4174: "smcluster", - 4175: "bccp", - 4176: "tl-ipcproxy", - 4177: "wello", - 4178: "storman", - 4179: "MaxumSP", - 4180: "httpx", - 4181: "macbak", - 4182: "pcptcpservice", - 4183: "cyborgnet", - 4184: "universe-suite", - 4185: "wcpp", - 4186: "boxbackupstore", - 4187: "csc-proxy", - 4188: "vatata", - 4189: "pcep", - 4190: "sieve", - 4192: "azeti", - 4193: "pvxplusio", - 4197: "hctl", - 4199: "eims-admin", - 4300: "corelccam", - 4301: "d-data", - 4302: "d-data-control", - 4303: "srcp", - 4304: "owserver", - 4305: "batman", - 4306: "pinghgl", - 4307: "trueconf", - 4308: "compx-lockview", - 4309: "dserver", - 4310: "mirrtex", - 4311: "p6ssmc", - 4312: "pscl-mgt", - 4313: "perrla", - 4314: "choiceview-agt", - 4316: "choiceview-clt", - 4320: "fdt-rcatp", - 4321: "rwhois", - 4322: "trim-event", - 4323: "trim-ice", - 4325: "geognosisman", - 4326: "geognosis", - 4327: "jaxer-web", - 4328: "jaxer-manager", - 4329: "publiqare-sync", - 4330: "dey-sapi", - 4331: "ktickets-rest", - 4333: "ahsp", - 4334: "netconf-ch-ssh", - 4335: "netconf-ch-tls", - 4336: "restconf-ch-tls", - 4340: "gaia", - 4341: "lisp-data", - 4342: "lisp-cons", - 4343: "unicall", - 4344: "vinainstall", - 4345: "m4-network-as", - 4346: "elanlm", - 4347: "lansurveyor", - 4348: "itose", - 4349: "fsportmap", - 4350: "net-device", - 4351: "plcy-net-svcs", - 4352: "pjlink", - 4353: "f5-iquery", - 4354: "qsnet-trans", - 4355: "qsnet-workst", - 4356: "qsnet-assist", - 4357: "qsnet-cond", - 4358: "qsnet-nucl", - 4359: "omabcastltkm", - 4360: "matrix-vnet", - 4368: "wxbrief", - 4369: "epmd", - 4370: "elpro-tunnel", - 4371: "l2c-control", - 4372: "l2c-data", - 4373: "remctl", - 4374: "psi-ptt", - 4375: "tolteces", - 4376: "bip", - 4377: "cp-spxsvr", - 4378: "cp-spxdpy", - 4379: "ctdb", - 4389: "xandros-cms", - 4390: "wiegand", - 4391: "apwi-imserver", - 4392: "apwi-rxserver", - 4393: "apwi-rxspooler", - 4395: "omnivisionesx", - 4396: "fly", - 4400: "ds-srv", - 4401: "ds-srvr", - 4402: "ds-clnt", - 4403: "ds-user", - 4404: "ds-admin", - 4405: "ds-mail", - 4406: "ds-slp", - 4407: "nacagent", - 4408: "slscc", - 4409: "netcabinet-com", - 4410: "itwo-server", - 4411: "found", - 4413: "avi-nms", - 4414: "updog", - 4415: "brcd-vr-req", - 4416: "pjj-player", - 4417: "workflowdir", - 4419: "cbp", - 4420: "nvm-express", - 4421: "scaleft", - 4422: "tsepisp", - 4423: "thingkit", - 4425: "netrockey6", - 4426: "beacon-port-2", - 4427: "drizzle", - 4428: "omviserver", - 4429: "omviagent", - 4430: "rsqlserver", - 4431: "wspipe", - 4432: "l-acoustics", - 4433: "vop", - 4442: "saris", - 4443: "pharos", - 4444: "krb524", - 4445: "upnotifyp", - 4446: "n1-fwp", - 4447: "n1-rmgmt", - 4448: "asc-slmd", - 4449: "privatewire", - 4450: "camp", - 4451: "ctisystemmsg", - 4452: "ctiprogramload", - 4453: "nssalertmgr", - 4454: "nssagentmgr", - 4455: "prchat-user", - 4456: "prchat-server", - 4457: "prRegister", - 4458: "mcp", - 4484: "hpssmgmt", - 4485: "assyst-dr", - 4486: "icms", - 4487: "prex-tcp", - 4488: "awacs-ice", - 4500: "ipsec-nat-t", - 4535: "ehs", - 4536: "ehs-ssl", - 4537: "wssauthsvc", - 4538: "swx-gate", - 4545: "worldscores", - 4546: "sf-lm", - 4547: "lanner-lm", - 4548: "synchromesh", - 4549: "aegate", - 4550: "gds-adppiw-db", - 4551: "ieee-mih", - 4552: "menandmice-mon", - 4553: "icshostsvc", - 4554: "msfrs", - 4555: "rsip", - 4556: "dtn-bundle", - 4559: "hylafax", - 4563: "amahi-anywhere", - 4566: "kwtc", - 4567: "tram", - 4568: "bmc-reporting", - 4569: "iax", - 4570: "deploymentmap", - 4573: "cardifftec-back", - 4590: "rid", - 4591: "l3t-at-an", - 4593: "ipt-anri-anri", - 4594: "ias-session", - 4595: "ias-paging", - 4596: "ias-neighbor", - 4597: "a21-an-1xbs", - 4598: "a16-an-an", - 4599: "a17-an-an", - 4600: "piranha1", - 4601: "piranha2", - 4602: "mtsserver", - 4603: "menandmice-upg", - 4604: "irp", - 4605: "sixchat", - 4658: "playsta2-app", - 4659: "playsta2-lob", - 4660: "smaclmgr", - 4661: "kar2ouche", - 4662: "oms", - 4663: "noteit", - 4664: "ems", - 4665: "contclientms", - 4666: "eportcomm", - 4667: "mmacomm", - 4668: "mmaeds", - 4669: "eportcommdata", - 4670: "light", - 4671: "acter", - 4672: "rfa", - 4673: "cxws", - 4674: "appiq-mgmt", - 4675: "dhct-status", - 4676: "dhct-alerts", - 4677: "bcs", - 4678: "traversal", - 4679: "mgesupervision", - 4680: "mgemanagement", - 4681: "parliant", - 4682: "finisar", - 4683: "spike", - 4684: "rfid-rp1", - 4685: "autopac", - 4686: "msp-os", - 4687: "nst", - 4688: "mobile-p2p", - 4689: "altovacentral", - 4690: "prelude", - 4691: "mtn", - 4692: "conspiracy", - 4700: "netxms-agent", - 4701: "netxms-mgmt", - 4702: "netxms-sync", - 4703: "npqes-test", - 4704: "assuria-ins", - 4711: "trinity-dist", - 4725: "truckstar", - 4727: "fcis", - 4728: "capmux", - 4730: "gearman", - 4731: "remcap", - 4733: "resorcs", - 4737: "ipdr-sp", - 4738: "solera-lpn", - 4739: "ipfix", - 4740: "ipfixs", - 4741: "lumimgrd", - 4742: "sicct", - 4743: "openhpid", - 4744: "ifsp", - 4745: "fmp", - 4749: "profilemac", - 4750: "ssad", - 4751: "spocp", - 4752: "snap", - 4753: "simon", - 4756: "RDCenter", - 4774: "converge", - 4784: "bfd-multi-ctl", - 4786: "smart-install", - 4787: "sia-ctrl-plane", - 4788: "xmcp", - 4800: "iims", - 4801: "iwec", - 4802: "ilss", - 4803: "notateit", - 4827: "htcp", - 4837: "varadero-0", - 4838: "varadero-1", - 4839: "varadero-2", - 4840: "opcua-tcp", - 4841: "quosa", - 4842: "gw-asv", - 4843: "opcua-tls", - 4844: "gw-log", - 4845: "wcr-remlib", - 4846: "contamac-icm", - 4847: "wfc", - 4848: "appserv-http", - 4849: "appserv-https", - 4850: "sun-as-nodeagt", - 4851: "derby-repli", - 4867: "unify-debug", - 4868: "phrelay", - 4869: "phrelaydbg", - 4870: "cc-tracking", - 4871: "wired", - 4876: "tritium-can", - 4877: "lmcs", - 4879: "wsdl-event", - 4880: "hislip", - 4883: "wmlserver", - 4884: "hivestor", - 4885: "abbs", - 4894: "lyskom", - 4899: "radmin-port", - 4900: "hfcs", - 4901: "flr-agent", - 4902: "magiccontrol", - 4912: "lutap", - 4913: "lutcp", - 4914: "bones", - 4915: "frcs", - 4940: "eq-office-4940", - 4941: "eq-office-4941", - 4942: "eq-office-4942", - 4949: "munin", - 4950: "sybasesrvmon", - 4951: "pwgwims", - 4952: "sagxtsds", - 4953: "dbsyncarbiter", - 4969: "ccss-qmm", - 4970: "ccss-qsm", - 4971: "burp", - 4984: "webyast", - 4985: "gerhcs", - 4986: "mrip", - 4987: "smar-se-port1", - 4988: "smar-se-port2", - 4989: "parallel", - 4990: "busycal", - 4991: "vrt", - 4999: "hfcs-manager", - 5000: "commplex-main", - 5001: "commplex-link", - 5002: "rfe", - 5003: "fmpro-internal", - 5004: "avt-profile-1", - 5005: "avt-profile-2", - 5006: "wsm-server", - 5007: "wsm-server-ssl", - 5008: "synapsis-edge", - 5009: "winfs", - 5010: "telelpathstart", - 5011: "telelpathattack", - 5012: "nsp", - 5013: "fmpro-v6", - 5015: "fmwp", - 5020: "zenginkyo-1", - 5021: "zenginkyo-2", - 5022: "mice", - 5023: "htuilsrv", - 5024: "scpi-telnet", - 5025: "scpi-raw", - 5026: "strexec-d", - 5027: "strexec-s", - 5028: "qvr", - 5029: "infobright", - 5030: "surfpass", - 5032: "signacert-agent", - 5033: "jtnetd-server", - 5034: "jtnetd-status", - 5042: "asnaacceler8db", - 5043: "swxadmin", - 5044: "lxi-evntsvc", - 5045: "osp", - 5048: "texai", - 5049: "ivocalize", - 5050: "mmcc", - 5051: "ita-agent", - 5052: "ita-manager", - 5053: "rlm", - 5054: "rlm-admin", - 5055: "unot", - 5056: "intecom-ps1", - 5057: "intecom-ps2", - 5059: "sds", - 5060: "sip", - 5061: "sips", - 5062: "na-localise", - 5063: "csrpc", - 5064: "ca-1", - 5065: "ca-2", - 5066: "stanag-5066", - 5067: "authentx", - 5068: "bitforestsrv", - 5069: "i-net-2000-npr", - 5070: "vtsas", - 5071: "powerschool", - 5072: "ayiya", - 5073: "tag-pm", - 5074: "alesquery", - 5075: "pvaccess", - 5080: "onscreen", - 5081: "sdl-ets", - 5082: "qcp", - 5083: "qfp", - 5084: "llrp", - 5085: "encrypted-llrp", - 5086: "aprigo-cs", - 5087: "biotic", - 5093: "sentinel-lm", - 5094: "hart-ip", - 5099: "sentlm-srv2srv", - 5100: "socalia", - 5101: "talarian-tcp", - 5102: "oms-nonsecure", - 5103: "actifio-c2c", - 5106: "actifioudsagent", - 5107: "actifioreplic", - 5111: "taep-as-svc", - 5112: "pm-cmdsvr", - 5114: "ev-services", - 5115: "autobuild", - 5117: "gradecam", - 5120: "barracuda-bbs", - 5133: "nbt-pc", - 5134: "ppactivation", - 5135: "erp-scale", - 5137: "ctsd", - 5145: "rmonitor-secure", - 5146: "social-alarm", - 5150: "atmp", - 5151: "esri-sde", - 5152: "sde-discovery", - 5153: "toruxserver", - 5154: "bzflag", - 5155: "asctrl-agent", - 5156: "rugameonline", - 5157: "mediat", - 5161: "snmpssh", - 5162: "snmpssh-trap", - 5163: "sbackup", - 5164: "vpa", - 5165: "ife-icorp", - 5166: "winpcs", - 5167: "scte104", - 5168: "scte30", - 5172: "pcoip-mgmt", - 5190: "aol", - 5191: "aol-1", - 5192: "aol-2", - 5193: "aol-3", - 5194: "cpscomm", - 5195: "ampl-lic", - 5196: "ampl-tableproxy", - 5197: "tunstall-lwp", - 5200: "targus-getdata", - 5201: "targus-getdata1", - 5202: "targus-getdata2", - 5203: "targus-getdata3", - 5209: "nomad", - 5215: "noteza", - 5221: "3exmp", - 5222: "xmpp-client", - 5223: "hpvirtgrp", - 5224: "hpvirtctrl", - 5225: "hp-server", - 5226: "hp-status", - 5227: "perfd", - 5228: "hpvroom", - 5229: "jaxflow", - 5230: "jaxflow-data", - 5231: "crusecontrol", - 5232: "csedaemon", - 5233: "enfs", - 5234: "eenet", - 5235: "galaxy-network", - 5236: "padl2sim", - 5237: "mnet-discovery", - 5245: "downtools", - 5248: "caacws", - 5249: "caaclang2", - 5250: "soagateway", - 5251: "caevms", - 5252: "movaz-ssc", - 5253: "kpdp", - 5254: "logcabin", - 5264: "3com-njack-1", - 5265: "3com-njack-2", - 5269: "xmpp-server", - 5270: "cartographerxmp", - 5271: "cuelink", - 5272: "pk", - 5280: "xmpp-bosh", - 5281: "undo-lm", - 5282: "transmit-port", - 5298: "presence", - 5299: "nlg-data", - 5300: "hacl-hb", - 5301: "hacl-gs", - 5302: "hacl-cfg", - 5303: "hacl-probe", - 5304: "hacl-local", - 5305: "hacl-test", - 5306: "sun-mc-grp", - 5307: "sco-aip", - 5308: "cfengine", - 5309: "jprinter", - 5310: "outlaws", - 5312: "permabit-cs", - 5313: "rrdp", - 5314: "opalis-rbt-ipc", - 5315: "hacl-poll", - 5316: "hpbladems", - 5317: "hpdevms", - 5318: "pkix-cmc", - 5320: "bsfserver-zn", - 5321: "bsfsvr-zn-ssl", - 5343: "kfserver", - 5344: "xkotodrcp", - 5349: "stuns", - 5352: "dns-llq", - 5353: "mdns", - 5354: "mdnsresponder", - 5355: "llmnr", - 5356: "ms-smlbiz", - 5357: "wsdapi", - 5358: "wsdapi-s", - 5359: "ms-alerter", - 5360: "ms-sideshow", - 5361: "ms-s-sideshow", - 5362: "serverwsd2", - 5363: "net-projection", - 5397: "stresstester", - 5398: "elektron-admin", - 5399: "securitychase", - 5400: "excerpt", - 5401: "excerpts", - 5402: "mftp", - 5403: "hpoms-ci-lstn", - 5404: "hpoms-dps-lstn", - 5405: "netsupport", - 5406: "systemics-sox", - 5407: "foresyte-clear", - 5408: "foresyte-sec", - 5409: "salient-dtasrv", - 5410: "salient-usrmgr", - 5411: "actnet", - 5412: "continuus", - 5413: "wwiotalk", - 5414: "statusd", - 5415: "ns-server", - 5416: "sns-gateway", - 5417: "sns-agent", - 5418: "mcntp", - 5419: "dj-ice", - 5420: "cylink-c", - 5421: "netsupport2", - 5422: "salient-mux", - 5423: "virtualuser", - 5424: "beyond-remote", - 5425: "br-channel", - 5426: "devbasic", - 5427: "sco-peer-tta", - 5428: "telaconsole", - 5429: "base", - 5430: "radec-corp", - 5431: "park-agent", - 5432: "postgresql", - 5433: "pyrrho", - 5434: "sgi-arrayd", - 5435: "sceanics", - 5443: "spss", - 5445: "smbdirect", - 5450: "tiepie", - 5453: "surebox", - 5454: "apc-5454", - 5455: "apc-5455", - 5456: "apc-5456", - 5461: "silkmeter", - 5462: "ttl-publisher", - 5463: "ttlpriceproxy", - 5464: "quailnet", - 5465: "netops-broker", - 5470: "apsolab-col", - 5471: "apsolab-cols", - 5472: "apsolab-tag", - 5473: "apsolab-tags", - 5475: "apsolab-data", - 5500: "fcp-addr-srvr1", - 5501: "fcp-addr-srvr2", - 5502: "fcp-srvr-inst1", - 5503: "fcp-srvr-inst2", - 5504: "fcp-cics-gw1", - 5505: "checkoutdb", - 5506: "amc", - 5507: "psl-management", - 5550: "cbus", - 5553: "sgi-eventmond", - 5554: "sgi-esphttp", - 5555: "personal-agent", - 5556: "freeciv", - 5557: "farenet", - 5565: "hpe-dp-bura", - 5566: "westec-connect", - 5567: "dof-dps-mc-sec", - 5568: "sdt", - 5569: "rdmnet-ctrl", - 5573: "sdmmp", - 5574: "lsi-bobcat", - 5575: "ora-oap", - 5579: "fdtracks", - 5580: "tmosms0", - 5581: "tmosms1", - 5582: "fac-restore", - 5583: "tmo-icon-sync", - 5584: "bis-web", - 5585: "bis-sync", - 5586: "att-mt-sms", - 5597: "ininmessaging", - 5598: "mctfeed", - 5599: "esinstall", - 5600: "esmmanager", - 5601: "esmagent", - 5602: "a1-msc", - 5603: "a1-bs", - 5604: "a3-sdunode", - 5605: "a4-sdunode", - 5618: "efr", - 5627: "ninaf", - 5628: "htrust", - 5629: "symantec-sfdb", - 5630: "precise-comm", - 5631: "pcanywheredata", - 5632: "pcanywherestat", - 5633: "beorl", - 5634: "xprtld", - 5635: "sfmsso", - 5636: "sfm-db-server", - 5637: "cssc", - 5638: "flcrs", - 5639: "ics", - 5646: "vfmobile", - 5666: "nrpe", - 5670: "filemq", - 5671: "amqps", - 5672: "amqp", - 5673: "jms", - 5674: "hyperscsi-port", - 5675: "v5ua", - 5676: "raadmin", - 5677: "questdb2-lnchr", - 5678: "rrac", - 5679: "dccm", - 5680: "auriga-router", - 5681: "ncxcp", - 5688: "ggz", - 5689: "qmvideo", - 5693: "rbsystem", - 5696: "kmip", - 5700: "supportassist", - 5705: "storageos", - 5713: "proshareaudio", - 5714: "prosharevideo", - 5715: "prosharedata", - 5716: "prosharerequest", - 5717: "prosharenotify", - 5718: "dpm", - 5719: "dpm-agent", - 5720: "ms-licensing", - 5721: "dtpt", - 5722: "msdfsr", - 5723: "omhs", - 5724: "omsdk", - 5725: "ms-ilm", - 5726: "ms-ilm-sts", - 5727: "asgenf", - 5728: "io-dist-data", - 5729: "openmail", - 5730: "unieng", - 5741: "ida-discover1", - 5742: "ida-discover2", - 5743: "watchdoc-pod", - 5744: "watchdoc", - 5745: "fcopy-server", - 5746: "fcopys-server", - 5747: "tunatic", - 5748: "tunalyzer", - 5750: "rscd", - 5755: "openmailg", - 5757: "x500ms", - 5766: "openmailns", - 5767: "s-openmail", - 5768: "openmailpxy", - 5769: "spramsca", - 5770: "spramsd", - 5771: "netagent", - 5777: "dali-port", - 5780: "vts-rpc", - 5781: "3par-evts", - 5782: "3par-mgmt", - 5783: "3par-mgmt-ssl", - 5785: "3par-rcopy", - 5793: "xtreamx", - 5813: "icmpd", - 5814: "spt-automation", - 5841: "shiprush-d-ch", - 5842: "reversion", - 5859: "wherehoo", - 5863: "ppsuitemsg", - 5868: "diameters", - 5883: "jute", - 5900: "rfb", - 5910: "cm", - 5911: "cpdlc", - 5912: "fis", - 5913: "ads-c", - 5963: "indy", - 5968: "mppolicy-v5", - 5969: "mppolicy-mgr", - 5984: "couchdb", - 5985: "wsman", - 5986: "wsmans", - 5987: "wbem-rmi", - 5988: "wbem-http", - 5989: "wbem-https", - 5990: "wbem-exp-https", - 5991: "nuxsl", - 5992: "consul-insight", - 5993: "cim-rs", - 5999: "cvsup", - 6064: "ndl-ahp-svc", - 6065: "winpharaoh", - 6066: "ewctsp", - 6068: "gsmp-ancp", - 6069: "trip", - 6070: "messageasap", - 6071: "ssdtp", - 6072: "diagnose-proc", - 6073: "directplay8", - 6074: "max", - 6075: "dpm-acm", - 6076: "msft-dpm-cert", - 6077: "iconstructsrv", - 6084: "reload-config", - 6085: "konspire2b", - 6086: "pdtp", - 6087: "ldss", - 6088: "doglms", - 6099: "raxa-mgmt", - 6100: "synchronet-db", - 6101: "synchronet-rtc", - 6102: "synchronet-upd", - 6103: "rets", - 6104: "dbdb", - 6105: "primaserver", - 6106: "mpsserver", - 6107: "etc-control", - 6108: "sercomm-scadmin", - 6109: "globecast-id", - 6110: "softcm", - 6111: "spc", - 6112: "dtspcd", - 6113: "dayliteserver", - 6114: "wrspice", - 6115: "xic", - 6116: "xtlserv", - 6117: "daylitetouch", - 6121: "spdy", - 6122: "bex-webadmin", - 6123: "backup-express", - 6124: "pnbs", - 6130: "damewaremobgtwy", - 6133: "nbt-wol", - 6140: "pulsonixnls", - 6141: "meta-corp", - 6142: "aspentec-lm", - 6143: "watershed-lm", - 6144: "statsci1-lm", - 6145: "statsci2-lm", - 6146: "lonewolf-lm", - 6147: "montage-lm", - 6148: "ricardo-lm", - 6149: "tal-pod", - 6159: "efb-aci", - 6160: "ecmp", - 6161: "patrol-ism", - 6162: "patrol-coll", - 6163: "pscribe", - 6200: "lm-x", - 6209: "qmtps", - 6222: "radmind", - 6241: "jeol-nsdtp-1", - 6242: "jeol-nsdtp-2", - 6243: "jeol-nsdtp-3", - 6244: "jeol-nsdtp-4", - 6251: "tl1-raw-ssl", - 6252: "tl1-ssh", - 6253: "crip", - 6267: "gld", - 6268: "grid", - 6269: "grid-alt", - 6300: "bmc-grx", - 6301: "bmc-ctd-ldap", - 6306: "ufmp", - 6315: "scup", - 6316: "abb-escp", - 6317: "nav-data-cmd", - 6320: "repsvc", - 6321: "emp-server1", - 6322: "emp-server2", - 6324: "hrd-ncs", - 6325: "dt-mgmtsvc", - 6326: "dt-vra", - 6343: "sflow", - 6344: "streletz", - 6346: "gnutella-svc", - 6347: "gnutella-rtr", - 6350: "adap", - 6355: "pmcs", - 6360: "metaedit-mu", - 6370: "metaedit-se", - 6379: "redis", - 6382: "metatude-mds", - 6389: "clariion-evr01", - 6390: "metaedit-ws", - 6417: "faxcomservice", - 6418: "syserverremote", - 6419: "svdrp", - 6420: "nim-vdrshell", - 6421: "nim-wan", - 6432: "pgbouncer", - 6442: "tarp", - 6443: "sun-sr-https", - 6444: "sge-qmaster", - 6445: "sge-execd", - 6446: "mysql-proxy", - 6455: "skip-cert-recv", - 6456: "skip-cert-send", - 6464: "ieee11073-20701", - 6471: "lvision-lm", - 6480: "sun-sr-http", - 6481: "servicetags", - 6482: "ldoms-mgmt", - 6483: "SunVTS-RMI", - 6484: "sun-sr-jms", - 6485: "sun-sr-iiop", - 6486: "sun-sr-iiops", - 6487: "sun-sr-iiop-aut", - 6488: "sun-sr-jmx", - 6489: "sun-sr-admin", - 6500: "boks", - 6501: "boks-servc", - 6502: "boks-servm", - 6503: "boks-clntd", - 6505: "badm-priv", - 6506: "badm-pub", - 6507: "bdir-priv", - 6508: "bdir-pub", - 6509: "mgcs-mfp-port", - 6510: "mcer-port", - 6513: "netconf-tls", - 6514: "syslog-tls", - 6515: "elipse-rec", - 6543: "lds-distrib", - 6544: "lds-dump", - 6547: "apc-6547", - 6548: "apc-6548", - 6549: "apc-6549", - 6550: "fg-sysupdate", - 6551: "sum", - 6558: "xdsxdm", - 6566: "sane-port", - 6568: "canit-store", - 6579: "affiliate", - 6580: "parsec-master", - 6581: "parsec-peer", - 6582: "parsec-game", - 6583: "joaJewelSuite", - 6600: "mshvlm", - 6601: "mstmg-sstp", - 6602: "wsscomfrmwk", - 6619: "odette-ftps", - 6620: "kftp-data", - 6621: "kftp", - 6622: "mcftp", - 6623: "ktelnet", - 6624: "datascaler-db", - 6625: "datascaler-ctl", - 6626: "wago-service", - 6627: "nexgen", - 6628: "afesc-mc", - 6629: "nexgen-aux", - 6632: "mxodbc-connect", - 6640: "ovsdb", - 6653: "openflow", - 6655: "pcs-sf-ui-man", - 6656: "emgmsg", - 6670: "vocaltec-gold", - 6671: "p4p-portal", - 6672: "vision-server", - 6673: "vision-elmd", - 6678: "vfbp", - 6679: "osaut", - 6687: "clever-ctrace", - 6688: "clever-tcpip", - 6689: "tsa", - 6690: "cleverdetect", - 6697: "ircs-u", - 6701: "kti-icad-srvr", - 6702: "e-design-net", - 6703: "e-design-web", - 6714: "ibprotocol", - 6715: "fibotrader-com", - 6716: "princity-agent", - 6767: "bmc-perf-agent", - 6768: "bmc-perf-mgrd", - 6769: "adi-gxp-srvprt", - 6770: "plysrv-http", - 6771: "plysrv-https", - 6777: "ntz-tracker", - 6778: "ntz-p2p-storage", - 6785: "dgpf-exchg", - 6786: "smc-jmx", - 6787: "smc-admin", - 6788: "smc-http", - 6789: "radg", - 6790: "hnmp", - 6791: "hnm", - 6801: "acnet", - 6817: "pentbox-sim", - 6831: "ambit-lm", - 6841: "netmo-default", - 6842: "netmo-http", - 6850: "iccrushmore", - 6868: "acctopus-cc", - 6888: "muse", - 6900: "rtimeviewer", - 6901: "jetstream", - 6935: "ethoscan", - 6936: "xsmsvc", - 6946: "bioserver", - 6951: "otlp", - 6961: "jmact3", - 6962: "jmevt2", - 6963: "swismgr1", - 6964: "swismgr2", - 6965: "swistrap", - 6966: "swispol", - 6969: "acmsoda", - 6970: "conductor", - 6997: "MobilitySrv", - 6998: "iatp-highpri", - 6999: "iatp-normalpri", - 7000: "afs3-fileserver", - 7001: "afs3-callback", - 7002: "afs3-prserver", - 7003: "afs3-vlserver", - 7004: "afs3-kaserver", - 7005: "afs3-volser", - 7006: "afs3-errors", - 7007: "afs3-bos", - 7008: "afs3-update", - 7009: "afs3-rmtsys", - 7010: "ups-onlinet", - 7011: "talon-disc", - 7012: "talon-engine", - 7013: "microtalon-dis", - 7014: "microtalon-com", - 7015: "talon-webserver", - 7016: "spg", - 7017: "grasp", - 7018: "fisa-svc", - 7019: "doceri-ctl", - 7020: "dpserve", - 7021: "dpserveadmin", - 7022: "ctdp", - 7023: "ct2nmcs", - 7024: "vmsvc", - 7025: "vmsvc-2", - 7030: "op-probe", - 7031: "iposplanet", - 7070: "arcp", - 7071: "iwg1", - 7073: "martalk", - 7080: "empowerid", - 7099: "lazy-ptop", - 7100: "font-service", - 7101: "elcn", - 7117: "rothaga", - 7121: "virprot-lm", - 7128: "scenidm", - 7129: "scenccs", - 7161: "cabsm-comm", - 7162: "caistoragemgr", - 7163: "cacsambroker", - 7164: "fsr", - 7165: "doc-server", - 7166: "aruba-server", - 7167: "casrmagent", - 7168: "cnckadserver", - 7169: "ccag-pib", - 7170: "nsrp", - 7171: "drm-production", - 7172: "metalbend", - 7173: "zsecure", - 7174: "clutild", - 7200: "fodms", - 7201: "dlip", - 7202: "pon-ictp", - 7215: "PS-Server", - 7216: "PS-Capture-Pro", - 7227: "ramp", - 7228: "citrixupp", - 7229: "citrixuppg", - 7236: "display", - 7237: "pads", - 7244: "frc-hicp", - 7262: "cnap", - 7272: "watchme-7272", - 7273: "oma-rlp", - 7274: "oma-rlp-s", - 7275: "oma-ulp", - 7276: "oma-ilp", - 7277: "oma-ilp-s", - 7278: "oma-dcdocbs", - 7279: "ctxlic", - 7280: "itactionserver1", - 7281: "itactionserver2", - 7282: "mzca-action", - 7283: "genstat", - 7365: "lcm-server", - 7391: "mindfilesys", - 7392: "mrssrendezvous", - 7393: "nfoldman", - 7394: "fse", - 7395: "winqedit", - 7397: "hexarc", - 7400: "rtps-discovery", - 7401: "rtps-dd-ut", - 7402: "rtps-dd-mt", - 7410: "ionixnetmon", - 7411: "daqstream", - 7421: "mtportmon", - 7426: "pmdmgr", - 7427: "oveadmgr", - 7428: "ovladmgr", - 7429: "opi-sock", - 7430: "xmpv7", - 7431: "pmd", - 7437: "faximum", - 7443: "oracleas-https", - 7471: "sttunnel", - 7473: "rise", - 7474: "neo4j", - 7478: "openit", - 7491: "telops-lmd", - 7500: "silhouette", - 7501: "ovbus", - 7508: "adcp", - 7509: "acplt", - 7510: "ovhpas", - 7511: "pafec-lm", - 7542: "saratoga", - 7543: "atul", - 7544: "nta-ds", - 7545: "nta-us", - 7546: "cfs", - 7547: "cwmp", - 7548: "tidp", - 7549: "nls-tl", - 7551: "controlone-con", - 7560: "sncp", - 7563: "cfw", - 7566: "vsi-omega", - 7569: "dell-eql-asm", - 7570: "aries-kfinder", - 7574: "coherence", - 7588: "sun-lm", - 7606: "mipi-debug", - 7624: "indi", - 7626: "simco", - 7627: "soap-http", - 7628: "zen-pawn", - 7629: "xdas", - 7630: "hawk", - 7631: "tesla-sys-msg", - 7633: "pmdfmgt", - 7648: "cuseeme", - 7672: "imqstomp", - 7673: "imqstomps", - 7674: "imqtunnels", - 7675: "imqtunnel", - 7676: "imqbrokerd", - 7677: "sun-user-https", - 7680: "pando-pub", - 7683: "dmt", - 7687: "bolt", - 7689: "collaber", - 7697: "klio", - 7700: "em7-secom", - 7707: "sync-em7", - 7708: "scinet", - 7720: "medimageportal", - 7724: "nsdeepfreezectl", - 7725: "nitrogen", - 7726: "freezexservice", - 7727: "trident-data", - 7728: "osvr", - 7734: "smip", - 7738: "aiagent", - 7741: "scriptview", - 7742: "msss", - 7743: "sstp-1", - 7744: "raqmon-pdu", - 7747: "prgp", - 7775: "inetfs", - 7777: "cbt", - 7778: "interwise", - 7779: "vstat", - 7781: "accu-lmgr", - 7786: "minivend", - 7787: "popup-reminders", - 7789: "office-tools", - 7794: "q3ade", - 7797: "pnet-conn", - 7798: "pnet-enc", - 7799: "altbsdp", - 7800: "asr", - 7801: "ssp-client", - 7810: "rbt-wanopt", - 7845: "apc-7845", - 7846: "apc-7846", - 7847: "csoauth", - 7869: "mobileanalyzer", - 7870: "rbt-smc", - 7871: "mdm", - 7878: "owms", - 7880: "pss", - 7887: "ubroker", - 7900: "mevent", - 7901: "tnos-sp", - 7902: "tnos-dp", - 7903: "tnos-dps", - 7913: "qo-secure", - 7932: "t2-drm", - 7933: "t2-brm", - 7962: "generalsync", - 7967: "supercell", - 7979: "micromuse-ncps", - 7980: "quest-vista", - 7981: "sossd-collect", - 7982: "sossd-agent", - 7997: "pushns", - 7999: "irdmi2", - 8000: "irdmi", - 8001: "vcom-tunnel", - 8002: "teradataordbms", - 8003: "mcreport", - 8005: "mxi", - 8006: "wpl-analytics", - 8007: "warppipe", - 8008: "http-alt", - 8019: "qbdb", - 8020: "intu-ec-svcdisc", - 8021: "intu-ec-client", - 8022: "oa-system", - 8025: "ca-audit-da", - 8026: "ca-audit-ds", - 8032: "pro-ed", - 8033: "mindprint", - 8034: "vantronix-mgmt", - 8040: "ampify", - 8041: "enguity-xccetp", - 8042: "fs-agent", - 8043: "fs-server", - 8044: "fs-mgmt", - 8051: "rocrail", - 8052: "senomix01", - 8053: "senomix02", - 8054: "senomix03", - 8055: "senomix04", - 8056: "senomix05", - 8057: "senomix06", - 8058: "senomix07", - 8059: "senomix08", - 8066: "toad-bi-appsrvr", - 8067: "infi-async", - 8070: "ucs-isc", - 8074: "gadugadu", - 8077: "mles", - 8080: "http-alt", - 8081: "sunproxyadmin", - 8082: "us-cli", - 8083: "us-srv", - 8086: "d-s-n", - 8087: "simplifymedia", - 8088: "radan-http", - 8090: "opsmessaging", - 8091: "jamlink", - 8097: "sac", - 8100: "xprint-server", - 8101: "ldoms-migr", - 8102: "kz-migr", - 8115: "mtl8000-matrix", - 8116: "cp-cluster", - 8117: "purityrpc", - 8118: "privoxy", - 8121: "apollo-data", - 8122: "apollo-admin", - 8128: "paycash-online", - 8129: "paycash-wbp", - 8130: "indigo-vrmi", - 8131: "indigo-vbcp", - 8132: "dbabble", - 8140: "puppet", - 8148: "isdd", - 8153: "quantastor", - 8160: "patrol", - 8161: "patrol-snmp", - 8162: "lpar2rrd", - 8181: "intermapper", - 8182: "vmware-fdm", - 8183: "proremote", - 8184: "itach", - 8190: "gcp-rphy", - 8191: "limnerpressure", - 8192: "spytechphone", - 8194: "blp1", - 8195: "blp2", - 8199: "vvr-data", - 8200: "trivnet1", - 8201: "trivnet2", - 8204: "lm-perfworks", - 8205: "lm-instmgr", - 8206: "lm-dta", - 8207: "lm-sserver", - 8208: "lm-webwatcher", - 8230: "rexecj", - 8243: "synapse-nhttps", - 8270: "robot-remote", - 8276: "pando-sec", - 8280: "synapse-nhttp", - 8282: "libelle", - 8292: "blp3", - 8293: "hiperscan-id", - 8294: "blp4", - 8300: "tmi", - 8301: "amberon", - 8313: "hub-open-net", - 8320: "tnp-discover", - 8321: "tnp", - 8322: "garmin-marine", - 8351: "server-find", - 8376: "cruise-enum", - 8377: "cruise-swroute", - 8378: "cruise-config", - 8379: "cruise-diags", - 8380: "cruise-update", - 8383: "m2mservices", - 8400: "cvd", - 8401: "sabarsd", - 8402: "abarsd", - 8403: "admind", - 8404: "svcloud", - 8405: "svbackup", - 8415: "dlpx-sp", - 8416: "espeech", - 8417: "espeech-rtp", - 8423: "aritts", - 8442: "cybro-a-bus", - 8443: "pcsync-https", - 8444: "pcsync-http", - 8445: "copy", - 8450: "npmp", - 8457: "nexentamv", - 8470: "cisco-avp", - 8471: "pim-port", - 8472: "otv", - 8473: "vp2p", - 8474: "noteshare", - 8500: "fmtp", - 8501: "cmtp-mgt", - 8502: "ftnmtp", - 8554: "rtsp-alt", - 8555: "d-fence", - 8567: "dof-tunnel", - 8600: "asterix", - 8610: "canon-mfnp", - 8611: "canon-bjnp1", - 8612: "canon-bjnp2", - 8613: "canon-bjnp3", - 8614: "canon-bjnp4", - 8615: "imink", - 8665: "monetra", - 8666: "monetra-admin", - 8675: "msi-cps-rm", - 8686: "sun-as-jmxrmi", - 8688: "openremote-ctrl", - 8699: "vnyx", - 8711: "nvc", - 8733: "ibus", - 8750: "dey-keyneg", - 8763: "mc-appserver", - 8764: "openqueue", - 8765: "ultraseek-http", - 8766: "amcs", - 8770: "dpap", - 8778: "uec", - 8786: "msgclnt", - 8787: "msgsrvr", - 8793: "acd-pm", - 8800: "sunwebadmin", - 8804: "truecm", - 8873: "dxspider", - 8880: "cddbp-alt", - 8881: "galaxy4d", - 8883: "secure-mqtt", - 8888: "ddi-tcp-1", - 8889: "ddi-tcp-2", - 8890: "ddi-tcp-3", - 8891: "ddi-tcp-4", - 8892: "ddi-tcp-5", - 8893: "ddi-tcp-6", - 8894: "ddi-tcp-7", - 8899: "ospf-lite", - 8900: "jmb-cds1", - 8901: "jmb-cds2", - 8910: "manyone-http", - 8911: "manyone-xml", - 8912: "wcbackup", - 8913: "dragonfly", - 8937: "twds", - 8953: "ub-dns-control", - 8954: "cumulus-admin", - 8980: "nod-provider", - 8989: "sunwebadmins", - 8990: "http-wmap", - 8991: "https-wmap", - 8997: "oracle-ms-ens", - 8998: "canto-roboflow", - 8999: "bctp", - 9000: "cslistener", - 9001: "etlservicemgr", - 9002: "dynamid", - 9005: "golem", - 9008: "ogs-server", - 9009: "pichat", - 9010: "sdr", - 9020: "tambora", - 9021: "panagolin-ident", - 9022: "paragent", - 9023: "swa-1", - 9024: "swa-2", - 9025: "swa-3", - 9026: "swa-4", - 9050: "versiera", - 9051: "fio-cmgmt", - 9060: "CardWeb-IO", - 9080: "glrpc", - 9083: "emc-pp-mgmtsvc", - 9084: "aurora", - 9085: "ibm-rsyscon", - 9086: "net2display", - 9087: "classic", - 9088: "sqlexec", - 9089: "sqlexec-ssl", - 9090: "websm", - 9091: "xmltec-xmlmail", - 9092: "XmlIpcRegSvc", - 9093: "copycat", - 9100: "hp-pdl-datastr", - 9101: "bacula-dir", - 9102: "bacula-fd", - 9103: "bacula-sd", - 9104: "peerwire", - 9105: "xadmin", - 9106: "astergate", - 9107: "astergatefax", - 9119: "mxit", - 9122: "grcmp", - 9123: "grcp", - 9131: "dddp", - 9160: "apani1", - 9161: "apani2", - 9162: "apani3", - 9163: "apani4", - 9164: "apani5", - 9191: "sun-as-jpda", - 9200: "wap-wsp", - 9201: "wap-wsp-wtp", - 9202: "wap-wsp-s", - 9203: "wap-wsp-wtp-s", - 9204: "wap-vcard", - 9205: "wap-vcal", - 9206: "wap-vcard-s", - 9207: "wap-vcal-s", - 9208: "rjcdb-vcards", - 9209: "almobile-system", - 9210: "oma-mlp", - 9211: "oma-mlp-s", - 9212: "serverviewdbms", - 9213: "serverstart", - 9214: "ipdcesgbs", - 9215: "insis", - 9216: "acme", - 9217: "fsc-port", - 9222: "teamcoherence", - 9255: "mon", - 9278: "pegasus", - 9279: "pegasus-ctl", - 9280: "pgps", - 9281: "swtp-port1", - 9282: "swtp-port2", - 9283: "callwaveiam", - 9284: "visd", - 9285: "n2h2server", - 9287: "cumulus", - 9292: "armtechdaemon", - 9293: "storview", - 9294: "armcenterhttp", - 9295: "armcenterhttps", - 9300: "vrace", - 9306: "sphinxql", - 9312: "sphinxapi", - 9318: "secure-ts", - 9321: "guibase", - 9343: "mpidcmgr", - 9344: "mphlpdmc", - 9345: "rancher", - 9346: "ctechlicensing", - 9374: "fjdmimgr", - 9380: "boxp", - 9387: "d2dconfig", - 9388: "d2ddatatrans", - 9389: "adws", - 9390: "otp", - 9396: "fjinvmgr", - 9397: "mpidcagt", - 9400: "sec-t4net-srv", - 9401: "sec-t4net-clt", - 9402: "sec-pc2fax-srv", - 9418: "git", - 9443: "tungsten-https", - 9444: "wso2esb-console", - 9445: "mindarray-ca", - 9450: "sntlkeyssrvr", - 9500: "ismserver", - 9535: "mngsuite", - 9536: "laes-bf", - 9555: "trispen-sra", - 9592: "ldgateway", - 9593: "cba8", - 9594: "msgsys", - 9595: "pds", - 9596: "mercury-disc", - 9597: "pd-admin", - 9598: "vscp", - 9599: "robix", - 9600: "micromuse-ncpw", - 9612: "streamcomm-ds", - 9614: "iadt-tls", - 9616: "erunbook-agent", - 9617: "erunbook-server", - 9618: "condor", - 9628: "odbcpathway", - 9629: "uniport", - 9630: "peoctlr", - 9631: "peocoll", - 9640: "pqsflows", - 9666: "zoomcp", - 9667: "xmms2", - 9668: "tec5-sdctp", - 9694: "client-wakeup", - 9695: "ccnx", - 9700: "board-roar", - 9747: "l5nas-parchan", - 9750: "board-voip", - 9753: "rasadv", - 9762: "tungsten-http", - 9800: "davsrc", - 9801: "sstp-2", - 9802: "davsrcs", - 9875: "sapv1", - 9876: "sd", - 9888: "cyborg-systems", - 9889: "gt-proxy", - 9898: "monkeycom", - 9900: "iua", - 9909: "domaintime", - 9911: "sype-transport", - 9925: "xybrid-cloud", - 9950: "apc-9950", - 9951: "apc-9951", - 9952: "apc-9952", - 9953: "acis", - 9954: "hinp", - 9955: "alljoyn-stm", - 9966: "odnsp", - 9978: "xybrid-rt", - 9979: "visweather", - 9981: "pumpkindb", - 9987: "dsm-scm-target", - 9988: "nsesrvr", - 9990: "osm-appsrvr", - 9991: "osm-oev", - 9992: "palace-1", - 9993: "palace-2", - 9994: "palace-3", - 9995: "palace-4", - 9996: "palace-5", - 9997: "palace-6", - 9998: "distinct32", - 9999: "distinct", - 10000: "ndmp", - 10001: "scp-config", - 10002: "documentum", - 10003: "documentum-s", - 10004: "emcrmirccd", - 10005: "emcrmird", - 10006: "netapp-sync", - 10007: "mvs-capacity", - 10008: "octopus", - 10009: "swdtp-sv", - 10010: "rxapi", - 10020: "abb-hw", - 10050: "zabbix-agent", - 10051: "zabbix-trapper", - 10055: "qptlmd", - 10080: "amanda", - 10081: "famdc", - 10100: "itap-ddtp", - 10101: "ezmeeting-2", - 10102: "ezproxy-2", - 10103: "ezrelay", - 10104: "swdtp", - 10107: "bctp-server", - 10110: "nmea-0183", - 10113: "netiq-endpoint", - 10114: "netiq-qcheck", - 10115: "netiq-endpt", - 10116: "netiq-voipa", - 10117: "iqrm", - 10125: "cimple", - 10128: "bmc-perf-sd", - 10129: "bmc-gms", - 10160: "qb-db-server", - 10161: "snmptls", - 10162: "snmptls-trap", - 10200: "trisoap", - 10201: "rsms", - 10252: "apollo-relay", - 10260: "axis-wimp-port", - 10261: "tile-ml", - 10288: "blocks", - 10321: "cosir", - 10540: "MOS-lower", - 10541: "MOS-upper", - 10542: "MOS-aux", - 10543: "MOS-soap", - 10544: "MOS-soap-opt", - 10548: "serverdocs", - 10631: "printopia", - 10800: "gap", - 10805: "lpdg", - 10809: "nbd", - 10860: "helix", - 10880: "bveapi", - 10933: "octopustentacle", - 10990: "rmiaux", - 11000: "irisa", - 11001: "metasys", - 11095: "weave", - 11103: "origo-sync", - 11104: "netapp-icmgmt", - 11105: "netapp-icdata", - 11106: "sgi-lk", - 11109: "sgi-dmfmgr", - 11110: "sgi-soap", - 11111: "vce", - 11112: "dicom", - 11161: "suncacao-snmp", - 11162: "suncacao-jmxmp", - 11163: "suncacao-rmi", - 11164: "suncacao-csa", - 11165: "suncacao-websvc", - 11172: "oemcacao-jmxmp", - 11173: "t5-straton", - 11174: "oemcacao-rmi", - 11175: "oemcacao-websvc", - 11201: "smsqp", - 11202: "dcsl-backup", - 11208: "wifree", - 11211: "memcache", - 11319: "imip", - 11320: "imip-channels", - 11321: "arena-server", - 11367: "atm-uhas", - 11371: "hkp", - 11489: "asgcypresstcps", - 11600: "tempest-port", - 11623: "emc-xsw-dconfig", - 11720: "h323callsigalt", - 11723: "emc-xsw-dcache", - 11751: "intrepid-ssl", - 11796: "lanschool", - 11876: "xoraya", - 11967: "sysinfo-sp", - 12000: "entextxid", - 12001: "entextnetwk", - 12002: "entexthigh", - 12003: "entextmed", - 12004: "entextlow", - 12005: "dbisamserver1", - 12006: "dbisamserver2", - 12007: "accuracer", - 12008: "accuracer-dbms", - 12010: "edbsrvr", - 12012: "vipera", - 12013: "vipera-ssl", - 12109: "rets-ssl", - 12121: "nupaper-ss", - 12168: "cawas", - 12172: "hivep", - 12300: "linogridengine", - 12302: "rads", - 12321: "warehouse-sss", - 12322: "warehouse", - 12345: "italk", - 12753: "tsaf", - 12865: "netperf", - 13160: "i-zipqd", - 13216: "bcslogc", - 13217: "rs-pias", - 13218: "emc-vcas-tcp", - 13223: "powwow-client", - 13224: "powwow-server", - 13400: "doip-data", - 13720: "bprd", - 13721: "bpdbm", - 13722: "bpjava-msvc", - 13724: "vnetd", - 13782: "bpcd", - 13783: "vopied", - 13785: "nbdb", - 13786: "nomdb", - 13818: "dsmcc-config", - 13819: "dsmcc-session", - 13820: "dsmcc-passthru", - 13821: "dsmcc-download", - 13822: "dsmcc-ccp", - 13823: "bmdss", - 13894: "ucontrol", - 13929: "dta-systems", - 13930: "medevolve", - 14000: "scotty-ft", - 14001: "sua", - 14033: "sage-best-com1", - 14034: "sage-best-com2", - 14141: "vcs-app", - 14142: "icpp", - 14143: "icpps", - 14145: "gcm-app", - 14149: "vrts-tdd", - 14150: "vcscmd", - 14154: "vad", - 14250: "cps", - 14414: "ca-web-update", - 14500: "xpra", - 14936: "hde-lcesrvr-1", - 14937: "hde-lcesrvr-2", - 15000: "hydap", - 15002: "onep-tls", - 15345: "xpilot", - 15363: "3link", - 15555: "cisco-snat", - 15660: "bex-xr", - 15740: "ptp", - 15999: "programmar", - 16000: "fmsas", - 16001: "fmsascon", - 16002: "gsms", - 16020: "jwpc", - 16021: "jwpc-bin", - 16161: "sun-sea-port", - 16162: "solaris-audit", - 16309: "etb4j", - 16310: "pduncs", - 16311: "pdefmns", - 16360: "netserialext1", - 16361: "netserialext2", - 16367: "netserialext3", - 16368: "netserialext4", - 16384: "connected", - 16385: "rdgs", - 16619: "xoms", - 16665: "axon-tunnel", - 16789: "cadsisvr", - 16900: "newbay-snc-mc", - 16950: "sgcip", - 16991: "intel-rci-mp", - 16992: "amt-soap-http", - 16993: "amt-soap-https", - 16994: "amt-redir-tcp", - 16995: "amt-redir-tls", - 17007: "isode-dua", - 17184: "vestasdlp", - 17185: "soundsvirtual", - 17219: "chipper", - 17220: "avtp", - 17221: "avdecc", - 17223: "isa100-gci", - 17225: "trdp-md", - 17234: "integrius-stp", - 17235: "ssh-mgmt", - 17500: "db-lsp", - 17555: "ailith", - 17729: "ea", - 17754: "zep", - 17755: "zigbee-ip", - 17756: "zigbee-ips", - 17777: "sw-orion", - 18000: "biimenu", - 18104: "radpdf", - 18136: "racf", - 18181: "opsec-cvp", - 18182: "opsec-ufp", - 18183: "opsec-sam", - 18184: "opsec-lea", - 18185: "opsec-omi", - 18186: "ohsc", - 18187: "opsec-ela", - 18241: "checkpoint-rtm", - 18242: "iclid", - 18243: "clusterxl", - 18262: "gv-pf", - 18463: "ac-cluster", - 18634: "rds-ib", - 18635: "rds-ip", - 18668: "vdmmesh", - 18769: "ique", - 18881: "infotos", - 18888: "apc-necmp", - 19000: "igrid", - 19007: "scintilla", - 19020: "j-link", - 19191: "opsec-uaa", - 19194: "ua-secureagent", - 19220: "cora", - 19283: "keysrvr", - 19315: "keyshadow", - 19398: "mtrgtrans", - 19410: "hp-sco", - 19411: "hp-sca", - 19412: "hp-sessmon", - 19539: "fxuptp", - 19540: "sxuptp", - 19541: "jcp", - 19998: "iec-104-sec", - 19999: "dnp-sec", - 20000: "dnp", - 20001: "microsan", - 20002: "commtact-http", - 20003: "commtact-https", - 20005: "openwebnet", - 20013: "ss-idi", - 20014: "opendeploy", - 20034: "nburn-id", - 20046: "tmophl7mts", - 20048: "mountd", - 20049: "nfsrdma", - 20057: "avesterra", - 20167: "tolfab", - 20202: "ipdtp-port", - 20222: "ipulse-ics", - 20480: "emwavemsg", - 20670: "track", - 20999: "athand-mmp", - 21000: "irtrans", - 21010: "notezilla-lan", - 21221: "aigairserver", - 21553: "rdm-tfs", - 21554: "dfserver", - 21590: "vofr-gateway", - 21800: "tvpm", - 21845: "webphone", - 21846: "netspeak-is", - 21847: "netspeak-cs", - 21848: "netspeak-acd", - 21849: "netspeak-cps", - 22000: "snapenetio", - 22001: "optocontrol", - 22002: "optohost002", - 22003: "optohost003", - 22004: "optohost004", - 22005: "optohost004", - 22125: "dcap", - 22128: "gsidcap", - 22222: "easyengine", - 22273: "wnn6", - 22305: "cis", - 22335: "shrewd-control", - 22343: "cis-secure", - 22347: "wibukey", - 22350: "codemeter", - 22351: "codemeter-cmwan", - 22537: "caldsoft-backup", - 22555: "vocaltec-wconf", - 22763: "talikaserver", - 22800: "aws-brf", - 22951: "brf-gw", - 23000: "inovaport1", - 23001: "inovaport2", - 23002: "inovaport3", - 23003: "inovaport4", - 23004: "inovaport5", - 23005: "inovaport6", - 23053: "gntp", - 23294: "5afe-dir", - 23333: "elxmgmt", - 23400: "novar-dbase", - 23401: "novar-alarm", - 23402: "novar-global", - 23456: "aequus", - 23457: "aequus-alt", - 23546: "areaguard-neo", - 24000: "med-ltp", - 24001: "med-fsp-rx", - 24002: "med-fsp-tx", - 24003: "med-supp", - 24004: "med-ovw", - 24005: "med-ci", - 24006: "med-net-svc", - 24242: "filesphere", - 24249: "vista-4gl", - 24321: "ild", - 24386: "intel-rci", - 24465: "tonidods", - 24554: "binkp", - 24577: "bilobit", - 24666: "sdtvwcam", - 24676: "canditv", - 24677: "flashfiler", - 24678: "proactivate", - 24680: "tcc-http", - 24754: "cslg", - 24922: "find", - 25000: "icl-twobase1", - 25001: "icl-twobase2", - 25002: "icl-twobase3", - 25003: "icl-twobase4", - 25004: "icl-twobase5", - 25005: "icl-twobase6", - 25006: "icl-twobase7", - 25007: "icl-twobase8", - 25008: "icl-twobase9", - 25009: "icl-twobase10", - 25576: "sauterdongle", - 25604: "idtp", - 25793: "vocaltec-hos", - 25900: "tasp-net", - 25901: "niobserver", - 25902: "nilinkanalyst", - 25903: "niprobe", - 26000: "quake", - 26133: "scscp", - 26208: "wnn6-ds", - 26257: "cockroach", - 26260: "ezproxy", - 26261: "ezmeeting", - 26262: "k3software-svr", - 26263: "k3software-cli", - 26486: "exoline-tcp", - 26487: "exoconfig", - 26489: "exonet", - 27345: "imagepump", - 27442: "jesmsjc", - 27504: "kopek-httphead", - 27782: "ars-vista", - 27876: "astrolink", - 27999: "tw-auth-key", - 28000: "nxlmd", - 28001: "pqsp", - 28200: "voxelstorm", - 28240: "siemensgsm", - 28589: "bosswave", - 29167: "otmp", - 29999: "bingbang", - 30000: "ndmps", - 30001: "pago-services1", - 30002: "pago-services2", - 30003: "amicon-fpsu-ra", - 30100: "rwp", - 30260: "kingdomsonline", - 30400: "gs-realtime", - 30999: "ovobs", - 31016: "ka-sddp", - 31020: "autotrac-acp", - 31400: "pace-licensed", - 31416: "xqosd", - 31457: "tetrinet", - 31620: "lm-mon", - 31685: "dsx-monitor", - 31765: "gamesmith-port", - 31948: "iceedcp-tx", - 31949: "iceedcp-rx", - 32034: "iracinghelper", - 32249: "t1distproc60", - 32400: "plex", - 32483: "apm-link", - 32635: "sec-ntb-clnt", - 32636: "DMExpress", - 32767: "filenet-powsrm", - 32768: "filenet-tms", - 32769: "filenet-rpc", - 32770: "filenet-nch", - 32771: "filenet-rmi", - 32772: "filenet-pa", - 32773: "filenet-cm", - 32774: "filenet-re", - 32775: "filenet-pch", - 32776: "filenet-peior", - 32777: "filenet-obrok", - 32801: "mlsn", - 32811: "retp", - 32896: "idmgratm", - 33060: "mysqlx", - 33123: "aurora-balaena", - 33331: "diamondport", - 33333: "dgi-serv", - 33334: "speedtrace", - 33434: "traceroute", - 33656: "snip-slave", - 34249: "turbonote-2", - 34378: "p-net-local", - 34379: "p-net-remote", - 34567: "dhanalakshmi", - 34962: "profinet-rt", - 34963: "profinet-rtm", - 34964: "profinet-cm", - 34980: "ethercat", - 35000: "heathview", - 35001: "rt-viewer", - 35002: "rt-sound", - 35003: "rt-devicemapper", - 35004: "rt-classmanager", - 35005: "rt-labtracker", - 35006: "rt-helper", - 35100: "axio-disc", - 35354: "kitim", - 35355: "altova-lm", - 35356: "guttersnex", - 35357: "openstack-id", - 36001: "allpeers", - 36524: "febooti-aw", - 36602: "observium-agent", - 36700: "mapx", - 36865: "kastenxpipe", - 37475: "neckar", - 37483: "gdrive-sync", - 37601: "eftp", - 37654: "unisys-eportal", - 38000: "ivs-database", - 38001: "ivs-insertion", - 38002: "cresco-control", - 38201: "galaxy7-data", - 38202: "fairview", - 38203: "agpolicy", - 38800: "sruth", - 38865: "secrmmsafecopya", - 39681: "turbonote-1", - 40000: "safetynetp", - 40404: "sptx", - 40841: "cscp", - 40842: "csccredir", - 40843: "csccfirewall", - 41111: "fs-qos", - 41121: "tentacle", - 41230: "z-wave-s", - 41794: "crestron-cip", - 41795: "crestron-ctp", - 41796: "crestron-cips", - 41797: "crestron-ctps", - 42508: "candp", - 42509: "candrp", - 42510: "caerpc", - 43000: "recvr-rc", - 43188: "reachout", - 43189: "ndm-agent-port", - 43190: "ip-provision", - 43191: "noit-transport", - 43210: "shaperai", - 43439: "eq3-update", - 43440: "ew-mgmt", - 43441: "ciscocsdb", - 44123: "z-wave-tunnel", - 44321: "pmcd", - 44322: "pmcdproxy", - 44323: "pmwebapi", - 44444: "cognex-dataman", - 44553: "rbr-debug", - 44818: "EtherNet-IP-2", - 44900: "m3da", - 45000: "asmp", - 45001: "asmps", - 45002: "rs-status", - 45045: "synctest", - 45054: "invision-ag", - 45514: "cloudcheck", - 45678: "eba", - 45824: "dai-shell", - 45825: "qdb2service", - 45966: "ssr-servermgr", - 46336: "inedo", - 46998: "spremotetablet", - 46999: "mediabox", - 47000: "mbus", - 47001: "winrm", - 47557: "dbbrowse", - 47624: "directplaysrvr", - 47806: "ap", - 47808: "bacnet", - 48000: "nimcontroller", - 48001: "nimspooler", - 48002: "nimhub", - 48003: "nimgtw", - 48004: "nimbusdb", - 48005: "nimbusdbctrl", - 48049: "3gpp-cbsp", - 48050: "weandsf", - 48128: "isnetserv", - 48129: "blp5", - 48556: "com-bardac-dw", - 48619: "iqobject", - 48653: "robotraconteur", - 49000: "matahari", - 49001: "nusrp", -} -var udpPortNames = map[UDPPort]string{ - 1: "tcpmux", - 2: "compressnet", - 3: "compressnet", - 5: "rje", - 7: "echo", - 9: "discard", - 11: "systat", - 13: "daytime", - 17: "qotd", - 18: "msp", - 19: "chargen", - 20: "ftp-data", - 21: "ftp", - 22: "ssh", - 23: "telnet", - 25: "smtp", - 27: "nsw-fe", - 29: "msg-icp", - 31: "msg-auth", - 33: "dsp", - 37: "time", - 38: "rap", - 39: "rlp", - 41: "graphics", - 42: "name", - 43: "nicname", - 44: "mpm-flags", - 45: "mpm", - 46: "mpm-snd", - 48: "auditd", - 49: "tacacs", - 50: "re-mail-ck", - 52: "xns-time", - 53: "domain", - 54: "xns-ch", - 55: "isi-gl", - 56: "xns-auth", - 58: "xns-mail", - 62: "acas", - 63: "whoispp", - 64: "covia", - 65: "tacacs-ds", - 66: "sql-net", - 67: "bootps", - 68: "bootpc", - 69: "tftp", - 70: "gopher", - 71: "netrjs-1", - 72: "netrjs-2", - 73: "netrjs-3", - 74: "netrjs-4", - 76: "deos", - 78: "vettcp", - 79: "finger", - 80: "http", - 82: "xfer", - 83: "mit-ml-dev", - 84: "ctf", - 85: "mit-ml-dev", - 86: "mfcobol", - 88: "kerberos", - 89: "su-mit-tg", - 90: "dnsix", - 91: "mit-dov", - 92: "npp", - 93: "dcp", - 94: "objcall", - 95: "supdup", - 96: "dixie", - 97: "swift-rvf", - 98: "tacnews", - 99: "metagram", - 101: "hostname", - 102: "iso-tsap", - 103: "gppitnp", - 104: "acr-nema", - 105: "cso", - 106: "3com-tsmux", - 107: "rtelnet", - 108: "snagas", - 109: "pop2", - 110: "pop3", - 111: "sunrpc", - 112: "mcidas", - 113: "auth", - 115: "sftp", - 116: "ansanotify", - 117: "uucp-path", - 118: "sqlserv", - 119: "nntp", - 120: "cfdptkt", - 121: "erpc", - 122: "smakynet", - 123: "ntp", - 124: "ansatrader", - 125: "locus-map", - 126: "nxedit", - 127: "locus-con", - 128: "gss-xlicen", - 129: "pwdgen", - 130: "cisco-fna", - 131: "cisco-tna", - 132: "cisco-sys", - 133: "statsrv", - 134: "ingres-net", - 135: "epmap", - 136: "profile", - 137: "netbios-ns", - 138: "netbios-dgm", - 139: "netbios-ssn", - 140: "emfis-data", - 141: "emfis-cntl", - 142: "bl-idm", - 143: "imap", - 144: "uma", - 145: "uaac", - 146: "iso-tp0", - 147: "iso-ip", - 148: "jargon", - 149: "aed-512", - 150: "sql-net", - 151: "hems", - 152: "bftp", - 153: "sgmp", - 154: "netsc-prod", - 155: "netsc-dev", - 156: "sqlsrv", - 157: "knet-cmp", - 158: "pcmail-srv", - 159: "nss-routing", - 160: "sgmp-traps", - 161: "snmp", - 162: "snmptrap", - 163: "cmip-man", - 164: "cmip-agent", - 165: "xns-courier", - 166: "s-net", - 167: "namp", - 168: "rsvd", - 169: "send", - 170: "print-srv", - 171: "multiplex", - 172: "cl-1", - 173: "xyplex-mux", - 174: "mailq", - 175: "vmnet", - 176: "genrad-mux", - 177: "xdmcp", - 178: "nextstep", - 179: "bgp", - 180: "ris", - 181: "unify", - 182: "audit", - 183: "ocbinder", - 184: "ocserver", - 185: "remote-kis", - 186: "kis", - 187: "aci", - 188: "mumps", - 189: "qft", - 190: "gacp", - 191: "prospero", - 192: "osu-nms", - 193: "srmp", - 194: "irc", - 195: "dn6-nlm-aud", - 196: "dn6-smm-red", - 197: "dls", - 198: "dls-mon", - 199: "smux", - 200: "src", - 201: "at-rtmp", - 202: "at-nbp", - 203: "at-3", - 204: "at-echo", - 205: "at-5", - 206: "at-zis", - 207: "at-7", - 208: "at-8", - 209: "qmtp", - 210: "z39-50", - 211: "914c-g", - 212: "anet", - 213: "ipx", - 214: "vmpwscs", - 215: "softpc", - 216: "CAIlic", - 217: "dbase", - 218: "mpp", - 219: "uarps", - 220: "imap3", - 221: "fln-spx", - 222: "rsh-spx", - 223: "cdc", - 224: "masqdialer", - 242: "direct", - 243: "sur-meas", - 244: "inbusiness", - 245: "link", - 246: "dsp3270", - 247: "subntbcst-tftp", - 248: "bhfhs", - 256: "rap", - 257: "set", - 259: "esro-gen", - 260: "openport", - 261: "nsiiops", - 262: "arcisdms", - 263: "hdap", - 264: "bgmp", - 265: "x-bone-ctl", - 266: "sst", - 267: "td-service", - 268: "td-replica", - 269: "manet", - 270: "gist", - 280: "http-mgmt", - 281: "personal-link", - 282: "cableport-ax", - 283: "rescap", - 284: "corerjd", - 286: "fxp", - 287: "k-block", - 308: "novastorbakcup", - 309: "entrusttime", - 310: "bhmds", - 311: "asip-webadmin", - 312: "vslmp", - 313: "magenta-logic", - 314: "opalis-robot", - 315: "dpsi", - 316: "decauth", - 317: "zannet", - 318: "pkix-timestamp", - 319: "ptp-event", - 320: "ptp-general", - 321: "pip", - 322: "rtsps", - 333: "texar", - 344: "pdap", - 345: "pawserv", - 346: "zserv", - 347: "fatserv", - 348: "csi-sgwp", - 349: "mftp", - 350: "matip-type-a", - 351: "matip-type-b", - 352: "dtag-ste-sb", - 353: "ndsauth", - 354: "bh611", - 355: "datex-asn", - 356: "cloanto-net-1", - 357: "bhevent", - 358: "shrinkwrap", - 359: "nsrmp", - 360: "scoi2odialog", - 361: "semantix", - 362: "srssend", - 363: "rsvp-tunnel", - 364: "aurora-cmgr", - 365: "dtk", - 366: "odmr", - 367: "mortgageware", - 368: "qbikgdp", - 369: "rpc2portmap", - 370: "codaauth2", - 371: "clearcase", - 372: "ulistproc", - 373: "legent-1", - 374: "legent-2", - 375: "hassle", - 376: "nip", - 377: "tnETOS", - 378: "dsETOS", - 379: "is99c", - 380: "is99s", - 381: "hp-collector", - 382: "hp-managed-node", - 383: "hp-alarm-mgr", - 384: "arns", - 385: "ibm-app", - 386: "asa", - 387: "aurp", - 388: "unidata-ldm", - 389: "ldap", - 390: "uis", - 391: "synotics-relay", - 392: "synotics-broker", - 393: "meta5", - 394: "embl-ndt", - 395: "netcp", - 396: "netware-ip", - 397: "mptn", - 398: "kryptolan", - 399: "iso-tsap-c2", - 400: "osb-sd", - 401: "ups", - 402: "genie", - 403: "decap", - 404: "nced", - 405: "ncld", - 406: "imsp", - 407: "timbuktu", - 408: "prm-sm", - 409: "prm-nm", - 410: "decladebug", - 411: "rmt", - 412: "synoptics-trap", - 413: "smsp", - 414: "infoseek", - 415: "bnet", - 416: "silverplatter", - 417: "onmux", - 418: "hyper-g", - 419: "ariel1", - 420: "smpte", - 421: "ariel2", - 422: "ariel3", - 423: "opc-job-start", - 424: "opc-job-track", - 425: "icad-el", - 426: "smartsdp", - 427: "svrloc", - 428: "ocs-cmu", - 429: "ocs-amu", - 430: "utmpsd", - 431: "utmpcd", - 432: "iasd", - 433: "nnsp", - 434: "mobileip-agent", - 435: "mobilip-mn", - 436: "dna-cml", - 437: "comscm", - 438: "dsfgw", - 439: "dasp", - 440: "sgcp", - 441: "decvms-sysmgt", - 442: "cvc-hostd", - 443: "https", - 444: "snpp", - 445: "microsoft-ds", - 446: "ddm-rdb", - 447: "ddm-dfm", - 448: "ddm-ssl", - 449: "as-servermap", - 450: "tserver", - 451: "sfs-smp-net", - 452: "sfs-config", - 453: "creativeserver", - 454: "contentserver", - 455: "creativepartnr", - 456: "macon-udp", - 457: "scohelp", - 458: "appleqtc", - 459: "ampr-rcmd", - 460: "skronk", - 461: "datasurfsrv", - 462: "datasurfsrvsec", - 463: "alpes", - 464: "kpasswd", - 465: "igmpv3lite", - 466: "digital-vrc", - 467: "mylex-mapd", - 468: "photuris", - 469: "rcp", - 470: "scx-proxy", - 471: "mondex", - 472: "ljk-login", - 473: "hybrid-pop", - 474: "tn-tl-w2", - 475: "tcpnethaspsrv", - 476: "tn-tl-fd1", - 477: "ss7ns", - 478: "spsc", - 479: "iafserver", - 480: "iafdbase", - 481: "ph", - 482: "bgs-nsi", - 483: "ulpnet", - 484: "integra-sme", - 485: "powerburst", - 486: "avian", - 487: "saft", - 488: "gss-http", - 489: "nest-protocol", - 490: "micom-pfs", - 491: "go-login", - 492: "ticf-1", - 493: "ticf-2", - 494: "pov-ray", - 495: "intecourier", - 496: "pim-rp-disc", - 497: "retrospect", - 498: "siam", - 499: "iso-ill", - 500: "isakmp", - 501: "stmf", - 502: "mbap", - 503: "intrinsa", - 504: "citadel", - 505: "mailbox-lm", - 506: "ohimsrv", - 507: "crs", - 508: "xvttp", - 509: "snare", - 510: "fcp", - 511: "passgo", - 512: "comsat", - 513: "who", - 514: "syslog", - 515: "printer", - 516: "videotex", - 517: "talk", - 518: "ntalk", - 519: "utime", - 520: "router", - 521: "ripng", - 522: "ulp", - 523: "ibm-db2", - 524: "ncp", - 525: "timed", - 526: "tempo", - 527: "stx", - 528: "custix", - 529: "irc-serv", - 530: "courier", - 531: "conference", - 532: "netnews", - 533: "netwall", - 534: "windream", - 535: "iiop", - 536: "opalis-rdv", - 537: "nmsp", - 538: "gdomap", - 539: "apertus-ldp", - 540: "uucp", - 541: "uucp-rlogin", - 542: "commerce", - 543: "klogin", - 544: "kshell", - 545: "appleqtcsrvr", - 546: "dhcpv6-client", - 547: "dhcpv6-server", - 548: "afpovertcp", - 549: "idfp", - 550: "new-rwho", - 551: "cybercash", - 552: "devshr-nts", - 553: "pirp", - 554: "rtsp", - 555: "dsf", - 556: "remotefs", - 557: "openvms-sysipc", - 558: "sdnskmp", - 559: "teedtap", - 560: "rmonitor", - 561: "monitor", - 562: "chshell", - 563: "nntps", - 564: "9pfs", - 565: "whoami", - 566: "streettalk", - 567: "banyan-rpc", - 568: "ms-shuttle", - 569: "ms-rome", - 570: "meter", - 571: "meter", - 572: "sonar", - 573: "banyan-vip", - 574: "ftp-agent", - 575: "vemmi", - 576: "ipcd", - 577: "vnas", - 578: "ipdd", - 579: "decbsrv", - 580: "sntp-heartbeat", - 581: "bdp", - 582: "scc-security", - 583: "philips-vc", - 584: "keyserver", - 586: "password-chg", - 587: "submission", - 588: "cal", - 589: "eyelink", - 590: "tns-cml", - 591: "http-alt", - 592: "eudora-set", - 593: "http-rpc-epmap", - 594: "tpip", - 595: "cab-protocol", - 596: "smsd", - 597: "ptcnameservice", - 598: "sco-websrvrmg3", - 599: "acp", - 600: "ipcserver", - 601: "syslog-conn", - 602: "xmlrpc-beep", - 603: "idxp", - 604: "tunnel", - 605: "soap-beep", - 606: "urm", - 607: "nqs", - 608: "sift-uft", - 609: "npmp-trap", - 610: "npmp-local", - 611: "npmp-gui", - 612: "hmmp-ind", - 613: "hmmp-op", - 614: "sshell", - 615: "sco-inetmgr", - 616: "sco-sysmgr", - 617: "sco-dtmgr", - 618: "dei-icda", - 619: "compaq-evm", - 620: "sco-websrvrmgr", - 621: "escp-ip", - 622: "collaborator", - 623: "asf-rmcp", - 624: "cryptoadmin", - 625: "dec-dlm", - 626: "asia", - 627: "passgo-tivoli", - 628: "qmqp", - 629: "3com-amp3", - 630: "rda", - 631: "ipp", - 632: "bmpp", - 633: "servstat", - 634: "ginad", - 635: "rlzdbase", - 636: "ldaps", - 637: "lanserver", - 638: "mcns-sec", - 639: "msdp", - 640: "entrust-sps", - 641: "repcmd", - 642: "esro-emsdp", - 643: "sanity", - 644: "dwr", - 645: "pssc", - 646: "ldp", - 647: "dhcp-failover", - 648: "rrp", - 649: "cadview-3d", - 650: "obex", - 651: "ieee-mms", - 652: "hello-port", - 653: "repscmd", - 654: "aodv", - 655: "tinc", - 656: "spmp", - 657: "rmc", - 658: "tenfold", - 660: "mac-srvr-admin", - 661: "hap", - 662: "pftp", - 663: "purenoise", - 664: "asf-secure-rmcp", - 665: "sun-dr", - 666: "mdqs", - 667: "disclose", - 668: "mecomm", - 669: "meregister", - 670: "vacdsm-sws", - 671: "vacdsm-app", - 672: "vpps-qua", - 673: "cimplex", - 674: "acap", - 675: "dctp", - 676: "vpps-via", - 677: "vpp", - 678: "ggf-ncp", - 679: "mrm", - 680: "entrust-aaas", - 681: "entrust-aams", - 682: "xfr", - 683: "corba-iiop", - 684: "corba-iiop-ssl", - 685: "mdc-portmapper", - 686: "hcp-wismar", - 687: "asipregistry", - 688: "realm-rusd", - 689: "nmap", - 690: "vatp", - 691: "msexch-routing", - 692: "hyperwave-isp", - 693: "connendp", - 694: "ha-cluster", - 695: "ieee-mms-ssl", - 696: "rushd", - 697: "uuidgen", - 698: "olsr", - 699: "accessnetwork", - 700: "epp", - 701: "lmp", - 702: "iris-beep", - 704: "elcsd", - 705: "agentx", - 706: "silc", - 707: "borland-dsj", - 709: "entrust-kmsh", - 710: "entrust-ash", - 711: "cisco-tdp", - 712: "tbrpf", - 713: "iris-xpc", - 714: "iris-xpcs", - 715: "iris-lwz", - 716: "pana", - 729: "netviewdm1", - 730: "netviewdm2", - 731: "netviewdm3", - 741: "netgw", - 742: "netrcs", - 744: "flexlm", - 747: "fujitsu-dev", - 748: "ris-cm", - 749: "kerberos-adm", - 750: "loadav", - 751: "pump", - 752: "qrh", - 753: "rrh", - 754: "tell", - 758: "nlogin", - 759: "con", - 760: "ns", - 761: "rxe", - 762: "quotad", - 763: "cycleserv", - 764: "omserv", - 765: "webster", - 767: "phonebook", - 769: "vid", - 770: "cadlock", - 771: "rtip", - 772: "cycleserv2", - 773: "notify", - 774: "acmaint-dbd", - 775: "acmaint-transd", - 776: "wpages", - 777: "multiling-http", - 780: "wpgs", - 800: "mdbs-daemon", - 801: "device", - 802: "mbap-s", - 810: "fcp-udp", - 828: "itm-mcell-s", - 829: "pkix-3-ca-ra", - 830: "netconf-ssh", - 831: "netconf-beep", - 832: "netconfsoaphttp", - 833: "netconfsoapbeep", - 847: "dhcp-failover2", - 848: "gdoi", - 853: "domain-s", - 854: "dlep", - 860: "iscsi", - 861: "owamp-control", - 862: "twamp-control", - 873: "rsync", - 886: "iclcnet-locate", - 887: "iclcnet-svinfo", - 888: "accessbuilder", - 900: "omginitialrefs", - 901: "smpnameres", - 902: "ideafarm-door", - 903: "ideafarm-panic", - 910: "kink", - 911: "xact-backup", - 912: "apex-mesh", - 913: "apex-edge", - 989: "ftps-data", - 990: "ftps", - 991: "nas", - 992: "telnets", - 993: "imaps", - 995: "pop3s", - 996: "vsinet", - 997: "maitrd", - 998: "puparp", - 999: "applix", - 1000: "cadlock2", - 1010: "surf", - 1021: "exp1", - 1022: "exp2", - 1025: "blackjack", - 1026: "cap", - 1027: "6a44", - 1029: "solid-mux", - 1033: "netinfo-local", - 1034: "activesync", - 1035: "mxxrlogin", - 1036: "nsstp", - 1037: "ams", - 1038: "mtqp", - 1039: "sbl", - 1040: "netarx", - 1041: "danf-ak2", - 1042: "afrog", - 1043: "boinc-client", - 1044: "dcutility", - 1045: "fpitp", - 1046: "wfremotertm", - 1047: "neod1", - 1048: "neod2", - 1049: "td-postman", - 1050: "cma", - 1051: "optima-vnet", - 1052: "ddt", - 1053: "remote-as", - 1054: "brvread", - 1055: "ansyslmd", - 1056: "vfo", - 1057: "startron", - 1058: "nim", - 1059: "nimreg", - 1060: "polestar", - 1061: "kiosk", - 1062: "veracity", - 1063: "kyoceranetdev", - 1064: "jstel", - 1065: "syscomlan", - 1066: "fpo-fns", - 1067: "instl-boots", - 1068: "instl-bootc", - 1069: "cognex-insight", - 1070: "gmrupdateserv", - 1071: "bsquare-voip", - 1072: "cardax", - 1073: "bridgecontrol", - 1074: "warmspotMgmt", - 1075: "rdrmshc", - 1076: "dab-sti-c", - 1077: "imgames", - 1078: "avocent-proxy", - 1079: "asprovatalk", - 1080: "socks", - 1081: "pvuniwien", - 1082: "amt-esd-prot", - 1083: "ansoft-lm-1", - 1084: "ansoft-lm-2", - 1085: "webobjects", - 1086: "cplscrambler-lg", - 1087: "cplscrambler-in", - 1088: "cplscrambler-al", - 1089: "ff-annunc", - 1090: "ff-fms", - 1091: "ff-sm", - 1092: "obrpd", - 1093: "proofd", - 1094: "rootd", - 1095: "nicelink", - 1096: "cnrprotocol", - 1097: "sunclustermgr", - 1098: "rmiactivation", - 1099: "rmiregistry", - 1100: "mctp", - 1101: "pt2-discover", - 1102: "adobeserver-1", - 1103: "adobeserver-2", - 1104: "xrl", - 1105: "ftranhc", - 1106: "isoipsigport-1", - 1107: "isoipsigport-2", - 1108: "ratio-adp", - 1110: "nfsd-keepalive", - 1111: "lmsocialserver", - 1112: "icp", - 1113: "ltp-deepspace", - 1114: "mini-sql", - 1115: "ardus-trns", - 1116: "ardus-cntl", - 1117: "ardus-mtrns", - 1118: "sacred", - 1119: "bnetgame", - 1120: "bnetfile", - 1121: "rmpp", - 1122: "availant-mgr", - 1123: "murray", - 1124: "hpvmmcontrol", - 1125: "hpvmmagent", - 1126: "hpvmmdata", - 1127: "kwdb-commn", - 1128: "saphostctrl", - 1129: "saphostctrls", - 1130: "casp", - 1131: "caspssl", - 1132: "kvm-via-ip", - 1133: "dfn", - 1134: "aplx", - 1135: "omnivision", - 1136: "hhb-gateway", - 1137: "trim", - 1138: "encrypted-admin", - 1139: "evm", - 1140: "autonoc", - 1141: "mxomss", - 1142: "edtools", - 1143: "imyx", - 1144: "fuscript", - 1145: "x9-icue", - 1146: "audit-transfer", - 1147: "capioverlan", - 1148: "elfiq-repl", - 1149: "bvtsonar", - 1150: "blaze", - 1151: "unizensus", - 1152: "winpoplanmess", - 1153: "c1222-acse", - 1154: "resacommunity", - 1155: "nfa", - 1156: "iascontrol-oms", - 1157: "iascontrol", - 1158: "dbcontrol-oms", - 1159: "oracle-oms", - 1160: "olsv", - 1161: "health-polling", - 1162: "health-trap", - 1163: "sddp", - 1164: "qsm-proxy", - 1165: "qsm-gui", - 1166: "qsm-remote", - 1167: "cisco-ipsla", - 1168: "vchat", - 1169: "tripwire", - 1170: "atc-lm", - 1171: "atc-appserver", - 1172: "dnap", - 1173: "d-cinema-rrp", - 1174: "fnet-remote-ui", - 1175: "dossier", - 1176: "indigo-server", - 1177: "dkmessenger", - 1178: "sgi-storman", - 1179: "b2n", - 1180: "mc-client", - 1181: "3comnetman", - 1182: "accelenet-data", - 1183: "llsurfup-http", - 1184: "llsurfup-https", - 1185: "catchpole", - 1186: "mysql-cluster", - 1187: "alias", - 1188: "hp-webadmin", - 1189: "unet", - 1190: "commlinx-avl", - 1191: "gpfs", - 1192: "caids-sensor", - 1193: "fiveacross", - 1194: "openvpn", - 1195: "rsf-1", - 1196: "netmagic", - 1197: "carrius-rshell", - 1198: "cajo-discovery", - 1199: "dmidi", - 1200: "scol", - 1201: "nucleus-sand", - 1202: "caiccipc", - 1203: "ssslic-mgr", - 1204: "ssslog-mgr", - 1205: "accord-mgc", - 1206: "anthony-data", - 1207: "metasage", - 1208: "seagull-ais", - 1209: "ipcd3", - 1210: "eoss", - 1211: "groove-dpp", - 1212: "lupa", - 1213: "mpc-lifenet", - 1214: "kazaa", - 1215: "scanstat-1", - 1216: "etebac5", - 1217: "hpss-ndapi", - 1218: "aeroflight-ads", - 1219: "aeroflight-ret", - 1220: "qt-serveradmin", - 1221: "sweetware-apps", - 1222: "nerv", - 1223: "tgp", - 1224: "vpnz", - 1225: "slinkysearch", - 1226: "stgxfws", - 1227: "dns2go", - 1228: "florence", - 1229: "zented", - 1230: "periscope", - 1231: "menandmice-lpm", - 1232: "first-defense", - 1233: "univ-appserver", - 1234: "search-agent", - 1235: "mosaicsyssvc1", - 1236: "bvcontrol", - 1237: "tsdos390", - 1238: "hacl-qs", - 1239: "nmsd", - 1240: "instantia", - 1241: "nessus", - 1242: "nmasoverip", - 1243: "serialgateway", - 1244: "isbconference1", - 1245: "isbconference2", - 1246: "payrouter", - 1247: "visionpyramid", - 1248: "hermes", - 1249: "mesavistaco", - 1250: "swldy-sias", - 1251: "servergraph", - 1252: "bspne-pcc", - 1253: "q55-pcc", - 1254: "de-noc", - 1255: "de-cache-query", - 1256: "de-server", - 1257: "shockwave2", - 1258: "opennl", - 1259: "opennl-voice", - 1260: "ibm-ssd", - 1261: "mpshrsv", - 1262: "qnts-orb", - 1263: "dka", - 1264: "prat", - 1265: "dssiapi", - 1266: "dellpwrappks", - 1267: "epc", - 1268: "propel-msgsys", - 1269: "watilapp", - 1270: "opsmgr", - 1271: "excw", - 1272: "cspmlockmgr", - 1273: "emc-gateway", - 1274: "t1distproc", - 1275: "ivcollector", - 1277: "miva-mqs", - 1278: "dellwebadmin-1", - 1279: "dellwebadmin-2", - 1280: "pictrography", - 1281: "healthd", - 1282: "emperion", - 1283: "productinfo", - 1284: "iee-qfx", - 1285: "neoiface", - 1286: "netuitive", - 1287: "routematch", - 1288: "navbuddy", - 1289: "jwalkserver", - 1290: "winjaserver", - 1291: "seagulllms", - 1292: "dsdn", - 1293: "pkt-krb-ipsec", - 1294: "cmmdriver", - 1295: "ehtp", - 1296: "dproxy", - 1297: "sdproxy", - 1298: "lpcp", - 1299: "hp-sci", - 1300: "h323hostcallsc", - 1301: "ci3-software-1", - 1302: "ci3-software-2", - 1303: "sftsrv", - 1304: "boomerang", - 1305: "pe-mike", - 1306: "re-conn-proto", - 1307: "pacmand", - 1308: "odsi", - 1309: "jtag-server", - 1310: "husky", - 1311: "rxmon", - 1312: "sti-envision", - 1313: "bmc-patroldb", - 1314: "pdps", - 1315: "els", - 1316: "exbit-escp", - 1317: "vrts-ipcserver", - 1318: "krb5gatekeeper", - 1319: "amx-icsp", - 1320: "amx-axbnet", - 1321: "pip", - 1322: "novation", - 1323: "brcd", - 1324: "delta-mcp", - 1325: "dx-instrument", - 1326: "wimsic", - 1327: "ultrex", - 1328: "ewall", - 1329: "netdb-export", - 1330: "streetperfect", - 1331: "intersan", - 1332: "pcia-rxp-b", - 1333: "passwrd-policy", - 1334: "writesrv", - 1335: "digital-notary", - 1336: "ischat", - 1337: "menandmice-dns", - 1338: "wmc-log-svc", - 1339: "kjtsiteserver", - 1340: "naap", - 1341: "qubes", - 1342: "esbroker", - 1343: "re101", - 1344: "icap", - 1345: "vpjp", - 1346: "alta-ana-lm", - 1347: "bbn-mmc", - 1348: "bbn-mmx", - 1349: "sbook", - 1350: "editbench", - 1351: "equationbuilder", - 1352: "lotusnote", - 1353: "relief", - 1354: "XSIP-network", - 1355: "intuitive-edge", - 1356: "cuillamartin", - 1357: "pegboard", - 1358: "connlcli", - 1359: "ftsrv", - 1360: "mimer", - 1361: "linx", - 1362: "timeflies", - 1363: "ndm-requester", - 1364: "ndm-server", - 1365: "adapt-sna", - 1366: "netware-csp", - 1367: "dcs", - 1368: "screencast", - 1369: "gv-us", - 1370: "us-gv", - 1371: "fc-cli", - 1372: "fc-ser", - 1373: "chromagrafx", - 1374: "molly", - 1375: "bytex", - 1376: "ibm-pps", - 1377: "cichlid", - 1378: "elan", - 1379: "dbreporter", - 1380: "telesis-licman", - 1381: "apple-licman", - 1382: "udt-os", - 1383: "gwha", - 1384: "os-licman", - 1385: "atex-elmd", - 1386: "checksum", - 1387: "cadsi-lm", - 1388: "objective-dbc", - 1389: "iclpv-dm", - 1390: "iclpv-sc", - 1391: "iclpv-sas", - 1392: "iclpv-pm", - 1393: "iclpv-nls", - 1394: "iclpv-nlc", - 1395: "iclpv-wsm", - 1396: "dvl-activemail", - 1397: "audio-activmail", - 1398: "video-activmail", - 1399: "cadkey-licman", - 1400: "cadkey-tablet", - 1401: "goldleaf-licman", - 1402: "prm-sm-np", - 1403: "prm-nm-np", - 1404: "igi-lm", - 1405: "ibm-res", - 1406: "netlabs-lm", - 1408: "sophia-lm", - 1409: "here-lm", - 1410: "hiq", - 1411: "af", - 1412: "innosys", - 1413: "innosys-acl", - 1414: "ibm-mqseries", - 1415: "dbstar", - 1416: "novell-lu6-2", - 1417: "timbuktu-srv1", - 1418: "timbuktu-srv2", - 1419: "timbuktu-srv3", - 1420: "timbuktu-srv4", - 1421: "gandalf-lm", - 1422: "autodesk-lm", - 1423: "essbase", - 1424: "hybrid", - 1425: "zion-lm", - 1426: "sais", - 1427: "mloadd", - 1428: "informatik-lm", - 1429: "nms", - 1430: "tpdu", - 1431: "rgtp", - 1432: "blueberry-lm", - 1433: "ms-sql-s", - 1434: "ms-sql-m", - 1435: "ibm-cics", - 1436: "saism", - 1437: "tabula", - 1438: "eicon-server", - 1439: "eicon-x25", - 1440: "eicon-slp", - 1441: "cadis-1", - 1442: "cadis-2", - 1443: "ies-lm", - 1444: "marcam-lm", - 1445: "proxima-lm", - 1446: "ora-lm", - 1447: "apri-lm", - 1448: "oc-lm", - 1449: "peport", - 1450: "dwf", - 1451: "infoman", - 1452: "gtegsc-lm", - 1453: "genie-lm", - 1454: "interhdl-elmd", - 1455: "esl-lm", - 1456: "dca", - 1457: "valisys-lm", - 1458: "nrcabq-lm", - 1459: "proshare1", - 1460: "proshare2", - 1461: "ibm-wrless-lan", - 1462: "world-lm", - 1463: "nucleus", - 1464: "msl-lmd", - 1465: "pipes", - 1466: "oceansoft-lm", - 1467: "csdmbase", - 1468: "csdm", - 1469: "aal-lm", - 1470: "uaiact", - 1471: "csdmbase", - 1472: "csdm", - 1473: "openmath", - 1474: "telefinder", - 1475: "taligent-lm", - 1476: "clvm-cfg", - 1477: "ms-sna-server", - 1478: "ms-sna-base", - 1479: "dberegister", - 1480: "pacerforum", - 1481: "airs", - 1482: "miteksys-lm", - 1483: "afs", - 1484: "confluent", - 1485: "lansource", - 1486: "nms-topo-serv", - 1487: "localinfosrvr", - 1488: "docstor", - 1489: "dmdocbroker", - 1490: "insitu-conf", - 1492: "stone-design-1", - 1493: "netmap-lm", - 1494: "ica", - 1495: "cvc", - 1496: "liberty-lm", - 1497: "rfx-lm", - 1498: "sybase-sqlany", - 1499: "fhc", - 1500: "vlsi-lm", - 1501: "saiscm", - 1502: "shivadiscovery", - 1503: "imtc-mcs", - 1504: "evb-elm", - 1505: "funkproxy", - 1506: "utcd", - 1507: "symplex", - 1508: "diagmond", - 1509: "robcad-lm", - 1510: "mvx-lm", - 1511: "3l-l1", - 1512: "wins", - 1513: "fujitsu-dtc", - 1514: "fujitsu-dtcns", - 1515: "ifor-protocol", - 1516: "vpad", - 1517: "vpac", - 1518: "vpvd", - 1519: "vpvc", - 1520: "atm-zip-office", - 1521: "ncube-lm", - 1522: "ricardo-lm", - 1523: "cichild-lm", - 1524: "ingreslock", - 1525: "orasrv", - 1526: "pdap-np", - 1527: "tlisrv", - 1528: "ngr-t", - 1529: "coauthor", - 1530: "rap-service", - 1531: "rap-listen", - 1532: "miroconnect", - 1533: "virtual-places", - 1534: "micromuse-lm", - 1535: "ampr-info", - 1536: "ampr-inter", - 1537: "sdsc-lm", - 1538: "3ds-lm", - 1539: "intellistor-lm", - 1540: "rds", - 1541: "rds2", - 1542: "gridgen-elmd", - 1543: "simba-cs", - 1544: "aspeclmd", - 1545: "vistium-share", - 1546: "abbaccuray", - 1547: "laplink", - 1548: "axon-lm", - 1549: "shivasound", - 1550: "3m-image-lm", - 1551: "hecmtl-db", - 1552: "pciarray", - 1553: "sna-cs", - 1554: "caci-lm", - 1555: "livelan", - 1556: "veritas-pbx", - 1557: "arbortext-lm", - 1558: "xingmpeg", - 1559: "web2host", - 1560: "asci-val", - 1561: "facilityview", - 1562: "pconnectmgr", - 1563: "cadabra-lm", - 1564: "pay-per-view", - 1565: "winddlb", - 1566: "corelvideo", - 1567: "jlicelmd", - 1568: "tsspmap", - 1569: "ets", - 1570: "orbixd", - 1571: "rdb-dbs-disp", - 1572: "chip-lm", - 1573: "itscomm-ns", - 1574: "mvel-lm", - 1575: "oraclenames", - 1576: "moldflow-lm", - 1577: "hypercube-lm", - 1578: "jacobus-lm", - 1579: "ioc-sea-lm", - 1580: "tn-tl-r2", - 1581: "mil-2045-47001", - 1582: "msims", - 1583: "simbaexpress", - 1584: "tn-tl-fd2", - 1585: "intv", - 1586: "ibm-abtact", - 1587: "pra-elmd", - 1588: "triquest-lm", - 1589: "vqp", - 1590: "gemini-lm", - 1591: "ncpm-pm", - 1592: "commonspace", - 1593: "mainsoft-lm", - 1594: "sixtrak", - 1595: "radio", - 1596: "radio-bc", - 1597: "orbplus-iiop", - 1598: "picknfs", - 1599: "simbaservices", - 1600: "issd", - 1601: "aas", - 1602: "inspect", - 1603: "picodbc", - 1604: "icabrowser", - 1605: "slp", - 1606: "slm-api", - 1607: "stt", - 1608: "smart-lm", - 1609: "isysg-lm", - 1610: "taurus-wh", - 1611: "ill", - 1612: "netbill-trans", - 1613: "netbill-keyrep", - 1614: "netbill-cred", - 1615: "netbill-auth", - 1616: "netbill-prod", - 1617: "nimrod-agent", - 1618: "skytelnet", - 1619: "xs-openstorage", - 1620: "faxportwinport", - 1621: "softdataphone", - 1622: "ontime", - 1623: "jaleosnd", - 1624: "udp-sr-port", - 1625: "svs-omagent", - 1626: "shockwave", - 1627: "t128-gateway", - 1628: "lontalk-norm", - 1629: "lontalk-urgnt", - 1630: "oraclenet8cman", - 1631: "visitview", - 1632: "pammratc", - 1633: "pammrpc", - 1634: "loaprobe", - 1635: "edb-server1", - 1636: "isdc", - 1637: "islc", - 1638: "ismc", - 1639: "cert-initiator", - 1640: "cert-responder", - 1641: "invision", - 1642: "isis-am", - 1643: "isis-ambc", - 1644: "saiseh", - 1645: "sightline", - 1646: "sa-msg-port", - 1647: "rsap", - 1648: "concurrent-lm", - 1649: "kermit", - 1650: "nkd", - 1651: "shiva-confsrvr", - 1652: "xnmp", - 1653: "alphatech-lm", - 1654: "stargatealerts", - 1655: "dec-mbadmin", - 1656: "dec-mbadmin-h", - 1657: "fujitsu-mmpdc", - 1658: "sixnetudr", - 1659: "sg-lm", - 1660: "skip-mc-gikreq", - 1661: "netview-aix-1", - 1662: "netview-aix-2", - 1663: "netview-aix-3", - 1664: "netview-aix-4", - 1665: "netview-aix-5", - 1666: "netview-aix-6", - 1667: "netview-aix-7", - 1668: "netview-aix-8", - 1669: "netview-aix-9", - 1670: "netview-aix-10", - 1671: "netview-aix-11", - 1672: "netview-aix-12", - 1673: "proshare-mc-1", - 1674: "proshare-mc-2", - 1675: "pdp", - 1676: "netcomm2", - 1677: "groupwise", - 1678: "prolink", - 1679: "darcorp-lm", - 1680: "microcom-sbp", - 1681: "sd-elmd", - 1682: "lanyon-lantern", - 1683: "ncpm-hip", - 1684: "snaresecure", - 1685: "n2nremote", - 1686: "cvmon", - 1687: "nsjtp-ctrl", - 1688: "nsjtp-data", - 1689: "firefox", - 1690: "ng-umds", - 1691: "empire-empuma", - 1692: "sstsys-lm", - 1693: "rrirtr", - 1694: "rrimwm", - 1695: "rrilwm", - 1696: "rrifmm", - 1697: "rrisat", - 1698: "rsvp-encap-1", - 1699: "rsvp-encap-2", - 1700: "mps-raft", - 1701: "l2f", - 1702: "deskshare", - 1703: "hb-engine", - 1704: "bcs-broker", - 1705: "slingshot", - 1706: "jetform", - 1707: "vdmplay", - 1708: "gat-lmd", - 1709: "centra", - 1710: "impera", - 1711: "pptconference", - 1712: "registrar", - 1713: "conferencetalk", - 1714: "sesi-lm", - 1715: "houdini-lm", - 1716: "xmsg", - 1717: "fj-hdnet", - 1718: "h323gatedisc", - 1719: "h323gatestat", - 1720: "h323hostcall", - 1721: "caicci", - 1722: "hks-lm", - 1723: "pptp", - 1724: "csbphonemaster", - 1725: "iden-ralp", - 1726: "iberiagames", - 1727: "winddx", - 1728: "telindus", - 1729: "citynl", - 1730: "roketz", - 1731: "msiccp", - 1732: "proxim", - 1733: "siipat", - 1734: "cambertx-lm", - 1735: "privatechat", - 1736: "street-stream", - 1737: "ultimad", - 1738: "gamegen1", - 1739: "webaccess", - 1740: "encore", - 1741: "cisco-net-mgmt", - 1742: "3Com-nsd", - 1743: "cinegrfx-lm", - 1744: "ncpm-ft", - 1745: "remote-winsock", - 1746: "ftrapid-1", - 1747: "ftrapid-2", - 1748: "oracle-em1", - 1749: "aspen-services", - 1750: "sslp", - 1751: "swiftnet", - 1752: "lofr-lm", - 1754: "oracle-em2", - 1755: "ms-streaming", - 1756: "capfast-lmd", - 1757: "cnhrp", - 1758: "tftp-mcast", - 1759: "spss-lm", - 1760: "www-ldap-gw", - 1761: "cft-0", - 1762: "cft-1", - 1763: "cft-2", - 1764: "cft-3", - 1765: "cft-4", - 1766: "cft-5", - 1767: "cft-6", - 1768: "cft-7", - 1769: "bmc-net-adm", - 1770: "bmc-net-svc", - 1771: "vaultbase", - 1772: "essweb-gw", - 1773: "kmscontrol", - 1774: "global-dtserv", - 1776: "femis", - 1777: "powerguardian", - 1778: "prodigy-intrnet", - 1779: "pharmasoft", - 1780: "dpkeyserv", - 1781: "answersoft-lm", - 1782: "hp-hcip", - 1784: "finle-lm", - 1785: "windlm", - 1786: "funk-logger", - 1787: "funk-license", - 1788: "psmond", - 1789: "hello", - 1790: "nmsp", - 1791: "ea1", - 1792: "ibm-dt-2", - 1793: "rsc-robot", - 1794: "cera-bcm", - 1795: "dpi-proxy", - 1796: "vocaltec-admin", - 1797: "uma", - 1798: "etp", - 1799: "netrisk", - 1800: "ansys-lm", - 1801: "msmq", - 1802: "concomp1", - 1803: "hp-hcip-gwy", - 1804: "enl", - 1805: "enl-name", - 1806: "musiconline", - 1807: "fhsp", - 1808: "oracle-vp2", - 1809: "oracle-vp1", - 1810: "jerand-lm", - 1811: "scientia-sdb", - 1812: "radius", - 1813: "radius-acct", - 1814: "tdp-suite", - 1815: "mmpft", - 1816: "harp", - 1817: "rkb-oscs", - 1818: "etftp", - 1819: "plato-lm", - 1820: "mcagent", - 1821: "donnyworld", - 1822: "es-elmd", - 1823: "unisys-lm", - 1824: "metrics-pas", - 1825: "direcpc-video", - 1826: "ardt", - 1827: "asi", - 1828: "itm-mcell-u", - 1829: "optika-emedia", - 1830: "net8-cman", - 1831: "myrtle", - 1832: "tht-treasure", - 1833: "udpradio", - 1834: "ardusuni", - 1835: "ardusmul", - 1836: "ste-smsc", - 1837: "csoft1", - 1838: "talnet", - 1839: "netopia-vo1", - 1840: "netopia-vo2", - 1841: "netopia-vo3", - 1842: "netopia-vo4", - 1843: "netopia-vo5", - 1844: "direcpc-dll", - 1845: "altalink", - 1846: "tunstall-pnc", - 1847: "slp-notify", - 1848: "fjdocdist", - 1849: "alpha-sms", - 1850: "gsi", - 1851: "ctcd", - 1852: "virtual-time", - 1853: "vids-avtp", - 1854: "buddy-draw", - 1855: "fiorano-rtrsvc", - 1856: "fiorano-msgsvc", - 1857: "datacaptor", - 1858: "privateark", - 1859: "gammafetchsvr", - 1860: "sunscalar-svc", - 1861: "lecroy-vicp", - 1862: "mysql-cm-agent", - 1863: "msnp", - 1864: "paradym-31port", - 1865: "entp", - 1866: "swrmi", - 1867: "udrive", - 1868: "viziblebrowser", - 1869: "transact", - 1870: "sunscalar-dns", - 1871: "canocentral0", - 1872: "canocentral1", - 1873: "fjmpjps", - 1874: "fjswapsnp", - 1875: "westell-stats", - 1876: "ewcappsrv", - 1877: "hp-webqosdb", - 1878: "drmsmc", - 1879: "nettgain-nms", - 1880: "vsat-control", - 1881: "ibm-mqseries2", - 1882: "ecsqdmn", - 1883: "mqtt", - 1884: "idmaps", - 1885: "vrtstrapserver", - 1886: "leoip", - 1887: "filex-lport", - 1888: "ncconfig", - 1889: "unify-adapter", - 1890: "wilkenlistener", - 1891: "childkey-notif", - 1892: "childkey-ctrl", - 1893: "elad", - 1894: "o2server-port", - 1896: "b-novative-ls", - 1897: "metaagent", - 1898: "cymtec-port", - 1899: "mc2studios", - 1900: "ssdp", - 1901: "fjicl-tep-a", - 1902: "fjicl-tep-b", - 1903: "linkname", - 1904: "fjicl-tep-c", - 1905: "sugp", - 1906: "tpmd", - 1907: "intrastar", - 1908: "dawn", - 1909: "global-wlink", - 1910: "ultrabac", - 1911: "mtp", - 1912: "rhp-iibp", - 1913: "armadp", - 1914: "elm-momentum", - 1915: "facelink", - 1916: "persona", - 1917: "noagent", - 1918: "can-nds", - 1919: "can-dch", - 1920: "can-ferret", - 1921: "noadmin", - 1922: "tapestry", - 1923: "spice", - 1924: "xiip", - 1925: "discovery-port", - 1926: "egs", - 1927: "videte-cipc", - 1928: "emsd-port", - 1929: "bandwiz-system", - 1930: "driveappserver", - 1931: "amdsched", - 1932: "ctt-broker", - 1933: "xmapi", - 1934: "xaapi", - 1935: "macromedia-fcs", - 1936: "jetcmeserver", - 1937: "jwserver", - 1938: "jwclient", - 1939: "jvserver", - 1940: "jvclient", - 1941: "dic-aida", - 1942: "res", - 1943: "beeyond-media", - 1944: "close-combat", - 1945: "dialogic-elmd", - 1946: "tekpls", - 1947: "sentinelsrm", - 1948: "eye2eye", - 1949: "ismaeasdaqlive", - 1950: "ismaeasdaqtest", - 1951: "bcs-lmserver", - 1952: "mpnjsc", - 1953: "rapidbase", - 1954: "abr-api", - 1955: "abr-secure", - 1956: "vrtl-vmf-ds", - 1957: "unix-status", - 1958: "dxadmind", - 1959: "simp-all", - 1960: "nasmanager", - 1961: "bts-appserver", - 1962: "biap-mp", - 1963: "webmachine", - 1964: "solid-e-engine", - 1965: "tivoli-npm", - 1966: "slush", - 1967: "sns-quote", - 1968: "lipsinc", - 1969: "lipsinc1", - 1970: "netop-rc", - 1971: "netop-school", - 1972: "intersys-cache", - 1973: "dlsrap", - 1974: "drp", - 1975: "tcoflashagent", - 1976: "tcoregagent", - 1977: "tcoaddressbook", - 1978: "unisql", - 1979: "unisql-java", - 1980: "pearldoc-xact", - 1981: "p2pq", - 1982: "estamp", - 1983: "lhtp", - 1984: "bb", - 1985: "hsrp", - 1986: "licensedaemon", - 1987: "tr-rsrb-p1", - 1988: "tr-rsrb-p2", - 1989: "tr-rsrb-p3", - 1990: "stun-p1", - 1991: "stun-p2", - 1992: "stun-p3", - 1993: "snmp-tcp-port", - 1994: "stun-port", - 1995: "perf-port", - 1996: "tr-rsrb-port", - 1997: "gdp-port", - 1998: "x25-svc-port", - 1999: "tcp-id-port", - 2000: "cisco-sccp", - 2001: "wizard", - 2002: "globe", - 2003: "brutus", - 2004: "emce", - 2005: "oracle", - 2006: "raid-cd", - 2007: "raid-am", - 2008: "terminaldb", - 2009: "whosockami", - 2010: "pipe-server", - 2011: "servserv", - 2012: "raid-ac", - 2013: "raid-cd", - 2014: "raid-sf", - 2015: "raid-cs", - 2016: "bootserver", - 2017: "bootclient", - 2018: "rellpack", - 2019: "about", - 2020: "xinupageserver", - 2021: "xinuexpansion1", - 2022: "xinuexpansion2", - 2023: "xinuexpansion3", - 2024: "xinuexpansion4", - 2025: "xribs", - 2026: "scrabble", - 2027: "shadowserver", - 2028: "submitserver", - 2029: "hsrpv6", - 2030: "device2", - 2031: "mobrien-chat", - 2032: "blackboard", - 2033: "glogger", - 2034: "scoremgr", - 2035: "imsldoc", - 2036: "e-dpnet", - 2037: "applus", - 2038: "objectmanager", - 2039: "prizma", - 2040: "lam", - 2041: "interbase", - 2042: "isis", - 2043: "isis-bcast", - 2044: "rimsl", - 2045: "cdfunc", - 2046: "sdfunc", - 2047: "dls", - 2048: "dls-monitor", - 2049: "shilp", - 2050: "av-emb-config", - 2051: "epnsdp", - 2052: "clearvisn", - 2053: "lot105-ds-upd", - 2054: "weblogin", - 2055: "iop", - 2056: "omnisky", - 2057: "rich-cp", - 2058: "newwavesearch", - 2059: "bmc-messaging", - 2060: "teleniumdaemon", - 2061: "netmount", - 2062: "icg-swp", - 2063: "icg-bridge", - 2064: "icg-iprelay", - 2065: "dlsrpn", - 2066: "aura", - 2067: "dlswpn", - 2068: "avauthsrvprtcl", - 2069: "event-port", - 2070: "ah-esp-encap", - 2071: "acp-port", - 2072: "msync", - 2073: "gxs-data-port", - 2074: "vrtl-vmf-sa", - 2075: "newlixengine", - 2076: "newlixconfig", - 2077: "tsrmagt", - 2078: "tpcsrvr", - 2079: "idware-router", - 2080: "autodesk-nlm", - 2081: "kme-trap-port", - 2082: "infowave", - 2083: "radsec", - 2084: "sunclustergeo", - 2085: "ada-cip", - 2086: "gnunet", - 2087: "eli", - 2088: "ip-blf", - 2089: "sep", - 2090: "lrp", - 2091: "prp", - 2092: "descent3", - 2093: "nbx-cc", - 2094: "nbx-au", - 2095: "nbx-ser", - 2096: "nbx-dir", - 2097: "jetformpreview", - 2098: "dialog-port", - 2099: "h2250-annex-g", - 2100: "amiganetfs", - 2101: "rtcm-sc104", - 2102: "zephyr-srv", - 2103: "zephyr-clt", - 2104: "zephyr-hm", - 2105: "minipay", - 2106: "mzap", - 2107: "bintec-admin", - 2108: "comcam", - 2109: "ergolight", - 2110: "umsp", - 2111: "dsatp", - 2112: "idonix-metanet", - 2113: "hsl-storm", - 2114: "newheights", - 2115: "kdm", - 2116: "ccowcmr", - 2117: "mentaclient", - 2118: "mentaserver", - 2119: "gsigatekeeper", - 2120: "qencp", - 2121: "scientia-ssdb", - 2122: "caupc-remote", - 2123: "gtp-control", - 2124: "elatelink", - 2125: "lockstep", - 2126: "pktcable-cops", - 2127: "index-pc-wb", - 2128: "net-steward", - 2129: "cs-live", - 2130: "xds", - 2131: "avantageb2b", - 2132: "solera-epmap", - 2133: "zymed-zpp", - 2134: "avenue", - 2135: "gris", - 2136: "appworxsrv", - 2137: "connect", - 2138: "unbind-cluster", - 2139: "ias-auth", - 2140: "ias-reg", - 2141: "ias-admind", - 2142: "tdmoip", - 2143: "lv-jc", - 2144: "lv-ffx", - 2145: "lv-pici", - 2146: "lv-not", - 2147: "lv-auth", - 2148: "veritas-ucl", - 2149: "acptsys", - 2150: "dynamic3d", - 2151: "docent", - 2152: "gtp-user", - 2153: "ctlptc", - 2154: "stdptc", - 2155: "brdptc", - 2156: "trp", - 2157: "xnds", - 2158: "touchnetplus", - 2159: "gdbremote", - 2160: "apc-2160", - 2161: "apc-2161", - 2162: "navisphere", - 2163: "navisphere-sec", - 2164: "ddns-v3", - 2165: "x-bone-api", - 2166: "iwserver", - 2167: "raw-serial", - 2168: "easy-soft-mux", - 2169: "brain", - 2170: "eyetv", - 2171: "msfw-storage", - 2172: "msfw-s-storage", - 2173: "msfw-replica", - 2174: "msfw-array", - 2175: "airsync", - 2176: "rapi", - 2177: "qwave", - 2178: "bitspeer", - 2179: "vmrdp", - 2180: "mc-gt-srv", - 2181: "eforward", - 2182: "cgn-stat", - 2183: "cgn-config", - 2184: "nvd", - 2185: "onbase-dds", - 2186: "gtaua", - 2187: "ssmd", - 2190: "tivoconnect", - 2191: "tvbus", - 2192: "asdis", - 2193: "drwcs", - 2197: "mnp-exchange", - 2198: "onehome-remote", - 2199: "onehome-help", - 2200: "ici", - 2201: "ats", - 2202: "imtc-map", - 2203: "b2-runtime", - 2204: "b2-license", - 2205: "jps", - 2206: "hpocbus", - 2207: "hpssd", - 2208: "hpiod", - 2209: "rimf-ps", - 2210: "noaaport", - 2211: "emwin", - 2212: "leecoposserver", - 2213: "kali", - 2214: "rpi", - 2215: "ipcore", - 2216: "vtu-comms", - 2217: "gotodevice", - 2218: "bounzza", - 2219: "netiq-ncap", - 2220: "netiq", - 2221: "ethernet-ip-s", - 2222: "EtherNet-IP-1", - 2223: "rockwell-csp2", - 2224: "efi-mg", - 2226: "di-drm", - 2227: "di-msg", - 2228: "ehome-ms", - 2229: "datalens", - 2230: "queueadm", - 2231: "wimaxasncp", - 2232: "ivs-video", - 2233: "infocrypt", - 2234: "directplay", - 2235: "sercomm-wlink", - 2236: "nani", - 2237: "optech-port1-lm", - 2238: "aviva-sna", - 2239: "imagequery", - 2240: "recipe", - 2241: "ivsd", - 2242: "foliocorp", - 2243: "magicom", - 2244: "nmsserver", - 2245: "hao", - 2246: "pc-mta-addrmap", - 2247: "antidotemgrsvr", - 2248: "ums", - 2249: "rfmp", - 2250: "remote-collab", - 2251: "dif-port", - 2252: "njenet-ssl", - 2253: "dtv-chan-req", - 2254: "seispoc", - 2255: "vrtp", - 2256: "pcc-mfp", - 2257: "simple-tx-rx", - 2258: "rcts", - 2260: "apc-2260", - 2261: "comotionmaster", - 2262: "comotionback", - 2263: "ecwcfg", - 2264: "apx500api-1", - 2265: "apx500api-2", - 2266: "mfserver", - 2267: "ontobroker", - 2268: "amt", - 2269: "mikey", - 2270: "starschool", - 2271: "mmcals", - 2272: "mmcal", - 2273: "mysql-im", - 2274: "pcttunnell", - 2275: "ibridge-data", - 2276: "ibridge-mgmt", - 2277: "bluectrlproxy", - 2278: "s3db", - 2279: "xmquery", - 2280: "lnvpoller", - 2281: "lnvconsole", - 2282: "lnvalarm", - 2283: "lnvstatus", - 2284: "lnvmaps", - 2285: "lnvmailmon", - 2286: "nas-metering", - 2287: "dna", - 2288: "netml", - 2289: "dict-lookup", - 2290: "sonus-logging", - 2291: "eapsp", - 2292: "mib-streaming", - 2293: "npdbgmngr", - 2294: "konshus-lm", - 2295: "advant-lm", - 2296: "theta-lm", - 2297: "d2k-datamover1", - 2298: "d2k-datamover2", - 2299: "pc-telecommute", - 2300: "cvmmon", - 2301: "cpq-wbem", - 2302: "binderysupport", - 2303: "proxy-gateway", - 2304: "attachmate-uts", - 2305: "mt-scaleserver", - 2306: "tappi-boxnet", - 2307: "pehelp", - 2308: "sdhelp", - 2309: "sdserver", - 2310: "sdclient", - 2311: "messageservice", - 2312: "wanscaler", - 2313: "iapp", - 2314: "cr-websystems", - 2315: "precise-sft", - 2316: "sent-lm", - 2317: "attachmate-g32", - 2318: "cadencecontrol", - 2319: "infolibria", - 2320: "siebel-ns", - 2321: "rdlap", - 2322: "ofsd", - 2323: "3d-nfsd", - 2324: "cosmocall", - 2325: "ansysli", - 2326: "idcp", - 2327: "xingcsm", - 2328: "netrix-sftm", - 2329: "nvd", - 2330: "tscchat", - 2331: "agentview", - 2332: "rcc-host", - 2333: "snapp", - 2334: "ace-client", - 2335: "ace-proxy", - 2336: "appleugcontrol", - 2337: "ideesrv", - 2338: "norton-lambert", - 2339: "3com-webview", - 2340: "wrs-registry", - 2341: "xiostatus", - 2342: "manage-exec", - 2343: "nati-logos", - 2344: "fcmsys", - 2345: "dbm", - 2346: "redstorm-join", - 2347: "redstorm-find", - 2348: "redstorm-info", - 2349: "redstorm-diag", - 2350: "psbserver", - 2351: "psrserver", - 2352: "pslserver", - 2353: "pspserver", - 2354: "psprserver", - 2355: "psdbserver", - 2356: "gxtelmd", - 2357: "unihub-server", - 2358: "futrix", - 2359: "flukeserver", - 2360: "nexstorindltd", - 2361: "tl1", - 2362: "digiman", - 2363: "mediacntrlnfsd", - 2364: "oi-2000", - 2365: "dbref", - 2366: "qip-login", - 2367: "service-ctrl", - 2368: "opentable", - 2370: "l3-hbmon", - 2372: "lanmessenger", - 2381: "compaq-https", - 2382: "ms-olap3", - 2383: "ms-olap4", - 2384: "sd-capacity", - 2385: "sd-data", - 2386: "virtualtape", - 2387: "vsamredirector", - 2388: "mynahautostart", - 2389: "ovsessionmgr", - 2390: "rsmtp", - 2391: "3com-net-mgmt", - 2392: "tacticalauth", - 2393: "ms-olap1", - 2394: "ms-olap2", - 2395: "lan900-remote", - 2396: "wusage", - 2397: "ncl", - 2398: "orbiter", - 2399: "fmpro-fdal", - 2400: "opequus-server", - 2401: "cvspserver", - 2402: "taskmaster2000", - 2403: "taskmaster2000", - 2404: "iec-104", - 2405: "trc-netpoll", - 2406: "jediserver", - 2407: "orion", - 2409: "sns-protocol", - 2410: "vrts-registry", - 2411: "netwave-ap-mgmt", - 2412: "cdn", - 2413: "orion-rmi-reg", - 2414: "beeyond", - 2415: "codima-rtp", - 2416: "rmtserver", - 2417: "composit-server", - 2418: "cas", - 2419: "attachmate-s2s", - 2420: "dslremote-mgmt", - 2421: "g-talk", - 2422: "crmsbits", - 2423: "rnrp", - 2424: "kofax-svr", - 2425: "fjitsuappmgr", - 2426: "vcmp", - 2427: "mgcp-gateway", - 2428: "ott", - 2429: "ft-role", - 2430: "venus", - 2431: "venus-se", - 2432: "codasrv", - 2433: "codasrv-se", - 2434: "pxc-epmap", - 2435: "optilogic", - 2436: "topx", - 2437: "unicontrol", - 2438: "msp", - 2439: "sybasedbsynch", - 2440: "spearway", - 2441: "pvsw-inet", - 2442: "netangel", - 2443: "powerclientcsf", - 2444: "btpp2sectrans", - 2445: "dtn1", - 2446: "bues-service", - 2447: "ovwdb", - 2448: "hpppssvr", - 2449: "ratl", - 2450: "netadmin", - 2451: "netchat", - 2452: "snifferclient", - 2453: "madge-ltd", - 2454: "indx-dds", - 2455: "wago-io-system", - 2456: "altav-remmgt", - 2457: "rapido-ip", - 2458: "griffin", - 2459: "community", - 2460: "ms-theater", - 2461: "qadmifoper", - 2462: "qadmifevent", - 2463: "lsi-raid-mgmt", - 2464: "direcpc-si", - 2465: "lbm", - 2466: "lbf", - 2467: "high-criteria", - 2468: "qip-msgd", - 2469: "mti-tcs-comm", - 2470: "taskman-port", - 2471: "seaodbc", - 2472: "c3", - 2473: "aker-cdp", - 2474: "vitalanalysis", - 2475: "ace-server", - 2476: "ace-svr-prop", - 2477: "ssm-cvs", - 2478: "ssm-cssps", - 2479: "ssm-els", - 2480: "powerexchange", - 2481: "giop", - 2482: "giop-ssl", - 2483: "ttc", - 2484: "ttc-ssl", - 2485: "netobjects1", - 2486: "netobjects2", - 2487: "pns", - 2488: "moy-corp", - 2489: "tsilb", - 2490: "qip-qdhcp", - 2491: "conclave-cpp", - 2492: "groove", - 2493: "talarian-mqs", - 2494: "bmc-ar", - 2495: "fast-rem-serv", - 2496: "dirgis", - 2497: "quaddb", - 2498: "odn-castraq", - 2499: "unicontrol", - 2500: "rtsserv", - 2501: "rtsclient", - 2502: "kentrox-prot", - 2503: "nms-dpnss", - 2504: "wlbs", - 2505: "ppcontrol", - 2506: "jbroker", - 2507: "spock", - 2508: "jdatastore", - 2509: "fjmpss", - 2510: "fjappmgrbulk", - 2511: "metastorm", - 2512: "citrixima", - 2513: "citrixadmin", - 2514: "facsys-ntp", - 2515: "facsys-router", - 2516: "maincontrol", - 2517: "call-sig-trans", - 2518: "willy", - 2519: "globmsgsvc", - 2520: "pvsw", - 2521: "adaptecmgr", - 2522: "windb", - 2523: "qke-llc-v3", - 2524: "optiwave-lm", - 2525: "ms-v-worlds", - 2526: "ema-sent-lm", - 2527: "iqserver", - 2528: "ncr-ccl", - 2529: "utsftp", - 2530: "vrcommerce", - 2531: "ito-e-gui", - 2532: "ovtopmd", - 2533: "snifferserver", - 2534: "combox-web-acc", - 2535: "madcap", - 2536: "btpp2audctr1", - 2537: "upgrade", - 2538: "vnwk-prapi", - 2539: "vsiadmin", - 2540: "lonworks", - 2541: "lonworks2", - 2542: "udrawgraph", - 2543: "reftek", - 2544: "novell-zen", - 2545: "sis-emt", - 2546: "vytalvaultbrtp", - 2547: "vytalvaultvsmp", - 2548: "vytalvaultpipe", - 2549: "ipass", - 2550: "ads", - 2551: "isg-uda-server", - 2552: "call-logging", - 2553: "efidiningport", - 2554: "vcnet-link-v10", - 2555: "compaq-wcp", - 2556: "nicetec-nmsvc", - 2557: "nicetec-mgmt", - 2558: "pclemultimedia", - 2559: "lstp", - 2560: "labrat", - 2561: "mosaixcc", - 2562: "delibo", - 2563: "cti-redwood", - 2564: "hp-3000-telnet", - 2565: "coord-svr", - 2566: "pcs-pcw", - 2567: "clp", - 2568: "spamtrap", - 2569: "sonuscallsig", - 2570: "hs-port", - 2571: "cecsvc", - 2572: "ibp", - 2573: "trustestablish", - 2574: "blockade-bpsp", - 2575: "hl7", - 2576: "tclprodebugger", - 2577: "scipticslsrvr", - 2578: "rvs-isdn-dcp", - 2579: "mpfoncl", - 2580: "tributary", - 2581: "argis-te", - 2582: "argis-ds", - 2583: "mon", - 2584: "cyaserv", - 2585: "netx-server", - 2586: "netx-agent", - 2587: "masc", - 2588: "privilege", - 2589: "quartus-tcl", - 2590: "idotdist", - 2591: "maytagshuffle", - 2592: "netrek", - 2593: "mns-mail", - 2594: "dts", - 2595: "worldfusion1", - 2596: "worldfusion2", - 2597: "homesteadglory", - 2598: "citriximaclient", - 2599: "snapd", - 2600: "hpstgmgr", - 2601: "discp-client", - 2602: "discp-server", - 2603: "servicemeter", - 2604: "nsc-ccs", - 2605: "nsc-posa", - 2606: "netmon", - 2607: "connection", - 2608: "wag-service", - 2609: "system-monitor", - 2610: "versa-tek", - 2611: "lionhead", - 2612: "qpasa-agent", - 2613: "smntubootstrap", - 2614: "neveroffline", - 2615: "firepower", - 2616: "appswitch-emp", - 2617: "cmadmin", - 2618: "priority-e-com", - 2619: "bruce", - 2620: "lpsrecommender", - 2621: "miles-apart", - 2622: "metricadbc", - 2623: "lmdp", - 2624: "aria", - 2625: "blwnkl-port", - 2626: "gbjd816", - 2627: "moshebeeri", - 2628: "dict", - 2629: "sitaraserver", - 2630: "sitaramgmt", - 2631: "sitaradir", - 2632: "irdg-post", - 2633: "interintelli", - 2634: "pk-electronics", - 2635: "backburner", - 2636: "solve", - 2637: "imdocsvc", - 2638: "sybaseanywhere", - 2639: "aminet", - 2640: "ami-control", - 2641: "hdl-srv", - 2642: "tragic", - 2643: "gte-samp", - 2644: "travsoft-ipx-t", - 2645: "novell-ipx-cmd", - 2646: "and-lm", - 2647: "syncserver", - 2648: "upsnotifyprot", - 2649: "vpsipport", - 2650: "eristwoguns", - 2651: "ebinsite", - 2652: "interpathpanel", - 2653: "sonus", - 2654: "corel-vncadmin", - 2655: "unglue", - 2656: "kana", - 2657: "sns-dispatcher", - 2658: "sns-admin", - 2659: "sns-query", - 2660: "gcmonitor", - 2661: "olhost", - 2662: "bintec-capi", - 2663: "bintec-tapi", - 2664: "patrol-mq-gm", - 2665: "patrol-mq-nm", - 2666: "extensis", - 2667: "alarm-clock-s", - 2668: "alarm-clock-c", - 2669: "toad", - 2670: "tve-announce", - 2671: "newlixreg", - 2672: "nhserver", - 2673: "firstcall42", - 2674: "ewnn", - 2675: "ttc-etap", - 2676: "simslink", - 2677: "gadgetgate1way", - 2678: "gadgetgate2way", - 2679: "syncserverssl", - 2680: "pxc-sapxom", - 2681: "mpnjsomb", - 2683: "ncdloadbalance", - 2684: "mpnjsosv", - 2685: "mpnjsocl", - 2686: "mpnjsomg", - 2687: "pq-lic-mgmt", - 2688: "md-cg-http", - 2689: "fastlynx", - 2690: "hp-nnm-data", - 2691: "itinternet", - 2692: "admins-lms", - 2694: "pwrsevent", - 2695: "vspread", - 2696: "unifyadmin", - 2697: "oce-snmp-trap", - 2698: "mck-ivpip", - 2699: "csoft-plusclnt", - 2700: "tqdata", - 2701: "sms-rcinfo", - 2702: "sms-xfer", - 2703: "sms-chat", - 2704: "sms-remctrl", - 2705: "sds-admin", - 2706: "ncdmirroring", - 2707: "emcsymapiport", - 2708: "banyan-net", - 2709: "supermon", - 2710: "sso-service", - 2711: "sso-control", - 2712: "aocp", - 2713: "raventbs", - 2714: "raventdm", - 2715: "hpstgmgr2", - 2716: "inova-ip-disco", - 2717: "pn-requester", - 2718: "pn-requester2", - 2719: "scan-change", - 2720: "wkars", - 2721: "smart-diagnose", - 2722: "proactivesrvr", - 2723: "watchdog-nt", - 2724: "qotps", - 2725: "msolap-ptp2", - 2726: "tams", - 2727: "mgcp-callagent", - 2728: "sqdr", - 2729: "tcim-control", - 2730: "nec-raidplus", - 2731: "fyre-messanger", - 2732: "g5m", - 2733: "signet-ctf", - 2734: "ccs-software", - 2735: "netiq-mc", - 2736: "radwiz-nms-srv", - 2737: "srp-feedback", - 2738: "ndl-tcp-ois-gw", - 2739: "tn-timing", - 2740: "alarm", - 2741: "tsb", - 2742: "tsb2", - 2743: "murx", - 2744: "honyaku", - 2745: "urbisnet", - 2746: "cpudpencap", - 2747: "fjippol-swrly", - 2748: "fjippol-polsvr", - 2749: "fjippol-cnsl", - 2750: "fjippol-port1", - 2751: "fjippol-port2", - 2752: "rsisysaccess", - 2753: "de-spot", - 2754: "apollo-cc", - 2755: "expresspay", - 2756: "simplement-tie", - 2757: "cnrp", - 2758: "apollo-status", - 2759: "apollo-gms", - 2760: "sabams", - 2761: "dicom-iscl", - 2762: "dicom-tls", - 2763: "desktop-dna", - 2764: "data-insurance", - 2765: "qip-audup", - 2766: "compaq-scp", - 2767: "uadtc", - 2768: "uacs", - 2769: "exce", - 2770: "veronica", - 2771: "vergencecm", - 2772: "auris", - 2773: "rbakcup1", - 2774: "rbakcup2", - 2775: "smpp", - 2776: "ridgeway1", - 2777: "ridgeway2", - 2778: "gwen-sonya", - 2779: "lbc-sync", - 2780: "lbc-control", - 2781: "whosells", - 2782: "everydayrc", - 2783: "aises", - 2784: "www-dev", - 2785: "aic-np", - 2786: "aic-oncrpc", - 2787: "piccolo", - 2788: "fryeserv", - 2789: "media-agent", - 2790: "plgproxy", - 2791: "mtport-regist", - 2792: "f5-globalsite", - 2793: "initlsmsad", - 2795: "livestats", - 2796: "ac-tech", - 2797: "esp-encap", - 2798: "tmesis-upshot", - 2799: "icon-discover", - 2800: "acc-raid", - 2801: "igcp", - 2802: "veritas-udp1", - 2803: "btprjctrl", - 2804: "dvr-esm", - 2805: "wta-wsp-s", - 2806: "cspuni", - 2807: "cspmulti", - 2808: "j-lan-p", - 2809: "corbaloc", - 2810: "netsteward", - 2811: "gsiftp", - 2812: "atmtcp", - 2813: "llm-pass", - 2814: "llm-csv", - 2815: "lbc-measure", - 2816: "lbc-watchdog", - 2817: "nmsigport", - 2818: "rmlnk", - 2819: "fc-faultnotify", - 2820: "univision", - 2821: "vrts-at-port", - 2822: "ka0wuc", - 2823: "cqg-netlan", - 2824: "cqg-netlan-1", - 2826: "slc-systemlog", - 2827: "slc-ctrlrloops", - 2828: "itm-lm", - 2829: "silkp1", - 2830: "silkp2", - 2831: "silkp3", - 2832: "silkp4", - 2833: "glishd", - 2834: "evtp", - 2835: "evtp-data", - 2836: "catalyst", - 2837: "repliweb", - 2838: "starbot", - 2839: "nmsigport", - 2840: "l3-exprt", - 2841: "l3-ranger", - 2842: "l3-hawk", - 2843: "pdnet", - 2844: "bpcp-poll", - 2845: "bpcp-trap", - 2846: "aimpp-hello", - 2847: "aimpp-port-req", - 2848: "amt-blc-port", - 2849: "fxp", - 2850: "metaconsole", - 2851: "webemshttp", - 2852: "bears-01", - 2853: "ispipes", - 2854: "infomover", - 2856: "cesdinv", - 2857: "simctlp", - 2858: "ecnp", - 2859: "activememory", - 2860: "dialpad-voice1", - 2861: "dialpad-voice2", - 2862: "ttg-protocol", - 2863: "sonardata", - 2864: "astromed-main", - 2865: "pit-vpn", - 2866: "iwlistener", - 2867: "esps-portal", - 2868: "npep-messaging", - 2869: "icslap", - 2870: "daishi", - 2871: "msi-selectplay", - 2872: "radix", - 2874: "dxmessagebase1", - 2875: "dxmessagebase2", - 2876: "sps-tunnel", - 2877: "bluelance", - 2878: "aap", - 2879: "ucentric-ds", - 2880: "synapse", - 2881: "ndsp", - 2882: "ndtp", - 2883: "ndnp", - 2884: "flashmsg", - 2885: "topflow", - 2886: "responselogic", - 2887: "aironetddp", - 2888: "spcsdlobby", - 2889: "rsom", - 2890: "cspclmulti", - 2891: "cinegrfx-elmd", - 2892: "snifferdata", - 2893: "vseconnector", - 2894: "abacus-remote", - 2895: "natuslink", - 2896: "ecovisiong6-1", - 2897: "citrix-rtmp", - 2898: "appliance-cfg", - 2899: "powergemplus", - 2900: "quicksuite", - 2901: "allstorcns", - 2902: "netaspi", - 2903: "suitcase", - 2904: "m2ua", - 2906: "caller9", - 2907: "webmethods-b2b", - 2908: "mao", - 2909: "funk-dialout", - 2910: "tdaccess", - 2911: "blockade", - 2912: "epicon", - 2913: "boosterware", - 2914: "gamelobby", - 2915: "tksocket", - 2916: "elvin-server", - 2917: "elvin-client", - 2918: "kastenchasepad", - 2919: "roboer", - 2920: "roboeda", - 2921: "cesdcdman", - 2922: "cesdcdtrn", - 2923: "wta-wsp-wtp-s", - 2924: "precise-vip", - 2926: "mobile-file-dl", - 2927: "unimobilectrl", - 2928: "redstone-cpss", - 2929: "amx-webadmin", - 2930: "amx-weblinx", - 2931: "circle-x", - 2932: "incp", - 2933: "4-tieropmgw", - 2934: "4-tieropmcli", - 2935: "qtp", - 2936: "otpatch", - 2937: "pnaconsult-lm", - 2938: "sm-pas-1", - 2939: "sm-pas-2", - 2940: "sm-pas-3", - 2941: "sm-pas-4", - 2942: "sm-pas-5", - 2943: "ttnrepository", - 2944: "megaco-h248", - 2945: "h248-binary", - 2946: "fjsvmpor", - 2947: "gpsd", - 2948: "wap-push", - 2949: "wap-pushsecure", - 2950: "esip", - 2951: "ottp", - 2952: "mpfwsas", - 2953: "ovalarmsrv", - 2954: "ovalarmsrv-cmd", - 2955: "csnotify", - 2956: "ovrimosdbman", - 2957: "jmact5", - 2958: "jmact6", - 2959: "rmopagt", - 2960: "dfoxserver", - 2961: "boldsoft-lm", - 2962: "iph-policy-cli", - 2963: "iph-policy-adm", - 2964: "bullant-srap", - 2965: "bullant-rap", - 2966: "idp-infotrieve", - 2967: "ssc-agent", - 2968: "enpp", - 2969: "essp", - 2970: "index-net", - 2971: "netclip", - 2972: "pmsm-webrctl", - 2973: "svnetworks", - 2974: "signal", - 2975: "fjmpcm", - 2976: "cns-srv-port", - 2977: "ttc-etap-ns", - 2978: "ttc-etap-ds", - 2979: "h263-video", - 2980: "wimd", - 2981: "mylxamport", - 2982: "iwb-whiteboard", - 2983: "netplan", - 2984: "hpidsadmin", - 2985: "hpidsagent", - 2986: "stonefalls", - 2987: "identify", - 2988: "hippad", - 2989: "zarkov", - 2990: "boscap", - 2991: "wkstn-mon", - 2992: "avenyo", - 2993: "veritas-vis1", - 2994: "veritas-vis2", - 2995: "idrs", - 2996: "vsixml", - 2997: "rebol", - 2998: "realsecure", - 2999: "remoteware-un", - 3000: "hbci", - 3002: "exlm-agent", - 3003: "cgms", - 3004: "csoftragent", - 3005: "geniuslm", - 3006: "ii-admin", - 3007: "lotusmtap", - 3008: "midnight-tech", - 3009: "pxc-ntfy", - 3010: "ping-pong", - 3011: "trusted-web", - 3012: "twsdss", - 3013: "gilatskysurfer", - 3014: "broker-service", - 3015: "nati-dstp", - 3016: "notify-srvr", - 3017: "event-listener", - 3018: "srvc-registry", - 3019: "resource-mgr", - 3020: "cifs", - 3021: "agriserver", - 3022: "csregagent", - 3023: "magicnotes", - 3024: "nds-sso", - 3025: "arepa-raft", - 3026: "agri-gateway", - 3027: "LiebDevMgmt-C", - 3028: "LiebDevMgmt-DM", - 3029: "LiebDevMgmt-A", - 3030: "arepa-cas", - 3031: "eppc", - 3032: "redwood-chat", - 3033: "pdb", - 3034: "osmosis-aeea", - 3035: "fjsv-gssagt", - 3036: "hagel-dump", - 3037: "hp-san-mgmt", - 3038: "santak-ups", - 3039: "cogitate", - 3040: "tomato-springs", - 3041: "di-traceware", - 3042: "journee", - 3043: "brp", - 3044: "epp", - 3045: "responsenet", - 3046: "di-ase", - 3047: "hlserver", - 3048: "pctrader", - 3049: "nsws", - 3050: "gds-db", - 3051: "galaxy-server", - 3052: "apc-3052", - 3053: "dsom-server", - 3054: "amt-cnf-prot", - 3055: "policyserver", - 3056: "cdl-server", - 3057: "goahead-fldup", - 3058: "videobeans", - 3059: "qsoft", - 3060: "interserver", - 3061: "cautcpd", - 3062: "ncacn-ip-tcp", - 3063: "ncadg-ip-udp", - 3064: "rprt", - 3065: "slinterbase", - 3066: "netattachsdmp", - 3067: "fjhpjp", - 3068: "ls3bcast", - 3069: "ls3", - 3070: "mgxswitch", - 3072: "csd-monitor", - 3073: "vcrp", - 3074: "xbox", - 3075: "orbix-locator", - 3076: "orbix-config", - 3077: "orbix-loc-ssl", - 3078: "orbix-cfg-ssl", - 3079: "lv-frontpanel", - 3080: "stm-pproc", - 3081: "tl1-lv", - 3082: "tl1-raw", - 3083: "tl1-telnet", - 3084: "itm-mccs", - 3085: "pcihreq", - 3086: "jdl-dbkitchen", - 3087: "asoki-sma", - 3088: "xdtp", - 3089: "ptk-alink", - 3090: "stss", - 3091: "1ci-smcs", - 3093: "rapidmq-center", - 3094: "rapidmq-reg", - 3095: "panasas", - 3096: "ndl-aps", - 3098: "umm-port", - 3099: "chmd", - 3100: "opcon-xps", - 3101: "hp-pxpib", - 3102: "slslavemon", - 3103: "autocuesmi", - 3104: "autocuetime", - 3105: "cardbox", - 3106: "cardbox-http", - 3107: "business", - 3108: "geolocate", - 3109: "personnel", - 3110: "sim-control", - 3111: "wsynch", - 3112: "ksysguard", - 3113: "cs-auth-svr", - 3114: "ccmad", - 3115: "mctet-master", - 3116: "mctet-gateway", - 3117: "mctet-jserv", - 3118: "pkagent", - 3119: "d2000kernel", - 3120: "d2000webserver", - 3122: "vtr-emulator", - 3123: "edix", - 3124: "beacon-port", - 3125: "a13-an", - 3127: "ctx-bridge", - 3128: "ndl-aas", - 3129: "netport-id", - 3130: "icpv2", - 3131: "netbookmark", - 3132: "ms-rule-engine", - 3133: "prism-deploy", - 3134: "ecp", - 3135: "peerbook-port", - 3136: "grubd", - 3137: "rtnt-1", - 3138: "rtnt-2", - 3139: "incognitorv", - 3140: "ariliamulti", - 3141: "vmodem", - 3142: "rdc-wh-eos", - 3143: "seaview", - 3144: "tarantella", - 3145: "csi-lfap", - 3146: "bears-02", - 3147: "rfio", - 3148: "nm-game-admin", - 3149: "nm-game-server", - 3150: "nm-asses-admin", - 3151: "nm-assessor", - 3152: "feitianrockey", - 3153: "s8-client-port", - 3154: "ccmrmi", - 3155: "jpegmpeg", - 3156: "indura", - 3157: "e3consultants", - 3158: "stvp", - 3159: "navegaweb-port", - 3160: "tip-app-server", - 3161: "doc1lm", - 3162: "sflm", - 3163: "res-sap", - 3164: "imprs", - 3165: "newgenpay", - 3166: "sossecollector", - 3167: "nowcontact", - 3168: "poweronnud", - 3169: "serverview-as", - 3170: "serverview-asn", - 3171: "serverview-gf", - 3172: "serverview-rm", - 3173: "serverview-icc", - 3174: "armi-server", - 3175: "t1-e1-over-ip", - 3176: "ars-master", - 3177: "phonex-port", - 3178: "radclientport", - 3179: "h2gf-w-2m", - 3180: "mc-brk-srv", - 3181: "bmcpatrolagent", - 3182: "bmcpatrolrnvu", - 3183: "cops-tls", - 3184: "apogeex-port", - 3185: "smpppd", - 3186: "iiw-port", - 3187: "odi-port", - 3188: "brcm-comm-port", - 3189: "pcle-infex", - 3190: "csvr-proxy", - 3191: "csvr-sslproxy", - 3192: "firemonrcc", - 3193: "spandataport", - 3194: "magbind", - 3195: "ncu-1", - 3196: "ncu-2", - 3197: "embrace-dp-s", - 3198: "embrace-dp-c", - 3199: "dmod-workspace", - 3200: "tick-port", - 3201: "cpq-tasksmart", - 3202: "intraintra", - 3203: "netwatcher-mon", - 3204: "netwatcher-db", - 3205: "isns", - 3206: "ironmail", - 3207: "vx-auth-port", - 3208: "pfu-prcallback", - 3209: "netwkpathengine", - 3210: "flamenco-proxy", - 3211: "avsecuremgmt", - 3212: "surveyinst", - 3213: "neon24x7", - 3214: "jmq-daemon-1", - 3215: "jmq-daemon-2", - 3216: "ferrari-foam", - 3217: "unite", - 3218: "smartpackets", - 3219: "wms-messenger", - 3220: "xnm-ssl", - 3221: "xnm-clear-text", - 3222: "glbp", - 3223: "digivote", - 3224: "aes-discovery", - 3225: "fcip-port", - 3226: "isi-irp", - 3227: "dwnmshttp", - 3228: "dwmsgserver", - 3229: "global-cd-port", - 3230: "sftdst-port", - 3231: "vidigo", - 3232: "mdtp", - 3233: "whisker", - 3234: "alchemy", - 3235: "mdap-port", - 3236: "apparenet-ts", - 3237: "apparenet-tps", - 3238: "apparenet-as", - 3239: "apparenet-ui", - 3240: "triomotion", - 3241: "sysorb", - 3242: "sdp-id-port", - 3243: "timelot", - 3244: "onesaf", - 3245: "vieo-fe", - 3246: "dvt-system", - 3247: "dvt-data", - 3248: "procos-lm", - 3249: "ssp", - 3250: "hicp", - 3251: "sysscanner", - 3252: "dhe", - 3253: "pda-data", - 3254: "pda-sys", - 3255: "semaphore", - 3256: "cpqrpm-agent", - 3257: "cpqrpm-server", - 3258: "ivecon-port", - 3259: "epncdp2", - 3260: "iscsi-target", - 3261: "winshadow", - 3262: "necp", - 3263: "ecolor-imager", - 3264: "ccmail", - 3265: "altav-tunnel", - 3266: "ns-cfg-server", - 3267: "ibm-dial-out", - 3268: "msft-gc", - 3269: "msft-gc-ssl", - 3270: "verismart", - 3271: "csoft-prev", - 3272: "user-manager", - 3273: "sxmp", - 3274: "ordinox-server", - 3275: "samd", - 3276: "maxim-asics", - 3277: "awg-proxy", - 3278: "lkcmserver", - 3279: "admind", - 3280: "vs-server", - 3281: "sysopt", - 3282: "datusorb", - 3283: "Apple Remote Desktop (Net Assistant)", - 3284: "4talk", - 3285: "plato", - 3286: "e-net", - 3287: "directvdata", - 3288: "cops", - 3289: "enpc", - 3290: "caps-lm", - 3291: "sah-lm", - 3292: "cart-o-rama", - 3293: "fg-fps", - 3294: "fg-gip", - 3295: "dyniplookup", - 3296: "rib-slm", - 3297: "cytel-lm", - 3298: "deskview", - 3299: "pdrncs", - 3302: "mcs-fastmail", - 3303: "opsession-clnt", - 3304: "opsession-srvr", - 3305: "odette-ftp", - 3306: "mysql", - 3307: "opsession-prxy", - 3308: "tns-server", - 3309: "tns-adv", - 3310: "dyna-access", - 3311: "mcns-tel-ret", - 3312: "appman-server", - 3313: "uorb", - 3314: "uohost", - 3315: "cdid", - 3316: "aicc-cmi", - 3317: "vsaiport", - 3318: "ssrip", - 3319: "sdt-lmd", - 3320: "officelink2000", - 3321: "vnsstr", - 3326: "sftu", - 3327: "bbars", - 3328: "egptlm", - 3329: "hp-device-disc", - 3330: "mcs-calypsoicf", - 3331: "mcs-messaging", - 3332: "mcs-mailsvr", - 3333: "dec-notes", - 3334: "directv-web", - 3335: "directv-soft", - 3336: "directv-tick", - 3337: "directv-catlg", - 3338: "anet-b", - 3339: "anet-l", - 3340: "anet-m", - 3341: "anet-h", - 3342: "webtie", - 3343: "ms-cluster-net", - 3344: "bnt-manager", - 3345: "influence", - 3346: "trnsprntproxy", - 3347: "phoenix-rpc", - 3348: "pangolin-laser", - 3349: "chevinservices", - 3350: "findviatv", - 3351: "btrieve", - 3352: "ssql", - 3353: "fatpipe", - 3354: "suitjd", - 3355: "ordinox-dbase", - 3356: "upnotifyps", - 3357: "adtech-test", - 3358: "mpsysrmsvr", - 3359: "wg-netforce", - 3360: "kv-server", - 3361: "kv-agent", - 3362: "dj-ilm", - 3363: "nati-vi-server", - 3364: "creativeserver", - 3365: "contentserver", - 3366: "creativepartnr", - 3372: "tip2", - 3373: "lavenir-lm", - 3374: "cluster-disc", - 3375: "vsnm-agent", - 3376: "cdbroker", - 3377: "cogsys-lm", - 3378: "wsicopy", - 3379: "socorfs", - 3380: "sns-channels", - 3381: "geneous", - 3382: "fujitsu-neat", - 3383: "esp-lm", - 3384: "hp-clic", - 3385: "qnxnetman", - 3386: "gprs-sig", - 3387: "backroomnet", - 3388: "cbserver", - 3389: "ms-wbt-server", - 3390: "dsc", - 3391: "savant", - 3392: "efi-lm", - 3393: "d2k-tapestry1", - 3394: "d2k-tapestry2", - 3395: "dyna-lm", - 3396: "printer-agent", - 3397: "cloanto-lm", - 3398: "mercantile", - 3399: "csms", - 3400: "csms2", - 3401: "filecast", - 3402: "fxaengine-net", - 3405: "nokia-ann-ch1", - 3406: "nokia-ann-ch2", - 3407: "ldap-admin", - 3408: "BESApi", - 3409: "networklens", - 3410: "networklenss", - 3411: "biolink-auth", - 3412: "xmlblaster", - 3413: "svnet", - 3414: "wip-port", - 3415: "bcinameservice", - 3416: "commandport", - 3417: "csvr", - 3418: "rnmap", - 3419: "softaudit", - 3420: "ifcp-port", - 3421: "bmap", - 3422: "rusb-sys-port", - 3423: "xtrm", - 3424: "xtrms", - 3425: "agps-port", - 3426: "arkivio", - 3427: "websphere-snmp", - 3428: "twcss", - 3429: "gcsp", - 3430: "ssdispatch", - 3431: "ndl-als", - 3432: "osdcp", - 3433: "opnet-smp", - 3434: "opencm", - 3435: "pacom", - 3436: "gc-config", - 3437: "autocueds", - 3438: "spiral-admin", - 3439: "hri-port", - 3440: "ans-console", - 3441: "connect-client", - 3442: "connect-server", - 3443: "ov-nnm-websrv", - 3444: "denali-server", - 3445: "monp", - 3446: "3comfaxrpc", - 3447: "directnet", - 3448: "dnc-port", - 3449: "hotu-chat", - 3450: "castorproxy", - 3451: "asam", - 3452: "sabp-signal", - 3453: "pscupd", - 3454: "mira", - 3455: "prsvp", - 3456: "vat", - 3457: "vat-control", - 3458: "d3winosfi", - 3459: "integral", - 3460: "edm-manager", - 3461: "edm-stager", - 3462: "edm-std-notify", - 3463: "edm-adm-notify", - 3464: "edm-mgr-sync", - 3465: "edm-mgr-cntrl", - 3466: "workflow", - 3467: "rcst", - 3468: "ttcmremotectrl", - 3469: "pluribus", - 3470: "jt400", - 3471: "jt400-ssl", - 3472: "jaugsremotec-1", - 3473: "jaugsremotec-2", - 3474: "ttntspauto", - 3475: "genisar-port", - 3476: "nppmp", - 3477: "ecomm", - 3478: "stun", - 3479: "twrpc", - 3480: "plethora", - 3481: "cleanerliverc", - 3482: "vulture", - 3483: "slim-devices", - 3484: "gbs-stp", - 3485: "celatalk", - 3486: "ifsf-hb-port", - 3487: "ltcudp", - 3488: "fs-rh-srv", - 3489: "dtp-dia", - 3490: "colubris", - 3491: "swr-port", - 3492: "tvdumtray-port", - 3493: "nut", - 3494: "ibm3494", - 3495: "seclayer-tcp", - 3496: "seclayer-tls", - 3497: "ipether232port", - 3498: "dashpas-port", - 3499: "sccip-media", - 3500: "rtmp-port", - 3501: "isoft-p2p", - 3502: "avinstalldisc", - 3503: "lsp-ping", - 3504: "ironstorm", - 3505: "ccmcomm", - 3506: "apc-3506", - 3507: "nesh-broker", - 3508: "interactionweb", - 3509: "vt-ssl", - 3510: "xss-port", - 3511: "webmail-2", - 3512: "aztec", - 3513: "arcpd", - 3514: "must-p2p", - 3515: "must-backplane", - 3516: "smartcard-port", - 3517: "802-11-iapp", - 3518: "artifact-msg", - 3519: "galileo", - 3520: "galileolog", - 3521: "mc3ss", - 3522: "nssocketport", - 3523: "odeumservlink", - 3524: "ecmport", - 3525: "eisport", - 3526: "starquiz-port", - 3527: "beserver-msg-q", - 3528: "jboss-iiop", - 3529: "jboss-iiop-ssl", - 3530: "gf", - 3531: "joltid", - 3532: "raven-rmp", - 3533: "raven-rdp", - 3534: "urld-port", - 3535: "ms-la", - 3536: "snac", - 3537: "ni-visa-remote", - 3538: "ibm-diradm", - 3539: "ibm-diradm-ssl", - 3540: "pnrp-port", - 3541: "voispeed-port", - 3542: "hacl-monitor", - 3543: "qftest-lookup", - 3544: "teredo", - 3545: "camac", - 3547: "symantec-sim", - 3548: "interworld", - 3549: "tellumat-nms", - 3550: "ssmpp", - 3551: "apcupsd", - 3552: "taserver", - 3553: "rbr-discovery", - 3554: "questnotify", - 3555: "razor", - 3556: "sky-transport", - 3557: "personalos-001", - 3558: "mcp-port", - 3559: "cctv-port", - 3560: "iniserve-port", - 3561: "bmc-onekey", - 3562: "sdbproxy", - 3563: "watcomdebug", - 3564: "esimport", - 3567: "dof-eps", - 3568: "dof-tunnel-sec", - 3569: "mbg-ctrl", - 3570: "mccwebsvr-port", - 3571: "megardsvr-port", - 3572: "megaregsvrport", - 3573: "tag-ups-1", - 3574: "dmaf-caster", - 3575: "ccm-port", - 3576: "cmc-port", - 3577: "config-port", - 3578: "data-port", - 3579: "ttat3lb", - 3580: "nati-svrloc", - 3581: "kfxaclicensing", - 3582: "press", - 3583: "canex-watch", - 3584: "u-dbap", - 3585: "emprise-lls", - 3586: "emprise-lsc", - 3587: "p2pgroup", - 3588: "sentinel", - 3589: "isomair", - 3590: "wv-csp-sms", - 3591: "gtrack-server", - 3592: "gtrack-ne", - 3593: "bpmd", - 3594: "mediaspace", - 3595: "shareapp", - 3596: "iw-mmogame", - 3597: "a14", - 3598: "a15", - 3599: "quasar-server", - 3600: "trap-daemon", - 3601: "visinet-gui", - 3602: "infiniswitchcl", - 3603: "int-rcv-cntrl", - 3604: "bmc-jmx-port", - 3605: "comcam-io", - 3606: "splitlock", - 3607: "precise-i3", - 3608: "trendchip-dcp", - 3609: "cpdi-pidas-cm", - 3610: "echonet", - 3611: "six-degrees", - 3612: "hp-dataprotect", - 3613: "alaris-disc", - 3614: "sigma-port", - 3615: "start-network", - 3616: "cd3o-protocol", - 3617: "sharp-server", - 3618: "aairnet-1", - 3619: "aairnet-2", - 3620: "ep-pcp", - 3621: "ep-nsp", - 3622: "ff-lr-port", - 3623: "haipe-discover", - 3624: "dist-upgrade", - 3625: "volley", - 3626: "bvcdaemon-port", - 3627: "jamserverport", - 3628: "ept-machine", - 3629: "escvpnet", - 3630: "cs-remote-db", - 3631: "cs-services", - 3632: "distcc", - 3633: "wacp", - 3634: "hlibmgr", - 3635: "sdo", - 3636: "servistaitsm", - 3637: "scservp", - 3638: "ehp-backup", - 3639: "xap-ha", - 3640: "netplay-port1", - 3641: "netplay-port2", - 3642: "juxml-port", - 3643: "audiojuggler", - 3644: "ssowatch", - 3645: "cyc", - 3646: "xss-srv-port", - 3647: "splitlock-gw", - 3648: "fjcp", - 3649: "nmmp", - 3650: "prismiq-plugin", - 3651: "xrpc-registry", - 3652: "vxcrnbuport", - 3653: "tsp", - 3654: "vaprtm", - 3655: "abatemgr", - 3656: "abatjss", - 3657: "immedianet-bcn", - 3658: "ps-ams", - 3659: "apple-sasl", - 3660: "can-nds-ssl", - 3661: "can-ferret-ssl", - 3662: "pserver", - 3663: "dtp", - 3664: "ups-engine", - 3665: "ent-engine", - 3666: "eserver-pap", - 3667: "infoexch", - 3668: "dell-rm-port", - 3669: "casanswmgmt", - 3670: "smile", - 3671: "efcp", - 3672: "lispworks-orb", - 3673: "mediavault-gui", - 3674: "wininstall-ipc", - 3675: "calltrax", - 3676: "va-pacbase", - 3677: "roverlog", - 3678: "ipr-dglt", - 3679: "Escale (Newton Dock)", - 3680: "npds-tracker", - 3681: "bts-x73", - 3682: "cas-mapi", - 3683: "bmc-ea", - 3684: "faxstfx-port", - 3685: "dsx-agent", - 3686: "tnmpv2", - 3687: "simple-push", - 3688: "simple-push-s", - 3689: "daap", - 3690: "svn", - 3691: "magaya-network", - 3692: "intelsync", - 3695: "bmc-data-coll", - 3696: "telnetcpcd", - 3697: "nw-license", - 3698: "sagectlpanel", - 3699: "kpn-icw", - 3700: "lrs-paging", - 3701: "netcelera", - 3702: "ws-discovery", - 3703: "adobeserver-3", - 3704: "adobeserver-4", - 3705: "adobeserver-5", - 3706: "rt-event", - 3707: "rt-event-s", - 3708: "sun-as-iiops", - 3709: "ca-idms", - 3710: "portgate-auth", - 3711: "edb-server2", - 3712: "sentinel-ent", - 3713: "tftps", - 3714: "delos-dms", - 3715: "anoto-rendezv", - 3716: "wv-csp-sms-cir", - 3717: "wv-csp-udp-cir", - 3718: "opus-services", - 3719: "itelserverport", - 3720: "ufastro-instr", - 3721: "xsync", - 3722: "xserveraid", - 3723: "sychrond", - 3724: "blizwow", - 3725: "na-er-tip", - 3726: "array-manager", - 3727: "e-mdu", - 3728: "e-woa", - 3729: "fksp-audit", - 3730: "client-ctrl", - 3731: "smap", - 3732: "m-wnn", - 3733: "multip-msg", - 3734: "synel-data", - 3735: "pwdis", - 3736: "rs-rmi", - 3738: "versatalk", - 3739: "launchbird-lm", - 3740: "heartbeat", - 3741: "wysdma", - 3742: "cst-port", - 3743: "ipcs-command", - 3744: "sasg", - 3745: "gw-call-port", - 3746: "linktest", - 3747: "linktest-s", - 3748: "webdata", - 3749: "cimtrak", - 3750: "cbos-ip-port", - 3751: "gprs-cube", - 3752: "vipremoteagent", - 3753: "nattyserver", - 3754: "timestenbroker", - 3755: "sas-remote-hlp", - 3756: "canon-capt", - 3757: "grf-port", - 3758: "apw-registry", - 3759: "exapt-lmgr", - 3760: "adtempusclient", - 3761: "gsakmp", - 3762: "gbs-smp", - 3763: "xo-wave", - 3764: "mni-prot-rout", - 3765: "rtraceroute", - 3767: "listmgr-port", - 3768: "rblcheckd", - 3769: "haipe-otnk", - 3770: "cindycollab", - 3771: "paging-port", - 3772: "ctp", - 3773: "ctdhercules", - 3774: "zicom", - 3775: "ispmmgr", - 3776: "dvcprov-port", - 3777: "jibe-eb", - 3778: "c-h-it-port", - 3779: "cognima", - 3780: "nnp", - 3781: "abcvoice-port", - 3782: "iso-tp0s", - 3783: "bim-pem", - 3784: "bfd-control", - 3785: "bfd-echo", - 3786: "upstriggervsw", - 3787: "fintrx", - 3788: "isrp-port", - 3789: "remotedeploy", - 3790: "quickbooksrds", - 3791: "tvnetworkvideo", - 3792: "sitewatch", - 3793: "dcsoftware", - 3794: "jaus", - 3795: "myblast", - 3796: "spw-dialer", - 3797: "idps", - 3798: "minilock", - 3799: "radius-dynauth", - 3800: "pwgpsi", - 3801: "ibm-mgr", - 3802: "vhd", - 3803: "soniqsync", - 3804: "iqnet-port", - 3805: "tcpdataserver", - 3806: "wsmlb", - 3807: "spugna", - 3808: "sun-as-iiops-ca", - 3809: "apocd", - 3810: "wlanauth", - 3811: "amp", - 3812: "neto-wol-server", - 3813: "rap-ip", - 3814: "neto-dcs", - 3815: "lansurveyorxml", - 3816: "sunlps-http", - 3817: "tapeware", - 3818: "crinis-hb", - 3819: "epl-slp", - 3820: "scp", - 3821: "pmcp", - 3822: "acp-discovery", - 3823: "acp-conduit", - 3824: "acp-policy", - 3825: "ffserver", - 3826: "warmux", - 3827: "netmpi", - 3828: "neteh", - 3829: "neteh-ext", - 3830: "cernsysmgmtagt", - 3831: "dvapps", - 3832: "xxnetserver", - 3833: "aipn-auth", - 3834: "spectardata", - 3835: "spectardb", - 3836: "markem-dcp", - 3837: "mkm-discovery", - 3838: "sos", - 3839: "amx-rms", - 3840: "flirtmitmir", - 3842: "nhci", - 3843: "quest-agent", - 3844: "rnm", - 3845: "v-one-spp", - 3846: "an-pcp", - 3847: "msfw-control", - 3848: "item", - 3849: "spw-dnspreload", - 3850: "qtms-bootstrap", - 3851: "spectraport", - 3852: "sse-app-config", - 3853: "sscan", - 3854: "stryker-com", - 3855: "opentrac", - 3856: "informer", - 3857: "trap-port", - 3858: "trap-port-mom", - 3859: "nav-port", - 3860: "sasp", - 3861: "winshadow-hd", - 3862: "giga-pocket", - 3863: "asap-udp", - 3865: "xpl", - 3866: "dzdaemon", - 3867: "dzoglserver", - 3869: "ovsam-mgmt", - 3870: "ovsam-d-agent", - 3871: "avocent-adsap", - 3872: "oem-agent", - 3873: "fagordnc", - 3874: "sixxsconfig", - 3875: "pnbscada", - 3876: "dl-agent", - 3877: "xmpcr-interface", - 3878: "fotogcad", - 3879: "appss-lm", - 3880: "igrs", - 3881: "idac", - 3882: "msdts1", - 3883: "vrpn", - 3884: "softrack-meter", - 3885: "topflow-ssl", - 3886: "nei-management", - 3887: "ciphire-data", - 3888: "ciphire-serv", - 3889: "dandv-tester", - 3890: "ndsconnect", - 3891: "rtc-pm-port", - 3892: "pcc-image-port", - 3893: "cgi-starapi", - 3894: "syam-agent", - 3895: "syam-smc", - 3896: "sdo-tls", - 3897: "sdo-ssh", - 3898: "senip", - 3899: "itv-control", - 3900: "udt-os", - 3901: "nimsh", - 3902: "nimaux", - 3903: "charsetmgr", - 3904: "omnilink-port", - 3905: "mupdate", - 3906: "topovista-data", - 3907: "imoguia-port", - 3908: "hppronetman", - 3909: "surfcontrolcpa", - 3910: "prnrequest", - 3911: "prnstatus", - 3912: "gbmt-stars", - 3913: "listcrt-port", - 3914: "listcrt-port-2", - 3915: "agcat", - 3916: "wysdmc", - 3917: "aftmux", - 3918: "pktcablemmcops", - 3919: "hyperip", - 3920: "exasoftport1", - 3921: "herodotus-net", - 3922: "sor-update", - 3923: "symb-sb-port", - 3924: "mpl-gprs-port", - 3925: "zmp", - 3926: "winport", - 3927: "natdataservice", - 3928: "netboot-pxe", - 3929: "smauth-port", - 3930: "syam-webserver", - 3931: "msr-plugin-port", - 3932: "dyn-site", - 3933: "plbserve-port", - 3934: "sunfm-port", - 3935: "sdp-portmapper", - 3936: "mailprox", - 3937: "dvbservdsc", - 3938: "dbcontrol-agent", - 3939: "aamp", - 3940: "xecp-node", - 3941: "homeportal-web", - 3942: "srdp", - 3943: "tig", - 3944: "sops", - 3945: "emcads", - 3946: "backupedge", - 3947: "ccp", - 3948: "apdap", - 3949: "drip", - 3950: "namemunge", - 3951: "pwgippfax", - 3952: "i3-sessionmgr", - 3953: "xmlink-connect", - 3954: "adrep", - 3955: "p2pcommunity", - 3956: "gvcp", - 3957: "mqe-broker", - 3958: "mqe-agent", - 3959: "treehopper", - 3960: "bess", - 3961: "proaxess", - 3962: "sbi-agent", - 3963: "thrp", - 3964: "sasggprs", - 3965: "ati-ip-to-ncpe", - 3966: "bflckmgr", - 3967: "ppsms", - 3968: "ianywhere-dbns", - 3969: "landmarks", - 3970: "lanrevagent", - 3971: "lanrevserver", - 3972: "iconp", - 3973: "progistics", - 3974: "citysearch", - 3975: "airshot", - 3976: "opswagent", - 3977: "opswmanager", - 3978: "secure-cfg-svr", - 3979: "smwan", - 3980: "acms", - 3981: "starfish", - 3982: "eis", - 3983: "eisp", - 3984: "mapper-nodemgr", - 3985: "mapper-mapethd", - 3986: "mapper-ws-ethd", - 3987: "centerline", - 3988: "dcs-config", - 3989: "bv-queryengine", - 3990: "bv-is", - 3991: "bv-smcsrv", - 3992: "bv-ds", - 3993: "bv-agent", - 3995: "iss-mgmt-ssl", - 3996: "abcsoftware", - 3997: "agentsease-db", - 3998: "dnx", - 3999: "nvcnet", - 4000: "terabase", - 4001: "newoak", - 4002: "pxc-spvr-ft", - 4003: "pxc-splr-ft", - 4004: "pxc-roid", - 4005: "pxc-pin", - 4006: "pxc-spvr", - 4007: "pxc-splr", - 4008: "netcheque", - 4009: "chimera-hwm", - 4010: "samsung-unidex", - 4011: "altserviceboot", - 4012: "pda-gate", - 4013: "acl-manager", - 4014: "taiclock", - 4015: "talarian-mcast1", - 4016: "talarian-mcast2", - 4017: "talarian-mcast3", - 4018: "talarian-mcast4", - 4019: "talarian-mcast5", - 4020: "trap", - 4021: "nexus-portal", - 4022: "dnox", - 4023: "esnm-zoning", - 4024: "tnp1-port", - 4025: "partimage", - 4026: "as-debug", - 4027: "bxp", - 4028: "dtserver-port", - 4029: "ip-qsig", - 4030: "jdmn-port", - 4031: "suucp", - 4032: "vrts-auth-port", - 4033: "sanavigator", - 4034: "ubxd", - 4035: "wap-push-http", - 4036: "wap-push-https", - 4037: "ravehd", - 4038: "fazzt-ptp", - 4039: "fazzt-admin", - 4040: "yo-main", - 4041: "houston", - 4042: "ldxp", - 4043: "nirp", - 4044: "ltp", - 4045: "npp", - 4046: "acp-proto", - 4047: "ctp-state", - 4049: "wafs", - 4050: "cisco-wafs", - 4051: "cppdp", - 4052: "interact", - 4053: "ccu-comm-1", - 4054: "ccu-comm-2", - 4055: "ccu-comm-3", - 4056: "lms", - 4057: "wfm", - 4058: "kingfisher", - 4059: "dlms-cosem", - 4060: "dsmeter-iatc", - 4061: "ice-location", - 4062: "ice-slocation", - 4063: "ice-router", - 4064: "ice-srouter", - 4065: "avanti-cdp", - 4066: "pmas", - 4067: "idp", - 4068: "ipfltbcst", - 4069: "minger", - 4070: "tripe", - 4071: "aibkup", - 4072: "zieto-sock", - 4073: "iRAPP", - 4074: "cequint-cityid", - 4075: "perimlan", - 4076: "seraph", - 4077: "ascomalarm", - 4079: "santools", - 4080: "lorica-in", - 4081: "lorica-in-sec", - 4082: "lorica-out", - 4083: "lorica-out-sec", - 4084: "fortisphere-vm", - 4086: "ftsync", - 4089: "opencore", - 4090: "omasgport", - 4091: "ewinstaller", - 4092: "ewdgs", - 4093: "pvxpluscs", - 4094: "sysrqd", - 4095: "xtgui", - 4096: "bre", - 4097: "patrolview", - 4098: "drmsfsd", - 4099: "dpcp", - 4100: "igo-incognito", - 4101: "brlp-0", - 4102: "brlp-1", - 4103: "brlp-2", - 4104: "brlp-3", - 4105: "shofar", - 4106: "synchronite", - 4107: "j-ac", - 4108: "accel", - 4109: "izm", - 4110: "g2tag", - 4111: "xgrid", - 4112: "apple-vpns-rp", - 4113: "aipn-reg", - 4114: "jomamqmonitor", - 4115: "cds", - 4116: "smartcard-tls", - 4117: "hillrserv", - 4118: "netscript", - 4119: "assuria-slm", - 4121: "e-builder", - 4122: "fprams", - 4123: "z-wave", - 4124: "tigv2", - 4125: "opsview-envoy", - 4126: "ddrepl", - 4127: "unikeypro", - 4128: "nufw", - 4129: "nuauth", - 4130: "fronet", - 4131: "stars", - 4132: "nuts-dem", - 4133: "nuts-bootp", - 4134: "nifty-hmi", - 4135: "cl-db-attach", - 4136: "cl-db-request", - 4137: "cl-db-remote", - 4138: "nettest", - 4139: "thrtx", - 4140: "cedros-fds", - 4141: "oirtgsvc", - 4142: "oidocsvc", - 4143: "oidsr", - 4145: "vvr-control", - 4146: "tgcconnect", - 4147: "vrxpservman", - 4148: "hhb-handheld", - 4149: "agslb", - 4150: "PowerAlert-nsa", - 4151: "menandmice-noh", - 4152: "idig-mux", - 4153: "mbl-battd", - 4154: "atlinks", - 4155: "bzr", - 4156: "stat-results", - 4157: "stat-scanner", - 4158: "stat-cc", - 4159: "nss", - 4160: "jini-discovery", - 4161: "omscontact", - 4162: "omstopology", - 4163: "silverpeakpeer", - 4164: "silverpeakcomm", - 4165: "altcp", - 4166: "joost", - 4167: "ddgn", - 4168: "pslicser", - 4169: "iadt-disc", - 4172: "pcoip", - 4173: "mma-discovery", - 4174: "sm-disc", - 4177: "wello", - 4178: "storman", - 4179: "MaxumSP", - 4180: "httpx", - 4181: "macbak", - 4182: "pcptcpservice", - 4183: "cyborgnet", - 4184: "universe-suite", - 4185: "wcpp", - 4188: "vatata", - 4191: "dsmipv6", - 4192: "azeti-bd", - 4197: "hctl", - 4199: "eims-admin", - 4300: "corelccam", - 4301: "d-data", - 4302: "d-data-control", - 4303: "srcp", - 4304: "owserver", - 4305: "batman", - 4306: "pinghgl", - 4307: "trueconf", - 4308: "compx-lockview", - 4309: "dserver", - 4310: "mirrtex", - 4320: "fdt-rcatp", - 4321: "rwhois", - 4322: "trim-event", - 4323: "trim-ice", - 4325: "geognosisman", - 4326: "geognosis", - 4327: "jaxer-web", - 4328: "jaxer-manager", - 4333: "ahsp", - 4340: "gaia", - 4341: "lisp-data", - 4342: "lisp-control", - 4343: "unicall", - 4344: "vinainstall", - 4345: "m4-network-as", - 4346: "elanlm", - 4347: "lansurveyor", - 4348: "itose", - 4349: "fsportmap", - 4350: "net-device", - 4351: "plcy-net-svcs", - 4352: "pjlink", - 4353: "f5-iquery", - 4354: "qsnet-trans", - 4355: "qsnet-workst", - 4356: "qsnet-assist", - 4357: "qsnet-cond", - 4358: "qsnet-nucl", - 4359: "omabcastltkm", - 4361: "nacnl", - 4362: "afore-vdp-disc", - 4366: "shadowstream", - 4368: "wxbrief", - 4369: "epmd", - 4370: "elpro-tunnel", - 4371: "l2c-disc", - 4372: "l2c-data", - 4373: "remctl", - 4375: "tolteces", - 4376: "bip", - 4377: "cp-spxsvr", - 4378: "cp-spxdpy", - 4379: "ctdb", - 4389: "xandros-cms", - 4390: "wiegand", - 4394: "apwi-disc", - 4395: "omnivisionesx", - 4400: "ds-srv", - 4401: "ds-srvr", - 4402: "ds-clnt", - 4403: "ds-user", - 4404: "ds-admin", - 4405: "ds-mail", - 4406: "ds-slp", - 4412: "smallchat", - 4413: "avi-nms-disc", - 4416: "pjj-player-disc", - 4418: "axysbridge", - 4420: "nvm-express", - 4425: "netrockey6", - 4426: "beacon-port-2", - 4430: "rsqlserver", - 4432: "l-acoustics", - 4441: "netblox", - 4442: "saris", - 4443: "pharos", - 4444: "krb524", - 4445: "upnotifyp", - 4446: "n1-fwp", - 4447: "n1-rmgmt", - 4448: "asc-slmd", - 4449: "privatewire", - 4450: "camp", - 4451: "ctisystemmsg", - 4452: "ctiprogramload", - 4453: "nssalertmgr", - 4454: "nssagentmgr", - 4455: "prchat-user", - 4456: "prchat-server", - 4457: "prRegister", - 4458: "mcp", - 4484: "hpssmgmt", - 4486: "icms", - 4488: "awacs-ice", - 4500: "ipsec-nat-t", - 4534: "armagetronad", - 4535: "ehs", - 4536: "ehs-ssl", - 4537: "wssauthsvc", - 4538: "swx-gate", - 4545: "worldscores", - 4546: "sf-lm", - 4547: "lanner-lm", - 4548: "synchromesh", - 4549: "aegate", - 4550: "gds-adppiw-db", - 4551: "ieee-mih", - 4552: "menandmice-mon", - 4554: "msfrs", - 4555: "rsip", - 4556: "dtn-bundle", - 4557: "mtcevrunqss", - 4558: "mtcevrunqman", - 4559: "hylafax", - 4566: "kwtc", - 4567: "tram", - 4568: "bmc-reporting", - 4569: "iax", - 4591: "l3t-at-an", - 4592: "hrpd-ith-at-an", - 4593: "ipt-anri-anri", - 4594: "ias-session", - 4595: "ias-paging", - 4596: "ias-neighbor", - 4597: "a21-an-1xbs", - 4598: "a16-an-an", - 4599: "a17-an-an", - 4600: "piranha1", - 4601: "piranha2", - 4621: "ventoso", - 4658: "playsta2-app", - 4659: "playsta2-lob", - 4660: "smaclmgr", - 4661: "kar2ouche", - 4662: "oms", - 4663: "noteit", - 4664: "ems", - 4665: "contclientms", - 4666: "eportcomm", - 4667: "mmacomm", - 4668: "mmaeds", - 4669: "eportcommdata", - 4670: "light", - 4671: "acter", - 4672: "rfa", - 4673: "cxws", - 4674: "appiq-mgmt", - 4675: "dhct-status", - 4676: "dhct-alerts", - 4677: "bcs", - 4678: "traversal", - 4679: "mgesupervision", - 4680: "mgemanagement", - 4681: "parliant", - 4682: "finisar", - 4683: "spike", - 4684: "rfid-rp1", - 4685: "autopac", - 4686: "msp-os", - 4687: "nst", - 4688: "mobile-p2p", - 4689: "altovacentral", - 4690: "prelude", - 4691: "mtn", - 4692: "conspiracy", - 4700: "netxms-agent", - 4701: "netxms-mgmt", - 4702: "netxms-sync", - 4711: "trinity-dist", - 4725: "truckstar", - 4726: "a26-fap-fgw", - 4727: "fcis-disc", - 4728: "capmux", - 4729: "gsmtap", - 4730: "gearman", - 4732: "ohmtrigger", - 4737: "ipdr-sp", - 4738: "solera-lpn", - 4739: "ipfix", - 4740: "ipfixs", - 4741: "lumimgrd", - 4742: "sicct-sdp", - 4743: "openhpid", - 4744: "ifsp", - 4745: "fmp", - 4746: "intelliadm-disc", - 4747: "buschtrommel", - 4749: "profilemac", - 4750: "ssad", - 4751: "spocp", - 4752: "snap", - 4753: "simon-disc", - 4754: "gre-in-udp", - 4755: "gre-udp-dtls", - 4784: "bfd-multi-ctl", - 4785: "cncp", - 4789: "vxlan", - 4790: "vxlan-gpe", - 4791: "roce", - 4800: "iims", - 4801: "iwec", - 4802: "ilss", - 4803: "notateit-disc", - 4804: "aja-ntv4-disc", - 4827: "htcp", - 4837: "varadero-0", - 4838: "varadero-1", - 4839: "varadero-2", - 4840: "opcua-udp", - 4841: "quosa", - 4842: "gw-asv", - 4843: "opcua-tls", - 4844: "gw-log", - 4845: "wcr-remlib", - 4846: "contamac-icm", - 4847: "wfc", - 4848: "appserv-http", - 4849: "appserv-https", - 4850: "sun-as-nodeagt", - 4851: "derby-repli", - 4867: "unify-debug", - 4868: "phrelay", - 4869: "phrelaydbg", - 4870: "cc-tracking", - 4871: "wired", - 4876: "tritium-can", - 4877: "lmcs", - 4878: "inst-discovery", - 4881: "socp-t", - 4882: "socp-c", - 4884: "hivestor", - 4885: "abbs", - 4894: "lyskom", - 4899: "radmin-port", - 4900: "hfcs", - 4914: "bones", - 4936: "an-signaling", - 4937: "atsc-mh-ssc", - 4940: "eq-office-4940", - 4941: "eq-office-4941", - 4942: "eq-office-4942", - 4949: "munin", - 4950: "sybasesrvmon", - 4951: "pwgwims", - 4952: "sagxtsds", - 4969: "ccss-qmm", - 4970: "ccss-qsm", - 4980: "ctxs-vpp", - 4986: "mrip", - 4987: "smar-se-port1", - 4988: "smar-se-port2", - 4989: "parallel", - 4990: "busycal", - 4991: "vrt", - 4999: "hfcs-manager", - 5000: "commplex-main", - 5001: "commplex-link", - 5002: "rfe", - 5003: "fmpro-internal", - 5004: "avt-profile-1", - 5005: "avt-profile-2", - 5006: "wsm-server", - 5007: "wsm-server-ssl", - 5008: "synapsis-edge", - 5009: "winfs", - 5010: "telelpathstart", - 5011: "telelpathattack", - 5012: "nsp", - 5013: "fmpro-v6", - 5014: "onpsocket", - 5020: "zenginkyo-1", - 5021: "zenginkyo-2", - 5022: "mice", - 5023: "htuilsrv", - 5024: "scpi-telnet", - 5025: "scpi-raw", - 5026: "strexec-d", - 5027: "strexec-s", - 5029: "infobright", - 5030: "surfpass", - 5031: "dmp", - 5042: "asnaacceler8db", - 5043: "swxadmin", - 5044: "lxi-evntsvc", - 5046: "vpm-udp", - 5047: "iscape", - 5049: "ivocalize", - 5050: "mmcc", - 5051: "ita-agent", - 5052: "ita-manager", - 5053: "rlm-disc", - 5055: "unot", - 5056: "intecom-ps1", - 5057: "intecom-ps2", - 5058: "locus-disc", - 5059: "sds", - 5060: "sip", - 5061: "sips", - 5062: "na-localise", - 5064: "ca-1", - 5065: "ca-2", - 5066: "stanag-5066", - 5067: "authentx", - 5069: "i-net-2000-npr", - 5070: "vtsas", - 5071: "powerschool", - 5072: "ayiya", - 5073: "tag-pm", - 5074: "alesquery", - 5078: "pixelpusher", - 5079: "cp-spxrpts", - 5080: "onscreen", - 5081: "sdl-ets", - 5082: "qcp", - 5083: "qfp", - 5084: "llrp", - 5085: "encrypted-llrp", - 5092: "magpie", - 5093: "sentinel-lm", - 5094: "hart-ip", - 5099: "sentlm-srv2srv", - 5100: "socalia", - 5101: "talarian-udp", - 5102: "oms-nonsecure", - 5104: "tinymessage", - 5105: "hughes-ap", - 5111: "taep-as-svc", - 5112: "pm-cmdsvr", - 5116: "emb-proj-cmd", - 5120: "barracuda-bbs", - 5133: "nbt-pc", - 5136: "minotaur-sa", - 5137: "ctsd", - 5145: "rmonitor-secure", - 5150: "atmp", - 5151: "esri-sde", - 5152: "sde-discovery", - 5154: "bzflag", - 5155: "asctrl-agent", - 5164: "vpa-disc", - 5165: "ife-icorp", - 5166: "winpcs", - 5167: "scte104", - 5168: "scte30", - 5190: "aol", - 5191: "aol-1", - 5192: "aol-2", - 5193: "aol-3", - 5200: "targus-getdata", - 5201: "targus-getdata1", - 5202: "targus-getdata2", - 5203: "targus-getdata3", - 5223: "hpvirtgrp", - 5224: "hpvirtctrl", - 5225: "hp-server", - 5226: "hp-status", - 5227: "perfd", - 5234: "eenet", - 5235: "galaxy-network", - 5236: "padl2sim", - 5237: "mnet-discovery", - 5245: "downtools-disc", - 5246: "capwap-control", - 5247: "capwap-data", - 5248: "caacws", - 5249: "caaclang2", - 5250: "soagateway", - 5251: "caevms", - 5252: "movaz-ssc", - 5264: "3com-njack-1", - 5265: "3com-njack-2", - 5270: "cartographerxmp", - 5271: "cuelink-disc", - 5272: "pk", - 5282: "transmit-port", - 5298: "presence", - 5299: "nlg-data", - 5300: "hacl-hb", - 5301: "hacl-gs", - 5302: "hacl-cfg", - 5303: "hacl-probe", - 5304: "hacl-local", - 5305: "hacl-test", - 5306: "sun-mc-grp", - 5307: "sco-aip", - 5308: "cfengine", - 5309: "jprinter", - 5310: "outlaws", - 5312: "permabit-cs", - 5313: "rrdp", - 5314: "opalis-rbt-ipc", - 5315: "hacl-poll", - 5343: "kfserver", - 5344: "xkotodrcp", - 5349: "stuns", - 5350: "pcp-multicast", - 5351: "pcp", - 5352: "dns-llq", - 5353: "mdns", - 5354: "mdnsresponder", - 5355: "llmnr", - 5356: "ms-smlbiz", - 5357: "wsdapi", - 5358: "wsdapi-s", - 5359: "ms-alerter", - 5360: "ms-sideshow", - 5361: "ms-s-sideshow", - 5362: "serverwsd2", - 5363: "net-projection", - 5364: "kdnet", - 5397: "stresstester", - 5398: "elektron-admin", - 5399: "securitychase", - 5400: "excerpt", - 5401: "excerpts", - 5402: "mftp", - 5403: "hpoms-ci-lstn", - 5404: "hpoms-dps-lstn", - 5405: "netsupport", - 5406: "systemics-sox", - 5407: "foresyte-clear", - 5408: "foresyte-sec", - 5409: "salient-dtasrv", - 5410: "salient-usrmgr", - 5411: "actnet", - 5412: "continuus", - 5413: "wwiotalk", - 5414: "statusd", - 5415: "ns-server", - 5416: "sns-gateway", - 5417: "sns-agent", - 5418: "mcntp", - 5419: "dj-ice", - 5420: "cylink-c", - 5421: "netsupport2", - 5422: "salient-mux", - 5423: "virtualuser", - 5424: "beyond-remote", - 5425: "br-channel", - 5426: "devbasic", - 5427: "sco-peer-tta", - 5428: "telaconsole", - 5429: "base", - 5430: "radec-corp", - 5431: "park-agent", - 5432: "postgresql", - 5433: "pyrrho", - 5434: "sgi-arrayd", - 5435: "sceanics", - 5436: "pmip6-cntl", - 5437: "pmip6-data", - 5443: "spss", - 5450: "tiepie-disc", - 5453: "surebox", - 5454: "apc-5454", - 5455: "apc-5455", - 5456: "apc-5456", - 5461: "silkmeter", - 5462: "ttl-publisher", - 5463: "ttlpriceproxy", - 5464: "quailnet", - 5465: "netops-broker", - 5474: "apsolab-rpc", - 5500: "fcp-addr-srvr1", - 5501: "fcp-addr-srvr2", - 5502: "fcp-srvr-inst1", - 5503: "fcp-srvr-inst2", - 5504: "fcp-cics-gw1", - 5505: "checkoutdb", - 5506: "amc", - 5553: "sgi-eventmond", - 5554: "sgi-esphttp", - 5555: "personal-agent", - 5556: "freeciv", - 5567: "dof-dps-mc-sec", - 5568: "sdt", - 5569: "rdmnet-device", - 5573: "sdmmp", - 5580: "tmosms0", - 5581: "tmosms1", - 5582: "fac-restore", - 5583: "tmo-icon-sync", - 5584: "bis-web", - 5585: "bis-sync", - 5597: "ininmessaging", - 5598: "mctfeed", - 5599: "esinstall", - 5600: "esmmanager", - 5601: "esmagent", - 5602: "a1-msc", - 5603: "a1-bs", - 5604: "a3-sdunode", - 5605: "a4-sdunode", - 5627: "ninaf", - 5628: "htrust", - 5629: "symantec-sfdb", - 5630: "precise-comm", - 5631: "pcanywheredata", - 5632: "pcanywherestat", - 5633: "beorl", - 5634: "xprtld", - 5670: "zre-disc", - 5671: "amqps", - 5672: "amqp", - 5673: "jms", - 5674: "hyperscsi-port", - 5675: "v5ua", - 5676: "raadmin", - 5677: "questdb2-lnchr", - 5678: "rrac", - 5679: "dccm", - 5680: "auriga-router", - 5681: "ncxcp", - 5682: "brightcore", - 5683: "coap", - 5684: "coaps", - 5687: "gog-multiplayer", - 5688: "ggz", - 5689: "qmvideo", - 5713: "proshareaudio", - 5714: "prosharevideo", - 5715: "prosharedata", - 5716: "prosharerequest", - 5717: "prosharenotify", - 5718: "dpm", - 5719: "dpm-agent", - 5720: "ms-licensing", - 5721: "dtpt", - 5722: "msdfsr", - 5723: "omhs", - 5724: "omsdk", - 5728: "io-dist-group", - 5729: "openmail", - 5730: "unieng", - 5741: "ida-discover1", - 5742: "ida-discover2", - 5743: "watchdoc-pod", - 5744: "watchdoc", - 5745: "fcopy-server", - 5746: "fcopys-server", - 5747: "tunatic", - 5748: "tunalyzer", - 5750: "rscd", - 5755: "openmailg", - 5757: "x500ms", - 5766: "openmailns", - 5767: "s-openmail", - 5768: "openmailpxy", - 5769: "spramsca", - 5770: "spramsd", - 5771: "netagent", - 5777: "dali-port", - 5781: "3par-evts", - 5782: "3par-mgmt", - 5783: "3par-mgmt-ssl", - 5784: "ibar", - 5785: "3par-rcopy", - 5786: "cisco-redu", - 5787: "waascluster", - 5793: "xtreamx", - 5794: "spdp", - 5813: "icmpd", - 5814: "spt-automation", - 5859: "wherehoo", - 5863: "ppsuitemsg", - 5900: "rfb", - 5910: "cm", - 5911: "cpdlc", - 5912: "fis", - 5913: "ads-c", - 5963: "indy", - 5968: "mppolicy-v5", - 5969: "mppolicy-mgr", - 5984: "couchdb", - 5985: "wsman", - 5986: "wsmans", - 5987: "wbem-rmi", - 5988: "wbem-http", - 5989: "wbem-https", - 5990: "wbem-exp-https", - 5991: "nuxsl", - 5992: "consul-insight", - 5999: "cvsup", - 6064: "ndl-ahp-svc", - 6065: "winpharaoh", - 6066: "ewctsp", - 6069: "trip", - 6070: "messageasap", - 6071: "ssdtp", - 6072: "diagnose-proc", - 6073: "directplay8", - 6074: "max", - 6080: "gue", - 6081: "geneve", - 6082: "p25cai", - 6083: "miami-bcast", - 6085: "konspire2b", - 6086: "pdtp", - 6087: "ldss", - 6088: "doglms-notify", - 6100: "synchronet-db", - 6101: "synchronet-rtc", - 6102: "synchronet-upd", - 6103: "rets", - 6104: "dbdb", - 6105: "primaserver", - 6106: "mpsserver", - 6107: "etc-control", - 6108: "sercomm-scadmin", - 6109: "globecast-id", - 6110: "softcm", - 6111: "spc", - 6112: "dtspcd", - 6118: "tipc", - 6122: "bex-webadmin", - 6123: "backup-express", - 6124: "pnbs", - 6133: "nbt-wol", - 6140: "pulsonixnls", - 6141: "meta-corp", - 6142: "aspentec-lm", - 6143: "watershed-lm", - 6144: "statsci1-lm", - 6145: "statsci2-lm", - 6146: "lonewolf-lm", - 6147: "montage-lm", - 6148: "ricardo-lm", - 6149: "tal-pod", - 6160: "ecmp-data", - 6161: "patrol-ism", - 6162: "patrol-coll", - 6163: "pscribe", - 6200: "lm-x", - 6201: "thermo-calc", - 6209: "qmtps", - 6222: "radmind", - 6241: "jeol-nsddp-1", - 6242: "jeol-nsddp-2", - 6243: "jeol-nsddp-3", - 6244: "jeol-nsddp-4", - 6251: "tl1-raw-ssl", - 6252: "tl1-ssh", - 6253: "crip", - 6268: "grid", - 6269: "grid-alt", - 6300: "bmc-grx", - 6301: "bmc-ctd-ldap", - 6306: "ufmp", - 6315: "scup-disc", - 6316: "abb-escp", - 6317: "nav-data", - 6320: "repsvc", - 6321: "emp-server1", - 6322: "emp-server2", - 6324: "hrd-ns-disc", - 6343: "sflow", - 6346: "gnutella-svc", - 6347: "gnutella-rtr", - 6350: "adap", - 6355: "pmcs", - 6360: "metaedit-mu", - 6363: "ndn", - 6370: "metaedit-se", - 6382: "metatude-mds", - 6389: "clariion-evr01", - 6390: "metaedit-ws", - 6417: "faxcomservice", - 6419: "svdrp-disc", - 6420: "nim-vdrshell", - 6421: "nim-wan", - 6443: "sun-sr-https", - 6444: "sge-qmaster", - 6445: "sge-execd", - 6446: "mysql-proxy", - 6455: "skip-cert-recv", - 6456: "skip-cert-send", - 6464: "ieee11073-20701", - 6471: "lvision-lm", - 6480: "sun-sr-http", - 6481: "servicetags", - 6482: "ldoms-mgmt", - 6483: "SunVTS-RMI", - 6484: "sun-sr-jms", - 6485: "sun-sr-iiop", - 6486: "sun-sr-iiops", - 6487: "sun-sr-iiop-aut", - 6488: "sun-sr-jmx", - 6489: "sun-sr-admin", - 6500: "boks", - 6501: "boks-servc", - 6502: "boks-servm", - 6503: "boks-clntd", - 6505: "badm-priv", - 6506: "badm-pub", - 6507: "bdir-priv", - 6508: "bdir-pub", - 6509: "mgcs-mfp-port", - 6510: "mcer-port", - 6511: "dccp-udp", - 6514: "syslog-tls", - 6515: "elipse-rec", - 6543: "lds-distrib", - 6544: "lds-dump", - 6547: "apc-6547", - 6548: "apc-6548", - 6549: "apc-6549", - 6550: "fg-sysupdate", - 6551: "sum", - 6558: "xdsxdm", - 6566: "sane-port", - 6568: "rp-reputation", - 6579: "affiliate", - 6580: "parsec-master", - 6581: "parsec-peer", - 6582: "parsec-game", - 6583: "joaJewelSuite", - 6619: "odette-ftps", - 6620: "kftp-data", - 6621: "kftp", - 6622: "mcftp", - 6623: "ktelnet", - 6626: "wago-service", - 6627: "nexgen", - 6628: "afesc-mc", - 6629: "nexgen-aux", - 6633: "cisco-vpath-tun", - 6634: "mpls-pm", - 6635: "mpls-udp", - 6636: "mpls-udp-dtls", - 6653: "openflow", - 6657: "palcom-disc", - 6670: "vocaltec-gold", - 6671: "p4p-portal", - 6672: "vision-server", - 6673: "vision-elmd", - 6678: "vfbp-disc", - 6679: "osaut", - 6689: "tsa", - 6696: "babel", - 6701: "kti-icad-srvr", - 6702: "e-design-net", - 6703: "e-design-web", - 6714: "ibprotocol", - 6715: "fibotrader-com", - 6767: "bmc-perf-agent", - 6768: "bmc-perf-mgrd", - 6769: "adi-gxp-srvprt", - 6770: "plysrv-http", - 6771: "plysrv-https", - 6784: "bfd-lag", - 6785: "dgpf-exchg", - 6786: "smc-jmx", - 6787: "smc-admin", - 6788: "smc-http", - 6790: "hnmp", - 6791: "hnm", - 6801: "acnet", - 6831: "ambit-lm", - 6841: "netmo-default", - 6842: "netmo-http", - 6850: "iccrushmore", - 6868: "acctopus-st", - 6888: "muse", - 6935: "ethoscan", - 6936: "xsmsvc", - 6946: "bioserver", - 6951: "otlp", - 6961: "jmact3", - 6962: "jmevt2", - 6963: "swismgr1", - 6964: "swismgr2", - 6965: "swistrap", - 6966: "swispol", - 6969: "acmsoda", - 6997: "MobilitySrv", - 6998: "iatp-highpri", - 6999: "iatp-normalpri", - 7000: "afs3-fileserver", - 7001: "afs3-callback", - 7002: "afs3-prserver", - 7003: "afs3-vlserver", - 7004: "afs3-kaserver", - 7005: "afs3-volser", - 7006: "afs3-errors", - 7007: "afs3-bos", - 7008: "afs3-update", - 7009: "afs3-rmtsys", - 7010: "ups-onlinet", - 7011: "talon-disc", - 7012: "talon-engine", - 7013: "microtalon-dis", - 7014: "microtalon-com", - 7015: "talon-webserver", - 7016: "spg", - 7017: "grasp", - 7019: "doceri-view", - 7020: "dpserve", - 7021: "dpserveadmin", - 7022: "ctdp", - 7023: "ct2nmcs", - 7024: "vmsvc", - 7025: "vmsvc-2", - 7030: "op-probe", - 7040: "quest-disc", - 7070: "arcp", - 7071: "iwg1", - 7080: "empowerid", - 7088: "zixi-transport", - 7095: "jdp-disc", - 7099: "lazy-ptop", - 7100: "font-service", - 7101: "elcn", - 7107: "aes-x170", - 7121: "virprot-lm", - 7128: "scenidm", - 7129: "scenccs", - 7161: "cabsm-comm", - 7162: "caistoragemgr", - 7163: "cacsambroker", - 7164: "fsr", - 7165: "doc-server", - 7166: "aruba-server", - 7169: "ccag-pib", - 7170: "nsrp", - 7171: "drm-production", - 7174: "clutild", - 7181: "janus-disc", - 7200: "fodms", - 7201: "dlip", - 7227: "ramp", - 7235: "aspcoordination", - 7244: "frc-hicp-disc", - 7262: "cnap", - 7272: "watchme-7272", - 7273: "oma-rlp", - 7274: "oma-rlp-s", - 7275: "oma-ulp", - 7276: "oma-ilp", - 7277: "oma-ilp-s", - 7278: "oma-dcdocbs", - 7279: "ctxlic", - 7280: "itactionserver1", - 7281: "itactionserver2", - 7282: "mzca-alert", - 7365: "lcm-server", - 7391: "mindfilesys", - 7392: "mrssrendezvous", - 7393: "nfoldman", - 7394: "fse", - 7395: "winqedit", - 7397: "hexarc", - 7400: "rtps-discovery", - 7401: "rtps-dd-ut", - 7402: "rtps-dd-mt", - 7410: "ionixnetmon", - 7411: "daqstream", - 7421: "mtportmon", - 7426: "pmdmgr", - 7427: "oveadmgr", - 7428: "ovladmgr", - 7429: "opi-sock", - 7430: "xmpv7", - 7431: "pmd", - 7437: "faximum", - 7443: "oracleas-https", - 7473: "rise", - 7491: "telops-lmd", - 7500: "silhouette", - 7501: "ovbus", - 7510: "ovhpas", - 7511: "pafec-lm", - 7542: "saratoga", - 7543: "atul", - 7544: "nta-ds", - 7545: "nta-us", - 7546: "cfs", - 7547: "cwmp", - 7548: "tidp", - 7549: "nls-tl", - 7550: "cloudsignaling", - 7560: "sncp", - 7566: "vsi-omega", - 7570: "aries-kfinder", - 7574: "coherence-disc", - 7588: "sun-lm", - 7606: "mipi-debug", - 7624: "indi", - 7627: "soap-http", - 7628: "zen-pawn", - 7629: "xdas", - 7633: "pmdfmgt", - 7648: "cuseeme", - 7674: "imqtunnels", - 7675: "imqtunnel", - 7676: "imqbrokerd", - 7677: "sun-user-https", - 7680: "pando-pub", - 7689: "collaber", - 7697: "klio", - 7707: "sync-em7", - 7708: "scinet", - 7720: "medimageportal", - 7724: "nsdeepfreezectl", - 7725: "nitrogen", - 7726: "freezexservice", - 7727: "trident-data", - 7728: "osvr", - 7734: "smip", - 7738: "aiagent", - 7741: "scriptview", - 7743: "sstp-1", - 7744: "raqmon-pdu", - 7747: "prgp", - 7777: "cbt", - 7778: "interwise", - 7779: "vstat", - 7781: "accu-lmgr", - 7784: "s-bfd", - 7786: "minivend", - 7787: "popup-reminders", - 7789: "office-tools", - 7794: "q3ade", - 7797: "pnet-conn", - 7798: "pnet-enc", - 7799: "altbsdp", - 7800: "asr", - 7801: "ssp-client", - 7802: "vns-tp", - 7810: "rbt-wanopt", - 7845: "apc-7845", - 7846: "apc-7846", - 7872: "mipv6tls", - 7880: "pss", - 7887: "ubroker", - 7900: "mevent", - 7901: "tnos-sp", - 7902: "tnos-dp", - 7903: "tnos-dps", - 7913: "qo-secure", - 7932: "t2-drm", - 7933: "t2-brm", - 7962: "generalsync", - 7967: "supercell", - 7979: "micromuse-ncps", - 7980: "quest-vista", - 7982: "sossd-disc", - 7998: "usicontentpush", - 7999: "irdmi2", - 8000: "irdmi", - 8001: "vcom-tunnel", - 8002: "teradataordbms", - 8003: "mcreport", - 8005: "mxi", - 8006: "wpl-disc", - 8007: "warppipe", - 8008: "http-alt", - 8019: "qbdb", - 8020: "intu-ec-svcdisc", - 8021: "intu-ec-client", - 8022: "oa-system", - 8025: "ca-audit-da", - 8026: "ca-audit-ds", - 8032: "pro-ed", - 8033: "mindprint", - 8034: "vantronix-mgmt", - 8040: "ampify", - 8041: "enguity-xccetp", - 8052: "senomix01", - 8053: "senomix02", - 8054: "senomix03", - 8055: "senomix04", - 8056: "senomix05", - 8057: "senomix06", - 8058: "senomix07", - 8059: "senomix08", - 8060: "aero", - 8074: "gadugadu", - 8080: "http-alt", - 8081: "sunproxyadmin", - 8082: "us-cli", - 8083: "us-srv", - 8086: "d-s-n", - 8087: "simplifymedia", - 8088: "radan-http", - 8097: "sac", - 8100: "xprint-server", - 8115: "mtl8000-matrix", - 8116: "cp-cluster", - 8118: "privoxy", - 8121: "apollo-data", - 8122: "apollo-admin", - 8128: "paycash-online", - 8129: "paycash-wbp", - 8130: "indigo-vrmi", - 8131: "indigo-vbcp", - 8132: "dbabble", - 8148: "isdd", - 8149: "eor-game", - 8160: "patrol", - 8161: "patrol-snmp", - 8182: "vmware-fdm", - 8184: "itach", - 8192: "spytechphone", - 8194: "blp1", - 8195: "blp2", - 8199: "vvr-data", - 8200: "trivnet1", - 8201: "trivnet2", - 8202: "aesop", - 8204: "lm-perfworks", - 8205: "lm-instmgr", - 8206: "lm-dta", - 8207: "lm-sserver", - 8208: "lm-webwatcher", - 8230: "rexecj", - 8231: "hncp-udp-port", - 8232: "hncp-dtls-port", - 8243: "synapse-nhttps", - 8276: "pando-sec", - 8280: "synapse-nhttp", - 8282: "libelle-disc", - 8292: "blp3", - 8294: "blp4", - 8300: "tmi", - 8301: "amberon", - 8320: "tnp-discover", - 8321: "tnp", - 8322: "garmin-marine", - 8351: "server-find", - 8376: "cruise-enum", - 8377: "cruise-swroute", - 8378: "cruise-config", - 8379: "cruise-diags", - 8380: "cruise-update", - 8383: "m2mservices", - 8384: "marathontp", - 8400: "cvd", - 8401: "sabarsd", - 8402: "abarsd", - 8403: "admind", - 8416: "espeech", - 8417: "espeech-rtp", - 8442: "cybro-a-bus", - 8443: "pcsync-https", - 8444: "pcsync-http", - 8445: "copy-disc", - 8450: "npmp", - 8472: "otv", - 8473: "vp2p", - 8474: "noteshare", - 8500: "fmtp", - 8501: "cmtp-av", - 8503: "lsp-self-ping", - 8554: "rtsp-alt", - 8555: "d-fence", - 8567: "dof-tunnel", - 8600: "asterix", - 8609: "canon-cpp-disc", - 8610: "canon-mfnp", - 8611: "canon-bjnp1", - 8612: "canon-bjnp2", - 8613: "canon-bjnp3", - 8614: "canon-bjnp4", - 8675: "msi-cps-rm-disc", - 8686: "sun-as-jmxrmi", - 8732: "dtp-net", - 8733: "ibus", - 8763: "mc-appserver", - 8764: "openqueue", - 8765: "ultraseek-http", - 8766: "amcs", - 8770: "dpap", - 8786: "msgclnt", - 8787: "msgsrvr", - 8793: "acd-pm", - 8800: "sunwebadmin", - 8804: "truecm", - 8805: "pfcp", - 8808: "ssports-bcast", - 8873: "dxspider", - 8880: "cddbp-alt", - 8883: "secure-mqtt", - 8888: "ddi-udp-1", - 8889: "ddi-udp-2", - 8890: "ddi-udp-3", - 8891: "ddi-udp-4", - 8892: "ddi-udp-5", - 8893: "ddi-udp-6", - 8894: "ddi-udp-7", - 8899: "ospf-lite", - 8900: "jmb-cds1", - 8901: "jmb-cds2", - 8910: "manyone-http", - 8911: "manyone-xml", - 8912: "wcbackup", - 8913: "dragonfly", - 8954: "cumulus-admin", - 8980: "nod-provider", - 8981: "nod-client", - 8989: "sunwebadmins", - 8990: "http-wmap", - 8991: "https-wmap", - 8999: "bctp", - 9000: "cslistener", - 9001: "etlservicemgr", - 9002: "dynamid", - 9007: "ogs-client", - 9009: "pichat", - 9020: "tambora", - 9021: "panagolin-ident", - 9022: "paragent", - 9023: "swa-1", - 9024: "swa-2", - 9025: "swa-3", - 9026: "swa-4", - 9060: "CardWeb-RT", - 9080: "glrpc", - 9084: "aurora", - 9085: "ibm-rsyscon", - 9086: "net2display", - 9087: "classic", - 9088: "sqlexec", - 9089: "sqlexec-ssl", - 9090: "websm", - 9091: "xmltec-xmlmail", - 9092: "XmlIpcRegSvc", - 9100: "hp-pdl-datastr", - 9101: "bacula-dir", - 9102: "bacula-fd", - 9103: "bacula-sd", - 9104: "peerwire", - 9105: "xadmin", - 9106: "astergate-disc", - 9119: "mxit", - 9131: "dddp", - 9160: "apani1", - 9161: "apani2", - 9162: "apani3", - 9163: "apani4", - 9164: "apani5", - 9191: "sun-as-jpda", - 9200: "wap-wsp", - 9201: "wap-wsp-wtp", - 9202: "wap-wsp-s", - 9203: "wap-wsp-wtp-s", - 9204: "wap-vcard", - 9205: "wap-vcal", - 9206: "wap-vcard-s", - 9207: "wap-vcal-s", - 9208: "rjcdb-vcards", - 9209: "almobile-system", - 9210: "oma-mlp", - 9211: "oma-mlp-s", - 9212: "serverviewdbms", - 9213: "serverstart", - 9214: "ipdcesgbs", - 9215: "insis", - 9216: "acme", - 9217: "fsc-port", - 9222: "teamcoherence", - 9255: "mon", - 9277: "traingpsdata", - 9278: "pegasus", - 9279: "pegasus-ctl", - 9280: "pgps", - 9281: "swtp-port1", - 9282: "swtp-port2", - 9283: "callwaveiam", - 9284: "visd", - 9285: "n2h2server", - 9286: "n2receive", - 9287: "cumulus", - 9292: "armtechdaemon", - 9293: "storview", - 9294: "armcenterhttp", - 9295: "armcenterhttps", - 9300: "vrace", - 9318: "secure-ts", - 9321: "guibase", - 9343: "mpidcmgr", - 9344: "mphlpdmc", - 9346: "ctechlicensing", - 9374: "fjdmimgr", - 9380: "boxp", - 9396: "fjinvmgr", - 9397: "mpidcagt", - 9400: "sec-t4net-srv", - 9401: "sec-t4net-clt", - 9402: "sec-pc2fax-srv", - 9418: "git", - 9443: "tungsten-https", - 9444: "wso2esb-console", - 9450: "sntlkeyssrvr", - 9500: "ismserver", - 9522: "sma-spw", - 9535: "mngsuite", - 9536: "laes-bf", - 9555: "trispen-sra", - 9592: "ldgateway", - 9593: "cba8", - 9594: "msgsys", - 9595: "pds", - 9596: "mercury-disc", - 9597: "pd-admin", - 9598: "vscp", - 9599: "robix", - 9600: "micromuse-ncpw", - 9612: "streamcomm-ds", - 9618: "condor", - 9628: "odbcpathway", - 9629: "uniport", - 9632: "mc-comm", - 9667: "xmms2", - 9668: "tec5-sdctp", - 9694: "client-wakeup", - 9695: "ccnx", - 9700: "board-roar", - 9747: "l5nas-parchan", - 9750: "board-voip", - 9753: "rasadv", - 9762: "tungsten-http", - 9800: "davsrc", - 9801: "sstp-2", - 9802: "davsrcs", - 9875: "sapv1", - 9878: "kca-service", - 9888: "cyborg-systems", - 9889: "gt-proxy", - 9898: "monkeycom", - 9899: "sctp-tunneling", - 9900: "iua", - 9901: "enrp", - 9903: "multicast-ping", - 9909: "domaintime", - 9911: "sype-transport", - 9950: "apc-9950", - 9951: "apc-9951", - 9952: "apc-9952", - 9953: "acis", - 9955: "alljoyn-mcm", - 9956: "alljoyn", - 9966: "odnsp", - 9987: "dsm-scm-target", - 9990: "osm-appsrvr", - 9991: "osm-oev", - 9992: "palace-1", - 9993: "palace-2", - 9994: "palace-3", - 9995: "palace-4", - 9996: "palace-5", - 9997: "palace-6", - 9998: "distinct32", - 9999: "distinct", - 10000: "ndmp", - 10001: "scp-config", - 10002: "documentum", - 10003: "documentum-s", - 10007: "mvs-capacity", - 10008: "octopus", - 10009: "swdtp-sv", - 10050: "zabbix-agent", - 10051: "zabbix-trapper", - 10080: "amanda", - 10081: "famdc", - 10100: "itap-ddtp", - 10101: "ezmeeting-2", - 10102: "ezproxy-2", - 10103: "ezrelay", - 10104: "swdtp", - 10107: "bctp-server", - 10110: "nmea-0183", - 10111: "nmea-onenet", - 10113: "netiq-endpoint", - 10114: "netiq-qcheck", - 10115: "netiq-endpt", - 10116: "netiq-voipa", - 10117: "iqrm", - 10128: "bmc-perf-sd", - 10160: "qb-db-server", - 10161: "snmpdtls", - 10162: "snmpdtls-trap", - 10200: "trisoap", - 10201: "rscs", - 10252: "apollo-relay", - 10253: "eapol-relay", - 10260: "axis-wimp-port", - 10288: "blocks", - 10439: "bngsync", - 10500: "hip-nat-t", - 10540: "MOS-lower", - 10541: "MOS-upper", - 10542: "MOS-aux", - 10543: "MOS-soap", - 10544: "MOS-soap-opt", - 10800: "gap", - 10805: "lpdg", - 10810: "nmc-disc", - 10860: "helix", - 10880: "bveapi", - 10990: "rmiaux", - 11000: "irisa", - 11001: "metasys", - 10023: "cefd-vmp", - 11095: "weave", - 11106: "sgi-lk", - 11108: "myq-termlink", - 11111: "vce", - 11112: "dicom", - 11161: "suncacao-snmp", - 11162: "suncacao-jmxmp", - 11163: "suncacao-rmi", - 11164: "suncacao-csa", - 11165: "suncacao-websvc", - 11171: "snss", - 11201: "smsqp", - 11208: "wifree", - 11211: "memcache", - 11319: "imip", - 11320: "imip-channels", - 11321: "arena-server", - 11367: "atm-uhas", - 11371: "hkp", - 11430: "lsdp", - 11600: "tempest-port", - 11720: "h323callsigalt", - 11723: "emc-xsw-dcache", - 11751: "intrepid-ssl", - 11796: "lanschool-mpt", - 11876: "xoraya", - 11877: "x2e-disc", - 11967: "sysinfo-sp", - 12000: "entextxid", - 12001: "entextnetwk", - 12002: "entexthigh", - 12003: "entextmed", - 12004: "entextlow", - 12005: "dbisamserver1", - 12006: "dbisamserver2", - 12007: "accuracer", - 12008: "accuracer-dbms", - 12009: "ghvpn", - 12012: "vipera", - 12013: "vipera-ssl", - 12109: "rets-ssl", - 12121: "nupaper-ss", - 12168: "cawas", - 12172: "hivep", - 12300: "linogridengine", - 12321: "warehouse-sss", - 12322: "warehouse", - 12345: "italk", - 12753: "tsaf", - 13160: "i-zipqd", - 13216: "bcslogc", - 13217: "rs-pias", - 13218: "emc-vcas-udp", - 13223: "powwow-client", - 13224: "powwow-server", - 13400: "doip-disc", - 13720: "bprd", - 13721: "bpdbm", - 13722: "bpjava-msvc", - 13724: "vnetd", - 13782: "bpcd", - 13783: "vopied", - 13785: "nbdb", - 13786: "nomdb", - 13818: "dsmcc-config", - 13819: "dsmcc-session", - 13820: "dsmcc-passthru", - 13821: "dsmcc-download", - 13822: "dsmcc-ccp", - 13894: "ucontrol", - 13929: "dta-systems", - 14000: "scotty-ft", - 14001: "sua", - 14002: "scotty-disc", - 14033: "sage-best-com1", - 14034: "sage-best-com2", - 14141: "vcs-app", - 14142: "icpp", - 14145: "gcm-app", - 14149: "vrts-tdd", - 14154: "vad", - 14250: "cps", - 14414: "ca-web-update", - 14936: "hde-lcesrvr-1", - 14937: "hde-lcesrvr-2", - 15000: "hydap", - 15118: "v2g-secc", - 15345: "xpilot", - 15363: "3link", - 15555: "cisco-snat", - 15660: "bex-xr", - 15740: "ptp", - 15998: "2ping", - 16003: "alfin", - 16161: "sun-sea-port", - 16309: "etb4j", - 16310: "pduncs", - 16311: "pdefmns", - 16360: "netserialext1", - 16361: "netserialext2", - 16367: "netserialext3", - 16368: "netserialext4", - 16384: "connected", - 16666: "vtp", - 16900: "newbay-snc-mc", - 16950: "sgcip", - 16991: "intel-rci-mp", - 16992: "amt-soap-http", - 16993: "amt-soap-https", - 16994: "amt-redir-tcp", - 16995: "amt-redir-tls", - 17007: "isode-dua", - 17185: "soundsvirtual", - 17219: "chipper", - 17220: "avtp", - 17221: "avdecc", - 17222: "cpsp", - 17224: "trdp-pd", - 17225: "trdp-md", - 17234: "integrius-stp", - 17235: "ssh-mgmt", - 17500: "db-lsp-disc", - 17729: "ea", - 17754: "zep", - 17755: "zigbee-ip", - 17756: "zigbee-ips", - 18000: "biimenu", - 18181: "opsec-cvp", - 18182: "opsec-ufp", - 18183: "opsec-sam", - 18184: "opsec-lea", - 18185: "opsec-omi", - 18186: "ohsc", - 18187: "opsec-ela", - 18241: "checkpoint-rtm", - 18262: "gv-pf", - 18463: "ac-cluster", - 18634: "rds-ib", - 18635: "rds-ip", - 18668: "vdmmesh-disc", - 18769: "ique", - 18881: "infotos", - 18888: "apc-necmp", - 19000: "igrid", - 19007: "scintilla", - 19191: "opsec-uaa", - 19194: "ua-secureagent", - 19220: "cora-disc", - 19283: "keysrvr", - 19315: "keyshadow", - 19398: "mtrgtrans", - 19410: "hp-sco", - 19411: "hp-sca", - 19412: "hp-sessmon", - 19539: "fxuptp", - 19540: "sxuptp", - 19541: "jcp", - 19788: "mle", - 19999: "dnp-sec", - 20000: "dnp", - 20001: "microsan", - 20002: "commtact-http", - 20003: "commtact-https", - 20005: "openwebnet", - 20012: "ss-idi-disc", - 20014: "opendeploy", - 20034: "nburn-id", - 20046: "tmophl7mts", - 20048: "mountd", - 20049: "nfsrdma", - 20167: "tolfab", - 20202: "ipdtp-port", - 20222: "ipulse-ics", - 20480: "emwavemsg", - 20670: "track", - 20999: "athand-mmp", - 21000: "irtrans", - 21554: "dfserver", - 21590: "vofr-gateway", - 21800: "tvpm", - 21845: "webphone", - 21846: "netspeak-is", - 21847: "netspeak-cs", - 21848: "netspeak-acd", - 21849: "netspeak-cps", - 22000: "snapenetio", - 22001: "optocontrol", - 22002: "optohost002", - 22003: "optohost003", - 22004: "optohost004", - 22005: "optohost004", - 22273: "wnn6", - 22305: "cis", - 22335: "shrewd-stream", - 22343: "cis-secure", - 22347: "wibukey", - 22350: "codemeter", - 22555: "vocaltec-phone", - 22763: "talikaserver", - 22800: "aws-brf", - 22951: "brf-gw", - 23000: "inovaport1", - 23001: "inovaport2", - 23002: "inovaport3", - 23003: "inovaport4", - 23004: "inovaport5", - 23005: "inovaport6", - 23272: "s102", - 23294: "5afe-disc", - 23333: "elxmgmt", - 23400: "novar-dbase", - 23401: "novar-alarm", - 23402: "novar-global", - 24000: "med-ltp", - 24001: "med-fsp-rx", - 24002: "med-fsp-tx", - 24003: "med-supp", - 24004: "med-ovw", - 24005: "med-ci", - 24006: "med-net-svc", - 24242: "filesphere", - 24249: "vista-4gl", - 24321: "ild", - 24322: "hid", - 24386: "intel-rci", - 24465: "tonidods", - 24554: "binkp", - 24577: "bilobit-update", - 24676: "canditv", - 24677: "flashfiler", - 24678: "proactivate", - 24680: "tcc-http", - 24850: "assoc-disc", - 24922: "find", - 25000: "icl-twobase1", - 25001: "icl-twobase2", - 25002: "icl-twobase3", - 25003: "icl-twobase4", - 25004: "icl-twobase5", - 25005: "icl-twobase6", - 25006: "icl-twobase7", - 25007: "icl-twobase8", - 25008: "icl-twobase9", - 25009: "icl-twobase10", - 25793: "vocaltec-hos", - 25900: "tasp-net", - 25901: "niobserver", - 25902: "nilinkanalyst", - 25903: "niprobe", - 25954: "bf-game", - 25955: "bf-master", - 26000: "quake", - 26133: "scscp", - 26208: "wnn6-ds", - 26260: "ezproxy", - 26261: "ezmeeting", - 26262: "k3software-svr", - 26263: "k3software-cli", - 26486: "exoline-udp", - 26487: "exoconfig", - 26489: "exonet", - 27345: "imagepump", - 27442: "jesmsjc", - 27504: "kopek-httphead", - 27782: "ars-vista", - 27999: "tw-auth-key", - 28000: "nxlmd", - 28119: "a27-ran-ran", - 28200: "voxelstorm", - 28240: "siemensgsm", - 29167: "otmp", - 30001: "pago-services1", - 30002: "pago-services2", - 30003: "amicon-fpsu-ra", - 30004: "amicon-fpsu-s", - 30260: "kingdomsonline", - 30832: "samsung-disc", - 30999: "ovobs", - 31016: "ka-kdp", - 31029: "yawn", - 31416: "xqosd", - 31457: "tetrinet", - 31620: "lm-mon", - 31765: "gamesmith-port", - 31948: "iceedcp-tx", - 31949: "iceedcp-rx", - 32034: "iracinghelper", - 32249: "t1distproc60", - 32483: "apm-link", - 32635: "sec-ntb-clnt", - 32636: "DMExpress", - 32767: "filenet-powsrm", - 32768: "filenet-tms", - 32769: "filenet-rpc", - 32770: "filenet-nch", - 32771: "filenet-rmi", - 32772: "filenet-pa", - 32773: "filenet-cm", - 32774: "filenet-re", - 32775: "filenet-pch", - 32776: "filenet-peior", - 32777: "filenet-obrok", - 32801: "mlsn", - 32896: "idmgratm", - 33123: "aurora-balaena", - 33331: "diamondport", - 33334: "speedtrace-disc", - 33434: "traceroute", - 33656: "snip-slave", - 34249: "turbonote-2", - 34378: "p-net-local", - 34379: "p-net-remote", - 34567: "edi_service", - 34962: "profinet-rt", - 34963: "profinet-rtm", - 34964: "profinet-cm", - 34980: "ethercat", - 35001: "rt-viewer", - 35004: "rt-classmanager", - 35100: "axio-disc", - 35355: "altova-lm-disc", - 36001: "allpeers", - 36411: "wlcp", - 36865: "kastenxpipe", - 37475: "neckar", - 37654: "unisys-eportal", - 38002: "crescoctrl-disc", - 38201: "galaxy7-data", - 38202: "fairview", - 38203: "agpolicy", - 39681: "turbonote-1", - 40000: "safetynetp", - 40023: "k-patentssensor", - 40841: "cscp", - 40842: "csccredir", - 40843: "csccfirewall", - 40853: "ortec-disc", - 41111: "fs-qos", - 41230: "z-wave-s", - 41794: "crestron-cip", - 41795: "crestron-ctp", - 42508: "candp", - 42509: "candrp", - 42510: "caerpc", - 43000: "recvr-rc-disc", - 43188: "reachout", - 43189: "ndm-agent-port", - 43190: "ip-provision", - 43210: "shaperai-disc", - 43439: "eq3-config", - 43440: "ew-disc-cmd", - 43441: "ciscocsdb", - 44321: "pmcd", - 44322: "pmcdproxy", - 44544: "domiq", - 44553: "rbr-debug", - 44600: "asihpi", - 44818: "EtherNet-IP-2", - 44900: "m3da-disc", - 45000: "asmp-mon", - 45054: "invision-ag", - 45514: "cloudcheck-ping", - 45678: "eba", - 45825: "qdb2service", - 45966: "ssr-servermgr", - 46999: "mediabox", - 47000: "mbus", - 47100: "jvl-mactalk", - 47557: "dbbrowse", - 47624: "directplaysrvr", - 47806: "ap", - 47808: "bacnet", - 47809: "presonus-ucnet", - 48000: "nimcontroller", - 48001: "nimspooler", - 48002: "nimhub", - 48003: "nimgtw", - 48128: "isnetserv", - 48129: "blp5", - 48556: "com-bardac-dw", - 48619: "iqobject", - 48653: "robotraconteur", - 49001: "nusdp-disc", -} -var sctpPortNames = map[SCTPPort]string{ - 9: "discard", - 20: "ftp-data", - 21: "ftp", - 22: "ssh", - 80: "http", - 179: "bgp", - 443: "https", - 1021: "exp1", - 1022: "exp2", - 1167: "cisco-ipsla", - 1720: "h323hostcall", - 2049: "nfs", - 2225: "rcip-itu", - 2904: "m2ua", - 2905: "m3ua", - 2944: "megaco-h248", - 2945: "h248-binary", - 3097: "itu-bicc-stc", - 3565: "m2pa", - 3863: "asap-sctp", - 3864: "asap-sctp-tls", - 3868: "diameter", - 4333: "ahsp", - 4502: "a25-fap-fgw", - 4711: "trinity-dist", - 4739: "ipfix", - 4740: "ipfixs", - 5060: "sip", - 5061: "sips", - 5090: "car", - 5091: "cxtp", - 5215: "noteza", - 5445: "smbdirect", - 5672: "amqp", - 5675: "v5ua", - 5868: "diameters", - 5910: "cm", - 5911: "cpdlc", - 5912: "fis", - 5913: "ads-c", - 6704: "frc-hp", - 6705: "frc-mp", - 6706: "frc-lp", - 6970: "conductor-mpx", - 7626: "simco", - 7701: "nfapi", - 7728: "osvr", - 8471: "pim-port", - 9082: "lcs-ap", - 9084: "aurora", - 9900: "iua", - 9901: "enrp-sctp", - 9902: "enrp-sctp-tls", - 11997: "wmereceiving", - 11998: "wmedistribution", - 11999: "wmereporting", - 14001: "sua", - 20049: "nfsrdma", - 25471: "rna", - 29118: "sgsap", - 29168: "sbcap", - 29169: "iuhsctpassoc", - 30100: "rwp", - 36412: "s1-control", - 36422: "x2-control", - 36423: "slmap", - 36424: "nq-ap", - 36443: "m2ap", - 36444: "m3ap", - 36462: "xw-control", - 38412: "ng-control", - 38422: "xn-control", - 38472: "f1-control", -} diff --git a/backend/vendor/github.com/google/gopacket/layers/stp.go b/backend/vendor/github.com/google/gopacket/layers/stp.go deleted file mode 100644 index bde7d7c8e..000000000 --- a/backend/vendor/github.com/google/gopacket/layers/stp.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2017 Google, Inc. All rights reserved. -// -// Use of this source code is governed by a BSD-style license -// that can be found in the LICENSE file in the root of the source -// tree. - -package layers - -import ( - "github.com/google/gopacket" -) - -// STP decode spanning tree protocol packets to transport BPDU (bridge protocol data unit) message. -type STP struct { - BaseLayer -} - -// LayerType returns gopacket.LayerTypeSTP. -func (s *STP) LayerType() gopacket.LayerType { return LayerTypeSTP } - -func decodeSTP(data []byte, p gopacket.PacketBuilder) error { - stp := &STP{} - stp.Contents = data[:] - // TODO: parse the STP protocol into actual subfields. - p.AddLayer(stp) - return nil -} diff --git a/backend/vendor/github.com/google/gopacket/layers/tcp.go b/backend/vendor/github.com/google/gopacket/layers/tcp.go deleted file mode 100644 index bcdeb4b3c..000000000 --- a/backend/vendor/github.com/google/gopacket/layers/tcp.go +++ /dev/null @@ -1,341 +0,0 @@ -// Copyright 2012 Google, Inc. All rights reserved. -// Copyright 2009-2011 Andreas Krennmair. All rights reserved. -// -// Use of this source code is governed by a BSD-style license -// that can be found in the LICENSE file in the root of the source -// tree. - -package layers - -import ( - "encoding/binary" - "encoding/hex" - "errors" - "fmt" - - "github.com/google/gopacket" -) - -// TCP is the layer for TCP headers. -type TCP struct { - BaseLayer - SrcPort, DstPort TCPPort - Seq uint32 - Ack uint32 - DataOffset uint8 - FIN, SYN, RST, PSH, ACK, URG, ECE, CWR, NS bool - Window uint16 - Checksum uint16 - Urgent uint16 - sPort, dPort []byte - Options []TCPOption - Padding []byte - opts [4]TCPOption - tcpipchecksum -} - -// TCPOptionKind represents a TCP option code. -type TCPOptionKind uint8 - -const ( - TCPOptionKindEndList = 0 - TCPOptionKindNop = 1 - TCPOptionKindMSS = 2 // len = 4 - TCPOptionKindWindowScale = 3 // len = 3 - TCPOptionKindSACKPermitted = 4 // len = 2 - TCPOptionKindSACK = 5 // len = n - TCPOptionKindEcho = 6 // len = 6, obsolete - TCPOptionKindEchoReply = 7 // len = 6, obsolete - TCPOptionKindTimestamps = 8 // len = 10 - TCPOptionKindPartialOrderConnectionPermitted = 9 // len = 2, obsolete - TCPOptionKindPartialOrderServiceProfile = 10 // len = 3, obsolete - TCPOptionKindCC = 11 // obsolete - TCPOptionKindCCNew = 12 // obsolete - TCPOptionKindCCEcho = 13 // obsolete - TCPOptionKindAltChecksum = 14 // len = 3, obsolete - TCPOptionKindAltChecksumData = 15 // len = n, obsolete -) - -func (k TCPOptionKind) String() string { - switch k { - case TCPOptionKindEndList: - return "EndList" - case TCPOptionKindNop: - return "NOP" - case TCPOptionKindMSS: - return "MSS" - case TCPOptionKindWindowScale: - return "WindowScale" - case TCPOptionKindSACKPermitted: - return "SACKPermitted" - case TCPOptionKindSACK: - return "SACK" - case TCPOptionKindEcho: - return "Echo" - case TCPOptionKindEchoReply: - return "EchoReply" - case TCPOptionKindTimestamps: - return "Timestamps" - case TCPOptionKindPartialOrderConnectionPermitted: - return "PartialOrderConnectionPermitted" - case TCPOptionKindPartialOrderServiceProfile: - return "PartialOrderServiceProfile" - case TCPOptionKindCC: - return "CC" - case TCPOptionKindCCNew: - return "CCNew" - case TCPOptionKindCCEcho: - return "CCEcho" - case TCPOptionKindAltChecksum: - return "AltChecksum" - case TCPOptionKindAltChecksumData: - return "AltChecksumData" - default: - return fmt.Sprintf("Unknown(%d)", k) - } -} - -type TCPOption struct { - OptionType TCPOptionKind - OptionLength uint8 - OptionData []byte -} - -func (t TCPOption) String() string { - hd := hex.EncodeToString(t.OptionData) - if len(hd) > 0 { - hd = " 0x" + hd - } - switch t.OptionType { - case TCPOptionKindMSS: - if len(t.OptionData) >= 2 { - return fmt.Sprintf("TCPOption(%s:%v%s)", - t.OptionType, - binary.BigEndian.Uint16(t.OptionData), - hd) - } - - case TCPOptionKindTimestamps: - if len(t.OptionData) == 8 { - return fmt.Sprintf("TCPOption(%s:%v/%v%s)", - t.OptionType, - binary.BigEndian.Uint32(t.OptionData[:4]), - binary.BigEndian.Uint32(t.OptionData[4:8]), - hd) - } - } - return fmt.Sprintf("TCPOption(%s:%s)", t.OptionType, hd) -} - -// LayerType returns gopacket.LayerTypeTCP -func (t *TCP) LayerType() gopacket.LayerType { return LayerTypeTCP } - -// SerializeTo writes the serialized form of this layer into the -// SerializationBuffer, implementing gopacket.SerializableLayer. -// See the docs for gopacket.SerializableLayer for more info. -func (t *TCP) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error { - var optionLength int - for _, o := range t.Options { - switch o.OptionType { - case 0, 1: - optionLength += 1 - default: - optionLength += 2 + len(o.OptionData) - } - } - if opts.FixLengths { - if rem := optionLength % 4; rem != 0 { - t.Padding = lotsOfZeros[:4-rem] - } - t.DataOffset = uint8((len(t.Padding) + optionLength + 20) / 4) - } - bytes, err := b.PrependBytes(20 + optionLength + len(t.Padding)) - if err != nil { - return err - } - binary.BigEndian.PutUint16(bytes, uint16(t.SrcPort)) - binary.BigEndian.PutUint16(bytes[2:], uint16(t.DstPort)) - binary.BigEndian.PutUint32(bytes[4:], t.Seq) - binary.BigEndian.PutUint32(bytes[8:], t.Ack) - binary.BigEndian.PutUint16(bytes[12:], t.flagsAndOffset()) - binary.BigEndian.PutUint16(bytes[14:], t.Window) - binary.BigEndian.PutUint16(bytes[18:], t.Urgent) - start := 20 - for _, o := range t.Options { - bytes[start] = byte(o.OptionType) - switch o.OptionType { - case 0, 1: - start++ - default: - if opts.FixLengths { - o.OptionLength = uint8(len(o.OptionData) + 2) - } - bytes[start+1] = o.OptionLength - copy(bytes[start+2:start+len(o.OptionData)+2], o.OptionData) - start += len(o.OptionData) + 2 - } - } - copy(bytes[start:], t.Padding) - if opts.ComputeChecksums { - // zero out checksum bytes in current serialization. - bytes[16] = 0 - bytes[17] = 0 - csum, err := t.computeChecksum(b.Bytes(), IPProtocolTCP) - if err != nil { - return err - } - t.Checksum = csum - } - binary.BigEndian.PutUint16(bytes[16:], t.Checksum) - return nil -} - -func (t *TCP) ComputeChecksum() (uint16, error) { - return t.computeChecksum(append(t.Contents, t.Payload...), IPProtocolTCP) -} - -func (t *TCP) flagsAndOffset() uint16 { - f := uint16(t.DataOffset) << 12 - if t.FIN { - f |= 0x0001 - } - if t.SYN { - f |= 0x0002 - } - if t.RST { - f |= 0x0004 - } - if t.PSH { - f |= 0x0008 - } - if t.ACK { - f |= 0x0010 - } - if t.URG { - f |= 0x0020 - } - if t.ECE { - f |= 0x0040 - } - if t.CWR { - f |= 0x0080 - } - if t.NS { - f |= 0x0100 - } - return f -} - -func (tcp *TCP) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { - if len(data) < 20 { - df.SetTruncated() - return fmt.Errorf("Invalid TCP header. Length %d less than 20", len(data)) - } - tcp.SrcPort = TCPPort(binary.BigEndian.Uint16(data[0:2])) - tcp.sPort = data[0:2] - tcp.DstPort = TCPPort(binary.BigEndian.Uint16(data[2:4])) - tcp.dPort = data[2:4] - tcp.Seq = binary.BigEndian.Uint32(data[4:8]) - tcp.Ack = binary.BigEndian.Uint32(data[8:12]) - tcp.DataOffset = data[12] >> 4 - tcp.FIN = data[13]&0x01 != 0 - tcp.SYN = data[13]&0x02 != 0 - tcp.RST = data[13]&0x04 != 0 - tcp.PSH = data[13]&0x08 != 0 - tcp.ACK = data[13]&0x10 != 0 - tcp.URG = data[13]&0x20 != 0 - tcp.ECE = data[13]&0x40 != 0 - tcp.CWR = data[13]&0x80 != 0 - tcp.NS = data[12]&0x01 != 0 - tcp.Window = binary.BigEndian.Uint16(data[14:16]) - tcp.Checksum = binary.BigEndian.Uint16(data[16:18]) - tcp.Urgent = binary.BigEndian.Uint16(data[18:20]) - if tcp.Options == nil { - // Pre-allocate to avoid allocating a slice. - tcp.Options = tcp.opts[:0] - } else { - tcp.Options = tcp.Options[:0] - } - tcp.Padding = tcp.Padding[:0] - if tcp.DataOffset < 5 { - return fmt.Errorf("Invalid TCP data offset %d < 5", tcp.DataOffset) - } - dataStart := int(tcp.DataOffset) * 4 - if dataStart > len(data) { - df.SetTruncated() - tcp.Payload = nil - tcp.Contents = data - return errors.New("TCP data offset greater than packet length") - } - tcp.Contents = data[:dataStart] - tcp.Payload = data[dataStart:] - // From here on, data points just to the header options. - data = data[20:dataStart] -OPTIONS: - for len(data) > 0 { - tcp.Options = append(tcp.Options, TCPOption{OptionType: TCPOptionKind(data[0])}) - opt := &tcp.Options[len(tcp.Options)-1] - switch opt.OptionType { - case TCPOptionKindEndList: // End of options - opt.OptionLength = 1 - tcp.Padding = data[1:] - break OPTIONS - case TCPOptionKindNop: // 1 byte padding - opt.OptionLength = 1 - default: - if len(data) < 2 { - df.SetTruncated() - return fmt.Errorf("Invalid TCP option length. Length %d less than 2", len(data)) - } - opt.OptionLength = data[1] - if opt.OptionLength < 2 { - return fmt.Errorf("Invalid TCP option length %d < 2", opt.OptionLength) - } else if int(opt.OptionLength) > len(data) { - df.SetTruncated() - return fmt.Errorf("Invalid TCP option length %d exceeds remaining %d bytes", opt.OptionLength, len(data)) - } - opt.OptionData = data[2:opt.OptionLength] - } - data = data[opt.OptionLength:] - } - return nil -} - -func (t *TCP) CanDecode() gopacket.LayerClass { - return LayerTypeTCP -} - -func (t *TCP) NextLayerType() gopacket.LayerType { - lt := t.DstPort.LayerType() - if lt == gopacket.LayerTypePayload { - lt = t.SrcPort.LayerType() - } - return lt -} - -func decodeTCP(data []byte, p gopacket.PacketBuilder) error { - tcp := &TCP{} - err := tcp.DecodeFromBytes(data, p) - p.AddLayer(tcp) - p.SetTransportLayer(tcp) - if err != nil { - return err - } - if p.DecodeOptions().DecodeStreamsAsDatagrams { - return p.NextDecoder(tcp.NextLayerType()) - } else { - return p.NextDecoder(gopacket.LayerTypePayload) - } -} - -func (t *TCP) TransportFlow() gopacket.Flow { - return gopacket.NewFlow(EndpointTCPPort, t.sPort, t.dPort) -} - -// For testing only -func (t *TCP) SetInternalPortsForTesting() { - t.sPort = make([]byte, 2) - t.dPort = make([]byte, 2) - binary.BigEndian.PutUint16(t.sPort, uint16(t.SrcPort)) - binary.BigEndian.PutUint16(t.dPort, uint16(t.DstPort)) -} diff --git a/backend/vendor/github.com/google/gopacket/layers/tls_handshake.go b/backend/vendor/github.com/google/gopacket/layers/tls_handshake.go deleted file mode 100644 index e45e2c7cb..000000000 --- a/backend/vendor/github.com/google/gopacket/layers/tls_handshake.go +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright 2018 The GoPacket Authors. All rights reserved. -// -// Use of this source code is governed by a BSD-style license -// that can be found in the LICENSE file in the root of the source -// tree. - -package layers - -import ( - "github.com/google/gopacket" -) - -// TLSHandshakeRecord defines the structure of a Handshare Record -type TLSHandshakeRecord struct { - TLSRecordHeader -} - -// DecodeFromBytes decodes the slice into the TLS struct. -func (t *TLSHandshakeRecord) decodeFromBytes(h TLSRecordHeader, data []byte, df gopacket.DecodeFeedback) error { - // TLS Record Header - t.ContentType = h.ContentType - t.Version = h.Version - t.Length = h.Length - - // TODO - - return nil -} diff --git a/backend/vendor/github.com/google/gopacket/.gitignore b/backend/vendor/github.com/gopacket/gopacket/.gitignore similarity index 98% rename from backend/vendor/github.com/google/gopacket/.gitignore rename to backend/vendor/github.com/gopacket/gopacket/.gitignore index 149266fdb..b79b2e2d3 100644 --- a/backend/vendor/github.com/google/gopacket/.gitignore +++ b/backend/vendor/github.com/gopacket/gopacket/.gitignore @@ -36,3 +36,4 @@ examples/reassemblydump/reassemblydump layers/gen macs/gen pcap/pcap_tester +.idea/ \ No newline at end of file diff --git a/backend/vendor/github.com/google/gopacket/AUTHORS b/backend/vendor/github.com/gopacket/gopacket/AUTHORS similarity index 100% rename from backend/vendor/github.com/google/gopacket/AUTHORS rename to backend/vendor/github.com/gopacket/gopacket/AUTHORS diff --git a/backend/vendor/github.com/google/gopacket/CONTRIBUTING.md b/backend/vendor/github.com/gopacket/gopacket/CONTRIBUTING.md similarity index 99% rename from backend/vendor/github.com/google/gopacket/CONTRIBUTING.md rename to backend/vendor/github.com/gopacket/gopacket/CONTRIBUTING.md index 99ab7a2e4..ac32ea3d2 100644 --- a/backend/vendor/github.com/google/gopacket/CONTRIBUTING.md +++ b/backend/vendor/github.com/gopacket/gopacket/CONTRIBUTING.md @@ -36,8 +36,8 @@ runs a local set of checks, which should give you relatively high confidence that your pull won't fail github pull checks. ```sh -go get github.com/google/gopacket -cd $GOROOT/src/pkg/github.com/google/gopacket +go get github.com/gopacket/gopacket +cd $GOROOT/src/pkg/github.com/gopacket/gopacket git checkout -b # create a new branch to work from ... code code code ... ./gc # Run this to do local commits, it performs a number of checks diff --git a/backend/vendor/github.com/google/gopacket/LICENSE b/backend/vendor/github.com/gopacket/gopacket/LICENSE similarity index 100% rename from backend/vendor/github.com/google/gopacket/LICENSE rename to backend/vendor/github.com/gopacket/gopacket/LICENSE diff --git a/backend/vendor/github.com/gopacket/gopacket/README.md b/backend/vendor/github.com/gopacket/gopacket/README.md new file mode 100644 index 000000000..41e74a650 --- /dev/null +++ b/backend/vendor/github.com/gopacket/gopacket/README.md @@ -0,0 +1,17 @@ +![Build Status](https://img.shields.io/github/actions/workflow/status/gopacket/gopacket/push_pr.yaml?branch=master) +![Go Version](https://img.shields.io/github/go-mod/go-version/gopacket/gopacket/master?filename=go.mod&style=flat-square) +![Latest Version](https://img.shields.io/github/v/tag/gopacket/gopacket?label=latest&style=flat-square) +![License](https://img.shields.io/github/license/gopacket/gopacket?style=flat-square) +![Open Issues](https://img.shields.io/github/issues/gopacket/gopacket?style=flat-square) +[![GoDoc](https://godoc.org/github.com/gopacket/gopacket?status.svg)](https://godoc.org/github.com/gopacket/gopacket) + +# GoPacket + +This library provides packet decoding capabilities for Go. + +Forked from the popular gopacket [repo](https://github.com/google/gopacket) by Google, this fork was created to ensure the project doesn't become stale and bugfixes, new protocols and performance improvements can be merged into it. submit your PRs here :) + +See [godoc](https://godoc.org/github.com/gopacket/gopacket) for more details. + +Minimum Go supported is 1.19 + diff --git a/backend/vendor/github.com/gopacket/gopacket/SECURITY.md b/backend/vendor/github.com/gopacket/gopacket/SECURITY.md new file mode 100644 index 000000000..b91f53755 --- /dev/null +++ b/backend/vendor/github.com/gopacket/gopacket/SECURITY.md @@ -0,0 +1,29 @@ +# Security Policy for `gopacket/gopacket` Module + +## Supported Versions + +This section provides information about the versions of the `gopacket` module that are currently being supported with security updates. + +| Version | Supported | +| ------- | ------------------ | +| 1.x.x | :white_check_mark: | + +It is highly recommended to use the supported versions to ensure the security and stability of your projects. Unsupported versions will not receive security updates, and using them may expose your projects to vulnerabilities. + +## Reporting a Vulnerability + +If you discover a vulnerability in the `gopacket` module, please take the following steps to report it: + +1. **Contact**: please use the private fork and PR function to raise the issue. + +2. **Acknowledgment**: You can expect to receive an acknowledgment of your vulnerability report within a week of submission. + +3. **Updates**: The security team will keep you updated on the status of your report and the planned resolution timeline. Updates will be provided at least once a week until the issue is resolved. + +4. **Disclosure**: If the vulnerability is confirmed, the security team will work to promptly release a fix. Details about the vulnerability and the fix will be publicly disclosed after the release, allowing users to update and secure their systems. + +5. **Acceptance or Decline**: If your report is accepted, you will be credited for the discovery, and the details will be shared in the public disclosure. If the report is declined, the security team will provide an explanation for the decision. + +Your cooperation and responsible disclosure are greatly appreciated in helping to keep the `gopacket/gopacket` module and its users secure. + +Keep in mind that `gopacket` is maintained by only a few people, so if there are multiple bugs it might take a while for them to get fixed. diff --git a/backend/vendor/github.com/google/gopacket/base.go b/backend/vendor/github.com/gopacket/gopacket/base.go similarity index 95% rename from backend/vendor/github.com/google/gopacket/base.go rename to backend/vendor/github.com/gopacket/gopacket/base.go index 91e150c21..60fbd6410 100644 --- a/backend/vendor/github.com/google/gopacket/base.go +++ b/backend/vendor/github.com/gopacket/gopacket/base.go @@ -26,6 +26,13 @@ type Layer interface { LayerPayload() []byte } +// LayerWithChecksum should be implemented by layers that contain a checksum +// that can be verified after a packet has been decoded. +type LayerWithChecksum interface { + // VerifyChecksum verifies the checksum and returns the result. + VerifyChecksum() (error, ChecksumVerificationResult) +} + // Payload is a Layer containing the payload of a packet. The definition of // what constitutes the payload of a packet depends on previous layers; for // TCP and UDP, we stop decoding above layer 4 and return the remaining diff --git a/backend/vendor/github.com/gopacket/gopacket/checksum.go b/backend/vendor/github.com/gopacket/gopacket/checksum.go new file mode 100644 index 000000000..5d46c4767 --- /dev/null +++ b/backend/vendor/github.com/gopacket/gopacket/checksum.go @@ -0,0 +1,58 @@ +// Copyright 2012 Google, Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style license +// that can be found in the LICENSE file in the root of the source +// tree. + +package gopacket + +// ChecksumVerificationResult provides information about a checksum verification. +// The checksums are represented using uint32 to fit even the largest checksums. +// If a checksum is optional and unset, Correct and Actual might mismatch even +// though Valid is true. In this case, Correct is the computed optional checksum +// and Actual is 0. +type ChecksumVerificationResult struct { + // Valid tells whether the checksum verification succeeded. + Valid bool + // Correct is the correct checksum that was expected to be found. + Correct uint32 + // Actual is the checksum that was found and which might be wrong. + Actual uint32 +} + +// ChecksumMismatch provides information about a failed checksum verification +// for a layer. +type ChecksumMismatch struct { + ChecksumVerificationResult + // Layer is the layer whose checksum is invalid. + Layer Layer + // LayerIndex is the index of the layer in the packet. + LayerIndex int +} + +// ComputeChecksum computes the internet checksum as defined in RFC1071. The +// passed-in csum is any initial checksum data that's already been computed. +func ComputeChecksum(data []byte, csum uint32) uint32 { + // to handle odd lengths, we loop to length - 1, incrementing by 2, then + // handle the last byte specifically by checking against the original + // length. + length := len(data) - 1 + for i := 0; i < length; i += 2 { + // For our test packet, doing this manually is about 25% faster + // (740 ns vs. 1000ns) than doing it by calling binary.BigEndian.Uint16. + csum += uint32(data[i]) << 8 + csum += uint32(data[i+1]) + } + if len(data)%2 == 1 { + csum += uint32(data[length]) << 8 + } + return csum +} + +// FoldChecksum folds a 32 bit checksum as defined in RFC1071. +func FoldChecksum(csum uint32) uint16 { + for csum > 0xffff { + csum = (csum >> 16) + (csum & 0xffff) + } + return ^uint16(csum) +} diff --git a/backend/vendor/github.com/google/gopacket/decode.go b/backend/vendor/github.com/gopacket/gopacket/decode.go similarity index 94% rename from backend/vendor/github.com/google/gopacket/decode.go rename to backend/vendor/github.com/gopacket/gopacket/decode.go index 2633f848e..a53312d2a 100644 --- a/backend/vendor/github.com/google/gopacket/decode.go +++ b/backend/vendor/github.com/gopacket/gopacket/decode.go @@ -28,16 +28,17 @@ var NilDecodeFeedback DecodeFeedback = nilDecodeFeedback{} // PacketBuilder is used by layer decoders to store the layers they've decoded, // and to defer future decoding via NextDecoder. // Typically, the pattern for use is: -// func (m *myDecoder) Decode(data []byte, p PacketBuilder) error { -// if myLayer, err := myDecodingLogic(data); err != nil { -// return err -// } else { -// p.AddLayer(myLayer) -// } -// // maybe do this, if myLayer is a LinkLayer -// p.SetLinkLayer(myLayer) -// return p.NextDecoder(nextDecoder) -// } +// +// func (m *myDecoder) Decode(data []byte, p PacketBuilder) error { +// if myLayer, err := myDecodingLogic(data); err != nil { +// return err +// } else { +// p.AddLayer(myLayer) +// } +// // maybe do this, if myLayer is a LinkLayer +// p.SetLinkLayer(myLayer) +// return p.NextDecoder(nextDecoder) +// } type PacketBuilder interface { DecodeFeedback // AddLayer should be called by a decoder immediately upon successful diff --git a/backend/vendor/github.com/google/gopacket/doc.go b/backend/vendor/github.com/gopacket/gopacket/doc.go similarity index 58% rename from backend/vendor/github.com/google/gopacket/doc.go rename to backend/vendor/github.com/gopacket/gopacket/doc.go index b46e43dfa..2927c4e4d 100644 --- a/backend/vendor/github.com/google/gopacket/doc.go +++ b/backend/vendor/github.com/gopacket/gopacket/doc.go @@ -10,14 +10,14 @@ Package gopacket provides packet decoding for the Go language. gopacket contains many sub-packages with additional functionality you may find useful, including: - * layers: You'll probably use this every time. This contains of the logic - built into gopacket for decoding packet protocols. Note that all example - code below assumes that you have imported both gopacket and - gopacket/layers. - * pcap: C bindings to use libpcap to read packets off the wire. - * pfring: C bindings to use PF_RING to read packets off the wire. - * afpacket: C bindings for Linux's AF_PACKET to read packets off the wire. - * tcpassembly: TCP stream reassembly + - layers: You'll probably use this every time. This contains of the logic + built into gopacket for decoding packet protocols. Note that all example + code below assumes that you have imported both gopacket and + gopacket/layers. + - pcap: C bindings to use libpcap to read packets off the wire. + - pfring: C bindings to use PF_RING to read packets off the wire. + - afpacket: C bindings for Linux's AF_PACKET to read packets off the wire. + - tcpassembly: TCP stream reassembly Also, if you're looking to dive right into code, see the examples subdirectory for numerous simple binaries built using gopacket libraries. @@ -25,40 +25,39 @@ for numerous simple binaries built using gopacket libraries. Minimum go version required is 1.5 except for pcapgo/EthernetHandle, afpacket, and bsdbpf which need at least 1.7 due to x/sys/unix dependencies. -Basic Usage +# Basic Usage gopacket takes in packet data as a []byte and decodes it into a packet with a non-zero number of "layers". Each layer corresponds to a protocol within the bytes. Once a packet has been decoded, the layers of the packet can be requested from the packet. - // Decode a packet - packet := gopacket.NewPacket(myPacketData, layers.LayerTypeEthernet, gopacket.Default) - // Get the TCP layer from this packet - if tcpLayer := packet.Layer(layers.LayerTypeTCP); tcpLayer != nil { - fmt.Println("This is a TCP packet!") - // Get actual TCP data from this layer - tcp, _ := tcpLayer.(*layers.TCP) - fmt.Printf("From src port %d to dst port %d\n", tcp.SrcPort, tcp.DstPort) - } - // Iterate over all layers, printing out each layer type - for _, layer := range packet.Layers() { - fmt.Println("PACKET LAYER:", layer.LayerType()) - } + // Decode a packet + packet := gopacket.NewPacket(myPacketData, layers.LayerTypeEthernet, gopacket.Default) + // Get the TCP layer from this packet + if tcpLayer := packet.Layer(layers.LayerTypeTCP); tcpLayer != nil { + fmt.Println("This is a TCP packet!") + // Get actual TCP data from this layer + tcp, _ := tcpLayer.(*layers.TCP) + fmt.Printf("From src port %d to dst port %d\n", tcp.SrcPort, tcp.DstPort) + } + // Iterate over all layers, printing out each layer type + for _, layer := range packet.Layers() { + fmt.Println("PACKET LAYER:", layer.LayerType()) + } Packets can be decoded from a number of starting points. Many of our base types implement Decoder, which allow us to decode packets for which we don't have full data. - // Decode an ethernet packet - ethP := gopacket.NewPacket(p1, layers.LayerTypeEthernet, gopacket.Default) - // Decode an IPv6 header and everything it contains - ipP := gopacket.NewPacket(p2, layers.LayerTypeIPv6, gopacket.Default) - // Decode a TCP header and its payload - tcpP := gopacket.NewPacket(p3, layers.LayerTypeTCP, gopacket.Default) + // Decode an ethernet packet + ethP := gopacket.NewPacket(p1, layers.LayerTypeEthernet, gopacket.Default) + // Decode an IPv6 header and everything it contains + ipP := gopacket.NewPacket(p2, layers.LayerTypeIPv6, gopacket.Default) + // Decode a TCP header and its payload + tcpP := gopacket.NewPacket(p3, layers.LayerTypeTCP, gopacket.Default) - -Reading Packets From A Source +# Reading Packets From A Source Most of the time, you won't just have a []byte of packet data lying around. Instead, you'll want to read packets in from somewhere (file, interface, etc) @@ -77,29 +76,28 @@ Packets function, which returns a channel, then asynchronously writes new packets into that channel, closing the channel if the packetSource hits an end-of-file. - packetSource := ... // construct using pcap or pfring - for packet := range packetSource.Packets() { - handlePacket(packet) // do something with each packet - } + packetSource := ... // construct using pcap or pfring + for packet := range packetSource.Packets() { + handlePacket(packet) // do something with each packet + } You can change the decoding options of the packetSource by setting fields in packetSource.DecodeOptions... see the following sections for more details. - -Lazy Decoding +# Lazy Decoding gopacket optionally decodes packet data lazily, meaning it only decodes a packet layer when it needs to handle a function call. - // Create a packet, but don't actually decode anything yet - packet := gopacket.NewPacket(myPacketData, layers.LayerTypeEthernet, gopacket.Lazy) - // Now, decode the packet up to the first IPv4 layer found but no further. - // If no IPv4 layer was found, the whole packet will be decoded looking for - // it. - ip4 := packet.Layer(layers.LayerTypeIPv4) - // Decode all layers and return them. The layers up to the first IPv4 layer - // are already decoded, and will not require decoding a second time. - layers := packet.Layers() + // Create a packet, but don't actually decode anything yet + packet := gopacket.NewPacket(myPacketData, layers.LayerTypeEthernet, gopacket.Lazy) + // Now, decode the packet up to the first IPv4 layer found but no further. + // If no IPv4 layer was found, the whole packet will be decoded looking for + // it. + ip4 := packet.Layer(layers.LayerTypeIPv4) + // Decode all layers and return them. The layers up to the first IPv4 layer + // are already decoded, and will not require decoding a second time. + layers := packet.Layers() Lazily-decoded packets are not concurrency-safe. Since layers have not all been decoded, each call to Layer() or Layers() has the potential to mutate the packet @@ -108,8 +106,7 @@ in multiple goroutines concurrently, don't use gopacket.Lazy. Then gopacket will decode the packet fully, and all future function calls won't mutate the object. - -NoCopy Decoding +# NoCopy Decoding By default, gopacket will copy the slice passed to NewPacket and store the copy within the packet, so future mutations to the bytes underlying the slice @@ -117,20 +114,19 @@ don't affect the packet and its layers. If you can guarantee that the underlying slice bytes won't be changed, you can use NoCopy to tell gopacket.NewPacket, and it'll use the passed-in slice itself. - // This channel returns new byte slices, each of which points to a new - // memory location that's guaranteed immutable for the duration of the - // packet. - for data := range myByteSliceChannel { - p := gopacket.NewPacket(data, layers.LayerTypeEthernet, gopacket.NoCopy) - doSomethingWithPacket(p) - } + // This channel returns new byte slices, each of which points to a new + // memory location that's guaranteed immutable for the duration of the + // packet. + for data := range myByteSliceChannel { + p := gopacket.NewPacket(data, layers.LayerTypeEthernet, gopacket.NoCopy) + doSomethingWithPacket(p) + } The fastest method of decoding is to use both Lazy and NoCopy, but note from the many caveats above that for some implementations either or both may be dangerous. - -Pointers To Known Layers +# Pointers To Known Layers During decoding, certain layers are stored in the packet as well-known layer types. For example, IPv4 and IPv6 are both considered NetworkLayer @@ -146,30 +142,29 @@ while the final layer provides a Payload function to get payload data. This is helpful, for example, to get payloads for all packets regardless of their underlying data type: - // Get packets from some source - for packet := range someSource { - if app := packet.ApplicationLayer(); app != nil { - if strings.Contains(string(app.Payload()), "magic string") { - fmt.Println("Found magic string in a packet!") - } - } - } + // Get packets from some source + for packet := range someSource { + if app := packet.ApplicationLayer(); app != nil { + if strings.Contains(string(app.Payload()), "magic string") { + fmt.Println("Found magic string in a packet!") + } + } + } A particularly useful layer is ErrorLayer, which is set whenever there's an error parsing part of the packet. - packet := gopacket.NewPacket(myPacketData, layers.LayerTypeEthernet, gopacket.Default) - if err := packet.ErrorLayer(); err != nil { - fmt.Println("Error decoding some part of the packet:", err) - } + packet := gopacket.NewPacket(myPacketData, layers.LayerTypeEthernet, gopacket.Default) + if err := packet.ErrorLayer(); err != nil { + fmt.Println("Error decoding some part of the packet:", err) + } Note that we don't return an error from NewPacket because we may have decoded a number of layers successfully before running into our erroneous layer. You may still be able to get your Ethernet and IPv4 layers correctly, even if your TCP layer is malformed. - -Flow And Endpoint +# Flow And Endpoint gopacket has two useful objects, Flow and Endpoint, for communicating in a protocol independent manner the fact that a packet is coming from A and going to B. @@ -185,91 +180,89 @@ example, for LayerTypeIPv4, an Endpoint contains the IP address bytes for a v4 IP packet. A Flow can be broken into Endpoints, and Endpoints can be combined into Flows: - packet := gopacket.NewPacket(myPacketData, layers.LayerTypeEthernet, gopacket.Lazy) - netFlow := packet.NetworkLayer().NetworkFlow() - src, dst := netFlow.Endpoints() - reverseFlow := gopacket.NewFlow(dst, src) + packet := gopacket.NewPacket(myPacketData, layers.LayerTypeEthernet, gopacket.Lazy) + netFlow := packet.NetworkLayer().NetworkFlow() + src, dst := netFlow.Endpoints() + reverseFlow := gopacket.NewFlow(dst, src) Both Endpoint and Flow objects can be used as map keys, and the equality operator can compare them, so you can easily group together all packets based on endpoint criteria: - flows := map[gopacket.Endpoint]chan gopacket.Packet - packet := gopacket.NewPacket(myPacketData, layers.LayerTypeEthernet, gopacket.Lazy) - // Send all TCP packets to channels based on their destination port. - if tcp := packet.Layer(layers.LayerTypeTCP); tcp != nil { - flows[tcp.TransportFlow().Dst()] <- packet - } - // Look for all packets with the same source and destination network address - if net := packet.NetworkLayer(); net != nil { - src, dst := net.NetworkFlow().Endpoints() - if src == dst { - fmt.Println("Fishy packet has same network source and dst: %s", src) - } - } - // Find all packets coming from UDP port 1000 to UDP port 500 - interestingFlow := gopacket.FlowFromEndpoints(layers.NewUDPPortEndpoint(1000), layers.NewUDPPortEndpoint(500)) - if t := packet.NetworkLayer(); t != nil && t.TransportFlow() == interestingFlow { - fmt.Println("Found that UDP flow I was looking for!") - } + flows := map[gopacket.Endpoint]chan gopacket.Packet + packet := gopacket.NewPacket(myPacketData, layers.LayerTypeEthernet, gopacket.Lazy) + // Send all TCP packets to channels based on their destination port. + if tcp := packet.Layer(layers.LayerTypeTCP); tcp != nil { + flows[tcp.TransportFlow().Dst()] <- packet + } + // Look for all packets with the same source and destination network address + if net := packet.NetworkLayer(); net != nil { + src, dst := net.NetworkFlow().Endpoints() + if src == dst { + fmt.Println("Fishy packet has same network source and dst: %s", src) + } + } + // Find all packets coming from UDP port 1000 to UDP port 500 + interestingFlow := gopacket.FlowFromEndpoints(layers.NewUDPPortEndpoint(1000), layers.NewUDPPortEndpoint(500)) + if t := packet.NetworkLayer(); t != nil && t.TransportFlow() == interestingFlow { + fmt.Println("Found that UDP flow I was looking for!") + } For load-balancing purposes, both Flow and Endpoint have FastHash() functions, which provide quick, non-cryptographic hashes of their contents. Of particular importance is the fact that Flow FastHash() is symmetric: A->B will have the same hash as B->A. An example usage could be: - channels := [8]chan gopacket.Packet - for i := 0; i < 8; i++ { - channels[i] = make(chan gopacket.Packet) - go packetHandler(channels[i]) - } - for packet := range getPackets() { - if net := packet.NetworkLayer(); net != nil { - channels[int(net.NetworkFlow().FastHash()) & 0x7] <- packet - } - } + channels := [8]chan gopacket.Packet + for i := 0; i < 8; i++ { + channels[i] = make(chan gopacket.Packet) + go packetHandler(channels[i]) + } + for packet := range getPackets() { + if net := packet.NetworkLayer(); net != nil { + channels[int(net.NetworkFlow().FastHash()) & 0x7] <- packet + } + } This allows us to split up a packet stream while still making sure that each stream sees all packets for a flow (and its bidirectional opposite). - -Implementing Your Own Decoder +# Implementing Your Own Decoder If your network has some strange encapsulation, you can implement your own decoder. In this example, we handle Ethernet packets which are encapsulated in a 4-byte header. - // Create a layer type, should be unique and high, so it doesn't conflict, - // giving it a name and a decoder to use. - var MyLayerType = gopacket.RegisterLayerType(12345, gopacket.LayerTypeMetadata{Name: "MyLayerType", Decoder: gopacket.DecodeFunc(decodeMyLayer)}) - - // Implement my layer - type MyLayer struct { - StrangeHeader []byte - payload []byte - } - func (m MyLayer) LayerType() gopacket.LayerType { return MyLayerType } - func (m MyLayer) LayerContents() []byte { return m.StrangeHeader } - func (m MyLayer) LayerPayload() []byte { return m.payload } - - // Now implement a decoder... this one strips off the first 4 bytes of the - // packet. - func decodeMyLayer(data []byte, p gopacket.PacketBuilder) error { - // Create my layer - p.AddLayer(&MyLayer{data[:4], data[4:]}) - // Determine how to handle the rest of the packet - return p.NextDecoder(layers.LayerTypeEthernet) - } - - // Finally, decode your packets: - p := gopacket.NewPacket(data, MyLayerType, gopacket.Lazy) + // Create a layer type, should be unique and high, so it doesn't conflict, + // giving it a name and a decoder to use. + var MyLayerType = gopacket.RegisterLayerType(12345, gopacket.LayerTypeMetadata{Name: "MyLayerType", Decoder: gopacket.DecodeFunc(decodeMyLayer)}) + + // Implement my layer + type MyLayer struct { + StrangeHeader []byte + payload []byte + } + func (m MyLayer) LayerType() gopacket.LayerType { return MyLayerType } + func (m MyLayer) LayerContents() []byte { return m.StrangeHeader } + func (m MyLayer) LayerPayload() []byte { return m.payload } + + // Now implement a decoder... this one strips off the first 4 bytes of the + // packet. + func decodeMyLayer(data []byte, p gopacket.PacketBuilder) error { + // Create my layer + p.AddLayer(&MyLayer{data[:4], data[4:]}) + // Determine how to handle the rest of the packet + return p.NextDecoder(layers.LayerTypeEthernet) + } + + // Finally, decode your packets: + p := gopacket.NewPacket(data, MyLayerType, gopacket.Lazy) See the docs for Decoder and PacketBuilder for more details on how coding decoders works, or look at RegisterLayerType and RegisterEndpointType to see how to add layer/endpoint types to gopacket. - -Fast Decoding With DecodingLayerParser +# Fast Decoding With DecodingLayerParser TLDR: DecodingLayerParser takes about 10% of the time as NewPacket to decode packet data, but only for known packet stacks. @@ -283,28 +276,28 @@ DecodingLayerParser avoids memory allocation altogether by decoding packet layers directly into preallocated objects, which you can then reference to get the packet's information. A quick example: - func main() { - var eth layers.Ethernet - var ip4 layers.IPv4 - var ip6 layers.IPv6 - var tcp layers.TCP - parser := gopacket.NewDecodingLayerParser(layers.LayerTypeEthernet, ð, &ip4, &ip6, &tcp) - decoded := []gopacket.LayerType{} - for packetData := range somehowGetPacketData() { - if err := parser.DecodeLayers(packetData, &decoded); err != nil { - fmt.Fprintf(os.Stderr, "Could not decode layers: %v\n", err) - continue - } - for _, layerType := range decoded { - switch layerType { - case layers.LayerTypeIPv6: - fmt.Println(" IP6 ", ip6.SrcIP, ip6.DstIP) - case layers.LayerTypeIPv4: - fmt.Println(" IP4 ", ip4.SrcIP, ip4.DstIP) - } - } - } - } + func main() { + var eth layers.Ethernet + var ip4 layers.IPv4 + var ip6 layers.IPv6 + var tcp layers.TCP + parser := gopacket.NewDecodingLayerParser(layers.LayerTypeEthernet, ð, &ip4, &ip6, &tcp) + decoded := []gopacket.LayerType{} + for packetData := range somehowGetPacketData() { + if err := parser.DecodeLayers(packetData, &decoded); err != nil { + fmt.Fprintf(os.Stderr, "Could not decode layers: %v\n", err) + continue + } + for _, layerType := range decoded { + switch layerType { + case layers.LayerTypeIPv6: + fmt.Println(" IP6 ", ip6.SrcIP, ip6.DstIP) + case layers.LayerTypeIPv4: + fmt.Println(" IP4 ", ip4.SrcIP, ip4.DstIP) + } + } + } + } The important thing to note here is that the parser is modifying the passed in layers (eth, ip4, ip6, tcp) instead of allocating new ones, thus greatly @@ -320,7 +313,7 @@ implementing the DecodingLayer interface are usable. Also, it's possible to create DecodingLayers that are not themselves Layers... see layers.IPv6ExtensionSkipper for an example of this. -Faster And Customized Decoding with DecodingLayerContainer +# Faster And Customized Decoding with DecodingLayerContainer By default, DecodingLayerParser uses native map to store and search for a layer to decode. Though being versatile, in some cases this solution may be not so @@ -332,44 +325,44 @@ along with its implementations: DecodingLayerSparse, DecodingLayerArray and DecodingLayerMap. You can specify a container implementation to DecodingLayerParser with SetDecodingLayerContainer method. Example: - dlp := gopacket.NewDecodingLayerParser(LayerTypeEthernet) - dlp.SetDecodingLayerContainer(gopacket.DecodingLayerSparse(nil)) - var eth layers.Ethernet - dlp.AddDecodingLayer(ð) - // ... add layers and use DecodingLayerParser as usual... + dlp := gopacket.NewDecodingLayerParser(LayerTypeEthernet) + dlp.SetDecodingLayerContainer(gopacket.DecodingLayerSparse(nil)) + var eth layers.Ethernet + dlp.AddDecodingLayer(ð) + // ... add layers and use DecodingLayerParser as usual... To skip one level of indirection (though sacrificing some capabilities) you may also use DecodingLayerContainer as a decoding tool as it is. In this case you have to handle unknown layer types and layer panics by yourself. Example: - func main() { - var eth layers.Ethernet - var ip4 layers.IPv4 - var ip6 layers.IPv6 - var tcp layers.TCP - dlc := gopacket.DecodingLayerContainer(gopacket.DecodingLayerArray(nil)) - dlc = dlc.Put(ð) - dlc = dlc.Put(&ip4) - dlc = dlc.Put(&ip6) - dlc = dlc.Put(&tcp) - // you may specify some meaningful DecodeFeedback - decoder := dlc.LayersDecoder(LayerTypeEthernet, gopacket.NilDecodeFeedback) - decoded := make([]gopacket.LayerType, 0, 20) - for packetData := range somehowGetPacketData() { - lt, err := decoder(packetData, &decoded) - if err != nil { - fmt.Fprintf(os.Stderr, "Could not decode layers: %v\n", err) - continue - } - if lt != gopacket.LayerTypeZero { - fmt.Fprintf(os.Stderr, "unknown layer type: %v\n", lt) - continue - } - for _, layerType := range decoded { - // examine decoded layertypes just as already shown above - } - } - } + func main() { + var eth layers.Ethernet + var ip4 layers.IPv4 + var ip6 layers.IPv6 + var tcp layers.TCP + dlc := gopacket.DecodingLayerContainer(gopacket.DecodingLayerArray(nil)) + dlc = dlc.Put(ð) + dlc = dlc.Put(&ip4) + dlc = dlc.Put(&ip6) + dlc = dlc.Put(&tcp) + // you may specify some meaningful DecodeFeedback + decoder := dlc.LayersDecoder(LayerTypeEthernet, gopacket.NilDecodeFeedback) + decoded := make([]gopacket.LayerType, 0, 20) + for packetData := range somehowGetPacketData() { + lt, err := decoder(packetData, &decoded) + if err != nil { + fmt.Fprintf(os.Stderr, "Could not decode layers: %v\n", err) + continue + } + if lt != gopacket.LayerTypeZero { + fmt.Fprintf(os.Stderr, "unknown layer type: %v\n", lt) + continue + } + for _, layerType := range decoded { + // examine decoded layertypes just as already shown above + } + } + } DecodingLayerSparse is the fastest but most effective when LayerType values that layers in use can decode are not large because otherwise that would lead @@ -382,23 +375,23 @@ subpackage to further examine usage examples and performance measurements. You may also choose to implement your own DecodingLayerContainer if you want to make use of your own internal packet decoding logic. -Creating Packet Data +# Creating Packet Data As well as offering the ability to decode packet data, gopacket will allow you to create packets from scratch, as well. A number of gopacket layers implement the SerializableLayer interface; these layers can be serialized to a []byte in the following manner: - ip := &layers.IPv4{ - SrcIP: net.IP{1, 2, 3, 4}, - DstIP: net.IP{5, 6, 7, 8}, - // etc... - } - buf := gopacket.NewSerializeBuffer() - opts := gopacket.SerializeOptions{} // See SerializeOptions for more details. - err := ip.SerializeTo(buf, opts) - if err != nil { panic(err) } - fmt.Println(buf.Bytes()) // prints out a byte slice containing the serialized IPv4 layer. + ip := &layers.IPv4{ + SrcIP: net.IP{1, 2, 3, 4}, + DstIP: net.IP{5, 6, 7, 8}, + // etc... + } + buf := gopacket.NewSerializeBuffer() + opts := gopacket.SerializeOptions{} // See SerializeOptions for more details. + err := ip.SerializeTo(buf, opts) + if err != nil { panic(err) } + fmt.Println(buf.Bytes()) // prints out a byte slice containing the serialized IPv4 layer. SerializeTo PREPENDS the given layer onto the SerializeBuffer, and they treat the current buffer's Bytes() slice as the payload of the serializing layer. @@ -409,24 +402,24 @@ SerializeBuffer's SerializeLayers function is a helper that does exactly that. To generate a (empty and useless, because no fields are set) Ethernet(IPv4(TCP(Payload))) packet, for example, you can run: - buf := gopacket.NewSerializeBuffer() - opts := gopacket.SerializeOptions{} - gopacket.SerializeLayers(buf, opts, - &layers.Ethernet{}, - &layers.IPv4{}, - &layers.TCP{}, - gopacket.Payload([]byte{1, 2, 3, 4})) - packetData := buf.Bytes() + buf := gopacket.NewSerializeBuffer() + opts := gopacket.SerializeOptions{} + gopacket.SerializeLayers(buf, opts, + &layers.Ethernet{}, + &layers.IPv4{}, + &layers.TCP{}, + gopacket.Payload([]byte{1, 2, 3, 4})) + packetData := buf.Bytes() -A Final Note +# A Final Note If you use gopacket, you'll almost definitely want to make sure gopacket/layers is imported, since when imported it sets all the LayerType variables and fills in a lot of interesting variables/maps (DecodersByLayerName, etc). Therefore, it's recommended that even if you don't use any layers functions directly, you still import with: - import ( - _ "github.com/google/gopacket/layers" - ) + import ( + _ "github.com/gopacket/gopacket/layers" + ) */ package gopacket diff --git a/backend/vendor/github.com/google/gopacket/flows.go b/backend/vendor/github.com/gopacket/gopacket/flows.go similarity index 100% rename from backend/vendor/github.com/google/gopacket/flows.go rename to backend/vendor/github.com/gopacket/gopacket/flows.go diff --git a/backend/vendor/github.com/google/gopacket/gc b/backend/vendor/github.com/gopacket/gopacket/gc similarity index 100% rename from backend/vendor/github.com/google/gopacket/gc rename to backend/vendor/github.com/gopacket/gopacket/gc diff --git a/backend/vendor/github.com/google/gopacket/layerclass.go b/backend/vendor/github.com/gopacket/gopacket/layerclass.go similarity index 100% rename from backend/vendor/github.com/google/gopacket/layerclass.go rename to backend/vendor/github.com/gopacket/gopacket/layerclass.go diff --git a/backend/vendor/github.com/google/gopacket/layers/.lint_blacklist b/backend/vendor/github.com/gopacket/gopacket/layers/.lint_blacklist similarity index 96% rename from backend/vendor/github.com/google/gopacket/layers/.lint_blacklist rename to backend/vendor/github.com/gopacket/gopacket/layers/.lint_blacklist index fded4f665..1950bc707 100644 --- a/backend/vendor/github.com/google/gopacket/layers/.lint_blacklist +++ b/backend/vendor/github.com/gopacket/gopacket/layers/.lint_blacklist @@ -15,6 +15,7 @@ linux_sll.go llc.go lldp.go mpls.go +multipathtcp.go ndp.go ntp.go ospf.go diff --git a/backend/vendor/github.com/google/gopacket/layers/arp.go b/backend/vendor/github.com/gopacket/gopacket/layers/arp.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/arp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/arp.go index 0775ac0b6..64120253a 100644 --- a/backend/vendor/github.com/google/gopacket/layers/arp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/arp.go @@ -12,7 +12,7 @@ import ( "errors" "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // Potential values for ARP.Operation. diff --git a/backend/vendor/github.com/google/gopacket/layers/asf.go b/backend/vendor/github.com/gopacket/gopacket/layers/asf.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/asf.go rename to backend/vendor/github.com/gopacket/gopacket/layers/asf.go index d698bd0e5..c714e9f4e 100644 --- a/backend/vendor/github.com/google/gopacket/layers/asf.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/asf.go @@ -12,7 +12,7 @@ import ( "encoding/binary" "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) const ( diff --git a/backend/vendor/github.com/google/gopacket/layers/asf_presencepong.go b/backend/vendor/github.com/gopacket/gopacket/layers/asf_presencepong.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/asf_presencepong.go rename to backend/vendor/github.com/gopacket/gopacket/layers/asf_presencepong.go index e9a8baf16..526cca4b9 100644 --- a/backend/vendor/github.com/google/gopacket/layers/asf_presencepong.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/asf_presencepong.go @@ -16,7 +16,7 @@ import ( "encoding/binary" "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) type ( diff --git a/backend/vendor/github.com/google/gopacket/layers/base.go b/backend/vendor/github.com/gopacket/gopacket/layers/base.go similarity index 97% rename from backend/vendor/github.com/google/gopacket/layers/base.go rename to backend/vendor/github.com/gopacket/gopacket/layers/base.go index cd59b4678..6a8b52dab 100644 --- a/backend/vendor/github.com/google/gopacket/layers/base.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/base.go @@ -7,7 +7,7 @@ package layers import ( - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // BaseLayer is a convenience struct which implements the LayerData and diff --git a/backend/vendor/github.com/google/gopacket/layers/bfd.go b/backend/vendor/github.com/gopacket/gopacket/layers/bfd.go similarity index 76% rename from backend/vendor/github.com/google/gopacket/layers/bfd.go rename to backend/vendor/github.com/gopacket/gopacket/layers/bfd.go index 43030fb6a..e66fd1ee0 100644 --- a/backend/vendor/github.com/google/gopacket/layers/bfd.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/bfd.go @@ -11,7 +11,7 @@ import ( "encoding/binary" "errors" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // BFD Control Packet Format @@ -19,72 +19,72 @@ import ( // The current version of BFD's RFC (RFC 5880) contains the following // diagram for the BFD Control packet format: // -// 0 1 2 3 -// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// |Vers | Diag |Sta|P|F|C|A|D|M| Detect Mult | Length | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | My Discriminator | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Your Discriminator | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Desired Min TX Interval | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Required Min RX Interval | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Required Min Echo RX Interval | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// 0 1 2 3 +// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// |Vers | Diag |Sta|P|F|C|A|D|M| Detect Mult | Length | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | My Discriminator | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Your Discriminator | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Desired Min TX Interval | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Required Min RX Interval | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Required Min Echo RX Interval | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ // -// An optional Authentication Section MAY be present: +// An optional Authentication Section MAY be present: // -// 0 1 2 3 -// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Auth Type | Auth Len | Authentication Data... | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// 0 1 2 3 +// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Auth Type | Auth Len | Authentication Data... | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ // // -// Simple Password Authentication Section Format -// --------------------------------------------- -// 0 1 2 3 -// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Auth Type | Auth Len | Auth Key ID | Password... | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | ... | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// Simple Password Authentication Section Format +// --------------------------------------------- +// 0 1 2 3 +// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Auth Type | Auth Len | Auth Key ID | Password... | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | ... | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ // // -// Keyed MD5 and Meticulous Keyed MD5 Authentication Section Format -// ---------------------------------------------------------------- -// 0 1 2 3 -// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Auth Type | Auth Len | Auth Key ID | Reserved | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Sequence Number | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Auth Key/Digest... | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | ... | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// Keyed MD5 and Meticulous Keyed MD5 Authentication Section Format +// ---------------------------------------------------------------- +// 0 1 2 3 +// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Auth Type | Auth Len | Auth Key ID | Reserved | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Sequence Number | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Auth Key/Digest... | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | ... | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ // // -// Keyed SHA1 and Meticulous Keyed SHA1 Authentication Section Format -// ------------------------------------------------------------------ -// 0 1 2 3 -// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Auth Type | Auth Len | Auth Key ID | Reserved | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Sequence Number | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Auth Key/Hash... | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | ... | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// Keyed SHA1 and Meticulous Keyed SHA1 Authentication Section Format +// ------------------------------------------------------------------ +// 0 1 2 3 +// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Auth Type | Auth Len | Auth Key ID | Reserved | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Sequence Number | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Auth Key/Hash... | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | ... | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ // -// From https://tools.ietf.org/rfc/rfc5880.txt +// From https://tools.ietf.org/rfc/rfc5880.txt const bfdMinimumRecordSizeInBytes int = 24 // BFDVersion represents the version as decoded from the BFD control message @@ -248,17 +248,20 @@ func (h *BFDAuthHeader) Length() int { // ---------- // // Wikipedia's BFD entry: -// https://en.wikipedia.org/wiki/Bidirectional_Forwarding_Detection -// This is the best place to get an overview of BFD. +// +// https://en.wikipedia.org/wiki/Bidirectional_Forwarding_Detection +// This is the best place to get an overview of BFD. // // RFC 5880 "Bidirectional Forwarding Detection (BFD)" (2010) -// https://tools.ietf.org/html/rfc5880 -// This is the original BFD specification. +// +// https://tools.ietf.org/html/rfc5880 +// This is the original BFD specification. // // RFC 5881 "Bidirectional Forwarding Detection (BFD) for IPv4 and IPv6 (Single Hop)" (2010) -// https://tools.ietf.org/html/rfc5881 -// Describes the use of the Bidirectional Forwarding Detection (BFD) -// protocol over IPv4 and IPv6 for single IP hops. +// +// https://tools.ietf.org/html/rfc5881 +// Describes the use of the Bidirectional Forwarding Detection (BFD) +// protocol over IPv4 and IPv6 for single IP hops. type BFD struct { BaseLayer // Stores the packet bytes and payload bytes. diff --git a/backend/vendor/github.com/gopacket/gopacket/layers/bitfield.go b/backend/vendor/github.com/gopacket/gopacket/layers/bitfield.go new file mode 100644 index 000000000..7d54acf07 --- /dev/null +++ b/backend/vendor/github.com/gopacket/gopacket/layers/bitfield.go @@ -0,0 +1,18 @@ +// Copyright 2021 The GoPacket Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license that can be found +// in the LICENSE file in the root of the source tree. + +package layers + +type bitfield [1024]uint64 + +// set sets bit i in bitfield b to 1. +func (b *bitfield) set(i uint16) { + b[i>>6] |= (1 << (i & 0x3f)) +} + +// has reports whether bit i is set to 1 in bitfield b. +func (b *bitfield) has(i uint16) bool { + return b[i>>6]&(1<<(i&0x3f)) != 0 +} diff --git a/backend/vendor/github.com/google/gopacket/layers/cdp.go b/backend/vendor/github.com/gopacket/gopacket/layers/cdp.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/cdp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/cdp.go index 095f92612..a920112e9 100644 --- a/backend/vendor/github.com/google/gopacket/layers/cdp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/cdp.go @@ -17,7 +17,7 @@ import ( "fmt" "net" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // CDPTLVType is the type of each TLV value in a CiscoDiscovery packet. diff --git a/backend/vendor/github.com/google/gopacket/layers/ctp.go b/backend/vendor/github.com/gopacket/gopacket/layers/ctp.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/ctp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/ctp.go index 82875845a..8b43cb804 100644 --- a/backend/vendor/github.com/google/gopacket/layers/ctp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/ctp.go @@ -9,7 +9,8 @@ package layers import ( "encoding/binary" "fmt" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) // EthernetCTPFunction is the function code used by the EthernetCTP protocol to identify each diff --git a/backend/vendor/github.com/google/gopacket/layers/dhcpv4.go b/backend/vendor/github.com/gopacket/gopacket/layers/dhcpv4.go similarity index 97% rename from backend/vendor/github.com/google/gopacket/layers/dhcpv4.go rename to backend/vendor/github.com/gopacket/gopacket/layers/dhcpv4.go index d79c59150..1f1e623ec 100644 --- a/backend/vendor/github.com/google/gopacket/layers/dhcpv4.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/dhcpv4.go @@ -12,7 +12,7 @@ import ( "fmt" "net" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // DHCPOp rerprents a bootp operation @@ -78,7 +78,7 @@ func (o DHCPMsgType) String() string { } } -//DHCPMagic is the RFC 2131 "magic cooke" for DHCP. +// DHCPMagic is the RFC 2131 "magic cooke" for DHCP. var DHCPMagic uint32 = 0x63825363 // DHCPv4 contains data for a single DHCP packet. @@ -87,7 +87,7 @@ type DHCPv4 struct { Operation DHCPOp HardwareType LinkType HardwareLen uint8 - HardwareOpts uint8 + RelayHops uint8 Xid uint32 Secs uint16 Flags uint16 @@ -132,7 +132,7 @@ func (d *DHCPv4) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error d.Operation = DHCPOp(data[0]) d.HardwareType = LinkType(data[1]) d.HardwareLen = data[2] - d.HardwareOpts = data[3] + d.RelayHops = data[3] d.Xid = binary.BigEndian.Uint32(data[4:8]) d.Secs = binary.BigEndian.Uint16(data[8:10]) d.Flags = binary.BigEndian.Uint16(data[10:12]) @@ -209,7 +209,7 @@ func (d *DHCPv4) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.Serialize d.HardwareLen = uint8(len(d.ClientHWAddr)) } data[2] = d.HardwareLen - data[3] = d.HardwareOpts + data[3] = d.RelayHops binary.BigEndian.PutUint32(data[4:8], d.Xid) binary.BigEndian.PutUint16(data[8:10], d.Secs) binary.BigEndian.PutUint16(data[10:12], d.Flags) @@ -222,8 +222,8 @@ func (d *DHCPv4) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.Serialize copy(data[108:236], d.File) binary.BigEndian.PutUint32(data[236:240], DHCPMagic) + offset := 240 if len(d.Options) > 0 { - offset := 240 for _, o := range d.Options { if err := o.encode(data[offset:]); err != nil { return err @@ -235,10 +235,10 @@ func (d *DHCPv4) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.Serialize offset += 2 + len(o.Data) } } - optend := NewDHCPOption(DHCPOptEnd, nil) - if err := optend.encode(data[offset:]); err != nil { - return err - } + } + optend := NewDHCPOption(DHCPOptEnd, nil) + if err := optend.encode(data[offset:]); err != nil { + return err } return nil } @@ -333,6 +333,7 @@ const ( DHCPOptDomainSearch DHCPOpt = 119 // n, string DHCPOptSIPServers DHCPOpt = 120 // n, url DHCPOptClasslessStaticRoute DHCPOpt = 121 // + DHCPOptMUDURLV4 DHCPOpt = 161 // n, string DHCPOptEnd DHCPOpt = 255 ) @@ -471,6 +472,8 @@ func (o DHCPOpt) String() string { return "DomainSearch" case DHCPOptClasslessStaticRoute: return "ClasslessStaticRoute" + case DHCPOptMUDURLV4: + return "ManufacturerUsageDescriptionURL" default: return "Unknown" } diff --git a/backend/vendor/github.com/google/gopacket/layers/dhcpv6.go b/backend/vendor/github.com/gopacket/gopacket/layers/dhcpv6.go similarity index 98% rename from backend/vendor/github.com/google/gopacket/layers/dhcpv6.go rename to backend/vendor/github.com/gopacket/gopacket/layers/dhcpv6.go index 2698cfb19..ef0c2455a 100644 --- a/backend/vendor/github.com/google/gopacket/layers/dhcpv6.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/dhcpv6.go @@ -11,7 +11,7 @@ import ( "fmt" "net" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // DHCPv6MsgType represents a DHCPv6 operation @@ -21,7 +21,7 @@ type DHCPv6MsgType byte const ( DHCPv6MsgTypeUnspecified DHCPv6MsgType = iota DHCPv6MsgTypeSolicit - DHCPv6MsgTypeAdverstise + DHCPv6MsgTypeAdvertise DHCPv6MsgTypeRequest DHCPv6MsgTypeConfirm DHCPv6MsgTypeRenew @@ -42,8 +42,8 @@ func (o DHCPv6MsgType) String() string { return "Unspecified" case DHCPv6MsgTypeSolicit: return "Solicit" - case DHCPv6MsgTypeAdverstise: - return "Adverstise" + case DHCPv6MsgTypeAdvertise: + return "Advertise" case DHCPv6MsgTypeRequest: return "Request" case DHCPv6MsgTypeConfirm: diff --git a/backend/vendor/github.com/google/gopacket/layers/dhcpv6_options.go b/backend/vendor/github.com/gopacket/gopacket/layers/dhcpv6_options.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/dhcpv6_options.go rename to backend/vendor/github.com/gopacket/gopacket/layers/dhcpv6_options.go index 5a1f9919b..fd25775b9 100644 --- a/backend/vendor/github.com/google/gopacket/layers/dhcpv6_options.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/dhcpv6_options.go @@ -11,7 +11,8 @@ import ( "encoding/binary" "errors" "fmt" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) // DHCPv6Opt represents a DHCP option or parameter from RFC-3315 diff --git a/backend/vendor/github.com/google/gopacket/layers/dns.go b/backend/vendor/github.com/gopacket/gopacket/layers/dns.go similarity index 70% rename from backend/vendor/github.com/google/gopacket/layers/dns.go rename to backend/vendor/github.com/gopacket/gopacket/layers/dns.go index de55294b5..eb39daff6 100644 --- a/backend/vendor/github.com/google/gopacket/layers/dns.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/dns.go @@ -1,4 +1,4 @@ -// Copyright 2014, 2018 GoPacket Authors. All rights reserved. +// Copyright 2014, 2018, 2024 GoPacket Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file in the root of the source @@ -13,7 +13,7 @@ import ( "net" "strings" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // DNSClass defines the class associated with a request/response. Different DNS @@ -52,26 +52,30 @@ type DNSType uint16 // DNSType known values. const ( - DNSTypeA DNSType = 1 // a host address - DNSTypeNS DNSType = 2 // an authoritative name server - DNSTypeMD DNSType = 3 // a mail destination (Obsolete - use MX) - DNSTypeMF DNSType = 4 // a mail forwarder (Obsolete - use MX) - DNSTypeCNAME DNSType = 5 // the canonical name for an alias - DNSTypeSOA DNSType = 6 // marks the start of a zone of authority - DNSTypeMB DNSType = 7 // a mailbox domain name (EXPERIMENTAL) - DNSTypeMG DNSType = 8 // a mail group member (EXPERIMENTAL) - DNSTypeMR DNSType = 9 // a mail rename domain name (EXPERIMENTAL) - DNSTypeNULL DNSType = 10 // a null RR (EXPERIMENTAL) - DNSTypeWKS DNSType = 11 // a well known service description - DNSTypePTR DNSType = 12 // a domain name pointer - DNSTypeHINFO DNSType = 13 // host information - DNSTypeMINFO DNSType = 14 // mailbox or mail list information - DNSTypeMX DNSType = 15 // mail exchange - DNSTypeTXT DNSType = 16 // text strings - DNSTypeAAAA DNSType = 28 // a IPv6 host address [RFC3596] - DNSTypeSRV DNSType = 33 // server discovery [RFC2782] [RFC6195] - DNSTypeOPT DNSType = 41 // OPT Pseudo-RR [RFC6891] - DNSTypeURI DNSType = 256 // URI RR [RFC7553] + DNSTypeA DNSType = 1 // a host address + DNSTypeNS DNSType = 2 // an authoritative name server + DNSTypeMD DNSType = 3 // a mail destination (Obsolete - use MX) + DNSTypeMF DNSType = 4 // a mail forwarder (Obsolete - use MX) + DNSTypeCNAME DNSType = 5 // the canonical name for an alias + DNSTypeSOA DNSType = 6 // marks the start of a zone of authority + DNSTypeMB DNSType = 7 // a mailbox domain name (EXPERIMENTAL) + DNSTypeMG DNSType = 8 // a mail group member (EXPERIMENTAL) + DNSTypeMR DNSType = 9 // a mail rename domain name (EXPERIMENTAL) + DNSTypeNULL DNSType = 10 // a null RR (EXPERIMENTAL) + DNSTypeWKS DNSType = 11 // a well known service description + DNSTypePTR DNSType = 12 // a domain name pointer + DNSTypeHINFO DNSType = 13 // host information + DNSTypeMINFO DNSType = 14 // mailbox or mail list information + DNSTypeMX DNSType = 15 // mail exchange + DNSTypeTXT DNSType = 16 // text strings + DNSTypeAAAA DNSType = 28 // a IPv6 host address [RFC3596] + DNSTypeSRV DNSType = 33 // server discovery [RFC2782] [RFC6195] + DNSTypeOPT DNSType = 41 // OPT Pseudo-RR [RFC6891] + DNSTypeRRSIG DNSType = 46 // RRSIG RR [RFC4034][RFC3755] + DNSTypeDNSKEY DNSType = 48 // DNSKEY RR [RFC4034][RFC3755] + DNSTypeSVCB DNSType = 64 // SVCB DNS RR [RFC9460] + DNSTypeHTTPS DNSType = 65 // HTTPS RR [RFC9460] + DNSTypeURI DNSType = 256 // URI RR [RFC7553] ) func (dt DNSType) String() string { @@ -116,6 +120,14 @@ func (dt DNSType) String() string { return "SRV" case DNSTypeOPT: return "OPT" + case DNSTypeRRSIG: + return "RRSIG" + case DNSTypeDNSKEY: + return "DNSKEY" + case DNSTypeSVCB: + return "SVCB" + case DNSTypeHTTPS: + return "HTTPS" case DNSTypeURI: return "URI" } @@ -157,7 +169,7 @@ func (drc DNSResponseCode) String() string { case DNSResponseCodeFormErr: return "Format Error" case DNSResponseCodeServFail: - return "Server Failure " + return "Server Failure" case DNSResponseCodeNXDomain: return "Non-Existent Domain" case DNSResponseCodeNotImp: @@ -445,6 +457,12 @@ func recSize(rr *DNSResourceRecord) int { l += len(opt.Data) } return l + case DNSTypeRRSIG: + return rr.RRSIG.size() + case DNSTypeDNSKEY: + return rr.DNSKEY.size() + case DNSTypeSVCB, DNSTypeHTTPS: + return rr.SVCB.size() } return 0 @@ -639,6 +657,10 @@ func (q *DNSQuestion) decode(data []byte, offset int, df gopacket.DecodeFeedback return 0, err } + if len(data) < endq+4 { + return 0, errors.New("DNS question too small") + } + q.Name = name q.Type = DNSType(binary.BigEndian.Uint16(data[endq : endq+2])) q.Class = DNSClass(binary.BigEndian.Uint16(data[endq+2 : endq+4])) @@ -696,6 +718,9 @@ type DNSResourceRecord struct { SRV DNSSRV MX DNSMX OPT []DNSOPT // See RFC 6891, section 6.1.2 + RRSIG DNSRRSIG // See RFC 4034, section 3.1 + DNSKEY DNSKEY // See RFC 4034, section 2.1 + SVCB DNSSVCB // See RFC 9460, this contains both SVCB and HTTPS URI DNSURI // Undecoded TXT for backward compatibility @@ -709,6 +734,10 @@ func (rr *DNSResourceRecord) decode(data []byte, offset int, df gopacket.DecodeF return 0, err } + if len(data) < endq+10 { + return 0, errors.New("DNS record too small") + } + rr.Name = name rr.Type = DNSType(binary.BigEndian.Uint16(data[endq : endq+2])) rr.Class = DNSClass(binary.BigEndian.Uint16(data[endq+2 : endq+4])) @@ -720,8 +749,10 @@ func (rr *DNSResourceRecord) decode(data []byte, offset int, df gopacket.DecodeF } rr.Data = data[endq+10 : end] - if err = rr.decodeRData(data[:end], endq+10, buffer); err != nil { - return 0, err + if rr.DataLength > 0 { + if err = rr.decodeRData(data[:end], endq+10, buffer); err != nil { + return 0, err + } } return endq + 10 + int(rr.DataLength), nil @@ -806,6 +837,12 @@ func (rr *DNSResourceRecord) encode(data []byte, offset int, opts gopacket.Seria copy(data[noff2+4:], opt.Data) noff2 += 4 + len(opt.Data) } + case DNSTypeRRSIG: + rr.RRSIG.encode(data, noff+10) + case DNSTypeDNSKEY: + rr.DNSKEY.encode(data, noff+10) + case DNSTypeSVCB, DNSTypeHTTPS: + rr.SVCB.encode(data, noff+10) default: return 0, fmt.Errorf("serializing resource record of type %v not supported", rr.Type) } @@ -893,6 +930,47 @@ func decodeOPTs(data []byte, offset int) ([]DNSOPT, error) { return allOPT, nil } +func decodeSVCB(data []byte, offset int, buffer *[]byte) (DNSSVCB, error) { + var svcb DNSSVCB + end := len(data) + + if offset == end { + return svcb, fmt.Errorf("DNSSVCB record is empty") + } + + if offset+3 > end { + return svcb, fmt.Errorf("DNSSVCB record is of length %d, it should be at least length 3", end-offset) + } + priority := binary.BigEndian.Uint16(data[offset:]) + target, ofs, err := decodeName(data, offset+2, buffer, 1) + if err != nil { + return svcb, err + } + + var params []DNSSvcParam + for ofs < end { + if offset+4 > end { + return svcb, fmt.Errorf("DNSSVCB record truncated in SvcParams") + } + key := DNSSvcParamKey(binary.BigEndian.Uint16(data[ofs:])) + l := int(binary.BigEndian.Uint16(data[ofs+2:])) + if ofs+4+l > end { + return svcb, fmt.Errorf("DNSSVCB record truncated in SvcParams") + } + params = append(params, DNSSvcParam{ + Key: key, + Value: data[ofs+4 : ofs+4+l], + }) + ofs += 4 + l + } + + return DNSSVCB{ + Priority: priority, + Target: target, + Params: params, + }, nil +} + func (rr *DNSResourceRecord) decodeRData(data []byte, offset int, buffer *[]byte) error { switch rr.Type { case DNSTypeA: @@ -978,6 +1056,22 @@ func (rr *DNSResourceRecord) decodeRData(data []byte, offset int, buffer *[]byte return err } rr.OPT = allOPT + case DNSTypeRRSIG: + err := rr.RRSIG.decode(data, offset) + if err != nil { + return err + } + case DNSTypeDNSKEY: + err := rr.DNSKEY.decode(data, offset) + if err != nil { + return err + } + case DNSTypeSVCB, DNSTypeHTTPS: + svcb, err := decodeSVCB(data, offset, buffer) + if err != nil { + return err + } + rr.SVCB = svcb } return nil } @@ -1003,6 +1097,277 @@ type DNSMX struct { Name []byte } +// DNSSVCB resource record is used to facilitate the lookup of +// information needed to make connections to network services, such as +// for HTTP origins. +type DNSSVCB struct { + Priority uint16 + Target []byte + Params []DNSSvcParam +} + +func (svcb DNSSVCB) size() int { + // Target. + sz := len(svcb.Target) + if sz == 0 { + sz++ + } else { + sz += 2 + } + // Priority. + sz += 2 + + // Params. + for _, param := range svcb.Params { + sz += param.size() + } + return sz +} + +func (svcb DNSSVCB) String() string { + return fmt.Sprintf("%v [%s] %v", + svcb.Priority, string(svcb.Target), svcb.Params) +} + +func (svcb DNSSVCB) encode(data []byte, offset int) { + binary.BigEndian.PutUint16(data[offset:], svcb.Priority) + offset = encodeName(svcb.Target, data, offset+2) + + for _, param := range svcb.Params { + offset = param.encode(data, offset) + } +} + +// DNSSvcParamKey defines SVCB service parameter keys. +type DNSSvcParamKey uint16 + +func (key DNSSvcParamKey) String() string { + switch key { + default: + return "Unknown" + case DNSSvcParamKeyMandatory: + return "mandatory" + case DNSSvcParamKeyAlpn: + return "alpn" + case DNSSvcParamKeyNoDefaultAlpn: + return "no-default-alpn" + case DNSSvcParamKeyPort: + return "port" + case DNSSvcParamKeyIPv4Hint: + return "ipv4hint" + case DNSSvcParamKeyECH: + return "ech" + case DNSSvcParamKeyIPv6Hint: + return "ipv6hint" + case DNSSvcParamKeyDoHPath: + return "dohpath" + case DNSSvcParamKeyOHTTP: + return "ohttp" + case DNSSvcParamKeyDoHURI: + return "dohuri" + case DNSSvcParamKeyInvalidKey: + return "Invalid key" + } +} + +// DNSSvcParamKey known values. +const ( + DNSSvcParamKeyMandatory DNSSvcParamKey = 0 // RFC9460, Section 8 + DNSSvcParamKeyAlpn DNSSvcParamKey = 1 // RFC9460, Section 7.1 + DNSSvcParamKeyNoDefaultAlpn DNSSvcParamKey = 2 // RFC9460, Section 7.1 + DNSSvcParamKeyPort DNSSvcParamKey = 3 // RFC9460, Section 7.2 + DNSSvcParamKeyIPv4Hint DNSSvcParamKey = 4 // RFC9460, Section 7.3 + DNSSvcParamKeyECH DNSSvcParamKey = 5 // RFC9460 + DNSSvcParamKeyIPv6Hint DNSSvcParamKey = 6 // RFC9460, Section 7.3 + DNSSvcParamKeyDoHPath DNSSvcParamKey = 7 // RFC9461 + DNSSvcParamKeyOHTTP DNSSvcParamKey = 8 // RFC9540, Section 4 + DNSSvcParamKeyDoHURI DNSSvcParamKey = 32768 // draft-pauly-add-resolver-discovery-00.html + DNSSvcParamKeyInvalidKey DNSSvcParamKey = 65535 // RFC9460 +) + +// DNSSvcParam is a service param, see RFC9460, section 2.2. +type DNSSvcParam struct { + Key DNSSvcParamKey + Value []byte +} + +func (param DNSSvcParam) size() int { + return 2 + 2 + len(param.Value) +} + +func (param DNSSvcParam) encode(data []byte, offset int) int { + binary.BigEndian.PutUint16(data[offset:], uint16(param.Key)) + offset += 2 + binary.BigEndian.PutUint16(data[offset:], uint16(len(param.Value))) + offset += 2 + copy(data[offset:], param.Value) + offset += len(param.Value) + + return offset +} + +func (param DNSSvcParam) String() string { + return fmt.Sprintf("%s=%x", param.Key, param.Value) +} + +// DNSRRSIG is a DNS RRSIG record, see RFC 4034, section 3.1 +type DNSRRSIG struct { + TypeCovered DNSType + Algorithm DNSSECAlgorithm + Labels uint8 + OriginalTTL, Expiration, Inception uint32 + KeyTag uint16 + SignerName, Signature []byte +} + +func (rrsig DNSRRSIG) size() int { + // 18 bytes for the fixed fields, 2 bytes for the first Label Length, and ending 0x00 byte. + return 18 + len(rrsig.SignerName) + 2 + len(rrsig.Signature) +} + +func (rrsig DNSRRSIG) String() string { + return fmt.Sprintf("RRSIG %d %d %d %d %d %d %d %v %v", + rrsig.TypeCovered, rrsig.Algorithm, rrsig.Labels, rrsig.OriginalTTL, + rrsig.Expiration, rrsig.Inception, rrsig.KeyTag, rrsig.SignerName, rrsig.Signature) +} + +// RRSIG RDATA Wire Format +// 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 +// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Type Covered | Algorithm | Labels | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Original TTL | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Signature Expiration | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Signature Inception | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Key Tag | / +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Signer’s Name / +// / / +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// / / +// / Signature / +// / / +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +func (rrsig *DNSRRSIG) decode(data []byte, offset int) error { + if len(data) < offset+18 { + return errors.New("RRSIG too small") + } + var err error + rrsig.TypeCovered = DNSType(binary.BigEndian.Uint16(data[offset:])) + rrsig.Algorithm = DNSSECAlgorithm(data[offset+2]) + rrsig.Labels = data[offset+3] + rrsig.OriginalTTL = binary.BigEndian.Uint32(data[offset+4:]) + rrsig.Expiration = binary.BigEndian.Uint32(data[offset+8:]) + rrsig.Inception = binary.BigEndian.Uint32(data[offset+12:]) + rrsig.KeyTag = binary.BigEndian.Uint16(data[offset+16:]) + _, offset, err = decodeName(data, offset+18, &rrsig.SignerName, 1) + rrsig.SignerName = rrsig.SignerName[1:] // remove the first '.' + if err != nil { + return err + } + rrsig.Signature = data[offset:] + return nil +} + +func (rrsig DNSRRSIG) encode(data []byte, offset int) { + binary.BigEndian.PutUint16(data[offset:], uint16(rrsig.TypeCovered)) + data[offset+2] = uint8(rrsig.Algorithm) + data[offset+3] = rrsig.Labels + binary.BigEndian.PutUint32(data[offset+4:], rrsig.OriginalTTL) + binary.BigEndian.PutUint32(data[offset+8:], rrsig.Expiration) + binary.BigEndian.PutUint32(data[offset+12:], rrsig.Inception) + binary.BigEndian.PutUint16(data[offset+16:], rrsig.KeyTag) + offset += encodeName(rrsig.SignerName, data[offset+18:], 0) + 18 + copy(data[offset:], rrsig.Signature) +} + +// DNSSECAlgorithm common values +const ( + DNSSECAlgorithmRSAMD5 DNSSECAlgorithm = 1 + DNSSECAlgorithmDH DNSSECAlgorithm = 3 + DNSSECAlgorithmDSASHA1 DNSSECAlgorithm = 3 + DNSSECAlgorithmECC DNSSECAlgorithm = 4 + DNSSECAlgorithmRSASHA1 DNSSECAlgorithm = 5 + DNSSECAlgorithmDSASHA1NSEC3 DNSSECAlgorithm = 6 + DNSSECAlgorithmRSASHA1NSEC3 DNSSECAlgorithm = 7 + DNSSECAlgorithmRSASHA256 DNSSECAlgorithm = 8 + DNSSECAlgorithmRSASHA512 DNSSECAlgorithm = 10 + DNSSECAlgorithmECCGOST DNSSECAlgorithm = 12 + DNSSECAlgorithmECDSAP256SHA256 DNSSECAlgorithm = 13 + DNSSECAlgorithmECDSAP384SHA384 DNSSECAlgorithm = 14 + DNSSECAlgorithmED25519 DNSSECAlgorithm = 15 + DNSSECAlgorithmED448 DNSSECAlgorithm = 16 +) + +// DNSSECAlgorithm represents the algorithm used in a DNSSEC record, see RFC 4034, section 5.1 +type DNSSECAlgorithm uint8 + +// DNSKEY is a DNSKEY record, see RFC 4034, section 2.1 +type DNSKEY struct { + Flags DNSKEYFlag + Protocol DNSKEYProtocol + Algorithm DNSSECAlgorithm + PublicKey []byte +} + +func (dnskey DNSKEY) size() int { + return 4 + len(dnskey.PublicKey) +} + +func (dnskey DNSKEY) String() string { + return fmt.Sprintf("DNSKEY %d %d %d %v", + dnskey.Flags, dnskey.Protocol, dnskey.Algorithm, dnskey.PublicKey) +} + +// DNSKEY RDATA Wire Format +// 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 +// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Flags | Protocol | Algorithm | | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// / / +// / Public Key / +// / / +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +func (dnskey *DNSKEY) decode(data []byte, offset int) error { + if len(data) < offset+4 { + return errors.New("DNSKEY too small") + } + dnskey.Flags = DNSKEYFlag(binary.BigEndian.Uint16(data[offset:])) + dnskey.Protocol = DNSKEYProtocol(data[offset+2]) + dnskey.Algorithm = DNSSECAlgorithm(data[offset+3]) + dnskey.PublicKey = data[offset+4:] + return nil +} + +func (dnskey DNSKEY) encode(data []byte, offset int) { + binary.BigEndian.PutUint16(data[offset:], uint16(dnskey.Flags)) + data[offset+2] = uint8(dnskey.Protocol) + data[offset+3] = uint8(dnskey.Algorithm) + copy(data[offset+4:], dnskey.PublicKey) +} + +// DNSKEYFlag common values +const ( + DNSKEYFlagOtherKey DNSKEYFlag = 0 + DNSKEYFlagZoneKey DNSKEYFlag = 256 + DNSKEYFlagSecureEntryPoint DNSKEYFlag = 257 +) + +// DNSKEYFlag represents the key type of a DNSKEY record, see RFC 4034, section 2.1.1 +type DNSKEYFlag uint16 + +// DNSKEYProtocol common values, see RFC 4034, section 2.1.2 +const ( + DNSKEYProtocolReserved DNSKEYProtocol = 0 + DNSKEYProtocolValue DNSKEYProtocol = 3 +) + +type DNSKEYProtocol uint8 + // DNSURI is a URI record, defining a target (URI) of a server/service type DNSURI struct { Priority, Weight uint16 diff --git a/backend/vendor/github.com/google/gopacket/layers/doc.go b/backend/vendor/github.com/gopacket/gopacket/layers/doc.go similarity index 89% rename from backend/vendor/github.com/google/gopacket/layers/doc.go rename to backend/vendor/github.com/gopacket/gopacket/layers/doc.go index 3c882c3fa..846ace904 100644 --- a/backend/vendor/github.com/google/gopacket/layers/doc.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/doc.go @@ -29,9 +29,9 @@ ApplicationLayer, while base SCTP implements TransportLayer), or possibly because splitting a protocol into a few layers makes decoding easier. This package is meant to be used with its parent, -http://github.com/google/gopacket. +http://github.com/gopacket/gopacket. -Port Types +# Port Types Instead of using raw uint16 or uint8 values for ports, we use a different port type for every protocol, for example TCPPort and UDPPort. This allows us to @@ -39,11 +39,11 @@ override string behavior for each port, which we do by setting up port name maps (TCPPortNames, UDPPortNames, etc...). Well-known ports are annotated with their protocol names, and their String function displays these names: - p := TCPPort(80) - fmt.Printf("Number: %d String: %v", p, p) - // Prints: "Number: 80 String: 80(http)" + p := TCPPort(80) + fmt.Printf("Number: %d String: %v", p, p) + // Prints: "Number: 80 String: 80(http)" -Modifying Decode Behavior +# Modifying Decode Behavior layers links together decoding through its enumerations. For example, after decoding layer type Ethernet, it uses Ethernet.EthernetType as its next decoder. @@ -52,8 +52,8 @@ users depending on their preferences. For example, if you have a spiffy new IPv4 decoder that works way better than the one built into layers, you can do this: - var mySpiffyIPv4Decoder gopacket.Decoder = ... - layers.EthernetTypeMetadata[EthernetTypeIPv4].DecodeWith = mySpiffyIPv4Decoder + var mySpiffyIPv4Decoder gopacket.Decoder = ... + layers.EthernetTypeMetadata[EthernetTypeIPv4].DecodeWith = mySpiffyIPv4Decoder This will make all future ethernet packets use your new decoder to decode IPv4 packets, instead of the built-in decoder used by gopacket. diff --git a/backend/vendor/github.com/google/gopacket/layers/dot11.go b/backend/vendor/github.com/gopacket/gopacket/layers/dot11.go similarity index 90% rename from backend/vendor/github.com/google/gopacket/layers/dot11.go rename to backend/vendor/github.com/gopacket/gopacket/layers/dot11.go index 3e6491061..68887d7db 100644 --- a/backend/vendor/github.com/google/gopacket/layers/dot11.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/dot11.go @@ -16,7 +16,7 @@ import ( "hash/crc32" "net" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // Dot11Flags contains the set of 8 flags in the IEEE 802.11 frame control @@ -412,6 +412,15 @@ const ( Dot11InformationElementIDWhiteSpaceMap Dot11InformationElementID = 205 Dot11InformationElementIDFineTuningMeasureParams Dot11InformationElementID = 206 Dot11InformationElementIDVendor Dot11InformationElementID = 221 + Dot11InformationElementIDQosParameter Dot11InformationElementID = 222 + Dot11InformationElementIDS1GOperation Dot11InformationElementID = 232 + Dot11InformationElementIDCAGNumber Dot11InformationElementID = 237 + Dot11InformationElementIDAPCSN Dot11InformationElementID = 239 + Dot11InformationElementIDFILSIndication Dot11InformationElementID = 240 + Dot11InformationElementIDDILS Dot11InformationElementID = 241 + Dot11InformationElementIDFragment Dot11InformationElementID = 242 + Dot11InformationElementIDRSNX Dot11InformationElementID = 244 + Dot11InformationElementIDExtension Dot11InformationElementID = 255 ) // String provides a human readable string for Dot11InformationElementID. @@ -762,11 +771,139 @@ func (a Dot11InformationElementID) String() string { return "Fine Tuning Measure Parameters" case Dot11InformationElementIDVendor: return "Vendor" + case Dot11InformationElementIDS1GOperation: + return "IDS1G Operation" + case Dot11InformationElementIDCAGNumber: + return "CAG Number" + case Dot11InformationElementIDAPCSN: + return "APCSN" + case Dot11InformationElementIDFILSIndication: + return "FILS Indication" + case Dot11InformationElementIDDILS: + return "DILS" + case Dot11InformationElementIDFragment: + return "Fragment" + case Dot11InformationElementIDRSNX: + return "RSNX" + case Dot11InformationElementIDExtension: + return "Extension" default: return "Unknown information element id" } } +type Dot11InformationElementExtId uint8 + +const ( + Dot11InformationElementExtIDAssocDelayInfo Dot11InformationElementExtId = 1 + Dot11InformationElementExtIDFilsReqParams Dot11InformationElementExtId = 2 + Dot11InformationElementExtIDFilsKeyConfirm Dot11InformationElementExtId = 3 + Dot11InformationElementExtIDFilsSession Dot11InformationElementExtId = 4 + Dot11InformationElementExtIDFilsHLPContainer Dot11InformationElementExtId = 5 + Dot11InformationElementExtIDFilsIPAddrAssign Dot11InformationElementExtId = 6 + Dot11InformationElementExtIDKeyDelivery Dot11InformationElementExtId = 7 + Dot11InformationElementExtIDFilsWrappedData Dot11InformationElementExtId = 8 + Dot11InformationElementExtIDFilsPublicKey Dot11InformationElementExtId = 12 + Dot11InformationElementExtIDFilsNonce Dot11InformationElementExtId = 13 + Dot11InformationElementExtIDFutureChanGuidance Dot11InformationElementExtId = 14 + Dot11InformationElementExtIDHeCapability Dot11InformationElementExtId = 35 + Dot11InformationElementExtIDHEOperation Dot11InformationElementExtId = 36 + Dot11InformationElementExtIDUora Dot11InformationElementExtId = 37 + Dot11InformationElementExtIDHeMuEdca Dot11InformationElementExtId = 38 + Dot11InformationElementExtIDHeSpr Dot11InformationElementExtId = 39 + Dot11InformationElementExtIDNdpFeedbackReportParamset Dot11InformationElementExtId = 41 + Dot11InformationElementExtIDBssColorChgAnn Dot11InformationElementExtId = 42 + Dot11InformationElementExtIDQuietTimePeriodSetup Dot11InformationElementExtId = 43 + Dot11InformationElementExtIDEssReport Dot11InformationElementExtId = 45 + Dot11InformationElementExtIDOps Dot11InformationElementExtId = 46 + Dot11InformationElementExtIDHeBssLoad Dot11InformationElementExtId = 47 + Dot11InformationElementExtIDMaxChannelSwitchTime Dot11InformationElementExtId = 52 + Dot11InformationElementExtIDMultipleBssidConfiguration Dot11InformationElementExtId = 55 + Dot11InformationElementExtIDNonInheritance Dot11InformationElementExtId = 56 + Dot11InformationElementExtIDKnownBssid Dot11InformationElementExtId = 57 + Dot11InformationElementExtIDShortSsidList Dot11InformationElementExtId = 58 + Dot11InformationElementExtIDHe6ghzCApA Dot11InformationElementExtId = 59 + Dot11InformationElementExtIDuLMuPowerCapA Dot11InformationElementExtId = 60 + Dot11InformationElementExtIDEhTOperation Dot11InformationElementExtId = 106 + Dot11InformationElementExtIDEhtMultiLink Dot11InformationElementExtId = 107 + Dot11InformationElementExtIDEHhCapability Dot11InformationElementExtId = 108 +) + +// String provides a human readable string for Dot11InformationElementExtId. +// This string is possibly subject to change over time; if you're storing this +// persistently, you should probably store the Dot11InformationElementExtId value, +// not its string. +func (a Dot11InformationElementExtId) String() string { + switch a { + case Dot11InformationElementExtIDAssocDelayInfo: + return "Association Delay Information" + case Dot11InformationElementExtIDFilsReqParams: + return "FILS Request Parameters" + case Dot11InformationElementExtIDFilsKeyConfirm: + return "FILS Key Confirmation" + case Dot11InformationElementExtIDFilsSession: + return "FILS Session" + case Dot11InformationElementExtIDFilsHLPContainer: + return "FILS HLP Container" + case Dot11InformationElementExtIDFilsIPAddrAssign: + return "FILS IP Address Assignment" + case Dot11InformationElementExtIDKeyDelivery: + return "Key Delivery" + case Dot11InformationElementExtIDFilsWrappedData: + return "FILS Wrapped Data" + case Dot11InformationElementExtIDFilsPublicKey: + return "FILS Public Key" + case Dot11InformationElementExtIDFilsNonce: + return "FILS Nonce" + case Dot11InformationElementExtIDFutureChanGuidance: + return "Future Channel Guidance" + case Dot11InformationElementExtIDHeCapability: + return "HE Capability" + case Dot11InformationElementExtIDHEOperation: + return "HE Operation" + case Dot11InformationElementExtIDUora: + return "UORA" + case Dot11InformationElementExtIDHeMuEdca: + return "HE MU EDCA" + case Dot11InformationElementExtIDHeSpr: + return "HE Spatial Reuse Parameter" + case Dot11InformationElementExtIDNdpFeedbackReportParamset: + return "NDP Feedback Report Parameter Set" + case Dot11InformationElementExtIDBssColorChgAnn: + return "BSS Color Change Announcement" + case Dot11InformationElementExtIDQuietTimePeriodSetup: + return "Quiet Time Period Setup" + case Dot11InformationElementExtIDEssReport: + return "ESS Report" + case Dot11InformationElementExtIDOps: + return "Operating Mode Notification" + case Dot11InformationElementExtIDHeBssLoad: + return "HE BSS Load" + case Dot11InformationElementExtIDMaxChannelSwitchTime: + return "Maximum Channel Switching Time" + case Dot11InformationElementExtIDMultipleBssidConfiguration: + return "Multiple BSSID Configuration" + case Dot11InformationElementExtIDNonInheritance: + return "Non-Inheritance" + case Dot11InformationElementExtIDKnownBssid: + return "Known BSSID" + case Dot11InformationElementExtIDShortSsidList: + return "Short SSID List" + case Dot11InformationElementExtIDHe6ghzCApA: + return "HE 6 GHz Capabilities" + case Dot11InformationElementExtIDuLMuPowerCapA: + return "uL MU Power Capability" + case Dot11InformationElementExtIDEhTOperation: + return "EH-Transition Operation" + case Dot11InformationElementExtIDEhtMultiLink: + return "EHT Multi-link" + case Dot11InformationElementExtIDEHhCapability: + return "EH-Transition HE Capabilities" + default: + return "Unknown information element extended id" + } +} + // Dot11 provides an IEEE 802.11 base packet header. // See http://standards.ieee.org/findstds/standard/802.11-2012.html // for excruciating detail. @@ -935,7 +1072,7 @@ func (m *Dot11) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { switch mainType { case Dot11TypeCtrl: switch m.Type { - case Dot11TypeCtrlRTS, Dot11TypeCtrlPowersavePoll, Dot11TypeCtrlCFEnd, Dot11TypeCtrlCFEndAck: + case Dot11TypeCtrlRTS, Dot11TypeCtrlPowersavePoll, Dot11TypeCtrlCFEnd, Dot11TypeCtrlCFEndAck, Dot11TypeCtrlBlockAck, Dot11TypeCtrlBlockAckReq: if len(data) < offset+6 { df.SetTruncated() return fmt.Errorf("Dot11 length %v too short, %v required", len(data), offset+6) @@ -1440,10 +1577,11 @@ func (m *Dot11DataQOSCFAckPollNoData) NextLayerType() gopacket.LayerType { type Dot11InformationElement struct { BaseLayer - ID Dot11InformationElementID - Length uint8 - OUI []byte - Info []byte + ID Dot11InformationElementID + Length uint8 + OUI []byte + Info []byte + ExtensionID Dot11InformationElementExtId } func (m *Dot11InformationElement) LayerType() gopacket.LayerType { @@ -1470,14 +1608,19 @@ func (m *Dot11InformationElement) DecodeFromBytes(data []byte, df gopacket.Decod df.SetTruncated() return fmt.Errorf("Dot11InformationElement length %v too short, %v required", len(data), offset+int(m.Length)) } - if len(data) < offset+4 { - df.SetTruncated() - return fmt.Errorf("vendor extension size < %d", offset+int(m.Length)) - } + if m.ID == 221 { + if len(data) < offset+4 { + df.SetTruncated() + return fmt.Errorf("vendor extension size < %d", offset+int(m.Length)) + } + // Vendor extension m.OUI = data[offset : offset+4] m.Info = data[offset+4 : offset+int(m.Length)] + } else if m.ID == 255 { + m.ExtensionID = Dot11InformationElementExtId(data[offset]) + m.Info = data[offset+1 : offset+int(m.Length)] } else { m.Info = data[offset : offset+int(m.Length)] } @@ -1503,6 +1646,8 @@ func (d *Dot11InformationElement) String() string { return fmt.Sprintf("802.11 Information Element (ID: %v, Length: %v, Rates: %s Mbit)", d.ID, d.Length, rates) } else if d.ID == 221 { return fmt.Sprintf("802.11 Information Element (ID: %v, Length: %v, OUI: %X, Info: %X)", d.ID, d.Length, d.OUI, d.Info) + } else if d.ID == 255 { + return fmt.Sprintf("802.11 Information Element Extension (ID: %v, Length %v, Info %X)", d.ExtensionID, d.Length, d.Info) } else { return fmt.Sprintf("802.11 Information Element (ID: %v, Length: %v, Info: %X)", d.ID, d.Length, d.Info) } diff --git a/backend/vendor/github.com/google/gopacket/layers/dot1q.go b/backend/vendor/github.com/gopacket/gopacket/layers/dot1q.go similarity index 98% rename from backend/vendor/github.com/google/gopacket/layers/dot1q.go rename to backend/vendor/github.com/gopacket/gopacket/layers/dot1q.go index 5cdd2f8d6..ada0950f9 100644 --- a/backend/vendor/github.com/google/gopacket/layers/dot1q.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/dot1q.go @@ -10,7 +10,8 @@ package layers import ( "encoding/binary" "fmt" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) // Dot1Q is the packet layer for 802.1Q VLAN headers. diff --git a/backend/vendor/github.com/google/gopacket/layers/eap.go b/backend/vendor/github.com/gopacket/gopacket/layers/eap.go similarity index 98% rename from backend/vendor/github.com/google/gopacket/layers/eap.go rename to backend/vendor/github.com/gopacket/gopacket/layers/eap.go index 54238e8c7..d8dc9a9ec 100644 --- a/backend/vendor/github.com/google/gopacket/layers/eap.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/eap.go @@ -9,7 +9,8 @@ package layers import ( "encoding/binary" "fmt" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) type EAPCode uint8 diff --git a/backend/vendor/github.com/google/gopacket/layers/eapol.go b/backend/vendor/github.com/gopacket/gopacket/layers/eapol.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/eapol.go rename to backend/vendor/github.com/gopacket/gopacket/layers/eapol.go index 902598a20..1016e1d4b 100644 --- a/backend/vendor/github.com/google/gopacket/layers/eapol.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/eapol.go @@ -9,7 +9,8 @@ package layers import ( "encoding/binary" "fmt" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) // EAPOL defines an EAP over LAN (802.1x) layer. diff --git a/backend/vendor/github.com/google/gopacket/layers/endpoints.go b/backend/vendor/github.com/gopacket/gopacket/layers/endpoints.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/endpoints.go rename to backend/vendor/github.com/gopacket/gopacket/layers/endpoints.go index 4c91cc332..f2cec019d 100644 --- a/backend/vendor/github.com/google/gopacket/layers/endpoints.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/endpoints.go @@ -8,9 +8,10 @@ package layers import ( "encoding/binary" - "github.com/google/gopacket" "net" "strconv" + + "github.com/gopacket/gopacket" ) var ( diff --git a/backend/vendor/github.com/google/gopacket/layers/enums.go b/backend/vendor/github.com/gopacket/gopacket/layers/enums.go similarity index 98% rename from backend/vendor/github.com/google/gopacket/layers/enums.go rename to backend/vendor/github.com/gopacket/gopacket/layers/enums.go index 8427bdaf4..0dadd4606 100644 --- a/backend/vendor/github.com/google/gopacket/layers/enums.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/enums.go @@ -11,7 +11,7 @@ import ( "fmt" "runtime" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // EnumMetadata keeps track of a set of metadata for each enumeration value @@ -40,6 +40,7 @@ const ( EthernetTypeCiscoDiscovery EthernetType = 0x2000 EthernetTypeNortelDiscovery EthernetType = 0x01a2 EthernetTypeTransparentEthernetBridging EthernetType = 0x6558 + EthernetTypeMerakiDiscoveryProtocol EthernetType = 0x712 EthernetTypeDot1Q EthernetType = 0x8100 EthernetTypePPP EthernetType = 0x880b EthernetTypePPPoEDiscovery EthernetType = 0x8863 @@ -85,11 +86,11 @@ const ( // LinkType is an enumeration of link types, and acts as a decoder for any // link type it supports. -type LinkType uint8 +type LinkType uint16 const ( // According to pcap-linktype(7) and http://www.tcpdump.org/linktypes.html - LinkTypeNull LinkType = 0 + LinkTypeNull LinkType = iota LinkTypeEthernet LinkType = 1 LinkTypeAX25 LinkType = 3 LinkTypeTokenRing LinkType = 6 @@ -126,6 +127,10 @@ const ( LinkTypeFC2Framed LinkType = 225 LinkTypeIPv4 LinkType = 228 LinkTypeIPv6 LinkType = 229 + LinkTypeLinuxSLL2 LinkType = 276 + + // Warning: this const should always be 1 larger than the largest valid value + LinkTypeMax LinkType = 277 ) // PPPoECode is the PPPoE code enum, taken from http://tools.ietf.org/html/rfc2516 @@ -319,6 +324,7 @@ func initActualTypeData() { EthernetTypeMetadata[EthernetTypeQinQ] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeDot1Q), Name: "Dot1Q", LayerType: LayerTypeDot1Q} EthernetTypeMetadata[EthernetTypeTransparentEthernetBridging] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeEthernet), Name: "TransparentEthernetBridging", LayerType: LayerTypeEthernet} EthernetTypeMetadata[EthernetTypeERSPAN] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeERSPANII), Name: "ERSPAN Type II", LayerType: LayerTypeERSPANII} + EthernetTypeMetadata[EthernetTypeMerakiDiscoveryProtocol] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeMDP), Name: "MDP", LayerType: LayerTypeMDP} IPProtocolMetadata[IPProtocolIPv4] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeIPv4), Name: "IPv4", LayerType: LayerTypeIPv4} IPProtocolMetadata[IPProtocolTCP] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeTCP), Name: "TCP", LayerType: LayerTypeTCP} @@ -385,6 +391,7 @@ func initActualTypeData() { LinkTypeMetadata[LinkTypeLinuxUSB] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeUSB), Name: "USB"} LinkTypeMetadata[LinkTypeLinuxSLL] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeLinuxSLL), Name: "Linux SLL"} LinkTypeMetadata[LinkTypePrismHeader] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodePrismHeader), Name: "Prism"} + LinkTypeMetadata[LinkTypeLinuxSLL2] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeLinuxSLL2), Name: "Linux SLL2"} FDDIFrameControlMetadata[FDDIFrameControlLLC] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(decodeLLC), Name: "LLC"} diff --git a/backend/vendor/github.com/gopacket/gopacket/layers/enums_generated.go b/backend/vendor/github.com/gopacket/gopacket/layers/enums_generated.go new file mode 100644 index 000000000..64f5bf380 --- /dev/null +++ b/backend/vendor/github.com/gopacket/gopacket/layers/enums_generated.go @@ -0,0 +1,401 @@ +// Copyright 2012 Google, Inc. All rights reserved. + +package layers + +// Created by gen2.go, don't edit manually +// Generated at 2023-09-26 15:45:59.728838421 +0400 +04 m=+0.000090902 + +import ( + "fmt" + + "github.com/gopacket/gopacket" +) + +func init() { + initActualTypeData() +} + +// Decoder calls LinkTypeMetadata.DecodeWith's decoder. +func (a LinkType) Decode(data []byte, p gopacket.PacketBuilder) error { + if int(a) < 277 { + if metadata := LinkTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.DecodeWith.Decode(data, p) + } + } + + return fmt.Errorf("Unable to decode LinkType %d", a) +} + +// String returns LinkTypeMetadata.Name. +func (a LinkType) String() string { + if int(a) < 277 { + if metadata := LinkTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.Name + } + } + + return "UnknownLinkType" +} + +// LayerType returns LinkTypeMetadata.LayerType. +func (a LinkType) LayerType() gopacket.LayerType { + if int(a) < 277 { + if metadata := LinkTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.LayerType + } + } + + return 0 +} + +var LinkTypeMetadata [277]EnumMetadata + +// Decoder calls EthernetTypeMetadata.DecodeWith's decoder. +func (a EthernetType) Decode(data []byte, p gopacket.PacketBuilder) error { + if int(a) < 65536 { + if metadata := EthernetTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.DecodeWith.Decode(data, p) + } + } + + return fmt.Errorf("Unable to decode EthernetType %d", a) +} + +// String returns EthernetTypeMetadata.Name. +func (a EthernetType) String() string { + if int(a) < 65536 { + if metadata := EthernetTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.Name + } + } + + return "UnknownEthernetType" +} + +// LayerType returns EthernetTypeMetadata.LayerType. +func (a EthernetType) LayerType() gopacket.LayerType { + if int(a) < 65536 { + if metadata := EthernetTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.LayerType + } + } + + return 0 +} + +var EthernetTypeMetadata [65536]EnumMetadata + +// Decoder calls PPPTypeMetadata.DecodeWith's decoder. +func (a PPPType) Decode(data []byte, p gopacket.PacketBuilder) error { + if int(a) < 65536 { + if metadata := PPPTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.DecodeWith.Decode(data, p) + } + } + + return fmt.Errorf("Unable to decode PPPType %d", a) +} + +// String returns PPPTypeMetadata.Name. +func (a PPPType) String() string { + if int(a) < 65536 { + if metadata := PPPTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.Name + } + } + + return "UnknownPPPType" +} + +// LayerType returns PPPTypeMetadata.LayerType. +func (a PPPType) LayerType() gopacket.LayerType { + if int(a) < 65536 { + if metadata := PPPTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.LayerType + } + } + + return 0 +} + +var PPPTypeMetadata [65536]EnumMetadata + +// Decoder calls IPProtocolMetadata.DecodeWith's decoder. +func (a IPProtocol) Decode(data []byte, p gopacket.PacketBuilder) error { + if int(a) < 256 { + if metadata := IPProtocolMetadata[a]; metadata.DecodeWith != nil { + return metadata.DecodeWith.Decode(data, p) + } + } + + return fmt.Errorf("Unable to decode IPProtocol %d", a) +} + +// String returns IPProtocolMetadata.Name. +func (a IPProtocol) String() string { + if int(a) < 256 { + if metadata := IPProtocolMetadata[a]; metadata.DecodeWith != nil { + return metadata.Name + } + } + + return "UnknownIPProtocol" +} + +// LayerType returns IPProtocolMetadata.LayerType. +func (a IPProtocol) LayerType() gopacket.LayerType { + if int(a) < 256 { + if metadata := IPProtocolMetadata[a]; metadata.DecodeWith != nil { + return metadata.LayerType + } + } + + return 0 +} + +var IPProtocolMetadata [256]EnumMetadata + +// Decoder calls SCTPChunkTypeMetadata.DecodeWith's decoder. +func (a SCTPChunkType) Decode(data []byte, p gopacket.PacketBuilder) error { + if int(a) < 256 { + if metadata := SCTPChunkTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.DecodeWith.Decode(data, p) + } + } + + return fmt.Errorf("Unable to decode SCTPChunkType %d", a) +} + +// String returns SCTPChunkTypeMetadata.Name. +func (a SCTPChunkType) String() string { + if int(a) < 256 { + if metadata := SCTPChunkTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.Name + } + } + + return "UnknownSCTPChunkType" +} + +// LayerType returns SCTPChunkTypeMetadata.LayerType. +func (a SCTPChunkType) LayerType() gopacket.LayerType { + if int(a) < 256 { + if metadata := SCTPChunkTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.LayerType + } + } + + return 0 +} + +var SCTPChunkTypeMetadata [256]EnumMetadata + +// Decoder calls PPPoECodeMetadata.DecodeWith's decoder. +func (a PPPoECode) Decode(data []byte, p gopacket.PacketBuilder) error { + if int(a) < 256 { + if metadata := PPPoECodeMetadata[a]; metadata.DecodeWith != nil { + return metadata.DecodeWith.Decode(data, p) + } + } + + return fmt.Errorf("Unable to decode PPPoECode %d", a) +} + +// String returns PPPoECodeMetadata.Name. +func (a PPPoECode) String() string { + if int(a) < 256 { + if metadata := PPPoECodeMetadata[a]; metadata.DecodeWith != nil { + return metadata.Name + } + } + + return "UnknownPPPoECode" +} + +// LayerType returns PPPoECodeMetadata.LayerType. +func (a PPPoECode) LayerType() gopacket.LayerType { + if int(a) < 256 { + if metadata := PPPoECodeMetadata[a]; metadata.DecodeWith != nil { + return metadata.LayerType + } + } + + return 0 +} + +var PPPoECodeMetadata [256]EnumMetadata + +// Decoder calls FDDIFrameControlMetadata.DecodeWith's decoder. +func (a FDDIFrameControl) Decode(data []byte, p gopacket.PacketBuilder) error { + if int(a) < 256 { + if metadata := FDDIFrameControlMetadata[a]; metadata.DecodeWith != nil { + return metadata.DecodeWith.Decode(data, p) + } + } + + return fmt.Errorf("Unable to decode FDDIFrameControl %d", a) +} + +// String returns FDDIFrameControlMetadata.Name. +func (a FDDIFrameControl) String() string { + if int(a) < 256 { + if metadata := FDDIFrameControlMetadata[a]; metadata.DecodeWith != nil { + return metadata.Name + } + } + + return "UnknownFDDIFrameControl" +} + +// LayerType returns FDDIFrameControlMetadata.LayerType. +func (a FDDIFrameControl) LayerType() gopacket.LayerType { + if int(a) < 256 { + if metadata := FDDIFrameControlMetadata[a]; metadata.DecodeWith != nil { + return metadata.LayerType + } + } + + return 0 +} + +var FDDIFrameControlMetadata [256]EnumMetadata + +// Decoder calls EAPOLTypeMetadata.DecodeWith's decoder. +func (a EAPOLType) Decode(data []byte, p gopacket.PacketBuilder) error { + if int(a) < 256 { + if metadata := EAPOLTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.DecodeWith.Decode(data, p) + } + } + + return fmt.Errorf("Unable to decode EAPOLType %d", a) +} + +// String returns EAPOLTypeMetadata.Name. +func (a EAPOLType) String() string { + if int(a) < 256 { + if metadata := EAPOLTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.Name + } + } + + return "UnknownEAPOLType" +} + +// LayerType returns EAPOLTypeMetadata.LayerType. +func (a EAPOLType) LayerType() gopacket.LayerType { + if int(a) < 256 { + if metadata := EAPOLTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.LayerType + } + } + + return 0 +} + +var EAPOLTypeMetadata [256]EnumMetadata + +// Decoder calls ProtocolFamilyMetadata.DecodeWith's decoder. +func (a ProtocolFamily) Decode(data []byte, p gopacket.PacketBuilder) error { + if int(a) < 256 { + if metadata := ProtocolFamilyMetadata[a]; metadata.DecodeWith != nil { + return metadata.DecodeWith.Decode(data, p) + } + } + + return fmt.Errorf("Unable to decode ProtocolFamily %d", a) +} + +// String returns ProtocolFamilyMetadata.Name. +func (a ProtocolFamily) String() string { + if int(a) < 256 { + if metadata := ProtocolFamilyMetadata[a]; metadata.DecodeWith != nil { + return metadata.Name + } + } + + return "UnknownProtocolFamily" +} + +// LayerType returns ProtocolFamilyMetadata.LayerType. +func (a ProtocolFamily) LayerType() gopacket.LayerType { + if int(a) < 256 { + if metadata := ProtocolFamilyMetadata[a]; metadata.DecodeWith != nil { + return metadata.LayerType + } + } + + return 0 +} + +var ProtocolFamilyMetadata [256]EnumMetadata + +// Decoder calls Dot11TypeMetadata.DecodeWith's decoder. +func (a Dot11Type) Decode(data []byte, p gopacket.PacketBuilder) error { + if int(a) < 256 { + if metadata := Dot11TypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.DecodeWith.Decode(data, p) + } + } + + return fmt.Errorf("Unable to decode Dot11Type %d", a) +} + +// String returns Dot11TypeMetadata.Name. +func (a Dot11Type) String() string { + if int(a) < 256 { + if metadata := Dot11TypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.Name + } + } + + return "UnknownDot11Type" +} + +// LayerType returns Dot11TypeMetadata.LayerType. +func (a Dot11Type) LayerType() gopacket.LayerType { + if int(a) < 256 { + if metadata := Dot11TypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.LayerType + } + } + + return 0 +} + +var Dot11TypeMetadata [256]EnumMetadata + +// Decoder calls USBTransportTypeMetadata.DecodeWith's decoder. +func (a USBTransportType) Decode(data []byte, p gopacket.PacketBuilder) error { + if int(a) < 256 { + if metadata := USBTransportTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.DecodeWith.Decode(data, p) + } + } + + return fmt.Errorf("Unable to decode USBTransportType %d", a) +} + +// String returns USBTransportTypeMetadata.Name. +func (a USBTransportType) String() string { + if int(a) < 256 { + if metadata := USBTransportTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.Name + } + } + + return "UnknownUSBTransportType" +} + +// LayerType returns USBTransportTypeMetadata.LayerType. +func (a USBTransportType) LayerType() gopacket.LayerType { + if int(a) < 256 { + if metadata := USBTransportTypeMetadata[a]; metadata.DecodeWith != nil { + return metadata.LayerType + } + } + + return 0 +} + +var USBTransportTypeMetadata [256]EnumMetadata diff --git a/backend/vendor/github.com/google/gopacket/layers/erspan2.go b/backend/vendor/github.com/gopacket/gopacket/layers/erspan2.go similarity index 98% rename from backend/vendor/github.com/google/gopacket/layers/erspan2.go rename to backend/vendor/github.com/gopacket/gopacket/layers/erspan2.go index 154436205..dae2b30c8 100644 --- a/backend/vendor/github.com/google/gopacket/layers/erspan2.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/erspan2.go @@ -9,7 +9,7 @@ package layers import ( "encoding/binary" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) const ( diff --git a/backend/vendor/github.com/google/gopacket/layers/etherip.go b/backend/vendor/github.com/gopacket/gopacket/layers/etherip.go similarity index 97% rename from backend/vendor/github.com/google/gopacket/layers/etherip.go rename to backend/vendor/github.com/gopacket/gopacket/layers/etherip.go index 5b7b7229e..d290e3036 100644 --- a/backend/vendor/github.com/google/gopacket/layers/etherip.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/etherip.go @@ -8,7 +8,8 @@ package layers import ( "encoding/binary" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) // EtherIP is the struct for storing RFC 3378 EtherIP packet headers. diff --git a/backend/vendor/github.com/google/gopacket/layers/ethernet.go b/backend/vendor/github.com/gopacket/gopacket/layers/ethernet.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/ethernet.go rename to backend/vendor/github.com/gopacket/gopacket/layers/ethernet.go index b73748f2f..eb787a40e 100644 --- a/backend/vendor/github.com/google/gopacket/layers/ethernet.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/ethernet.go @@ -11,8 +11,9 @@ import ( "encoding/binary" "errors" "fmt" - "github.com/google/gopacket" "net" + + "github.com/gopacket/gopacket" ) // EthernetBroadcast is the broadcast MAC address used by Ethernet. diff --git a/backend/vendor/github.com/google/gopacket/layers/fddi.go b/backend/vendor/github.com/gopacket/gopacket/layers/fddi.go similarity index 96% rename from backend/vendor/github.com/google/gopacket/layers/fddi.go rename to backend/vendor/github.com/gopacket/gopacket/layers/fddi.go index ed9e1957b..a99bdd004 100644 --- a/backend/vendor/github.com/google/gopacket/layers/fddi.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/fddi.go @@ -7,8 +7,9 @@ package layers import ( - "github.com/google/gopacket" "net" + + "github.com/gopacket/gopacket" ) // FDDI contains the header for FDDI frames. diff --git a/backend/vendor/github.com/google/gopacket/layers/fuzz_layer.go b/backend/vendor/github.com/gopacket/gopacket/layers/fuzz_layer.go similarity index 97% rename from backend/vendor/github.com/google/gopacket/layers/fuzz_layer.go rename to backend/vendor/github.com/gopacket/gopacket/layers/fuzz_layer.go index 606e45d24..3f6a8f65b 100644 --- a/backend/vendor/github.com/google/gopacket/layers/fuzz_layer.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/fuzz_layer.go @@ -8,7 +8,7 @@ package layers import ( "encoding/binary" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // FuzzLayer is a fuzz target for the layers package of gopacket diff --git a/backend/vendor/github.com/google/gopacket/layers/gen_linted.sh b/backend/vendor/github.com/gopacket/gopacket/layers/gen_linted.sh similarity index 100% rename from backend/vendor/github.com/google/gopacket/layers/gen_linted.sh rename to backend/vendor/github.com/gopacket/gopacket/layers/gen_linted.sh diff --git a/backend/vendor/github.com/google/gopacket/layers/geneve.go b/backend/vendor/github.com/gopacket/gopacket/layers/geneve.go similarity index 51% rename from backend/vendor/github.com/google/gopacket/layers/geneve.go rename to backend/vendor/github.com/gopacket/gopacket/layers/geneve.go index e9a142880..61af26112 100644 --- a/backend/vendor/github.com/google/gopacket/layers/geneve.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/geneve.go @@ -9,19 +9,21 @@ package layers import ( "encoding/binary" "errors" + "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // Geneve is specifed here https://tools.ietf.org/html/draft-ietf-nvo3-geneve-03 // Geneve Header: -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// |Ver| Opt Len |O|C| Rsvd. | Protocol Type | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Virtual Network Identifier (VNI) | Reserved | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Variable Length Options | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// |Ver| Opt Len |O|C| Rsvd. | Protocol Type | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Virtual Network Identifier (VNI) | Reserved | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Variable Length Options | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ type Geneve struct { BaseLayer Version uint8 // 2 bits @@ -34,11 +36,12 @@ type Geneve struct { } // Geneve Tunnel Options -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Option Class | Type |R|R|R| Length | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Variable Option Data | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Option Class | Type |R|R|R| Length | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Variable Option Data | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ type GeneveOption struct { Class uint16 // 16 bits Type uint8 // 8 bits @@ -59,8 +62,8 @@ func decodeGeneveOption(data []byte, gn *Geneve, df gopacket.DecodeFeedback) (*G opt.Class = binary.BigEndian.Uint16(data[0:2]) opt.Type = data[2] - opt.Flags = data[3] >> 4 - opt.Length = (data[3]&0xf)*4 + 4 + opt.Flags = data[3] >> 5 + opt.Length = (data[3]&0x1f)*4 + 4 if len(data) < int(opt.Length) { df.SetTruncated() @@ -119,3 +122,73 @@ func decodeGeneve(data []byte, p gopacket.PacketBuilder) error { gn := &Geneve{} return decodingLayerDecoder(gn, data, p) } + +// SerializeTo writes the serialized form of this layer into the +// SerializationBuffer, implementing gopacket.SerializableLayer. +// See the docs for gopacket.SerializableLayer for more info. +func (gn *Geneve) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error { + var optionsLength int + for _, o := range gn.Options { + dataLen := len(o.Data) & ^3 + optionsLength += 4 + dataLen + } + if opts.FixLengths { + gn.OptionsLength = uint8(optionsLength) + } + + plen := int(8 + optionsLength) + bytes, err := b.PrependBytes(plen) + if err != nil { + return err + } + + // PrependBytes does not guarantee that bytes are zeroed. Setting flags via OR requires that they start off at zero + bytes[0] = 0 + bytes[1] = 0 + + // Construct Geneve + + bytes[0] |= gn.Version << 6 + bytes[0] |= ((gn.OptionsLength >> 2) & 0x3f) + + if gn.OAMPacket { + bytes[1] |= 0x80 + } + + if gn.CriticalOption { + bytes[1] |= 0x40 + } + + binary.BigEndian.PutUint16(bytes[2:4], uint16(gn.Protocol)) + + if gn.VNI >= 1<<24 { + return fmt.Errorf("Virtual Network Identifier = %x exceeds max for 24-bit uint", gn.VNI) + } + binary.BigEndian.PutUint32(bytes[4:8], gn.VNI<<8) + + // Construct Options + + offset := 8 + for _, o := range gn.Options { + dataLen := len(o.Data) & ^3 + if opts.FixLengths { + o.Length = uint8(4 + dataLen) + } + + binary.BigEndian.PutUint16(bytes[offset:(offset+2)], uint16(o.Class)) + + offset += 2 + bytes[offset] = o.Type + + offset += 1 + bytes[offset] = o.Flags << 5 + bytes[offset] |= ((o.Length - 4) >> 2) & 0x1f + + offset += 1 + copy(bytes[offset:(offset+dataLen)], o.Data) + + offset += dataLen + } + + return nil +} diff --git a/backend/vendor/github.com/google/gopacket/layers/gre.go b/backend/vendor/github.com/gopacket/gopacket/layers/gre.go similarity index 90% rename from backend/vendor/github.com/google/gopacket/layers/gre.go rename to backend/vendor/github.com/gopacket/gopacket/layers/gre.go index 9c5e7d246..308166cc1 100644 --- a/backend/vendor/github.com/google/gopacket/layers/gre.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/gre.go @@ -9,7 +9,7 @@ package layers import ( "encoding/binary" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // GRE is a Generic Routing Encapsulation header. @@ -176,7 +176,8 @@ func (g *GRE) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOpt } if g.ChecksumPresent { if opts.ComputeChecksums { - g.Checksum = tcpipChecksum(b.Bytes(), 0) + csum := gopacket.ComputeChecksum(b.Bytes(), 0) + g.Checksum = gopacket.FoldChecksum(csum) } binary.BigEndian.PutUint16(buf[4:6], g.Checksum) @@ -194,6 +195,19 @@ func (g *GRE) NextLayerType() gopacket.LayerType { return g.Protocol.LayerType() } +func (g *GRE) VerifyChecksum() (error, gopacket.ChecksumVerificationResult) { + bytes := append(g.Contents, g.Payload...) + + existing := g.Checksum + verification := gopacket.ComputeChecksum(bytes, 0) + correct := gopacket.FoldChecksum(verification - uint32(existing)) + return nil, gopacket.ChecksumVerificationResult{ + Valid: !g.ChecksumPresent || correct == existing, + Correct: uint32(correct), + Actual: uint32(existing), + } +} + func decodeGRE(data []byte, p gopacket.PacketBuilder) error { g := &GRE{} return decodingLayerDecoder(g, data, p) diff --git a/backend/vendor/github.com/google/gopacket/layers/gtp.go b/backend/vendor/github.com/gopacket/gopacket/layers/gtp.go similarity index 85% rename from backend/vendor/github.com/google/gopacket/layers/gtp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/gtp.go index fe3054a6d..621250e03 100644 --- a/backend/vendor/github.com/google/gopacket/layers/gtp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/gtp.go @@ -10,7 +10,8 @@ package layers import ( "encoding/binary" "fmt" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) const gtpMinimumSizeInBytes int = 8 @@ -87,7 +88,6 @@ func (g *GTPv1U) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error // extensionLength is in 4-octet units lIndex := cIndex + (uint16(extensionLength) * 4) if uint16(dLen) < lIndex { - fmt.Println(dLen, lIndex) return fmt.Errorf("GTP packet with small extension header: %d bytes", dLen) } content := data[cIndex+1 : lIndex-1] @@ -109,15 +109,50 @@ func (g *GTPv1U) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error // SerializationBuffer, implementing gopacket.SerializableLayer. // See the docs for gopacket.SerializableLayer for more info. func (g *GTPv1U) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error { + var nextExtensionHeaderType byte + for i := len(g.GTPExtensionHeaders) - 1; i >= 0; i-- { + g.ExtensionHeaderFlag = true + eh := g.GTPExtensionHeaders[i] + lContent := len(eh.Content) + if lContent%4 != 2 { + return fmt.Errorf("GTP packet extension header %d has invalid length: %d bytes", i, lContent) + } + + data, err := b.PrependBytes(lContent + 2) // two extra bytes for length and next extension header type + if err != nil { + return err + } + + data[0] = byte((lContent + 2) / 4) // in 4-octet units + data[lContent+1] = nextExtensionHeaderType + copy(data[1:lContent+1], eh.Content) + + nextExtensionHeaderType = eh.Type + } + + if g.ExtensionHeaderFlag || g.SequenceNumberFlag || g.NPDUFlag { + data, err := b.PrependBytes(4) + if err != nil { + return err + } + + binary.BigEndian.PutUint16(data[:2], g.SequenceNumber) + data[2] = g.NPDU + data[3] = nextExtensionHeaderType + } + + if opts.FixLengths { + g.MessageLength = uint16(len(b.Bytes())) + } + data, err := b.PrependBytes(gtpMinimumSizeInBytes) if err != nil { return err } data[0] |= (g.Version << 5) data[0] |= (1 << 4) - if len(g.GTPExtensionHeaders) > 0 { + if g.ExtensionHeaderFlag { data[0] |= 0x04 - g.ExtensionHeaderFlag = true } if g.SequenceNumberFlag { data[0] |= 0x02 @@ -128,29 +163,7 @@ func (g *GTPv1U) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.Serialize data[1] = g.MessageType binary.BigEndian.PutUint16(data[2:4], g.MessageLength) binary.BigEndian.PutUint32(data[4:8], g.TEID) - if g.ExtensionHeaderFlag || g.SequenceNumberFlag || g.NPDUFlag { - data, err := b.AppendBytes(4) - if err != nil { - return err - } - binary.BigEndian.PutUint16(data[:2], g.SequenceNumber) - data[2] = g.NPDU - for _, eh := range g.GTPExtensionHeaders { - data[len(data)-1] = eh.Type - lContent := len(eh.Content) - // extensionLength is in 4-octet units - extensionLength := (lContent + 2) / 4 - // Get two extra byte for the next extension header type and length - data, err = b.AppendBytes(lContent + 2) - if err != nil { - return err - } - data[0] = byte(extensionLength) - copy(data[1:lContent+1], eh.Content) - } - } return nil - } // CanDecode returns a set of layers that GTP objects can decode. diff --git a/backend/vendor/github.com/gopacket/gopacket/layers/iana_ports.go b/backend/vendor/github.com/gopacket/gopacket/layers/iana_ports.go new file mode 100644 index 000000000..73e892227 --- /dev/null +++ b/backend/vendor/github.com/gopacket/gopacket/layers/iana_ports.go @@ -0,0 +1,22944 @@ +// Copyright 2012 Google, Inc. All rights reserved. + +package layers + +// Created by gen.go, don't edit manually +// Generated at 2023-07-28 17:00:37.114586196 +0400 +04 m=+2.218439472 +// Fetched from "http://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xml" + +// TCPPortNames contains the port names for all TCP ports. +func TCPPortNames(port TCPPort) (string, bool) { + switch port { + case 1: + return "tcpmux", true + case 2: + return "compressnet", true + case 3: + return "compressnet", true + case 5: + return "rje", true + case 7: + return "echo", true + case 9: + return "discard", true + case 11: + return "systat", true + case 13: + return "daytime", true + case 17: + return "qotd", true + case 18: + return "msp", true + case 19: + return "chargen", true + case 20: + return "ftp-data", true + case 21: + return "ftp", true + case 22: + return "ssh", true + case 23: + return "telnet", true + case 25: + return "smtp", true + case 27: + return "nsw-fe", true + case 29: + return "msg-icp", true + case 31: + return "msg-auth", true + case 33: + return "dsp", true + case 37: + return "time", true + case 38: + return "rap", true + case 39: + return "rlp", true + case 41: + return "graphics", true + case 42: + return "name", true + case 43: + return "nicname", true + case 44: + return "mpm-flags", true + case 45: + return "mpm", true + case 46: + return "mpm-snd", true + case 48: + return "auditd", true + case 49: + return "tacacs", true + case 50: + return "re-mail-ck", true + case 52: + return "xns-time", true + case 53: + return "domain", true + case 54: + return "xns-ch", true + case 55: + return "isi-gl", true + case 56: + return "xns-auth", true + case 58: + return "xns-mail", true + case 62: + return "acas", true + case 63: + return "whoispp", true + case 64: + return "covia", true + case 65: + return "tacacs-ds", true + case 66: + return "sql-net", true + case 67: + return "bootps", true + case 68: + return "bootpc", true + case 69: + return "tftp", true + case 70: + return "gopher", true + case 71: + return "netrjs-1", true + case 72: + return "netrjs-2", true + case 73: + return "netrjs-3", true + case 74: + return "netrjs-4", true + case 76: + return "deos", true + case 78: + return "vettcp", true + case 79: + return "finger", true + case 80: + return "http", true + case 82: + return "xfer", true + case 83: + return "mit-ml-dev", true + case 84: + return "ctf", true + case 85: + return "mit-ml-dev", true + case 86: + return "mfcobol", true + case 88: + return "kerberos", true + case 89: + return "su-mit-tg", true + case 90: + return "dnsix", true + case 91: + return "mit-dov", true + case 92: + return "npp", true + case 93: + return "dcp", true + case 94: + return "objcall", true + case 95: + return "supdup", true + case 96: + return "dixie", true + case 97: + return "swift-rvf", true + case 98: + return "tacnews", true + case 99: + return "metagram", true + case 101: + return "hostname", true + case 102: + return "iso-tsap", true + case 103: + return "gppitnp", true + case 104: + return "acr-nema", true + case 105: + return "cso", true + case 106: + return "3com-tsmux", true + case 107: + return "rtelnet", true + case 108: + return "snagas", true + case 109: + return "pop2", true + case 110: + return "pop3", true + case 111: + return "sunrpc", true + case 112: + return "mcidas", true + case 113: + return "ident", true + case 115: + return "sftp", true + case 116: + return "ansanotify", true + case 117: + return "uucp-path", true + case 118: + return "sqlserv", true + case 119: + return "nntp", true + case 120: + return "cfdptkt", true + case 121: + return "erpc", true + case 122: + return "smakynet", true + case 123: + return "ntp", true + case 124: + return "ansatrader", true + case 125: + return "locus-map", true + case 126: + return "nxedit", true + case 127: + return "locus-con", true + case 128: + return "gss-xlicen", true + case 129: + return "pwdgen", true + case 130: + return "cisco-fna", true + case 131: + return "cisco-tna", true + case 132: + return "cisco-sys", true + case 133: + return "statsrv", true + case 134: + return "ingres-net", true + case 135: + return "epmap", true + case 136: + return "profile", true + case 137: + return "netbios-ns", true + case 138: + return "netbios-dgm", true + case 139: + return "netbios-ssn", true + case 140: + return "emfis-data", true + case 141: + return "emfis-cntl", true + case 142: + return "bl-idm", true + case 143: + return "imap", true + case 144: + return "uma", true + case 145: + return "uaac", true + case 146: + return "iso-tp0", true + case 147: + return "iso-ip", true + case 148: + return "jargon", true + case 149: + return "aed-512", true + case 150: + return "sql-net", true + case 151: + return "hems", true + case 152: + return "bftp", true + case 153: + return "sgmp", true + case 154: + return "netsc-prod", true + case 155: + return "netsc-dev", true + case 156: + return "sqlsrv", true + case 157: + return "knet-cmp", true + case 158: + return "pcmail-srv", true + case 159: + return "nss-routing", true + case 160: + return "sgmp-traps", true + case 161: + return "snmp", true + case 162: + return "snmptrap", true + case 163: + return "cmip-man", true + case 164: + return "cmip-agent", true + case 165: + return "xns-courier", true + case 166: + return "s-net", true + case 167: + return "namp", true + case 168: + return "rsvd", true + case 169: + return "send", true + case 170: + return "print-srv", true + case 171: + return "multiplex", true + case 172: + return "cl-1", true + case 173: + return "xyplex-mux", true + case 174: + return "mailq", true + case 175: + return "vmnet", true + case 176: + return "genrad-mux", true + case 177: + return "xdmcp", true + case 178: + return "nextstep", true + case 179: + return "bgp", true + case 180: + return "ris", true + case 181: + return "unify", true + case 182: + return "audit", true + case 183: + return "ocbinder", true + case 184: + return "ocserver", true + case 185: + return "remote-kis", true + case 186: + return "kis", true + case 187: + return "aci", true + case 188: + return "mumps", true + case 189: + return "qft", true + case 190: + return "gacp", true + case 191: + return "prospero", true + case 192: + return "osu-nms", true + case 193: + return "srmp", true + case 194: + return "irc", true + case 195: + return "dn6-nlm-aud", true + case 196: + return "dn6-smm-red", true + case 197: + return "dls", true + case 198: + return "dls-mon", true + case 199: + return "smux", true + case 200: + return "src", true + case 201: + return "at-rtmp", true + case 202: + return "at-nbp", true + case 203: + return "at-3", true + case 204: + return "at-echo", true + case 205: + return "at-5", true + case 206: + return "at-zis", true + case 207: + return "at-7", true + case 208: + return "at-8", true + case 209: + return "qmtp", true + case 210: + return "z39-50", true + case 211: + return "914c-g", true + case 212: + return "anet", true + case 213: + return "ipx", true + case 214: + return "vmpwscs", true + case 215: + return "softpc", true + case 216: + return "CAIlic", true + case 217: + return "dbase", true + case 218: + return "mpp", true + case 219: + return "uarps", true + case 220: + return "imap3", true + case 221: + return "fln-spx", true + case 222: + return "rsh-spx", true + case 223: + return "cdc", true + case 224: + return "masqdialer", true + case 242: + return "direct", true + case 243: + return "sur-meas", true + case 244: + return "inbusiness", true + case 245: + return "link", true + case 246: + return "dsp3270", true + case 247: + return "subntbcst-tftp", true + case 248: + return "bhfhs", true + case 256: + return "rap", true + case 257: + return "set", true + case 259: + return "esro-gen", true + case 260: + return "openport", true + case 261: + return "nsiiops", true + case 262: + return "arcisdms", true + case 263: + return "hdap", true + case 264: + return "bgmp", true + case 265: + return "x-bone-ctl", true + case 266: + return "sst", true + case 267: + return "td-service", true + case 268: + return "td-replica", true + case 269: + return "manet", true + case 271: + return "pt-tls", true + case 280: + return "http-mgmt", true + case 281: + return "personal-link", true + case 282: + return "cableport-ax", true + case 283: + return "rescap", true + case 284: + return "corerjd", true + case 286: + return "fxp", true + case 287: + return "k-block", true + case 308: + return "novastorbakcup", true + case 309: + return "entrusttime", true + case 310: + return "bhmds", true + case 311: + return "asip-webadmin", true + case 312: + return "vslmp", true + case 313: + return "magenta-logic", true + case 314: + return "opalis-robot", true + case 315: + return "dpsi", true + case 316: + return "decauth", true + case 317: + return "zannet", true + case 318: + return "pkix-timestamp", true + case 319: + return "ptp-event", true + case 320: + return "ptp-general", true + case 321: + return "pip", true + case 322: + return "rtsps", true + case 323: + return "rpki-rtr", true + case 324: + return "rpki-rtr-tls", true + case 333: + return "texar", true + case 344: + return "pdap", true + case 345: + return "pawserv", true + case 346: + return "zserv", true + case 347: + return "fatserv", true + case 348: + return "csi-sgwp", true + case 349: + return "mftp", true + case 350: + return "matip-type-a", true + case 351: + return "matip-type-b", true + case 352: + return "dtag-ste-sb", true + case 353: + return "ndsauth", true + case 354: + return "bh611", true + case 355: + return "datex-asn", true + case 356: + return "cloanto-net-1", true + case 357: + return "bhevent", true + case 358: + return "shrinkwrap", true + case 359: + return "nsrmp", true + case 360: + return "scoi2odialog", true + case 361: + return "semantix", true + case 362: + return "srssend", true + case 363: + return "rsvp-tunnel", true + case 364: + return "aurora-cmgr", true + case 365: + return "dtk", true + case 366: + return "odmr", true + case 367: + return "mortgageware", true + case 368: + return "qbikgdp", true + case 369: + return "rpc2portmap", true + case 370: + return "codaauth2", true + case 371: + return "clearcase", true + case 372: + return "ulistproc", true + case 373: + return "legent-1", true + case 374: + return "legent-2", true + case 375: + return "hassle", true + case 376: + return "nip", true + case 377: + return "tnETOS", true + case 378: + return "dsETOS", true + case 379: + return "is99c", true + case 380: + return "is99s", true + case 381: + return "hp-collector", true + case 382: + return "hp-managed-node", true + case 383: + return "hp-alarm-mgr", true + case 384: + return "arns", true + case 385: + return "ibm-app", true + case 386: + return "asa", true + case 387: + return "aurp", true + case 388: + return "unidata-ldm", true + case 389: + return "ldap", true + case 390: + return "uis", true + case 391: + return "synotics-relay", true + case 392: + return "synotics-broker", true + case 393: + return "meta5", true + case 394: + return "embl-ndt", true + case 395: + return "netcp", true + case 396: + return "netware-ip", true + case 397: + return "mptn", true + case 398: + return "kryptolan", true + case 399: + return "iso-tsap-c2", true + case 400: + return "osb-sd", true + case 401: + return "ups", true + case 402: + return "genie", true + case 403: + return "decap", true + case 404: + return "nced", true + case 405: + return "ncld", true + case 406: + return "imsp", true + case 407: + return "timbuktu", true + case 408: + return "prm-sm", true + case 409: + return "prm-nm", true + case 410: + return "decladebug", true + case 411: + return "rmt", true + case 412: + return "synoptics-trap", true + case 413: + return "smsp", true + case 414: + return "infoseek", true + case 415: + return "bnet", true + case 416: + return "silverplatter", true + case 417: + return "onmux", true + case 418: + return "hyper-g", true + case 419: + return "ariel1", true + case 420: + return "smpte", true + case 421: + return "ariel2", true + case 422: + return "ariel3", true + case 423: + return "opc-job-start", true + case 424: + return "opc-job-track", true + case 425: + return "icad-el", true + case 426: + return "smartsdp", true + case 427: + return "svrloc", true + case 428: + return "ocs-cmu", true + case 429: + return "ocs-amu", true + case 430: + return "utmpsd", true + case 431: + return "utmpcd", true + case 432: + return "iasd", true + case 433: + return "nnsp", true + case 434: + return "mobileip-agent", true + case 435: + return "mobilip-mn", true + case 436: + return "dna-cml", true + case 437: + return "comscm", true + case 438: + return "dsfgw", true + case 439: + return "dasp", true + case 440: + return "sgcp", true + case 441: + return "decvms-sysmgt", true + case 442: + return "cvc-hostd", true + case 443: + return "https", true + case 444: + return "snpp", true + case 445: + return "microsoft-ds", true + case 446: + return "ddm-rdb", true + case 447: + return "ddm-dfm", true + case 448: + return "ddm-ssl", true + case 449: + return "as-servermap", true + case 450: + return "tserver", true + case 451: + return "sfs-smp-net", true + case 452: + return "sfs-config", true + case 453: + return "creativeserver", true + case 454: + return "contentserver", true + case 455: + return "creativepartnr", true + case 456: + return "macon-tcp", true + case 457: + return "scohelp", true + case 458: + return "appleqtc", true + case 459: + return "ampr-rcmd", true + case 460: + return "skronk", true + case 461: + return "datasurfsrv", true + case 462: + return "datasurfsrvsec", true + case 463: + return "alpes", true + case 464: + return "kpasswd", true + case 465: + return "urd", true + case 466: + return "digital-vrc", true + case 467: + return "mylex-mapd", true + case 468: + return "photuris", true + case 469: + return "rcp", true + case 470: + return "scx-proxy", true + case 471: + return "mondex", true + case 472: + return "ljk-login", true + case 473: + return "hybrid-pop", true + case 474: + return "tn-tl-w1", true + case 475: + return "tcpnethaspsrv", true + case 476: + return "tn-tl-fd1", true + case 477: + return "ss7ns", true + case 478: + return "spsc", true + case 479: + return "iafserver", true + case 480: + return "iafdbase", true + case 481: + return "ph", true + case 482: + return "bgs-nsi", true + case 483: + return "ulpnet", true + case 484: + return "integra-sme", true + case 485: + return "powerburst", true + case 486: + return "avian", true + case 487: + return "saft", true + case 488: + return "gss-http", true + case 489: + return "nest-protocol", true + case 490: + return "micom-pfs", true + case 491: + return "go-login", true + case 492: + return "ticf-1", true + case 493: + return "ticf-2", true + case 494: + return "pov-ray", true + case 495: + return "intecourier", true + case 496: + return "pim-rp-disc", true + case 497: + return "retrospect", true + case 498: + return "siam", true + case 499: + return "iso-ill", true + case 500: + return "isakmp", true + case 501: + return "stmf", true + case 502: + return "mbap", true + case 503: + return "intrinsa", true + case 504: + return "citadel", true + case 505: + return "mailbox-lm", true + case 506: + return "ohimsrv", true + case 507: + return "crs", true + case 508: + return "xvttp", true + case 509: + return "snare", true + case 510: + return "fcp", true + case 511: + return "passgo", true + case 512: + return "exec", true + case 513: + return "login", true + case 514: + return "shell", true + case 515: + return "printer", true + case 516: + return "videotex", true + case 517: + return "talk", true + case 518: + return "ntalk", true + case 519: + return "utime", true + case 520: + return "efs", true + case 521: + return "ripng", true + case 522: + return "ulp", true + case 523: + return "ibm-db2", true + case 524: + return "ncp", true + case 525: + return "timed", true + case 526: + return "tempo", true + case 527: + return "stx", true + case 528: + return "custix", true + case 529: + return "irc-serv", true + case 530: + return "courier", true + case 531: + return "conference", true + case 532: + return "netnews", true + case 533: + return "netwall", true + case 534: + return "windream", true + case 535: + return "iiop", true + case 536: + return "opalis-rdv", true + case 537: + return "nmsp", true + case 538: + return "gdomap", true + case 539: + return "apertus-ldp", true + case 540: + return "uucp", true + case 541: + return "uucp-rlogin", true + case 542: + return "commerce", true + case 543: + return "klogin", true + case 544: + return "kshell", true + case 545: + return "appleqtcsrvr", true + case 546: + return "dhcpv6-client", true + case 547: + return "dhcpv6-server", true + case 548: + return "afpovertcp", true + case 549: + return "idfp", true + case 550: + return "new-rwho", true + case 551: + return "cybercash", true + case 552: + return "devshr-nts", true + case 553: + return "pirp", true + case 554: + return "rtsp", true + case 555: + return "dsf", true + case 556: + return "remotefs", true + case 557: + return "openvms-sysipc", true + case 558: + return "sdnskmp", true + case 559: + return "teedtap", true + case 560: + return "rmonitor", true + case 561: + return "monitor", true + case 562: + return "chshell", true + case 563: + return "nntps", true + case 564: + return "9pfs", true + case 565: + return "whoami", true + case 566: + return "streettalk", true + case 567: + return "banyan-rpc", true + case 568: + return "ms-shuttle", true + case 569: + return "ms-rome", true + case 570: + return "meter", true + case 571: + return "meter", true + case 572: + return "sonar", true + case 573: + return "banyan-vip", true + case 574: + return "ftp-agent", true + case 575: + return "vemmi", true + case 576: + return "ipcd", true + case 577: + return "vnas", true + case 578: + return "ipdd", true + case 579: + return "decbsrv", true + case 580: + return "sntp-heartbeat", true + case 581: + return "bdp", true + case 582: + return "scc-security", true + case 583: + return "philips-vc", true + case 584: + return "keyserver", true + case 586: + return "password-chg", true + case 587: + return "submission", true + case 588: + return "cal", true + case 589: + return "eyelink", true + case 590: + return "tns-cml", true + case 591: + return "http-alt", true + case 592: + return "eudora-set", true + case 593: + return "http-rpc-epmap", true + case 594: + return "tpip", true + case 595: + return "cab-protocol", true + case 596: + return "smsd", true + case 597: + return "ptcnameservice", true + case 598: + return "sco-websrvrmg3", true + case 599: + return "acp", true + case 600: + return "ipcserver", true + case 601: + return "syslog-conn", true + case 602: + return "xmlrpc-beep", true + case 603: + return "idxp", true + case 604: + return "tunnel", true + case 605: + return "soap-beep", true + case 606: + return "urm", true + case 607: + return "nqs", true + case 608: + return "sift-uft", true + case 609: + return "npmp-trap", true + case 610: + return "npmp-local", true + case 611: + return "npmp-gui", true + case 612: + return "hmmp-ind", true + case 613: + return "hmmp-op", true + case 614: + return "sshell", true + case 615: + return "sco-inetmgr", true + case 616: + return "sco-sysmgr", true + case 617: + return "sco-dtmgr", true + case 618: + return "dei-icda", true + case 619: + return "compaq-evm", true + case 620: + return "sco-websrvrmgr", true + case 621: + return "escp-ip", true + case 622: + return "collaborator", true + case 623: + return "oob-ws-http", true + case 624: + return "cryptoadmin", true + case 625: + return "dec-dlm", true + case 626: + return "asia", true + case 627: + return "passgo-tivoli", true + case 628: + return "qmqp", true + case 629: + return "3com-amp3", true + case 630: + return "rda", true + case 631: + return "ipp", true + case 632: + return "bmpp", true + case 633: + return "servstat", true + case 634: + return "ginad", true + case 635: + return "rlzdbase", true + case 636: + return "ldaps", true + case 637: + return "lanserver", true + case 638: + return "mcns-sec", true + case 639: + return "msdp", true + case 640: + return "entrust-sps", true + case 641: + return "repcmd", true + case 642: + return "esro-emsdp", true + case 643: + return "sanity", true + case 644: + return "dwr", true + case 645: + return "pssc", true + case 646: + return "ldp", true + case 647: + return "dhcp-failover", true + case 648: + return "rrp", true + case 649: + return "cadview-3d", true + case 650: + return "obex", true + case 651: + return "ieee-mms", true + case 652: + return "hello-port", true + case 653: + return "repscmd", true + case 654: + return "aodv", true + case 655: + return "tinc", true + case 656: + return "spmp", true + case 657: + return "rmc", true + case 658: + return "tenfold", true + case 660: + return "mac-srvr-admin", true + case 661: + return "hap", true + case 662: + return "pftp", true + case 663: + return "purenoise", true + case 664: + return "oob-ws-https", true + case 665: + return "sun-dr", true + case 666: + return "mdqs", true + case 667: + return "disclose", true + case 668: + return "mecomm", true + case 669: + return "meregister", true + case 670: + return "vacdsm-sws", true + case 671: + return "vacdsm-app", true + case 672: + return "vpps-qua", true + case 673: + return "cimplex", true + case 674: + return "acap", true + case 675: + return "dctp", true + case 676: + return "vpps-via", true + case 677: + return "vpp", true + case 678: + return "ggf-ncp", true + case 679: + return "mrm", true + case 680: + return "entrust-aaas", true + case 681: + return "entrust-aams", true + case 682: + return "xfr", true + case 683: + return "corba-iiop", true + case 684: + return "corba-iiop-ssl", true + case 685: + return "mdc-portmapper", true + case 686: + return "hcp-wismar", true + case 687: + return "asipregistry", true + case 688: + return "realm-rusd", true + case 689: + return "nmap", true + case 690: + return "vatp", true + case 691: + return "msexch-routing", true + case 692: + return "hyperwave-isp", true + case 693: + return "connendp", true + case 694: + return "ha-cluster", true + case 695: + return "ieee-mms-ssl", true + case 696: + return "rushd", true + case 697: + return "uuidgen", true + case 698: + return "olsr", true + case 699: + return "accessnetwork", true + case 700: + return "epp", true + case 701: + return "lmp", true + case 702: + return "iris-beep", true + case 704: + return "elcsd", true + case 705: + return "agentx", true + case 706: + return "silc", true + case 707: + return "borland-dsj", true + case 709: + return "entrust-kmsh", true + case 710: + return "entrust-ash", true + case 711: + return "cisco-tdp", true + case 712: + return "tbrpf", true + case 713: + return "iris-xpc", true + case 714: + return "iris-xpcs", true + case 715: + return "iris-lwz", true + case 729: + return "netviewdm1", true + case 730: + return "netviewdm2", true + case 731: + return "netviewdm3", true + case 741: + return "netgw", true + case 742: + return "netrcs", true + case 744: + return "flexlm", true + case 747: + return "fujitsu-dev", true + case 748: + return "ris-cm", true + case 749: + return "kerberos-adm", true + case 750: + return "rfile", true + case 751: + return "pump", true + case 752: + return "qrh", true + case 753: + return "rrh", true + case 754: + return "tell", true + case 758: + return "nlogin", true + case 759: + return "con", true + case 760: + return "ns", true + case 761: + return "rxe", true + case 762: + return "quotad", true + case 763: + return "cycleserv", true + case 764: + return "omserv", true + case 765: + return "webster", true + case 767: + return "phonebook", true + case 769: + return "vid", true + case 770: + return "cadlock", true + case 771: + return "rtip", true + case 772: + return "cycleserv2", true + case 773: + return "submit", true + case 774: + return "rpasswd", true + case 775: + return "entomb", true + case 776: + return "wpages", true + case 777: + return "multiling-http", true + case 780: + return "wpgs", true + case 800: + return "mdbs-daemon", true + case 801: + return "device", true + case 802: + return "mbap-s", true + case 810: + return "fcp-udp", true + case 828: + return "itm-mcell-s", true + case 829: + return "pkix-3-ca-ra", true + case 830: + return "netconf-ssh", true + case 831: + return "netconf-beep", true + case 832: + return "netconfsoaphttp", true + case 833: + return "netconfsoapbeep", true + case 847: + return "dhcp-failover2", true + case 848: + return "gdoi", true + case 853: + return "domain-s", true + case 854: + return "dlep", true + case 860: + return "iscsi", true + case 861: + return "owamp-control", true + case 862: + return "twamp-control", true + case 873: + return "rsync", true + case 886: + return "iclcnet-locate", true + case 887: + return "iclcnet-svinfo", true + case 888: + return "accessbuilder", true + case 900: + return "omginitialrefs", true + case 901: + return "smpnameres", true + case 902: + return "ideafarm-door", true + case 903: + return "ideafarm-panic", true + case 910: + return "kink", true + case 911: + return "xact-backup", true + case 912: + return "apex-mesh", true + case 913: + return "apex-edge", true + case 953: + return "rndc", true + case 989: + return "ftps-data", true + case 990: + return "ftps", true + case 991: + return "nas", true + case 992: + return "telnets", true + case 993: + return "imaps", true + case 995: + return "pop3s", true + case 996: + return "vsinet", true + case 997: + return "maitrd", true + case 998: + return "busboy", true + case 999: + return "garcon", true + case 1000: + return "cadlock2", true + case 1001: + return "webpush", true + case 1010: + return "surf", true + case 1021: + return "exp1", true + case 1022: + return "exp2", true + case 1025: + return "blackjack", true + case 1026: + return "cap", true + case 1029: + return "solid-mux", true + case 1033: + return "netinfo-local", true + case 1034: + return "activesync", true + case 1035: + return "mxxrlogin", true + case 1036: + return "nsstp", true + case 1037: + return "ams", true + case 1038: + return "mtqp", true + case 1039: + return "sbl", true + case 1040: + return "netarx", true + case 1041: + return "danf-ak2", true + case 1042: + return "afrog", true + case 1043: + return "boinc-client", true + case 1044: + return "dcutility", true + case 1045: + return "fpitp", true + case 1046: + return "wfremotertm", true + case 1047: + return "neod1", true + case 1048: + return "neod2", true + case 1049: + return "td-postman", true + case 1050: + return "cma", true + case 1051: + return "optima-vnet", true + case 1052: + return "ddt", true + case 1053: + return "remote-as", true + case 1054: + return "brvread", true + case 1055: + return "ansyslmd", true + case 1056: + return "vfo", true + case 1057: + return "startron", true + case 1058: + return "nim", true + case 1059: + return "nimreg", true + case 1060: + return "polestar", true + case 1061: + return "kiosk", true + case 1062: + return "veracity", true + case 1063: + return "kyoceranetdev", true + case 1064: + return "jstel", true + case 1065: + return "syscomlan", true + case 1066: + return "fpo-fns", true + case 1067: + return "instl-boots", true + case 1068: + return "instl-bootc", true + case 1069: + return "cognex-insight", true + case 1070: + return "gmrupdateserv", true + case 1071: + return "bsquare-voip", true + case 1072: + return "cardax", true + case 1073: + return "bridgecontrol", true + case 1074: + return "warmspotMgmt", true + case 1075: + return "rdrmshc", true + case 1076: + return "dab-sti-c", true + case 1077: + return "imgames", true + case 1078: + return "avocent-proxy", true + case 1079: + return "asprovatalk", true + case 1080: + return "socks", true + case 1081: + return "pvuniwien", true + case 1082: + return "amt-esd-prot", true + case 1083: + return "ansoft-lm-1", true + case 1084: + return "ansoft-lm-2", true + case 1085: + return "webobjects", true + case 1086: + return "cplscrambler-lg", true + case 1087: + return "cplscrambler-in", true + case 1088: + return "cplscrambler-al", true + case 1089: + return "ff-annunc", true + case 1090: + return "ff-fms", true + case 1091: + return "ff-sm", true + case 1092: + return "obrpd", true + case 1093: + return "proofd", true + case 1094: + return "rootd", true + case 1095: + return "nicelink", true + case 1096: + return "cnrprotocol", true + case 1097: + return "sunclustermgr", true + case 1098: + return "rmiactivation", true + case 1099: + return "rmiregistry", true + case 1100: + return "mctp", true + case 1101: + return "pt2-discover", true + case 1102: + return "adobeserver-1", true + case 1103: + return "adobeserver-2", true + case 1104: + return "xrl", true + case 1105: + return "ftranhc", true + case 1106: + return "isoipsigport-1", true + case 1107: + return "isoipsigport-2", true + case 1108: + return "ratio-adp", true + case 1110: + return "webadmstart", true + case 1111: + return "lmsocialserver", true + case 1112: + return "icp", true + case 1113: + return "ltp-deepspace", true + case 1114: + return "mini-sql", true + case 1115: + return "ardus-trns", true + case 1116: + return "ardus-cntl", true + case 1117: + return "ardus-mtrns", true + case 1118: + return "sacred", true + case 1119: + return "bnetgame", true + case 1120: + return "bnetfile", true + case 1121: + return "rmpp", true + case 1122: + return "availant-mgr", true + case 1123: + return "murray", true + case 1124: + return "hpvmmcontrol", true + case 1125: + return "hpvmmagent", true + case 1126: + return "hpvmmdata", true + case 1127: + return "kwdb-commn", true + case 1128: + return "saphostctrl", true + case 1129: + return "saphostctrls", true + case 1130: + return "casp", true + case 1131: + return "caspssl", true + case 1132: + return "kvm-via-ip", true + case 1133: + return "dfn", true + case 1134: + return "aplx", true + case 1135: + return "omnivision", true + case 1136: + return "hhb-gateway", true + case 1137: + return "trim", true + case 1138: + return "encrypted-admin", true + case 1139: + return "evm", true + case 1140: + return "autonoc", true + case 1141: + return "mxomss", true + case 1142: + return "edtools", true + case 1143: + return "imyx", true + case 1144: + return "fuscript", true + case 1145: + return "x9-icue", true + case 1146: + return "audit-transfer", true + case 1147: + return "capioverlan", true + case 1148: + return "elfiq-repl", true + case 1149: + return "bvtsonar", true + case 1150: + return "blaze", true + case 1151: + return "unizensus", true + case 1152: + return "winpoplanmess", true + case 1153: + return "c1222-acse", true + case 1154: + return "resacommunity", true + case 1155: + return "nfa", true + case 1156: + return "iascontrol-oms", true + case 1157: + return "iascontrol", true + case 1158: + return "dbcontrol-oms", true + case 1159: + return "oracle-oms", true + case 1160: + return "olsv", true + case 1161: + return "health-polling", true + case 1162: + return "health-trap", true + case 1163: + return "sddp", true + case 1164: + return "qsm-proxy", true + case 1165: + return "qsm-gui", true + case 1166: + return "qsm-remote", true + case 1167: + return "cisco-ipsla", true + case 1168: + return "vchat", true + case 1169: + return "tripwire", true + case 1170: + return "atc-lm", true + case 1171: + return "atc-appserver", true + case 1172: + return "dnap", true + case 1173: + return "d-cinema-rrp", true + case 1174: + return "fnet-remote-ui", true + case 1175: + return "dossier", true + case 1176: + return "indigo-server", true + case 1177: + return "dkmessenger", true + case 1178: + return "sgi-storman", true + case 1179: + return "b2n", true + case 1180: + return "mc-client", true + case 1181: + return "3comnetman", true + case 1182: + return "accelenet", true + case 1183: + return "llsurfup-http", true + case 1184: + return "llsurfup-https", true + case 1185: + return "catchpole", true + case 1186: + return "mysql-cluster", true + case 1187: + return "alias", true + case 1188: + return "hp-webadmin", true + case 1189: + return "unet", true + case 1190: + return "commlinx-avl", true + case 1191: + return "gpfs", true + case 1192: + return "caids-sensor", true + case 1193: + return "fiveacross", true + case 1194: + return "openvpn", true + case 1195: + return "rsf-1", true + case 1196: + return "netmagic", true + case 1197: + return "carrius-rshell", true + case 1198: + return "cajo-discovery", true + case 1199: + return "dmidi", true + case 1200: + return "scol", true + case 1201: + return "nucleus-sand", true + case 1202: + return "caiccipc", true + case 1203: + return "ssslic-mgr", true + case 1204: + return "ssslog-mgr", true + case 1205: + return "accord-mgc", true + case 1206: + return "anthony-data", true + case 1207: + return "metasage", true + case 1208: + return "seagull-ais", true + case 1209: + return "ipcd3", true + case 1210: + return "eoss", true + case 1211: + return "groove-dpp", true + case 1212: + return "lupa", true + case 1213: + return "mpc-lifenet", true + case 1214: + return "kazaa", true + case 1215: + return "scanstat-1", true + case 1216: + return "etebac5", true + case 1217: + return "hpss-ndapi", true + case 1218: + return "aeroflight-ads", true + case 1219: + return "aeroflight-ret", true + case 1220: + return "qt-serveradmin", true + case 1221: + return "sweetware-apps", true + case 1222: + return "nerv", true + case 1223: + return "tgp", true + case 1224: + return "vpnz", true + case 1225: + return "slinkysearch", true + case 1226: + return "stgxfws", true + case 1227: + return "dns2go", true + case 1228: + return "florence", true + case 1229: + return "zented", true + case 1230: + return "periscope", true + case 1231: + return "menandmice-lpm", true + case 1232: + return "first-defense", true + case 1233: + return "univ-appserver", true + case 1234: + return "search-agent", true + case 1235: + return "mosaicsyssvc1", true + case 1236: + return "bvcontrol", true + case 1237: + return "tsdos390", true + case 1238: + return "hacl-qs", true + case 1239: + return "nmsd", true + case 1240: + return "instantia", true + case 1241: + return "nessus", true + case 1242: + return "nmasoverip", true + case 1243: + return "serialgateway", true + case 1244: + return "isbconference1", true + case 1245: + return "isbconference2", true + case 1246: + return "payrouter", true + case 1247: + return "visionpyramid", true + case 1248: + return "hermes", true + case 1249: + return "mesavistaco", true + case 1250: + return "swldy-sias", true + case 1251: + return "servergraph", true + case 1252: + return "bspne-pcc", true + case 1253: + return "q55-pcc", true + case 1254: + return "de-noc", true + case 1255: + return "de-cache-query", true + case 1256: + return "de-server", true + case 1257: + return "shockwave2", true + case 1258: + return "opennl", true + case 1259: + return "opennl-voice", true + case 1260: + return "ibm-ssd", true + case 1261: + return "mpshrsv", true + case 1262: + return "qnts-orb", true + case 1263: + return "dka", true + case 1264: + return "prat", true + case 1265: + return "dssiapi", true + case 1266: + return "dellpwrappks", true + case 1267: + return "epc", true + case 1268: + return "propel-msgsys", true + case 1269: + return "watilapp", true + case 1270: + return "opsmgr", true + case 1271: + return "excw", true + case 1272: + return "cspmlockmgr", true + case 1273: + return "emc-gateway", true + case 1274: + return "t1distproc", true + case 1275: + return "ivcollector", true + case 1277: + return "miva-mqs", true + case 1278: + return "dellwebadmin-1", true + case 1279: + return "dellwebadmin-2", true + case 1280: + return "pictrography", true + case 1281: + return "healthd", true + case 1282: + return "emperion", true + case 1283: + return "productinfo", true + case 1284: + return "iee-qfx", true + case 1285: + return "neoiface", true + case 1286: + return "netuitive", true + case 1287: + return "routematch", true + case 1288: + return "navbuddy", true + case 1289: + return "jwalkserver", true + case 1290: + return "winjaserver", true + case 1291: + return "seagulllms", true + case 1292: + return "dsdn", true + case 1293: + return "pkt-krb-ipsec", true + case 1294: + return "cmmdriver", true + case 1295: + return "ehtp", true + case 1296: + return "dproxy", true + case 1297: + return "sdproxy", true + case 1298: + return "lpcp", true + case 1299: + return "hp-sci", true + case 1300: + return "h323hostcallsc", true + case 1303: + return "sftsrv", true + case 1304: + return "boomerang", true + case 1305: + return "pe-mike", true + case 1306: + return "re-conn-proto", true + case 1307: + return "pacmand", true + case 1308: + return "odsi", true + case 1309: + return "jtag-server", true + case 1310: + return "husky", true + case 1311: + return "rxmon", true + case 1312: + return "sti-envision", true + case 1313: + return "bmc-patroldb", true + case 1314: + return "pdps", true + case 1315: + return "els", true + case 1316: + return "exbit-escp", true + case 1317: + return "vrts-ipcserver", true + case 1318: + return "krb5gatekeeper", true + case 1319: + return "amx-icsp", true + case 1320: + return "amx-axbnet", true + case 1321: + return "pip", true + case 1322: + return "novation", true + case 1323: + return "brcd", true + case 1324: + return "delta-mcp", true + case 1325: + return "dx-instrument", true + case 1326: + return "wimsic", true + case 1327: + return "ultrex", true + case 1328: + return "ewall", true + case 1329: + return "netdb-export", true + case 1330: + return "streetperfect", true + case 1331: + return "intersan", true + case 1332: + return "pcia-rxp-b", true + case 1333: + return "passwrd-policy", true + case 1334: + return "writesrv", true + case 1335: + return "digital-notary", true + case 1336: + return "ischat", true + case 1337: + return "menandmice-dns", true + case 1338: + return "wmc-log-svc", true + case 1339: + return "kjtsiteserver", true + case 1340: + return "naap", true + case 1341: + return "qubes", true + case 1342: + return "esbroker", true + case 1343: + return "re101", true + case 1344: + return "icap", true + case 1345: + return "vpjp", true + case 1346: + return "alta-ana-lm", true + case 1347: + return "bbn-mmc", true + case 1348: + return "bbn-mmx", true + case 1349: + return "sbook", true + case 1350: + return "editbench", true + case 1351: + return "equationbuilder", true + case 1352: + return "lotusnote", true + case 1353: + return "relief", true + case 1354: + return "XSIP-network", true + case 1355: + return "intuitive-edge", true + case 1356: + return "cuillamartin", true + case 1357: + return "pegboard", true + case 1358: + return "connlcli", true + case 1359: + return "ftsrv", true + case 1360: + return "mimer", true + case 1361: + return "linx", true + case 1362: + return "timeflies", true + case 1363: + return "ndm-requester", true + case 1364: + return "ndm-server", true + case 1365: + return "adapt-sna", true + case 1366: + return "netware-csp", true + case 1367: + return "dcs", true + case 1368: + return "screencast", true + case 1369: + return "gv-us", true + case 1370: + return "us-gv", true + case 1371: + return "fc-cli", true + case 1372: + return "fc-ser", true + case 1373: + return "chromagrafx", true + case 1374: + return "molly", true + case 1375: + return "bytex", true + case 1376: + return "ibm-pps", true + case 1377: + return "cichlid", true + case 1378: + return "elan", true + case 1379: + return "dbreporter", true + case 1380: + return "telesis-licman", true + case 1381: + return "apple-licman", true + case 1382: + return "udt-os", true + case 1383: + return "gwha", true + case 1384: + return "os-licman", true + case 1385: + return "atex-elmd", true + case 1386: + return "checksum", true + case 1387: + return "cadsi-lm", true + case 1388: + return "objective-dbc", true + case 1389: + return "iclpv-dm", true + case 1390: + return "iclpv-sc", true + case 1391: + return "iclpv-sas", true + case 1392: + return "iclpv-pm", true + case 1393: + return "iclpv-nls", true + case 1394: + return "iclpv-nlc", true + case 1395: + return "iclpv-wsm", true + case 1396: + return "dvl-activemail", true + case 1397: + return "audio-activmail", true + case 1398: + return "video-activmail", true + case 1399: + return "cadkey-licman", true + case 1400: + return "cadkey-tablet", true + case 1401: + return "goldleaf-licman", true + case 1402: + return "prm-sm-np", true + case 1403: + return "prm-nm-np", true + case 1404: + return "igi-lm", true + case 1405: + return "ibm-res", true + case 1406: + return "netlabs-lm", true + case 1407: + return "tibet-server", true + case 1408: + return "sophia-lm", true + case 1409: + return "here-lm", true + case 1410: + return "hiq", true + case 1411: + return "af", true + case 1412: + return "innosys", true + case 1413: + return "innosys-acl", true + case 1414: + return "ibm-mqseries", true + case 1415: + return "dbstar", true + case 1416: + return "novell-lu6-2", true + case 1417: + return "timbuktu-srv1", true + case 1418: + return "timbuktu-srv2", true + case 1419: + return "timbuktu-srv3", true + case 1420: + return "timbuktu-srv4", true + case 1421: + return "gandalf-lm", true + case 1422: + return "autodesk-lm", true + case 1423: + return "essbase", true + case 1424: + return "hybrid", true + case 1425: + return "zion-lm", true + case 1426: + return "sais", true + case 1427: + return "mloadd", true + case 1428: + return "informatik-lm", true + case 1429: + return "nms", true + case 1430: + return "tpdu", true + case 1431: + return "rgtp", true + case 1432: + return "blueberry-lm", true + case 1433: + return "ms-sql-s", true + case 1434: + return "ms-sql-m", true + case 1435: + return "ibm-cics", true + case 1436: + return "saism", true + case 1437: + return "tabula", true + case 1438: + return "eicon-server", true + case 1439: + return "eicon-x25", true + case 1440: + return "eicon-slp", true + case 1441: + return "cadis-1", true + case 1442: + return "cadis-2", true + case 1443: + return "ies-lm", true + case 1444: + return "marcam-lm", true + case 1445: + return "proxima-lm", true + case 1446: + return "ora-lm", true + case 1447: + return "apri-lm", true + case 1448: + return "oc-lm", true + case 1449: + return "peport", true + case 1450: + return "dwf", true + case 1451: + return "infoman", true + case 1452: + return "gtegsc-lm", true + case 1453: + return "genie-lm", true + case 1454: + return "interhdl-elmd", true + case 1455: + return "esl-lm", true + case 1456: + return "dca", true + case 1457: + return "valisys-lm", true + case 1458: + return "nrcabq-lm", true + case 1459: + return "proshare1", true + case 1460: + return "proshare2", true + case 1461: + return "ibm-wrless-lan", true + case 1462: + return "world-lm", true + case 1463: + return "nucleus", true + case 1464: + return "msl-lmd", true + case 1465: + return "pipes", true + case 1466: + return "oceansoft-lm", true + case 1467: + return "csdmbase", true + case 1468: + return "csdm", true + case 1469: + return "aal-lm", true + case 1470: + return "uaiact", true + case 1471: + return "csdmbase", true + case 1472: + return "csdm", true + case 1473: + return "openmath", true + case 1474: + return "telefinder", true + case 1475: + return "taligent-lm", true + case 1476: + return "clvm-cfg", true + case 1477: + return "ms-sna-server", true + case 1478: + return "ms-sna-base", true + case 1479: + return "dberegister", true + case 1480: + return "pacerforum", true + case 1481: + return "airs", true + case 1482: + return "miteksys-lm", true + case 1483: + return "afs", true + case 1484: + return "confluent", true + case 1485: + return "lansource", true + case 1486: + return "nms-topo-serv", true + case 1487: + return "localinfosrvr", true + case 1488: + return "docstor", true + case 1489: + return "dmdocbroker", true + case 1490: + return "insitu-conf", true + case 1492: + return "stone-design-1", true + case 1493: + return "netmap-lm", true + case 1494: + return "ica", true + case 1495: + return "cvc", true + case 1496: + return "liberty-lm", true + case 1497: + return "rfx-lm", true + case 1498: + return "sybase-sqlany", true + case 1499: + return "fhc", true + case 1500: + return "vlsi-lm", true + case 1501: + return "saiscm", true + case 1502: + return "shivadiscovery", true + case 1503: + return "imtc-mcs", true + case 1504: + return "evb-elm", true + case 1505: + return "funkproxy", true + case 1506: + return "utcd", true + case 1507: + return "symplex", true + case 1508: + return "diagmond", true + case 1509: + return "robcad-lm", true + case 1510: + return "mvx-lm", true + case 1511: + return "3l-l1", true + case 1512: + return "wins", true + case 1513: + return "fujitsu-dtc", true + case 1514: + return "fujitsu-dtcns", true + case 1515: + return "ifor-protocol", true + case 1516: + return "vpad", true + case 1517: + return "vpac", true + case 1518: + return "vpvd", true + case 1519: + return "vpvc", true + case 1520: + return "atm-zip-office", true + case 1521: + return "ncube-lm", true + case 1522: + return "ricardo-lm", true + case 1523: + return "cichild-lm", true + case 1524: + return "ingreslock", true + case 1525: + return "orasrv", true + case 1526: + return "pdap-np", true + case 1527: + return "tlisrv", true + case 1528: + return "norp", true + case 1529: + return "coauthor", true + case 1530: + return "rap-service", true + case 1531: + return "rap-listen", true + case 1532: + return "miroconnect", true + case 1533: + return "virtual-places", true + case 1534: + return "micromuse-lm", true + case 1535: + return "ampr-info", true + case 1536: + return "ampr-inter", true + case 1537: + return "sdsc-lm", true + case 1538: + return "3ds-lm", true + case 1539: + return "intellistor-lm", true + case 1540: + return "rds", true + case 1541: + return "rds2", true + case 1542: + return "gridgen-elmd", true + case 1543: + return "simba-cs", true + case 1544: + return "aspeclmd", true + case 1545: + return "vistium-share", true + case 1546: + return "abbaccuray", true + case 1547: + return "laplink", true + case 1548: + return "axon-lm", true + case 1549: + return "shivahose", true + case 1550: + return "3m-image-lm", true + case 1551: + return "hecmtl-db", true + case 1552: + return "pciarray", true + case 1553: + return "sna-cs", true + case 1554: + return "caci-lm", true + case 1555: + return "livelan", true + case 1556: + return "veritas-pbx", true + case 1557: + return "arbortext-lm", true + case 1558: + return "xingmpeg", true + case 1559: + return "web2host", true + case 1560: + return "asci-val", true + case 1561: + return "facilityview", true + case 1562: + return "pconnectmgr", true + case 1563: + return "cadabra-lm", true + case 1564: + return "pay-per-view", true + case 1565: + return "winddlb", true + case 1566: + return "corelvideo", true + case 1567: + return "jlicelmd", true + case 1568: + return "tsspmap", true + case 1569: + return "ets", true + case 1570: + return "orbixd", true + case 1571: + return "rdb-dbs-disp", true + case 1572: + return "chip-lm", true + case 1573: + return "itscomm-ns", true + case 1574: + return "mvel-lm", true + case 1575: + return "oraclenames", true + case 1576: + return "moldflow-lm", true + case 1577: + return "hypercube-lm", true + case 1578: + return "jacobus-lm", true + case 1579: + return "ioc-sea-lm", true + case 1580: + return "tn-tl-r1", true + case 1581: + return "mil-2045-47001", true + case 1582: + return "msims", true + case 1583: + return "simbaexpress", true + case 1584: + return "tn-tl-fd2", true + case 1585: + return "intv", true + case 1586: + return "ibm-abtact", true + case 1587: + return "pra-elmd", true + case 1588: + return "triquest-lm", true + case 1589: + return "vqp", true + case 1590: + return "gemini-lm", true + case 1591: + return "ncpm-pm", true + case 1592: + return "commonspace", true + case 1593: + return "mainsoft-lm", true + case 1594: + return "sixtrak", true + case 1595: + return "radio", true + case 1596: + return "radio-sm", true + case 1597: + return "orbplus-iiop", true + case 1598: + return "picknfs", true + case 1599: + return "simbaservices", true + case 1600: + return "issd", true + case 1601: + return "aas", true + case 1602: + return "inspect", true + case 1603: + return "picodbc", true + case 1604: + return "icabrowser", true + case 1605: + return "slp", true + case 1606: + return "slm-api", true + case 1607: + return "stt", true + case 1608: + return "smart-lm", true + case 1609: + return "isysg-lm", true + case 1610: + return "taurus-wh", true + case 1611: + return "ill", true + case 1612: + return "netbill-trans", true + case 1613: + return "netbill-keyrep", true + case 1614: + return "netbill-cred", true + case 1615: + return "netbill-auth", true + case 1616: + return "netbill-prod", true + case 1617: + return "nimrod-agent", true + case 1618: + return "skytelnet", true + case 1619: + return "xs-openstorage", true + case 1620: + return "faxportwinport", true + case 1621: + return "softdataphone", true + case 1622: + return "ontime", true + case 1623: + return "jaleosnd", true + case 1624: + return "udp-sr-port", true + case 1625: + return "svs-omagent", true + case 1626: + return "shockwave", true + case 1627: + return "t128-gateway", true + case 1628: + return "lontalk-norm", true + case 1629: + return "lontalk-urgnt", true + case 1630: + return "oraclenet8cman", true + case 1631: + return "visitview", true + case 1632: + return "pammratc", true + case 1633: + return "pammrpc", true + case 1634: + return "loaprobe", true + case 1635: + return "edb-server1", true + case 1636: + return "isdc", true + case 1637: + return "islc", true + case 1638: + return "ismc", true + case 1639: + return "cert-initiator", true + case 1640: + return "cert-responder", true + case 1641: + return "invision", true + case 1642: + return "isis-am", true + case 1643: + return "isis-ambc", true + case 1644: + return "saiseh", true + case 1645: + return "sightline", true + case 1646: + return "sa-msg-port", true + case 1647: + return "rsap", true + case 1648: + return "concurrent-lm", true + case 1649: + return "kermit", true + case 1650: + return "nkd", true + case 1651: + return "shiva-confsrvr", true + case 1652: + return "xnmp", true + case 1653: + return "alphatech-lm", true + case 1654: + return "stargatealerts", true + case 1655: + return "dec-mbadmin", true + case 1656: + return "dec-mbadmin-h", true + case 1657: + return "fujitsu-mmpdc", true + case 1658: + return "sixnetudr", true + case 1659: + return "sg-lm", true + case 1660: + return "skip-mc-gikreq", true + case 1661: + return "netview-aix-1", true + case 1662: + return "netview-aix-2", true + case 1663: + return "netview-aix-3", true + case 1664: + return "netview-aix-4", true + case 1665: + return "netview-aix-5", true + case 1666: + return "netview-aix-6", true + case 1667: + return "netview-aix-7", true + case 1668: + return "netview-aix-8", true + case 1669: + return "netview-aix-9", true + case 1670: + return "netview-aix-10", true + case 1671: + return "netview-aix-11", true + case 1672: + return "netview-aix-12", true + case 1673: + return "proshare-mc-1", true + case 1674: + return "proshare-mc-2", true + case 1675: + return "pdp", true + case 1676: + return "netcomm1", true + case 1677: + return "groupwise", true + case 1678: + return "prolink", true + case 1679: + return "darcorp-lm", true + case 1680: + return "microcom-sbp", true + case 1681: + return "sd-elmd", true + case 1682: + return "lanyon-lantern", true + case 1683: + return "ncpm-hip", true + case 1684: + return "snaresecure", true + case 1685: + return "n2nremote", true + case 1686: + return "cvmon", true + case 1687: + return "nsjtp-ctrl", true + case 1688: + return "nsjtp-data", true + case 1689: + return "firefox", true + case 1690: + return "ng-umds", true + case 1691: + return "empire-empuma", true + case 1692: + return "sstsys-lm", true + case 1693: + return "rrirtr", true + case 1694: + return "rrimwm", true + case 1695: + return "rrilwm", true + case 1696: + return "rrifmm", true + case 1697: + return "rrisat", true + case 1698: + return "rsvp-encap-1", true + case 1699: + return "rsvp-encap-2", true + case 1700: + return "mps-raft", true + case 1701: + return "l2f", true + case 1702: + return "deskshare", true + case 1703: + return "hb-engine", true + case 1704: + return "bcs-broker", true + case 1705: + return "slingshot", true + case 1706: + return "jetform", true + case 1707: + return "vdmplay", true + case 1708: + return "gat-lmd", true + case 1709: + return "centra", true + case 1710: + return "impera", true + case 1711: + return "pptconference", true + case 1712: + return "registrar", true + case 1713: + return "conferencetalk", true + case 1714: + return "sesi-lm", true + case 1715: + return "houdini-lm", true + case 1716: + return "xmsg", true + case 1717: + return "fj-hdnet", true + case 1718: + return "h323gatedisc", true + case 1719: + return "h323gatestat", true + case 1720: + return "h323hostcall", true + case 1721: + return "caicci", true + case 1722: + return "hks-lm", true + case 1723: + return "pptp", true + case 1724: + return "csbphonemaster", true + case 1725: + return "iden-ralp", true + case 1726: + return "iberiagames", true + case 1727: + return "winddx", true + case 1728: + return "telindus", true + case 1729: + return "citynl", true + case 1730: + return "roketz", true + case 1731: + return "msiccp", true + case 1732: + return "proxim", true + case 1733: + return "siipat", true + case 1734: + return "cambertx-lm", true + case 1735: + return "privatechat", true + case 1736: + return "street-stream", true + case 1737: + return "ultimad", true + case 1738: + return "gamegen1", true + case 1739: + return "webaccess", true + case 1740: + return "encore", true + case 1741: + return "cisco-net-mgmt", true + case 1742: + return "3Com-nsd", true + case 1743: + return "cinegrfx-lm", true + case 1744: + return "ncpm-ft", true + case 1745: + return "remote-winsock", true + case 1746: + return "ftrapid-1", true + case 1747: + return "ftrapid-2", true + case 1748: + return "oracle-em1", true + case 1749: + return "aspen-services", true + case 1750: + return "sslp", true + case 1751: + return "swiftnet", true + case 1752: + return "lofr-lm", true + case 1753: + return "predatar-comms", true + case 1754: + return "oracle-em2", true + case 1755: + return "ms-streaming", true + case 1756: + return "capfast-lmd", true + case 1757: + return "cnhrp", true + case 1758: + return "tftp-mcast", true + case 1759: + return "spss-lm", true + case 1760: + return "www-ldap-gw", true + case 1761: + return "cft-0", true + case 1762: + return "cft-1", true + case 1763: + return "cft-2", true + case 1764: + return "cft-3", true + case 1765: + return "cft-4", true + case 1766: + return "cft-5", true + case 1767: + return "cft-6", true + case 1768: + return "cft-7", true + case 1769: + return "bmc-net-adm", true + case 1770: + return "bmc-net-svc", true + case 1771: + return "vaultbase", true + case 1772: + return "essweb-gw", true + case 1773: + return "kmscontrol", true + case 1774: + return "global-dtserv", true + case 1775: + return "vdab", true + case 1776: + return "femis", true + case 1777: + return "powerguardian", true + case 1778: + return "prodigy-intrnet", true + case 1779: + return "pharmasoft", true + case 1780: + return "dpkeyserv", true + case 1781: + return "answersoft-lm", true + case 1782: + return "hp-hcip", true + case 1784: + return "finle-lm", true + case 1785: + return "windlm", true + case 1786: + return "funk-logger", true + case 1787: + return "funk-license", true + case 1788: + return "psmond", true + case 1789: + return "hello", true + case 1790: + return "nmsp", true + case 1791: + return "ea1", true + case 1792: + return "ibm-dt-2", true + case 1793: + return "rsc-robot", true + case 1794: + return "cera-bcm", true + case 1795: + return "dpi-proxy", true + case 1796: + return "vocaltec-admin", true + case 1797: + return "uma", true + case 1798: + return "etp", true + case 1799: + return "netrisk", true + case 1800: + return "ansys-lm", true + case 1801: + return "msmq", true + case 1802: + return "concomp1", true + case 1803: + return "hp-hcip-gwy", true + case 1804: + return "enl", true + case 1805: + return "enl-name", true + case 1806: + return "musiconline", true + case 1807: + return "fhsp", true + case 1808: + return "oracle-vp2", true + case 1809: + return "oracle-vp1", true + case 1810: + return "jerand-lm", true + case 1811: + return "scientia-sdb", true + case 1812: + return "radius", true + case 1813: + return "radius-acct", true + case 1814: + return "tdp-suite", true + case 1815: + return "mmpft", true + case 1816: + return "harp", true + case 1817: + return "rkb-oscs", true + case 1818: + return "etftp", true + case 1819: + return "plato-lm", true + case 1820: + return "mcagent", true + case 1821: + return "donnyworld", true + case 1822: + return "es-elmd", true + case 1823: + return "unisys-lm", true + case 1824: + return "metrics-pas", true + case 1825: + return "direcpc-video", true + case 1826: + return "ardt", true + case 1827: + return "asi", true + case 1828: + return "itm-mcell-u", true + case 1829: + return "optika-emedia", true + case 1830: + return "net8-cman", true + case 1831: + return "myrtle", true + case 1832: + return "tht-treasure", true + case 1833: + return "udpradio", true + case 1834: + return "ardusuni", true + case 1835: + return "ardusmul", true + case 1836: + return "ste-smsc", true + case 1837: + return "csoft1", true + case 1838: + return "talnet", true + case 1839: + return "netopia-vo1", true + case 1840: + return "netopia-vo2", true + case 1841: + return "netopia-vo3", true + case 1842: + return "netopia-vo4", true + case 1843: + return "netopia-vo5", true + case 1844: + return "direcpc-dll", true + case 1845: + return "altalink", true + case 1846: + return "tunstall-pnc", true + case 1847: + return "slp-notify", true + case 1848: + return "fjdocdist", true + case 1849: + return "alpha-sms", true + case 1850: + return "gsi", true + case 1851: + return "ctcd", true + case 1852: + return "virtual-time", true + case 1853: + return "vids-avtp", true + case 1854: + return "buddy-draw", true + case 1855: + return "fiorano-rtrsvc", true + case 1856: + return "fiorano-msgsvc", true + case 1857: + return "datacaptor", true + case 1858: + return "privateark", true + case 1859: + return "gammafetchsvr", true + case 1860: + return "sunscalar-svc", true + case 1861: + return "lecroy-vicp", true + case 1862: + return "mysql-cm-agent", true + case 1863: + return "msnp", true + case 1864: + return "paradym-31port", true + case 1865: + return "entp", true + case 1866: + return "swrmi", true + case 1867: + return "udrive", true + case 1868: + return "viziblebrowser", true + case 1869: + return "transact", true + case 1870: + return "sunscalar-dns", true + case 1871: + return "canocentral0", true + case 1872: + return "canocentral1", true + case 1873: + return "fjmpjps", true + case 1874: + return "fjswapsnp", true + case 1875: + return "westell-stats", true + case 1876: + return "ewcappsrv", true + case 1877: + return "hp-webqosdb", true + case 1878: + return "drmsmc", true + case 1879: + return "nettgain-nms", true + case 1880: + return "vsat-control", true + case 1881: + return "ibm-mqseries2", true + case 1882: + return "ecsqdmn", true + case 1883: + return "mqtt", true + case 1884: + return "idmaps", true + case 1885: + return "vrtstrapserver", true + case 1886: + return "leoip", true + case 1887: + return "filex-lport", true + case 1888: + return "ncconfig", true + case 1889: + return "unify-adapter", true + case 1890: + return "wilkenlistener", true + case 1891: + return "childkey-notif", true + case 1892: + return "childkey-ctrl", true + case 1893: + return "elad", true + case 1894: + return "o2server-port", true + case 1896: + return "b-novative-ls", true + case 1897: + return "metaagent", true + case 1898: + return "cymtec-port", true + case 1899: + return "mc2studios", true + case 1900: + return "ssdp", true + case 1901: + return "fjicl-tep-a", true + case 1902: + return "fjicl-tep-b", true + case 1903: + return "linkname", true + case 1904: + return "fjicl-tep-c", true + case 1905: + return "sugp", true + case 1906: + return "tpmd", true + case 1907: + return "intrastar", true + case 1908: + return "dawn", true + case 1909: + return "global-wlink", true + case 1910: + return "ultrabac", true + case 1911: + return "mtp", true + case 1912: + return "rhp-iibp", true + case 1913: + return "armadp", true + case 1914: + return "elm-momentum", true + case 1915: + return "facelink", true + case 1916: + return "persona", true + case 1917: + return "noagent", true + case 1918: + return "can-nds", true + case 1919: + return "can-dch", true + case 1920: + return "can-ferret", true + case 1921: + return "noadmin", true + case 1922: + return "tapestry", true + case 1923: + return "spice", true + case 1924: + return "xiip", true + case 1925: + return "discovery-port", true + case 1926: + return "egs", true + case 1927: + return "videte-cipc", true + case 1928: + return "emsd-port", true + case 1929: + return "bandwiz-system", true + case 1930: + return "driveappserver", true + case 1931: + return "amdsched", true + case 1932: + return "ctt-broker", true + case 1933: + return "xmapi", true + case 1934: + return "xaapi", true + case 1935: + return "macromedia-fcs", true + case 1936: + return "jetcmeserver", true + case 1937: + return "jwserver", true + case 1938: + return "jwclient", true + case 1939: + return "jvserver", true + case 1940: + return "jvclient", true + case 1941: + return "dic-aida", true + case 1942: + return "res", true + case 1943: + return "beeyond-media", true + case 1944: + return "close-combat", true + case 1945: + return "dialogic-elmd", true + case 1946: + return "tekpls", true + case 1947: + return "sentinelsrm", true + case 1948: + return "eye2eye", true + case 1949: + return "ismaeasdaqlive", true + case 1950: + return "ismaeasdaqtest", true + case 1951: + return "bcs-lmserver", true + case 1952: + return "mpnjsc", true + case 1953: + return "rapidbase", true + case 1954: + return "abr-api", true + case 1955: + return "abr-secure", true + case 1956: + return "vrtl-vmf-ds", true + case 1957: + return "unix-status", true + case 1958: + return "dxadmind", true + case 1959: + return "simp-all", true + case 1960: + return "nasmanager", true + case 1961: + return "bts-appserver", true + case 1962: + return "biap-mp", true + case 1963: + return "webmachine", true + case 1964: + return "solid-e-engine", true + case 1965: + return "tivoli-npm", true + case 1966: + return "slush", true + case 1967: + return "sns-quote", true + case 1968: + return "lipsinc", true + case 1969: + return "lipsinc1", true + case 1970: + return "netop-rc", true + case 1971: + return "netop-school", true + case 1972: + return "intersys-cache", true + case 1973: + return "dlsrap", true + case 1974: + return "drp", true + case 1975: + return "tcoflashagent", true + case 1976: + return "tcoregagent", true + case 1977: + return "tcoaddressbook", true + case 1978: + return "unisql", true + case 1979: + return "unisql-java", true + case 1980: + return "pearldoc-xact", true + case 1981: + return "p2pq", true + case 1982: + return "estamp", true + case 1983: + return "lhtp", true + case 1984: + return "bb", true + case 1985: + return "hsrp", true + case 1986: + return "licensedaemon", true + case 1987: + return "tr-rsrb-p1", true + case 1988: + return "tr-rsrb-p2", true + case 1989: + return "tr-rsrb-p3", true + case 1990: + return "stun-p1", true + case 1991: + return "stun-p2", true + case 1992: + return "stun-p3", true + case 1993: + return "snmp-tcp-port", true + case 1994: + return "stun-port", true + case 1995: + return "perf-port", true + case 1996: + return "tr-rsrb-port", true + case 1997: + return "gdp-port", true + case 1998: + return "x25-svc-port", true + case 1999: + return "tcp-id-port", true + case 2000: + return "cisco-sccp", true + case 2001: + return "dc", true + case 2002: + return "globe", true + case 2003: + return "brutus", true + case 2004: + return "mailbox", true + case 2005: + return "berknet", true + case 2006: + return "invokator", true + case 2007: + return "dectalk", true + case 2008: + return "conf", true + case 2009: + return "news", true + case 2010: + return "search", true + case 2011: + return "raid-cc", true + case 2012: + return "ttyinfo", true + case 2013: + return "raid-am", true + case 2014: + return "troff", true + case 2015: + return "cypress", true + case 2016: + return "bootserver", true + case 2017: + return "cypress-stat", true + case 2018: + return "terminaldb", true + case 2019: + return "whosockami", true + case 2020: + return "xinupageserver", true + case 2021: + return "servexec", true + case 2022: + return "down", true + case 2023: + return "xinuexpansion3", true + case 2024: + return "xinuexpansion4", true + case 2025: + return "ellpack", true + case 2026: + return "scrabble", true + case 2027: + return "shadowserver", true + case 2028: + return "submitserver", true + case 2029: + return "hsrpv6", true + case 2030: + return "device2", true + case 2031: + return "mobrien-chat", true + case 2032: + return "blackboard", true + case 2033: + return "glogger", true + case 2034: + return "scoremgr", true + case 2035: + return "imsldoc", true + case 2036: + return "e-dpnet", true + case 2037: + return "applus", true + case 2038: + return "objectmanager", true + case 2039: + return "prizma", true + case 2040: + return "lam", true + case 2041: + return "interbase", true + case 2042: + return "isis", true + case 2043: + return "isis-bcast", true + case 2044: + return "rimsl", true + case 2045: + return "cdfunc", true + case 2046: + return "sdfunc", true + case 2047: + return "dls", true + case 2048: + return "dls-monitor", true + case 2049: + return "shilp", true + case 2050: + return "av-emb-config", true + case 2051: + return "epnsdp", true + case 2052: + return "clearvisn", true + case 2053: + return "lot105-ds-upd", true + case 2054: + return "weblogin", true + case 2055: + return "iop", true + case 2056: + return "omnisky", true + case 2057: + return "rich-cp", true + case 2058: + return "newwavesearch", true + case 2059: + return "bmc-messaging", true + case 2060: + return "teleniumdaemon", true + case 2061: + return "netmount", true + case 2062: + return "icg-swp", true + case 2063: + return "icg-bridge", true + case 2064: + return "icg-iprelay", true + case 2065: + return "dlsrpn", true + case 2066: + return "aura", true + case 2067: + return "dlswpn", true + case 2068: + return "avauthsrvprtcl", true + case 2069: + return "event-port", true + case 2070: + return "ah-esp-encap", true + case 2071: + return "acp-port", true + case 2072: + return "msync", true + case 2073: + return "gxs-data-port", true + case 2074: + return "vrtl-vmf-sa", true + case 2075: + return "newlixengine", true + case 2076: + return "newlixconfig", true + case 2077: + return "tsrmagt", true + case 2078: + return "tpcsrvr", true + case 2079: + return "idware-router", true + case 2080: + return "autodesk-nlm", true + case 2081: + return "kme-trap-port", true + case 2082: + return "infowave", true + case 2083: + return "radsec", true + case 2084: + return "sunclustergeo", true + case 2085: + return "ada-cip", true + case 2086: + return "gnunet", true + case 2087: + return "eli", true + case 2088: + return "ip-blf", true + case 2089: + return "sep", true + case 2090: + return "lrp", true + case 2091: + return "prp", true + case 2092: + return "descent3", true + case 2093: + return "nbx-cc", true + case 2094: + return "nbx-au", true + case 2095: + return "nbx-ser", true + case 2096: + return "nbx-dir", true + case 2097: + return "jetformpreview", true + case 2098: + return "dialog-port", true + case 2099: + return "h2250-annex-g", true + case 2100: + return "amiganetfs", true + case 2101: + return "rtcm-sc104", true + case 2102: + return "zephyr-srv", true + case 2103: + return "zephyr-clt", true + case 2104: + return "zephyr-hm", true + case 2105: + return "minipay", true + case 2106: + return "mzap", true + case 2107: + return "bintec-admin", true + case 2108: + return "comcam", true + case 2109: + return "ergolight", true + case 2110: + return "umsp", true + case 2111: + return "dsatp", true + case 2112: + return "idonix-metanet", true + case 2113: + return "hsl-storm", true + case 2114: + return "ariascribe", true + case 2115: + return "kdm", true + case 2116: + return "ccowcmr", true + case 2117: + return "mentaclient", true + case 2118: + return "mentaserver", true + case 2119: + return "gsigatekeeper", true + case 2120: + return "qencp", true + case 2121: + return "scientia-ssdb", true + case 2122: + return "caupc-remote", true + case 2123: + return "gtp-control", true + case 2124: + return "elatelink", true + case 2125: + return "lockstep", true + case 2126: + return "pktcable-cops", true + case 2127: + return "index-pc-wb", true + case 2128: + return "net-steward", true + case 2129: + return "cs-live", true + case 2130: + return "xds", true + case 2131: + return "avantageb2b", true + case 2132: + return "solera-epmap", true + case 2133: + return "zymed-zpp", true + case 2134: + return "avenue", true + case 2135: + return "gris", true + case 2136: + return "appworxsrv", true + case 2137: + return "connect", true + case 2138: + return "unbind-cluster", true + case 2139: + return "ias-auth", true + case 2140: + return "ias-reg", true + case 2141: + return "ias-admind", true + case 2142: + return "tdmoip", true + case 2143: + return "lv-jc", true + case 2144: + return "lv-ffx", true + case 2145: + return "lv-pici", true + case 2146: + return "lv-not", true + case 2147: + return "lv-auth", true + case 2148: + return "veritas-ucl", true + case 2149: + return "acptsys", true + case 2150: + return "dynamic3d", true + case 2151: + return "docent", true + case 2152: + return "gtp-user", true + case 2153: + return "ctlptc", true + case 2154: + return "stdptc", true + case 2155: + return "brdptc", true + case 2156: + return "trp", true + case 2157: + return "xnds", true + case 2158: + return "touchnetplus", true + case 2159: + return "gdbremote", true + case 2160: + return "apc-2160", true + case 2161: + return "apc-2161", true + case 2162: + return "navisphere", true + case 2163: + return "navisphere-sec", true + case 2164: + return "ddns-v3", true + case 2165: + return "x-bone-api", true + case 2166: + return "iwserver", true + case 2167: + return "raw-serial", true + case 2168: + return "easy-soft-mux", true + case 2169: + return "brain", true + case 2170: + return "eyetv", true + case 2171: + return "msfw-storage", true + case 2172: + return "msfw-s-storage", true + case 2173: + return "msfw-replica", true + case 2174: + return "msfw-array", true + case 2175: + return "airsync", true + case 2176: + return "rapi", true + case 2177: + return "qwave", true + case 2178: + return "bitspeer", true + case 2179: + return "vmrdp", true + case 2180: + return "mc-gt-srv", true + case 2181: + return "eforward", true + case 2182: + return "cgn-stat", true + case 2183: + return "cgn-config", true + case 2184: + return "nvd", true + case 2185: + return "onbase-dds", true + case 2186: + return "gtaua", true + case 2187: + return "ssmc", true + case 2188: + return "radware-rpm", true + case 2189: + return "radware-rpm-s", true + case 2190: + return "tivoconnect", true + case 2191: + return "tvbus", true + case 2192: + return "asdis", true + case 2193: + return "drwcs", true + case 2197: + return "mnp-exchange", true + case 2198: + return "onehome-remote", true + case 2199: + return "onehome-help", true + case 2201: + return "ats", true + case 2202: + return "imtc-map", true + case 2203: + return "b2-runtime", true + case 2204: + return "b2-license", true + case 2205: + return "jps", true + case 2206: + return "hpocbus", true + case 2207: + return "hpssd", true + case 2208: + return "hpiod", true + case 2209: + return "rimf-ps", true + case 2210: + return "noaaport", true + case 2211: + return "emwin", true + case 2212: + return "leecoposserver", true + case 2213: + return "kali", true + case 2214: + return "rpi", true + case 2215: + return "ipcore", true + case 2216: + return "vtu-comms", true + case 2217: + return "gotodevice", true + case 2218: + return "bounzza", true + case 2219: + return "netiq-ncap", true + case 2220: + return "netiq", true + case 2221: + return "ethernet-ip-s", true + case 2222: + return "EtherNet-IP-1", true + case 2223: + return "rockwell-csp2", true + case 2224: + return "efi-mg", true + case 2225: + return "rcip-itu", true + case 2226: + return "di-drm", true + case 2227: + return "di-msg", true + case 2228: + return "ehome-ms", true + case 2229: + return "datalens", true + case 2230: + return "queueadm", true + case 2231: + return "wimaxasncp", true + case 2232: + return "ivs-video", true + case 2233: + return "infocrypt", true + case 2234: + return "directplay", true + case 2235: + return "sercomm-wlink", true + case 2236: + return "nani", true + case 2237: + return "optech-port1-lm", true + case 2238: + return "aviva-sna", true + case 2239: + return "imagequery", true + case 2240: + return "recipe", true + case 2241: + return "ivsd", true + case 2242: + return "foliocorp", true + case 2243: + return "magicom", true + case 2244: + return "nmsserver", true + case 2245: + return "hao", true + case 2246: + return "pc-mta-addrmap", true + case 2247: + return "antidotemgrsvr", true + case 2248: + return "ums", true + case 2249: + return "rfmp", true + case 2250: + return "remote-collab", true + case 2251: + return "dif-port", true + case 2252: + return "njenet-ssl", true + case 2253: + return "dtv-chan-req", true + case 2254: + return "seispoc", true + case 2255: + return "vrtp", true + case 2256: + return "pcc-mfp", true + case 2257: + return "simple-tx-rx", true + case 2258: + return "rcts", true + case 2259: + return "bid-serv", true + case 2260: + return "apc-2260", true + case 2261: + return "comotionmaster", true + case 2262: + return "comotionback", true + case 2263: + return "ecwcfg", true + case 2264: + return "apx500api-1", true + case 2265: + return "apx500api-2", true + case 2266: + return "mfserver", true + case 2267: + return "ontobroker", true + case 2268: + return "amt", true + case 2269: + return "mikey", true + case 2270: + return "starschool", true + case 2271: + return "mmcals", true + case 2272: + return "mmcal", true + case 2273: + return "mysql-im", true + case 2274: + return "pcttunnell", true + case 2275: + return "ibridge-data", true + case 2276: + return "ibridge-mgmt", true + case 2277: + return "bluectrlproxy", true + case 2278: + return "s3db", true + case 2279: + return "xmquery", true + case 2280: + return "lnvpoller", true + case 2281: + return "lnvconsole", true + case 2282: + return "lnvalarm", true + case 2283: + return "lnvstatus", true + case 2284: + return "lnvmaps", true + case 2285: + return "lnvmailmon", true + case 2286: + return "nas-metering", true + case 2287: + return "dna", true + case 2288: + return "netml", true + case 2289: + return "dict-lookup", true + case 2290: + return "sonus-logging", true + case 2291: + return "eapsp", true + case 2292: + return "mib-streaming", true + case 2293: + return "npdbgmngr", true + case 2294: + return "konshus-lm", true + case 2295: + return "advant-lm", true + case 2296: + return "theta-lm", true + case 2297: + return "d2k-datamover1", true + case 2298: + return "d2k-datamover2", true + case 2299: + return "pc-telecommute", true + case 2300: + return "cvmmon", true + case 2301: + return "cpq-wbem", true + case 2302: + return "binderysupport", true + case 2303: + return "proxy-gateway", true + case 2304: + return "attachmate-uts", true + case 2305: + return "mt-scaleserver", true + case 2306: + return "tappi-boxnet", true + case 2307: + return "pehelp", true + case 2308: + return "sdhelp", true + case 2309: + return "sdserver", true + case 2310: + return "sdclient", true + case 2311: + return "messageservice", true + case 2312: + return "wanscaler", true + case 2313: + return "iapp", true + case 2314: + return "cr-websystems", true + case 2315: + return "precise-sft", true + case 2316: + return "sent-lm", true + case 2317: + return "attachmate-g32", true + case 2318: + return "cadencecontrol", true + case 2319: + return "infolibria", true + case 2320: + return "siebel-ns", true + case 2321: + return "rdlap", true + case 2322: + return "ofsd", true + case 2323: + return "3d-nfsd", true + case 2324: + return "cosmocall", true + case 2325: + return "ansysli", true + case 2326: + return "idcp", true + case 2327: + return "xingcsm", true + case 2328: + return "netrix-sftm", true + case 2329: + return "nvd", true + case 2330: + return "tscchat", true + case 2331: + return "agentview", true + case 2332: + return "rcc-host", true + case 2333: + return "snapp", true + case 2334: + return "ace-client", true + case 2335: + return "ace-proxy", true + case 2336: + return "appleugcontrol", true + case 2337: + return "ideesrv", true + case 2338: + return "norton-lambert", true + case 2339: + return "3com-webview", true + case 2340: + return "wrs-registry", true + case 2341: + return "xiostatus", true + case 2342: + return "manage-exec", true + case 2343: + return "nati-logos", true + case 2344: + return "fcmsys", true + case 2345: + return "dbm", true + case 2346: + return "redstorm-join", true + case 2347: + return "redstorm-find", true + case 2348: + return "redstorm-info", true + case 2349: + return "redstorm-diag", true + case 2350: + return "psbserver", true + case 2351: + return "psrserver", true + case 2352: + return "pslserver", true + case 2353: + return "pspserver", true + case 2354: + return "psprserver", true + case 2355: + return "psdbserver", true + case 2356: + return "gxtelmd", true + case 2357: + return "unihub-server", true + case 2358: + return "futrix", true + case 2359: + return "flukeserver", true + case 2360: + return "nexstorindltd", true + case 2361: + return "tl1", true + case 2362: + return "digiman", true + case 2363: + return "mediacntrlnfsd", true + case 2364: + return "oi-2000", true + case 2365: + return "dbref", true + case 2366: + return "qip-login", true + case 2367: + return "service-ctrl", true + case 2368: + return "opentable", true + case 2369: + return "bif-p2p", true + case 2370: + return "l3-hbmon", true + case 2371: + return "rda", true + case 2372: + return "lanmessenger", true + case 2373: + return "remographlm", true + case 2374: + return "hydra", true + case 2375: + return "docker", true + case 2376: + return "docker-s", true + case 2377: + return "swarm", true + case 2379: + return "etcd-client", true + case 2380: + return "etcd-server", true + case 2381: + return "compaq-https", true + case 2382: + return "ms-olap3", true + case 2383: + return "ms-olap4", true + case 2384: + return "sd-request", true + case 2385: + return "sd-data", true + case 2386: + return "virtualtape", true + case 2387: + return "vsamredirector", true + case 2388: + return "mynahautostart", true + case 2389: + return "ovsessionmgr", true + case 2390: + return "rsmtp", true + case 2391: + return "3com-net-mgmt", true + case 2392: + return "tacticalauth", true + case 2393: + return "ms-olap1", true + case 2394: + return "ms-olap2", true + case 2395: + return "lan900-remote", true + case 2396: + return "wusage", true + case 2397: + return "ncl", true + case 2398: + return "orbiter", true + case 2399: + return "fmpro-fdal", true + case 2400: + return "opequus-server", true + case 2401: + return "cvspserver", true + case 2402: + return "taskmaster2000", true + case 2403: + return "taskmaster2000", true + case 2404: + return "iec-104", true + case 2405: + return "trc-netpoll", true + case 2406: + return "jediserver", true + case 2407: + return "orion", true + case 2408: + return "railgun-webaccl", true + case 2409: + return "sns-protocol", true + case 2410: + return "vrts-registry", true + case 2411: + return "netwave-ap-mgmt", true + case 2412: + return "cdn", true + case 2413: + return "orion-rmi-reg", true + case 2414: + return "beeyond", true + case 2415: + return "codima-rtp", true + case 2416: + return "rmtserver", true + case 2417: + return "composit-server", true + case 2418: + return "cas", true + case 2419: + return "attachmate-s2s", true + case 2420: + return "dslremote-mgmt", true + case 2421: + return "g-talk", true + case 2422: + return "crmsbits", true + case 2423: + return "rnrp", true + case 2424: + return "kofax-svr", true + case 2425: + return "fjitsuappmgr", true + case 2426: + return "vcmp", true + case 2427: + return "mgcp-gateway", true + case 2428: + return "ott", true + case 2429: + return "ft-role", true + case 2430: + return "venus", true + case 2431: + return "venus-se", true + case 2432: + return "codasrv", true + case 2433: + return "codasrv-se", true + case 2434: + return "pxc-epmap", true + case 2435: + return "optilogic", true + case 2436: + return "topx", true + case 2437: + return "unicontrol", true + case 2438: + return "msp", true + case 2439: + return "sybasedbsynch", true + case 2440: + return "spearway", true + case 2441: + return "pvsw-inet", true + case 2442: + return "netangel", true + case 2443: + return "powerclientcsf", true + case 2444: + return "btpp2sectrans", true + case 2445: + return "dtn1", true + case 2446: + return "bues-service", true + case 2447: + return "ovwdb", true + case 2448: + return "hpppssvr", true + case 2449: + return "ratl", true + case 2450: + return "netadmin", true + case 2451: + return "netchat", true + case 2452: + return "snifferclient", true + case 2453: + return "madge-ltd", true + case 2454: + return "indx-dds", true + case 2455: + return "wago-io-system", true + case 2456: + return "altav-remmgt", true + case 2457: + return "rapido-ip", true + case 2458: + return "griffin", true + case 2459: + return "xrpl", true + case 2460: + return "ms-theater", true + case 2461: + return "qadmifoper", true + case 2462: + return "qadmifevent", true + case 2463: + return "lsi-raid-mgmt", true + case 2464: + return "direcpc-si", true + case 2465: + return "lbm", true + case 2466: + return "lbf", true + case 2467: + return "high-criteria", true + case 2468: + return "qip-msgd", true + case 2469: + return "mti-tcs-comm", true + case 2470: + return "taskman-port", true + case 2471: + return "seaodbc", true + case 2472: + return "c3", true + case 2473: + return "aker-cdp", true + case 2474: + return "vitalanalysis", true + case 2475: + return "ace-server", true + case 2476: + return "ace-svr-prop", true + case 2477: + return "ssm-cvs", true + case 2478: + return "ssm-cssps", true + case 2479: + return "ssm-els", true + case 2480: + return "powerexchange", true + case 2481: + return "giop", true + case 2482: + return "giop-ssl", true + case 2483: + return "ttc", true + case 2484: + return "ttc-ssl", true + case 2485: + return "netobjects1", true + case 2486: + return "netobjects2", true + case 2487: + return "pns", true + case 2488: + return "moy-corp", true + case 2489: + return "tsilb", true + case 2490: + return "qip-qdhcp", true + case 2491: + return "conclave-cpp", true + case 2492: + return "groove", true + case 2493: + return "talarian-mqs", true + case 2494: + return "bmc-ar", true + case 2495: + return "fast-rem-serv", true + case 2496: + return "dirgis", true + case 2497: + return "quaddb", true + case 2498: + return "odn-castraq", true + case 2499: + return "unicontrol", true + case 2500: + return "rtsserv", true + case 2501: + return "rtsclient", true + case 2502: + return "kentrox-prot", true + case 2503: + return "nms-dpnss", true + case 2504: + return "wlbs", true + case 2505: + return "ppcontrol", true + case 2506: + return "jbroker", true + case 2507: + return "spock", true + case 2508: + return "jdatastore", true + case 2509: + return "fjmpss", true + case 2510: + return "fjappmgrbulk", true + case 2511: + return "metastorm", true + case 2512: + return "citrixima", true + case 2513: + return "citrixadmin", true + case 2514: + return "facsys-ntp", true + case 2515: + return "facsys-router", true + case 2516: + return "maincontrol", true + case 2517: + return "call-sig-trans", true + case 2518: + return "willy", true + case 2519: + return "globmsgsvc", true + case 2520: + return "pvsw", true + case 2521: + return "adaptecmgr", true + case 2522: + return "windb", true + case 2523: + return "qke-llc-v3", true + case 2524: + return "optiwave-lm", true + case 2525: + return "ms-v-worlds", true + case 2526: + return "ema-sent-lm", true + case 2527: + return "iqserver", true + case 2528: + return "ncr-ccl", true + case 2529: + return "utsftp", true + case 2530: + return "vrcommerce", true + case 2531: + return "ito-e-gui", true + case 2532: + return "ovtopmd", true + case 2533: + return "snifferserver", true + case 2534: + return "combox-web-acc", true + case 2535: + return "madcap", true + case 2536: + return "btpp2audctr1", true + case 2537: + return "upgrade", true + case 2538: + return "vnwk-prapi", true + case 2539: + return "vsiadmin", true + case 2540: + return "lonworks", true + case 2541: + return "lonworks2", true + case 2542: + return "udrawgraph", true + case 2543: + return "reftek", true + case 2544: + return "novell-zen", true + case 2545: + return "sis-emt", true + case 2546: + return "vytalvaultbrtp", true + case 2547: + return "vytalvaultvsmp", true + case 2548: + return "vytalvaultpipe", true + case 2549: + return "ipass", true + case 2550: + return "ads", true + case 2551: + return "isg-uda-server", true + case 2552: + return "call-logging", true + case 2553: + return "efidiningport", true + case 2554: + return "vcnet-link-v10", true + case 2555: + return "compaq-wcp", true + case 2556: + return "nicetec-nmsvc", true + case 2557: + return "nicetec-mgmt", true + case 2558: + return "pclemultimedia", true + case 2559: + return "lstp", true + case 2560: + return "labrat", true + case 2561: + return "mosaixcc", true + case 2562: + return "delibo", true + case 2563: + return "cti-redwood", true + case 2564: + return "hp-3000-telnet", true + case 2565: + return "coord-svr", true + case 2566: + return "pcs-pcw", true + case 2567: + return "clp", true + case 2568: + return "spamtrap", true + case 2569: + return "sonuscallsig", true + case 2570: + return "hs-port", true + case 2571: + return "cecsvc", true + case 2572: + return "ibp", true + case 2573: + return "trustestablish", true + case 2574: + return "blockade-bpsp", true + case 2575: + return "hl7", true + case 2576: + return "tclprodebugger", true + case 2577: + return "scipticslsrvr", true + case 2578: + return "rvs-isdn-dcp", true + case 2579: + return "mpfoncl", true + case 2580: + return "tributary", true + case 2581: + return "argis-te", true + case 2582: + return "argis-ds", true + case 2583: + return "mon", true + case 2584: + return "cyaserv", true + case 2585: + return "netx-server", true + case 2586: + return "netx-agent", true + case 2587: + return "masc", true + case 2588: + return "privilege", true + case 2589: + return "quartus-tcl", true + case 2590: + return "idotdist", true + case 2591: + return "maytagshuffle", true + case 2592: + return "netrek", true + case 2593: + return "mns-mail", true + case 2594: + return "dts", true + case 2595: + return "worldfusion1", true + case 2596: + return "worldfusion2", true + case 2597: + return "homesteadglory", true + case 2598: + return "citriximaclient", true + case 2599: + return "snapd", true + case 2600: + return "hpstgmgr", true + case 2601: + return "discp-client", true + case 2602: + return "discp-server", true + case 2603: + return "servicemeter", true + case 2604: + return "nsc-ccs", true + case 2605: + return "nsc-posa", true + case 2606: + return "netmon", true + case 2607: + return "connection", true + case 2608: + return "wag-service", true + case 2609: + return "system-monitor", true + case 2610: + return "versa-tek", true + case 2611: + return "lionhead", true + case 2612: + return "qpasa-agent", true + case 2613: + return "smntubootstrap", true + case 2614: + return "neveroffline", true + case 2615: + return "firepower", true + case 2616: + return "appswitch-emp", true + case 2617: + return "cmadmin", true + case 2618: + return "priority-e-com", true + case 2619: + return "bruce", true + case 2620: + return "lpsrecommender", true + case 2621: + return "miles-apart", true + case 2622: + return "metricadbc", true + case 2623: + return "lmdp", true + case 2624: + return "aria", true + case 2625: + return "blwnkl-port", true + case 2626: + return "gbjd816", true + case 2627: + return "moshebeeri", true + case 2628: + return "dict", true + case 2629: + return "sitaraserver", true + case 2630: + return "sitaramgmt", true + case 2631: + return "sitaradir", true + case 2632: + return "irdg-post", true + case 2633: + return "interintelli", true + case 2634: + return "pk-electronics", true + case 2635: + return "backburner", true + case 2636: + return "solve", true + case 2637: + return "imdocsvc", true + case 2638: + return "sybaseanywhere", true + case 2639: + return "aminet", true + case 2640: + return "ami-control", true + case 2641: + return "hdl-srv", true + case 2642: + return "tragic", true + case 2643: + return "gte-samp", true + case 2644: + return "travsoft-ipx-t", true + case 2645: + return "novell-ipx-cmd", true + case 2646: + return "and-lm", true + case 2647: + return "syncserver", true + case 2648: + return "upsnotifyprot", true + case 2649: + return "vpsipport", true + case 2650: + return "eristwoguns", true + case 2651: + return "ebinsite", true + case 2652: + return "interpathpanel", true + case 2653: + return "sonus", true + case 2654: + return "corel-vncadmin", true + case 2655: + return "unglue", true + case 2656: + return "kana", true + case 2657: + return "sns-dispatcher", true + case 2658: + return "sns-admin", true + case 2659: + return "sns-query", true + case 2660: + return "gcmonitor", true + case 2661: + return "olhost", true + case 2662: + return "bintec-capi", true + case 2663: + return "bintec-tapi", true + case 2664: + return "patrol-mq-gm", true + case 2665: + return "patrol-mq-nm", true + case 2666: + return "extensis", true + case 2667: + return "alarm-clock-s", true + case 2668: + return "alarm-clock-c", true + case 2669: + return "toad", true + case 2670: + return "tve-announce", true + case 2671: + return "newlixreg", true + case 2672: + return "nhserver", true + case 2673: + return "firstcall42", true + case 2674: + return "ewnn", true + case 2675: + return "ttc-etap", true + case 2676: + return "simslink", true + case 2677: + return "gadgetgate1way", true + case 2678: + return "gadgetgate2way", true + case 2679: + return "syncserverssl", true + case 2680: + return "pxc-sapxom", true + case 2681: + return "mpnjsomb", true + case 2683: + return "ncdloadbalance", true + case 2684: + return "mpnjsosv", true + case 2685: + return "mpnjsocl", true + case 2686: + return "mpnjsomg", true + case 2687: + return "pq-lic-mgmt", true + case 2688: + return "md-cg-http", true + case 2689: + return "fastlynx", true + case 2690: + return "hp-nnm-data", true + case 2691: + return "itinternet", true + case 2692: + return "admins-lms", true + case 2694: + return "pwrsevent", true + case 2695: + return "vspread", true + case 2696: + return "unifyadmin", true + case 2697: + return "oce-snmp-trap", true + case 2698: + return "mck-ivpip", true + case 2699: + return "csoft-plusclnt", true + case 2700: + return "tqdata", true + case 2701: + return "sms-rcinfo", true + case 2702: + return "sms-xfer", true + case 2703: + return "sms-chat", true + case 2704: + return "sms-remctrl", true + case 2705: + return "sds-admin", true + case 2706: + return "ncdmirroring", true + case 2707: + return "emcsymapiport", true + case 2708: + return "banyan-net", true + case 2709: + return "supermon", true + case 2710: + return "sso-service", true + case 2711: + return "sso-control", true + case 2712: + return "aocp", true + case 2713: + return "raventbs", true + case 2714: + return "raventdm", true + case 2715: + return "hpstgmgr2", true + case 2716: + return "inova-ip-disco", true + case 2717: + return "pn-requester", true + case 2718: + return "pn-requester2", true + case 2719: + return "scan-change", true + case 2720: + return "wkars", true + case 2721: + return "smart-diagnose", true + case 2722: + return "proactivesrvr", true + case 2723: + return "watchdog-nt", true + case 2724: + return "qotps", true + case 2725: + return "msolap-ptp2", true + case 2726: + return "tams", true + case 2727: + return "mgcp-callagent", true + case 2728: + return "sqdr", true + case 2729: + return "tcim-control", true + case 2730: + return "nec-raidplus", true + case 2731: + return "fyre-messanger", true + case 2732: + return "g5m", true + case 2733: + return "signet-ctf", true + case 2734: + return "ccs-software", true + case 2735: + return "netiq-mc", true + case 2736: + return "radwiz-nms-srv", true + case 2737: + return "srp-feedback", true + case 2738: + return "ndl-tcp-ois-gw", true + case 2739: + return "tn-timing", true + case 2740: + return "alarm", true + case 2741: + return "tsb", true + case 2742: + return "tsb2", true + case 2743: + return "murx", true + case 2744: + return "honyaku", true + case 2745: + return "urbisnet", true + case 2746: + return "cpudpencap", true + case 2747: + return "fjippol-swrly", true + case 2748: + return "fjippol-polsvr", true + case 2749: + return "fjippol-cnsl", true + case 2750: + return "fjippol-port1", true + case 2751: + return "fjippol-port2", true + case 2752: + return "rsisysaccess", true + case 2753: + return "de-spot", true + case 2754: + return "apollo-cc", true + case 2755: + return "expresspay", true + case 2756: + return "simplement-tie", true + case 2757: + return "cnrp", true + case 2758: + return "apollo-status", true + case 2759: + return "apollo-gms", true + case 2760: + return "sabams", true + case 2761: + return "dicom-iscl", true + case 2762: + return "dicom-tls", true + case 2763: + return "desktop-dna", true + case 2764: + return "data-insurance", true + case 2765: + return "qip-audup", true + case 2766: + return "compaq-scp", true + case 2767: + return "uadtc", true + case 2768: + return "uacs", true + case 2769: + return "exce", true + case 2770: + return "veronica", true + case 2771: + return "vergencecm", true + case 2772: + return "auris", true + case 2773: + return "rbakcup1", true + case 2774: + return "rbakcup2", true + case 2775: + return "smpp", true + case 2776: + return "ridgeway1", true + case 2777: + return "ridgeway2", true + case 2778: + return "gwen-sonya", true + case 2779: + return "lbc-sync", true + case 2780: + return "lbc-control", true + case 2781: + return "whosells", true + case 2782: + return "everydayrc", true + case 2783: + return "aises", true + case 2784: + return "www-dev", true + case 2785: + return "aic-np", true + case 2786: + return "aic-oncrpc", true + case 2787: + return "piccolo", true + case 2788: + return "fryeserv", true + case 2789: + return "media-agent", true + case 2790: + return "plgproxy", true + case 2791: + return "mtport-regist", true + case 2792: + return "f5-globalsite", true + case 2793: + return "initlsmsad", true + case 2795: + return "livestats", true + case 2796: + return "ac-tech", true + case 2797: + return "esp-encap", true + case 2798: + return "tmesis-upshot", true + case 2799: + return "icon-discover", true + case 2800: + return "acc-raid", true + case 2801: + return "igcp", true + case 2802: + return "veritas-tcp1", true + case 2803: + return "btprjctrl", true + case 2804: + return "dvr-esm", true + case 2805: + return "wta-wsp-s", true + case 2806: + return "cspuni", true + case 2807: + return "cspmulti", true + case 2808: + return "j-lan-p", true + case 2809: + return "corbaloc", true + case 2810: + return "netsteward", true + case 2811: + return "gsiftp", true + case 2812: + return "atmtcp", true + case 2813: + return "llm-pass", true + case 2814: + return "llm-csv", true + case 2815: + return "lbc-measure", true + case 2816: + return "lbc-watchdog", true + case 2817: + return "nmsigport", true + case 2818: + return "rmlnk", true + case 2819: + return "fc-faultnotify", true + case 2820: + return "univision", true + case 2821: + return "vrts-at-port", true + case 2822: + return "ka0wuc", true + case 2823: + return "cqg-netlan", true + case 2824: + return "cqg-netlan-1", true + case 2826: + return "slc-systemlog", true + case 2827: + return "slc-ctrlrloops", true + case 2828: + return "itm-lm", true + case 2829: + return "silkp1", true + case 2830: + return "silkp2", true + case 2831: + return "silkp3", true + case 2832: + return "silkp4", true + case 2833: + return "glishd", true + case 2834: + return "evtp", true + case 2835: + return "evtp-data", true + case 2836: + return "catalyst", true + case 2837: + return "repliweb", true + case 2838: + return "starbot", true + case 2839: + return "nmsigport", true + case 2840: + return "l3-exprt", true + case 2841: + return "l3-ranger", true + case 2842: + return "l3-hawk", true + case 2843: + return "pdnet", true + case 2844: + return "bpcp-poll", true + case 2845: + return "bpcp-trap", true + case 2846: + return "aimpp-hello", true + case 2847: + return "aimpp-port-req", true + case 2848: + return "amt-blc-port", true + case 2849: + return "fxp", true + case 2850: + return "metaconsole", true + case 2851: + return "webemshttp", true + case 2852: + return "bears-01", true + case 2853: + return "ispipes", true + case 2854: + return "infomover", true + case 2855: + return "msrp", true + case 2856: + return "cesdinv", true + case 2857: + return "simctlp", true + case 2858: + return "ecnp", true + case 2859: + return "activememory", true + case 2860: + return "dialpad-voice1", true + case 2861: + return "dialpad-voice2", true + case 2862: + return "ttg-protocol", true + case 2863: + return "sonardata", true + case 2864: + return "astronova-main", true + case 2865: + return "pit-vpn", true + case 2866: + return "iwlistener", true + case 2867: + return "esps-portal", true + case 2868: + return "npep-messaging", true + case 2869: + return "icslap", true + case 2870: + return "daishi", true + case 2871: + return "msi-selectplay", true + case 2872: + return "radix", true + case 2873: + return "psrt", true + case 2874: + return "dxmessagebase1", true + case 2875: + return "dxmessagebase2", true + case 2876: + return "sps-tunnel", true + case 2877: + return "bluelance", true + case 2878: + return "aap", true + case 2879: + return "ucentric-ds", true + case 2880: + return "synapse", true + case 2881: + return "ndsp", true + case 2882: + return "ndtp", true + case 2883: + return "ndnp", true + case 2884: + return "flashmsg", true + case 2885: + return "topflow", true + case 2886: + return "responselogic", true + case 2887: + return "aironetddp", true + case 2888: + return "spcsdlobby", true + case 2889: + return "rsom", true + case 2890: + return "cspclmulti", true + case 2891: + return "cinegrfx-elmd", true + case 2892: + return "snifferdata", true + case 2893: + return "vseconnector", true + case 2894: + return "abacus-remote", true + case 2895: + return "natuslink", true + case 2896: + return "ecovisiong6-1", true + case 2897: + return "citrix-rtmp", true + case 2898: + return "appliance-cfg", true + case 2899: + return "powergemplus", true + case 2900: + return "quicksuite", true + case 2901: + return "allstorcns", true + case 2902: + return "netaspi", true + case 2903: + return "suitcase", true + case 2904: + return "m2ua", true + case 2905: + return "m3ua", true + case 2906: + return "caller9", true + case 2907: + return "webmethods-b2b", true + case 2908: + return "mao", true + case 2909: + return "funk-dialout", true + case 2910: + return "tdaccess", true + case 2911: + return "blockade", true + case 2912: + return "epicon", true + case 2913: + return "boosterware", true + case 2914: + return "gamelobby", true + case 2915: + return "tksocket", true + case 2916: + return "elvin-server", true + case 2917: + return "elvin-client", true + case 2918: + return "kastenchasepad", true + case 2919: + return "roboer", true + case 2920: + return "roboeda", true + case 2921: + return "cesdcdman", true + case 2922: + return "cesdcdtrn", true + case 2923: + return "wta-wsp-wtp-s", true + case 2924: + return "precise-vip", true + case 2926: + return "mobile-file-dl", true + case 2927: + return "unimobilectrl", true + case 2928: + return "redstone-cpss", true + case 2929: + return "amx-webadmin", true + case 2930: + return "amx-weblinx", true + case 2931: + return "circle-x", true + case 2932: + return "incp", true + case 2933: + return "4-tieropmgw", true + case 2934: + return "4-tieropmcli", true + case 2935: + return "qtp", true + case 2936: + return "otpatch", true + case 2937: + return "pnaconsult-lm", true + case 2938: + return "sm-pas-1", true + case 2939: + return "sm-pas-2", true + case 2940: + return "sm-pas-3", true + case 2941: + return "sm-pas-4", true + case 2942: + return "sm-pas-5", true + case 2943: + return "ttnrepository", true + case 2944: + return "megaco-h248", true + case 2945: + return "h248-binary", true + case 2946: + return "fjsvmpor", true + case 2947: + return "gpsd", true + case 2948: + return "wap-push", true + case 2949: + return "wap-pushsecure", true + case 2950: + return "esip", true + case 2951: + return "ottp", true + case 2952: + return "mpfwsas", true + case 2953: + return "ovalarmsrv", true + case 2954: + return "ovalarmsrv-cmd", true + case 2955: + return "csnotify", true + case 2956: + return "ovrimosdbman", true + case 2957: + return "jmact5", true + case 2958: + return "jmact6", true + case 2959: + return "rmopagt", true + case 2960: + return "dfoxserver", true + case 2961: + return "boldsoft-lm", true + case 2962: + return "iph-policy-cli", true + case 2963: + return "iph-policy-adm", true + case 2964: + return "bullant-srap", true + case 2965: + return "bullant-rap", true + case 2966: + return "idp-infotrieve", true + case 2967: + return "ssc-agent", true + case 2968: + return "enpp", true + case 2969: + return "essp", true + case 2970: + return "index-net", true + case 2971: + return "netclip", true + case 2972: + return "pmsm-webrctl", true + case 2973: + return "svnetworks", true + case 2974: + return "signal", true + case 2975: + return "fjmpcm", true + case 2976: + return "cns-srv-port", true + case 2977: + return "ttc-etap-ns", true + case 2978: + return "ttc-etap-ds", true + case 2979: + return "h263-video", true + case 2980: + return "wimd", true + case 2981: + return "mylxamport", true + case 2982: + return "iwb-whiteboard", true + case 2983: + return "netplan", true + case 2984: + return "hpidsadmin", true + case 2985: + return "hpidsagent", true + case 2986: + return "stonefalls", true + case 2987: + return "identify", true + case 2988: + return "hippad", true + case 2989: + return "zarkov", true + case 2990: + return "boscap", true + case 2991: + return "wkstn-mon", true + case 2992: + return "avenyo", true + case 2993: + return "veritas-vis1", true + case 2994: + return "veritas-vis2", true + case 2995: + return "idrs", true + case 2996: + return "vsixml", true + case 2997: + return "rebol", true + case 2998: + return "realsecure", true + case 2999: + return "remoteware-un", true + case 3000: + return "hbci", true + case 3001: + return "origo-native", true + case 3002: + return "exlm-agent", true + case 3003: + return "cgms", true + case 3004: + return "csoftragent", true + case 3005: + return "geniuslm", true + case 3006: + return "ii-admin", true + case 3007: + return "lotusmtap", true + case 3008: + return "midnight-tech", true + case 3009: + return "pxc-ntfy", true + case 3010: + return "gw", true + case 3011: + return "trusted-web", true + case 3012: + return "twsdss", true + case 3013: + return "gilatskysurfer", true + case 3014: + return "broker-service", true + case 3015: + return "nati-dstp", true + case 3016: + return "notify-srvr", true + case 3017: + return "event-listener", true + case 3018: + return "srvc-registry", true + case 3019: + return "resource-mgr", true + case 3020: + return "cifs", true + case 3021: + return "agriserver", true + case 3022: + return "csregagent", true + case 3023: + return "magicnotes", true + case 3024: + return "nds-sso", true + case 3025: + return "arepa-raft", true + case 3026: + return "agri-gateway", true + case 3027: + return "LiebDevMgmt-C", true + case 3028: + return "LiebDevMgmt-DM", true + case 3029: + return "LiebDevMgmt-A", true + case 3030: + return "arepa-cas", true + case 3031: + return "eppc", true + case 3032: + return "redwood-chat", true + case 3033: + return "pdb", true + case 3034: + return "osmosis-aeea", true + case 3035: + return "fjsv-gssagt", true + case 3036: + return "hagel-dump", true + case 3037: + return "hp-san-mgmt", true + case 3038: + return "santak-ups", true + case 3039: + return "cogitate", true + case 3040: + return "tomato-springs", true + case 3041: + return "di-traceware", true + case 3042: + return "journee", true + case 3043: + return "brp", true + case 3044: + return "epp", true + case 3045: + return "responsenet", true + case 3046: + return "di-ase", true + case 3047: + return "hlserver", true + case 3048: + return "pctrader", true + case 3049: + return "nsws", true + case 3050: + return "gds-db", true + case 3051: + return "galaxy-server", true + case 3052: + return "apc-3052", true + case 3053: + return "dsom-server", true + case 3054: + return "amt-cnf-prot", true + case 3055: + return "policyserver", true + case 3056: + return "cdl-server", true + case 3057: + return "goahead-fldup", true + case 3058: + return "videobeans", true + case 3059: + return "qsoft", true + case 3060: + return "interserver", true + case 3061: + return "cautcpd", true + case 3062: + return "ncacn-ip-tcp", true + case 3063: + return "ncadg-ip-udp", true + case 3064: + return "rprt", true + case 3065: + return "slinterbase", true + case 3066: + return "netattachsdmp", true + case 3067: + return "fjhpjp", true + case 3068: + return "ls3bcast", true + case 3069: + return "ls3", true + case 3070: + return "mgxswitch", true + case 3071: + return "xplat-replicate", true + case 3072: + return "csd-monitor", true + case 3073: + return "vcrp", true + case 3074: + return "xbox", true + case 3075: + return "orbix-locator", true + case 3076: + return "orbix-config", true + case 3077: + return "orbix-loc-ssl", true + case 3078: + return "orbix-cfg-ssl", true + case 3079: + return "lv-frontpanel", true + case 3080: + return "stm-pproc", true + case 3081: + return "tl1-lv", true + case 3082: + return "tl1-raw", true + case 3083: + return "tl1-telnet", true + case 3084: + return "itm-mccs", true + case 3085: + return "pcihreq", true + case 3086: + return "jdl-dbkitchen", true + case 3087: + return "asoki-sma", true + case 3088: + return "xdtp", true + case 3089: + return "ptk-alink", true + case 3090: + return "stss", true + case 3091: + return "1ci-smcs", true + case 3093: + return "rapidmq-center", true + case 3094: + return "rapidmq-reg", true + case 3095: + return "panasas", true + case 3096: + return "ndl-aps", true + case 3098: + return "umm-port", true + case 3099: + return "chmd", true + case 3100: + return "opcon-xps", true + case 3101: + return "hp-pxpib", true + case 3102: + return "slslavemon", true + case 3103: + return "autocuesmi", true + case 3104: + return "autocuelog", true + case 3105: + return "cardbox", true + case 3106: + return "cardbox-http", true + case 3107: + return "business", true + case 3108: + return "geolocate", true + case 3109: + return "personnel", true + case 3110: + return "sim-control", true + case 3111: + return "wsynch", true + case 3112: + return "ksysguard", true + case 3113: + return "cs-auth-svr", true + case 3114: + return "ccmad", true + case 3115: + return "mctet-master", true + case 3116: + return "mctet-gateway", true + case 3117: + return "mctet-jserv", true + case 3118: + return "pkagent", true + case 3119: + return "d2000kernel", true + case 3120: + return "d2000webserver", true + case 3121: + return "pcmk-remote", true + case 3122: + return "vtr-emulator", true + case 3123: + return "edix", true + case 3124: + return "beacon-port", true + case 3125: + return "a13-an", true + case 3127: + return "ctx-bridge", true + case 3128: + return "ndl-aas", true + case 3129: + return "netport-id", true + case 3130: + return "icpv2", true + case 3131: + return "netbookmark", true + case 3132: + return "ms-rule-engine", true + case 3133: + return "prism-deploy", true + case 3134: + return "ecp", true + case 3135: + return "peerbook-port", true + case 3136: + return "grubd", true + case 3137: + return "rtnt-1", true + case 3138: + return "rtnt-2", true + case 3139: + return "incognitorv", true + case 3140: + return "ariliamulti", true + case 3141: + return "vmodem", true + case 3142: + return "rdc-wh-eos", true + case 3143: + return "seaview", true + case 3144: + return "tarantella", true + case 3145: + return "csi-lfap", true + case 3146: + return "bears-02", true + case 3147: + return "rfio", true + case 3148: + return "nm-game-admin", true + case 3149: + return "nm-game-server", true + case 3150: + return "nm-asses-admin", true + case 3151: + return "nm-assessor", true + case 3152: + return "feitianrockey", true + case 3153: + return "s8-client-port", true + case 3154: + return "ccmrmi", true + case 3155: + return "jpegmpeg", true + case 3156: + return "indura", true + case 3157: + return "e3consultants", true + case 3158: + return "stvp", true + case 3159: + return "navegaweb-port", true + case 3160: + return "tip-app-server", true + case 3161: + return "doc1lm", true + case 3162: + return "sflm", true + case 3163: + return "res-sap", true + case 3164: + return "imprs", true + case 3165: + return "newgenpay", true + case 3166: + return "sossecollector", true + case 3167: + return "nowcontact", true + case 3168: + return "poweronnud", true + case 3169: + return "serverview-as", true + case 3170: + return "serverview-asn", true + case 3171: + return "serverview-gf", true + case 3172: + return "serverview-rm", true + case 3173: + return "serverview-icc", true + case 3174: + return "armi-server", true + case 3175: + return "t1-e1-over-ip", true + case 3176: + return "ars-master", true + case 3177: + return "phonex-port", true + case 3178: + return "radclientport", true + case 3179: + return "h2gf-w-2m", true + case 3180: + return "mc-brk-srv", true + case 3181: + return "bmcpatrolagent", true + case 3182: + return "bmcpatrolrnvu", true + case 3183: + return "cops-tls", true + case 3184: + return "apogeex-port", true + case 3185: + return "smpppd", true + case 3186: + return "iiw-port", true + case 3187: + return "odi-port", true + case 3188: + return "brcm-comm-port", true + case 3189: + return "pcle-infex", true + case 3190: + return "csvr-proxy", true + case 3191: + return "csvr-sslproxy", true + case 3192: + return "firemonrcc", true + case 3193: + return "spandataport", true + case 3194: + return "magbind", true + case 3195: + return "ncu-1", true + case 3196: + return "ncu-2", true + case 3197: + return "embrace-dp-s", true + case 3198: + return "embrace-dp-c", true + case 3199: + return "dmod-workspace", true + case 3200: + return "tick-port", true + case 3201: + return "cpq-tasksmart", true + case 3202: + return "intraintra", true + case 3203: + return "netwatcher-mon", true + case 3204: + return "netwatcher-db", true + case 3205: + return "isns", true + case 3206: + return "ironmail", true + case 3207: + return "vx-auth-port", true + case 3208: + return "pfu-prcallback", true + case 3209: + return "netwkpathengine", true + case 3210: + return "flamenco-proxy", true + case 3211: + return "avsecuremgmt", true + case 3212: + return "surveyinst", true + case 3213: + return "neon24x7", true + case 3214: + return "jmq-daemon-1", true + case 3215: + return "jmq-daemon-2", true + case 3216: + return "ferrari-foam", true + case 3217: + return "unite", true + case 3218: + return "smartpackets", true + case 3219: + return "wms-messenger", true + case 3220: + return "xnm-ssl", true + case 3221: + return "xnm-clear-text", true + case 3222: + return "glbp", true + case 3223: + return "digivote", true + case 3224: + return "aes-discovery", true + case 3225: + return "fcip-port", true + case 3226: + return "isi-irp", true + case 3227: + return "dwnmshttp", true + case 3228: + return "dwmsgserver", true + case 3229: + return "global-cd-port", true + case 3230: + return "sftdst-port", true + case 3231: + return "vidigo", true + case 3232: + return "mdtp", true + case 3233: + return "whisker", true + case 3234: + return "alchemy", true + case 3235: + return "mdap-port", true + case 3236: + return "apparenet-ts", true + case 3237: + return "apparenet-tps", true + case 3238: + return "apparenet-as", true + case 3239: + return "apparenet-ui", true + case 3240: + return "triomotion", true + case 3241: + return "sysorb", true + case 3242: + return "sdp-id-port", true + case 3243: + return "timelot", true + case 3244: + return "onesaf", true + case 3245: + return "vieo-fe", true + case 3246: + return "dvt-system", true + case 3247: + return "dvt-data", true + case 3248: + return "procos-lm", true + case 3249: + return "ssp", true + case 3250: + return "hicp", true + case 3251: + return "sysscanner", true + case 3252: + return "dhe", true + case 3253: + return "pda-data", true + case 3254: + return "pda-sys", true + case 3255: + return "semaphore", true + case 3256: + return "cpqrpm-agent", true + case 3257: + return "cpqrpm-server", true + case 3258: + return "ivecon-port", true + case 3259: + return "epncdp2", true + case 3260: + return "iscsi-target", true + case 3261: + return "winshadow", true + case 3262: + return "necp", true + case 3263: + return "ecolor-imager", true + case 3264: + return "ccmail", true + case 3265: + return "altav-tunnel", true + case 3266: + return "ns-cfg-server", true + case 3267: + return "ibm-dial-out", true + case 3268: + return "msft-gc", true + case 3269: + return "msft-gc-ssl", true + case 3270: + return "verismart", true + case 3271: + return "csoft-prev", true + case 3272: + return "user-manager", true + case 3273: + return "sxmp", true + case 3274: + return "ordinox-server", true + case 3275: + return "samd", true + case 3276: + return "maxim-asics", true + case 3277: + return "awg-proxy", true + case 3278: + return "lkcmserver", true + case 3279: + return "admind", true + case 3280: + return "vs-server", true + case 3281: + return "sysopt", true + case 3282: + return "datusorb", true + case 3283: + return "Apple Remote Desktop (Net Assistant)", true + case 3284: + return "4talk", true + case 3285: + return "plato", true + case 3286: + return "e-net", true + case 3287: + return "directvdata", true + case 3288: + return "cops", true + case 3289: + return "enpc", true + case 3290: + return "caps-lm", true + case 3291: + return "sah-lm", true + case 3292: + return "cart-o-rama", true + case 3293: + return "fg-fps", true + case 3294: + return "fg-gip", true + case 3295: + return "dyniplookup", true + case 3296: + return "rib-slm", true + case 3297: + return "cytel-lm", true + case 3298: + return "deskview", true + case 3299: + return "pdrncs", true + case 3300: + return "ceph", true + case 3301: + return "tarantool", true + case 3302: + return "mcs-fastmail", true + case 3303: + return "opsession-clnt", true + case 3304: + return "opsession-srvr", true + case 3305: + return "odette-ftp", true + case 3306: + return "mysql", true + case 3307: + return "opsession-prxy", true + case 3308: + return "tns-server", true + case 3309: + return "tns-adv", true + case 3310: + return "dyna-access", true + case 3311: + return "mcns-tel-ret", true + case 3312: + return "appman-server", true + case 3313: + return "uorb", true + case 3314: + return "uohost", true + case 3315: + return "cdid", true + case 3316: + return "aicc-cmi", true + case 3317: + return "vsaiport", true + case 3318: + return "ssrip", true + case 3319: + return "sdt-lmd", true + case 3320: + return "officelink2000", true + case 3321: + return "vnsstr", true + case 3326: + return "sftu", true + case 3327: + return "bbars", true + case 3328: + return "egptlm", true + case 3329: + return "hp-device-disc", true + case 3330: + return "mcs-calypsoicf", true + case 3331: + return "mcs-messaging", true + case 3332: + return "mcs-mailsvr", true + case 3333: + return "dec-notes", true + case 3334: + return "directv-web", true + case 3335: + return "directv-soft", true + case 3336: + return "directv-tick", true + case 3337: + return "directv-catlg", true + case 3338: + return "anet-b", true + case 3339: + return "anet-l", true + case 3340: + return "anet-m", true + case 3341: + return "anet-h", true + case 3342: + return "webtie", true + case 3343: + return "ms-cluster-net", true + case 3344: + return "bnt-manager", true + case 3345: + return "influence", true + case 3346: + return "trnsprntproxy", true + case 3347: + return "phoenix-rpc", true + case 3348: + return "pangolin-laser", true + case 3349: + return "chevinservices", true + case 3350: + return "findviatv", true + case 3351: + return "btrieve", true + case 3352: + return "ssql", true + case 3353: + return "fatpipe", true + case 3354: + return "suitjd", true + case 3355: + return "ordinox-dbase", true + case 3356: + return "upnotifyps", true + case 3357: + return "adtech-test", true + case 3358: + return "mpsysrmsvr", true + case 3359: + return "wg-netforce", true + case 3360: + return "kv-server", true + case 3361: + return "kv-agent", true + case 3362: + return "dj-ilm", true + case 3363: + return "nati-vi-server", true + case 3364: + return "creativeserver", true + case 3365: + return "contentserver", true + case 3366: + return "creativepartnr", true + case 3372: + return "tip2", true + case 3373: + return "lavenir-lm", true + case 3374: + return "cluster-disc", true + case 3375: + return "vsnm-agent", true + case 3376: + return "cdbroker", true + case 3377: + return "cogsys-lm", true + case 3378: + return "wsicopy", true + case 3379: + return "socorfs", true + case 3380: + return "sns-channels", true + case 3381: + return "geneous", true + case 3382: + return "fujitsu-neat", true + case 3383: + return "esp-lm", true + case 3384: + return "hp-clic", true + case 3385: + return "qnxnetman", true + case 3386: + return "gprs-data", true + case 3387: + return "backroomnet", true + case 3388: + return "cbserver", true + case 3389: + return "ms-wbt-server", true + case 3390: + return "dsc", true + case 3391: + return "savant", true + case 3392: + return "efi-lm", true + case 3393: + return "d2k-tapestry1", true + case 3394: + return "d2k-tapestry2", true + case 3395: + return "dyna-lm", true + case 3396: + return "printer-agent", true + case 3397: + return "cloanto-lm", true + case 3398: + return "mercantile", true + case 3399: + return "csms", true + case 3400: + return "csms2", true + case 3401: + return "filecast", true + case 3402: + return "fxaengine-net", true + case 3405: + return "nokia-ann-ch1", true + case 3406: + return "nokia-ann-ch2", true + case 3407: + return "ldap-admin", true + case 3408: + return "BESApi", true + case 3409: + return "networklens", true + case 3410: + return "networklenss", true + case 3411: + return "biolink-auth", true + case 3412: + return "xmlblaster", true + case 3413: + return "svnet", true + case 3414: + return "wip-port", true + case 3415: + return "bcinameservice", true + case 3416: + return "commandport", true + case 3417: + return "csvr", true + case 3418: + return "rnmap", true + case 3419: + return "softaudit", true + case 3420: + return "ifcp-port", true + case 3421: + return "bmap", true + case 3422: + return "rusb-sys-port", true + case 3423: + return "xtrm", true + case 3424: + return "xtrms", true + case 3425: + return "agps-port", true + case 3426: + return "arkivio", true + case 3427: + return "websphere-snmp", true + case 3428: + return "twcss", true + case 3429: + return "gcsp", true + case 3430: + return "ssdispatch", true + case 3431: + return "ndl-als", true + case 3432: + return "osdcp", true + case 3433: + return "opnet-smp", true + case 3434: + return "opencm", true + case 3435: + return "pacom", true + case 3436: + return "gc-config", true + case 3437: + return "autocueds", true + case 3438: + return "spiral-admin", true + case 3439: + return "hri-port", true + case 3440: + return "ans-console", true + case 3441: + return "connect-client", true + case 3442: + return "connect-server", true + case 3443: + return "ov-nnm-websrv", true + case 3444: + return "denali-server", true + case 3445: + return "monp", true + case 3446: + return "3comfaxrpc", true + case 3447: + return "directnet", true + case 3448: + return "dnc-port", true + case 3449: + return "hotu-chat", true + case 3450: + return "castorproxy", true + case 3451: + return "asam", true + case 3452: + return "sabp-signal", true + case 3453: + return "pscupd", true + case 3454: + return "mira", true + case 3455: + return "prsvp", true + case 3456: + return "vat", true + case 3457: + return "vat-control", true + case 3458: + return "d3winosfi", true + case 3459: + return "integral", true + case 3460: + return "edm-manager", true + case 3461: + return "edm-stager", true + case 3462: + return "edm-std-notify", true + case 3463: + return "edm-adm-notify", true + case 3464: + return "edm-mgr-sync", true + case 3465: + return "edm-mgr-cntrl", true + case 3466: + return "workflow", true + case 3467: + return "rcst", true + case 3468: + return "ttcmremotectrl", true + case 3469: + return "pluribus", true + case 3470: + return "jt400", true + case 3471: + return "jt400-ssl", true + case 3472: + return "jaugsremotec-1", true + case 3473: + return "jaugsremotec-2", true + case 3474: + return "ttntspauto", true + case 3475: + return "genisar-port", true + case 3476: + return "nppmp", true + case 3477: + return "ecomm", true + case 3478: + return "stun", true + case 3479: + return "twrpc", true + case 3480: + return "plethora", true + case 3481: + return "cleanerliverc", true + case 3482: + return "vulture", true + case 3483: + return "slim-devices", true + case 3484: + return "gbs-stp", true + case 3485: + return "celatalk", true + case 3486: + return "ifsf-hb-port", true + case 3487: + return "ltctcp", true + case 3488: + return "fs-rh-srv", true + case 3489: + return "dtp-dia", true + case 3490: + return "colubris", true + case 3491: + return "swr-port", true + case 3492: + return "tvdumtray-port", true + case 3493: + return "nut", true + case 3494: + return "ibm3494", true + case 3495: + return "seclayer-tcp", true + case 3496: + return "seclayer-tls", true + case 3497: + return "ipether232port", true + case 3498: + return "dashpas-port", true + case 3499: + return "sccip-media", true + case 3500: + return "rtmp-port", true + case 3501: + return "isoft-p2p", true + case 3502: + return "avinstalldisc", true + case 3503: + return "lsp-ping", true + case 3504: + return "ironstorm", true + case 3505: + return "ccmcomm", true + case 3506: + return "apc-3506", true + case 3507: + return "nesh-broker", true + case 3508: + return "interactionweb", true + case 3509: + return "vt-ssl", true + case 3510: + return "xss-port", true + case 3511: + return "webmail-2", true + case 3512: + return "aztec", true + case 3513: + return "arcpd", true + case 3514: + return "must-p2p", true + case 3515: + return "must-backplane", true + case 3516: + return "smartcard-port", true + case 3517: + return "802-11-iapp", true + case 3518: + return "artifact-msg", true + case 3519: + return "nvmsgd", true + case 3520: + return "galileolog", true + case 3521: + return "mc3ss", true + case 3522: + return "nssocketport", true + case 3523: + return "odeumservlink", true + case 3524: + return "ecmport", true + case 3525: + return "eisport", true + case 3526: + return "starquiz-port", true + case 3527: + return "beserver-msg-q", true + case 3528: + return "jboss-iiop", true + case 3529: + return "jboss-iiop-ssl", true + case 3530: + return "gf", true + case 3531: + return "joltid", true + case 3532: + return "raven-rmp", true + case 3533: + return "raven-rdp", true + case 3534: + return "urld-port", true + case 3535: + return "ms-la", true + case 3536: + return "snac", true + case 3537: + return "ni-visa-remote", true + case 3538: + return "ibm-diradm", true + case 3539: + return "ibm-diradm-ssl", true + case 3540: + return "pnrp-port", true + case 3541: + return "voispeed-port", true + case 3542: + return "hacl-monitor", true + case 3543: + return "qftest-lookup", true + case 3544: + return "teredo", true + case 3545: + return "camac", true + case 3547: + return "symantec-sim", true + case 3548: + return "interworld", true + case 3549: + return "tellumat-nms", true + case 3550: + return "ssmpp", true + case 3551: + return "apcupsd", true + case 3552: + return "taserver", true + case 3553: + return "rbr-discovery", true + case 3554: + return "questnotify", true + case 3555: + return "razor", true + case 3556: + return "sky-transport", true + case 3557: + return "personalos-001", true + case 3558: + return "mcp-port", true + case 3559: + return "cctv-port", true + case 3560: + return "iniserve-port", true + case 3561: + return "bmc-onekey", true + case 3562: + return "sdbproxy", true + case 3563: + return "watcomdebug", true + case 3564: + return "esimport", true + case 3565: + return "m2pa", true + case 3566: + return "quest-data-hub", true + case 3567: + return "dof-eps", true + case 3568: + return "dof-tunnel-sec", true + case 3569: + return "mbg-ctrl", true + case 3570: + return "mccwebsvr-port", true + case 3571: + return "megardsvr-port", true + case 3572: + return "megaregsvrport", true + case 3573: + return "tag-ups-1", true + case 3574: + return "dmaf-server", true + case 3575: + return "ccm-port", true + case 3576: + return "cmc-port", true + case 3577: + return "config-port", true + case 3578: + return "data-port", true + case 3579: + return "ttat3lb", true + case 3580: + return "nati-svrloc", true + case 3581: + return "kfxaclicensing", true + case 3582: + return "press", true + case 3583: + return "canex-watch", true + case 3584: + return "u-dbap", true + case 3585: + return "emprise-lls", true + case 3586: + return "emprise-lsc", true + case 3587: + return "p2pgroup", true + case 3588: + return "sentinel", true + case 3589: + return "isomair", true + case 3590: + return "wv-csp-sms", true + case 3591: + return "gtrack-server", true + case 3592: + return "gtrack-ne", true + case 3593: + return "bpmd", true + case 3594: + return "mediaspace", true + case 3595: + return "shareapp", true + case 3596: + return "iw-mmogame", true + case 3597: + return "a14", true + case 3598: + return "a15", true + case 3599: + return "quasar-server", true + case 3600: + return "trap-daemon", true + case 3601: + return "visinet-gui", true + case 3602: + return "infiniswitchcl", true + case 3603: + return "int-rcv-cntrl", true + case 3604: + return "bmc-jmx-port", true + case 3605: + return "comcam-io", true + case 3606: + return "splitlock", true + case 3607: + return "precise-i3", true + case 3608: + return "trendchip-dcp", true + case 3609: + return "cpdi-pidas-cm", true + case 3610: + return "echonet", true + case 3611: + return "six-degrees", true + case 3612: + return "dataprotector", true + case 3613: + return "alaris-disc", true + case 3614: + return "sigma-port", true + case 3615: + return "start-network", true + case 3616: + return "cd3o-protocol", true + case 3617: + return "sharp-server", true + case 3618: + return "aairnet-1", true + case 3619: + return "aairnet-2", true + case 3620: + return "ep-pcp", true + case 3621: + return "ep-nsp", true + case 3622: + return "ff-lr-port", true + case 3623: + return "haipe-discover", true + case 3624: + return "dist-upgrade", true + case 3625: + return "volley", true + case 3626: + return "bvcdaemon-port", true + case 3627: + return "jamserverport", true + case 3628: + return "ept-machine", true + case 3629: + return "escvpnet", true + case 3630: + return "cs-remote-db", true + case 3631: + return "cs-services", true + case 3632: + return "distcc", true + case 3633: + return "wacp", true + case 3634: + return "hlibmgr", true + case 3635: + return "sdo", true + case 3636: + return "servistaitsm", true + case 3637: + return "scservp", true + case 3638: + return "ehp-backup", true + case 3639: + return "xap-ha", true + case 3640: + return "netplay-port1", true + case 3641: + return "netplay-port2", true + case 3642: + return "juxml-port", true + case 3643: + return "audiojuggler", true + case 3644: + return "ssowatch", true + case 3645: + return "cyc", true + case 3646: + return "xss-srv-port", true + case 3647: + return "splitlock-gw", true + case 3648: + return "fjcp", true + case 3649: + return "nmmp", true + case 3650: + return "prismiq-plugin", true + case 3651: + return "xrpc-registry", true + case 3652: + return "vxcrnbuport", true + case 3653: + return "tsp", true + case 3654: + return "vaprtm", true + case 3655: + return "abatemgr", true + case 3656: + return "abatjss", true + case 3657: + return "immedianet-bcn", true + case 3658: + return "ps-ams", true + case 3659: + return "apple-sasl", true + case 3660: + return "can-nds-ssl", true + case 3661: + return "can-ferret-ssl", true + case 3662: + return "pserver", true + case 3663: + return "dtp", true + case 3664: + return "ups-engine", true + case 3665: + return "ent-engine", true + case 3666: + return "eserver-pap", true + case 3667: + return "infoexch", true + case 3668: + return "dell-rm-port", true + case 3669: + return "casanswmgmt", true + case 3670: + return "smile", true + case 3671: + return "efcp", true + case 3672: + return "lispworks-orb", true + case 3673: + return "mediavault-gui", true + case 3674: + return "wininstall-ipc", true + case 3675: + return "calltrax", true + case 3676: + return "va-pacbase", true + case 3677: + return "roverlog", true + case 3678: + return "ipr-dglt", true + case 3679: + return "Escale (Newton Dock)", true + case 3680: + return "npds-tracker", true + case 3681: + return "bts-x73", true + case 3682: + return "cas-mapi", true + case 3683: + return "bmc-ea", true + case 3684: + return "faxstfx-port", true + case 3685: + return "dsx-agent", true + case 3686: + return "tnmpv2", true + case 3687: + return "simple-push", true + case 3688: + return "simple-push-s", true + case 3689: + return "daap", true + case 3690: + return "svn", true + case 3691: + return "magaya-network", true + case 3692: + return "intelsync", true + case 3693: + return "easl", true + case 3695: + return "bmc-data-coll", true + case 3696: + return "telnetcpcd", true + case 3697: + return "nw-license", true + case 3698: + return "sagectlpanel", true + case 3699: + return "kpn-icw", true + case 3700: + return "lrs-paging", true + case 3701: + return "netcelera", true + case 3702: + return "ws-discovery", true + case 3703: + return "adobeserver-3", true + case 3704: + return "adobeserver-4", true + case 3705: + return "adobeserver-5", true + case 3706: + return "rt-event", true + case 3707: + return "rt-event-s", true + case 3708: + return "sun-as-iiops", true + case 3709: + return "ca-idms", true + case 3710: + return "portgate-auth", true + case 3711: + return "edb-server2", true + case 3712: + return "sentinel-ent", true + case 3713: + return "tftps", true + case 3714: + return "delos-dms", true + case 3715: + return "anoto-rendezv", true + case 3716: + return "wv-csp-sms-cir", true + case 3717: + return "wv-csp-udp-cir", true + case 3718: + return "opus-services", true + case 3719: + return "itelserverport", true + case 3720: + return "ufastro-instr", true + case 3721: + return "xsync", true + case 3722: + return "xserveraid", true + case 3723: + return "sychrond", true + case 3724: + return "blizwow", true + case 3725: + return "na-er-tip", true + case 3726: + return "array-manager", true + case 3727: + return "e-mdu", true + case 3728: + return "e-woa", true + case 3729: + return "fksp-audit", true + case 3730: + return "client-ctrl", true + case 3731: + return "smap", true + case 3732: + return "m-wnn", true + case 3733: + return "multip-msg", true + case 3734: + return "synel-data", true + case 3735: + return "pwdis", true + case 3736: + return "rs-rmi", true + case 3737: + return "xpanel", true + case 3738: + return "versatalk", true + case 3739: + return "launchbird-lm", true + case 3740: + return "heartbeat", true + case 3741: + return "wysdma", true + case 3742: + return "cst-port", true + case 3743: + return "ipcs-command", true + case 3744: + return "sasg", true + case 3745: + return "gw-call-port", true + case 3746: + return "linktest", true + case 3747: + return "linktest-s", true + case 3748: + return "webdata", true + case 3749: + return "cimtrak", true + case 3750: + return "cbos-ip-port", true + case 3751: + return "gprs-cube", true + case 3752: + return "vipremoteagent", true + case 3753: + return "nattyserver", true + case 3754: + return "timestenbroker", true + case 3755: + return "sas-remote-hlp", true + case 3756: + return "canon-capt", true + case 3757: + return "grf-port", true + case 3758: + return "apw-registry", true + case 3759: + return "exapt-lmgr", true + case 3760: + return "adtempusclient", true + case 3761: + return "gsakmp", true + case 3762: + return "gbs-smp", true + case 3763: + return "xo-wave", true + case 3764: + return "mni-prot-rout", true + case 3765: + return "rtraceroute", true + case 3766: + return "sitewatch-s", true + case 3767: + return "listmgr-port", true + case 3768: + return "rblcheckd", true + case 3769: + return "haipe-otnk", true + case 3770: + return "cindycollab", true + case 3771: + return "paging-port", true + case 3772: + return "ctp", true + case 3773: + return "ctdhercules", true + case 3774: + return "zicom", true + case 3775: + return "ispmmgr", true + case 3776: + return "dvcprov-port", true + case 3777: + return "jibe-eb", true + case 3778: + return "c-h-it-port", true + case 3779: + return "cognima", true + case 3780: + return "nnp", true + case 3781: + return "abcvoice-port", true + case 3782: + return "iso-tp0s", true + case 3783: + return "bim-pem", true + case 3784: + return "bfd-control", true + case 3785: + return "bfd-echo", true + case 3786: + return "upstriggervsw", true + case 3787: + return "fintrx", true + case 3788: + return "isrp-port", true + case 3789: + return "remotedeploy", true + case 3790: + return "quickbooksrds", true + case 3791: + return "tvnetworkvideo", true + case 3792: + return "sitewatch", true + case 3793: + return "dcsoftware", true + case 3794: + return "jaus", true + case 3795: + return "myblast", true + case 3796: + return "spw-dialer", true + case 3797: + return "idps", true + case 3798: + return "minilock", true + case 3799: + return "radius-dynauth", true + case 3800: + return "pwgpsi", true + case 3801: + return "ibm-mgr", true + case 3802: + return "vhd", true + case 3803: + return "soniqsync", true + case 3804: + return "iqnet-port", true + case 3805: + return "tcpdataserver", true + case 3806: + return "wsmlb", true + case 3807: + return "spugna", true + case 3808: + return "sun-as-iiops-ca", true + case 3809: + return "apocd", true + case 3810: + return "wlanauth", true + case 3811: + return "amp", true + case 3812: + return "neto-wol-server", true + case 3813: + return "rap-ip", true + case 3814: + return "neto-dcs", true + case 3815: + return "lansurveyorxml", true + case 3816: + return "sunlps-http", true + case 3817: + return "tapeware", true + case 3818: + return "crinis-hb", true + case 3819: + return "epl-slp", true + case 3820: + return "scp", true + case 3821: + return "pmcp", true + case 3822: + return "acp-discovery", true + case 3823: + return "acp-conduit", true + case 3824: + return "acp-policy", true + case 3825: + return "ffserver", true + case 3826: + return "warmux", true + case 3827: + return "netmpi", true + case 3828: + return "neteh", true + case 3829: + return "neteh-ext", true + case 3830: + return "cernsysmgmtagt", true + case 3831: + return "dvapps", true + case 3832: + return "xxnetserver", true + case 3833: + return "aipn-auth", true + case 3834: + return "spectardata", true + case 3835: + return "spectardb", true + case 3836: + return "markem-dcp", true + case 3837: + return "mkm-discovery", true + case 3838: + return "sos", true + case 3839: + return "amx-rms", true + case 3840: + return "flirtmitmir", true + case 3841: + return "shiprush-db-svr", true + case 3842: + return "nhci", true + case 3843: + return "quest-agent", true + case 3844: + return "rnm", true + case 3845: + return "v-one-spp", true + case 3846: + return "an-pcp", true + case 3847: + return "msfw-control", true + case 3848: + return "item", true + case 3849: + return "spw-dnspreload", true + case 3850: + return "qtms-bootstrap", true + case 3851: + return "spectraport", true + case 3852: + return "sse-app-config", true + case 3853: + return "sscan", true + case 3854: + return "stryker-com", true + case 3855: + return "opentrac", true + case 3856: + return "informer", true + case 3857: + return "trap-port", true + case 3858: + return "trap-port-mom", true + case 3859: + return "nav-port", true + case 3860: + return "sasp", true + case 3861: + return "winshadow-hd", true + case 3862: + return "giga-pocket", true + case 3863: + return "asap-tcp", true + case 3864: + return "asap-tcp-tls", true + case 3865: + return "xpl", true + case 3866: + return "dzdaemon", true + case 3867: + return "dzoglserver", true + case 3868: + return "diameter", true + case 3869: + return "ovsam-mgmt", true + case 3870: + return "ovsam-d-agent", true + case 3871: + return "avocent-adsap", true + case 3872: + return "oem-agent", true + case 3873: + return "fagordnc", true + case 3874: + return "sixxsconfig", true + case 3875: + return "pnbscada", true + case 3876: + return "dl-agent", true + case 3877: + return "xmpcr-interface", true + case 3878: + return "fotogcad", true + case 3879: + return "appss-lm", true + case 3880: + return "igrs", true + case 3881: + return "idac", true + case 3882: + return "msdts1", true + case 3883: + return "vrpn", true + case 3884: + return "softrack-meter", true + case 3885: + return "topflow-ssl", true + case 3886: + return "nei-management", true + case 3887: + return "ciphire-data", true + case 3888: + return "ciphire-serv", true + case 3889: + return "dandv-tester", true + case 3890: + return "ndsconnect", true + case 3891: + return "rtc-pm-port", true + case 3892: + return "pcc-image-port", true + case 3893: + return "cgi-starapi", true + case 3894: + return "syam-agent", true + case 3895: + return "syam-smc", true + case 3896: + return "sdo-tls", true + case 3897: + return "sdo-ssh", true + case 3898: + return "senip", true + case 3899: + return "itv-control", true + case 3900: + return "udt-os", true + case 3901: + return "nimsh", true + case 3902: + return "nimaux", true + case 3903: + return "charsetmgr", true + case 3904: + return "omnilink-port", true + case 3905: + return "mupdate", true + case 3906: + return "topovista-data", true + case 3907: + return "imoguia-port", true + case 3908: + return "hppronetman", true + case 3909: + return "surfcontrolcpa", true + case 3910: + return "prnrequest", true + case 3911: + return "prnstatus", true + case 3912: + return "gbmt-stars", true + case 3913: + return "listcrt-port", true + case 3914: + return "listcrt-port-2", true + case 3915: + return "agcat", true + case 3916: + return "wysdmc", true + case 3917: + return "aftmux", true + case 3918: + return "pktcablemmcops", true + case 3919: + return "hyperip", true + case 3920: + return "exasoftport1", true + case 3921: + return "herodotus-net", true + case 3922: + return "sor-update", true + case 3923: + return "symb-sb-port", true + case 3924: + return "mpl-gprs-port", true + case 3925: + return "zmp", true + case 3926: + return "winport", true + case 3927: + return "natdataservice", true + case 3928: + return "netboot-pxe", true + case 3929: + return "smauth-port", true + case 3930: + return "syam-webserver", true + case 3931: + return "msr-plugin-port", true + case 3932: + return "dyn-site", true + case 3933: + return "plbserve-port", true + case 3934: + return "sunfm-port", true + case 3935: + return "sdp-portmapper", true + case 3936: + return "mailprox", true + case 3937: + return "dvbservdsc", true + case 3938: + return "dbcontrol-agent", true + case 3939: + return "aamp", true + case 3940: + return "xecp-node", true + case 3941: + return "homeportal-web", true + case 3942: + return "srdp", true + case 3943: + return "tig", true + case 3944: + return "sops", true + case 3945: + return "emcads", true + case 3946: + return "backupedge", true + case 3947: + return "ccp", true + case 3948: + return "apdap", true + case 3949: + return "drip", true + case 3950: + return "namemunge", true + case 3951: + return "pwgippfax", true + case 3952: + return "i3-sessionmgr", true + case 3953: + return "xmlink-connect", true + case 3954: + return "adrep", true + case 3955: + return "p2pcommunity", true + case 3956: + return "gvcp", true + case 3957: + return "mqe-broker", true + case 3958: + return "mqe-agent", true + case 3959: + return "treehopper", true + case 3960: + return "bess", true + case 3961: + return "proaxess", true + case 3962: + return "sbi-agent", true + case 3963: + return "thrp", true + case 3964: + return "sasggprs", true + case 3965: + return "ati-ip-to-ncpe", true + case 3966: + return "bflckmgr", true + case 3967: + return "ppsms", true + case 3968: + return "ianywhere-dbns", true + case 3969: + return "landmarks", true + case 3970: + return "lanrevagent", true + case 3971: + return "lanrevserver", true + case 3972: + return "iconp", true + case 3973: + return "progistics", true + case 3974: + return "xk22", true + case 3975: + return "airshot", true + case 3976: + return "opswagent", true + case 3977: + return "opswmanager", true + case 3978: + return "secure-cfg-svr", true + case 3979: + return "smwan", true + case 3981: + return "starfish", true + case 3982: + return "eis", true + case 3983: + return "eisp", true + case 3984: + return "mapper-nodemgr", true + case 3985: + return "mapper-mapethd", true + case 3986: + return "mapper-ws-ethd", true + case 3987: + return "centerline", true + case 3988: + return "dcs-config", true + case 3989: + return "bv-queryengine", true + case 3990: + return "bv-is", true + case 3991: + return "bv-smcsrv", true + case 3992: + return "bv-ds", true + case 3993: + return "bv-agent", true + case 3995: + return "iss-mgmt-ssl", true + case 3996: + return "abcsoftware", true + case 3997: + return "agentsease-db", true + case 3998: + return "dnx", true + case 3999: + return "nvcnet", true + case 4000: + return "terabase", true + case 4001: + return "newoak", true + case 4002: + return "pxc-spvr-ft", true + case 4003: + return "pxc-splr-ft", true + case 4004: + return "pxc-roid", true + case 4005: + return "pxc-pin", true + case 4006: + return "pxc-spvr", true + case 4007: + return "pxc-splr", true + case 4008: + return "netcheque", true + case 4009: + return "chimera-hwm", true + case 4010: + return "samsung-unidex", true + case 4011: + return "altserviceboot", true + case 4012: + return "pda-gate", true + case 4013: + return "acl-manager", true + case 4014: + return "taiclock", true + case 4015: + return "talarian-mcast1", true + case 4016: + return "talarian-mcast2", true + case 4017: + return "talarian-mcast3", true + case 4018: + return "talarian-mcast4", true + case 4019: + return "talarian-mcast5", true + case 4020: + return "trap", true + case 4021: + return "nexus-portal", true + case 4022: + return "dnox", true + case 4023: + return "esnm-zoning", true + case 4024: + return "tnp1-port", true + case 4025: + return "partimage", true + case 4026: + return "as-debug", true + case 4027: + return "bxp", true + case 4028: + return "dtserver-port", true + case 4029: + return "ip-qsig", true + case 4030: + return "jdmn-port", true + case 4031: + return "suucp", true + case 4032: + return "vrts-auth-port", true + case 4033: + return "sanavigator", true + case 4034: + return "ubxd", true + case 4035: + return "wap-push-http", true + case 4036: + return "wap-push-https", true + case 4037: + return "ravehd", true + case 4038: + return "fazzt-ptp", true + case 4039: + return "fazzt-admin", true + case 4040: + return "yo-main", true + case 4041: + return "houston", true + case 4042: + return "ldxp", true + case 4043: + return "nirp", true + case 4044: + return "ltp", true + case 4045: + return "npp", true + case 4046: + return "acp-proto", true + case 4047: + return "ctp-state", true + case 4049: + return "wafs", true + case 4050: + return "cisco-wafs", true + case 4051: + return "cppdp", true + case 4052: + return "interact", true + case 4053: + return "ccu-comm-1", true + case 4054: + return "ccu-comm-2", true + case 4055: + return "ccu-comm-3", true + case 4056: + return "lms", true + case 4057: + return "wfm", true + case 4058: + return "kingfisher", true + case 4059: + return "dlms-cosem", true + case 4060: + return "dsmeter-iatc", true + case 4061: + return "ice-location", true + case 4062: + return "ice-slocation", true + case 4063: + return "ice-router", true + case 4064: + return "ice-srouter", true + case 4065: + return "avanti-cdp", true + case 4066: + return "pmas", true + case 4067: + return "idp", true + case 4068: + return "ipfltbcst", true + case 4069: + return "minger", true + case 4070: + return "tripe", true + case 4071: + return "aibkup", true + case 4072: + return "zieto-sock", true + case 4073: + return "iRAPP", true + case 4074: + return "cequint-cityid", true + case 4075: + return "perimlan", true + case 4076: + return "seraph", true + case 4078: + return "cssp", true + case 4079: + return "santools", true + case 4080: + return "lorica-in", true + case 4081: + return "lorica-in-sec", true + case 4082: + return "lorica-out", true + case 4083: + return "lorica-out-sec", true + case 4085: + return "ezmessagesrv", true + case 4087: + return "applusservice", true + case 4088: + return "npsp", true + case 4089: + return "opencore", true + case 4090: + return "omasgport", true + case 4091: + return "ewinstaller", true + case 4092: + return "ewdgs", true + case 4093: + return "pvxpluscs", true + case 4094: + return "sysrqd", true + case 4095: + return "xtgui", true + case 4096: + return "bre", true + case 4097: + return "patrolview", true + case 4098: + return "drmsfsd", true + case 4099: + return "dpcp", true + case 4100: + return "igo-incognito", true + case 4101: + return "brlp-0", true + case 4102: + return "brlp-1", true + case 4103: + return "brlp-2", true + case 4104: + return "brlp-3", true + case 4105: + return "shofar", true + case 4106: + return "synchronite", true + case 4107: + return "j-ac", true + case 4108: + return "accel", true + case 4109: + return "izm", true + case 4110: + return "g2tag", true + case 4111: + return "xgrid", true + case 4112: + return "apple-vpns-rp", true + case 4113: + return "aipn-reg", true + case 4114: + return "jomamqmonitor", true + case 4115: + return "cds", true + case 4116: + return "smartcard-tls", true + case 4117: + return "hillrserv", true + case 4118: + return "netscript", true + case 4119: + return "assuria-slm", true + case 4120: + return "minirem", true + case 4121: + return "e-builder", true + case 4122: + return "fprams", true + case 4123: + return "z-wave", true + case 4124: + return "tigv2", true + case 4125: + return "opsview-envoy", true + case 4126: + return "ddrepl", true + case 4127: + return "unikeypro", true + case 4128: + return "nufw", true + case 4129: + return "nuauth", true + case 4130: + return "fronet", true + case 4131: + return "stars", true + case 4132: + return "nuts-dem", true + case 4133: + return "nuts-bootp", true + case 4134: + return "nifty-hmi", true + case 4135: + return "cl-db-attach", true + case 4136: + return "cl-db-request", true + case 4137: + return "cl-db-remote", true + case 4138: + return "nettest", true + case 4139: + return "thrtx", true + case 4140: + return "cedros-fds", true + case 4141: + return "oirtgsvc", true + case 4142: + return "oidocsvc", true + case 4143: + return "oidsr", true + case 4145: + return "vvr-control", true + case 4146: + return "tgcconnect", true + case 4147: + return "vrxpservman", true + case 4148: + return "hhb-handheld", true + case 4149: + return "agslb", true + case 4150: + return "PowerAlert-nsa", true + case 4151: + return "menandmice-noh", true + case 4152: + return "idig-mux", true + case 4153: + return "mbl-battd", true + case 4154: + return "atlinks", true + case 4155: + return "bzr", true + case 4156: + return "stat-results", true + case 4157: + return "stat-scanner", true + case 4158: + return "stat-cc", true + case 4159: + return "nss", true + case 4160: + return "jini-discovery", true + case 4161: + return "omscontact", true + case 4162: + return "omstopology", true + case 4163: + return "silverpeakpeer", true + case 4164: + return "silverpeakcomm", true + case 4165: + return "altcp", true + case 4166: + return "joost", true + case 4167: + return "ddgn", true + case 4168: + return "pslicser", true + case 4169: + return "iadt", true + case 4170: + return "d-cinema-csp", true + case 4171: + return "ml-svnet", true + case 4172: + return "pcoip", true + case 4174: + return "smcluster", true + case 4175: + return "bccp", true + case 4176: + return "tl-ipcproxy", true + case 4177: + return "wello", true + case 4178: + return "storman", true + case 4179: + return "MaxumSP", true + case 4180: + return "httpx", true + case 4181: + return "macbak", true + case 4182: + return "pcptcpservice", true + case 4183: + return "cyborgnet", true + case 4184: + return "universe-suite", true + case 4185: + return "wcpp", true + case 4186: + return "boxbackupstore", true + case 4187: + return "csc-proxy", true + case 4188: + return "vatata", true + case 4189: + return "pcep", true + case 4190: + return "sieve", true + case 4192: + return "azeti", true + case 4193: + return "pvxplusio", true + case 4194: + return "spdm", true + case 4195: + return "aws-wsp", true + case 4197: + return "hctl", true + case 4199: + return "eims-admin", true + case 4300: + return "corelccam", true + case 4301: + return "d-data", true + case 4302: + return "d-data-control", true + case 4303: + return "srcp", true + case 4304: + return "owserver", true + case 4305: + return "batman", true + case 4306: + return "pinghgl", true + case 4307: + return "trueconf", true + case 4308: + return "compx-lockview", true + case 4309: + return "dserver", true + case 4310: + return "mirrtex", true + case 4311: + return "p6ssmc", true + case 4312: + return "pscl-mgt", true + case 4313: + return "perrla", true + case 4314: + return "choiceview-agt", true + case 4316: + return "choiceview-clt", true + case 4317: + return "opentelemetry", true + case 4319: + return "fox-skytale", true + case 4320: + return "fdt-rcatp", true + case 4321: + return "rwhois", true + case 4322: + return "trim-event", true + case 4323: + return "trim-ice", true + case 4325: + return "geognosisadmin", true + case 4326: + return "geognosis", true + case 4327: + return "jaxer-web", true + case 4328: + return "jaxer-manager", true + case 4329: + return "publiqare-sync", true + case 4330: + return "dey-sapi", true + case 4331: + return "ktickets-rest", true + case 4332: + return "getty-focus", true + case 4333: + return "ahsp", true + case 4334: + return "netconf-ch-ssh", true + case 4335: + return "netconf-ch-tls", true + case 4336: + return "restconf-ch-tls", true + case 4340: + return "gaia", true + case 4343: + return "unicall", true + case 4344: + return "vinainstall", true + case 4345: + return "m4-network-as", true + case 4346: + return "elanlm", true + case 4347: + return "lansurveyor", true + case 4348: + return "itose", true + case 4349: + return "fsportmap", true + case 4350: + return "net-device", true + case 4351: + return "plcy-net-svcs", true + case 4352: + return "pjlink", true + case 4353: + return "f5-iquery", true + case 4354: + return "qsnet-trans", true + case 4355: + return "qsnet-workst", true + case 4356: + return "qsnet-assist", true + case 4357: + return "qsnet-cond", true + case 4358: + return "qsnet-nucl", true + case 4359: + return "omabcastltkm", true + case 4360: + return "matrix-vnet", true + case 4368: + return "wxbrief", true + case 4369: + return "epmd", true + case 4370: + return "elpro-tunnel", true + case 4371: + return "l2c-control", true + case 4372: + return "l2c-data", true + case 4373: + return "remctl", true + case 4374: + return "psi-ptt", true + case 4375: + return "tolteces", true + case 4376: + return "bip", true + case 4377: + return "cp-spxsvr", true + case 4378: + return "cp-spxdpy", true + case 4379: + return "ctdb", true + case 4389: + return "xandros-cms", true + case 4390: + return "wiegand", true + case 4391: + return "apwi-imserver", true + case 4392: + return "apwi-rxserver", true + case 4393: + return "apwi-rxspooler", true + case 4395: + return "omnivisionesx", true + case 4396: + return "fly", true + case 4400: + return "ds-srv", true + case 4401: + return "ds-srvr", true + case 4402: + return "ds-clnt", true + case 4403: + return "ds-user", true + case 4404: + return "ds-admin", true + case 4405: + return "ds-mail", true + case 4406: + return "ds-slp", true + case 4407: + return "nacagent", true + case 4408: + return "slscc", true + case 4409: + return "netcabinet-com", true + case 4410: + return "itwo-server", true + case 4411: + return "found", true + case 4413: + return "avi-nms", true + case 4414: + return "updog", true + case 4415: + return "brcd-vr-req", true + case 4416: + return "pjj-player", true + case 4417: + return "workflowdir", true + case 4419: + return "cbp", true + case 4420: + return "nvme", true + case 4421: + return "scaleft", true + case 4422: + return "tsepisp", true + case 4423: + return "thingkit", true + case 4425: + return "netrockey6", true + case 4426: + return "beacon-port-2", true + case 4427: + return "drizzle", true + case 4428: + return "omviserver", true + case 4429: + return "omviagent", true + case 4430: + return "rsqlserver", true + case 4431: + return "wspipe", true + case 4432: + return "l-acoustics", true + case 4433: + return "vop", true + case 4442: + return "saris", true + case 4443: + return "pharos", true + case 4444: + return "krb524", true + case 4445: + return "upnotifyp", true + case 4446: + return "n1-fwp", true + case 4447: + return "n1-rmgmt", true + case 4448: + return "asc-slmd", true + case 4449: + return "privatewire", true + case 4450: + return "camp", true + case 4451: + return "ctisystemmsg", true + case 4452: + return "ctiprogramload", true + case 4453: + return "nssalertmgr", true + case 4454: + return "nssagentmgr", true + case 4455: + return "prchat-user", true + case 4456: + return "prchat-server", true + case 4457: + return "prRegister", true + case 4458: + return "mcp", true + case 4460: + return "ntske", true + case 4484: + return "hpssmgmt", true + case 4485: + return "assyst-dr", true + case 4486: + return "icms", true + case 4487: + return "prex-tcp", true + case 4488: + return "awacs-ice", true + case 4500: + return "ipsec-nat-t", true + case 4535: + return "ehs", true + case 4536: + return "ehs-ssl", true + case 4537: + return "wssauthsvc", true + case 4538: + return "swx-gate", true + case 4545: + return "worldscores", true + case 4546: + return "sf-lm", true + case 4547: + return "lanner-lm", true + case 4548: + return "synchromesh", true + case 4549: + return "aegate", true + case 4550: + return "gds-adppiw-db", true + case 4551: + return "ieee-mih", true + case 4552: + return "menandmice-mon", true + case 4553: + return "icshostsvc", true + case 4554: + return "msfrs", true + case 4555: + return "rsip", true + case 4556: + return "dtn-bundle", true + case 4559: + return "hylafax", true + case 4563: + return "amahi-anywhere", true + case 4566: + return "kwtc", true + case 4567: + return "tram", true + case 4568: + return "bmc-reporting", true + case 4569: + return "iax", true + case 4570: + return "deploymentmap", true + case 4573: + return "cardifftec-back", true + case 4590: + return "rid", true + case 4591: + return "l3t-at-an", true + case 4593: + return "ipt-anri-anri", true + case 4594: + return "ias-session", true + case 4595: + return "ias-paging", true + case 4596: + return "ias-neighbor", true + case 4597: + return "a21-an-1xbs", true + case 4598: + return "a16-an-an", true + case 4599: + return "a17-an-an", true + case 4600: + return "piranha1", true + case 4601: + return "piranha2", true + case 4602: + return "mtsserver", true + case 4603: + return "menandmice-upg", true + case 4604: + return "irp", true + case 4605: + return "sixchat", true + case 4606: + return "sixid", true + case 4646: + return "dots-signal", true + case 4658: + return "playsta2-app", true + case 4659: + return "playsta2-lob", true + case 4660: + return "smaclmgr", true + case 4661: + return "kar2ouche", true + case 4662: + return "oms", true + case 4663: + return "noteit", true + case 4664: + return "ems", true + case 4665: + return "contclientms", true + case 4666: + return "eportcomm", true + case 4667: + return "mmacomm", true + case 4668: + return "mmaeds", true + case 4669: + return "eportcommdata", true + case 4670: + return "light", true + case 4671: + return "acter", true + case 4672: + return "rfa", true + case 4673: + return "cxws", true + case 4674: + return "appiq-mgmt", true + case 4675: + return "dhct-status", true + case 4676: + return "dhct-alerts", true + case 4677: + return "bcs", true + case 4678: + return "traversal", true + case 4679: + return "mgesupervision", true + case 4680: + return "mgemanagement", true + case 4681: + return "parliant", true + case 4682: + return "finisar", true + case 4683: + return "spike", true + case 4684: + return "rfid-rp1", true + case 4685: + return "autopac", true + case 4686: + return "msp-os", true + case 4687: + return "nst", true + case 4688: + return "mobile-p2p", true + case 4689: + return "altovacentral", true + case 4690: + return "prelude", true + case 4691: + return "mtn", true + case 4692: + return "conspiracy", true + case 4700: + return "netxms-agent", true + case 4701: + return "netxms-mgmt", true + case 4702: + return "netxms-sync", true + case 4703: + return "npqes-test", true + case 4704: + return "assuria-ins", true + case 4711: + return "trinity-dist", true + case 4725: + return "truckstar", true + case 4727: + return "fcis", true + case 4728: + return "capmux", true + case 4730: + return "gearman", true + case 4731: + return "remcap", true + case 4733: + return "resorcs", true + case 4737: + return "ipdr-sp", true + case 4738: + return "solera-lpn", true + case 4739: + return "ipfix", true + case 4740: + return "ipfixs", true + case 4741: + return "lumimgrd", true + case 4742: + return "sicct", true + case 4743: + return "openhpid", true + case 4744: + return "ifsp", true + case 4745: + return "fmp", true + case 4749: + return "profilemac", true + case 4750: + return "ssad", true + case 4751: + return "spocp", true + case 4752: + return "snap", true + case 4753: + return "simon", true + case 4756: + return "RDCenter", true + case 4774: + return "converge", true + case 4784: + return "bfd-multi-ctl", true + case 4786: + return "smart-install", true + case 4787: + return "sia-ctrl-plane", true + case 4788: + return "xmcp", true + case 4792: + return "unified-bus", true + case 4800: + return "iims", true + case 4801: + return "iwec", true + case 4802: + return "ilss", true + case 4803: + return "notateit", true + case 4827: + return "htcp", true + case 4837: + return "varadero-0", true + case 4838: + return "varadero-1", true + case 4839: + return "varadero-2", true + case 4840: + return "opcua-tcp", true + case 4841: + return "quosa", true + case 4842: + return "gw-asv", true + case 4843: + return "opcua-tls", true + case 4844: + return "gw-log", true + case 4845: + return "wcr-remlib", true + case 4846: + return "contamac-icm", true + case 4847: + return "wfc", true + case 4848: + return "appserv-http", true + case 4849: + return "appserv-https", true + case 4850: + return "sun-as-nodeagt", true + case 4851: + return "derby-repli", true + case 4867: + return "unify-debug", true + case 4868: + return "phrelay", true + case 4869: + return "phrelaydbg", true + case 4870: + return "cc-tracking", true + case 4871: + return "wired", true + case 4876: + return "tritium-can", true + case 4877: + return "lmcs", true + case 4879: + return "wsdl-event", true + case 4880: + return "hislip", true + case 4883: + return "wmlserver", true + case 4884: + return "hivestor", true + case 4885: + return "abbs", true + case 4888: + return "xcap-portal", true + case 4889: + return "xcap-control", true + case 4894: + return "lyskom", true + case 4899: + return "radmin-port", true + case 4900: + return "hfcs", true + case 4901: + return "flr-agent", true + case 4902: + return "magiccontrol", true + case 4912: + return "lutap", true + case 4913: + return "lutcp", true + case 4914: + return "bones", true + case 4915: + return "frcs", true + case 4940: + return "eq-office-4940", true + case 4941: + return "eq-office-4941", true + case 4942: + return "eq-office-4942", true + case 4949: + return "munin", true + case 4950: + return "sybasesrvmon", true + case 4951: + return "pwgwims", true + case 4952: + return "sagxtsds", true + case 4953: + return "dbsyncarbiter", true + case 4969: + return "ccss-qmm", true + case 4970: + return "ccss-qsm", true + case 4971: + return "burp", true + case 4984: + return "webyast", true + case 4985: + return "gerhcs", true + case 4986: + return "mrip", true + case 4987: + return "smar-se-port1", true + case 4988: + return "smar-se-port2", true + case 4989: + return "parallel", true + case 4990: + return "busycal", true + case 4991: + return "vrt", true + case 4999: + return "hfcs-manager", true + case 5000: + return "commplex-main", true + case 5001: + return "commplex-link", true + case 5002: + return "rfe", true + case 5003: + return "fmpro-internal", true + case 5004: + return "avt-profile-1", true + case 5005: + return "avt-profile-2", true + case 5006: + return "wsm-server", true + case 5007: + return "wsm-server-ssl", true + case 5008: + return "synapsis-edge", true + case 5009: + return "winfs", true + case 5010: + return "telelpathstart", true + case 5011: + return "telelpathattack", true + case 5012: + return "nsp", true + case 5013: + return "fmpro-v6", true + case 5015: + return "fmwp", true + case 5020: + return "zenginkyo-1", true + case 5021: + return "zenginkyo-2", true + case 5022: + return "mice", true + case 5023: + return "htuilsrv", true + case 5024: + return "scpi-telnet", true + case 5025: + return "scpi-raw", true + case 5026: + return "strexec-d", true + case 5027: + return "strexec-s", true + case 5028: + return "qvr", true + case 5029: + return "infobright", true + case 5032: + return "signacert-agent", true + case 5033: + return "jtnetd-server", true + case 5034: + return "jtnetd-status", true + case 5042: + return "asnaacceler8db", true + case 5043: + return "swxadmin", true + case 5044: + return "lxi-evntsvc", true + case 5045: + return "osp", true + case 5048: + return "texai", true + case 5049: + return "ivocalize", true + case 5050: + return "mmcc", true + case 5051: + return "ita-agent", true + case 5052: + return "ita-manager", true + case 5053: + return "rlm", true + case 5054: + return "rlm-admin", true + case 5055: + return "unot", true + case 5056: + return "intecom-ps1", true + case 5057: + return "intecom-ps2", true + case 5059: + return "sds", true + case 5060: + return "sip", true + case 5061: + return "sips", true + case 5062: + return "na-localise", true + case 5063: + return "csrpc", true + case 5064: + return "ca-1", true + case 5065: + return "ca-2", true + case 5066: + return "stanag-5066", true + case 5067: + return "authentx", true + case 5068: + return "bitforestsrv", true + case 5069: + return "i-net-2000-npr", true + case 5070: + return "vtsas", true + case 5071: + return "powerschool", true + case 5072: + return "ayiya", true + case 5073: + return "tag-pm", true + case 5074: + return "alesquery", true + case 5075: + return "pvaccess", true + case 5080: + return "onscreen", true + case 5081: + return "sdl-ets", true + case 5082: + return "qcp", true + case 5083: + return "qfp", true + case 5084: + return "llrp", true + case 5085: + return "encrypted-llrp", true + case 5086: + return "aprigo-cs", true + case 5087: + return "biotic", true + case 5093: + return "sentinel-lm", true + case 5094: + return "hart-ip", true + case 5099: + return "sentlm-srv2srv", true + case 5100: + return "socalia", true + case 5101: + return "talarian-tcp", true + case 5102: + return "oms-nonsecure", true + case 5103: + return "actifio-c2c", true + case 5106: + return "actifioudsagent", true + case 5107: + return "actifioreplic", true + case 5111: + return "taep-as-svc", true + case 5112: + return "pm-cmdsvr", true + case 5114: + return "ev-services", true + case 5115: + return "autobuild", true + case 5117: + return "gradecam", true + case 5120: + return "barracuda-bbs", true + case 5133: + return "nbt-pc", true + case 5134: + return "ppactivation", true + case 5135: + return "erp-scale", true + case 5137: + return "ctsd", true + case 5145: + return "rmonitor-secure", true + case 5146: + return "social-alarm", true + case 5150: + return "atmp", true + case 5151: + return "esri-sde", true + case 5152: + return "sde-discovery", true + case 5154: + return "bzflag", true + case 5155: + return "asctrl-agent", true + case 5156: + return "rugameonline", true + case 5157: + return "mediat", true + case 5161: + return "snmpssh", true + case 5162: + return "snmpssh-trap", true + case 5163: + return "sbackup", true + case 5164: + return "vpa", true + case 5165: + return "ife-icorp", true + case 5166: + return "winpcs", true + case 5167: + return "scte104", true + case 5168: + return "scte30", true + case 5172: + return "pcoip-mgmt", true + case 5190: + return "aol", true + case 5191: + return "aol-1", true + case 5192: + return "aol-2", true + case 5193: + return "aol-3", true + case 5194: + return "cpscomm", true + case 5195: + return "ampl-lic", true + case 5196: + return "ampl-tableproxy", true + case 5197: + return "tunstall-lwp", true + case 5200: + return "targus-getdata", true + case 5201: + return "targus-getdata1", true + case 5202: + return "targus-getdata2", true + case 5203: + return "targus-getdata3", true + case 5209: + return "nomad", true + case 5215: + return "noteza", true + case 5221: + return "3exmp", true + case 5222: + return "xmpp-client", true + case 5223: + return "hpvirtgrp", true + case 5224: + return "hpvirtctrl", true + case 5225: + return "hp-server", true + case 5226: + return "hp-status", true + case 5227: + return "perfd", true + case 5228: + return "hpvroom", true + case 5229: + return "jaxflow", true + case 5230: + return "jaxflow-data", true + case 5231: + return "crusecontrol", true + case 5232: + return "csedaemon", true + case 5233: + return "enfs", true + case 5234: + return "eenet", true + case 5235: + return "galaxy-network", true + case 5236: + return "padl2sim", true + case 5237: + return "mnet-discovery", true + case 5242: + return "attune", true + case 5243: + return "xycstatus", true + case 5245: + return "downtools", true + case 5248: + return "caacws", true + case 5249: + return "caaclang2", true + case 5250: + return "soagateway", true + case 5251: + return "caevms", true + case 5252: + return "movaz-ssc", true + case 5253: + return "kpdp", true + case 5254: + return "logcabin", true + case 5264: + return "3com-njack-1", true + case 5265: + return "3com-njack-2", true + case 5269: + return "xmpp-server", true + case 5270: + return "cartographerxmp", true + case 5271: + return "cuelink", true + case 5272: + return "pk", true + case 5280: + return "xmpp-bosh", true + case 5281: + return "undo-lm", true + case 5282: + return "transmit-port", true + case 5298: + return "presence", true + case 5299: + return "nlg-data", true + case 5300: + return "hacl-hb", true + case 5301: + return "hacl-gs", true + case 5302: + return "hacl-cfg", true + case 5303: + return "hacl-probe", true + case 5304: + return "hacl-local", true + case 5305: + return "hacl-test", true + case 5306: + return "sun-mc-grp", true + case 5307: + return "sco-aip", true + case 5308: + return "cfengine", true + case 5309: + return "jprinter", true + case 5310: + return "outlaws", true + case 5312: + return "permabit-cs", true + case 5313: + return "rrdp", true + case 5314: + return "opalis-rbt-ipc", true + case 5315: + return "hacl-poll", true + case 5316: + return "hpbladems", true + case 5317: + return "hpdevms", true + case 5318: + return "pkix-cmc", true + case 5320: + return "bsfserver-zn", true + case 5321: + return "bsfsvr-zn-ssl", true + case 5343: + return "kfserver", true + case 5344: + return "xkotodrcp", true + case 5349: + return "stuns", true + case 5352: + return "dns-llq", true + case 5353: + return "mdns", true + case 5354: + return "mdnsresponder", true + case 5355: + return "llmnr", true + case 5356: + return "ms-smlbiz", true + case 5357: + return "wsdapi", true + case 5358: + return "wsdapi-s", true + case 5359: + return "ms-alerter", true + case 5360: + return "ms-sideshow", true + case 5361: + return "ms-s-sideshow", true + case 5362: + return "serverwsd2", true + case 5363: + return "net-projection", true + case 5397: + return "stresstester", true + case 5398: + return "elektron-admin", true + case 5399: + return "securitychase", true + case 5400: + return "excerpt", true + case 5401: + return "excerpts", true + case 5402: + return "mftp", true + case 5403: + return "hpoms-ci-lstn", true + case 5404: + return "hpoms-dps-lstn", true + case 5405: + return "netsupport", true + case 5406: + return "systemics-sox", true + case 5407: + return "foresyte-clear", true + case 5408: + return "foresyte-sec", true + case 5409: + return "salient-dtasrv", true + case 5410: + return "salient-usrmgr", true + case 5411: + return "actnet", true + case 5412: + return "continuus", true + case 5413: + return "wwiotalk", true + case 5414: + return "statusd", true + case 5415: + return "ns-server", true + case 5416: + return "sns-gateway", true + case 5417: + return "sns-agent", true + case 5418: + return "mcntp", true + case 5419: + return "dj-ice", true + case 5420: + return "cylink-c", true + case 5421: + return "netsupport2", true + case 5422: + return "salient-mux", true + case 5423: + return "virtualuser", true + case 5424: + return "beyond-remote", true + case 5425: + return "br-channel", true + case 5426: + return "devbasic", true + case 5427: + return "sco-peer-tta", true + case 5428: + return "telaconsole", true + case 5429: + return "base", true + case 5430: + return "radec-corp", true + case 5431: + return "park-agent", true + case 5432: + return "postgresql", true + case 5433: + return "pyrrho", true + case 5434: + return "sgi-arrayd", true + case 5435: + return "sceanics", true + case 5443: + return "spss", true + case 5445: + return "smbdirect", true + case 5450: + return "tiepie", true + case 5453: + return "surebox", true + case 5454: + return "apc-5454", true + case 5455: + return "apc-5455", true + case 5456: + return "apc-5456", true + case 5461: + return "silkmeter", true + case 5462: + return "ttl-publisher", true + case 5463: + return "ttlpriceproxy", true + case 5464: + return "quailnet", true + case 5465: + return "netops-broker", true + case 5470: + return "apsolab-col", true + case 5471: + return "apsolab-cols", true + case 5472: + return "apsolab-tag", true + case 5473: + return "apsolab-tags", true + case 5475: + return "apsolab-data", true + case 5500: + return "fcp-addr-srvr1", true + case 5501: + return "fcp-addr-srvr2", true + case 5502: + return "fcp-srvr-inst1", true + case 5503: + return "fcp-srvr-inst2", true + case 5504: + return "fcp-cics-gw1", true + case 5505: + return "checkoutdb", true + case 5506: + return "amc", true + case 5507: + return "psl-management", true + case 5540: + return "matter", true + case 5550: + return "cbus", true + case 5553: + return "sgi-eventmond", true + case 5554: + return "sgi-esphttp", true + case 5555: + return "personal-agent", true + case 5556: + return "freeciv", true + case 5557: + return "farenet", true + case 5565: + return "dp-bura", true + case 5566: + return "westec-connect", true + case 5567: + return "dof-dps-mc-sec", true + case 5568: + return "sdt", true + case 5569: + return "rdmnet-ctrl", true + case 5573: + return "sdmmp", true + case 5574: + return "lsi-bobcat", true + case 5575: + return "ora-oap", true + case 5579: + return "fdtracks", true + case 5580: + return "tmosms0", true + case 5581: + return "tmosms1", true + case 5582: + return "fac-restore", true + case 5583: + return "tmo-icon-sync", true + case 5584: + return "bis-web", true + case 5585: + return "bis-sync", true + case 5586: + return "att-mt-sms", true + case 5597: + return "ininmessaging", true + case 5598: + return "mctfeed", true + case 5599: + return "esinstall", true + case 5600: + return "esmmanager", true + case 5601: + return "esmagent", true + case 5602: + return "a1-msc", true + case 5603: + return "a1-bs", true + case 5604: + return "a3-sdunode", true + case 5605: + return "a4-sdunode", true + case 5618: + return "efr", true + case 5627: + return "ninaf", true + case 5628: + return "htrust", true + case 5629: + return "symantec-sfdb", true + case 5630: + return "precise-comm", true + case 5631: + return "pcanywheredata", true + case 5632: + return "pcanywherestat", true + case 5633: + return "beorl", true + case 5634: + return "xprtld", true + case 5635: + return "sfmsso", true + case 5636: + return "sfm-db-server", true + case 5637: + return "cssc", true + case 5638: + return "flcrs", true + case 5639: + return "ics", true + case 5646: + return "vfmobile", true + case 5666: + return "nrpe", true + case 5670: + return "filemq", true + case 5671: + return "amqps", true + case 5672: + return "amqp", true + case 5673: + return "jms", true + case 5674: + return "hyperscsi-port", true + case 5675: + return "v5ua", true + case 5676: + return "raadmin", true + case 5677: + return "questdb2-lnchr", true + case 5678: + return "rrac", true + case 5679: + return "dccm", true + case 5680: + return "auriga-router", true + case 5681: + return "ncxcp", true + case 5683: + return "coap", true + case 5684: + return "coaps", true + case 5688: + return "ggz", true + case 5689: + return "qmvideo", true + case 5693: + return "rbsystem", true + case 5696: + return "kmip", true + case 5700: + return "supportassist", true + case 5705: + return "storageos", true + case 5713: + return "proshareaudio", true + case 5714: + return "prosharevideo", true + case 5715: + return "prosharedata", true + case 5716: + return "prosharerequest", true + case 5717: + return "prosharenotify", true + case 5718: + return "dpm", true + case 5719: + return "dpm-agent", true + case 5720: + return "ms-licensing", true + case 5721: + return "dtpt", true + case 5722: + return "msdfsr", true + case 5723: + return "omhs", true + case 5724: + return "omsdk", true + case 5725: + return "ms-ilm", true + case 5726: + return "ms-ilm-sts", true + case 5727: + return "asgenf", true + case 5728: + return "io-dist-data", true + case 5729: + return "openmail", true + case 5730: + return "unieng", true + case 5741: + return "ida-discover1", true + case 5742: + return "ida-discover2", true + case 5743: + return "watchdoc-pod", true + case 5744: + return "watchdoc", true + case 5745: + return "fcopy-server", true + case 5746: + return "fcopys-server", true + case 5747: + return "tunatic", true + case 5748: + return "tunalyzer", true + case 5750: + return "rscd", true + case 5755: + return "openmailg", true + case 5757: + return "x500ms", true + case 5766: + return "openmailns", true + case 5767: + return "s-openmail", true + case 5768: + return "openmailpxy", true + case 5769: + return "spramsca", true + case 5770: + return "spramsd", true + case 5771: + return "netagent", true + case 5777: + return "starfield-io", true + case 5780: + return "vts-rpc", true + case 5781: + return "3par-evts", true + case 5782: + return "3par-mgmt", true + case 5783: + return "3par-mgmt-ssl", true + case 5785: + return "3par-rcopy", true + case 5793: + return "xtreamx", true + case 5798: + return "enlabel-dpl", true + case 5813: + return "icmpd", true + case 5814: + return "spt-automation", true + case 5820: + return "autopassdaemon", true + case 5841: + return "shiprush-d-ch", true + case 5842: + return "reversion", true + case 5859: + return "wherehoo", true + case 5863: + return "ppsuitemsg", true + case 5868: + return "diameters", true + case 5883: + return "jute", true + case 5900: + return "rfb", true + case 5903: + return "ff-ice", true + case 5904: + return "ag-swim", true + case 5905: + return "asmgcs", true + case 5906: + return "rpas-c2", true + case 5907: + return "dsd", true + case 5908: + return "ipsma", true + case 5909: + return "agma", true + case 5910: + return "ats-atn", true + case 5911: + return "ats-acars", true + case 5912: + return "ais-met", true + case 5913: + return "aoc-acars", true + case 5963: + return "indy", true + case 5968: + return "mppolicy-v5", true + case 5969: + return "mppolicy-mgr", true + case 5984: + return "couchdb", true + case 5985: + return "wsman", true + case 5986: + return "wsmans", true + case 5987: + return "wbem-rmi", true + case 5988: + return "wbem-http", true + case 5989: + return "wbem-https", true + case 5990: + return "wbem-exp-https", true + case 5991: + return "nuxsl", true + case 5992: + return "consul-insight", true + case 5993: + return "cim-rs", true + case 5994: + return "rms-agent", true + case 5999: + return "cvsup", true + case 6064: + return "ndl-ahp-svc", true + case 6065: + return "winpharaoh", true + case 6066: + return "ewctsp", true + case 6068: + return "gsmp-ancp", true + case 6069: + return "trip", true + case 6070: + return "messageasap", true + case 6071: + return "ssdtp", true + case 6072: + return "diagnose-proc", true + case 6073: + return "directplay8", true + case 6074: + return "max", true + case 6075: + return "dpm-acm", true + case 6076: + return "msft-dpm-cert", true + case 6077: + return "iconstructsrv", true + case 6084: + return "reload-config", true + case 6085: + return "konspire2b", true + case 6086: + return "pdtp", true + case 6087: + return "ldss", true + case 6088: + return "doglms", true + case 6099: + return "raxa-mgmt", true + case 6100: + return "synchronet-db", true + case 6101: + return "synchronet-rtc", true + case 6102: + return "synchronet-upd", true + case 6103: + return "rets", true + case 6104: + return "dbdb", true + case 6105: + return "primaserver", true + case 6106: + return "mpsserver", true + case 6107: + return "etc-control", true + case 6108: + return "sercomm-scadmin", true + case 6109: + return "globecast-id", true + case 6110: + return "softcm", true + case 6111: + return "spc", true + case 6112: + return "dtspcd", true + case 6113: + return "dayliteserver", true + case 6114: + return "wrspice", true + case 6115: + return "xic", true + case 6116: + return "xtlserv", true + case 6117: + return "daylitetouch", true + case 6121: + return "spdy", true + case 6122: + return "bex-webadmin", true + case 6123: + return "backup-express", true + case 6124: + return "pnbs", true + case 6130: + return "damewaremobgtwy", true + case 6133: + return "nbt-wol", true + case 6140: + return "pulsonixnls", true + case 6141: + return "meta-corp", true + case 6142: + return "aspentec-lm", true + case 6143: + return "watershed-lm", true + case 6144: + return "statsci1-lm", true + case 6145: + return "statsci2-lm", true + case 6146: + return "lonewolf-lm", true + case 6147: + return "montage-lm", true + case 6148: + return "ricardo-lm", true + case 6149: + return "tal-pod", true + case 6159: + return "efb-aci", true + case 6160: + return "ecmp", true + case 6161: + return "patrol-ism", true + case 6162: + return "patrol-coll", true + case 6163: + return "pscribe", true + case 6200: + return "lm-x", true + case 6209: + return "qmtps", true + case 6222: + return "radmind", true + case 6241: + return "jeol-nsdtp-1", true + case 6242: + return "jeol-nsdtp-2", true + case 6243: + return "jeol-nsdtp-3", true + case 6244: + return "jeol-nsdtp-4", true + case 6251: + return "tl1-raw-ssl", true + case 6252: + return "tl1-ssh", true + case 6253: + return "crip", true + case 6267: + return "gld", true + case 6268: + return "grid", true + case 6269: + return "grid-alt", true + case 6300: + return "bmc-grx", true + case 6301: + return "bmc-ctd-ldap", true + case 6306: + return "ufmp", true + case 6315: + return "scup", true + case 6316: + return "abb-escp", true + case 6317: + return "nav-data-cmd", true + case 6320: + return "repsvc", true + case 6321: + return "emp-server1", true + case 6322: + return "emp-server2", true + case 6324: + return "hrd-ncs", true + case 6325: + return "dt-mgmtsvc", true + case 6326: + return "dt-vra", true + case 6343: + return "sflow", true + case 6344: + return "streletz", true + case 6346: + return "gnutella-svc", true + case 6347: + return "gnutella-rtr", true + case 6350: + return "adap", true + case 6355: + return "pmcs", true + case 6360: + return "metaedit-mu", true + case 6370: + return "metaedit-se", true + case 6379: + return "redis", true + case 6382: + return "metatude-mds", true + case 6389: + return "clariion-evr01", true + case 6390: + return "metaedit-ws", true + case 6417: + return "faxcomservice", true + case 6418: + return "syserverremote", true + case 6419: + return "svdrp", true + case 6420: + return "nim-vdrshell", true + case 6421: + return "nim-wan", true + case 6432: + return "pgbouncer", true + case 6440: + return "heliosd", true + case 6442: + return "tarp", true + case 6443: + return "sun-sr-https", true + case 6444: + return "sge-qmaster", true + case 6445: + return "sge-execd", true + case 6446: + return "mysql-proxy", true + case 6455: + return "skip-cert-recv", true + case 6456: + return "skip-cert-send", true + case 6464: + return "ieee11073-20701", true + case 6471: + return "lvision-lm", true + case 6480: + return "sun-sr-http", true + case 6481: + return "servicetags", true + case 6482: + return "ldoms-mgmt", true + case 6483: + return "SunVTS-RMI", true + case 6484: + return "sun-sr-jms", true + case 6485: + return "sun-sr-iiop", true + case 6486: + return "sun-sr-iiops", true + case 6487: + return "sun-sr-iiop-aut", true + case 6488: + return "sun-sr-jmx", true + case 6489: + return "sun-sr-admin", true + case 6500: + return "boks", true + case 6501: + return "boks-servc", true + case 6502: + return "boks-servm", true + case 6503: + return "boks-clntd", true + case 6505: + return "badm-priv", true + case 6506: + return "badm-pub", true + case 6507: + return "bdir-priv", true + case 6508: + return "bdir-pub", true + case 6509: + return "mgcs-mfp-port", true + case 6510: + return "mcer-port", true + case 6513: + return "netconf-tls", true + case 6514: + return "syslog-tls", true + case 6515: + return "elipse-rec", true + case 6543: + return "lds-distrib", true + case 6544: + return "lds-dump", true + case 6547: + return "apc-6547", true + case 6548: + return "apc-6548", true + case 6549: + return "apc-6549", true + case 6550: + return "fg-sysupdate", true + case 6551: + return "sum", true + case 6556: + return "checkmk-agent", true + case 6558: + return "xdsxdm", true + case 6566: + return "sane-port", true + case 6568: + return "canit-store", true + case 6579: + return "affiliate", true + case 6580: + return "parsec-master", true + case 6581: + return "parsec-peer", true + case 6582: + return "parsec-game", true + case 6583: + return "joaJewelSuite", true + case 6600: + return "mshvlm", true + case 6601: + return "mstmg-sstp", true + case 6602: + return "wsscomfrmwk", true + case 6619: + return "odette-ftps", true + case 6620: + return "kftp-data", true + case 6621: + return "kftp", true + case 6622: + return "mcftp", true + case 6623: + return "ktelnet", true + case 6624: + return "datascaler-db", true + case 6625: + return "datascaler-ctl", true + case 6626: + return "wago-service", true + case 6627: + return "nexgen", true + case 6628: + return "afesc-mc", true + case 6629: + return "nexgen-aux", true + case 6632: + return "mxodbc-connect", true + case 6640: + return "ovsdb", true + case 6653: + return "openflow", true + case 6655: + return "pcs-sf-ui-man", true + case 6656: + return "emgmsg", true + case 6670: + return "vocaltec-gold", true + case 6671: + return "p4p-portal", true + case 6672: + return "vision-server", true + case 6673: + return "vision-elmd", true + case 6678: + return "vfbp", true + case 6679: + return "osaut", true + case 6687: + return "clever-ctrace", true + case 6688: + return "clever-tcpip", true + case 6689: + return "tsa", true + case 6690: + return "cleverdetect", true + case 6697: + return "ircs-u", true + case 6701: + return "kti-icad-srvr", true + case 6702: + return "e-design-net", true + case 6703: + return "e-design-web", true + case 6714: + return "ibprotocol", true + case 6715: + return "fibotrader-com", true + case 6716: + return "princity-agent", true + case 6767: + return "bmc-perf-agent", true + case 6768: + return "bmc-perf-mgrd", true + case 6769: + return "adi-gxp-srvprt", true + case 6770: + return "plysrv-http", true + case 6771: + return "plysrv-https", true + case 6777: + return "ntz-tracker", true + case 6778: + return "ntz-p2p-storage", true + case 6785: + return "dgpf-exchg", true + case 6786: + return "smc-jmx", true + case 6787: + return "smc-admin", true + case 6788: + return "smc-http", true + case 6789: + return "radg", true + case 6790: + return "hnmp", true + case 6791: + return "hnm", true + case 6801: + return "acnet", true + case 6817: + return "pentbox-sim", true + case 6831: + return "ambit-lm", true + case 6841: + return "netmo-default", true + case 6842: + return "netmo-http", true + case 6850: + return "iccrushmore", true + case 6868: + return "acctopus-cc", true + case 6888: + return "muse", true + case 6900: + return "rtimeviewer", true + case 6901: + return "jetstream", true + case 6924: + return "split-ping", true + case 6935: + return "ethoscan", true + case 6936: + return "xsmsvc", true + case 6946: + return "bioserver", true + case 6951: + return "otlp", true + case 6961: + return "jmact3", true + case 6962: + return "jmevt2", true + case 6963: + return "swismgr1", true + case 6964: + return "swismgr2", true + case 6965: + return "swistrap", true + case 6966: + return "swispol", true + case 6969: + return "acmsoda", true + case 6970: + return "conductor", true + case 6997: + return "MobilitySrv", true + case 6998: + return "iatp-highpri", true + case 6999: + return "iatp-normalpri", true + case 7000: + return "afs3-fileserver", true + case 7001: + return "afs3-callback", true + case 7002: + return "afs3-prserver", true + case 7003: + return "afs3-vlserver", true + case 7004: + return "afs3-kaserver", true + case 7005: + return "afs3-volser", true + case 7006: + return "afs3-errors", true + case 7007: + return "afs3-bos", true + case 7008: + return "afs3-update", true + case 7009: + return "afs3-rmtsys", true + case 7010: + return "ups-onlinet", true + case 7011: + return "talon-disc", true + case 7012: + return "talon-engine", true + case 7013: + return "microtalon-dis", true + case 7014: + return "microtalon-com", true + case 7015: + return "talon-webserver", true + case 7016: + return "spg", true + case 7017: + return "grasp", true + case 7018: + return "fisa-svc", true + case 7019: + return "doceri-ctl", true + case 7020: + return "dpserve", true + case 7021: + return "dpserveadmin", true + case 7022: + return "ctdp", true + case 7023: + return "ct2nmcs", true + case 7024: + return "vmsvc", true + case 7025: + return "vmsvc-2", true + case 7026: + return "loreji-panel", true + case 7030: + return "op-probe", true + case 7031: + return "iposplanet", true + case 7070: + return "arcp", true + case 7071: + return "iwg1", true + case 7072: + return "iba-cfg", true + case 7073: + return "martalk", true + case 7080: + return "empowerid", true + case 7099: + return "lazy-ptop", true + case 7100: + return "font-service", true + case 7101: + return "elcn", true + case 7117: + return "rothaga", true + case 7121: + return "virprot-lm", true + case 7123: + return "snif", true + case 7128: + return "scenidm", true + case 7129: + return "scenccs", true + case 7161: + return "cabsm-comm", true + case 7162: + return "caistoragemgr", true + case 7163: + return "cacsambroker", true + case 7164: + return "fsr", true + case 7165: + return "doc-server", true + case 7166: + return "aruba-server", true + case 7167: + return "casrmagent", true + case 7168: + return "cnckadserver", true + case 7169: + return "ccag-pib", true + case 7170: + return "nsrp", true + case 7171: + return "drm-production", true + case 7172: + return "metalbend", true + case 7173: + return "zsecure", true + case 7174: + return "clutild", true + case 7200: + return "fodms", true + case 7201: + return "dlip", true + case 7202: + return "pon-ictp", true + case 7215: + return "PS-Server", true + case 7216: + return "PS-Capture-Pro", true + case 7227: + return "ramp", true + case 7228: + return "citrixupp", true + case 7229: + return "citrixuppg", true + case 7234: + return "asa-gateways", true + case 7236: + return "display", true + case 7237: + return "pads", true + case 7244: + return "frc-hicp", true + case 7262: + return "cnap", true + case 7272: + return "watchme-7272", true + case 7273: + return "oma-rlp", true + case 7274: + return "oma-rlp-s", true + case 7275: + return "oma-ulp", true + case 7276: + return "oma-ilp", true + case 7277: + return "oma-ilp-s", true + case 7278: + return "oma-dcdocbs", true + case 7279: + return "ctxlic", true + case 7280: + return "itactionserver1", true + case 7281: + return "itactionserver2", true + case 7282: + return "mzca-action", true + case 7283: + return "genstat", true + case 7365: + return "lcm-server", true + case 7391: + return "mindfilesys", true + case 7392: + return "mrssrendezvous", true + case 7393: + return "nfoldman", true + case 7394: + return "fse", true + case 7395: + return "winqedit", true + case 7397: + return "hexarc", true + case 7400: + return "rtps-discovery", true + case 7401: + return "rtps-dd-ut", true + case 7402: + return "rtps-dd-mt", true + case 7410: + return "ionixnetmon", true + case 7411: + return "daqstream", true + case 7421: + return "mtportmon", true + case 7426: + return "pmdmgr", true + case 7427: + return "oveadmgr", true + case 7428: + return "ovladmgr", true + case 7429: + return "opi-sock", true + case 7430: + return "xmpv7", true + case 7431: + return "pmd", true + case 7437: + return "faximum", true + case 7443: + return "oracleas-https", true + case 7471: + return "sttunnel", true + case 7473: + return "rise", true + case 7474: + return "neo4j", true + case 7478: + return "openit", true + case 7491: + return "telops-lmd", true + case 7500: + return "silhouette", true + case 7501: + return "ovbus", true + case 7508: + return "adcp", true + case 7509: + return "acplt", true + case 7510: + return "ovhpas", true + case 7511: + return "pafec-lm", true + case 7542: + return "saratoga", true + case 7543: + return "atul", true + case 7544: + return "nta-ds", true + case 7545: + return "nta-us", true + case 7546: + return "cfs", true + case 7547: + return "cwmp", true + case 7548: + return "tidp", true + case 7549: + return "nls-tl", true + case 7551: + return "controlone-con", true + case 7560: + return "sncp", true + case 7563: + return "cfw", true + case 7566: + return "vsi-omega", true + case 7569: + return "dell-eql-asm", true + case 7570: + return "aries-kfinder", true + case 7574: + return "coherence", true + case 7588: + return "sun-lm", true + case 7606: + return "mipi-debug", true + case 7624: + return "indi", true + case 7626: + return "simco", true + case 7627: + return "soap-http", true + case 7628: + return "zen-pawn", true + case 7629: + return "xdas", true + case 7630: + return "hawk", true + case 7631: + return "tesla-sys-msg", true + case 7633: + return "pmdfmgt", true + case 7648: + return "cuseeme", true + case 7663: + return "rome", true + case 7672: + return "imqstomp", true + case 7673: + return "imqstomps", true + case 7674: + return "imqtunnels", true + case 7675: + return "imqtunnel", true + case 7676: + return "imqbrokerd", true + case 7677: + return "sun-user-https", true + case 7680: + return "ms-do", true + case 7683: + return "dmt", true + case 7687: + return "bolt", true + case 7689: + return "collaber", true + case 7690: + return "sovd", true + case 7697: + return "klio", true + case 7700: + return "em7-secom", true + case 7707: + return "sync-em7", true + case 7708: + return "scinet", true + case 7720: + return "medimageportal", true + case 7724: + return "nsdeepfreezectl", true + case 7725: + return "nitrogen", true + case 7726: + return "freezexservice", true + case 7727: + return "trident-data", true + case 7728: + return "osvr", true + case 7734: + return "smip", true + case 7738: + return "aiagent", true + case 7741: + return "scriptview", true + case 7742: + return "msss", true + case 7743: + return "sstp-1", true + case 7744: + return "raqmon-pdu", true + case 7747: + return "prgp", true + case 7775: + return "inetfs", true + case 7777: + return "cbt", true + case 7778: + return "interwise", true + case 7779: + return "vstat", true + case 7781: + return "accu-lmgr", true + case 7786: + return "minivend", true + case 7787: + return "popup-reminders", true + case 7789: + return "office-tools", true + case 7794: + return "q3ade", true + case 7797: + return "pnet-conn", true + case 7798: + return "pnet-enc", true + case 7799: + return "altbsdp", true + case 7800: + return "asr", true + case 7801: + return "ssp-client", true + case 7810: + return "rbt-wanopt", true + case 7845: + return "apc-7845", true + case 7846: + return "apc-7846", true + case 7847: + return "csoauth", true + case 7869: + return "mobileanalyzer", true + case 7870: + return "rbt-smc", true + case 7871: + return "mdm", true + case 7878: + return "owms", true + case 7880: + return "pss", true + case 7887: + return "ubroker", true + case 7900: + return "mevent", true + case 7901: + return "tnos-sp", true + case 7902: + return "tnos-dp", true + case 7903: + return "tnos-dps", true + case 7913: + return "qo-secure", true + case 7932: + return "t2-drm", true + case 7933: + return "t2-brm", true + case 7962: + return "generalsync", true + case 7967: + return "supercell", true + case 7979: + return "micromuse-ncps", true + case 7980: + return "quest-vista", true + case 7981: + return "sossd-collect", true + case 7982: + return "sossd-agent", true + case 7997: + return "pushns", true + case 7999: + return "irdmi2", true + case 8000: + return "irdmi", true + case 8001: + return "vcom-tunnel", true + case 8002: + return "teradataordbms", true + case 8003: + return "mcreport", true + case 8004: + return "p2pevolvenet", true + case 8005: + return "mxi", true + case 8006: + return "wpl-analytics", true + case 8007: + return "warppipe", true + case 8008: + return "http-alt", true + case 8009: + return "nvme-disc", true + case 8015: + return "cfg-cloud", true + case 8016: + return "ads-s", true + case 8019: + return "qbdb", true + case 8020: + return "intu-ec-svcdisc", true + case 8021: + return "intu-ec-client", true + case 8022: + return "oa-system", true + case 8023: + return "arca-api", true + case 8025: + return "ca-audit-da", true + case 8026: + return "ca-audit-ds", true + case 8027: + return "papachi-p2p-srv", true + case 8032: + return "pro-ed", true + case 8033: + return "mindprint", true + case 8034: + return "vantronix-mgmt", true + case 8040: + return "ampify", true + case 8041: + return "enguity-xccetp", true + case 8042: + return "fs-agent", true + case 8043: + return "fs-server", true + case 8044: + return "fs-mgmt", true + case 8051: + return "rocrail", true + case 8052: + return "senomix01", true + case 8053: + return "senomix02", true + case 8054: + return "senomix03", true + case 8055: + return "senomix04", true + case 8056: + return "senomix05", true + case 8057: + return "senomix06", true + case 8058: + return "senomix07", true + case 8059: + return "senomix08", true + case 8066: + return "toad-bi-appsrvr", true + case 8067: + return "infi-async", true + case 8070: + return "ucs-isc", true + case 8074: + return "gadugadu", true + case 8077: + return "mles", true + case 8080: + return "http-alt", true + case 8081: + return "sunproxyadmin", true + case 8082: + return "us-cli", true + case 8083: + return "us-srv", true + case 8084: + return "websnp", true + case 8086: + return "d-s-n", true + case 8087: + return "simplifymedia", true + case 8088: + return "radan-http", true + case 8090: + return "opsmessaging", true + case 8091: + return "jamlink", true + case 8097: + return "sac", true + case 8100: + return "xprint-server", true + case 8101: + return "ldoms-migr", true + case 8102: + return "kz-migr", true + case 8115: + return "mtl8000-matrix", true + case 8116: + return "cp-cluster", true + case 8117: + return "purityrpc", true + case 8118: + return "privoxy", true + case 8121: + return "apollo-data", true + case 8122: + return "apollo-admin", true + case 8128: + return "paycash-online", true + case 8129: + return "paycash-wbp", true + case 8130: + return "indigo-vrmi", true + case 8131: + return "indigo-vbcp", true + case 8132: + return "dbabble", true + case 8140: + return "puppet", true + case 8148: + return "isdd", true + case 8153: + return "quantastor", true + case 8160: + return "patrol", true + case 8161: + return "patrol-snmp", true + case 8162: + return "lpar2rrd", true + case 8181: + return "intermapper", true + case 8182: + return "vmware-fdm", true + case 8183: + return "proremote", true + case 8184: + return "itach", true + case 8190: + return "gcp-rphy", true + case 8191: + return "limnerpressure", true + case 8192: + return "spytechphone", true + case 8194: + return "blp1", true + case 8195: + return "blp2", true + case 8199: + return "vvr-data", true + case 8200: + return "trivnet1", true + case 8201: + return "trivnet2", true + case 8204: + return "lm-perfworks", true + case 8205: + return "lm-instmgr", true + case 8206: + return "lm-dta", true + case 8207: + return "lm-sserver", true + case 8208: + return "lm-webwatcher", true + case 8230: + return "rexecj", true + case 8243: + return "synapse-nhttps", true + case 8270: + return "robot-remote", true + case 8276: + return "ms-mcc", true + case 8280: + return "synapse-nhttp", true + case 8282: + return "libelle", true + case 8292: + return "blp3", true + case 8293: + return "hiperscan-id", true + case 8294: + return "blp4", true + case 8300: + return "tmi", true + case 8301: + return "amberon", true + case 8313: + return "hub-open-net", true + case 8320: + return "tnp-discover", true + case 8321: + return "tnp", true + case 8322: + return "garmin-marine", true + case 8351: + return "server-find", true + case 8376: + return "cruise-enum", true + case 8377: + return "cruise-swroute", true + case 8378: + return "cruise-config", true + case 8379: + return "cruise-diags", true + case 8380: + return "cruise-update", true + case 8383: + return "m2mservices", true + case 8400: + return "cvd", true + case 8401: + return "sabarsd", true + case 8402: + return "abarsd", true + case 8403: + return "admind", true + case 8404: + return "svcloud", true + case 8405: + return "svbackup", true + case 8415: + return "dlpx-sp", true + case 8416: + return "espeech", true + case 8417: + return "espeech-rtp", true + case 8423: + return "aritts", true + case 8432: + return "pgbackrest", true + case 8442: + return "cybro-a-bus", true + case 8443: + return "pcsync-https", true + case 8444: + return "pcsync-http", true + case 8445: + return "copy", true + case 8450: + return "npmp", true + case 8457: + return "nexentamv", true + case 8470: + return "cisco-avp", true + case 8471: + return "pim-port", true + case 8472: + return "otv", true + case 8473: + return "vp2p", true + case 8474: + return "noteshare", true + case 8500: + return "fmtp", true + case 8501: + return "cmtp-mgt", true + case 8502: + return "ftnmtp", true + case 8554: + return "rtsp-alt", true + case 8555: + return "d-fence", true + case 8567: + return "dof-tunnel", true + case 8600: + return "asterix", true + case 8610: + return "canon-mfnp", true + case 8611: + return "canon-bjnp1", true + case 8612: + return "canon-bjnp2", true + case 8613: + return "canon-bjnp3", true + case 8614: + return "canon-bjnp4", true + case 8615: + return "imink", true + case 8665: + return "monetra", true + case 8666: + return "monetra-admin", true + case 8675: + return "msi-cps-rm", true + case 8686: + return "sun-as-jmxrmi", true + case 8688: + return "openremote-ctrl", true + case 8699: + return "vnyx", true + case 8710: + return "semi-grpc", true + case 8711: + return "nvc", true + case 8733: + return "ibus", true + case 8750: + return "dey-keyneg", true + case 8763: + return "mc-appserver", true + case 8764: + return "openqueue", true + case 8765: + return "ultraseek-http", true + case 8766: + return "amcs", true + case 8767: + return "core-of-source", true + case 8768: + return "sandpolis", true + case 8769: + return "oktaauthenticat", true + case 8770: + return "dpap", true + case 8778: + return "uec", true + case 8786: + return "msgclnt", true + case 8787: + return "msgsrvr", true + case 8793: + return "acd-pm", true + case 8800: + return "sunwebadmin", true + case 8804: + return "truecm", true + case 8873: + return "dxspider", true + case 8880: + return "cddbp-alt", true + case 8881: + return "galaxy4d", true + case 8883: + return "secure-mqtt", true + case 8888: + return "ddi-tcp-1", true + case 8889: + return "ddi-tcp-2", true + case 8890: + return "ddi-tcp-3", true + case 8891: + return "ddi-tcp-4", true + case 8892: + return "ddi-tcp-5", true + case 8893: + return "ddi-tcp-6", true + case 8894: + return "ddi-tcp-7", true + case 8899: + return "ospf-lite", true + case 8900: + return "jmb-cds1", true + case 8901: + return "jmb-cds2", true + case 8908: + return "dpp", true + case 8910: + return "manyone-http", true + case 8911: + return "manyone-xml", true + case 8912: + return "wcbackup", true + case 8913: + return "dragonfly", true + case 8937: + return "twds", true + case 8953: + return "ub-dns-control", true + case 8954: + return "cumulus-admin", true + case 8980: + return "nod-provider", true + case 8989: + return "sunwebadmins", true + case 8990: + return "http-wmap", true + case 8991: + return "https-wmap", true + case 8997: + return "oracle-ms-ens", true + case 8998: + return "canto-roboflow", true + case 8999: + return "bctp", true + case 9000: + return "cslistener", true + case 9001: + return "etlservicemgr", true + case 9002: + return "dynamid", true + case 9005: + return "golem", true + case 9008: + return "ogs-server", true + case 9009: + return "pichat", true + case 9010: + return "sdr", true + case 9020: + return "tambora", true + case 9021: + return "panagolin-ident", true + case 9022: + return "paragent", true + case 9023: + return "swa-1", true + case 9024: + return "swa-2", true + case 9025: + return "swa-3", true + case 9026: + return "swa-4", true + case 9050: + return "versiera", true + case 9051: + return "fio-cmgmt", true + case 9060: + return "CardWeb-IO", true + case 9080: + return "glrpc", true + case 9083: + return "emc-pp-mgmtsvc", true + case 9084: + return "aurora", true + case 9085: + return "ibm-rsyscon", true + case 9086: + return "net2display", true + case 9087: + return "classic", true + case 9088: + return "sqlexec", true + case 9089: + return "sqlexec-ssl", true + case 9090: + return "websm", true + case 9091: + return "xmltec-xmlmail", true + case 9092: + return "XmlIpcRegSvc", true + case 9093: + return "copycat", true + case 9100: + return "hp-pdl-datastr", true + case 9101: + return "bacula-dir", true + case 9102: + return "bacula-fd", true + case 9103: + return "bacula-sd", true + case 9104: + return "peerwire", true + case 9105: + return "xadmin", true + case 9106: + return "astergate", true + case 9107: + return "astergatefax", true + case 9111: + return "hexxorecore", true + case 9119: + return "mxit", true + case 9122: + return "grcmp", true + case 9123: + return "grcp", true + case 9131: + return "dddp", true + case 9160: + return "apani1", true + case 9161: + return "apani2", true + case 9162: + return "apani3", true + case 9163: + return "apani4", true + case 9164: + return "apani5", true + case 9191: + return "sun-as-jpda", true + case 9200: + return "wap-wsp", true + case 9201: + return "wap-wsp-wtp", true + case 9202: + return "wap-wsp-s", true + case 9203: + return "wap-wsp-wtp-s", true + case 9204: + return "wap-vcard", true + case 9205: + return "wap-vcal", true + case 9206: + return "wap-vcard-s", true + case 9207: + return "wap-vcal-s", true + case 9208: + return "rjcdb-vcards", true + case 9209: + return "almobile-system", true + case 9210: + return "oma-mlp", true + case 9211: + return "oma-mlp-s", true + case 9212: + return "serverviewdbms", true + case 9213: + return "serverstart", true + case 9214: + return "ipdcesgbs", true + case 9215: + return "insis", true + case 9216: + return "acme", true + case 9217: + return "fsc-port", true + case 9222: + return "teamcoherence", true + case 9255: + return "mon", true + case 9278: + return "pegasus", true + case 9279: + return "pegasus-ctl", true + case 9280: + return "pgps", true + case 9281: + return "swtp-port1", true + case 9282: + return "swtp-port2", true + case 9283: + return "callwaveiam", true + case 9284: + return "visd", true + case 9285: + return "n2h2server", true + case 9287: + return "cumulus", true + case 9292: + return "armtechdaemon", true + case 9293: + return "storview", true + case 9294: + return "armcenterhttp", true + case 9295: + return "armcenterhttps", true + case 9300: + return "vrace", true + case 9306: + return "sphinxql", true + case 9310: + return "sapms", true + case 9312: + return "sphinxapi", true + case 9318: + return "secure-ts", true + case 9321: + return "guibase", true + case 9339: + return "gnmi-gnoi", true + case 9340: + return "gribi", true + case 9343: + return "mpidcmgr", true + case 9344: + return "mphlpdmc", true + case 9345: + return "rancher", true + case 9346: + return "ctechlicensing", true + case 9374: + return "fjdmimgr", true + case 9380: + return "boxp", true + case 9387: + return "d2dconfig", true + case 9388: + return "d2ddatatrans", true + case 9389: + return "adws", true + case 9390: + return "otp", true + case 9396: + return "fjinvmgr", true + case 9397: + return "mpidcagt", true + case 9400: + return "sec-t4net-srv", true + case 9401: + return "sec-t4net-clt", true + case 9402: + return "sec-pc2fax-srv", true + case 9418: + return "git", true + case 9443: + return "tungsten-https", true + case 9444: + return "wso2esb-console", true + case 9445: + return "mindarray-ca", true + case 9450: + return "sntlkeyssrvr", true + case 9500: + return "ismserver", true + case 9535: + return "mngsuite", true + case 9536: + return "laes-bf", true + case 9555: + return "trispen-sra", true + case 9559: + return "p4runtime", true + case 9592: + return "ldgateway", true + case 9593: + return "cba8", true + case 9594: + return "msgsys", true + case 9595: + return "pds", true + case 9596: + return "mercury-disc", true + case 9597: + return "pd-admin", true + case 9598: + return "vscp", true + case 9599: + return "robix", true + case 9600: + return "micromuse-ncpw", true + case 9612: + return "streamcomm-ds", true + case 9614: + return "iadt-tls", true + case 9616: + return "erunbook-agent", true + case 9617: + return "erunbook-server", true + case 9618: + return "condor", true + case 9628: + return "odbcpathway", true + case 9629: + return "uniport", true + case 9630: + return "peoctlr", true + case 9631: + return "peocoll", true + case 9640: + return "pqsflows", true + case 9666: + return "zoomcp", true + case 9667: + return "xmms2", true + case 9668: + return "tec5-sdctp", true + case 9694: + return "client-wakeup", true + case 9695: + return "ccnx", true + case 9700: + return "board-roar", true + case 9747: + return "l5nas-parchan", true + case 9750: + return "board-voip", true + case 9753: + return "rasadv", true + case 9762: + return "tungsten-http", true + case 9800: + return "davsrc", true + case 9801: + return "sstp-2", true + case 9802: + return "davsrcs", true + case 9875: + return "sapv1", true + case 9876: + return "sd", true + case 9877: + return "x510", true + case 9888: + return "cyborg-systems", true + case 9889: + return "gt-proxy", true + case 9898: + return "monkeycom", true + case 9900: + return "iua", true + case 9909: + return "domaintime", true + case 9911: + return "sype-transport", true + case 9925: + return "xybrid-cloud", true + case 9950: + return "apc-9950", true + case 9951: + return "apc-9951", true + case 9952: + return "apc-9952", true + case 9953: + return "acis", true + case 9954: + return "hinp", true + case 9955: + return "alljoyn-stm", true + case 9966: + return "odnsp", true + case 9978: + return "xybrid-rt", true + case 9979: + return "visweather", true + case 9981: + return "pumpkindb", true + case 9987: + return "dsm-scm-target", true + case 9988: + return "nsesrvr", true + case 9990: + return "osm-appsrvr", true + case 9991: + return "osm-oev", true + case 9992: + return "palace-1", true + case 9993: + return "palace-2", true + case 9994: + return "palace-3", true + case 9995: + return "palace-4", true + case 9996: + return "palace-5", true + case 9997: + return "palace-6", true + case 9998: + return "distinct32", true + case 9999: + return "distinct", true + case 10000: + return "ndmp", true + case 10001: + return "scp-config", true + case 10002: + return "documentum", true + case 10003: + return "documentum-s", true + case 10004: + return "emcrmirccd", true + case 10005: + return "emcrmird", true + case 10006: + return "netapp-sync", true + case 10007: + return "mvs-capacity", true + case 10008: + return "octopus", true + case 10009: + return "swdtp-sv", true + case 10010: + return "rxapi", true + case 10020: + return "abb-hw", true + case 10050: + return "zabbix-agent", true + case 10051: + return "zabbix-trapper", true + case 10055: + return "qptlmd", true + case 10080: + return "amanda", true + case 10081: + return "famdc", true + case 10100: + return "itap-ddtp", true + case 10101: + return "ezmeeting-2", true + case 10102: + return "ezproxy-2", true + case 10103: + return "ezrelay", true + case 10104: + return "swdtp", true + case 10107: + return "bctp-server", true + case 10110: + return "nmea-0183", true + case 10113: + return "netiq-endpoint", true + case 10114: + return "netiq-qcheck", true + case 10115: + return "netiq-endpt", true + case 10116: + return "netiq-voipa", true + case 10117: + return "iqrm", true + case 10125: + return "cimple", true + case 10128: + return "bmc-perf-sd", true + case 10129: + return "bmc-gms", true + case 10160: + return "qb-db-server", true + case 10161: + return "snmptls", true + case 10162: + return "snmptls-trap", true + case 10200: + return "trisoap", true + case 10201: + return "rsms", true + case 10252: + return "apollo-relay", true + case 10260: + return "axis-wimp-port", true + case 10261: + return "tile-ml", true + case 10288: + return "blocks", true + case 10321: + return "cosir", true + case 10443: + return "cirrossp", true + case 10540: + return "MOS-lower", true + case 10541: + return "MOS-upper", true + case 10542: + return "MOS-aux", true + case 10543: + return "MOS-soap", true + case 10544: + return "MOS-soap-opt", true + case 10548: + return "serverdocs", true + case 10631: + return "printopia", true + case 10800: + return "gap", true + case 10805: + return "lpdg", true + case 10809: + return "nbd", true + case 10860: + return "helix", true + case 10880: + return "bveapi", true + case 10933: + return "octopustentacle", true + case 10990: + return "rmiaux", true + case 11000: + return "irisa", true + case 11001: + return "metasys", true + case 11095: + return "weave", true + case 11103: + return "origo-sync", true + case 11104: + return "netapp-icmgmt", true + case 11105: + return "netapp-icdata", true + case 11106: + return "sgi-lk", true + case 11109: + return "sgi-dmfmgr", true + case 11110: + return "sgi-soap", true + case 11111: + return "vce", true + case 11112: + return "dicom", true + case 11161: + return "suncacao-snmp", true + case 11162: + return "suncacao-jmxmp", true + case 11163: + return "suncacao-rmi", true + case 11164: + return "suncacao-csa", true + case 11165: + return "suncacao-websvc", true + case 11172: + return "oemcacao-jmxmp", true + case 11173: + return "t5-straton", true + case 11174: + return "oemcacao-rmi", true + case 11175: + return "oemcacao-websvc", true + case 11201: + return "smsqp", true + case 11202: + return "dcsl-backup", true + case 11208: + return "wifree", true + case 11211: + return "memcache", true + case 11235: + return "xcompute", true + case 11319: + return "imip", true + case 11320: + return "imip-channels", true + case 11321: + return "arena-server", true + case 11367: + return "atm-uhas", true + case 11371: + return "hkp", true + case 11489: + return "asgcypresstcps", true + case 11600: + return "tempest-port", true + case 11623: + return "emc-xsw-dconfig", true + case 11720: + return "h323callsigalt", true + case 11723: + return "emc-xsw-dcache", true + case 11751: + return "intrepid-ssl", true + case 11796: + return "lanschool", true + case 11876: + return "xoraya", true + case 11967: + return "sysinfo-sp", true + case 11971: + return "tibsd", true + case 12000: + return "entextxid", true + case 12001: + return "entextnetwk", true + case 12002: + return "entexthigh", true + case 12003: + return "entextmed", true + case 12004: + return "entextlow", true + case 12005: + return "dbisamserver1", true + case 12006: + return "dbisamserver2", true + case 12007: + return "accuracer", true + case 12008: + return "accuracer-dbms", true + case 12010: + return "edbsrvr", true + case 12012: + return "vipera", true + case 12013: + return "vipera-ssl", true + case 12109: + return "rets-ssl", true + case 12121: + return "nupaper-ss", true + case 12168: + return "cawas", true + case 12172: + return "hivep", true + case 12300: + return "linogridengine", true + case 12302: + return "rads", true + case 12321: + return "warehouse-sss", true + case 12322: + return "warehouse", true + case 12345: + return "italk", true + case 12546: + return "carb-repl-ctrl", true + case 12753: + return "tsaf", true + case 12865: + return "netperf", true + case 13160: + return "i-zipqd", true + case 13216: + return "bcslogc", true + case 13217: + return "rs-pias", true + case 13218: + return "emc-vcas-tcp", true + case 13223: + return "powwow-client", true + case 13224: + return "powwow-server", true + case 13400: + return "doip-data", true + case 13720: + return "bprd", true + case 13721: + return "bpdbm", true + case 13722: + return "bpjava-msvc", true + case 13724: + return "vnetd", true + case 13782: + return "bpcd", true + case 13783: + return "vopied", true + case 13785: + return "nbdb", true + case 13786: + return "nomdb", true + case 13818: + return "dsmcc-config", true + case 13819: + return "dsmcc-session", true + case 13820: + return "dsmcc-passthru", true + case 13821: + return "dsmcc-download", true + case 13822: + return "dsmcc-ccp", true + case 13823: + return "bmdss", true + case 13832: + return "a-trust-rpc", true + case 13894: + return "ucontrol", true + case 13929: + return "dta-systems", true + case 13930: + return "medevolve", true + case 14000: + return "scotty-ft", true + case 14001: + return "sua", true + case 14033: + return "sage-best-com1", true + case 14034: + return "sage-best-com2", true + case 14141: + return "vcs-app", true + case 14142: + return "icpp", true + case 14143: + return "icpps", true + case 14145: + return "gcm-app", true + case 14149: + return "vrts-tdd", true + case 14150: + return "vcscmd", true + case 14154: + return "vad", true + case 14250: + return "cps", true + case 14414: + return "ca-web-update", true + case 14500: + return "xpra", true + case 14936: + return "hde-lcesrvr-1", true + case 14937: + return "hde-lcesrvr-2", true + case 15000: + return "hydap", true + case 15002: + return "onep-tls", true + case 15345: + return "xpilot", true + case 15363: + return "3link", true + case 15555: + return "cisco-snat", true + case 15660: + return "bex-xr", true + case 15740: + return "ptp", true + case 15999: + return "programmar", true + case 16000: + return "fmsas", true + case 16001: + return "fmsascon", true + case 16002: + return "gsms", true + case 16020: + return "jwpc", true + case 16021: + return "jwpc-bin", true + case 16161: + return "sun-sea-port", true + case 16162: + return "solaris-audit", true + case 16309: + return "etb4j", true + case 16310: + return "pduncs", true + case 16311: + return "pdefmns", true + case 16360: + return "netserialext1", true + case 16361: + return "netserialext2", true + case 16367: + return "netserialext3", true + case 16368: + return "netserialext4", true + case 16384: + return "connected", true + case 16385: + return "rdgs", true + case 16619: + return "xoms", true + case 16665: + return "axon-tunnel", true + case 16789: + return "cadsisvr", true + case 16900: + return "newbay-snc-mc", true + case 16950: + return "sgcip", true + case 16991: + return "intel-rci-mp", true + case 16992: + return "amt-soap-http", true + case 16993: + return "amt-soap-https", true + case 16994: + return "amt-redir-tcp", true + case 16995: + return "amt-redir-tls", true + case 17007: + return "isode-dua", true + case 17010: + return "ncpu", true + case 17184: + return "vestasdlp", true + case 17185: + return "soundsvirtual", true + case 17219: + return "chipper", true + case 17220: + return "avtp", true + case 17221: + return "avdecc", true + case 17223: + return "isa100-gci", true + case 17225: + return "trdp-md", true + case 17234: + return "integrius-stp", true + case 17235: + return "ssh-mgmt", true + case 17500: + return "db-lsp", true + case 17555: + return "ailith", true + case 17729: + return "ea", true + case 17754: + return "zep", true + case 17755: + return "zigbee-ip", true + case 17756: + return "zigbee-ips", true + case 17777: + return "sw-orion", true + case 18000: + return "biimenu", true + case 18104: + return "radpdf", true + case 18136: + return "racf", true + case 18181: + return "opsec-cvp", true + case 18182: + return "opsec-ufp", true + case 18183: + return "opsec-sam", true + case 18184: + return "opsec-lea", true + case 18185: + return "opsec-omi", true + case 18186: + return "ohsc", true + case 18187: + return "opsec-ela", true + case 18241: + return "checkpoint-rtm", true + case 18242: + return "iclid", true + case 18243: + return "clusterxl", true + case 18262: + return "gv-pf", true + case 18463: + return "ac-cluster", true + case 18634: + return "rds-ib", true + case 18635: + return "rds-ip", true + case 18668: + return "vdmmesh", true + case 18769: + return "ique", true + case 18881: + return "infotos", true + case 18888: + return "apc-necmp", true + case 19000: + return "igrid", true + case 19007: + return "scintilla", true + case 19020: + return "j-link", true + case 19191: + return "opsec-uaa", true + case 19194: + return "ua-secureagent", true + case 19220: + return "cora", true + case 19283: + return "keysrvr", true + case 19315: + return "keyshadow", true + case 19398: + return "mtrgtrans", true + case 19410: + return "hp-sco", true + case 19411: + return "hp-sca", true + case 19412: + return "hp-sessmon", true + case 19539: + return "fxuptp", true + case 19540: + return "sxuptp", true + case 19541: + return "jcp", true + case 19790: + return "faircom-db", true + case 19998: + return "iec-104-sec", true + case 19999: + return "dnp-sec", true + case 20000: + return "dnp", true + case 20001: + return "microsan", true + case 20002: + return "commtact-http", true + case 20003: + return "commtact-https", true + case 20005: + return "openwebnet", true + case 20013: + return "ss-idi", true + case 20014: + return "opendeploy", true + case 20034: + return "nburn-id", true + case 20046: + return "tmophl7mts", true + case 20048: + return "mountd", true + case 20049: + return "nfsrdma", true + case 20057: + return "avesterra", true + case 20167: + return "tolfab", true + case 20202: + return "ipdtp-port", true + case 20222: + return "ipulse-ics", true + case 20480: + return "emwavemsg", true + case 20670: + return "track", true + case 20810: + return "crtech-nlm", true + case 20999: + return "athand-mmp", true + case 21000: + return "irtrans", true + case 21010: + return "notezilla-lan", true + case 21212: + return "trinket-agent", true + case 21213: + return "cohesity-agent", true + case 21221: + return "aigairserver", true + case 21553: + return "rdm-tfs", true + case 21554: + return "dfserver", true + case 21590: + return "vofr-gateway", true + case 21800: + return "tvpm", true + case 21801: + return "sal", true + case 21845: + return "webphone", true + case 21846: + return "netspeak-is", true + case 21847: + return "netspeak-cs", true + case 21848: + return "netspeak-acd", true + case 21849: + return "netspeak-cps", true + case 22000: + return "snapenetio", true + case 22001: + return "optocontrol", true + case 22002: + return "optohost002", true + case 22003: + return "optohost003", true + case 22004: + return "optohost004", true + case 22005: + return "optohost004", true + case 22125: + return "dcap", true + case 22128: + return "gsidcap", true + case 22222: + return "easyengine", true + case 22273: + return "wnn6", true + case 22305: + return "cis", true + case 22333: + return "showcockpit-net", true + case 22335: + return "shrewd-control", true + case 22343: + return "cis-secure", true + case 22347: + return "wibukey", true + case 22350: + return "codemeter", true + case 22351: + return "codemeter-cmwan", true + case 22537: + return "caldsoft-backup", true + case 22555: + return "vocaltec-wconf", true + case 22763: + return "talikaserver", true + case 22800: + return "aws-brf", true + case 22951: + return "brf-gw", true + case 23000: + return "inovaport1", true + case 23001: + return "inovaport2", true + case 23002: + return "inovaport3", true + case 23003: + return "inovaport4", true + case 23004: + return "inovaport5", true + case 23005: + return "inovaport6", true + case 23053: + return "gntp", true + case 23294: + return "5afe-dir", true + case 23333: + return "elxmgmt", true + case 23400: + return "novar-dbase", true + case 23401: + return "novar-alarm", true + case 23402: + return "novar-global", true + case 23456: + return "aequus", true + case 23457: + return "aequus-alt", true + case 23546: + return "areaguard-neo", true + case 24000: + return "med-ltp", true + case 24001: + return "med-fsp-rx", true + case 24002: + return "med-fsp-tx", true + case 24003: + return "med-supp", true + case 24004: + return "med-ovw", true + case 24005: + return "med-ci", true + case 24006: + return "med-net-svc", true + case 24242: + return "filesphere", true + case 24249: + return "vista-4gl", true + case 24321: + return "ild", true + case 24323: + return "vrmg-ip", true + case 24386: + return "intel-rci", true + case 24465: + return "tonidods", true + case 24554: + return "binkp", true + case 24577: + return "bilobit", true + case 24666: + return "sdtvwcam", true + case 24676: + return "canditv", true + case 24677: + return "flashfiler", true + case 24678: + return "proactivate", true + case 24680: + return "tcc-http", true + case 24754: + return "cslg", true + case 24922: + return "find", true + case 25000: + return "icl-twobase1", true + case 25001: + return "icl-twobase2", true + case 25002: + return "icl-twobase3", true + case 25003: + return "icl-twobase4", true + case 25004: + return "icl-twobase5", true + case 25005: + return "icl-twobase6", true + case 25006: + return "icl-twobase7", true + case 25007: + return "icl-twobase8", true + case 25008: + return "icl-twobase9", true + case 25009: + return "icl-twobase10", true + case 25576: + return "sauterdongle", true + case 25604: + return "idtp", true + case 25793: + return "vocaltec-hos", true + case 25900: + return "tasp-net", true + case 25901: + return "niobserver", true + case 25902: + return "nilinkanalyst", true + case 25903: + return "niprobe", true + case 26000: + return "quake", true + case 26133: + return "scscp", true + case 26208: + return "wnn6-ds", true + case 26257: + return "cockroach", true + case 26260: + return "ezproxy", true + case 26261: + return "ezmeeting", true + case 26262: + return "k3software-svr", true + case 26263: + return "k3software-cli", true + case 26486: + return "exoline-tcp", true + case 26487: + return "exoconfig", true + case 26489: + return "exonet", true + case 27010: + return "flex-lmadmin", true + case 27017: + return "mongodb", true + case 27345: + return "imagepump", true + case 27442: + return "jesmsjc", true + case 27504: + return "kopek-httphead", true + case 27782: + return "ars-vista", true + case 27876: + return "astrolink", true + case 27999: + return "tw-auth-key", true + case 28000: + return "nxlmd", true + case 28001: + return "pqsp", true + case 28010: + return "gruber-cashreg", true + case 28080: + return "thor-engine", true + case 28200: + return "voxelstorm", true + case 28240: + return "siemensgsm", true + case 28589: + return "bosswave", true + case 29000: + return "saltd-licensing", true + case 29167: + return "otmp", true + case 29999: + return "bingbang", true + case 30000: + return "ndmps", true + case 30001: + return "pago-services1", true + case 30002: + return "pago-services2", true + case 30003: + return "amicon-fpsu-ra", true + case 30100: + return "rwp", true + case 30260: + return "kingdomsonline", true + case 30400: + return "gs-realtime", true + case 30999: + return "ovobs", true + case 31016: + return "ka-sddp", true + case 31020: + return "autotrac-acp", true + case 31337: + return "eldim", true + case 31400: + return "pace-licensed", true + case 31416: + return "xqosd", true + case 31457: + return "tetrinet", true + case 31620: + return "lm-mon", true + case 31685: + return "dsx-monitor", true + case 31765: + return "gamesmith-port", true + case 31948: + return "iceedcp-tx", true + case 31949: + return "iceedcp-rx", true + case 32034: + return "iracinghelper", true + case 32249: + return "t1distproc60", true + case 32400: + return "plex", true + case 32483: + return "apm-link", true + case 32635: + return "sec-ntb-clnt", true + case 32636: + return "DMExpress", true + case 32767: + return "filenet-powsrm", true + case 32768: + return "filenet-tms", true + case 32769: + return "filenet-rpc", true + case 32770: + return "filenet-nch", true + case 32771: + return "filenet-rmi", true + case 32772: + return "filenet-pa", true + case 32773: + return "filenet-cm", true + case 32774: + return "filenet-re", true + case 32775: + return "filenet-pch", true + case 32776: + return "filenet-peior", true + case 32777: + return "filenet-obrok", true + case 32801: + return "mlsn", true + case 32811: + return "retp", true + case 32896: + return "idmgratm", true + case 33000: + return "wg-endpt-comms", true + case 33060: + return "mysqlx", true + case 33123: + return "aurora-balaena", true + case 33331: + return "diamondport", true + case 33333: + return "dgi-serv", true + case 33334: + return "speedtrace", true + case 33434: + return "traceroute", true + case 33656: + return "snip-slave", true + case 33890: + return "digilent-adept", true + case 34249: + return "turbonote-2", true + case 34378: + return "p-net-local", true + case 34379: + return "p-net-remote", true + case 34567: + return "dhanalakshmi", true + case 34962: + return "profinet-rt", true + case 34963: + return "profinet-rtm", true + case 34964: + return "profinet-cm", true + case 34980: + return "ethercat", true + case 35000: + return "heathview", true + case 35001: + return "rt-viewer", true + case 35002: + return "rt-sound", true + case 35003: + return "rt-devicemapper", true + case 35004: + return "rt-classmanager", true + case 35005: + return "rt-labtracker", true + case 35006: + return "rt-helper", true + case 35100: + return "axio-disc", true + case 35354: + return "kitim", true + case 35355: + return "altova-lm", true + case 35356: + return "guttersnex", true + case 35357: + return "openstack-id", true + case 36001: + return "allpeers", true + case 36524: + return "febooti-aw", true + case 36602: + return "observium-agent", true + case 36700: + return "mapx", true + case 36865: + return "kastenxpipe", true + case 37475: + return "neckar", true + case 37483: + return "gdrive-sync", true + case 37601: + return "eftp", true + case 37654: + return "unisys-eportal", true + case 38000: + return "ivs-database", true + case 38001: + return "ivs-insertion", true + case 38002: + return "cresco-control", true + case 38201: + return "galaxy7-data", true + case 38202: + return "fairview", true + case 38203: + return "agpolicy", true + case 38638: + return "psqlmws", true + case 38800: + return "sruth", true + case 38865: + return "secrmmsafecopya", true + case 39063: + return "vroa", true + case 39681: + return "turbonote-1", true + case 40000: + return "safetynetp", true + case 40404: + return "sptx", true + case 40841: + return "cscp", true + case 40842: + return "csccredir", true + case 40843: + return "csccfirewall", true + case 41111: + return "fs-qos", true + case 41121: + return "tentacle", true + case 41230: + return "z-wave-s", true + case 41794: + return "crestron-cip", true + case 41795: + return "crestron-ctp", true + case 41796: + return "crestron-cips", true + case 41797: + return "crestron-ctps", true + case 42508: + return "candp", true + case 42509: + return "candrp", true + case 42510: + return "caerpc", true + case 42999: + return "curiosity", true + case 43000: + return "recvr-rc", true + case 43188: + return "reachout", true + case 43189: + return "ndm-agent-port", true + case 43190: + return "ip-provision", true + case 43191: + return "noit-transport", true + case 43210: + return "shaperai", true + case 43439: + return "eq3-update", true + case 43440: + return "ew-mgmt", true + case 43441: + return "ciscocsdb", true + case 44123: + return "z-wave-tunnel", true + case 44321: + return "pmcd", true + case 44322: + return "pmcdproxy", true + case 44323: + return "pmwebapi", true + case 44444: + return "cognex-dataman", true + case 44445: + return "acronis-backup", true + case 44553: + return "rbr-debug", true + case 44818: + return "EtherNet-IP-2", true + case 44900: + return "m3da", true + case 45000: + return "asmp", true + case 45001: + return "asmps", true + case 45002: + return "rs-status", true + case 45045: + return "synctest", true + case 45054: + return "invision-ag", true + case 45514: + return "cloudcheck", true + case 45678: + return "eba", true + case 45824: + return "dai-shell", true + case 45825: + return "qdb2service", true + case 45966: + return "ssr-servermgr", true + case 46336: + return "inedo", true + case 46998: + return "spremotetablet", true + case 46999: + return "mediabox", true + case 47000: + return "mbus", true + case 47001: + return "winrm", true + case 47557: + return "dbbrowse", true + case 47624: + return "directplaysrvr", true + case 47806: + return "ap", true + case 47808: + return "bacnet", true + case 48000: + return "nimcontroller", true + case 48001: + return "nimspooler", true + case 48002: + return "nimhub", true + case 48003: + return "nimgtw", true + case 48004: + return "nimbusdb", true + case 48005: + return "nimbusdbctrl", true + case 48048: + return "juka", true + case 48049: + return "3gpp-cbsp", true + case 48050: + return "weandsf", true + case 48128: + return "isnetserv", true + case 48129: + return "blp5", true + case 48556: + return "com-bardac-dw", true + case 48619: + return "iqobject", true + case 48653: + return "robotraconteur", true + case 49000: + return "matahari", true + case 49001: + return "nusrp", true + case 49150: + return "inspider", true + + } + + return "", false +} + +// UDPPortNames contains the port names for all UDP ports. +func UDPPortNames(port UDPPort) (string, bool) { + switch port { + case 1: + return "tcpmux", true + case 2: + return "compressnet", true + case 3: + return "compressnet", true + case 5: + return "rje", true + case 7: + return "echo", true + case 9: + return "discard", true + case 11: + return "systat", true + case 13: + return "daytime", true + case 17: + return "qotd", true + case 18: + return "msp", true + case 19: + return "chargen", true + case 20: + return "ftp-data", true + case 21: + return "ftp", true + case 22: + return "ssh", true + case 23: + return "telnet", true + case 25: + return "smtp", true + case 27: + return "nsw-fe", true + case 29: + return "msg-icp", true + case 31: + return "msg-auth", true + case 33: + return "dsp", true + case 37: + return "time", true + case 38: + return "rap", true + case 39: + return "rlp", true + case 41: + return "graphics", true + case 42: + return "name", true + case 43: + return "nicname", true + case 44: + return "mpm-flags", true + case 45: + return "mpm", true + case 46: + return "mpm-snd", true + case 48: + return "auditd", true + case 49: + return "tacacs", true + case 50: + return "re-mail-ck", true + case 52: + return "xns-time", true + case 53: + return "domain", true + case 54: + return "xns-ch", true + case 55: + return "isi-gl", true + case 56: + return "xns-auth", true + case 58: + return "xns-mail", true + case 62: + return "acas", true + case 63: + return "whoispp", true + case 64: + return "covia", true + case 65: + return "tacacs-ds", true + case 66: + return "sql-net", true + case 67: + return "bootps", true + case 68: + return "bootpc", true + case 69: + return "tftp", true + case 70: + return "gopher", true + case 71: + return "netrjs-1", true + case 72: + return "netrjs-2", true + case 73: + return "netrjs-3", true + case 74: + return "netrjs-4", true + case 76: + return "deos", true + case 78: + return "vettcp", true + case 79: + return "finger", true + case 80: + return "http", true + case 82: + return "xfer", true + case 83: + return "mit-ml-dev", true + case 84: + return "ctf", true + case 85: + return "mit-ml-dev", true + case 86: + return "mfcobol", true + case 88: + return "kerberos", true + case 89: + return "su-mit-tg", true + case 90: + return "dnsix", true + case 91: + return "mit-dov", true + case 92: + return "npp", true + case 93: + return "dcp", true + case 94: + return "objcall", true + case 95: + return "supdup", true + case 96: + return "dixie", true + case 97: + return "swift-rvf", true + case 98: + return "tacnews", true + case 99: + return "metagram", true + case 101: + return "hostname", true + case 102: + return "iso-tsap", true + case 103: + return "gppitnp", true + case 104: + return "acr-nema", true + case 105: + return "cso", true + case 106: + return "3com-tsmux", true + case 107: + return "rtelnet", true + case 108: + return "snagas", true + case 109: + return "pop2", true + case 110: + return "pop3", true + case 111: + return "sunrpc", true + case 112: + return "mcidas", true + case 113: + return "auth", true + case 115: + return "sftp", true + case 116: + return "ansanotify", true + case 117: + return "uucp-path", true + case 118: + return "sqlserv", true + case 119: + return "nntp", true + case 120: + return "cfdptkt", true + case 121: + return "erpc", true + case 122: + return "smakynet", true + case 123: + return "ntp", true + case 124: + return "ansatrader", true + case 125: + return "locus-map", true + case 126: + return "nxedit", true + case 127: + return "locus-con", true + case 128: + return "gss-xlicen", true + case 129: + return "pwdgen", true + case 130: + return "cisco-fna", true + case 131: + return "cisco-tna", true + case 132: + return "cisco-sys", true + case 133: + return "statsrv", true + case 134: + return "ingres-net", true + case 135: + return "epmap", true + case 136: + return "profile", true + case 137: + return "netbios-ns", true + case 138: + return "netbios-dgm", true + case 139: + return "netbios-ssn", true + case 140: + return "emfis-data", true + case 141: + return "emfis-cntl", true + case 142: + return "bl-idm", true + case 144: + return "uma", true + case 145: + return "uaac", true + case 146: + return "iso-tp0", true + case 147: + return "iso-ip", true + case 148: + return "jargon", true + case 149: + return "aed-512", true + case 150: + return "sql-net", true + case 151: + return "hems", true + case 152: + return "bftp", true + case 153: + return "sgmp", true + case 154: + return "netsc-prod", true + case 155: + return "netsc-dev", true + case 156: + return "sqlsrv", true + case 157: + return "knet-cmp", true + case 158: + return "pcmail-srv", true + case 159: + return "nss-routing", true + case 160: + return "sgmp-traps", true + case 161: + return "snmp", true + case 162: + return "snmptrap", true + case 163: + return "cmip-man", true + case 164: + return "cmip-agent", true + case 165: + return "xns-courier", true + case 166: + return "s-net", true + case 167: + return "namp", true + case 168: + return "rsvd", true + case 169: + return "send", true + case 170: + return "print-srv", true + case 171: + return "multiplex", true + case 172: + return "cl-1", true + case 173: + return "xyplex-mux", true + case 174: + return "mailq", true + case 175: + return "vmnet", true + case 176: + return "genrad-mux", true + case 177: + return "xdmcp", true + case 178: + return "nextstep", true + case 179: + return "bgp", true + case 180: + return "ris", true + case 181: + return "unify", true + case 182: + return "audit", true + case 183: + return "ocbinder", true + case 184: + return "ocserver", true + case 185: + return "remote-kis", true + case 186: + return "kis", true + case 187: + return "aci", true + case 188: + return "mumps", true + case 189: + return "qft", true + case 190: + return "gacp", true + case 191: + return "prospero", true + case 192: + return "osu-nms", true + case 193: + return "srmp", true + case 194: + return "irc", true + case 195: + return "dn6-nlm-aud", true + case 196: + return "dn6-smm-red", true + case 197: + return "dls", true + case 198: + return "dls-mon", true + case 199: + return "smux", true + case 200: + return "src", true + case 201: + return "at-rtmp", true + case 202: + return "at-nbp", true + case 203: + return "at-3", true + case 204: + return "at-echo", true + case 205: + return "at-5", true + case 206: + return "at-zis", true + case 207: + return "at-7", true + case 208: + return "at-8", true + case 209: + return "qmtp", true + case 210: + return "z39-50", true + case 211: + return "914c-g", true + case 212: + return "anet", true + case 213: + return "ipx", true + case 214: + return "vmpwscs", true + case 215: + return "softpc", true + case 216: + return "CAIlic", true + case 217: + return "dbase", true + case 218: + return "mpp", true + case 219: + return "uarps", true + case 220: + return "imap3", true + case 221: + return "fln-spx", true + case 222: + return "rsh-spx", true + case 223: + return "cdc", true + case 224: + return "masqdialer", true + case 242: + return "direct", true + case 243: + return "sur-meas", true + case 244: + return "inbusiness", true + case 245: + return "link", true + case 246: + return "dsp3270", true + case 247: + return "subntbcst-tftp", true + case 248: + return "bhfhs", true + case 256: + return "rap", true + case 257: + return "set", true + case 259: + return "esro-gen", true + case 260: + return "openport", true + case 261: + return "nsiiops", true + case 262: + return "arcisdms", true + case 263: + return "hdap", true + case 264: + return "bgmp", true + case 265: + return "x-bone-ctl", true + case 266: + return "sst", true + case 267: + return "td-service", true + case 268: + return "td-replica", true + case 269: + return "manet", true + case 270: + return "gist", true + case 280: + return "http-mgmt", true + case 281: + return "personal-link", true + case 282: + return "cableport-ax", true + case 283: + return "rescap", true + case 284: + return "corerjd", true + case 286: + return "fxp", true + case 287: + return "k-block", true + case 308: + return "novastorbakcup", true + case 309: + return "entrusttime", true + case 310: + return "bhmds", true + case 311: + return "asip-webadmin", true + case 312: + return "vslmp", true + case 313: + return "magenta-logic", true + case 314: + return "opalis-robot", true + case 315: + return "dpsi", true + case 316: + return "decauth", true + case 317: + return "zannet", true + case 318: + return "pkix-timestamp", true + case 319: + return "ptp-event", true + case 320: + return "ptp-general", true + case 321: + return "pip", true + case 322: + return "rtsps", true + case 333: + return "texar", true + case 344: + return "pdap", true + case 345: + return "pawserv", true + case 346: + return "zserv", true + case 347: + return "fatserv", true + case 348: + return "csi-sgwp", true + case 349: + return "mftp", true + case 350: + return "matip-type-a", true + case 351: + return "matip-type-b", true + case 352: + return "dtag-ste-sb", true + case 353: + return "ndsauth", true + case 354: + return "bh611", true + case 355: + return "datex-asn", true + case 356: + return "cloanto-net-1", true + case 357: + return "bhevent", true + case 358: + return "shrinkwrap", true + case 359: + return "nsrmp", true + case 360: + return "scoi2odialog", true + case 361: + return "semantix", true + case 362: + return "srssend", true + case 363: + return "rsvp-tunnel", true + case 364: + return "aurora-cmgr", true + case 365: + return "dtk", true + case 366: + return "odmr", true + case 367: + return "mortgageware", true + case 368: + return "qbikgdp", true + case 369: + return "rpc2portmap", true + case 370: + return "codaauth2", true + case 371: + return "clearcase", true + case 372: + return "ulistproc", true + case 373: + return "legent-1", true + case 374: + return "legent-2", true + case 375: + return "hassle", true + case 376: + return "nip", true + case 377: + return "tnETOS", true + case 378: + return "dsETOS", true + case 379: + return "is99c", true + case 380: + return "is99s", true + case 381: + return "hp-collector", true + case 382: + return "hp-managed-node", true + case 383: + return "hp-alarm-mgr", true + case 384: + return "arns", true + case 385: + return "ibm-app", true + case 386: + return "asa", true + case 387: + return "aurp", true + case 388: + return "unidata-ldm", true + case 389: + return "ldap", true + case 390: + return "uis", true + case 391: + return "synotics-relay", true + case 392: + return "synotics-broker", true + case 393: + return "meta5", true + case 394: + return "embl-ndt", true + case 395: + return "netcp", true + case 396: + return "netware-ip", true + case 397: + return "mptn", true + case 398: + return "kryptolan", true + case 399: + return "iso-tsap-c2", true + case 400: + return "osb-sd", true + case 401: + return "ups", true + case 402: + return "genie", true + case 403: + return "decap", true + case 404: + return "nced", true + case 405: + return "ncld", true + case 406: + return "imsp", true + case 407: + return "timbuktu", true + case 408: + return "prm-sm", true + case 409: + return "prm-nm", true + case 410: + return "decladebug", true + case 411: + return "rmt", true + case 412: + return "synoptics-trap", true + case 413: + return "smsp", true + case 414: + return "infoseek", true + case 415: + return "bnet", true + case 416: + return "silverplatter", true + case 417: + return "onmux", true + case 418: + return "hyper-g", true + case 419: + return "ariel1", true + case 420: + return "smpte", true + case 421: + return "ariel2", true + case 422: + return "ariel3", true + case 423: + return "opc-job-start", true + case 424: + return "opc-job-track", true + case 425: + return "icad-el", true + case 426: + return "smartsdp", true + case 427: + return "svrloc", true + case 428: + return "ocs-cmu", true + case 429: + return "ocs-amu", true + case 430: + return "utmpsd", true + case 431: + return "utmpcd", true + case 432: + return "iasd", true + case 433: + return "nnsp", true + case 434: + return "mobileip-agent", true + case 435: + return "mobilip-mn", true + case 436: + return "dna-cml", true + case 437: + return "comscm", true + case 438: + return "dsfgw", true + case 439: + return "dasp", true + case 440: + return "sgcp", true + case 441: + return "decvms-sysmgt", true + case 442: + return "cvc-hostd", true + case 443: + return "https", true + case 444: + return "snpp", true + case 445: + return "microsoft-ds", true + case 446: + return "ddm-rdb", true + case 447: + return "ddm-dfm", true + case 448: + return "ddm-ssl", true + case 449: + return "as-servermap", true + case 450: + return "tserver", true + case 451: + return "sfs-smp-net", true + case 452: + return "sfs-config", true + case 453: + return "creativeserver", true + case 454: + return "contentserver", true + case 455: + return "creativepartnr", true + case 456: + return "macon-udp", true + case 457: + return "scohelp", true + case 458: + return "appleqtc", true + case 459: + return "ampr-rcmd", true + case 460: + return "skronk", true + case 461: + return "datasurfsrv", true + case 462: + return "datasurfsrvsec", true + case 463: + return "alpes", true + case 464: + return "kpasswd", true + case 465: + return "igmpv3lite", true + case 466: + return "digital-vrc", true + case 467: + return "mylex-mapd", true + case 468: + return "photuris", true + case 469: + return "rcp", true + case 470: + return "scx-proxy", true + case 471: + return "mondex", true + case 472: + return "ljk-login", true + case 473: + return "hybrid-pop", true + case 474: + return "tn-tl-w2", true + case 475: + return "tcpnethaspsrv", true + case 476: + return "tn-tl-fd1", true + case 477: + return "ss7ns", true + case 478: + return "spsc", true + case 479: + return "iafserver", true + case 480: + return "iafdbase", true + case 481: + return "ph", true + case 482: + return "bgs-nsi", true + case 483: + return "ulpnet", true + case 484: + return "integra-sme", true + case 485: + return "powerburst", true + case 486: + return "avian", true + case 487: + return "saft", true + case 488: + return "gss-http", true + case 489: + return "nest-protocol", true + case 490: + return "micom-pfs", true + case 491: + return "go-login", true + case 492: + return "ticf-1", true + case 493: + return "ticf-2", true + case 494: + return "pov-ray", true + case 495: + return "intecourier", true + case 496: + return "pim-rp-disc", true + case 497: + return "retrospect", true + case 498: + return "siam", true + case 499: + return "iso-ill", true + case 500: + return "isakmp", true + case 501: + return "stmf", true + case 502: + return "mbap", true + case 503: + return "intrinsa", true + case 504: + return "citadel", true + case 505: + return "mailbox-lm", true + case 506: + return "ohimsrv", true + case 507: + return "crs", true + case 508: + return "xvttp", true + case 509: + return "snare", true + case 510: + return "fcp", true + case 511: + return "passgo", true + case 512: + return "comsat", true + case 513: + return "who", true + case 514: + return "syslog", true + case 515: + return "printer", true + case 516: + return "videotex", true + case 517: + return "talk", true + case 518: + return "ntalk", true + case 519: + return "utime", true + case 520: + return "router", true + case 521: + return "ripng", true + case 522: + return "ulp", true + case 523: + return "ibm-db2", true + case 524: + return "ncp", true + case 525: + return "timed", true + case 526: + return "tempo", true + case 527: + return "stx", true + case 528: + return "custix", true + case 529: + return "irc-serv", true + case 530: + return "courier", true + case 531: + return "conference", true + case 532: + return "netnews", true + case 533: + return "netwall", true + case 534: + return "windream", true + case 535: + return "iiop", true + case 536: + return "opalis-rdv", true + case 537: + return "nmsp", true + case 538: + return "gdomap", true + case 539: + return "apertus-ldp", true + case 540: + return "uucp", true + case 541: + return "uucp-rlogin", true + case 542: + return "commerce", true + case 543: + return "klogin", true + case 544: + return "kshell", true + case 545: + return "appleqtcsrvr", true + case 546: + return "dhcpv6-client", true + case 547: + return "dhcpv6-server", true + case 548: + return "afpovertcp", true + case 549: + return "idfp", true + case 550: + return "new-rwho", true + case 551: + return "cybercash", true + case 552: + return "devshr-nts", true + case 553: + return "pirp", true + case 554: + return "rtsp", true + case 555: + return "dsf", true + case 556: + return "remotefs", true + case 557: + return "openvms-sysipc", true + case 558: + return "sdnskmp", true + case 559: + return "teedtap", true + case 560: + return "rmonitor", true + case 561: + return "monitor", true + case 562: + return "chshell", true + case 563: + return "nntps", true + case 564: + return "9pfs", true + case 565: + return "whoami", true + case 566: + return "streettalk", true + case 567: + return "banyan-rpc", true + case 568: + return "ms-shuttle", true + case 569: + return "ms-rome", true + case 570: + return "meter", true + case 571: + return "meter", true + case 572: + return "sonar", true + case 573: + return "banyan-vip", true + case 574: + return "ftp-agent", true + case 575: + return "vemmi", true + case 576: + return "ipcd", true + case 577: + return "vnas", true + case 578: + return "ipdd", true + case 579: + return "decbsrv", true + case 580: + return "sntp-heartbeat", true + case 581: + return "bdp", true + case 582: + return "scc-security", true + case 583: + return "philips-vc", true + case 584: + return "keyserver", true + case 586: + return "password-chg", true + case 587: + return "submission", true + case 588: + return "cal", true + case 589: + return "eyelink", true + case 590: + return "tns-cml", true + case 591: + return "http-alt", true + case 592: + return "eudora-set", true + case 593: + return "http-rpc-epmap", true + case 594: + return "tpip", true + case 595: + return "cab-protocol", true + case 596: + return "smsd", true + case 597: + return "ptcnameservice", true + case 598: + return "sco-websrvrmg3", true + case 599: + return "acp", true + case 600: + return "ipcserver", true + case 601: + return "syslog-conn", true + case 602: + return "xmlrpc-beep", true + case 603: + return "idxp", true + case 604: + return "tunnel", true + case 605: + return "soap-beep", true + case 606: + return "urm", true + case 607: + return "nqs", true + case 608: + return "sift-uft", true + case 609: + return "npmp-trap", true + case 610: + return "npmp-local", true + case 611: + return "npmp-gui", true + case 612: + return "hmmp-ind", true + case 613: + return "hmmp-op", true + case 614: + return "sshell", true + case 615: + return "sco-inetmgr", true + case 616: + return "sco-sysmgr", true + case 617: + return "sco-dtmgr", true + case 618: + return "dei-icda", true + case 619: + return "compaq-evm", true + case 620: + return "sco-websrvrmgr", true + case 621: + return "escp-ip", true + case 622: + return "collaborator", true + case 623: + return "asf-rmcp", true + case 624: + return "cryptoadmin", true + case 625: + return "dec-dlm", true + case 626: + return "asia", true + case 627: + return "passgo-tivoli", true + case 628: + return "qmqp", true + case 629: + return "3com-amp3", true + case 630: + return "rda", true + case 631: + return "ipp", true + case 632: + return "bmpp", true + case 633: + return "servstat", true + case 634: + return "ginad", true + case 635: + return "rlzdbase", true + case 636: + return "ldaps", true + case 637: + return "lanserver", true + case 638: + return "mcns-sec", true + case 639: + return "msdp", true + case 640: + return "entrust-sps", true + case 641: + return "repcmd", true + case 642: + return "esro-emsdp", true + case 643: + return "sanity", true + case 644: + return "dwr", true + case 645: + return "pssc", true + case 646: + return "ldp", true + case 647: + return "dhcp-failover", true + case 648: + return "rrp", true + case 649: + return "cadview-3d", true + case 650: + return "obex", true + case 651: + return "ieee-mms", true + case 652: + return "hello-port", true + case 653: + return "repscmd", true + case 654: + return "aodv", true + case 655: + return "tinc", true + case 656: + return "spmp", true + case 657: + return "rmc", true + case 658: + return "tenfold", true + case 660: + return "mac-srvr-admin", true + case 661: + return "hap", true + case 662: + return "pftp", true + case 663: + return "purenoise", true + case 664: + return "asf-secure-rmcp", true + case 665: + return "sun-dr", true + case 666: + return "mdqs", true + case 667: + return "disclose", true + case 668: + return "mecomm", true + case 669: + return "meregister", true + case 670: + return "vacdsm-sws", true + case 671: + return "vacdsm-app", true + case 672: + return "vpps-qua", true + case 673: + return "cimplex", true + case 674: + return "acap", true + case 675: + return "dctp", true + case 676: + return "vpps-via", true + case 677: + return "vpp", true + case 678: + return "ggf-ncp", true + case 679: + return "mrm", true + case 680: + return "entrust-aaas", true + case 681: + return "entrust-aams", true + case 682: + return "xfr", true + case 683: + return "corba-iiop", true + case 684: + return "corba-iiop-ssl", true + case 685: + return "mdc-portmapper", true + case 686: + return "hcp-wismar", true + case 687: + return "asipregistry", true + case 688: + return "realm-rusd", true + case 689: + return "nmap", true + case 690: + return "vatp", true + case 691: + return "msexch-routing", true + case 692: + return "hyperwave-isp", true + case 693: + return "connendp", true + case 694: + return "ha-cluster", true + case 695: + return "ieee-mms-ssl", true + case 696: + return "rushd", true + case 697: + return "uuidgen", true + case 698: + return "olsr", true + case 699: + return "accessnetwork", true + case 700: + return "epp", true + case 701: + return "lmp", true + case 702: + return "iris-beep", true + case 704: + return "elcsd", true + case 705: + return "agentx", true + case 706: + return "silc", true + case 707: + return "borland-dsj", true + case 709: + return "entrust-kmsh", true + case 710: + return "entrust-ash", true + case 711: + return "cisco-tdp", true + case 712: + return "tbrpf", true + case 713: + return "iris-xpc", true + case 714: + return "iris-xpcs", true + case 715: + return "iris-lwz", true + case 716: + return "pana", true + case 729: + return "netviewdm1", true + case 730: + return "netviewdm2", true + case 731: + return "netviewdm3", true + case 741: + return "netgw", true + case 742: + return "netrcs", true + case 744: + return "flexlm", true + case 747: + return "fujitsu-dev", true + case 748: + return "ris-cm", true + case 749: + return "kerberos-adm", true + case 750: + return "loadav", true + case 751: + return "pump", true + case 752: + return "qrh", true + case 753: + return "rrh", true + case 754: + return "tell", true + case 758: + return "nlogin", true + case 759: + return "con", true + case 760: + return "ns", true + case 761: + return "rxe", true + case 762: + return "quotad", true + case 763: + return "cycleserv", true + case 764: + return "omserv", true + case 765: + return "webster", true + case 767: + return "phonebook", true + case 769: + return "vid", true + case 770: + return "cadlock", true + case 771: + return "rtip", true + case 772: + return "cycleserv2", true + case 773: + return "notify", true + case 774: + return "acmaint-dbd", true + case 775: + return "acmaint-transd", true + case 776: + return "wpages", true + case 777: + return "multiling-http", true + case 780: + return "wpgs", true + case 800: + return "mdbs-daemon", true + case 801: + return "device", true + case 802: + return "mbap-s", true + case 810: + return "fcp-udp", true + case 828: + return "itm-mcell-s", true + case 829: + return "pkix-3-ca-ra", true + case 830: + return "netconf-ssh", true + case 831: + return "netconf-beep", true + case 832: + return "netconfsoaphttp", true + case 833: + return "netconfsoapbeep", true + case 847: + return "dhcp-failover2", true + case 848: + return "gdoi", true + case 853: + return "domain-s", true + case 854: + return "dlep", true + case 860: + return "iscsi", true + case 861: + return "owamp-test", true + case 862: + return "twamp-test", true + case 873: + return "rsync", true + case 886: + return "iclcnet-locate", true + case 887: + return "iclcnet-svinfo", true + case 888: + return "accessbuilder", true + case 900: + return "omginitialrefs", true + case 901: + return "smpnameres", true + case 902: + return "ideafarm-door", true + case 903: + return "ideafarm-panic", true + case 910: + return "kink", true + case 911: + return "xact-backup", true + case 912: + return "apex-mesh", true + case 913: + return "apex-edge", true + case 914: + return "rift-lies", true + case 915: + return "rift-ties", true + case 989: + return "ftps-data", true + case 990: + return "ftps", true + case 991: + return "nas", true + case 992: + return "telnets", true + case 995: + return "pop3s", true + case 996: + return "vsinet", true + case 997: + return "maitrd", true + case 998: + return "puparp", true + case 999: + return "applix", true + case 1000: + return "cadlock2", true + case 1010: + return "surf", true + case 1021: + return "exp1", true + case 1022: + return "exp2", true + case 1025: + return "blackjack", true + case 1026: + return "cap", true + case 1027: + return "6a44", true + case 1029: + return "solid-mux", true + case 1033: + return "netinfo-local", true + case 1034: + return "activesync", true + case 1035: + return "mxxrlogin", true + case 1036: + return "nsstp", true + case 1037: + return "ams", true + case 1038: + return "mtqp", true + case 1039: + return "sbl", true + case 1040: + return "netarx", true + case 1041: + return "danf-ak2", true + case 1042: + return "afrog", true + case 1043: + return "boinc-client", true + case 1044: + return "dcutility", true + case 1045: + return "fpitp", true + case 1046: + return "wfremotertm", true + case 1047: + return "neod1", true + case 1048: + return "neod2", true + case 1049: + return "td-postman", true + case 1050: + return "cma", true + case 1051: + return "optima-vnet", true + case 1052: + return "ddt", true + case 1053: + return "remote-as", true + case 1054: + return "brvread", true + case 1055: + return "ansyslmd", true + case 1056: + return "vfo", true + case 1057: + return "startron", true + case 1058: + return "nim", true + case 1059: + return "nimreg", true + case 1060: + return "polestar", true + case 1061: + return "kiosk", true + case 1062: + return "veracity", true + case 1063: + return "kyoceranetdev", true + case 1064: + return "jstel", true + case 1065: + return "syscomlan", true + case 1066: + return "fpo-fns", true + case 1067: + return "instl-boots", true + case 1068: + return "instl-bootc", true + case 1069: + return "cognex-insight", true + case 1070: + return "gmrupdateserv", true + case 1071: + return "bsquare-voip", true + case 1072: + return "cardax", true + case 1073: + return "bridgecontrol", true + case 1074: + return "warmspotMgmt", true + case 1075: + return "rdrmshc", true + case 1076: + return "dab-sti-c", true + case 1077: + return "imgames", true + case 1078: + return "avocent-proxy", true + case 1079: + return "asprovatalk", true + case 1080: + return "socks", true + case 1081: + return "pvuniwien", true + case 1082: + return "amt-esd-prot", true + case 1083: + return "ansoft-lm-1", true + case 1084: + return "ansoft-lm-2", true + case 1085: + return "webobjects", true + case 1086: + return "cplscrambler-lg", true + case 1087: + return "cplscrambler-in", true + case 1088: + return "cplscrambler-al", true + case 1089: + return "ff-annunc", true + case 1090: + return "ff-fms", true + case 1091: + return "ff-sm", true + case 1092: + return "obrpd", true + case 1093: + return "proofd", true + case 1094: + return "rootd", true + case 1095: + return "nicelink", true + case 1096: + return "cnrprotocol", true + case 1097: + return "sunclustermgr", true + case 1098: + return "rmiactivation", true + case 1099: + return "rmiregistry", true + case 1100: + return "mctp", true + case 1101: + return "pt2-discover", true + case 1102: + return "adobeserver-1", true + case 1103: + return "adobeserver-2", true + case 1104: + return "xrl", true + case 1105: + return "ftranhc", true + case 1106: + return "isoipsigport-1", true + case 1107: + return "isoipsigport-2", true + case 1108: + return "ratio-adp", true + case 1110: + return "nfsd-keepalive", true + case 1111: + return "lmsocialserver", true + case 1112: + return "icp", true + case 1113: + return "ltp-deepspace", true + case 1114: + return "mini-sql", true + case 1115: + return "ardus-trns", true + case 1116: + return "ardus-cntl", true + case 1117: + return "ardus-mtrns", true + case 1118: + return "sacred", true + case 1119: + return "bnetgame", true + case 1120: + return "bnetfile", true + case 1121: + return "rmpp", true + case 1122: + return "availant-mgr", true + case 1123: + return "murray", true + case 1124: + return "hpvmmcontrol", true + case 1125: + return "hpvmmagent", true + case 1126: + return "hpvmmdata", true + case 1127: + return "kwdb-commn", true + case 1128: + return "saphostctrl", true + case 1129: + return "saphostctrls", true + case 1130: + return "casp", true + case 1131: + return "caspssl", true + case 1132: + return "kvm-via-ip", true + case 1133: + return "dfn", true + case 1134: + return "aplx", true + case 1135: + return "omnivision", true + case 1136: + return "hhb-gateway", true + case 1137: + return "trim", true + case 1138: + return "encrypted-admin", true + case 1139: + return "evm", true + case 1140: + return "autonoc", true + case 1141: + return "mxomss", true + case 1142: + return "edtools", true + case 1143: + return "imyx", true + case 1144: + return "fuscript", true + case 1145: + return "x9-icue", true + case 1146: + return "audit-transfer", true + case 1147: + return "capioverlan", true + case 1148: + return "elfiq-repl", true + case 1149: + return "bvtsonar", true + case 1150: + return "blaze", true + case 1151: + return "unizensus", true + case 1152: + return "winpoplanmess", true + case 1153: + return "c1222-acse", true + case 1154: + return "resacommunity", true + case 1155: + return "nfa", true + case 1156: + return "iascontrol-oms", true + case 1157: + return "iascontrol", true + case 1158: + return "dbcontrol-oms", true + case 1159: + return "oracle-oms", true + case 1160: + return "olsv", true + case 1161: + return "health-polling", true + case 1162: + return "health-trap", true + case 1163: + return "sddp", true + case 1164: + return "qsm-proxy", true + case 1165: + return "qsm-gui", true + case 1166: + return "qsm-remote", true + case 1167: + return "cisco-ipsla", true + case 1168: + return "vchat", true + case 1169: + return "tripwire", true + case 1170: + return "atc-lm", true + case 1171: + return "atc-appserver", true + case 1172: + return "dnap", true + case 1173: + return "d-cinema-rrp", true + case 1174: + return "fnet-remote-ui", true + case 1175: + return "dossier", true + case 1176: + return "indigo-server", true + case 1177: + return "dkmessenger", true + case 1178: + return "sgi-storman", true + case 1179: + return "b2n", true + case 1180: + return "mc-client", true + case 1181: + return "3comnetman", true + case 1182: + return "accelenet-data", true + case 1183: + return "llsurfup-http", true + case 1184: + return "llsurfup-https", true + case 1185: + return "catchpole", true + case 1186: + return "mysql-cluster", true + case 1187: + return "alias", true + case 1188: + return "hp-webadmin", true + case 1189: + return "unet", true + case 1190: + return "commlinx-avl", true + case 1191: + return "gpfs", true + case 1192: + return "caids-sensor", true + case 1193: + return "fiveacross", true + case 1194: + return "openvpn", true + case 1195: + return "rsf-1", true + case 1196: + return "netmagic", true + case 1197: + return "carrius-rshell", true + case 1198: + return "cajo-discovery", true + case 1199: + return "dmidi", true + case 1200: + return "scol", true + case 1201: + return "nucleus-sand", true + case 1202: + return "caiccipc", true + case 1203: + return "ssslic-mgr", true + case 1204: + return "ssslog-mgr", true + case 1205: + return "accord-mgc", true + case 1206: + return "anthony-data", true + case 1207: + return "metasage", true + case 1208: + return "seagull-ais", true + case 1209: + return "ipcd3", true + case 1210: + return "eoss", true + case 1211: + return "groove-dpp", true + case 1212: + return "lupa", true + case 1213: + return "mpc-lifenet", true + case 1214: + return "kazaa", true + case 1215: + return "scanstat-1", true + case 1216: + return "etebac5", true + case 1217: + return "hpss-ndapi", true + case 1218: + return "aeroflight-ads", true + case 1219: + return "aeroflight-ret", true + case 1220: + return "qt-serveradmin", true + case 1221: + return "sweetware-apps", true + case 1222: + return "nerv", true + case 1223: + return "tgp", true + case 1224: + return "vpnz", true + case 1225: + return "slinkysearch", true + case 1226: + return "stgxfws", true + case 1227: + return "dns2go", true + case 1228: + return "florence", true + case 1229: + return "zented", true + case 1230: + return "periscope", true + case 1231: + return "menandmice-lpm", true + case 1232: + return "first-defense", true + case 1233: + return "univ-appserver", true + case 1234: + return "search-agent", true + case 1235: + return "mosaicsyssvc1", true + case 1236: + return "bvcontrol", true + case 1237: + return "tsdos390", true + case 1238: + return "hacl-qs", true + case 1239: + return "nmsd", true + case 1240: + return "instantia", true + case 1241: + return "nessus", true + case 1242: + return "nmasoverip", true + case 1243: + return "serialgateway", true + case 1244: + return "isbconference1", true + case 1245: + return "isbconference2", true + case 1246: + return "payrouter", true + case 1247: + return "visionpyramid", true + case 1248: + return "hermes", true + case 1249: + return "mesavistaco", true + case 1250: + return "swldy-sias", true + case 1251: + return "servergraph", true + case 1252: + return "bspne-pcc", true + case 1253: + return "q55-pcc", true + case 1254: + return "de-noc", true + case 1255: + return "de-cache-query", true + case 1256: + return "de-server", true + case 1257: + return "shockwave2", true + case 1258: + return "opennl", true + case 1259: + return "opennl-voice", true + case 1260: + return "ibm-ssd", true + case 1261: + return "mpshrsv", true + case 1262: + return "qnts-orb", true + case 1263: + return "dka", true + case 1264: + return "prat", true + case 1265: + return "dssiapi", true + case 1266: + return "dellpwrappks", true + case 1267: + return "epc", true + case 1268: + return "propel-msgsys", true + case 1269: + return "watilapp", true + case 1270: + return "opsmgr", true + case 1271: + return "excw", true + case 1272: + return "cspmlockmgr", true + case 1273: + return "emc-gateway", true + case 1274: + return "t1distproc", true + case 1275: + return "ivcollector", true + case 1277: + return "miva-mqs", true + case 1278: + return "dellwebadmin-1", true + case 1279: + return "dellwebadmin-2", true + case 1280: + return "pictrography", true + case 1281: + return "healthd", true + case 1282: + return "emperion", true + case 1283: + return "productinfo", true + case 1284: + return "iee-qfx", true + case 1285: + return "neoiface", true + case 1286: + return "netuitive", true + case 1287: + return "routematch", true + case 1288: + return "navbuddy", true + case 1289: + return "jwalkserver", true + case 1290: + return "winjaserver", true + case 1291: + return "seagulllms", true + case 1292: + return "dsdn", true + case 1293: + return "pkt-krb-ipsec", true + case 1294: + return "cmmdriver", true + case 1295: + return "ehtp", true + case 1296: + return "dproxy", true + case 1297: + return "sdproxy", true + case 1298: + return "lpcp", true + case 1299: + return "hp-sci", true + case 1300: + return "h323hostcallsc", true + case 1303: + return "sftsrv", true + case 1304: + return "boomerang", true + case 1305: + return "pe-mike", true + case 1306: + return "re-conn-proto", true + case 1307: + return "pacmand", true + case 1308: + return "odsi", true + case 1309: + return "jtag-server", true + case 1310: + return "husky", true + case 1311: + return "rxmon", true + case 1312: + return "sti-envision", true + case 1313: + return "bmc-patroldb", true + case 1314: + return "pdps", true + case 1315: + return "els", true + case 1316: + return "exbit-escp", true + case 1317: + return "vrts-ipcserver", true + case 1318: + return "krb5gatekeeper", true + case 1319: + return "amx-icsp", true + case 1320: + return "amx-axbnet", true + case 1321: + return "pip", true + case 1322: + return "novation", true + case 1323: + return "brcd", true + case 1324: + return "delta-mcp", true + case 1325: + return "dx-instrument", true + case 1326: + return "wimsic", true + case 1327: + return "ultrex", true + case 1328: + return "ewall", true + case 1329: + return "netdb-export", true + case 1330: + return "streetperfect", true + case 1331: + return "intersan", true + case 1332: + return "pcia-rxp-b", true + case 1333: + return "passwrd-policy", true + case 1334: + return "writesrv", true + case 1335: + return "digital-notary", true + case 1336: + return "ischat", true + case 1337: + return "menandmice-dns", true + case 1338: + return "wmc-log-svc", true + case 1339: + return "kjtsiteserver", true + case 1340: + return "naap", true + case 1341: + return "qubes", true + case 1342: + return "esbroker", true + case 1343: + return "re101", true + case 1344: + return "icap", true + case 1345: + return "vpjp", true + case 1346: + return "alta-ana-lm", true + case 1347: + return "bbn-mmc", true + case 1348: + return "bbn-mmx", true + case 1349: + return "sbook", true + case 1350: + return "editbench", true + case 1351: + return "equationbuilder", true + case 1352: + return "lotusnote", true + case 1353: + return "relief", true + case 1354: + return "XSIP-network", true + case 1355: + return "intuitive-edge", true + case 1356: + return "cuillamartin", true + case 1357: + return "pegboard", true + case 1358: + return "connlcli", true + case 1359: + return "ftsrv", true + case 1360: + return "mimer", true + case 1361: + return "linx", true + case 1362: + return "timeflies", true + case 1363: + return "ndm-requester", true + case 1364: + return "ndm-server", true + case 1365: + return "adapt-sna", true + case 1366: + return "netware-csp", true + case 1367: + return "dcs", true + case 1368: + return "screencast", true + case 1369: + return "gv-us", true + case 1370: + return "us-gv", true + case 1371: + return "fc-cli", true + case 1372: + return "fc-ser", true + case 1373: + return "chromagrafx", true + case 1374: + return "molly", true + case 1375: + return "bytex", true + case 1376: + return "ibm-pps", true + case 1377: + return "cichlid", true + case 1378: + return "elan", true + case 1379: + return "dbreporter", true + case 1380: + return "telesis-licman", true + case 1381: + return "apple-licman", true + case 1382: + return "udt-os", true + case 1383: + return "gwha", true + case 1384: + return "os-licman", true + case 1385: + return "atex-elmd", true + case 1386: + return "checksum", true + case 1387: + return "cadsi-lm", true + case 1388: + return "objective-dbc", true + case 1389: + return "iclpv-dm", true + case 1390: + return "iclpv-sc", true + case 1391: + return "iclpv-sas", true + case 1392: + return "iclpv-pm", true + case 1393: + return "iclpv-nls", true + case 1394: + return "iclpv-nlc", true + case 1395: + return "iclpv-wsm", true + case 1396: + return "dvl-activemail", true + case 1397: + return "audio-activmail", true + case 1398: + return "video-activmail", true + case 1399: + return "cadkey-licman", true + case 1400: + return "cadkey-tablet", true + case 1401: + return "goldleaf-licman", true + case 1402: + return "prm-sm-np", true + case 1403: + return "prm-nm-np", true + case 1404: + return "igi-lm", true + case 1405: + return "ibm-res", true + case 1406: + return "netlabs-lm", true + case 1408: + return "sophia-lm", true + case 1409: + return "here-lm", true + case 1410: + return "hiq", true + case 1411: + return "af", true + case 1412: + return "innosys", true + case 1413: + return "innosys-acl", true + case 1414: + return "ibm-mqseries", true + case 1415: + return "dbstar", true + case 1416: + return "novell-lu6-2", true + case 1417: + return "timbuktu-srv1", true + case 1418: + return "timbuktu-srv2", true + case 1419: + return "timbuktu-srv3", true + case 1420: + return "timbuktu-srv4", true + case 1421: + return "gandalf-lm", true + case 1422: + return "autodesk-lm", true + case 1423: + return "essbase", true + case 1424: + return "hybrid", true + case 1425: + return "zion-lm", true + case 1426: + return "sais", true + case 1427: + return "mloadd", true + case 1428: + return "informatik-lm", true + case 1429: + return "nms", true + case 1430: + return "tpdu", true + case 1431: + return "rgtp", true + case 1432: + return "blueberry-lm", true + case 1433: + return "ms-sql-s", true + case 1434: + return "ms-sql-m", true + case 1435: + return "ibm-cics", true + case 1436: + return "saism", true + case 1437: + return "tabula", true + case 1438: + return "eicon-server", true + case 1439: + return "eicon-x25", true + case 1440: + return "eicon-slp", true + case 1441: + return "cadis-1", true + case 1442: + return "cadis-2", true + case 1443: + return "ies-lm", true + case 1444: + return "marcam-lm", true + case 1445: + return "proxima-lm", true + case 1446: + return "ora-lm", true + case 1447: + return "apri-lm", true + case 1448: + return "oc-lm", true + case 1449: + return "peport", true + case 1450: + return "dwf", true + case 1451: + return "infoman", true + case 1452: + return "gtegsc-lm", true + case 1453: + return "genie-lm", true + case 1454: + return "interhdl-elmd", true + case 1455: + return "esl-lm", true + case 1456: + return "dca", true + case 1457: + return "valisys-lm", true + case 1458: + return "nrcabq-lm", true + case 1459: + return "proshare1", true + case 1460: + return "proshare2", true + case 1461: + return "ibm-wrless-lan", true + case 1462: + return "world-lm", true + case 1463: + return "nucleus", true + case 1464: + return "msl-lmd", true + case 1465: + return "pipes", true + case 1466: + return "oceansoft-lm", true + case 1467: + return "csdmbase", true + case 1468: + return "csdm", true + case 1469: + return "aal-lm", true + case 1470: + return "uaiact", true + case 1471: + return "csdmbase", true + case 1472: + return "csdm", true + case 1473: + return "openmath", true + case 1474: + return "telefinder", true + case 1475: + return "taligent-lm", true + case 1476: + return "clvm-cfg", true + case 1477: + return "ms-sna-server", true + case 1478: + return "ms-sna-base", true + case 1479: + return "dberegister", true + case 1480: + return "pacerforum", true + case 1481: + return "airs", true + case 1482: + return "miteksys-lm", true + case 1483: + return "afs", true + case 1484: + return "confluent", true + case 1485: + return "lansource", true + case 1486: + return "nms-topo-serv", true + case 1487: + return "localinfosrvr", true + case 1488: + return "docstor", true + case 1489: + return "dmdocbroker", true + case 1490: + return "insitu-conf", true + case 1492: + return "stone-design-1", true + case 1493: + return "netmap-lm", true + case 1494: + return "ica", true + case 1495: + return "cvc", true + case 1496: + return "liberty-lm", true + case 1497: + return "rfx-lm", true + case 1498: + return "sybase-sqlany", true + case 1499: + return "fhc", true + case 1500: + return "vlsi-lm", true + case 1501: + return "saiscm", true + case 1502: + return "shivadiscovery", true + case 1503: + return "imtc-mcs", true + case 1504: + return "evb-elm", true + case 1505: + return "funkproxy", true + case 1506: + return "utcd", true + case 1507: + return "symplex", true + case 1508: + return "diagmond", true + case 1509: + return "robcad-lm", true + case 1510: + return "mvx-lm", true + case 1511: + return "3l-l1", true + case 1512: + return "wins", true + case 1513: + return "fujitsu-dtc", true + case 1514: + return "fujitsu-dtcns", true + case 1515: + return "ifor-protocol", true + case 1516: + return "vpad", true + case 1517: + return "vpac", true + case 1518: + return "vpvd", true + case 1519: + return "vpvc", true + case 1520: + return "atm-zip-office", true + case 1521: + return "ncube-lm", true + case 1522: + return "ricardo-lm", true + case 1523: + return "cichild-lm", true + case 1524: + return "ingreslock", true + case 1525: + return "orasrv", true + case 1526: + return "pdap-np", true + case 1527: + return "tlisrv", true + case 1528: + return "norp", true + case 1529: + return "coauthor", true + case 1530: + return "rap-service", true + case 1531: + return "rap-listen", true + case 1532: + return "miroconnect", true + case 1533: + return "virtual-places", true + case 1534: + return "micromuse-lm", true + case 1535: + return "ampr-info", true + case 1536: + return "ampr-inter", true + case 1537: + return "sdsc-lm", true + case 1538: + return "3ds-lm", true + case 1539: + return "intellistor-lm", true + case 1540: + return "rds", true + case 1541: + return "rds2", true + case 1542: + return "gridgen-elmd", true + case 1543: + return "simba-cs", true + case 1544: + return "aspeclmd", true + case 1545: + return "vistium-share", true + case 1546: + return "abbaccuray", true + case 1547: + return "laplink", true + case 1548: + return "axon-lm", true + case 1549: + return "shivasound", true + case 1550: + return "3m-image-lm", true + case 1551: + return "hecmtl-db", true + case 1552: + return "pciarray", true + case 1553: + return "sna-cs", true + case 1554: + return "caci-lm", true + case 1555: + return "livelan", true + case 1556: + return "veritas-pbx", true + case 1557: + return "arbortext-lm", true + case 1558: + return "xingmpeg", true + case 1559: + return "web2host", true + case 1560: + return "asci-val", true + case 1561: + return "facilityview", true + case 1562: + return "pconnectmgr", true + case 1563: + return "cadabra-lm", true + case 1564: + return "pay-per-view", true + case 1565: + return "winddlb", true + case 1566: + return "corelvideo", true + case 1567: + return "jlicelmd", true + case 1568: + return "tsspmap", true + case 1569: + return "ets", true + case 1570: + return "orbixd", true + case 1571: + return "rdb-dbs-disp", true + case 1572: + return "chip-lm", true + case 1573: + return "itscomm-ns", true + case 1574: + return "mvel-lm", true + case 1575: + return "oraclenames", true + case 1576: + return "moldflow-lm", true + case 1577: + return "hypercube-lm", true + case 1578: + return "jacobus-lm", true + case 1579: + return "ioc-sea-lm", true + case 1580: + return "tn-tl-r2", true + case 1581: + return "mil-2045-47001", true + case 1582: + return "msims", true + case 1583: + return "simbaexpress", true + case 1584: + return "tn-tl-fd2", true + case 1585: + return "intv", true + case 1586: + return "ibm-abtact", true + case 1587: + return "pra-elmd", true + case 1588: + return "triquest-lm", true + case 1589: + return "vqp", true + case 1590: + return "gemini-lm", true + case 1591: + return "ncpm-pm", true + case 1592: + return "commonspace", true + case 1593: + return "mainsoft-lm", true + case 1594: + return "sixtrak", true + case 1595: + return "radio", true + case 1596: + return "radio-bc", true + case 1597: + return "orbplus-iiop", true + case 1598: + return "picknfs", true + case 1599: + return "simbaservices", true + case 1600: + return "issd", true + case 1601: + return "aas", true + case 1602: + return "inspect", true + case 1603: + return "picodbc", true + case 1604: + return "icabrowser", true + case 1605: + return "slp", true + case 1606: + return "slm-api", true + case 1607: + return "stt", true + case 1608: + return "smart-lm", true + case 1609: + return "isysg-lm", true + case 1610: + return "taurus-wh", true + case 1611: + return "ill", true + case 1612: + return "netbill-trans", true + case 1613: + return "netbill-keyrep", true + case 1614: + return "netbill-cred", true + case 1615: + return "netbill-auth", true + case 1616: + return "netbill-prod", true + case 1617: + return "nimrod-agent", true + case 1618: + return "skytelnet", true + case 1619: + return "xs-openstorage", true + case 1620: + return "faxportwinport", true + case 1621: + return "softdataphone", true + case 1622: + return "ontime", true + case 1623: + return "jaleosnd", true + case 1624: + return "udp-sr-port", true + case 1625: + return "svs-omagent", true + case 1626: + return "shockwave", true + case 1627: + return "t128-gateway", true + case 1628: + return "lontalk-norm", true + case 1629: + return "lontalk-urgnt", true + case 1630: + return "oraclenet8cman", true + case 1631: + return "visitview", true + case 1632: + return "pammratc", true + case 1633: + return "pammrpc", true + case 1634: + return "loaprobe", true + case 1635: + return "edb-server1", true + case 1636: + return "isdc", true + case 1637: + return "islc", true + case 1638: + return "ismc", true + case 1639: + return "cert-initiator", true + case 1640: + return "cert-responder", true + case 1641: + return "invision", true + case 1642: + return "isis-am", true + case 1643: + return "isis-ambc", true + case 1644: + return "saiseh", true + case 1645: + return "sightline", true + case 1646: + return "sa-msg-port", true + case 1647: + return "rsap", true + case 1648: + return "concurrent-lm", true + case 1649: + return "kermit", true + case 1650: + return "nkd", true + case 1651: + return "shiva-confsrvr", true + case 1652: + return "xnmp", true + case 1653: + return "alphatech-lm", true + case 1654: + return "stargatealerts", true + case 1655: + return "dec-mbadmin", true + case 1656: + return "dec-mbadmin-h", true + case 1657: + return "fujitsu-mmpdc", true + case 1658: + return "sixnetudr", true + case 1659: + return "sg-lm", true + case 1660: + return "skip-mc-gikreq", true + case 1661: + return "netview-aix-1", true + case 1662: + return "netview-aix-2", true + case 1663: + return "netview-aix-3", true + case 1664: + return "netview-aix-4", true + case 1665: + return "netview-aix-5", true + case 1666: + return "netview-aix-6", true + case 1667: + return "netview-aix-7", true + case 1668: + return "netview-aix-8", true + case 1669: + return "netview-aix-9", true + case 1670: + return "netview-aix-10", true + case 1671: + return "netview-aix-11", true + case 1672: + return "netview-aix-12", true + case 1673: + return "proshare-mc-1", true + case 1674: + return "proshare-mc-2", true + case 1675: + return "pdp", true + case 1676: + return "netcomm2", true + case 1677: + return "groupwise", true + case 1678: + return "prolink", true + case 1679: + return "darcorp-lm", true + case 1680: + return "microcom-sbp", true + case 1681: + return "sd-elmd", true + case 1682: + return "lanyon-lantern", true + case 1683: + return "ncpm-hip", true + case 1684: + return "snaresecure", true + case 1685: + return "n2nremote", true + case 1686: + return "cvmon", true + case 1687: + return "nsjtp-ctrl", true + case 1688: + return "nsjtp-data", true + case 1689: + return "firefox", true + case 1690: + return "ng-umds", true + case 1691: + return "empire-empuma", true + case 1692: + return "sstsys-lm", true + case 1693: + return "rrirtr", true + case 1694: + return "rrimwm", true + case 1695: + return "rrilwm", true + case 1696: + return "rrifmm", true + case 1697: + return "rrisat", true + case 1698: + return "rsvp-encap-1", true + case 1699: + return "rsvp-encap-2", true + case 1700: + return "mps-raft", true + case 1701: + return "l2f", true + case 1702: + return "deskshare", true + case 1703: + return "hb-engine", true + case 1704: + return "bcs-broker", true + case 1705: + return "slingshot", true + case 1706: + return "jetform", true + case 1707: + return "vdmplay", true + case 1708: + return "gat-lmd", true + case 1709: + return "centra", true + case 1710: + return "impera", true + case 1711: + return "pptconference", true + case 1712: + return "registrar", true + case 1713: + return "conferencetalk", true + case 1714: + return "sesi-lm", true + case 1715: + return "houdini-lm", true + case 1716: + return "xmsg", true + case 1717: + return "fj-hdnet", true + case 1718: + return "h323gatedisc", true + case 1719: + return "h323gatestat", true + case 1720: + return "h323hostcall", true + case 1721: + return "caicci", true + case 1722: + return "hks-lm", true + case 1723: + return "pptp", true + case 1724: + return "csbphonemaster", true + case 1725: + return "iden-ralp", true + case 1726: + return "iberiagames", true + case 1727: + return "winddx", true + case 1728: + return "telindus", true + case 1729: + return "citynl", true + case 1730: + return "roketz", true + case 1731: + return "msiccp", true + case 1732: + return "proxim", true + case 1733: + return "siipat", true + case 1734: + return "cambertx-lm", true + case 1735: + return "privatechat", true + case 1736: + return "street-stream", true + case 1737: + return "ultimad", true + case 1738: + return "gamegen1", true + case 1739: + return "webaccess", true + case 1740: + return "encore", true + case 1741: + return "cisco-net-mgmt", true + case 1742: + return "3Com-nsd", true + case 1743: + return "cinegrfx-lm", true + case 1744: + return "ncpm-ft", true + case 1745: + return "remote-winsock", true + case 1746: + return "ftrapid-1", true + case 1747: + return "ftrapid-2", true + case 1748: + return "oracle-em1", true + case 1749: + return "aspen-services", true + case 1750: + return "sslp", true + case 1751: + return "swiftnet", true + case 1752: + return "lofr-lm", true + case 1754: + return "oracle-em2", true + case 1755: + return "ms-streaming", true + case 1756: + return "capfast-lmd", true + case 1757: + return "cnhrp", true + case 1758: + return "tftp-mcast", true + case 1759: + return "spss-lm", true + case 1760: + return "www-ldap-gw", true + case 1761: + return "cft-0", true + case 1762: + return "cft-1", true + case 1763: + return "cft-2", true + case 1764: + return "cft-3", true + case 1765: + return "cft-4", true + case 1766: + return "cft-5", true + case 1767: + return "cft-6", true + case 1768: + return "cft-7", true + case 1769: + return "bmc-net-adm", true + case 1770: + return "bmc-net-svc", true + case 1771: + return "vaultbase", true + case 1772: + return "essweb-gw", true + case 1773: + return "kmscontrol", true + case 1774: + return "global-dtserv", true + case 1776: + return "femis", true + case 1777: + return "powerguardian", true + case 1778: + return "prodigy-intrnet", true + case 1779: + return "pharmasoft", true + case 1780: + return "dpkeyserv", true + case 1781: + return "answersoft-lm", true + case 1782: + return "hp-hcip", true + case 1784: + return "finle-lm", true + case 1785: + return "windlm", true + case 1786: + return "funk-logger", true + case 1787: + return "funk-license", true + case 1788: + return "psmond", true + case 1789: + return "hello", true + case 1790: + return "nmsp", true + case 1791: + return "ea1", true + case 1792: + return "ibm-dt-2", true + case 1793: + return "rsc-robot", true + case 1794: + return "cera-bcm", true + case 1795: + return "dpi-proxy", true + case 1796: + return "vocaltec-admin", true + case 1797: + return "uma", true + case 1798: + return "etp", true + case 1799: + return "netrisk", true + case 1800: + return "ansys-lm", true + case 1801: + return "msmq", true + case 1802: + return "concomp1", true + case 1803: + return "hp-hcip-gwy", true + case 1804: + return "enl", true + case 1805: + return "enl-name", true + case 1806: + return "musiconline", true + case 1807: + return "fhsp", true + case 1808: + return "oracle-vp2", true + case 1809: + return "oracle-vp1", true + case 1810: + return "jerand-lm", true + case 1811: + return "scientia-sdb", true + case 1812: + return "radius", true + case 1813: + return "radius-acct", true + case 1814: + return "tdp-suite", true + case 1815: + return "mmpft", true + case 1816: + return "harp", true + case 1817: + return "rkb-oscs", true + case 1818: + return "etftp", true + case 1819: + return "plato-lm", true + case 1820: + return "mcagent", true + case 1821: + return "donnyworld", true + case 1822: + return "es-elmd", true + case 1823: + return "unisys-lm", true + case 1824: + return "metrics-pas", true + case 1825: + return "direcpc-video", true + case 1826: + return "ardt", true + case 1827: + return "asi", true + case 1828: + return "itm-mcell-u", true + case 1829: + return "optika-emedia", true + case 1830: + return "net8-cman", true + case 1831: + return "myrtle", true + case 1832: + return "tht-treasure", true + case 1833: + return "udpradio", true + case 1834: + return "ardusuni", true + case 1835: + return "ardusmul", true + case 1836: + return "ste-smsc", true + case 1837: + return "csoft1", true + case 1838: + return "talnet", true + case 1839: + return "netopia-vo1", true + case 1840: + return "netopia-vo2", true + case 1841: + return "netopia-vo3", true + case 1842: + return "netopia-vo4", true + case 1843: + return "netopia-vo5", true + case 1844: + return "direcpc-dll", true + case 1845: + return "altalink", true + case 1846: + return "tunstall-pnc", true + case 1847: + return "slp-notify", true + case 1848: + return "fjdocdist", true + case 1849: + return "alpha-sms", true + case 1850: + return "gsi", true + case 1851: + return "ctcd", true + case 1852: + return "virtual-time", true + case 1853: + return "vids-avtp", true + case 1854: + return "buddy-draw", true + case 1855: + return "fiorano-rtrsvc", true + case 1856: + return "fiorano-msgsvc", true + case 1857: + return "datacaptor", true + case 1858: + return "privateark", true + case 1859: + return "gammafetchsvr", true + case 1860: + return "sunscalar-svc", true + case 1861: + return "lecroy-vicp", true + case 1862: + return "mysql-cm-agent", true + case 1863: + return "msnp", true + case 1864: + return "paradym-31port", true + case 1865: + return "entp", true + case 1866: + return "swrmi", true + case 1867: + return "udrive", true + case 1868: + return "viziblebrowser", true + case 1869: + return "transact", true + case 1870: + return "sunscalar-dns", true + case 1871: + return "canocentral0", true + case 1872: + return "canocentral1", true + case 1873: + return "fjmpjps", true + case 1874: + return "fjswapsnp", true + case 1875: + return "westell-stats", true + case 1876: + return "ewcappsrv", true + case 1877: + return "hp-webqosdb", true + case 1878: + return "drmsmc", true + case 1879: + return "nettgain-nms", true + case 1880: + return "vsat-control", true + case 1881: + return "ibm-mqseries2", true + case 1882: + return "ecsqdmn", true + case 1883: + return "mqtt", true + case 1884: + return "idmaps", true + case 1885: + return "vrtstrapserver", true + case 1886: + return "leoip", true + case 1887: + return "filex-lport", true + case 1888: + return "ncconfig", true + case 1889: + return "unify-adapter", true + case 1890: + return "wilkenlistener", true + case 1891: + return "childkey-notif", true + case 1892: + return "childkey-ctrl", true + case 1893: + return "elad", true + case 1894: + return "o2server-port", true + case 1896: + return "b-novative-ls", true + case 1897: + return "metaagent", true + case 1898: + return "cymtec-port", true + case 1899: + return "mc2studios", true + case 1900: + return "ssdp", true + case 1901: + return "fjicl-tep-a", true + case 1902: + return "fjicl-tep-b", true + case 1903: + return "linkname", true + case 1904: + return "fjicl-tep-c", true + case 1905: + return "sugp", true + case 1906: + return "tpmd", true + case 1907: + return "intrastar", true + case 1908: + return "dawn", true + case 1909: + return "global-wlink", true + case 1910: + return "ultrabac", true + case 1911: + return "mtp", true + case 1912: + return "rhp-iibp", true + case 1913: + return "armadp", true + case 1914: + return "elm-momentum", true + case 1915: + return "facelink", true + case 1916: + return "persona", true + case 1917: + return "noagent", true + case 1918: + return "can-nds", true + case 1919: + return "can-dch", true + case 1920: + return "can-ferret", true + case 1921: + return "noadmin", true + case 1922: + return "tapestry", true + case 1923: + return "spice", true + case 1924: + return "xiip", true + case 1925: + return "discovery-port", true + case 1926: + return "egs", true + case 1927: + return "videte-cipc", true + case 1928: + return "emsd-port", true + case 1929: + return "bandwiz-system", true + case 1930: + return "driveappserver", true + case 1931: + return "amdsched", true + case 1932: + return "ctt-broker", true + case 1933: + return "xmapi", true + case 1934: + return "xaapi", true + case 1935: + return "macromedia-fcs", true + case 1936: + return "jetcmeserver", true + case 1937: + return "jwserver", true + case 1938: + return "jwclient", true + case 1939: + return "jvserver", true + case 1940: + return "jvclient", true + case 1941: + return "dic-aida", true + case 1942: + return "res", true + case 1943: + return "beeyond-media", true + case 1944: + return "close-combat", true + case 1945: + return "dialogic-elmd", true + case 1946: + return "tekpls", true + case 1947: + return "sentinelsrm", true + case 1948: + return "eye2eye", true + case 1949: + return "ismaeasdaqlive", true + case 1950: + return "ismaeasdaqtest", true + case 1951: + return "bcs-lmserver", true + case 1952: + return "mpnjsc", true + case 1953: + return "rapidbase", true + case 1954: + return "abr-api", true + case 1955: + return "abr-secure", true + case 1956: + return "vrtl-vmf-ds", true + case 1957: + return "unix-status", true + case 1958: + return "dxadmind", true + case 1959: + return "simp-all", true + case 1960: + return "nasmanager", true + case 1961: + return "bts-appserver", true + case 1962: + return "biap-mp", true + case 1963: + return "webmachine", true + case 1964: + return "solid-e-engine", true + case 1965: + return "tivoli-npm", true + case 1966: + return "slush", true + case 1967: + return "sns-quote", true + case 1968: + return "lipsinc", true + case 1969: + return "lipsinc1", true + case 1970: + return "netop-rc", true + case 1971: + return "netop-school", true + case 1972: + return "intersys-cache", true + case 1973: + return "dlsrap", true + case 1974: + return "drp", true + case 1975: + return "tcoflashagent", true + case 1976: + return "tcoregagent", true + case 1977: + return "tcoaddressbook", true + case 1978: + return "unisql", true + case 1979: + return "unisql-java", true + case 1980: + return "pearldoc-xact", true + case 1981: + return "p2pq", true + case 1982: + return "estamp", true + case 1983: + return "lhtp", true + case 1984: + return "bb", true + case 1985: + return "hsrp", true + case 1986: + return "licensedaemon", true + case 1987: + return "tr-rsrb-p1", true + case 1988: + return "tr-rsrb-p2", true + case 1989: + return "tr-rsrb-p3", true + case 1990: + return "stun-p1", true + case 1991: + return "stun-p2", true + case 1992: + return "stun-p3", true + case 1993: + return "snmp-tcp-port", true + case 1994: + return "stun-port", true + case 1995: + return "perf-port", true + case 1996: + return "tr-rsrb-port", true + case 1997: + return "gdp-port", true + case 1998: + return "x25-svc-port", true + case 1999: + return "tcp-id-port", true + case 2000: + return "cisco-sccp", true + case 2001: + return "wizard", true + case 2002: + return "globe", true + case 2003: + return "brutus", true + case 2004: + return "emce", true + case 2005: + return "oracle", true + case 2006: + return "raid-cd", true + case 2007: + return "raid-am", true + case 2008: + return "terminaldb", true + case 2009: + return "whosockami", true + case 2010: + return "pipe-server", true + case 2011: + return "servserv", true + case 2012: + return "raid-ac", true + case 2013: + return "raid-cd", true + case 2014: + return "raid-sf", true + case 2015: + return "raid-cs", true + case 2016: + return "bootserver", true + case 2017: + return "bootclient", true + case 2018: + return "rellpack", true + case 2019: + return "about", true + case 2020: + return "xinupageserver", true + case 2021: + return "xinuexpansion1", true + case 2022: + return "xinuexpansion2", true + case 2023: + return "xinuexpansion3", true + case 2024: + return "xinuexpansion4", true + case 2025: + return "xribs", true + case 2026: + return "scrabble", true + case 2027: + return "shadowserver", true + case 2028: + return "submitserver", true + case 2029: + return "hsrpv6", true + case 2030: + return "device2", true + case 2031: + return "mobrien-chat", true + case 2032: + return "blackboard", true + case 2033: + return "glogger", true + case 2034: + return "scoremgr", true + case 2035: + return "imsldoc", true + case 2036: + return "e-dpnet", true + case 2037: + return "applus", true + case 2038: + return "objectmanager", true + case 2039: + return "prizma", true + case 2040: + return "lam", true + case 2041: + return "interbase", true + case 2042: + return "isis", true + case 2043: + return "isis-bcast", true + case 2044: + return "rimsl", true + case 2045: + return "cdfunc", true + case 2046: + return "sdfunc", true + case 2047: + return "dls", true + case 2048: + return "dls-monitor", true + case 2049: + return "shilp", true + case 2050: + return "av-emb-config", true + case 2051: + return "epnsdp", true + case 2052: + return "clearvisn", true + case 2053: + return "lot105-ds-upd", true + case 2054: + return "weblogin", true + case 2055: + return "iop", true + case 2056: + return "omnisky", true + case 2057: + return "rich-cp", true + case 2058: + return "newwavesearch", true + case 2059: + return "bmc-messaging", true + case 2060: + return "teleniumdaemon", true + case 2061: + return "netmount", true + case 2062: + return "icg-swp", true + case 2063: + return "icg-bridge", true + case 2064: + return "icg-iprelay", true + case 2065: + return "dlsrpn", true + case 2066: + return "aura", true + case 2067: + return "dlswpn", true + case 2068: + return "avauthsrvprtcl", true + case 2069: + return "event-port", true + case 2070: + return "ah-esp-encap", true + case 2071: + return "acp-port", true + case 2072: + return "msync", true + case 2073: + return "gxs-data-port", true + case 2074: + return "vrtl-vmf-sa", true + case 2075: + return "newlixengine", true + case 2076: + return "newlixconfig", true + case 2077: + return "tsrmagt", true + case 2078: + return "tpcsrvr", true + case 2079: + return "idware-router", true + case 2080: + return "autodesk-nlm", true + case 2081: + return "kme-trap-port", true + case 2082: + return "infowave", true + case 2083: + return "radsec", true + case 2084: + return "sunclustergeo", true + case 2085: + return "ada-cip", true + case 2086: + return "gnunet", true + case 2087: + return "eli", true + case 2088: + return "ip-blf", true + case 2089: + return "sep", true + case 2090: + return "lrp", true + case 2091: + return "prp", true + case 2092: + return "descent3", true + case 2093: + return "nbx-cc", true + case 2094: + return "nbx-au", true + case 2095: + return "nbx-ser", true + case 2096: + return "nbx-dir", true + case 2097: + return "jetformpreview", true + case 2098: + return "dialog-port", true + case 2099: + return "h2250-annex-g", true + case 2100: + return "amiganetfs", true + case 2101: + return "rtcm-sc104", true + case 2102: + return "zephyr-srv", true + case 2103: + return "zephyr-clt", true + case 2104: + return "zephyr-hm", true + case 2105: + return "minipay", true + case 2106: + return "mzap", true + case 2107: + return "bintec-admin", true + case 2108: + return "comcam", true + case 2109: + return "ergolight", true + case 2110: + return "umsp", true + case 2111: + return "dsatp", true + case 2112: + return "idonix-metanet", true + case 2113: + return "hsl-storm", true + case 2114: + return "ariascribe", true + case 2115: + return "kdm", true + case 2116: + return "ccowcmr", true + case 2117: + return "mentaclient", true + case 2118: + return "mentaserver", true + case 2119: + return "gsigatekeeper", true + case 2120: + return "qencp", true + case 2121: + return "scientia-ssdb", true + case 2122: + return "caupc-remote", true + case 2123: + return "gtp-control", true + case 2124: + return "elatelink", true + case 2125: + return "lockstep", true + case 2126: + return "pktcable-cops", true + case 2127: + return "index-pc-wb", true + case 2128: + return "net-steward", true + case 2129: + return "cs-live", true + case 2130: + return "xds", true + case 2131: + return "avantageb2b", true + case 2132: + return "solera-epmap", true + case 2133: + return "zymed-zpp", true + case 2134: + return "avenue", true + case 2135: + return "gris", true + case 2136: + return "appworxsrv", true + case 2137: + return "connect", true + case 2138: + return "unbind-cluster", true + case 2139: + return "ias-auth", true + case 2140: + return "ias-reg", true + case 2141: + return "ias-admind", true + case 2142: + return "tdmoip", true + case 2143: + return "lv-jc", true + case 2144: + return "lv-ffx", true + case 2145: + return "lv-pici", true + case 2146: + return "lv-not", true + case 2147: + return "lv-auth", true + case 2148: + return "veritas-ucl", true + case 2149: + return "acptsys", true + case 2150: + return "dynamic3d", true + case 2151: + return "docent", true + case 2152: + return "gtp-user", true + case 2153: + return "ctlptc", true + case 2154: + return "stdptc", true + case 2155: + return "brdptc", true + case 2156: + return "trp", true + case 2157: + return "xnds", true + case 2158: + return "touchnetplus", true + case 2159: + return "gdbremote", true + case 2160: + return "apc-2160", true + case 2161: + return "apc-2161", true + case 2162: + return "navisphere", true + case 2163: + return "navisphere-sec", true + case 2164: + return "ddns-v3", true + case 2165: + return "x-bone-api", true + case 2166: + return "iwserver", true + case 2167: + return "raw-serial", true + case 2168: + return "easy-soft-mux", true + case 2169: + return "brain", true + case 2170: + return "eyetv", true + case 2171: + return "msfw-storage", true + case 2172: + return "msfw-s-storage", true + case 2173: + return "msfw-replica", true + case 2174: + return "msfw-array", true + case 2175: + return "airsync", true + case 2176: + return "rapi", true + case 2177: + return "qwave", true + case 2178: + return "bitspeer", true + case 2179: + return "vmrdp", true + case 2180: + return "mc-gt-srv", true + case 2181: + return "eforward", true + case 2182: + return "cgn-stat", true + case 2183: + return "cgn-config", true + case 2184: + return "nvd", true + case 2185: + return "onbase-dds", true + case 2186: + return "gtaua", true + case 2187: + return "ssmd", true + case 2190: + return "tivoconnect", true + case 2191: + return "tvbus", true + case 2192: + return "asdis", true + case 2193: + return "drwcs", true + case 2197: + return "mnp-exchange", true + case 2198: + return "onehome-remote", true + case 2199: + return "onehome-help", true + case 2201: + return "ats", true + case 2202: + return "imtc-map", true + case 2203: + return "b2-runtime", true + case 2204: + return "b2-license", true + case 2205: + return "jps", true + case 2206: + return "hpocbus", true + case 2207: + return "hpssd", true + case 2208: + return "hpiod", true + case 2209: + return "rimf-ps", true + case 2210: + return "noaaport", true + case 2211: + return "emwin", true + case 2212: + return "leecoposserver", true + case 2213: + return "kali", true + case 2214: + return "rpi", true + case 2215: + return "ipcore", true + case 2216: + return "vtu-comms", true + case 2217: + return "gotodevice", true + case 2218: + return "bounzza", true + case 2219: + return "netiq-ncap", true + case 2220: + return "netiq", true + case 2221: + return "ethernet-ip-s", true + case 2222: + return "EtherNet-IP-1", true + case 2223: + return "rockwell-csp2", true + case 2224: + return "efi-mg", true + case 2226: + return "di-drm", true + case 2227: + return "di-msg", true + case 2228: + return "ehome-ms", true + case 2229: + return "datalens", true + case 2230: + return "queueadm", true + case 2231: + return "wimaxasncp", true + case 2232: + return "ivs-video", true + case 2233: + return "infocrypt", true + case 2234: + return "directplay", true + case 2235: + return "sercomm-wlink", true + case 2236: + return "nani", true + case 2237: + return "optech-port1-lm", true + case 2238: + return "aviva-sna", true + case 2239: + return "imagequery", true + case 2240: + return "recipe", true + case 2241: + return "ivsd", true + case 2242: + return "foliocorp", true + case 2243: + return "magicom", true + case 2244: + return "nmsserver", true + case 2245: + return "hao", true + case 2246: + return "pc-mta-addrmap", true + case 2247: + return "antidotemgrsvr", true + case 2248: + return "ums", true + case 2249: + return "rfmp", true + case 2250: + return "remote-collab", true + case 2251: + return "dif-port", true + case 2252: + return "njenet-ssl", true + case 2253: + return "dtv-chan-req", true + case 2254: + return "seispoc", true + case 2255: + return "vrtp", true + case 2256: + return "pcc-mfp", true + case 2257: + return "simple-tx-rx", true + case 2258: + return "rcts", true + case 2259: + return "bid-serv", true + case 2260: + return "apc-2260", true + case 2261: + return "comotionmaster", true + case 2262: + return "comotionback", true + case 2263: + return "ecwcfg", true + case 2264: + return "apx500api-1", true + case 2265: + return "apx500api-2", true + case 2266: + return "mfserver", true + case 2267: + return "ontobroker", true + case 2268: + return "amt", true + case 2269: + return "mikey", true + case 2270: + return "starschool", true + case 2271: + return "mmcals", true + case 2272: + return "mmcal", true + case 2273: + return "mysql-im", true + case 2274: + return "pcttunnell", true + case 2275: + return "ibridge-data", true + case 2276: + return "ibridge-mgmt", true + case 2277: + return "bluectrlproxy", true + case 2278: + return "s3db", true + case 2279: + return "xmquery", true + case 2280: + return "lnvpoller", true + case 2281: + return "lnvconsole", true + case 2282: + return "lnvalarm", true + case 2283: + return "lnvstatus", true + case 2284: + return "lnvmaps", true + case 2285: + return "lnvmailmon", true + case 2286: + return "nas-metering", true + case 2287: + return "dna", true + case 2288: + return "netml", true + case 2289: + return "dict-lookup", true + case 2290: + return "sonus-logging", true + case 2291: + return "eapsp", true + case 2292: + return "mib-streaming", true + case 2293: + return "npdbgmngr", true + case 2294: + return "konshus-lm", true + case 2295: + return "advant-lm", true + case 2296: + return "theta-lm", true + case 2297: + return "d2k-datamover1", true + case 2298: + return "d2k-datamover2", true + case 2299: + return "pc-telecommute", true + case 2300: + return "cvmmon", true + case 2301: + return "cpq-wbem", true + case 2302: + return "binderysupport", true + case 2303: + return "proxy-gateway", true + case 2304: + return "attachmate-uts", true + case 2305: + return "mt-scaleserver", true + case 2306: + return "tappi-boxnet", true + case 2307: + return "pehelp", true + case 2308: + return "sdhelp", true + case 2309: + return "sdserver", true + case 2310: + return "sdclient", true + case 2311: + return "messageservice", true + case 2312: + return "wanscaler", true + case 2313: + return "iapp", true + case 2314: + return "cr-websystems", true + case 2315: + return "precise-sft", true + case 2316: + return "sent-lm", true + case 2317: + return "attachmate-g32", true + case 2318: + return "cadencecontrol", true + case 2319: + return "infolibria", true + case 2320: + return "siebel-ns", true + case 2321: + return "rdlap", true + case 2322: + return "ofsd", true + case 2323: + return "3d-nfsd", true + case 2324: + return "cosmocall", true + case 2325: + return "ansysli", true + case 2326: + return "idcp", true + case 2327: + return "xingcsm", true + case 2328: + return "netrix-sftm", true + case 2329: + return "nvd", true + case 2330: + return "tscchat", true + case 2331: + return "agentview", true + case 2332: + return "rcc-host", true + case 2333: + return "snapp", true + case 2334: + return "ace-client", true + case 2335: + return "ace-proxy", true + case 2336: + return "appleugcontrol", true + case 2337: + return "ideesrv", true + case 2338: + return "norton-lambert", true + case 2339: + return "3com-webview", true + case 2340: + return "wrs-registry", true + case 2341: + return "xiostatus", true + case 2342: + return "manage-exec", true + case 2343: + return "nati-logos", true + case 2344: + return "fcmsys", true + case 2345: + return "dbm", true + case 2346: + return "redstorm-join", true + case 2347: + return "redstorm-find", true + case 2348: + return "redstorm-info", true + case 2349: + return "redstorm-diag", true + case 2350: + return "psbserver", true + case 2351: + return "psrserver", true + case 2352: + return "pslserver", true + case 2353: + return "pspserver", true + case 2354: + return "psprserver", true + case 2355: + return "psdbserver", true + case 2356: + return "gxtelmd", true + case 2357: + return "unihub-server", true + case 2358: + return "futrix", true + case 2359: + return "flukeserver", true + case 2360: + return "nexstorindltd", true + case 2361: + return "tl1", true + case 2362: + return "digiman", true + case 2363: + return "mediacntrlnfsd", true + case 2364: + return "oi-2000", true + case 2365: + return "dbref", true + case 2366: + return "qip-login", true + case 2367: + return "service-ctrl", true + case 2368: + return "opentable", true + case 2369: + return "bif-p2p", true + case 2370: + return "l3-hbmon", true + case 2372: + return "lanmessenger", true + case 2378: + return "dali", true + case 2381: + return "compaq-https", true + case 2382: + return "ms-olap3", true + case 2383: + return "ms-olap4", true + case 2384: + return "sd-capacity", true + case 2385: + return "sd-data", true + case 2386: + return "virtualtape", true + case 2387: + return "vsamredirector", true + case 2388: + return "mynahautostart", true + case 2389: + return "ovsessionmgr", true + case 2390: + return "rsmtp", true + case 2391: + return "3com-net-mgmt", true + case 2392: + return "tacticalauth", true + case 2393: + return "ms-olap1", true + case 2394: + return "ms-olap2", true + case 2395: + return "lan900-remote", true + case 2396: + return "wusage", true + case 2397: + return "ncl", true + case 2398: + return "orbiter", true + case 2399: + return "fmpro-fdal", true + case 2400: + return "opequus-server", true + case 2401: + return "cvspserver", true + case 2402: + return "taskmaster2000", true + case 2403: + return "taskmaster2000", true + case 2404: + return "iec-104", true + case 2405: + return "trc-netpoll", true + case 2406: + return "jediserver", true + case 2407: + return "orion", true + case 2409: + return "sns-protocol", true + case 2410: + return "vrts-registry", true + case 2411: + return "netwave-ap-mgmt", true + case 2412: + return "cdn", true + case 2413: + return "orion-rmi-reg", true + case 2414: + return "beeyond", true + case 2415: + return "codima-rtp", true + case 2416: + return "rmtserver", true + case 2417: + return "composit-server", true + case 2418: + return "cas", true + case 2419: + return "attachmate-s2s", true + case 2420: + return "dslremote-mgmt", true + case 2421: + return "g-talk", true + case 2422: + return "crmsbits", true + case 2423: + return "rnrp", true + case 2424: + return "kofax-svr", true + case 2425: + return "fjitsuappmgr", true + case 2426: + return "vcmp", true + case 2427: + return "mgcp-gateway", true + case 2428: + return "ott", true + case 2429: + return "ft-role", true + case 2430: + return "venus", true + case 2431: + return "venus-se", true + case 2432: + return "codasrv", true + case 2433: + return "codasrv-se", true + case 2434: + return "pxc-epmap", true + case 2435: + return "optilogic", true + case 2436: + return "topx", true + case 2437: + return "unicontrol", true + case 2438: + return "msp", true + case 2439: + return "sybasedbsynch", true + case 2440: + return "spearway", true + case 2441: + return "pvsw-inet", true + case 2442: + return "netangel", true + case 2443: + return "powerclientcsf", true + case 2444: + return "btpp2sectrans", true + case 2445: + return "dtn1", true + case 2446: + return "bues-service", true + case 2447: + return "ovwdb", true + case 2448: + return "hpppssvr", true + case 2449: + return "ratl", true + case 2450: + return "netadmin", true + case 2451: + return "netchat", true + case 2452: + return "snifferclient", true + case 2453: + return "madge-ltd", true + case 2454: + return "indx-dds", true + case 2455: + return "wago-io-system", true + case 2456: + return "altav-remmgt", true + case 2457: + return "rapido-ip", true + case 2458: + return "griffin", true + case 2459: + return "xrpl", true + case 2460: + return "ms-theater", true + case 2461: + return "qadmifoper", true + case 2462: + return "qadmifevent", true + case 2463: + return "lsi-raid-mgmt", true + case 2464: + return "direcpc-si", true + case 2465: + return "lbm", true + case 2466: + return "lbf", true + case 2467: + return "high-criteria", true + case 2468: + return "qip-msgd", true + case 2469: + return "mti-tcs-comm", true + case 2470: + return "taskman-port", true + case 2471: + return "seaodbc", true + case 2472: + return "c3", true + case 2473: + return "aker-cdp", true + case 2474: + return "vitalanalysis", true + case 2475: + return "ace-server", true + case 2476: + return "ace-svr-prop", true + case 2477: + return "ssm-cvs", true + case 2478: + return "ssm-cssps", true + case 2479: + return "ssm-els", true + case 2480: + return "powerexchange", true + case 2481: + return "giop", true + case 2482: + return "giop-ssl", true + case 2483: + return "ttc", true + case 2484: + return "ttc-ssl", true + case 2485: + return "netobjects1", true + case 2486: + return "netobjects2", true + case 2487: + return "pns", true + case 2488: + return "moy-corp", true + case 2489: + return "tsilb", true + case 2490: + return "qip-qdhcp", true + case 2491: + return "conclave-cpp", true + case 2492: + return "groove", true + case 2493: + return "talarian-mqs", true + case 2494: + return "bmc-ar", true + case 2495: + return "fast-rem-serv", true + case 2496: + return "dirgis", true + case 2497: + return "quaddb", true + case 2498: + return "odn-castraq", true + case 2499: + return "unicontrol", true + case 2500: + return "rtsserv", true + case 2501: + return "rtsclient", true + case 2502: + return "kentrox-prot", true + case 2503: + return "nms-dpnss", true + case 2504: + return "wlbs", true + case 2505: + return "ppcontrol", true + case 2506: + return "jbroker", true + case 2507: + return "spock", true + case 2508: + return "jdatastore", true + case 2509: + return "fjmpss", true + case 2510: + return "fjappmgrbulk", true + case 2511: + return "metastorm", true + case 2512: + return "citrixima", true + case 2513: + return "citrixadmin", true + case 2514: + return "facsys-ntp", true + case 2515: + return "facsys-router", true + case 2516: + return "maincontrol", true + case 2517: + return "call-sig-trans", true + case 2518: + return "willy", true + case 2519: + return "globmsgsvc", true + case 2520: + return "pvsw", true + case 2521: + return "adaptecmgr", true + case 2522: + return "windb", true + case 2523: + return "qke-llc-v3", true + case 2524: + return "optiwave-lm", true + case 2525: + return "ms-v-worlds", true + case 2526: + return "ema-sent-lm", true + case 2527: + return "iqserver", true + case 2528: + return "ncr-ccl", true + case 2529: + return "utsftp", true + case 2530: + return "vrcommerce", true + case 2531: + return "ito-e-gui", true + case 2532: + return "ovtopmd", true + case 2533: + return "snifferserver", true + case 2534: + return "combox-web-acc", true + case 2535: + return "madcap", true + case 2536: + return "btpp2audctr1", true + case 2537: + return "upgrade", true + case 2538: + return "vnwk-prapi", true + case 2539: + return "vsiadmin", true + case 2540: + return "lonworks", true + case 2541: + return "lonworks2", true + case 2542: + return "udrawgraph", true + case 2543: + return "reftek", true + case 2544: + return "novell-zen", true + case 2545: + return "sis-emt", true + case 2546: + return "vytalvaultbrtp", true + case 2547: + return "vytalvaultvsmp", true + case 2548: + return "vytalvaultpipe", true + case 2549: + return "ipass", true + case 2550: + return "ads", true + case 2551: + return "isg-uda-server", true + case 2552: + return "call-logging", true + case 2553: + return "efidiningport", true + case 2554: + return "vcnet-link-v10", true + case 2555: + return "compaq-wcp", true + case 2556: + return "nicetec-nmsvc", true + case 2557: + return "nicetec-mgmt", true + case 2558: + return "pclemultimedia", true + case 2559: + return "lstp", true + case 2560: + return "labrat", true + case 2561: + return "mosaixcc", true + case 2562: + return "delibo", true + case 2563: + return "cti-redwood", true + case 2564: + return "hp-3000-telnet", true + case 2565: + return "coord-svr", true + case 2566: + return "pcs-pcw", true + case 2567: + return "clp", true + case 2568: + return "spamtrap", true + case 2569: + return "sonuscallsig", true + case 2570: + return "hs-port", true + case 2571: + return "cecsvc", true + case 2572: + return "ibp", true + case 2573: + return "trustestablish", true + case 2574: + return "blockade-bpsp", true + case 2575: + return "hl7", true + case 2576: + return "tclprodebugger", true + case 2577: + return "scipticslsrvr", true + case 2578: + return "rvs-isdn-dcp", true + case 2579: + return "mpfoncl", true + case 2580: + return "tributary", true + case 2581: + return "argis-te", true + case 2582: + return "argis-ds", true + case 2583: + return "mon", true + case 2584: + return "cyaserv", true + case 2585: + return "netx-server", true + case 2586: + return "netx-agent", true + case 2587: + return "masc", true + case 2588: + return "privilege", true + case 2589: + return "quartus-tcl", true + case 2590: + return "idotdist", true + case 2591: + return "maytagshuffle", true + case 2592: + return "netrek", true + case 2593: + return "mns-mail", true + case 2594: + return "dts", true + case 2595: + return "worldfusion1", true + case 2596: + return "worldfusion2", true + case 2597: + return "homesteadglory", true + case 2598: + return "citriximaclient", true + case 2599: + return "snapd", true + case 2600: + return "hpstgmgr", true + case 2601: + return "discp-client", true + case 2602: + return "discp-server", true + case 2603: + return "servicemeter", true + case 2604: + return "nsc-ccs", true + case 2605: + return "nsc-posa", true + case 2606: + return "netmon", true + case 2607: + return "connection", true + case 2608: + return "wag-service", true + case 2609: + return "system-monitor", true + case 2610: + return "versa-tek", true + case 2611: + return "lionhead", true + case 2612: + return "qpasa-agent", true + case 2613: + return "smntubootstrap", true + case 2614: + return "neveroffline", true + case 2615: + return "firepower", true + case 2616: + return "appswitch-emp", true + case 2617: + return "cmadmin", true + case 2618: + return "priority-e-com", true + case 2619: + return "bruce", true + case 2620: + return "lpsrecommender", true + case 2621: + return "miles-apart", true + case 2622: + return "metricadbc", true + case 2623: + return "lmdp", true + case 2624: + return "aria", true + case 2625: + return "blwnkl-port", true + case 2626: + return "gbjd816", true + case 2627: + return "moshebeeri", true + case 2628: + return "dict", true + case 2629: + return "sitaraserver", true + case 2630: + return "sitaramgmt", true + case 2631: + return "sitaradir", true + case 2632: + return "irdg-post", true + case 2633: + return "interintelli", true + case 2634: + return "pk-electronics", true + case 2635: + return "backburner", true + case 2636: + return "solve", true + case 2637: + return "imdocsvc", true + case 2638: + return "sybaseanywhere", true + case 2639: + return "aminet", true + case 2640: + return "ami-control", true + case 2641: + return "hdl-srv", true + case 2642: + return "tragic", true + case 2643: + return "gte-samp", true + case 2644: + return "travsoft-ipx-t", true + case 2645: + return "novell-ipx-cmd", true + case 2646: + return "and-lm", true + case 2647: + return "syncserver", true + case 2648: + return "upsnotifyprot", true + case 2649: + return "vpsipport", true + case 2650: + return "eristwoguns", true + case 2651: + return "ebinsite", true + case 2652: + return "interpathpanel", true + case 2653: + return "sonus", true + case 2654: + return "corel-vncadmin", true + case 2655: + return "unglue", true + case 2656: + return "kana", true + case 2657: + return "sns-dispatcher", true + case 2658: + return "sns-admin", true + case 2659: + return "sns-query", true + case 2660: + return "gcmonitor", true + case 2661: + return "olhost", true + case 2662: + return "bintec-capi", true + case 2663: + return "bintec-tapi", true + case 2664: + return "patrol-mq-gm", true + case 2665: + return "patrol-mq-nm", true + case 2666: + return "extensis", true + case 2667: + return "alarm-clock-s", true + case 2668: + return "alarm-clock-c", true + case 2669: + return "toad", true + case 2670: + return "tve-announce", true + case 2671: + return "newlixreg", true + case 2672: + return "nhserver", true + case 2673: + return "firstcall42", true + case 2674: + return "ewnn", true + case 2675: + return "ttc-etap", true + case 2676: + return "simslink", true + case 2677: + return "gadgetgate1way", true + case 2678: + return "gadgetgate2way", true + case 2679: + return "syncserverssl", true + case 2680: + return "pxc-sapxom", true + case 2681: + return "mpnjsomb", true + case 2683: + return "ncdloadbalance", true + case 2684: + return "mpnjsosv", true + case 2685: + return "mpnjsocl", true + case 2686: + return "mpnjsomg", true + case 2687: + return "pq-lic-mgmt", true + case 2688: + return "md-cg-http", true + case 2689: + return "fastlynx", true + case 2690: + return "hp-nnm-data", true + case 2691: + return "itinternet", true + case 2692: + return "admins-lms", true + case 2694: + return "pwrsevent", true + case 2695: + return "vspread", true + case 2696: + return "unifyadmin", true + case 2697: + return "oce-snmp-trap", true + case 2698: + return "mck-ivpip", true + case 2699: + return "csoft-plusclnt", true + case 2700: + return "tqdata", true + case 2701: + return "sms-rcinfo", true + case 2702: + return "sms-xfer", true + case 2703: + return "sms-chat", true + case 2704: + return "sms-remctrl", true + case 2705: + return "sds-admin", true + case 2706: + return "ncdmirroring", true + case 2707: + return "emcsymapiport", true + case 2708: + return "banyan-net", true + case 2709: + return "supermon", true + case 2710: + return "sso-service", true + case 2711: + return "sso-control", true + case 2712: + return "aocp", true + case 2713: + return "raventbs", true + case 2714: + return "raventdm", true + case 2715: + return "hpstgmgr2", true + case 2716: + return "inova-ip-disco", true + case 2717: + return "pn-requester", true + case 2718: + return "pn-requester2", true + case 2719: + return "scan-change", true + case 2720: + return "wkars", true + case 2721: + return "smart-diagnose", true + case 2722: + return "proactivesrvr", true + case 2723: + return "watchdog-nt", true + case 2724: + return "qotps", true + case 2725: + return "msolap-ptp2", true + case 2726: + return "tams", true + case 2727: + return "mgcp-callagent", true + case 2728: + return "sqdr", true + case 2729: + return "tcim-control", true + case 2730: + return "nec-raidplus", true + case 2731: + return "fyre-messanger", true + case 2732: + return "g5m", true + case 2733: + return "signet-ctf", true + case 2734: + return "ccs-software", true + case 2735: + return "netiq-mc", true + case 2736: + return "radwiz-nms-srv", true + case 2737: + return "srp-feedback", true + case 2738: + return "ndl-tcp-ois-gw", true + case 2739: + return "tn-timing", true + case 2740: + return "alarm", true + case 2741: + return "tsb", true + case 2742: + return "tsb2", true + case 2743: + return "murx", true + case 2744: + return "honyaku", true + case 2745: + return "urbisnet", true + case 2746: + return "cpudpencap", true + case 2747: + return "fjippol-swrly", true + case 2748: + return "fjippol-polsvr", true + case 2749: + return "fjippol-cnsl", true + case 2750: + return "fjippol-port1", true + case 2751: + return "fjippol-port2", true + case 2752: + return "rsisysaccess", true + case 2753: + return "de-spot", true + case 2754: + return "apollo-cc", true + case 2755: + return "expresspay", true + case 2756: + return "simplement-tie", true + case 2757: + return "cnrp", true + case 2758: + return "apollo-status", true + case 2759: + return "apollo-gms", true + case 2760: + return "sabams", true + case 2761: + return "dicom-iscl", true + case 2762: + return "dicom-tls", true + case 2763: + return "desktop-dna", true + case 2764: + return "data-insurance", true + case 2765: + return "qip-audup", true + case 2766: + return "compaq-scp", true + case 2767: + return "uadtc", true + case 2768: + return "uacs", true + case 2769: + return "exce", true + case 2770: + return "veronica", true + case 2771: + return "vergencecm", true + case 2772: + return "auris", true + case 2773: + return "rbakcup1", true + case 2774: + return "rbakcup2", true + case 2775: + return "smpp", true + case 2776: + return "ridgeway1", true + case 2777: + return "ridgeway2", true + case 2778: + return "gwen-sonya", true + case 2779: + return "lbc-sync", true + case 2780: + return "lbc-control", true + case 2781: + return "whosells", true + case 2782: + return "everydayrc", true + case 2783: + return "aises", true + case 2784: + return "www-dev", true + case 2785: + return "aic-np", true + case 2786: + return "aic-oncrpc", true + case 2787: + return "piccolo", true + case 2788: + return "fryeserv", true + case 2789: + return "media-agent", true + case 2790: + return "plgproxy", true + case 2791: + return "mtport-regist", true + case 2792: + return "f5-globalsite", true + case 2793: + return "initlsmsad", true + case 2795: + return "livestats", true + case 2796: + return "ac-tech", true + case 2797: + return "esp-encap", true + case 2798: + return "tmesis-upshot", true + case 2799: + return "icon-discover", true + case 2800: + return "acc-raid", true + case 2801: + return "igcp", true + case 2802: + return "veritas-udp1", true + case 2803: + return "btprjctrl", true + case 2804: + return "dvr-esm", true + case 2805: + return "wta-wsp-s", true + case 2806: + return "cspuni", true + case 2807: + return "cspmulti", true + case 2808: + return "j-lan-p", true + case 2809: + return "corbaloc", true + case 2810: + return "netsteward", true + case 2811: + return "gsiftp", true + case 2812: + return "atmtcp", true + case 2813: + return "llm-pass", true + case 2814: + return "llm-csv", true + case 2815: + return "lbc-measure", true + case 2816: + return "lbc-watchdog", true + case 2817: + return "nmsigport", true + case 2818: + return "rmlnk", true + case 2819: + return "fc-faultnotify", true + case 2820: + return "univision", true + case 2821: + return "vrts-at-port", true + case 2822: + return "ka0wuc", true + case 2823: + return "cqg-netlan", true + case 2824: + return "cqg-netlan-1", true + case 2826: + return "slc-systemlog", true + case 2827: + return "slc-ctrlrloops", true + case 2828: + return "itm-lm", true + case 2829: + return "silkp1", true + case 2830: + return "silkp2", true + case 2831: + return "silkp3", true + case 2832: + return "silkp4", true + case 2833: + return "glishd", true + case 2834: + return "evtp", true + case 2835: + return "evtp-data", true + case 2836: + return "catalyst", true + case 2837: + return "repliweb", true + case 2838: + return "starbot", true + case 2839: + return "nmsigport", true + case 2840: + return "l3-exprt", true + case 2841: + return "l3-ranger", true + case 2842: + return "l3-hawk", true + case 2843: + return "pdnet", true + case 2844: + return "bpcp-poll", true + case 2845: + return "bpcp-trap", true + case 2846: + return "aimpp-hello", true + case 2847: + return "aimpp-port-req", true + case 2848: + return "amt-blc-port", true + case 2849: + return "fxp", true + case 2850: + return "metaconsole", true + case 2851: + return "webemshttp", true + case 2852: + return "bears-01", true + case 2853: + return "ispipes", true + case 2854: + return "infomover", true + case 2856: + return "cesdinv", true + case 2857: + return "simctlp", true + case 2858: + return "ecnp", true + case 2859: + return "activememory", true + case 2860: + return "dialpad-voice1", true + case 2861: + return "dialpad-voice2", true + case 2862: + return "ttg-protocol", true + case 2863: + return "sonardata", true + case 2864: + return "astronova-main", true + case 2865: + return "pit-vpn", true + case 2866: + return "iwlistener", true + case 2867: + return "esps-portal", true + case 2868: + return "npep-messaging", true + case 2869: + return "icslap", true + case 2870: + return "daishi", true + case 2871: + return "msi-selectplay", true + case 2872: + return "radix", true + case 2873: + return "psrt", true + case 2874: + return "dxmessagebase1", true + case 2875: + return "dxmessagebase2", true + case 2876: + return "sps-tunnel", true + case 2877: + return "bluelance", true + case 2878: + return "aap", true + case 2879: + return "ucentric-ds", true + case 2880: + return "synapse", true + case 2881: + return "ndsp", true + case 2882: + return "ndtp", true + case 2883: + return "ndnp", true + case 2884: + return "flashmsg", true + case 2885: + return "topflow", true + case 2886: + return "responselogic", true + case 2887: + return "aironetddp", true + case 2888: + return "spcsdlobby", true + case 2889: + return "rsom", true + case 2890: + return "cspclmulti", true + case 2891: + return "cinegrfx-elmd", true + case 2892: + return "snifferdata", true + case 2893: + return "vseconnector", true + case 2894: + return "abacus-remote", true + case 2895: + return "natuslink", true + case 2896: + return "ecovisiong6-1", true + case 2897: + return "citrix-rtmp", true + case 2898: + return "appliance-cfg", true + case 2899: + return "powergemplus", true + case 2900: + return "quicksuite", true + case 2901: + return "allstorcns", true + case 2902: + return "netaspi", true + case 2903: + return "suitcase", true + case 2904: + return "m2ua", true + case 2906: + return "caller9", true + case 2907: + return "webmethods-b2b", true + case 2908: + return "mao", true + case 2909: + return "funk-dialout", true + case 2910: + return "tdaccess", true + case 2911: + return "blockade", true + case 2912: + return "epicon", true + case 2913: + return "boosterware", true + case 2914: + return "gamelobby", true + case 2915: + return "tksocket", true + case 2916: + return "elvin-server", true + case 2917: + return "elvin-client", true + case 2918: + return "kastenchasepad", true + case 2919: + return "roboer", true + case 2920: + return "roboeda", true + case 2921: + return "cesdcdman", true + case 2922: + return "cesdcdtrn", true + case 2923: + return "wta-wsp-wtp-s", true + case 2924: + return "precise-vip", true + case 2926: + return "mobile-file-dl", true + case 2927: + return "unimobilectrl", true + case 2928: + return "redstone-cpss", true + case 2929: + return "amx-webadmin", true + case 2930: + return "amx-weblinx", true + case 2931: + return "circle-x", true + case 2932: + return "incp", true + case 2933: + return "4-tieropmgw", true + case 2934: + return "4-tieropmcli", true + case 2935: + return "qtp", true + case 2936: + return "otpatch", true + case 2937: + return "pnaconsult-lm", true + case 2938: + return "sm-pas-1", true + case 2939: + return "sm-pas-2", true + case 2940: + return "sm-pas-3", true + case 2941: + return "sm-pas-4", true + case 2942: + return "sm-pas-5", true + case 2943: + return "ttnrepository", true + case 2944: + return "megaco-h248", true + case 2945: + return "h248-binary", true + case 2946: + return "fjsvmpor", true + case 2947: + return "gpsd", true + case 2948: + return "wap-push", true + case 2949: + return "wap-pushsecure", true + case 2950: + return "esip", true + case 2951: + return "ottp", true + case 2952: + return "mpfwsas", true + case 2953: + return "ovalarmsrv", true + case 2954: + return "ovalarmsrv-cmd", true + case 2955: + return "csnotify", true + case 2956: + return "ovrimosdbman", true + case 2957: + return "jmact5", true + case 2958: + return "jmact6", true + case 2959: + return "rmopagt", true + case 2960: + return "dfoxserver", true + case 2961: + return "boldsoft-lm", true + case 2962: + return "iph-policy-cli", true + case 2963: + return "iph-policy-adm", true + case 2964: + return "bullant-srap", true + case 2965: + return "bullant-rap", true + case 2966: + return "idp-infotrieve", true + case 2967: + return "ssc-agent", true + case 2968: + return "enpp", true + case 2969: + return "essp", true + case 2970: + return "index-net", true + case 2971: + return "netclip", true + case 2972: + return "pmsm-webrctl", true + case 2973: + return "svnetworks", true + case 2974: + return "signal", true + case 2975: + return "fjmpcm", true + case 2976: + return "cns-srv-port", true + case 2977: + return "ttc-etap-ns", true + case 2978: + return "ttc-etap-ds", true + case 2979: + return "h263-video", true + case 2980: + return "wimd", true + case 2981: + return "mylxamport", true + case 2982: + return "iwb-whiteboard", true + case 2983: + return "netplan", true + case 2984: + return "hpidsadmin", true + case 2985: + return "hpidsagent", true + case 2986: + return "stonefalls", true + case 2987: + return "identify", true + case 2988: + return "hippad", true + case 2989: + return "zarkov", true + case 2990: + return "boscap", true + case 2991: + return "wkstn-mon", true + case 2992: + return "avenyo", true + case 2993: + return "veritas-vis1", true + case 2994: + return "veritas-vis2", true + case 2995: + return "idrs", true + case 2996: + return "vsixml", true + case 2997: + return "rebol", true + case 2998: + return "realsecure", true + case 2999: + return "remoteware-un", true + case 3000: + return "hbci", true + case 3002: + return "exlm-agent", true + case 3003: + return "cgms", true + case 3004: + return "csoftragent", true + case 3005: + return "geniuslm", true + case 3006: + return "ii-admin", true + case 3007: + return "lotusmtap", true + case 3008: + return "midnight-tech", true + case 3009: + return "pxc-ntfy", true + case 3010: + return "ping-pong", true + case 3011: + return "trusted-web", true + case 3012: + return "twsdss", true + case 3013: + return "gilatskysurfer", true + case 3014: + return "broker-service", true + case 3015: + return "nati-dstp", true + case 3016: + return "notify-srvr", true + case 3017: + return "event-listener", true + case 3018: + return "srvc-registry", true + case 3019: + return "resource-mgr", true + case 3020: + return "cifs", true + case 3021: + return "agriserver", true + case 3022: + return "csregagent", true + case 3023: + return "magicnotes", true + case 3024: + return "nds-sso", true + case 3025: + return "arepa-raft", true + case 3026: + return "agri-gateway", true + case 3027: + return "LiebDevMgmt-C", true + case 3028: + return "LiebDevMgmt-DM", true + case 3029: + return "LiebDevMgmt-A", true + case 3030: + return "arepa-cas", true + case 3031: + return "eppc", true + case 3032: + return "redwood-chat", true + case 3033: + return "pdb", true + case 3034: + return "osmosis-aeea", true + case 3035: + return "fjsv-gssagt", true + case 3036: + return "hagel-dump", true + case 3037: + return "hp-san-mgmt", true + case 3038: + return "santak-ups", true + case 3039: + return "cogitate", true + case 3040: + return "tomato-springs", true + case 3041: + return "di-traceware", true + case 3042: + return "journee", true + case 3043: + return "brp", true + case 3044: + return "epp", true + case 3045: + return "responsenet", true + case 3046: + return "di-ase", true + case 3047: + return "hlserver", true + case 3048: + return "pctrader", true + case 3049: + return "nsws", true + case 3050: + return "gds-db", true + case 3051: + return "galaxy-server", true + case 3052: + return "apc-3052", true + case 3053: + return "dsom-server", true + case 3054: + return "amt-cnf-prot", true + case 3055: + return "policyserver", true + case 3056: + return "cdl-server", true + case 3057: + return "goahead-fldup", true + case 3058: + return "videobeans", true + case 3059: + return "qsoft", true + case 3060: + return "interserver", true + case 3061: + return "cautcpd", true + case 3062: + return "ncacn-ip-tcp", true + case 3063: + return "ncadg-ip-udp", true + case 3064: + return "rprt", true + case 3065: + return "slinterbase", true + case 3066: + return "netattachsdmp", true + case 3067: + return "fjhpjp", true + case 3068: + return "ls3bcast", true + case 3069: + return "ls3", true + case 3070: + return "mgxswitch", true + case 3072: + return "csd-monitor", true + case 3073: + return "vcrp", true + case 3074: + return "xbox", true + case 3075: + return "orbix-locator", true + case 3076: + return "orbix-config", true + case 3077: + return "orbix-loc-ssl", true + case 3078: + return "orbix-cfg-ssl", true + case 3079: + return "lv-frontpanel", true + case 3080: + return "stm-pproc", true + case 3081: + return "tl1-lv", true + case 3082: + return "tl1-raw", true + case 3083: + return "tl1-telnet", true + case 3084: + return "itm-mccs", true + case 3085: + return "pcihreq", true + case 3086: + return "jdl-dbkitchen", true + case 3087: + return "asoki-sma", true + case 3088: + return "xdtp", true + case 3089: + return "ptk-alink", true + case 3090: + return "stss", true + case 3091: + return "1ci-smcs", true + case 3093: + return "rapidmq-center", true + case 3094: + return "rapidmq-reg", true + case 3095: + return "panasas", true + case 3096: + return "ndl-aps", true + case 3098: + return "umm-port", true + case 3099: + return "chmd", true + case 3100: + return "opcon-xps", true + case 3101: + return "hp-pxpib", true + case 3102: + return "slslavemon", true + case 3103: + return "autocuesmi", true + case 3104: + return "autocuetime", true + case 3105: + return "cardbox", true + case 3106: + return "cardbox-http", true + case 3107: + return "business", true + case 3108: + return "geolocate", true + case 3109: + return "personnel", true + case 3110: + return "sim-control", true + case 3111: + return "wsynch", true + case 3112: + return "ksysguard", true + case 3113: + return "cs-auth-svr", true + case 3114: + return "ccmad", true + case 3115: + return "mctet-master", true + case 3116: + return "mctet-gateway", true + case 3117: + return "mctet-jserv", true + case 3118: + return "pkagent", true + case 3119: + return "d2000kernel", true + case 3120: + return "d2000webserver", true + case 3122: + return "vtr-emulator", true + case 3123: + return "edix", true + case 3124: + return "beacon-port", true + case 3125: + return "a13-an", true + case 3127: + return "ctx-bridge", true + case 3128: + return "ndl-aas", true + case 3129: + return "netport-id", true + case 3130: + return "icpv2", true + case 3131: + return "netbookmark", true + case 3132: + return "ms-rule-engine", true + case 3133: + return "prism-deploy", true + case 3134: + return "ecp", true + case 3135: + return "peerbook-port", true + case 3136: + return "grubd", true + case 3137: + return "rtnt-1", true + case 3138: + return "rtnt-2", true + case 3139: + return "incognitorv", true + case 3140: + return "ariliamulti", true + case 3141: + return "vmodem", true + case 3142: + return "rdc-wh-eos", true + case 3143: + return "seaview", true + case 3144: + return "tarantella", true + case 3145: + return "csi-lfap", true + case 3146: + return "bears-02", true + case 3147: + return "rfio", true + case 3148: + return "nm-game-admin", true + case 3149: + return "nm-game-server", true + case 3150: + return "nm-asses-admin", true + case 3151: + return "nm-assessor", true + case 3152: + return "feitianrockey", true + case 3153: + return "s8-client-port", true + case 3154: + return "ccmrmi", true + case 3155: + return "jpegmpeg", true + case 3156: + return "indura", true + case 3157: + return "e3consultants", true + case 3158: + return "stvp", true + case 3159: + return "navegaweb-port", true + case 3160: + return "tip-app-server", true + case 3161: + return "doc1lm", true + case 3162: + return "sflm", true + case 3163: + return "res-sap", true + case 3164: + return "imprs", true + case 3165: + return "newgenpay", true + case 3166: + return "sossecollector", true + case 3167: + return "nowcontact", true + case 3168: + return "poweronnud", true + case 3169: + return "serverview-as", true + case 3170: + return "serverview-asn", true + case 3171: + return "serverview-gf", true + case 3172: + return "serverview-rm", true + case 3173: + return "serverview-icc", true + case 3174: + return "armi-server", true + case 3175: + return "t1-e1-over-ip", true + case 3176: + return "ars-master", true + case 3177: + return "phonex-port", true + case 3178: + return "radclientport", true + case 3179: + return "h2gf-w-2m", true + case 3180: + return "mc-brk-srv", true + case 3181: + return "bmcpatrolagent", true + case 3182: + return "bmcpatrolrnvu", true + case 3183: + return "cops-tls", true + case 3184: + return "apogeex-port", true + case 3185: + return "smpppd", true + case 3186: + return "iiw-port", true + case 3187: + return "odi-port", true + case 3188: + return "brcm-comm-port", true + case 3189: + return "pcle-infex", true + case 3190: + return "csvr-proxy", true + case 3191: + return "csvr-sslproxy", true + case 3192: + return "firemonrcc", true + case 3193: + return "spandataport", true + case 3194: + return "magbind", true + case 3195: + return "ncu-1", true + case 3196: + return "ncu-2", true + case 3197: + return "embrace-dp-s", true + case 3198: + return "embrace-dp-c", true + case 3199: + return "dmod-workspace", true + case 3200: + return "tick-port", true + case 3201: + return "cpq-tasksmart", true + case 3202: + return "intraintra", true + case 3203: + return "netwatcher-mon", true + case 3204: + return "netwatcher-db", true + case 3205: + return "isns", true + case 3206: + return "ironmail", true + case 3207: + return "vx-auth-port", true + case 3208: + return "pfu-prcallback", true + case 3209: + return "netwkpathengine", true + case 3210: + return "flamenco-proxy", true + case 3211: + return "avsecuremgmt", true + case 3212: + return "surveyinst", true + case 3213: + return "neon24x7", true + case 3214: + return "jmq-daemon-1", true + case 3215: + return "jmq-daemon-2", true + case 3216: + return "ferrari-foam", true + case 3217: + return "unite", true + case 3218: + return "smartpackets", true + case 3219: + return "wms-messenger", true + case 3220: + return "xnm-ssl", true + case 3221: + return "xnm-clear-text", true + case 3222: + return "glbp", true + case 3223: + return "digivote", true + case 3224: + return "aes-discovery", true + case 3225: + return "fcip-port", true + case 3226: + return "isi-irp", true + case 3227: + return "dwnmshttp", true + case 3228: + return "dwmsgserver", true + case 3229: + return "global-cd-port", true + case 3230: + return "sftdst-port", true + case 3231: + return "vidigo", true + case 3232: + return "mdtp", true + case 3233: + return "whisker", true + case 3234: + return "alchemy", true + case 3235: + return "mdap-port", true + case 3236: + return "apparenet-ts", true + case 3237: + return "apparenet-tps", true + case 3238: + return "apparenet-as", true + case 3239: + return "apparenet-ui", true + case 3240: + return "triomotion", true + case 3241: + return "sysorb", true + case 3242: + return "sdp-id-port", true + case 3243: + return "timelot", true + case 3244: + return "onesaf", true + case 3245: + return "vieo-fe", true + case 3246: + return "dvt-system", true + case 3247: + return "dvt-data", true + case 3248: + return "procos-lm", true + case 3249: + return "ssp", true + case 3250: + return "hicp", true + case 3251: + return "sysscanner", true + case 3252: + return "dhe", true + case 3253: + return "pda-data", true + case 3254: + return "pda-sys", true + case 3255: + return "semaphore", true + case 3256: + return "cpqrpm-agent", true + case 3257: + return "cpqrpm-server", true + case 3258: + return "ivecon-port", true + case 3259: + return "epncdp2", true + case 3260: + return "iscsi-target", true + case 3261: + return "winshadow", true + case 3262: + return "necp", true + case 3263: + return "ecolor-imager", true + case 3264: + return "ccmail", true + case 3265: + return "altav-tunnel", true + case 3266: + return "ns-cfg-server", true + case 3267: + return "ibm-dial-out", true + case 3268: + return "msft-gc", true + case 3269: + return "msft-gc-ssl", true + case 3270: + return "verismart", true + case 3271: + return "csoft-prev", true + case 3272: + return "user-manager", true + case 3273: + return "sxmp", true + case 3274: + return "ordinox-server", true + case 3275: + return "samd", true + case 3276: + return "maxim-asics", true + case 3277: + return "awg-proxy", true + case 3278: + return "lkcmserver", true + case 3279: + return "admind", true + case 3280: + return "vs-server", true + case 3281: + return "sysopt", true + case 3282: + return "datusorb", true + case 3283: + return "Apple Remote Desktop (Net Assistant)", true + case 3284: + return "4talk", true + case 3285: + return "plato", true + case 3286: + return "e-net", true + case 3287: + return "directvdata", true + case 3288: + return "cops", true + case 3289: + return "enpc", true + case 3290: + return "caps-lm", true + case 3291: + return "sah-lm", true + case 3292: + return "cart-o-rama", true + case 3293: + return "fg-fps", true + case 3294: + return "fg-gip", true + case 3295: + return "dyniplookup", true + case 3296: + return "rib-slm", true + case 3297: + return "cytel-lm", true + case 3298: + return "deskview", true + case 3299: + return "pdrncs", true + case 3301: + return "tarantool", true + case 3302: + return "mcs-fastmail", true + case 3303: + return "opsession-clnt", true + case 3304: + return "opsession-srvr", true + case 3305: + return "odette-ftp", true + case 3306: + return "mysql", true + case 3307: + return "opsession-prxy", true + case 3308: + return "tns-server", true + case 3309: + return "tns-adv", true + case 3310: + return "dyna-access", true + case 3311: + return "mcns-tel-ret", true + case 3312: + return "appman-server", true + case 3313: + return "uorb", true + case 3314: + return "uohost", true + case 3315: + return "cdid", true + case 3316: + return "aicc-cmi", true + case 3317: + return "vsaiport", true + case 3318: + return "ssrip", true + case 3319: + return "sdt-lmd", true + case 3320: + return "officelink2000", true + case 3321: + return "vnsstr", true + case 3326: + return "sftu", true + case 3327: + return "bbars", true + case 3328: + return "egptlm", true + case 3329: + return "hp-device-disc", true + case 3330: + return "mcs-calypsoicf", true + case 3331: + return "mcs-messaging", true + case 3332: + return "mcs-mailsvr", true + case 3333: + return "dec-notes", true + case 3334: + return "directv-web", true + case 3335: + return "directv-soft", true + case 3336: + return "directv-tick", true + case 3337: + return "directv-catlg", true + case 3338: + return "anet-b", true + case 3339: + return "anet-l", true + case 3340: + return "anet-m", true + case 3341: + return "anet-h", true + case 3342: + return "webtie", true + case 3343: + return "ms-cluster-net", true + case 3344: + return "bnt-manager", true + case 3345: + return "influence", true + case 3346: + return "trnsprntproxy", true + case 3347: + return "phoenix-rpc", true + case 3348: + return "pangolin-laser", true + case 3349: + return "chevinservices", true + case 3350: + return "findviatv", true + case 3351: + return "btrieve", true + case 3352: + return "ssql", true + case 3353: + return "fatpipe", true + case 3354: + return "suitjd", true + case 3355: + return "ordinox-dbase", true + case 3356: + return "upnotifyps", true + case 3357: + return "adtech-test", true + case 3358: + return "mpsysrmsvr", true + case 3359: + return "wg-netforce", true + case 3360: + return "kv-server", true + case 3361: + return "kv-agent", true + case 3362: + return "dj-ilm", true + case 3363: + return "nati-vi-server", true + case 3364: + return "creativeserver", true + case 3365: + return "contentserver", true + case 3366: + return "creativepartnr", true + case 3372: + return "tip2", true + case 3373: + return "lavenir-lm", true + case 3374: + return "cluster-disc", true + case 3375: + return "vsnm-agent", true + case 3376: + return "cdbroker", true + case 3377: + return "cogsys-lm", true + case 3378: + return "wsicopy", true + case 3379: + return "socorfs", true + case 3380: + return "sns-channels", true + case 3381: + return "geneous", true + case 3382: + return "fujitsu-neat", true + case 3383: + return "esp-lm", true + case 3384: + return "hp-clic", true + case 3385: + return "qnxnetman", true + case 3386: + return "gprs-sig", true + case 3387: + return "backroomnet", true + case 3388: + return "cbserver", true + case 3389: + return "ms-wbt-server", true + case 3390: + return "dsc", true + case 3391: + return "savant", true + case 3392: + return "efi-lm", true + case 3393: + return "d2k-tapestry1", true + case 3394: + return "d2k-tapestry2", true + case 3395: + return "dyna-lm", true + case 3396: + return "printer-agent", true + case 3397: + return "cloanto-lm", true + case 3398: + return "mercantile", true + case 3399: + return "csms", true + case 3400: + return "csms2", true + case 3401: + return "filecast", true + case 3402: + return "fxaengine-net", true + case 3405: + return "nokia-ann-ch1", true + case 3406: + return "nokia-ann-ch2", true + case 3407: + return "ldap-admin", true + case 3408: + return "BESApi", true + case 3409: + return "networklens", true + case 3410: + return "networklenss", true + case 3411: + return "biolink-auth", true + case 3412: + return "xmlblaster", true + case 3413: + return "svnet", true + case 3414: + return "wip-port", true + case 3415: + return "bcinameservice", true + case 3416: + return "commandport", true + case 3417: + return "csvr", true + case 3418: + return "rnmap", true + case 3419: + return "softaudit", true + case 3420: + return "ifcp-port", true + case 3421: + return "bmap", true + case 3422: + return "rusb-sys-port", true + case 3423: + return "xtrm", true + case 3424: + return "xtrms", true + case 3425: + return "agps-port", true + case 3426: + return "arkivio", true + case 3427: + return "websphere-snmp", true + case 3428: + return "twcss", true + case 3429: + return "gcsp", true + case 3430: + return "ssdispatch", true + case 3431: + return "ndl-als", true + case 3432: + return "osdcp", true + case 3433: + return "opnet-smp", true + case 3434: + return "opencm", true + case 3435: + return "pacom", true + case 3436: + return "gc-config", true + case 3437: + return "autocueds", true + case 3438: + return "spiral-admin", true + case 3439: + return "hri-port", true + case 3440: + return "ans-console", true + case 3441: + return "connect-client", true + case 3442: + return "connect-server", true + case 3443: + return "ov-nnm-websrv", true + case 3444: + return "denali-server", true + case 3445: + return "monp", true + case 3446: + return "3comfaxrpc", true + case 3447: + return "directnet", true + case 3448: + return "dnc-port", true + case 3449: + return "hotu-chat", true + case 3450: + return "castorproxy", true + case 3451: + return "asam", true + case 3452: + return "sabp-signal", true + case 3453: + return "pscupd", true + case 3454: + return "mira", true + case 3455: + return "prsvp", true + case 3456: + return "vat", true + case 3457: + return "vat-control", true + case 3458: + return "d3winosfi", true + case 3459: + return "integral", true + case 3460: + return "edm-manager", true + case 3461: + return "edm-stager", true + case 3462: + return "edm-std-notify", true + case 3463: + return "edm-adm-notify", true + case 3464: + return "edm-mgr-sync", true + case 3465: + return "edm-mgr-cntrl", true + case 3466: + return "workflow", true + case 3467: + return "rcst", true + case 3468: + return "ttcmremotectrl", true + case 3469: + return "pluribus", true + case 3470: + return "jt400", true + case 3471: + return "jt400-ssl", true + case 3472: + return "jaugsremotec-1", true + case 3473: + return "jaugsremotec-2", true + case 3474: + return "ttntspauto", true + case 3475: + return "genisar-port", true + case 3476: + return "nppmp", true + case 3477: + return "ecomm", true + case 3478: + return "stun", true + case 3479: + return "twrpc", true + case 3480: + return "plethora", true + case 3481: + return "cleanerliverc", true + case 3482: + return "vulture", true + case 3483: + return "slim-devices", true + case 3484: + return "gbs-stp", true + case 3485: + return "celatalk", true + case 3486: + return "ifsf-hb-port", true + case 3487: + return "ltcudp", true + case 3488: + return "fs-rh-srv", true + case 3489: + return "dtp-dia", true + case 3490: + return "colubris", true + case 3491: + return "swr-port", true + case 3492: + return "tvdumtray-port", true + case 3493: + return "nut", true + case 3494: + return "ibm3494", true + case 3495: + return "seclayer-tcp", true + case 3496: + return "seclayer-tls", true + case 3497: + return "ipether232port", true + case 3498: + return "dashpas-port", true + case 3499: + return "sccip-media", true + case 3500: + return "rtmp-port", true + case 3501: + return "isoft-p2p", true + case 3502: + return "avinstalldisc", true + case 3503: + return "lsp-ping", true + case 3504: + return "ironstorm", true + case 3505: + return "ccmcomm", true + case 3506: + return "apc-3506", true + case 3507: + return "nesh-broker", true + case 3508: + return "interactionweb", true + case 3509: + return "vt-ssl", true + case 3510: + return "xss-port", true + case 3511: + return "webmail-2", true + case 3512: + return "aztec", true + case 3513: + return "arcpd", true + case 3514: + return "must-p2p", true + case 3515: + return "must-backplane", true + case 3516: + return "smartcard-port", true + case 3517: + return "802-11-iapp", true + case 3518: + return "artifact-msg", true + case 3519: + return "galileo", true + case 3520: + return "galileolog", true + case 3521: + return "mc3ss", true + case 3522: + return "nssocketport", true + case 3523: + return "odeumservlink", true + case 3524: + return "ecmport", true + case 3525: + return "eisport", true + case 3526: + return "starquiz-port", true + case 3527: + return "beserver-msg-q", true + case 3528: + return "jboss-iiop", true + case 3529: + return "jboss-iiop-ssl", true + case 3530: + return "gf", true + case 3531: + return "joltid", true + case 3532: + return "raven-rmp", true + case 3533: + return "raven-rdp", true + case 3534: + return "urld-port", true + case 3535: + return "ms-la", true + case 3536: + return "snac", true + case 3537: + return "ni-visa-remote", true + case 3538: + return "ibm-diradm", true + case 3539: + return "ibm-diradm-ssl", true + case 3540: + return "pnrp-port", true + case 3541: + return "voispeed-port", true + case 3542: + return "hacl-monitor", true + case 3543: + return "qftest-lookup", true + case 3544: + return "teredo", true + case 3545: + return "camac", true + case 3547: + return "symantec-sim", true + case 3548: + return "interworld", true + case 3549: + return "tellumat-nms", true + case 3550: + return "ssmpp", true + case 3551: + return "apcupsd", true + case 3552: + return "taserver", true + case 3553: + return "rbr-discovery", true + case 3554: + return "questnotify", true + case 3555: + return "razor", true + case 3556: + return "sky-transport", true + case 3557: + return "personalos-001", true + case 3558: + return "mcp-port", true + case 3559: + return "cctv-port", true + case 3560: + return "iniserve-port", true + case 3561: + return "bmc-onekey", true + case 3562: + return "sdbproxy", true + case 3563: + return "watcomdebug", true + case 3564: + return "esimport", true + case 3567: + return "dof-eps", true + case 3568: + return "dof-tunnel-sec", true + case 3569: + return "mbg-ctrl", true + case 3570: + return "mccwebsvr-port", true + case 3571: + return "megardsvr-port", true + case 3572: + return "megaregsvrport", true + case 3573: + return "tag-ups-1", true + case 3574: + return "dmaf-caster", true + case 3575: + return "ccm-port", true + case 3576: + return "cmc-port", true + case 3577: + return "config-port", true + case 3578: + return "data-port", true + case 3579: + return "ttat3lb", true + case 3580: + return "nati-svrloc", true + case 3581: + return "kfxaclicensing", true + case 3582: + return "press", true + case 3583: + return "canex-watch", true + case 3584: + return "u-dbap", true + case 3585: + return "emprise-lls", true + case 3586: + return "emprise-lsc", true + case 3587: + return "p2pgroup", true + case 3588: + return "sentinel", true + case 3589: + return "isomair", true + case 3590: + return "wv-csp-sms", true + case 3591: + return "gtrack-server", true + case 3592: + return "gtrack-ne", true + case 3593: + return "bpmd", true + case 3594: + return "mediaspace", true + case 3595: + return "shareapp", true + case 3596: + return "iw-mmogame", true + case 3597: + return "a14", true + case 3598: + return "a15", true + case 3599: + return "quasar-server", true + case 3600: + return "trap-daemon", true + case 3601: + return "visinet-gui", true + case 3602: + return "infiniswitchcl", true + case 3603: + return "int-rcv-cntrl", true + case 3604: + return "bmc-jmx-port", true + case 3605: + return "comcam-io", true + case 3606: + return "splitlock", true + case 3607: + return "precise-i3", true + case 3608: + return "trendchip-dcp", true + case 3609: + return "cpdi-pidas-cm", true + case 3610: + return "echonet", true + case 3611: + return "six-degrees", true + case 3612: + return "dataprotector", true + case 3613: + return "alaris-disc", true + case 3614: + return "sigma-port", true + case 3615: + return "start-network", true + case 3616: + return "cd3o-protocol", true + case 3617: + return "sharp-server", true + case 3618: + return "aairnet-1", true + case 3619: + return "aairnet-2", true + case 3620: + return "ep-pcp", true + case 3621: + return "ep-nsp", true + case 3622: + return "ff-lr-port", true + case 3623: + return "haipe-discover", true + case 3624: + return "dist-upgrade", true + case 3625: + return "volley", true + case 3626: + return "bvcdaemon-port", true + case 3627: + return "jamserverport", true + case 3628: + return "ept-machine", true + case 3629: + return "escvpnet", true + case 3630: + return "cs-remote-db", true + case 3631: + return "cs-services", true + case 3632: + return "distcc", true + case 3633: + return "wacp", true + case 3634: + return "hlibmgr", true + case 3635: + return "sdo", true + case 3636: + return "servistaitsm", true + case 3637: + return "scservp", true + case 3638: + return "ehp-backup", true + case 3639: + return "xap-ha", true + case 3640: + return "netplay-port1", true + case 3641: + return "netplay-port2", true + case 3642: + return "juxml-port", true + case 3643: + return "audiojuggler", true + case 3644: + return "ssowatch", true + case 3645: + return "cyc", true + case 3646: + return "xss-srv-port", true + case 3647: + return "splitlock-gw", true + case 3648: + return "fjcp", true + case 3649: + return "nmmp", true + case 3650: + return "prismiq-plugin", true + case 3651: + return "xrpc-registry", true + case 3652: + return "vxcrnbuport", true + case 3653: + return "tsp", true + case 3654: + return "vaprtm", true + case 3655: + return "abatemgr", true + case 3656: + return "abatjss", true + case 3657: + return "immedianet-bcn", true + case 3658: + return "ps-ams", true + case 3659: + return "apple-sasl", true + case 3660: + return "can-nds-ssl", true + case 3661: + return "can-ferret-ssl", true + case 3662: + return "pserver", true + case 3663: + return "dtp", true + case 3664: + return "ups-engine", true + case 3665: + return "ent-engine", true + case 3666: + return "eserver-pap", true + case 3667: + return "infoexch", true + case 3668: + return "dell-rm-port", true + case 3669: + return "casanswmgmt", true + case 3670: + return "smile", true + case 3671: + return "efcp", true + case 3672: + return "lispworks-orb", true + case 3673: + return "mediavault-gui", true + case 3674: + return "wininstall-ipc", true + case 3675: + return "calltrax", true + case 3676: + return "va-pacbase", true + case 3677: + return "roverlog", true + case 3678: + return "ipr-dglt", true + case 3679: + return "Escale (Newton Dock)", true + case 3680: + return "npds-tracker", true + case 3681: + return "bts-x73", true + case 3682: + return "cas-mapi", true + case 3683: + return "bmc-ea", true + case 3684: + return "faxstfx-port", true + case 3685: + return "dsx-agent", true + case 3686: + return "tnmpv2", true + case 3687: + return "simple-push", true + case 3688: + return "simple-push-s", true + case 3689: + return "daap", true + case 3690: + return "svn", true + case 3691: + return "magaya-network", true + case 3692: + return "intelsync", true + case 3695: + return "bmc-data-coll", true + case 3696: + return "telnetcpcd", true + case 3697: + return "nw-license", true + case 3698: + return "sagectlpanel", true + case 3699: + return "kpn-icw", true + case 3700: + return "lrs-paging", true + case 3701: + return "netcelera", true + case 3702: + return "ws-discovery", true + case 3703: + return "adobeserver-3", true + case 3704: + return "adobeserver-4", true + case 3705: + return "adobeserver-5", true + case 3706: + return "rt-event", true + case 3707: + return "rt-event-s", true + case 3708: + return "sun-as-iiops", true + case 3709: + return "ca-idms", true + case 3710: + return "portgate-auth", true + case 3711: + return "edb-server2", true + case 3712: + return "sentinel-ent", true + case 3713: + return "tftps", true + case 3714: + return "delos-dms", true + case 3715: + return "anoto-rendezv", true + case 3716: + return "wv-csp-sms-cir", true + case 3717: + return "wv-csp-udp-cir", true + case 3718: + return "opus-services", true + case 3719: + return "itelserverport", true + case 3720: + return "ufastro-instr", true + case 3721: + return "xsync", true + case 3722: + return "xserveraid", true + case 3723: + return "sychrond", true + case 3724: + return "blizwow", true + case 3725: + return "na-er-tip", true + case 3726: + return "array-manager", true + case 3727: + return "e-mdu", true + case 3728: + return "e-woa", true + case 3729: + return "fksp-audit", true + case 3730: + return "client-ctrl", true + case 3731: + return "smap", true + case 3732: + return "m-wnn", true + case 3733: + return "multip-msg", true + case 3734: + return "synel-data", true + case 3735: + return "pwdis", true + case 3736: + return "rs-rmi", true + case 3738: + return "versatalk", true + case 3739: + return "launchbird-lm", true + case 3740: + return "heartbeat", true + case 3741: + return "wysdma", true + case 3742: + return "cst-port", true + case 3743: + return "ipcs-command", true + case 3744: + return "sasg", true + case 3745: + return "gw-call-port", true + case 3746: + return "linktest", true + case 3747: + return "linktest-s", true + case 3748: + return "webdata", true + case 3749: + return "cimtrak", true + case 3750: + return "cbos-ip-port", true + case 3751: + return "gprs-cube", true + case 3752: + return "vipremoteagent", true + case 3753: + return "nattyserver", true + case 3754: + return "timestenbroker", true + case 3755: + return "sas-remote-hlp", true + case 3756: + return "canon-capt", true + case 3757: + return "grf-port", true + case 3758: + return "apw-registry", true + case 3759: + return "exapt-lmgr", true + case 3760: + return "adtempusclient", true + case 3761: + return "gsakmp", true + case 3762: + return "gbs-smp", true + case 3763: + return "xo-wave", true + case 3764: + return "mni-prot-rout", true + case 3765: + return "rtraceroute", true + case 3767: + return "listmgr-port", true + case 3768: + return "rblcheckd", true + case 3769: + return "haipe-otnk", true + case 3770: + return "cindycollab", true + case 3771: + return "paging-port", true + case 3772: + return "ctp", true + case 3773: + return "ctdhercules", true + case 3774: + return "zicom", true + case 3775: + return "ispmmgr", true + case 3776: + return "dvcprov-port", true + case 3777: + return "jibe-eb", true + case 3778: + return "c-h-it-port", true + case 3779: + return "cognima", true + case 3780: + return "nnp", true + case 3781: + return "abcvoice-port", true + case 3782: + return "iso-tp0s", true + case 3783: + return "bim-pem", true + case 3784: + return "bfd-control", true + case 3785: + return "bfd-echo", true + case 3786: + return "upstriggervsw", true + case 3787: + return "fintrx", true + case 3788: + return "isrp-port", true + case 3789: + return "remotedeploy", true + case 3790: + return "quickbooksrds", true + case 3791: + return "tvnetworkvideo", true + case 3792: + return "sitewatch", true + case 3793: + return "dcsoftware", true + case 3794: + return "jaus", true + case 3795: + return "myblast", true + case 3796: + return "spw-dialer", true + case 3797: + return "idps", true + case 3798: + return "minilock", true + case 3799: + return "radius-dynauth", true + case 3800: + return "pwgpsi", true + case 3801: + return "ibm-mgr", true + case 3802: + return "vhd", true + case 3803: + return "soniqsync", true + case 3804: + return "iqnet-port", true + case 3805: + return "tcpdataserver", true + case 3806: + return "wsmlb", true + case 3807: + return "spugna", true + case 3808: + return "sun-as-iiops-ca", true + case 3809: + return "apocd", true + case 3810: + return "wlanauth", true + case 3811: + return "amp", true + case 3812: + return "neto-wol-server", true + case 3813: + return "rap-ip", true + case 3814: + return "neto-dcs", true + case 3815: + return "lansurveyorxml", true + case 3816: + return "sunlps-http", true + case 3817: + return "tapeware", true + case 3818: + return "crinis-hb", true + case 3819: + return "epl-slp", true + case 3820: + return "scp", true + case 3821: + return "pmcp", true + case 3822: + return "acp-discovery", true + case 3823: + return "acp-conduit", true + case 3824: + return "acp-policy", true + case 3825: + return "ffserver", true + case 3826: + return "warmux", true + case 3827: + return "netmpi", true + case 3828: + return "neteh", true + case 3829: + return "neteh-ext", true + case 3830: + return "cernsysmgmtagt", true + case 3831: + return "dvapps", true + case 3832: + return "xxnetserver", true + case 3833: + return "aipn-auth", true + case 3834: + return "spectardata", true + case 3835: + return "spectardb", true + case 3836: + return "markem-dcp", true + case 3837: + return "mkm-discovery", true + case 3838: + return "sos", true + case 3839: + return "amx-rms", true + case 3840: + return "flirtmitmir", true + case 3842: + return "nhci", true + case 3843: + return "quest-agent", true + case 3844: + return "rnm", true + case 3845: + return "v-one-spp", true + case 3846: + return "an-pcp", true + case 3847: + return "msfw-control", true + case 3848: + return "item", true + case 3849: + return "spw-dnspreload", true + case 3850: + return "qtms-bootstrap", true + case 3851: + return "spectraport", true + case 3852: + return "sse-app-config", true + case 3853: + return "sscan", true + case 3854: + return "stryker-com", true + case 3855: + return "opentrac", true + case 3856: + return "informer", true + case 3857: + return "trap-port", true + case 3858: + return "trap-port-mom", true + case 3859: + return "nav-port", true + case 3860: + return "sasp", true + case 3861: + return "winshadow-hd", true + case 3862: + return "giga-pocket", true + case 3863: + return "asap-udp", true + case 3865: + return "xpl", true + case 3866: + return "dzdaemon", true + case 3867: + return "dzoglserver", true + case 3869: + return "ovsam-mgmt", true + case 3870: + return "ovsam-d-agent", true + case 3871: + return "avocent-adsap", true + case 3872: + return "oem-agent", true + case 3873: + return "fagordnc", true + case 3874: + return "sixxsconfig", true + case 3875: + return "pnbscada", true + case 3876: + return "dl-agent", true + case 3877: + return "xmpcr-interface", true + case 3878: + return "fotogcad", true + case 3879: + return "appss-lm", true + case 3880: + return "igrs", true + case 3881: + return "idac", true + case 3882: + return "msdts1", true + case 3883: + return "vrpn", true + case 3884: + return "softrack-meter", true + case 3885: + return "topflow-ssl", true + case 3886: + return "nei-management", true + case 3887: + return "ciphire-data", true + case 3888: + return "ciphire-serv", true + case 3889: + return "dandv-tester", true + case 3890: + return "ndsconnect", true + case 3891: + return "rtc-pm-port", true + case 3892: + return "pcc-image-port", true + case 3893: + return "cgi-starapi", true + case 3894: + return "syam-agent", true + case 3895: + return "syam-smc", true + case 3896: + return "sdo-tls", true + case 3897: + return "sdo-ssh", true + case 3898: + return "senip", true + case 3899: + return "itv-control", true + case 3900: + return "udt-os", true + case 3901: + return "nimsh", true + case 3902: + return "nimaux", true + case 3903: + return "charsetmgr", true + case 3904: + return "omnilink-port", true + case 3905: + return "mupdate", true + case 3906: + return "topovista-data", true + case 3907: + return "imoguia-port", true + case 3908: + return "hppronetman", true + case 3909: + return "surfcontrolcpa", true + case 3910: + return "prnrequest", true + case 3911: + return "prnstatus", true + case 3912: + return "gbmt-stars", true + case 3913: + return "listcrt-port", true + case 3914: + return "listcrt-port-2", true + case 3915: + return "agcat", true + case 3916: + return "wysdmc", true + case 3917: + return "aftmux", true + case 3918: + return "pktcablemmcops", true + case 3919: + return "hyperip", true + case 3920: + return "exasoftport1", true + case 3921: + return "herodotus-net", true + case 3922: + return "sor-update", true + case 3923: + return "symb-sb-port", true + case 3924: + return "mpl-gprs-port", true + case 3925: + return "zmp", true + case 3926: + return "winport", true + case 3927: + return "natdataservice", true + case 3928: + return "netboot-pxe", true + case 3929: + return "smauth-port", true + case 3930: + return "syam-webserver", true + case 3931: + return "msr-plugin-port", true + case 3932: + return "dyn-site", true + case 3933: + return "plbserve-port", true + case 3934: + return "sunfm-port", true + case 3935: + return "sdp-portmapper", true + case 3936: + return "mailprox", true + case 3937: + return "dvbservdsc", true + case 3938: + return "dbcontrol-agent", true + case 3939: + return "aamp", true + case 3940: + return "xecp-node", true + case 3941: + return "homeportal-web", true + case 3942: + return "srdp", true + case 3943: + return "tig", true + case 3944: + return "sops", true + case 3945: + return "emcads", true + case 3946: + return "backupedge", true + case 3947: + return "ccp", true + case 3948: + return "apdap", true + case 3949: + return "drip", true + case 3950: + return "namemunge", true + case 3951: + return "pwgippfax", true + case 3952: + return "i3-sessionmgr", true + case 3953: + return "xmlink-connect", true + case 3954: + return "adrep", true + case 3955: + return "p2pcommunity", true + case 3956: + return "gvcp", true + case 3957: + return "mqe-broker", true + case 3958: + return "mqe-agent", true + case 3959: + return "treehopper", true + case 3960: + return "bess", true + case 3961: + return "proaxess", true + case 3962: + return "sbi-agent", true + case 3963: + return "thrp", true + case 3964: + return "sasggprs", true + case 3965: + return "ati-ip-to-ncpe", true + case 3966: + return "bflckmgr", true + case 3967: + return "ppsms", true + case 3968: + return "ianywhere-dbns", true + case 3969: + return "landmarks", true + case 3970: + return "lanrevagent", true + case 3971: + return "lanrevserver", true + case 3972: + return "iconp", true + case 3973: + return "progistics", true + case 3974: + return "xk22", true + case 3975: + return "airshot", true + case 3976: + return "opswagent", true + case 3977: + return "opswmanager", true + case 3978: + return "secure-cfg-svr", true + case 3979: + return "smwan", true + case 3981: + return "starfish", true + case 3982: + return "eis", true + case 3983: + return "eisp", true + case 3984: + return "mapper-nodemgr", true + case 3985: + return "mapper-mapethd", true + case 3986: + return "mapper-ws-ethd", true + case 3987: + return "centerline", true + case 3988: + return "dcs-config", true + case 3989: + return "bv-queryengine", true + case 3990: + return "bv-is", true + case 3991: + return "bv-smcsrv", true + case 3992: + return "bv-ds", true + case 3993: + return "bv-agent", true + case 3995: + return "iss-mgmt-ssl", true + case 3996: + return "abcsoftware", true + case 3997: + return "agentsease-db", true + case 3998: + return "dnx", true + case 3999: + return "nvcnet", true + case 4000: + return "terabase", true + case 4001: + return "newoak", true + case 4002: + return "pxc-spvr-ft", true + case 4003: + return "pxc-splr-ft", true + case 4004: + return "pxc-roid", true + case 4005: + return "pxc-pin", true + case 4006: + return "pxc-spvr", true + case 4007: + return "pxc-splr", true + case 4008: + return "netcheque", true + case 4009: + return "chimera-hwm", true + case 4010: + return "samsung-unidex", true + case 4011: + return "altserviceboot", true + case 4012: + return "pda-gate", true + case 4013: + return "acl-manager", true + case 4014: + return "taiclock", true + case 4015: + return "talarian-mcast1", true + case 4016: + return "talarian-mcast2", true + case 4017: + return "talarian-mcast3", true + case 4018: + return "talarian-mcast4", true + case 4019: + return "talarian-mcast5", true + case 4020: + return "trap", true + case 4021: + return "nexus-portal", true + case 4022: + return "dnox", true + case 4023: + return "esnm-zoning", true + case 4024: + return "tnp1-port", true + case 4025: + return "partimage", true + case 4026: + return "as-debug", true + case 4027: + return "bxp", true + case 4028: + return "dtserver-port", true + case 4029: + return "ip-qsig", true + case 4030: + return "jdmn-port", true + case 4031: + return "suucp", true + case 4032: + return "vrts-auth-port", true + case 4033: + return "sanavigator", true + case 4034: + return "ubxd", true + case 4035: + return "wap-push-http", true + case 4036: + return "wap-push-https", true + case 4037: + return "ravehd", true + case 4038: + return "fazzt-ptp", true + case 4039: + return "fazzt-admin", true + case 4040: + return "yo-main", true + case 4041: + return "houston", true + case 4042: + return "ldxp", true + case 4043: + return "nirp", true + case 4044: + return "ltp", true + case 4045: + return "npp", true + case 4046: + return "acp-proto", true + case 4047: + return "ctp-state", true + case 4049: + return "wafs", true + case 4050: + return "cisco-wafs", true + case 4051: + return "cppdp", true + case 4052: + return "interact", true + case 4053: + return "ccu-comm-1", true + case 4054: + return "ccu-comm-2", true + case 4055: + return "ccu-comm-3", true + case 4056: + return "lms", true + case 4057: + return "wfm", true + case 4058: + return "kingfisher", true + case 4059: + return "dlms-cosem", true + case 4060: + return "dsmeter-iatc", true + case 4061: + return "ice-location", true + case 4062: + return "ice-slocation", true + case 4063: + return "ice-router", true + case 4064: + return "ice-srouter", true + case 4065: + return "avanti-cdp", true + case 4066: + return "pmas", true + case 4067: + return "idp", true + case 4068: + return "ipfltbcst", true + case 4069: + return "minger", true + case 4070: + return "tripe", true + case 4071: + return "aibkup", true + case 4072: + return "zieto-sock", true + case 4073: + return "iRAPP", true + case 4074: + return "cequint-cityid", true + case 4075: + return "perimlan", true + case 4076: + return "seraph", true + case 4077: + return "ascomalarm", true + case 4079: + return "santools", true + case 4080: + return "lorica-in", true + case 4081: + return "lorica-in-sec", true + case 4082: + return "lorica-out", true + case 4083: + return "lorica-out-sec", true + case 4084: + return "fortisphere-vm", true + case 4086: + return "ftsync", true + case 4089: + return "opencore", true + case 4090: + return "omasgport", true + case 4091: + return "ewinstaller", true + case 4092: + return "ewdgs", true + case 4093: + return "pvxpluscs", true + case 4094: + return "sysrqd", true + case 4095: + return "xtgui", true + case 4096: + return "bre", true + case 4097: + return "patrolview", true + case 4098: + return "drmsfsd", true + case 4099: + return "dpcp", true + case 4100: + return "igo-incognito", true + case 4101: + return "brlp-0", true + case 4102: + return "brlp-1", true + case 4103: + return "brlp-2", true + case 4104: + return "brlp-3", true + case 4105: + return "shofar", true + case 4106: + return "synchronite", true + case 4107: + return "j-ac", true + case 4108: + return "accel", true + case 4109: + return "izm", true + case 4110: + return "g2tag", true + case 4111: + return "xgrid", true + case 4112: + return "apple-vpns-rp", true + case 4113: + return "aipn-reg", true + case 4114: + return "jomamqmonitor", true + case 4115: + return "cds", true + case 4116: + return "smartcard-tls", true + case 4117: + return "hillrserv", true + case 4118: + return "netscript", true + case 4119: + return "assuria-slm", true + case 4121: + return "e-builder", true + case 4122: + return "fprams", true + case 4123: + return "z-wave", true + case 4124: + return "tigv2", true + case 4125: + return "opsview-envoy", true + case 4126: + return "ddrepl", true + case 4127: + return "unikeypro", true + case 4128: + return "nufw", true + case 4129: + return "nuauth", true + case 4130: + return "fronet", true + case 4131: + return "stars", true + case 4132: + return "nuts-dem", true + case 4133: + return "nuts-bootp", true + case 4134: + return "nifty-hmi", true + case 4135: + return "cl-db-attach", true + case 4136: + return "cl-db-request", true + case 4137: + return "cl-db-remote", true + case 4138: + return "nettest", true + case 4139: + return "thrtx", true + case 4140: + return "cedros-fds", true + case 4141: + return "oirtgsvc", true + case 4142: + return "oidocsvc", true + case 4143: + return "oidsr", true + case 4145: + return "vvr-control", true + case 4146: + return "tgcconnect", true + case 4147: + return "vrxpservman", true + case 4148: + return "hhb-handheld", true + case 4149: + return "agslb", true + case 4150: + return "PowerAlert-nsa", true + case 4151: + return "menandmice-noh", true + case 4152: + return "idig-mux", true + case 4153: + return "mbl-battd", true + case 4154: + return "atlinks", true + case 4155: + return "bzr", true + case 4156: + return "stat-results", true + case 4157: + return "stat-scanner", true + case 4158: + return "stat-cc", true + case 4159: + return "nss", true + case 4160: + return "jini-discovery", true + case 4161: + return "omscontact", true + case 4162: + return "omstopology", true + case 4163: + return "silverpeakpeer", true + case 4164: + return "silverpeakcomm", true + case 4165: + return "altcp", true + case 4166: + return "joost", true + case 4167: + return "ddgn", true + case 4168: + return "pslicser", true + case 4169: + return "iadt-disc", true + case 4172: + return "pcoip", true + case 4173: + return "mma-discovery", true + case 4174: + return "sm-disc", true + case 4177: + return "wello", true + case 4178: + return "storman", true + case 4179: + return "MaxumSP", true + case 4180: + return "httpx", true + case 4181: + return "macbak", true + case 4182: + return "pcptcpservice", true + case 4183: + return "cyborgnet", true + case 4184: + return "universe-suite", true + case 4185: + return "wcpp", true + case 4188: + return "vatata", true + case 4191: + return "dsmipv6", true + case 4192: + return "azeti-bd", true + case 4195: + return "aws-wsp", true + case 4197: + return "hctl", true + case 4199: + return "eims-admin", true + case 4300: + return "corelccam", true + case 4301: + return "d-data", true + case 4302: + return "d-data-control", true + case 4303: + return "srcp", true + case 4304: + return "owserver", true + case 4305: + return "batman", true + case 4306: + return "pinghgl", true + case 4307: + return "trueconf", true + case 4308: + return "compx-lockview", true + case 4309: + return "dserver", true + case 4310: + return "mirrtex", true + case 4319: + return "fox-skytale", true + case 4320: + return "fdt-rcatp", true + case 4321: + return "rwhois", true + case 4322: + return "trim-event", true + case 4323: + return "trim-ice", true + case 4325: + return "geognosisman", true + case 4326: + return "geognosis", true + case 4327: + return "jaxer-web", true + case 4328: + return "jaxer-manager", true + case 4333: + return "ahsp", true + case 4340: + return "gaia", true + case 4341: + return "lisp-data", true + case 4342: + return "lisp-control", true + case 4343: + return "unicall", true + case 4344: + return "vinainstall", true + case 4345: + return "m4-network-as", true + case 4346: + return "elanlm", true + case 4347: + return "lansurveyor", true + case 4348: + return "itose", true + case 4349: + return "fsportmap", true + case 4350: + return "net-device", true + case 4351: + return "plcy-net-svcs", true + case 4352: + return "pjlink", true + case 4353: + return "f5-iquery", true + case 4354: + return "qsnet-trans", true + case 4355: + return "qsnet-workst", true + case 4356: + return "qsnet-assist", true + case 4357: + return "qsnet-cond", true + case 4358: + return "qsnet-nucl", true + case 4359: + return "omabcastltkm", true + case 4361: + return "nacnl", true + case 4362: + return "afore-vdp-disc", true + case 4366: + return "shadowstream", true + case 4368: + return "wxbrief", true + case 4369: + return "epmd", true + case 4370: + return "elpro-tunnel", true + case 4371: + return "l2c-disc", true + case 4372: + return "l2c-data", true + case 4373: + return "remctl", true + case 4375: + return "tolteces", true + case 4376: + return "bip", true + case 4377: + return "cp-spxsvr", true + case 4378: + return "cp-spxdpy", true + case 4379: + return "ctdb", true + case 4389: + return "xandros-cms", true + case 4390: + return "wiegand", true + case 4394: + return "apwi-disc", true + case 4395: + return "omnivisionesx", true + case 4400: + return "ds-srv", true + case 4401: + return "ds-srvr", true + case 4402: + return "ds-clnt", true + case 4403: + return "ds-user", true + case 4404: + return "ds-admin", true + case 4405: + return "ds-mail", true + case 4406: + return "ds-slp", true + case 4412: + return "smallchat", true + case 4413: + return "avi-nms-disc", true + case 4416: + return "pjj-player-disc", true + case 4418: + return "axysbridge", true + case 4420: + return "nvme", true + case 4425: + return "netrockey6", true + case 4426: + return "beacon-port-2", true + case 4430: + return "rsqlserver", true + case 4432: + return "l-acoustics", true + case 4441: + return "netblox", true + case 4442: + return "saris", true + case 4443: + return "pharos", true + case 4444: + return "krb524", true + case 4445: + return "upnotifyp", true + case 4446: + return "n1-fwp", true + case 4447: + return "n1-rmgmt", true + case 4448: + return "asc-slmd", true + case 4449: + return "privatewire", true + case 4450: + return "camp", true + case 4451: + return "ctisystemmsg", true + case 4452: + return "ctiprogramload", true + case 4453: + return "nssalertmgr", true + case 4454: + return "nssagentmgr", true + case 4455: + return "prchat-user", true + case 4456: + return "prchat-server", true + case 4457: + return "prRegister", true + case 4458: + return "mcp", true + case 4484: + return "hpssmgmt", true + case 4486: + return "icms", true + case 4488: + return "awacs-ice", true + case 4500: + return "ipsec-nat-t", true + case 4534: + return "armagetronad", true + case 4535: + return "ehs", true + case 4536: + return "ehs-ssl", true + case 4537: + return "wssauthsvc", true + case 4538: + return "swx-gate", true + case 4545: + return "worldscores", true + case 4546: + return "sf-lm", true + case 4547: + return "lanner-lm", true + case 4548: + return "synchromesh", true + case 4549: + return "aegate", true + case 4550: + return "gds-adppiw-db", true + case 4551: + return "ieee-mih", true + case 4552: + return "menandmice-mon", true + case 4554: + return "msfrs", true + case 4555: + return "rsip", true + case 4556: + return "dtn-bundle", true + case 4557: + return "mtcevrunqss", true + case 4558: + return "mtcevrunqman", true + case 4559: + return "hylafax", true + case 4566: + return "kwtc", true + case 4567: + return "tram", true + case 4568: + return "bmc-reporting", true + case 4569: + return "iax", true + case 4591: + return "l3t-at-an", true + case 4592: + return "hrpd-ith-at-an", true + case 4593: + return "ipt-anri-anri", true + case 4594: + return "ias-session", true + case 4595: + return "ias-paging", true + case 4596: + return "ias-neighbor", true + case 4597: + return "a21-an-1xbs", true + case 4598: + return "a16-an-an", true + case 4599: + return "a17-an-an", true + case 4600: + return "piranha1", true + case 4601: + return "piranha2", true + case 4621: + return "ventoso", true + case 4646: + return "dots-signal", true + case 4658: + return "playsta2-app", true + case 4659: + return "playsta2-lob", true + case 4660: + return "smaclmgr", true + case 4661: + return "kar2ouche", true + case 4662: + return "oms", true + case 4663: + return "noteit", true + case 4664: + return "ems", true + case 4665: + return "contclientms", true + case 4666: + return "eportcomm", true + case 4667: + return "mmacomm", true + case 4668: + return "mmaeds", true + case 4669: + return "eportcommdata", true + case 4670: + return "light", true + case 4671: + return "acter", true + case 4672: + return "rfa", true + case 4673: + return "cxws", true + case 4674: + return "appiq-mgmt", true + case 4675: + return "dhct-status", true + case 4676: + return "dhct-alerts", true + case 4677: + return "bcs", true + case 4678: + return "traversal", true + case 4679: + return "mgesupervision", true + case 4680: + return "mgemanagement", true + case 4681: + return "parliant", true + case 4682: + return "finisar", true + case 4683: + return "spike", true + case 4684: + return "rfid-rp1", true + case 4685: + return "autopac", true + case 4686: + return "msp-os", true + case 4687: + return "nst", true + case 4688: + return "mobile-p2p", true + case 4689: + return "altovacentral", true + case 4690: + return "prelude", true + case 4691: + return "mtn", true + case 4692: + return "conspiracy", true + case 4700: + return "netxms-agent", true + case 4701: + return "netxms-mgmt", true + case 4702: + return "netxms-sync", true + case 4711: + return "trinity-dist", true + case 4725: + return "truckstar", true + case 4726: + return "a26-fap-fgw", true + case 4727: + return "fcis-disc", true + case 4728: + return "capmux", true + case 4729: + return "gsmtap", true + case 4730: + return "gearman", true + case 4732: + return "ohmtrigger", true + case 4737: + return "ipdr-sp", true + case 4738: + return "solera-lpn", true + case 4739: + return "ipfix", true + case 4740: + return "ipfixs", true + case 4741: + return "lumimgrd", true + case 4742: + return "sicct-sdp", true + case 4743: + return "openhpid", true + case 4744: + return "ifsp", true + case 4745: + return "fmp", true + case 4746: + return "intelliadm-disc", true + case 4747: + return "buschtrommel", true + case 4749: + return "profilemac", true + case 4750: + return "ssad", true + case 4751: + return "spocp", true + case 4752: + return "snap", true + case 4753: + return "simon-disc", true + case 4754: + return "gre-in-udp", true + case 4755: + return "gre-udp-dtls", true + case 4784: + return "bfd-multi-ctl", true + case 4785: + return "cncp", true + case 4789: + return "vxlan", true + case 4790: + return "vxlan-gpe", true + case 4791: + return "roce", true + case 4792: + return "unified-bus", true + case 4800: + return "iims", true + case 4801: + return "iwec", true + case 4802: + return "ilss", true + case 4803: + return "notateit-disc", true + case 4804: + return "aja-ntv4-disc", true + case 4827: + return "htcp", true + case 4837: + return "varadero-0", true + case 4838: + return "varadero-1", true + case 4839: + return "varadero-2", true + case 4840: + return "opcua-udp", true + case 4841: + return "quosa", true + case 4842: + return "gw-asv", true + case 4843: + return "opcua-tls", true + case 4844: + return "gw-log", true + case 4845: + return "wcr-remlib", true + case 4846: + return "contamac-icm", true + case 4847: + return "wfc", true + case 4848: + return "appserv-http", true + case 4849: + return "appserv-https", true + case 4850: + return "sun-as-nodeagt", true + case 4851: + return "derby-repli", true + case 4867: + return "unify-debug", true + case 4868: + return "phrelay", true + case 4869: + return "phrelaydbg", true + case 4870: + return "cc-tracking", true + case 4871: + return "wired", true + case 4876: + return "tritium-can", true + case 4877: + return "lmcs", true + case 4878: + return "inst-discovery", true + case 4881: + return "socp-t", true + case 4882: + return "socp-c", true + case 4884: + return "hivestor", true + case 4885: + return "abbs", true + case 4894: + return "lyskom", true + case 4899: + return "radmin-port", true + case 4900: + return "hfcs", true + case 4914: + return "bones", true + case 4936: + return "an-signaling", true + case 4937: + return "atsc-mh-ssc", true + case 4940: + return "eq-office-4940", true + case 4941: + return "eq-office-4941", true + case 4942: + return "eq-office-4942", true + case 4949: + return "munin", true + case 4950: + return "sybasesrvmon", true + case 4951: + return "pwgwims", true + case 4952: + return "sagxtsds", true + case 4969: + return "ccss-qmm", true + case 4970: + return "ccss-qsm", true + case 4980: + return "ctxs-vpp", true + case 4986: + return "mrip", true + case 4987: + return "smar-se-port1", true + case 4988: + return "smar-se-port2", true + case 4989: + return "parallel", true + case 4990: + return "busycal", true + case 4991: + return "vrt", true + case 4999: + return "hfcs-manager", true + case 5000: + return "commplex-main", true + case 5001: + return "commplex-link", true + case 5002: + return "rfe", true + case 5003: + return "fmpro-internal", true + case 5004: + return "avt-profile-1", true + case 5005: + return "avt-profile-2", true + case 5006: + return "wsm-server", true + case 5007: + return "wsm-server-ssl", true + case 5008: + return "synapsis-edge", true + case 5009: + return "winfs", true + case 5010: + return "telelpathstart", true + case 5011: + return "telelpathattack", true + case 5012: + return "nsp", true + case 5013: + return "fmpro-v6", true + case 5014: + return "onpsocket", true + case 5020: + return "zenginkyo-1", true + case 5021: + return "zenginkyo-2", true + case 5022: + return "mice", true + case 5023: + return "htuilsrv", true + case 5024: + return "scpi-telnet", true + case 5025: + return "scpi-raw", true + case 5026: + return "strexec-d", true + case 5027: + return "strexec-s", true + case 5029: + return "infobright", true + case 5031: + return "dmp", true + case 5042: + return "asnaacceler8db", true + case 5043: + return "swxadmin", true + case 5044: + return "lxi-evntsvc", true + case 5046: + return "vpm-udp", true + case 5047: + return "iscape", true + case 5049: + return "ivocalize", true + case 5050: + return "mmcc", true + case 5051: + return "ita-agent", true + case 5052: + return "ita-manager", true + case 5053: + return "rlm-disc", true + case 5055: + return "unot", true + case 5056: + return "intecom-ps1", true + case 5057: + return "intecom-ps2", true + case 5058: + return "locus-disc", true + case 5059: + return "sds", true + case 5060: + return "sip", true + case 5061: + return "sips", true + case 5062: + return "na-localise", true + case 5064: + return "ca-1", true + case 5065: + return "ca-2", true + case 5066: + return "stanag-5066", true + case 5067: + return "authentx", true + case 5069: + return "i-net-2000-npr", true + case 5070: + return "vtsas", true + case 5071: + return "powerschool", true + case 5072: + return "ayiya", true + case 5073: + return "tag-pm", true + case 5074: + return "alesquery", true + case 5078: + return "pixelpusher", true + case 5079: + return "cp-spxrpts", true + case 5080: + return "onscreen", true + case 5081: + return "sdl-ets", true + case 5082: + return "qcp", true + case 5083: + return "qfp", true + case 5084: + return "llrp", true + case 5085: + return "encrypted-llrp", true + case 5092: + return "magpie", true + case 5093: + return "sentinel-lm", true + case 5094: + return "hart-ip", true + case 5099: + return "sentlm-srv2srv", true + case 5100: + return "socalia", true + case 5101: + return "talarian-udp", true + case 5102: + return "oms-nonsecure", true + case 5104: + return "tinymessage", true + case 5105: + return "hughes-ap", true + case 5111: + return "taep-as-svc", true + case 5112: + return "pm-cmdsvr", true + case 5116: + return "emb-proj-cmd", true + case 5120: + return "barracuda-bbs", true + case 5133: + return "nbt-pc", true + case 5136: + return "minotaur-sa", true + case 5137: + return "ctsd", true + case 5145: + return "rmonitor-secure", true + case 5150: + return "atmp", true + case 5151: + return "esri-sde", true + case 5152: + return "sde-discovery", true + case 5154: + return "bzflag", true + case 5155: + return "asctrl-agent", true + case 5164: + return "vpa-disc", true + case 5165: + return "ife-icorp", true + case 5166: + return "winpcs", true + case 5167: + return "scte104", true + case 5168: + return "scte30", true + case 5190: + return "aol", true + case 5191: + return "aol-1", true + case 5192: + return "aol-2", true + case 5193: + return "aol-3", true + case 5200: + return "targus-getdata", true + case 5201: + return "targus-getdata1", true + case 5202: + return "targus-getdata2", true + case 5203: + return "targus-getdata3", true + case 5223: + return "hpvirtgrp", true + case 5224: + return "hpvirtctrl", true + case 5225: + return "hp-server", true + case 5226: + return "hp-status", true + case 5227: + return "perfd", true + case 5234: + return "eenet", true + case 5235: + return "galaxy-network", true + case 5236: + return "padl2sim", true + case 5237: + return "mnet-discovery", true + case 5245: + return "downtools-disc", true + case 5246: + return "capwap-control", true + case 5247: + return "capwap-data", true + case 5248: + return "caacws", true + case 5249: + return "caaclang2", true + case 5250: + return "soagateway", true + case 5251: + return "caevms", true + case 5252: + return "movaz-ssc", true + case 5264: + return "3com-njack-1", true + case 5265: + return "3com-njack-2", true + case 5270: + return "cartographerxmp", true + case 5271: + return "cuelink-disc", true + case 5272: + return "pk", true + case 5282: + return "transmit-port", true + case 5298: + return "presence", true + case 5299: + return "nlg-data", true + case 5300: + return "hacl-hb", true + case 5301: + return "hacl-gs", true + case 5302: + return "hacl-cfg", true + case 5303: + return "hacl-probe", true + case 5304: + return "hacl-local", true + case 5305: + return "hacl-test", true + case 5306: + return "sun-mc-grp", true + case 5307: + return "sco-aip", true + case 5308: + return "cfengine", true + case 5309: + return "jprinter", true + case 5310: + return "outlaws", true + case 5312: + return "permabit-cs", true + case 5313: + return "rrdp", true + case 5314: + return "opalis-rbt-ipc", true + case 5315: + return "hacl-poll", true + case 5343: + return "kfserver", true + case 5344: + return "xkotodrcp", true + case 5349: + return "stuns", true + case 5350: + return "pcp-multicast", true + case 5351: + return "pcp", true + case 5352: + return "dns-llq", true + case 5353: + return "mdns", true + case 5354: + return "mdnsresponder", true + case 5355: + return "llmnr", true + case 5356: + return "ms-smlbiz", true + case 5357: + return "wsdapi", true + case 5358: + return "wsdapi-s", true + case 5359: + return "ms-alerter", true + case 5360: + return "ms-sideshow", true + case 5361: + return "ms-s-sideshow", true + case 5362: + return "serverwsd2", true + case 5363: + return "net-projection", true + case 5364: + return "kdnet", true + case 5397: + return "stresstester", true + case 5398: + return "elektron-admin", true + case 5399: + return "securitychase", true + case 5400: + return "excerpt", true + case 5401: + return "excerpts", true + case 5402: + return "mftp", true + case 5403: + return "hpoms-ci-lstn", true + case 5404: + return "hpoms-dps-lstn", true + case 5405: + return "netsupport", true + case 5406: + return "systemics-sox", true + case 5407: + return "foresyte-clear", true + case 5408: + return "foresyte-sec", true + case 5409: + return "salient-dtasrv", true + case 5410: + return "salient-usrmgr", true + case 5411: + return "actnet", true + case 5412: + return "continuus", true + case 5413: + return "wwiotalk", true + case 5414: + return "statusd", true + case 5415: + return "ns-server", true + case 5416: + return "sns-gateway", true + case 5417: + return "sns-agent", true + case 5418: + return "mcntp", true + case 5419: + return "dj-ice", true + case 5420: + return "cylink-c", true + case 5421: + return "netsupport2", true + case 5422: + return "salient-mux", true + case 5423: + return "virtualuser", true + case 5424: + return "beyond-remote", true + case 5425: + return "br-channel", true + case 5426: + return "devbasic", true + case 5427: + return "sco-peer-tta", true + case 5428: + return "telaconsole", true + case 5429: + return "base", true + case 5430: + return "radec-corp", true + case 5431: + return "park-agent", true + case 5432: + return "postgresql", true + case 5433: + return "pyrrho", true + case 5434: + return "sgi-arrayd", true + case 5435: + return "sceanics", true + case 5436: + return "pmip6-cntl", true + case 5437: + return "pmip6-data", true + case 5443: + return "spss", true + case 5450: + return "tiepie-disc", true + case 5453: + return "surebox", true + case 5454: + return "apc-5454", true + case 5455: + return "apc-5455", true + case 5456: + return "apc-5456", true + case 5461: + return "silkmeter", true + case 5462: + return "ttl-publisher", true + case 5463: + return "ttlpriceproxy", true + case 5464: + return "quailnet", true + case 5465: + return "netops-broker", true + case 5474: + return "apsolab-rpc", true + case 5500: + return "fcp-addr-srvr1", true + case 5501: + return "fcp-addr-srvr2", true + case 5502: + return "fcp-srvr-inst1", true + case 5503: + return "fcp-srvr-inst2", true + case 5504: + return "fcp-cics-gw1", true + case 5505: + return "checkoutdb", true + case 5506: + return "amc", true + case 5540: + return "matter", true + case 5553: + return "sgi-eventmond", true + case 5554: + return "sgi-esphttp", true + case 5555: + return "personal-agent", true + case 5556: + return "freeciv", true + case 5567: + return "dof-dps-mc-sec", true + case 5568: + return "sdt", true + case 5569: + return "rdmnet-device", true + case 5573: + return "sdmmp", true + case 5580: + return "tmosms0", true + case 5581: + return "tmosms1", true + case 5582: + return "fac-restore", true + case 5583: + return "tmo-icon-sync", true + case 5584: + return "bis-web", true + case 5585: + return "bis-sync", true + case 5597: + return "ininmessaging", true + case 5598: + return "mctfeed", true + case 5599: + return "esinstall", true + case 5600: + return "esmmanager", true + case 5601: + return "esmagent", true + case 5602: + return "a1-msc", true + case 5603: + return "a1-bs", true + case 5604: + return "a3-sdunode", true + case 5605: + return "a4-sdunode", true + case 5627: + return "ninaf", true + case 5628: + return "htrust", true + case 5629: + return "symantec-sfdb", true + case 5630: + return "precise-comm", true + case 5631: + return "pcanywheredata", true + case 5632: + return "pcanywherestat", true + case 5633: + return "beorl", true + case 5634: + return "xprtld", true + case 5670: + return "zre-disc", true + case 5671: + return "amqps", true + case 5672: + return "amqp", true + case 5673: + return "jms", true + case 5674: + return "hyperscsi-port", true + case 5675: + return "v5ua", true + case 5676: + return "raadmin", true + case 5677: + return "questdb2-lnchr", true + case 5678: + return "rrac", true + case 5679: + return "dccm", true + case 5680: + return "auriga-router", true + case 5681: + return "ncxcp", true + case 5682: + return "brightcore", true + case 5683: + return "coap", true + case 5684: + return "coaps", true + case 5687: + return "gog-multiplayer", true + case 5688: + return "ggz", true + case 5689: + return "qmvideo", true + case 5713: + return "proshareaudio", true + case 5714: + return "prosharevideo", true + case 5715: + return "prosharedata", true + case 5716: + return "prosharerequest", true + case 5717: + return "prosharenotify", true + case 5718: + return "dpm", true + case 5719: + return "dpm-agent", true + case 5720: + return "ms-licensing", true + case 5721: + return "dtpt", true + case 5722: + return "msdfsr", true + case 5723: + return "omhs", true + case 5724: + return "omsdk", true + case 5728: + return "io-dist-group", true + case 5729: + return "openmail", true + case 5730: + return "unieng", true + case 5741: + return "ida-discover1", true + case 5742: + return "ida-discover2", true + case 5743: + return "watchdoc-pod", true + case 5744: + return "watchdoc", true + case 5745: + return "fcopy-server", true + case 5746: + return "fcopys-server", true + case 5747: + return "tunatic", true + case 5748: + return "tunalyzer", true + case 5750: + return "rscd", true + case 5755: + return "openmailg", true + case 5757: + return "x500ms", true + case 5766: + return "openmailns", true + case 5767: + return "s-openmail", true + case 5768: + return "openmailpxy", true + case 5769: + return "spramsca", true + case 5770: + return "spramsd", true + case 5771: + return "netagent", true + case 5777: + return "starfield-io", true + case 5781: + return "3par-evts", true + case 5782: + return "3par-mgmt", true + case 5783: + return "3par-mgmt-ssl", true + case 5784: + return "ibar", true + case 5785: + return "3par-rcopy", true + case 5786: + return "cisco-redu", true + case 5787: + return "waascluster", true + case 5793: + return "xtreamx", true + case 5794: + return "spdp", true + case 5813: + return "icmpd", true + case 5814: + return "spt-automation", true + case 5859: + return "wherehoo", true + case 5863: + return "ppsuitemsg", true + case 5900: + return "rfb", true + case 5903: + return "ff-ice", true + case 5904: + return "ag-swim", true + case 5905: + return "asmgcs", true + case 5906: + return "rpas-c2", true + case 5907: + return "dsd", true + case 5908: + return "ipsma", true + case 5909: + return "agma", true + case 5910: + return "ats-atn", true + case 5911: + return "ats-acars", true + case 5912: + return "ais-met", true + case 5913: + return "aoc-acars", true + case 5963: + return "indy", true + case 5968: + return "mppolicy-v5", true + case 5969: + return "mppolicy-mgr", true + case 5984: + return "couchdb", true + case 5985: + return "wsman", true + case 5986: + return "wsmans", true + case 5987: + return "wbem-rmi", true + case 5988: + return "wbem-http", true + case 5989: + return "wbem-https", true + case 5990: + return "wbem-exp-https", true + case 5991: + return "nuxsl", true + case 5992: + return "consul-insight", true + case 5999: + return "cvsup", true + case 6064: + return "ndl-ahp-svc", true + case 6065: + return "winpharaoh", true + case 6066: + return "ewctsp", true + case 6069: + return "trip", true + case 6070: + return "messageasap", true + case 6071: + return "ssdtp", true + case 6072: + return "diagnose-proc", true + case 6073: + return "directplay8", true + case 6074: + return "max", true + case 6080: + return "gue", true + case 6081: + return "geneve", true + case 6082: + return "p25cai", true + case 6083: + return "miami-bcast", true + case 6085: + return "konspire2b", true + case 6086: + return "pdtp", true + case 6087: + return "ldss", true + case 6088: + return "doglms-notify", true + case 6100: + return "synchronet-db", true + case 6101: + return "synchronet-rtc", true + case 6102: + return "synchronet-upd", true + case 6103: + return "rets", true + case 6104: + return "dbdb", true + case 6105: + return "primaserver", true + case 6106: + return "mpsserver", true + case 6107: + return "etc-control", true + case 6108: + return "sercomm-scadmin", true + case 6109: + return "globecast-id", true + case 6110: + return "softcm", true + case 6111: + return "spc", true + case 6112: + return "dtspcd", true + case 6118: + return "tipc", true + case 6122: + return "bex-webadmin", true + case 6123: + return "backup-express", true + case 6124: + return "pnbs", true + case 6133: + return "nbt-wol", true + case 6140: + return "pulsonixnls", true + case 6141: + return "meta-corp", true + case 6142: + return "aspentec-lm", true + case 6143: + return "watershed-lm", true + case 6144: + return "statsci1-lm", true + case 6145: + return "statsci2-lm", true + case 6146: + return "lonewolf-lm", true + case 6147: + return "montage-lm", true + case 6148: + return "ricardo-lm", true + case 6149: + return "tal-pod", true + case 6160: + return "ecmp-data", true + case 6161: + return "patrol-ism", true + case 6162: + return "patrol-coll", true + case 6163: + return "pscribe", true + case 6200: + return "lm-x", true + case 6201: + return "thermo-calc", true + case 6209: + return "qmtps", true + case 6222: + return "radmind", true + case 6241: + return "jeol-nsddp-1", true + case 6242: + return "jeol-nsddp-2", true + case 6243: + return "jeol-nsddp-3", true + case 6244: + return "jeol-nsddp-4", true + case 6251: + return "tl1-raw-ssl", true + case 6252: + return "tl1-ssh", true + case 6253: + return "crip", true + case 6268: + return "grid", true + case 6269: + return "grid-alt", true + case 6300: + return "bmc-grx", true + case 6301: + return "bmc-ctd-ldap", true + case 6306: + return "ufmp", true + case 6315: + return "scup-disc", true + case 6316: + return "abb-escp", true + case 6317: + return "nav-data", true + case 6320: + return "repsvc", true + case 6321: + return "emp-server1", true + case 6322: + return "emp-server2", true + case 6324: + return "hrd-ns-disc", true + case 6343: + return "sflow", true + case 6346: + return "gnutella-svc", true + case 6347: + return "gnutella-rtr", true + case 6350: + return "adap", true + case 6355: + return "pmcs", true + case 6360: + return "metaedit-mu", true + case 6363: + return "ndn", true + case 6370: + return "metaedit-se", true + case 6382: + return "metatude-mds", true + case 6389: + return "clariion-evr01", true + case 6390: + return "metaedit-ws", true + case 6417: + return "faxcomservice", true + case 6419: + return "svdrp-disc", true + case 6420: + return "nim-vdrshell", true + case 6421: + return "nim-wan", true + case 6443: + return "sun-sr-https", true + case 6444: + return "sge-qmaster", true + case 6445: + return "sge-execd", true + case 6446: + return "mysql-proxy", true + case 6455: + return "skip-cert-recv", true + case 6456: + return "skip-cert-send", true + case 6464: + return "ieee11073-20701", true + case 6471: + return "lvision-lm", true + case 6480: + return "sun-sr-http", true + case 6481: + return "servicetags", true + case 6482: + return "ldoms-mgmt", true + case 6483: + return "SunVTS-RMI", true + case 6484: + return "sun-sr-jms", true + case 6485: + return "sun-sr-iiop", true + case 6486: + return "sun-sr-iiops", true + case 6487: + return "sun-sr-iiop-aut", true + case 6488: + return "sun-sr-jmx", true + case 6489: + return "sun-sr-admin", true + case 6500: + return "boks", true + case 6501: + return "boks-servc", true + case 6502: + return "boks-servm", true + case 6503: + return "boks-clntd", true + case 6505: + return "badm-priv", true + case 6506: + return "badm-pub", true + case 6507: + return "bdir-priv", true + case 6508: + return "bdir-pub", true + case 6509: + return "mgcs-mfp-port", true + case 6510: + return "mcer-port", true + case 6511: + return "dccp-udp", true + case 6514: + return "syslog-tls", true + case 6515: + return "elipse-rec", true + case 6543: + return "lds-distrib", true + case 6544: + return "lds-dump", true + case 6547: + return "apc-6547", true + case 6548: + return "apc-6548", true + case 6549: + return "apc-6549", true + case 6550: + return "fg-sysupdate", true + case 6551: + return "sum", true + case 6558: + return "xdsxdm", true + case 6566: + return "sane-port", true + case 6568: + return "rp-reputation", true + case 6579: + return "affiliate", true + case 6580: + return "parsec-master", true + case 6581: + return "parsec-peer", true + case 6582: + return "parsec-game", true + case 6583: + return "joaJewelSuite", true + case 6619: + return "odette-ftps", true + case 6620: + return "kftp-data", true + case 6621: + return "kftp", true + case 6622: + return "mcftp", true + case 6623: + return "ktelnet", true + case 6626: + return "wago-service", true + case 6627: + return "nexgen", true + case 6628: + return "afesc-mc", true + case 6629: + return "nexgen-aux", true + case 6633: + return "cisco-vpath-tun", true + case 6634: + return "mpls-pm", true + case 6635: + return "mpls-udp", true + case 6636: + return "mpls-udp-dtls", true + case 6653: + return "openflow", true + case 6657: + return "palcom-disc", true + case 6670: + return "vocaltec-gold", true + case 6671: + return "p4p-portal", true + case 6672: + return "vision-server", true + case 6673: + return "vision-elmd", true + case 6678: + return "vfbp-disc", true + case 6679: + return "osaut", true + case 6689: + return "tsa", true + case 6696: + return "babel", true + case 6699: + return "babel-dtls", true + case 6701: + return "kti-icad-srvr", true + case 6702: + return "e-design-net", true + case 6703: + return "e-design-web", true + case 6714: + return "ibprotocol", true + case 6715: + return "fibotrader-com", true + case 6767: + return "bmc-perf-agent", true + case 6768: + return "bmc-perf-mgrd", true + case 6769: + return "adi-gxp-srvprt", true + case 6770: + return "plysrv-http", true + case 6771: + return "plysrv-https", true + case 6784: + return "bfd-lag", true + case 6785: + return "dgpf-exchg", true + case 6786: + return "smc-jmx", true + case 6787: + return "smc-admin", true + case 6788: + return "smc-http", true + case 6790: + return "hnmp", true + case 6791: + return "hnm", true + case 6801: + return "acnet", true + case 6831: + return "ambit-lm", true + case 6841: + return "netmo-default", true + case 6842: + return "netmo-http", true + case 6850: + return "iccrushmore", true + case 6868: + return "acctopus-st", true + case 6888: + return "muse", true + case 6924: + return "split-ping", true + case 6935: + return "ethoscan", true + case 6936: + return "xsmsvc", true + case 6946: + return "bioserver", true + case 6951: + return "otlp", true + case 6961: + return "jmact3", true + case 6962: + return "jmevt2", true + case 6963: + return "swismgr1", true + case 6964: + return "swismgr2", true + case 6965: + return "swistrap", true + case 6966: + return "swispol", true + case 6969: + return "acmsoda", true + case 6980: + return "qolyester", true + case 6997: + return "MobilitySrv", true + case 6998: + return "iatp-highpri", true + case 6999: + return "iatp-normalpri", true + case 7000: + return "afs3-fileserver", true + case 7001: + return "afs3-callback", true + case 7002: + return "afs3-prserver", true + case 7003: + return "afs3-vlserver", true + case 7004: + return "afs3-kaserver", true + case 7005: + return "afs3-volser", true + case 7006: + return "afs3-errors", true + case 7007: + return "afs3-bos", true + case 7008: + return "afs3-update", true + case 7009: + return "afs3-rmtsys", true + case 7010: + return "ups-onlinet", true + case 7011: + return "talon-disc", true + case 7012: + return "talon-engine", true + case 7013: + return "microtalon-dis", true + case 7014: + return "microtalon-com", true + case 7015: + return "talon-webserver", true + case 7016: + return "spg", true + case 7017: + return "grasp", true + case 7019: + return "doceri-view", true + case 7020: + return "dpserve", true + case 7021: + return "dpserveadmin", true + case 7022: + return "ctdp", true + case 7023: + return "ct2nmcs", true + case 7024: + return "vmsvc", true + case 7025: + return "vmsvc-2", true + case 7030: + return "op-probe", true + case 7040: + return "quest-disc", true + case 7070: + return "arcp", true + case 7071: + return "iwg1", true + case 7072: + return "iba-cfg-disc", true + case 7080: + return "empowerid", true + case 7088: + return "zixi-transport", true + case 7095: + return "jdp-disc", true + case 7099: + return "lazy-ptop", true + case 7100: + return "font-service", true + case 7101: + return "elcn", true + case 7107: + return "aes-x170", true + case 7121: + return "virprot-lm", true + case 7128: + return "scenidm", true + case 7129: + return "scenccs", true + case 7161: + return "cabsm-comm", true + case 7162: + return "caistoragemgr", true + case 7163: + return "cacsambroker", true + case 7164: + return "fsr", true + case 7165: + return "doc-server", true + case 7166: + return "aruba-server", true + case 7169: + return "ccag-pib", true + case 7170: + return "nsrp", true + case 7171: + return "drm-production", true + case 7174: + return "clutild", true + case 7181: + return "janus-disc", true + case 7200: + return "fodms", true + case 7201: + return "dlip", true + case 7227: + return "ramp", true + case 7235: + return "aspcoordination", true + case 7244: + return "frc-hicp-disc", true + case 7262: + return "cnap", true + case 7272: + return "watchme-7272", true + case 7273: + return "oma-rlp", true + case 7274: + return "oma-rlp-s", true + case 7275: + return "oma-ulp", true + case 7276: + return "oma-ilp", true + case 7277: + return "oma-ilp-s", true + case 7278: + return "oma-dcdocbs", true + case 7279: + return "ctxlic", true + case 7280: + return "itactionserver1", true + case 7281: + return "itactionserver2", true + case 7282: + return "mzca-alert", true + case 7365: + return "lcm-server", true + case 7391: + return "mindfilesys", true + case 7392: + return "mrssrendezvous", true + case 7393: + return "nfoldman", true + case 7394: + return "fse", true + case 7395: + return "winqedit", true + case 7397: + return "hexarc", true + case 7400: + return "rtps-discovery", true + case 7401: + return "rtps-dd-ut", true + case 7402: + return "rtps-dd-mt", true + case 7410: + return "ionixnetmon", true + case 7411: + return "daqstream", true + case 7420: + return "ipluminary", true + case 7421: + return "mtportmon", true + case 7426: + return "pmdmgr", true + case 7427: + return "oveadmgr", true + case 7428: + return "ovladmgr", true + case 7429: + return "opi-sock", true + case 7430: + return "xmpv7", true + case 7431: + return "pmd", true + case 7437: + return "faximum", true + case 7443: + return "oracleas-https", true + case 7473: + return "rise", true + case 7491: + return "telops-lmd", true + case 7500: + return "silhouette", true + case 7501: + return "ovbus", true + case 7510: + return "ovhpas", true + case 7511: + return "pafec-lm", true + case 7542: + return "saratoga", true + case 7543: + return "atul", true + case 7544: + return "nta-ds", true + case 7545: + return "nta-us", true + case 7546: + return "cfs", true + case 7547: + return "cwmp", true + case 7548: + return "tidp", true + case 7549: + return "nls-tl", true + case 7550: + return "cloudsignaling", true + case 7560: + return "sncp", true + case 7566: + return "vsi-omega", true + case 7570: + return "aries-kfinder", true + case 7574: + return "coherence-disc", true + case 7588: + return "sun-lm", true + case 7606: + return "mipi-debug", true + case 7624: + return "indi", true + case 7627: + return "soap-http", true + case 7628: + return "zen-pawn", true + case 7629: + return "xdas", true + case 7633: + return "pmdfmgt", true + case 7648: + return "cuseeme", true + case 7663: + return "rome", true + case 7674: + return "imqtunnels", true + case 7675: + return "imqtunnel", true + case 7676: + return "imqbrokerd", true + case 7677: + return "sun-user-https", true + case 7680: + return "ms-do", true + case 7689: + return "collaber", true + case 7697: + return "klio", true + case 7707: + return "sync-em7", true + case 7708: + return "scinet", true + case 7720: + return "medimageportal", true + case 7724: + return "nsdeepfreezectl", true + case 7725: + return "nitrogen", true + case 7726: + return "freezexservice", true + case 7727: + return "trident-data", true + case 7728: + return "osvr", true + case 7734: + return "smip", true + case 7738: + return "aiagent", true + case 7741: + return "scriptview", true + case 7743: + return "sstp-1", true + case 7744: + return "raqmon-pdu", true + case 7747: + return "prgp", true + case 7777: + return "cbt", true + case 7778: + return "interwise", true + case 7779: + return "vstat", true + case 7781: + return "accu-lmgr", true + case 7784: + return "s-bfd", true + case 7786: + return "minivend", true + case 7787: + return "popup-reminders", true + case 7789: + return "office-tools", true + case 7794: + return "q3ade", true + case 7797: + return "pnet-conn", true + case 7798: + return "pnet-enc", true + case 7799: + return "altbsdp", true + case 7800: + return "asr", true + case 7801: + return "ssp-client", true + case 7802: + return "vns-tp", true + case 7810: + return "rbt-wanopt", true + case 7845: + return "apc-7845", true + case 7846: + return "apc-7846", true + case 7872: + return "mipv6tls", true + case 7880: + return "pss", true + case 7887: + return "ubroker", true + case 7900: + return "mevent", true + case 7901: + return "tnos-sp", true + case 7902: + return "tnos-dp", true + case 7903: + return "tnos-dps", true + case 7913: + return "qo-secure", true + case 7932: + return "t2-drm", true + case 7933: + return "t2-brm", true + case 7962: + return "generalsync", true + case 7967: + return "supercell", true + case 7979: + return "micromuse-ncps", true + case 7980: + return "quest-vista", true + case 7982: + return "sossd-disc", true + case 7998: + return "usicontentpush", true + case 7999: + return "irdmi2", true + case 8000: + return "irdmi", true + case 8001: + return "vcom-tunnel", true + case 8002: + return "teradataordbms", true + case 8003: + return "mcreport", true + case 8005: + return "mxi", true + case 8006: + return "wpl-disc", true + case 8007: + return "warppipe", true + case 8008: + return "http-alt", true + case 8017: + return "cisco-cloudsec", true + case 8019: + return "qbdb", true + case 8020: + return "intu-ec-svcdisc", true + case 8021: + return "intu-ec-client", true + case 8022: + return "oa-system", true + case 8023: + return "arca-api", true + case 8025: + return "ca-audit-da", true + case 8026: + return "ca-audit-ds", true + case 8027: + return "papachi-p2p-srv", true + case 8032: + return "pro-ed", true + case 8033: + return "mindprint", true + case 8034: + return "vantronix-mgmt", true + case 8040: + return "ampify", true + case 8041: + return "enguity-xccetp", true + case 8052: + return "senomix01", true + case 8053: + return "senomix02", true + case 8054: + return "senomix03", true + case 8055: + return "senomix04", true + case 8056: + return "senomix05", true + case 8057: + return "senomix06", true + case 8058: + return "senomix07", true + case 8059: + return "senomix08", true + case 8060: + return "aero", true + case 8074: + return "gadugadu", true + case 8080: + return "http-alt", true + case 8081: + return "sunproxyadmin", true + case 8082: + return "us-cli", true + case 8083: + return "us-srv", true + case 8086: + return "d-s-n", true + case 8087: + return "simplifymedia", true + case 8088: + return "radan-http", true + case 8097: + return "sac", true + case 8100: + return "xprint-server", true + case 8111: + return "skynetflow", true + case 8115: + return "mtl8000-matrix", true + case 8116: + return "cp-cluster", true + case 8118: + return "privoxy", true + case 8121: + return "apollo-data", true + case 8122: + return "apollo-admin", true + case 8128: + return "paycash-online", true + case 8129: + return "paycash-wbp", true + case 8130: + return "indigo-vrmi", true + case 8131: + return "indigo-vbcp", true + case 8132: + return "dbabble", true + case 8148: + return "isdd", true + case 8149: + return "eor-game", true + case 8160: + return "patrol", true + case 8161: + return "patrol-snmp", true + case 8182: + return "vmware-fdm", true + case 8184: + return "itach", true + case 8192: + return "spytechphone", true + case 8194: + return "blp1", true + case 8195: + return "blp2", true + case 8199: + return "vvr-data", true + case 8200: + return "trivnet1", true + case 8201: + return "trivnet2", true + case 8202: + return "aesop", true + case 8204: + return "lm-perfworks", true + case 8205: + return "lm-instmgr", true + case 8206: + return "lm-dta", true + case 8207: + return "lm-sserver", true + case 8208: + return "lm-webwatcher", true + case 8211: + return "aruba-papi", true + case 8230: + return "rexecj", true + case 8231: + return "hncp-udp-port", true + case 8232: + return "hncp-dtls-port", true + case 8243: + return "synapse-nhttps", true + case 8266: + return "espeasy-p2p", true + case 8276: + return "ms-mcc", true + case 8280: + return "synapse-nhttp", true + case 8282: + return "libelle-disc", true + case 8292: + return "blp3", true + case 8294: + return "blp4", true + case 8300: + return "tmi", true + case 8301: + return "amberon", true + case 8320: + return "tnp-discover", true + case 8321: + return "tnp", true + case 8322: + return "garmin-marine", true + case 8351: + return "server-find", true + case 8376: + return "cruise-enum", true + case 8377: + return "cruise-swroute", true + case 8378: + return "cruise-config", true + case 8379: + return "cruise-diags", true + case 8380: + return "cruise-update", true + case 8383: + return "m2mservices", true + case 8384: + return "marathontp", true + case 8400: + return "cvd", true + case 8401: + return "sabarsd", true + case 8402: + return "abarsd", true + case 8403: + return "admind", true + case 8416: + return "espeech", true + case 8417: + return "espeech-rtp", true + case 8433: + return "aws-as2", true + case 8442: + return "cybro-a-bus", true + case 8443: + return "pcsync-https", true + case 8444: + return "pcsync-http", true + case 8445: + return "copy-disc", true + case 8450: + return "npmp", true + case 8472: + return "otv", true + case 8473: + return "vp2p", true + case 8474: + return "noteshare", true + case 8500: + return "fmtp", true + case 8501: + return "cmtp-av", true + case 8503: + return "lsp-self-ping", true + case 8554: + return "rtsp-alt", true + case 8555: + return "d-fence", true + case 8567: + return "dof-tunnel", true + case 8600: + return "asterix", true + case 8609: + return "canon-cpp-disc", true + case 8610: + return "canon-mfnp", true + case 8611: + return "canon-bjnp1", true + case 8612: + return "canon-bjnp2", true + case 8613: + return "canon-bjnp3", true + case 8614: + return "canon-bjnp4", true + case 8675: + return "msi-cps-rm-disc", true + case 8686: + return "sun-as-jmxrmi", true + case 8732: + return "dtp-net", true + case 8733: + return "ibus", true + case 8763: + return "mc-appserver", true + case 8764: + return "openqueue", true + case 8765: + return "ultraseek-http", true + case 8766: + return "amcs", true + case 8770: + return "dpap", true + case 8786: + return "msgclnt", true + case 8787: + return "msgsrvr", true + case 8793: + return "acd-pm", true + case 8800: + return "sunwebadmin", true + case 8804: + return "truecm", true + case 8805: + return "pfcp", true + case 8807: + return "hes-clip", true + case 8808: + return "ssports-bcast", true + case 8809: + return "3gpp-monp", true + case 8873: + return "dxspider", true + case 8880: + return "cddbp-alt", true + case 8883: + return "secure-mqtt", true + case 8888: + return "ddi-udp-1", true + case 8889: + return "ddi-udp-2", true + case 8890: + return "ddi-udp-3", true + case 8891: + return "ddi-udp-4", true + case 8892: + return "ddi-udp-5", true + case 8893: + return "ddi-udp-6", true + case 8894: + return "ddi-udp-7", true + case 8899: + return "ospf-lite", true + case 8900: + return "jmb-cds1", true + case 8901: + return "jmb-cds2", true + case 8910: + return "manyone-http", true + case 8911: + return "manyone-xml", true + case 8912: + return "wcbackup", true + case 8913: + return "dragonfly", true + case 8954: + return "cumulus-admin", true + case 8980: + return "nod-provider", true + case 8981: + return "nod-client", true + case 8989: + return "sunwebadmins", true + case 8990: + return "http-wmap", true + case 8991: + return "https-wmap", true + case 8999: + return "bctp", true + case 9000: + return "cslistener", true + case 9001: + return "etlservicemgr", true + case 9002: + return "dynamid", true + case 9007: + return "ogs-client", true + case 9009: + return "pichat", true + case 9011: + return "d-star", true + case 9020: + return "tambora", true + case 9021: + return "panagolin-ident", true + case 9022: + return "paragent", true + case 9023: + return "swa-1", true + case 9024: + return "swa-2", true + case 9025: + return "swa-3", true + case 9026: + return "swa-4", true + case 9060: + return "CardWeb-RT", true + case 9080: + return "glrpc", true + case 9081: + return "cisco-aqos", true + case 9084: + return "aurora", true + case 9085: + return "ibm-rsyscon", true + case 9086: + return "net2display", true + case 9087: + return "classic", true + case 9088: + return "sqlexec", true + case 9089: + return "sqlexec-ssl", true + case 9090: + return "websm", true + case 9091: + return "xmltec-xmlmail", true + case 9092: + return "XmlIpcRegSvc", true + case 9100: + return "hp-pdl-datastr", true + case 9101: + return "bacula-dir", true + case 9102: + return "bacula-fd", true + case 9103: + return "bacula-sd", true + case 9104: + return "peerwire", true + case 9105: + return "xadmin", true + case 9106: + return "astergate-disc", true + case 9111: + return "hexxorecore", true + case 9119: + return "mxit", true + case 9131: + return "dddp", true + case 9160: + return "apani1", true + case 9161: + return "apani2", true + case 9162: + return "apani3", true + case 9163: + return "apani4", true + case 9164: + return "apani5", true + case 9191: + return "sun-as-jpda", true + case 9200: + return "wap-wsp", true + case 9201: + return "wap-wsp-wtp", true + case 9202: + return "wap-wsp-s", true + case 9203: + return "wap-wsp-wtp-s", true + case 9204: + return "wap-vcard", true + case 9205: + return "wap-vcal", true + case 9206: + return "wap-vcard-s", true + case 9207: + return "wap-vcal-s", true + case 9208: + return "rjcdb-vcards", true + case 9209: + return "almobile-system", true + case 9210: + return "oma-mlp", true + case 9211: + return "oma-mlp-s", true + case 9212: + return "serverviewdbms", true + case 9213: + return "serverstart", true + case 9214: + return "ipdcesgbs", true + case 9215: + return "insis", true + case 9216: + return "acme", true + case 9217: + return "fsc-port", true + case 9222: + return "teamcoherence", true + case 9255: + return "mon", true + case 9277: + return "traingpsdata", true + case 9278: + return "pegasus", true + case 9279: + return "pegasus-ctl", true + case 9280: + return "pgps", true + case 9281: + return "swtp-port1", true + case 9282: + return "swtp-port2", true + case 9283: + return "callwaveiam", true + case 9284: + return "visd", true + case 9285: + return "n2h2server", true + case 9286: + return "n2receive", true + case 9287: + return "cumulus", true + case 9292: + return "armtechdaemon", true + case 9293: + return "storview", true + case 9294: + return "armcenterhttp", true + case 9295: + return "armcenterhttps", true + case 9300: + return "vrace", true + case 9318: + return "secure-ts", true + case 9321: + return "guibase", true + case 9343: + return "mpidcmgr", true + case 9344: + return "mphlpdmc", true + case 9346: + return "ctechlicensing", true + case 9374: + return "fjdmimgr", true + case 9380: + return "boxp", true + case 9396: + return "fjinvmgr", true + case 9397: + return "mpidcagt", true + case 9400: + return "sec-t4net-srv", true + case 9401: + return "sec-t4net-clt", true + case 9402: + return "sec-pc2fax-srv", true + case 9418: + return "git", true + case 9443: + return "tungsten-https", true + case 9444: + return "wso2esb-console", true + case 9450: + return "sntlkeyssrvr", true + case 9500: + return "ismserver", true + case 9522: + return "sma-spw", true + case 9535: + return "mngsuite", true + case 9536: + return "laes-bf", true + case 9555: + return "trispen-sra", true + case 9592: + return "ldgateway", true + case 9593: + return "cba8", true + case 9594: + return "msgsys", true + case 9595: + return "pds", true + case 9596: + return "mercury-disc", true + case 9597: + return "pd-admin", true + case 9598: + return "vscp", true + case 9599: + return "robix", true + case 9600: + return "micromuse-ncpw", true + case 9612: + return "streamcomm-ds", true + case 9618: + return "condor", true + case 9628: + return "odbcpathway", true + case 9629: + return "uniport", true + case 9632: + return "mc-comm", true + case 9667: + return "xmms2", true + case 9668: + return "tec5-sdctp", true + case 9694: + return "client-wakeup", true + case 9695: + return "ccnx", true + case 9700: + return "board-roar", true + case 9747: + return "l5nas-parchan", true + case 9750: + return "board-voip", true + case 9753: + return "rasadv", true + case 9762: + return "tungsten-http", true + case 9800: + return "davsrc", true + case 9801: + return "sstp-2", true + case 9802: + return "davsrcs", true + case 9875: + return "sapv1", true + case 9878: + return "kca-service", true + case 9888: + return "cyborg-systems", true + case 9889: + return "gt-proxy", true + case 9898: + return "monkeycom", true + case 9899: + return "sctp-tunneling", true + case 9900: + return "iua", true + case 9901: + return "enrp", true + case 9903: + return "multicast-ping", true + case 9909: + return "domaintime", true + case 9911: + return "sype-transport", true + case 9950: + return "apc-9950", true + case 9951: + return "apc-9951", true + case 9952: + return "apc-9952", true + case 9953: + return "acis", true + case 9955: + return "alljoyn-mcm", true + case 9956: + return "alljoyn", true + case 9966: + return "odnsp", true + case 9987: + return "dsm-scm-target", true + case 9990: + return "osm-appsrvr", true + case 9991: + return "osm-oev", true + case 9992: + return "palace-1", true + case 9993: + return "palace-2", true + case 9994: + return "palace-3", true + case 9995: + return "palace-4", true + case 9996: + return "palace-5", true + case 9997: + return "palace-6", true + case 9998: + return "distinct32", true + case 9999: + return "distinct", true + case 10000: + return "ndmp", true + case 10001: + return "scp-config", true + case 10002: + return "documentum", true + case 10003: + return "documentum-s", true + case 10007: + return "mvs-capacity", true + case 10008: + return "octopus", true + case 10009: + return "swdtp-sv", true + case 10023: + return "cefd-vmp", true + case 10050: + return "zabbix-agent", true + case 10051: + return "zabbix-trapper", true + case 10080: + return "amanda", true + case 10081: + return "famdc", true + case 10100: + return "itap-ddtp", true + case 10101: + return "ezmeeting-2", true + case 10102: + return "ezproxy-2", true + case 10103: + return "ezrelay", true + case 10104: + return "swdtp", true + case 10107: + return "bctp-server", true + case 10110: + return "nmea-0183", true + case 10111: + return "nmea-onenet", true + case 10113: + return "netiq-endpoint", true + case 10114: + return "netiq-qcheck", true + case 10115: + return "netiq-endpt", true + case 10116: + return "netiq-voipa", true + case 10117: + return "iqrm", true + case 10128: + return "bmc-perf-sd", true + case 10160: + return "qb-db-server", true + case 10161: + return "snmpdtls", true + case 10162: + return "snmpdtls-trap", true + case 10200: + return "trisoap", true + case 10201: + return "rscs", true + case 10252: + return "apollo-relay", true + case 10253: + return "eapol-relay", true + case 10260: + return "axis-wimp-port", true + case 10288: + return "blocks", true + case 10439: + return "bngsync", true + case 10500: + return "hip-nat-t", true + case 10540: + return "MOS-lower", true + case 10541: + return "MOS-upper", true + case 10542: + return "MOS-aux", true + case 10543: + return "MOS-soap", true + case 10544: + return "MOS-soap-opt", true + case 10800: + return "gap", true + case 10805: + return "lpdg", true + case 10810: + return "nmc-disc", true + case 10860: + return "helix", true + case 10880: + return "bveapi", true + case 10990: + return "rmiaux", true + case 11000: + return "irisa", true + case 11001: + return "metasys", true + case 11095: + return "weave", true + case 11106: + return "sgi-lk", true + case 11108: + return "myq-termlink", true + case 11111: + return "vce", true + case 11112: + return "dicom", true + case 11161: + return "suncacao-snmp", true + case 11162: + return "suncacao-jmxmp", true + case 11163: + return "suncacao-rmi", true + case 11164: + return "suncacao-csa", true + case 11165: + return "suncacao-websvc", true + case 11171: + return "snss", true + case 11201: + return "smsqp", true + case 11208: + return "wifree", true + case 11211: + return "memcache", true + case 11319: + return "imip", true + case 11320: + return "imip-channels", true + case 11321: + return "arena-server", true + case 11367: + return "atm-uhas", true + case 11371: + return "hkp", true + case 11430: + return "lsdp", true + case 11600: + return "tempest-port", true + case 11720: + return "h323callsigalt", true + case 11723: + return "emc-xsw-dcache", true + case 11751: + return "intrepid-ssl", true + case 11796: + return "lanschool-mpt", true + case 11876: + return "xoraya", true + case 11877: + return "x2e-disc", true + case 11967: + return "sysinfo-sp", true + case 12000: + return "entextxid", true + case 12001: + return "entextnetwk", true + case 12002: + return "entexthigh", true + case 12003: + return "entextmed", true + case 12004: + return "entextlow", true + case 12005: + return "dbisamserver1", true + case 12006: + return "dbisamserver2", true + case 12007: + return "accuracer", true + case 12008: + return "accuracer-dbms", true + case 12009: + return "ghvpn", true + case 12012: + return "vipera", true + case 12013: + return "vipera-ssl", true + case 12109: + return "rets-ssl", true + case 12121: + return "nupaper-ss", true + case 12168: + return "cawas", true + case 12172: + return "hivep", true + case 12300: + return "linogridengine", true + case 12321: + return "warehouse-sss", true + case 12322: + return "warehouse", true + case 12345: + return "italk", true + case 12753: + return "tsaf", true + case 13160: + return "i-zipqd", true + case 13216: + return "bcslogc", true + case 13217: + return "rs-pias", true + case 13218: + return "emc-vcas-udp", true + case 13223: + return "powwow-client", true + case 13224: + return "powwow-server", true + case 13400: + return "doip-disc", true + case 13720: + return "bprd", true + case 13721: + return "bpdbm", true + case 13722: + return "bpjava-msvc", true + case 13724: + return "vnetd", true + case 13782: + return "bpcd", true + case 13783: + return "vopied", true + case 13785: + return "nbdb", true + case 13786: + return "nomdb", true + case 13818: + return "dsmcc-config", true + case 13819: + return "dsmcc-session", true + case 13820: + return "dsmcc-passthru", true + case 13821: + return "dsmcc-download", true + case 13822: + return "dsmcc-ccp", true + case 13894: + return "ucontrol", true + case 13929: + return "dta-systems", true + case 14000: + return "scotty-ft", true + case 14001: + return "sua", true + case 14002: + return "scotty-disc", true + case 14033: + return "sage-best-com1", true + case 14034: + return "sage-best-com2", true + case 14141: + return "vcs-app", true + case 14142: + return "icpp", true + case 14145: + return "gcm-app", true + case 14149: + return "vrts-tdd", true + case 14154: + return "vad", true + case 14250: + return "cps", true + case 14414: + return "ca-web-update", true + case 14936: + return "hde-lcesrvr-1", true + case 14937: + return "hde-lcesrvr-2", true + case 15000: + return "hydap", true + case 15118: + return "v2g-secc", true + case 15345: + return "xpilot", true + case 15363: + return "3link", true + case 15555: + return "cisco-snat", true + case 15660: + return "bex-xr", true + case 15740: + return "ptp", true + case 15998: + return "2ping", true + case 16003: + return "alfin", true + case 16161: + return "sun-sea-port", true + case 16309: + return "etb4j", true + case 16310: + return "pduncs", true + case 16311: + return "pdefmns", true + case 16360: + return "netserialext1", true + case 16361: + return "netserialext2", true + case 16367: + return "netserialext3", true + case 16368: + return "netserialext4", true + case 16384: + return "connected", true + case 16666: + return "vtp", true + case 16900: + return "newbay-snc-mc", true + case 16950: + return "sgcip", true + case 16991: + return "intel-rci-mp", true + case 16992: + return "amt-soap-http", true + case 16993: + return "amt-soap-https", true + case 16994: + return "amt-redir-tcp", true + case 16995: + return "amt-redir-tls", true + case 17007: + return "isode-dua", true + case 17185: + return "soundsvirtual", true + case 17219: + return "chipper", true + case 17220: + return "avtp", true + case 17221: + return "avdecc", true + case 17222: + return "cpsp", true + case 17224: + return "trdp-pd", true + case 17225: + return "trdp-md", true + case 17234: + return "integrius-stp", true + case 17235: + return "ssh-mgmt", true + case 17500: + return "db-lsp-disc", true + case 17729: + return "ea", true + case 17754: + return "zep", true + case 17755: + return "zigbee-ip", true + case 17756: + return "zigbee-ips", true + case 18000: + return "biimenu", true + case 18181: + return "opsec-cvp", true + case 18182: + return "opsec-ufp", true + case 18183: + return "opsec-sam", true + case 18184: + return "opsec-lea", true + case 18185: + return "opsec-omi", true + case 18186: + return "ohsc", true + case 18187: + return "opsec-ela", true + case 18241: + return "checkpoint-rtm", true + case 18262: + return "gv-pf", true + case 18463: + return "ac-cluster", true + case 18516: + return "heythings", true + case 18634: + return "rds-ib", true + case 18635: + return "rds-ip", true + case 18668: + return "vdmmesh-disc", true + case 18769: + return "ique", true + case 18881: + return "infotos", true + case 18888: + return "apc-necmp", true + case 19000: + return "igrid", true + case 19007: + return "scintilla", true + case 19191: + return "opsec-uaa", true + case 19194: + return "ua-secureagent", true + case 19220: + return "cora-disc", true + case 19283: + return "keysrvr", true + case 19315: + return "keyshadow", true + case 19398: + return "mtrgtrans", true + case 19410: + return "hp-sco", true + case 19411: + return "hp-sca", true + case 19412: + return "hp-sessmon", true + case 19539: + return "fxuptp", true + case 19540: + return "sxuptp", true + case 19541: + return "jcp", true + case 19788: + return "mle", true + case 19999: + return "dnp-sec", true + case 20000: + return "dnp", true + case 20001: + return "microsan", true + case 20002: + return "commtact-http", true + case 20003: + return "commtact-https", true + case 20005: + return "openwebnet", true + case 20012: + return "ss-idi-disc", true + case 20014: + return "opendeploy", true + case 20034: + return "nburn-id", true + case 20046: + return "tmophl7mts", true + case 20048: + return "mountd", true + case 20049: + return "nfsrdma", true + case 20167: + return "tolfab", true + case 20202: + return "ipdtp-port", true + case 20222: + return "ipulse-ics", true + case 20480: + return "emwavemsg", true + case 20670: + return "track", true + case 20999: + return "athand-mmp", true + case 21000: + return "irtrans", true + case 21554: + return "dfserver", true + case 21590: + return "vofr-gateway", true + case 21800: + return "tvpm", true + case 21845: + return "webphone", true + case 21846: + return "netspeak-is", true + case 21847: + return "netspeak-cs", true + case 21848: + return "netspeak-acd", true + case 21849: + return "netspeak-cps", true + case 22000: + return "snapenetio", true + case 22001: + return "optocontrol", true + case 22002: + return "optohost002", true + case 22003: + return "optohost003", true + case 22004: + return "optohost004", true + case 22005: + return "optohost004", true + case 22273: + return "wnn6", true + case 22305: + return "cis", true + case 22333: + return "showcockpit-net", true + case 22335: + return "shrewd-stream", true + case 22343: + return "cis-secure", true + case 22347: + return "wibukey", true + case 22350: + return "codemeter", true + case 22555: + return "vocaltec-phone", true + case 22763: + return "talikaserver", true + case 22800: + return "aws-brf", true + case 22951: + return "brf-gw", true + case 23000: + return "inovaport1", true + case 23001: + return "inovaport2", true + case 23002: + return "inovaport3", true + case 23003: + return "inovaport4", true + case 23004: + return "inovaport5", true + case 23005: + return "inovaport6", true + case 23272: + return "s102", true + case 23294: + return "5afe-disc", true + case 23333: + return "elxmgmt", true + case 23400: + return "novar-dbase", true + case 23401: + return "novar-alarm", true + case 23402: + return "novar-global", true + case 24000: + return "med-ltp", true + case 24001: + return "med-fsp-rx", true + case 24002: + return "med-fsp-tx", true + case 24003: + return "med-supp", true + case 24004: + return "med-ovw", true + case 24005: + return "med-ci", true + case 24006: + return "med-net-svc", true + case 24242: + return "filesphere", true + case 24249: + return "vista-4gl", true + case 24321: + return "ild", true + case 24322: + return "hid", true + case 24386: + return "intel-rci", true + case 24465: + return "tonidods", true + case 24554: + return "binkp", true + case 24577: + return "bilobit-update", true + case 24676: + return "canditv", true + case 24677: + return "flashfiler", true + case 24678: + return "proactivate", true + case 24680: + return "tcc-http", true + case 24850: + return "assoc-disc", true + case 24922: + return "find", true + case 25000: + return "icl-twobase1", true + case 25001: + return "icl-twobase2", true + case 25002: + return "icl-twobase3", true + case 25003: + return "icl-twobase4", true + case 25004: + return "icl-twobase5", true + case 25005: + return "icl-twobase6", true + case 25006: + return "icl-twobase7", true + case 25007: + return "icl-twobase8", true + case 25008: + return "icl-twobase9", true + case 25009: + return "icl-twobase10", true + case 25793: + return "vocaltec-hos", true + case 25900: + return "tasp-net", true + case 25901: + return "niobserver", true + case 25902: + return "nilinkanalyst", true + case 25903: + return "niprobe", true + case 25954: + return "bf-game", true + case 25955: + return "bf-master", true + case 26000: + return "quake", true + case 26133: + return "scscp", true + case 26208: + return "wnn6-ds", true + case 26260: + return "ezproxy", true + case 26261: + return "ezmeeting", true + case 26262: + return "k3software-svr", true + case 26263: + return "k3software-cli", true + case 26486: + return "exoline-udp", true + case 26487: + return "exoconfig", true + case 26489: + return "exonet", true + case 27345: + return "imagepump", true + case 27442: + return "jesmsjc", true + case 27504: + return "kopek-httphead", true + case 27782: + return "ars-vista", true + case 27999: + return "tw-auth-key", true + case 28000: + return "nxlmd", true + case 28119: + return "a27-ran-ran", true + case 28200: + return "voxelstorm", true + case 28240: + return "siemensgsm", true + case 29167: + return "otmp", true + case 30001: + return "pago-services1", true + case 30002: + return "pago-services2", true + case 30003: + return "amicon-fpsu-ra", true + case 30004: + return "amicon-fpsu-s", true + case 30260: + return "kingdomsonline", true + case 30832: + return "samsung-disc", true + case 30999: + return "ovobs", true + case 31016: + return "ka-kdp", true + case 31029: + return "yawn", true + case 31337: + return "eldim", true + case 31416: + return "xqosd", true + case 31457: + return "tetrinet", true + case 31620: + return "lm-mon", true + case 31765: + return "gamesmith-port", true + case 31948: + return "iceedcp-tx", true + case 31949: + return "iceedcp-rx", true + case 32034: + return "iracinghelper", true + case 32249: + return "t1distproc60", true + case 32483: + return "apm-link", true + case 32635: + return "sec-ntb-clnt", true + case 32636: + return "DMExpress", true + case 32767: + return "filenet-powsrm", true + case 32768: + return "filenet-tms", true + case 32769: + return "filenet-rpc", true + case 32770: + return "filenet-nch", true + case 32771: + return "filenet-rmi", true + case 32772: + return "filenet-pa", true + case 32773: + return "filenet-cm", true + case 32774: + return "filenet-re", true + case 32775: + return "filenet-pch", true + case 32776: + return "filenet-peior", true + case 32777: + return "filenet-obrok", true + case 32801: + return "mlsn", true + case 32896: + return "idmgratm", true + case 33123: + return "aurora-balaena", true + case 33331: + return "diamondport", true + case 33334: + return "speedtrace-disc", true + case 33434: + return "traceroute", true + case 33435: + return "mtrace", true + case 33656: + return "snip-slave", true + case 34249: + return "turbonote-2", true + case 34378: + return "p-net-local", true + case 34379: + return "p-net-remote", true + case 34567: + return "edi_service", true + case 34962: + return "profinet-rt", true + case 34963: + return "profinet-rtm", true + case 34964: + return "profinet-cm", true + case 34980: + return "ethercat", true + case 35001: + return "rt-viewer", true + case 35004: + return "rt-classmanager", true + case 35100: + return "axio-disc", true + case 35355: + return "altova-lm-disc", true + case 36001: + return "allpeers", true + case 36411: + return "wlcp", true + case 36865: + return "kastenxpipe", true + case 37475: + return "neckar", true + case 37654: + return "unisys-eportal", true + case 38002: + return "crescoctrl-disc", true + case 38201: + return "galaxy7-data", true + case 38202: + return "fairview", true + case 38203: + return "agpolicy", true + case 39681: + return "turbonote-1", true + case 40000: + return "safetynetp", true + case 40023: + return "k-patentssensor", true + case 40841: + return "cscp", true + case 40842: + return "csccredir", true + case 40843: + return "csccfirewall", true + case 40853: + return "ortec-disc", true + case 41111: + return "fs-qos", true + case 41230: + return "z-wave-s", true + case 41794: + return "crestron-cip", true + case 41795: + return "crestron-ctp", true + case 42508: + return "candp", true + case 42509: + return "candrp", true + case 42510: + return "caerpc", true + case 43000: + return "recvr-rc-disc", true + case 43188: + return "reachout", true + case 43189: + return "ndm-agent-port", true + case 43190: + return "ip-provision", true + case 43210: + return "shaperai-disc", true + case 43438: + return "hmip-routing", true + case 43439: + return "eq3-config", true + case 43440: + return "ew-disc-cmd", true + case 43441: + return "ciscocsdb", true + case 44321: + return "pmcd", true + case 44322: + return "pmcdproxy", true + case 44544: + return "domiq", true + case 44553: + return "rbr-debug", true + case 44600: + return "asihpi", true + case 44818: + return "EtherNet-IP-2", true + case 44900: + return "m3da-disc", true + case 45000: + return "asmp-mon", true + case 45054: + return "invision-ag", true + case 45514: + return "cloudcheck-ping", true + case 45678: + return "eba", true + case 45825: + return "qdb2service", true + case 45966: + return "ssr-servermgr", true + case 46999: + return "mediabox", true + case 47000: + return "mbus", true + case 47100: + return "jvl-mactalk", true + case 47557: + return "dbbrowse", true + case 47624: + return "directplaysrvr", true + case 47806: + return "ap", true + case 47808: + return "bacnet", true + case 47809: + return "presonus-ucnet", true + case 48000: + return "nimcontroller", true + case 48001: + return "nimspooler", true + case 48002: + return "nimhub", true + case 48003: + return "nimgtw", true + case 48128: + return "isnetserv", true + case 48129: + return "blp5", true + case 48556: + return "com-bardac-dw", true + case 48619: + return "iqobject", true + case 48653: + return "robotraconteur", true + case 49001: + return "nusdp-disc", true + + } + + return "", false +} + +// SCTPPortNames contains the port names for all SCTP ports. +func SCTPPortNames(port SCTPPort) (string, bool) { + switch port { + case 9: + return "discard", true + case 20: + return "ftp-data", true + case 21: + return "ftp", true + case 22: + return "ssh", true + case 80: + return "http", true + case 179: + return "bgp", true + case 443: + return "https", true + case 1021: + return "exp1", true + case 1022: + return "exp2", true + case 1167: + return "cisco-ipsla", true + case 1528: + return "norp", true + case 1720: + return "h323hostcall", true + case 2049: + return "nfs", true + case 2225: + return "rcip-itu", true + case 2904: + return "m2ua", true + case 2905: + return "m3ua", true + case 2944: + return "megaco-h248", true + case 2945: + return "h248-binary", true + case 3097: + return "itu-bicc-stc", true + case 3565: + return "m2pa", true + case 3863: + return "asap-sctp", true + case 3864: + return "asap-sctp-tls", true + case 3868: + return "diameter", true + case 4195: + return "aws-wsp", true + case 4333: + return "ahsp", true + case 4502: + return "a25-fap-fgw", true + case 4711: + return "trinity-dist", true + case 4739: + return "ipfix", true + case 4740: + return "ipfixs", true + case 5060: + return "sip", true + case 5061: + return "sips", true + case 5090: + return "car", true + case 5091: + return "cxtp", true + case 5215: + return "noteza", true + case 5445: + return "smbdirect", true + case 5672: + return "amqp", true + case 5675: + return "v5ua", true + case 5868: + return "diameters", true + case 5903: + return "ff-ice", true + case 5904: + return "ag-swim", true + case 5905: + return "asmgcs", true + case 5906: + return "rpas-c2", true + case 5907: + return "dsd", true + case 5908: + return "ipsma", true + case 5909: + return "agma", true + case 5910: + return "cm", true + case 5911: + return "cpdlc", true + case 5912: + return "fis", true + case 5913: + return "ads-c", true + case 6704: + return "frc-hp", true + case 6705: + return "frc-mp", true + case 6706: + return "frc-lp", true + case 6970: + return "conductor-mpx", true + case 7626: + return "simco", true + case 7701: + return "nfapi", true + case 7728: + return "osvr", true + case 8471: + return "pim-port", true + case 9082: + return "lcs-ap", true + case 9084: + return "aurora", true + case 9900: + return "iua", true + case 9901: + return "enrp-sctp", true + case 9902: + return "enrp-sctp-tls", true + case 11235: + return "xcompute", true + case 11997: + return "wmereceiving", true + case 11998: + return "wmedistribution", true + case 11999: + return "wmereporting", true + case 14001: + return "sua", true + case 19999: + return "dnp-sec", true + case 20000: + return "dnp", true + case 20049: + return "nfsrdma", true + case 25471: + return "rna", true + case 29118: + return "sgsap", true + case 29168: + return "sbcap", true + case 29169: + return "iuhsctpassoc", true + case 30100: + return "rwp", true + case 36412: + return "s1-control", true + case 36422: + return "x2-control", true + case 36423: + return "slmap", true + case 36424: + return "nq-ap", true + case 36443: + return "m2ap", true + case 36444: + return "m3ap", true + case 36462: + return "xw-control", true + case 37472: + return "3gpp-w1ap", true + case 38412: + return "ng-control", true + case 38422: + return "xn-control", true + case 38462: + return "e1-interface", true + case 38472: + return "f1-control", true + + } + + return "", false +} diff --git a/backend/vendor/github.com/google/gopacket/layers/icmp4.go b/backend/vendor/github.com/gopacket/gopacket/layers/icmp4.go similarity index 93% rename from backend/vendor/github.com/google/gopacket/layers/icmp4.go rename to backend/vendor/github.com/gopacket/gopacket/layers/icmp4.go index bd3f03f00..da87f038d 100644 --- a/backend/vendor/github.com/google/gopacket/layers/icmp4.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/icmp4.go @@ -13,7 +13,7 @@ import ( "fmt" "reflect" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) const ( @@ -245,7 +245,8 @@ func (i *ICMPv4) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.Serialize if opts.ComputeChecksums { bytes[2] = 0 bytes[3] = 0 - i.Checksum = tcpipChecksum(b.Bytes(), 0) + csum := gopacket.ComputeChecksum(b.Bytes(), 0) + i.Checksum = gopacket.FoldChecksum(csum) } binary.BigEndian.PutUint16(bytes[2:], i.Checksum) return nil @@ -261,6 +262,19 @@ func (i *ICMPv4) NextLayerType() gopacket.LayerType { return gopacket.LayerTypePayload } +func (i *ICMPv4) VerifyChecksum() (error, gopacket.ChecksumVerificationResult) { + bytes := append(i.Contents, i.Payload...) + + existing := i.Checksum + verification := gopacket.ComputeChecksum(bytes, 0) + correct := gopacket.FoldChecksum(verification - uint32(existing)) + return nil, gopacket.ChecksumVerificationResult{ + Valid: correct == existing, + Correct: uint32(correct), + Actual: uint32(existing), + } +} + func decodeICMPv4(data []byte, p gopacket.PacketBuilder) error { i := &ICMPv4{} return decodingLayerDecoder(i, data, p) diff --git a/backend/vendor/github.com/google/gopacket/layers/icmp6.go b/backend/vendor/github.com/gopacket/gopacket/layers/icmp6.go similarity index 93% rename from backend/vendor/github.com/google/gopacket/layers/icmp6.go rename to backend/vendor/github.com/gopacket/gopacket/layers/icmp6.go index 09afd11a6..c275a5bae 100644 --- a/backend/vendor/github.com/google/gopacket/layers/icmp6.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/icmp6.go @@ -13,7 +13,7 @@ import ( "fmt" "reflect" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) const ( @@ -214,7 +214,7 @@ func (i *ICMPv6) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.Serialize if err != nil { return err } - i.Checksum = csum + i.Checksum = gopacket.FoldChecksum(csum) } binary.BigEndian.PutUint16(bytes[2:], i.Checksum) @@ -260,6 +260,22 @@ func (i *ICMPv6) NextLayerType() gopacket.LayerType { return gopacket.LayerTypePayload } +func (i *ICMPv6) VerifyChecksum() (error, gopacket.ChecksumVerificationResult) { + bytes := append(i.Contents, i.Payload...) + + existing := i.Checksum + verification, err := i.computeChecksum(bytes, IPProtocolICMPv6) + if err != nil { + return err, gopacket.ChecksumVerificationResult{} + } + correct := gopacket.FoldChecksum(verification - uint32(existing)) + return nil, gopacket.ChecksumVerificationResult{ + Valid: correct == existing, + Correct: uint32(correct), + Actual: uint32(existing), + } +} + func decodeICMPv6(data []byte, p gopacket.PacketBuilder) error { i := &ICMPv6{} return decodingLayerDecoder(i, data, p) diff --git a/backend/vendor/github.com/google/gopacket/layers/icmp6msg.go b/backend/vendor/github.com/gopacket/gopacket/layers/icmp6msg.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/icmp6msg.go rename to backend/vendor/github.com/gopacket/gopacket/layers/icmp6msg.go index d9268db05..8af7aa69b 100644 --- a/backend/vendor/github.com/google/gopacket/layers/icmp6msg.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/icmp6msg.go @@ -15,7 +15,7 @@ import ( "net" "time" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // Based on RFC 4861 diff --git a/backend/vendor/github.com/google/gopacket/layers/igmp.go b/backend/vendor/github.com/gopacket/gopacket/layers/igmp.go similarity index 97% rename from backend/vendor/github.com/google/gopacket/layers/igmp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/igmp.go index d00841535..3d086d5be 100644 --- a/backend/vendor/github.com/google/gopacket/layers/igmp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/igmp.go @@ -13,7 +13,7 @@ import ( "net" "time" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) type IGMPType uint8 @@ -93,8 +93,9 @@ type IGMP struct { // IGMPv1or2 stores header details for an IGMPv1 or IGMPv2 packet. // -// 0 1 2 3 -// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +// 0 1 2 3 +// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +// // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ // | Type | Max Resp Time | Checksum | // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ @@ -204,8 +205,9 @@ func (i *IGMP) decodeIGMPv3MembershipReport(data []byte) error { return nil } -// 0 1 2 3 -// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +// 0 1 2 3 +// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +// // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ // | Type = 0x11 | Max Resp Code | Checksum | // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ diff --git a/backend/vendor/github.com/google/gopacket/layers/ip4.go b/backend/vendor/github.com/gopacket/gopacket/layers/ip4.go similarity index 87% rename from backend/vendor/github.com/google/gopacket/layers/ip4.go rename to backend/vendor/github.com/gopacket/gopacket/layers/ip4.go index 2b3c0c6bf..7963acb94 100644 --- a/backend/vendor/github.com/google/gopacket/layers/ip4.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/ip4.go @@ -14,7 +14,7 @@ import ( "net" "strings" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) type IPv4Flag uint8 @@ -149,35 +149,17 @@ func (ip *IPv4) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeO } if opts.ComputeChecksums { - ip.Checksum = checksum(bytes) + // Clear checksum bytes + bytes[10] = 0 + bytes[11] = 0 + + csum := gopacket.ComputeChecksum(bytes, 0) + ip.Checksum = gopacket.FoldChecksum(csum) } binary.BigEndian.PutUint16(bytes[10:], ip.Checksum) return nil } -func checksum(bytes []byte) uint16 { - // Clear checksum bytes - bytes[10] = 0 - bytes[11] = 0 - - // Compute checksum - var csum uint32 - for i := 0; i < len(bytes); i += 2 { - csum += uint32(bytes[i]) << 8 - csum += uint32(bytes[i+1]) - } - for { - // Break when sum is less or equals to 0xFFFF - if csum <= 65535 { - break - } - // Add carry to the sum - csum = (csum >> 16) + uint32(uint16(csum)) - } - // Flip all the bits - return ^uint16(csum) -} - func (ip *IPv4) flagsfrags() (ff uint16) { ff |= uint16(ip.Flags) << 13 ff |= ip.FragOffset @@ -190,24 +172,9 @@ func (ip *IPv4) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { df.SetTruncated() return fmt.Errorf("Invalid ip4 header. Length %d less than 20", len(data)) } - flagsfrags := binary.BigEndian.Uint16(data[6:8]) - ip.Version = uint8(data[0]) >> 4 - ip.IHL = uint8(data[0]) & 0x0F - ip.TOS = data[1] ip.Length = binary.BigEndian.Uint16(data[2:4]) - ip.Id = binary.BigEndian.Uint16(data[4:6]) - ip.Flags = IPv4Flag(flagsfrags >> 13) - ip.FragOffset = flagsfrags & 0x1FFF - ip.TTL = data[8] - ip.Protocol = IPProtocol(data[9]) - ip.Checksum = binary.BigEndian.Uint16(data[10:12]) - ip.SrcIP = data[12:16] - ip.DstIP = data[16:20] - ip.Options = ip.Options[:0] - ip.Padding = nil - // Set up an initial guess for contents/payload... we'll reset these soon. - ip.BaseLayer = BaseLayer{Contents: data} + ip.IHL = uint8(data[0]) & 0x0F // This code is added for the following enviroment: // * Windows 10 with TSO option activated. ( tested on Hyper-V, RealTek ethernet driver ) @@ -224,6 +191,7 @@ func (ip *IPv4) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { } else if int(ip.IHL*4) > int(ip.Length) { return fmt.Errorf("Invalid IP header length > IP length (%d > %d)", ip.IHL, ip.Length) } + if cmp := len(data) - int(ip.Length); cmp > 0 { data = data[:ip.Length] } else if cmp < 0 { @@ -232,45 +200,65 @@ func (ip *IPv4) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { return errors.New("Not all IP header bytes available") } } + + ip.Options = ip.Options[:0] ip.Contents = data[:ip.IHL*4] ip.Payload = data[ip.IHL*4:] + // From here on, data contains the header options. - data = data[20 : ip.IHL*4] + headerOptionsData := data[20 : ip.IHL*4] // Pull out IP options - for len(data) > 0 { + for len(headerOptionsData) > 0 { if ip.Options == nil { // Pre-allocate to avoid growing the slice too much. ip.Options = make([]IPv4Option, 0, 4) } - opt := IPv4Option{OptionType: data[0]} + + opt := IPv4Option{OptionType: headerOptionsData[0]} switch opt.OptionType { case 0: // End of options opt.OptionLength = 1 ip.Options = append(ip.Options, opt) - ip.Padding = data[1:] + ip.Padding = headerOptionsData[1:] + return nil case 1: // 1 byte padding opt.OptionLength = 1 - data = data[1:] + headerOptionsData = headerOptionsData[1:] ip.Options = append(ip.Options, opt) default: - if len(data) < 2 { + if len(headerOptionsData) < 2 { df.SetTruncated() - return fmt.Errorf("Invalid ip4 option length. Length %d less than 2", len(data)) + return fmt.Errorf("Invalid ip4 option length. Length %d less than 2", len(headerOptionsData)) } - opt.OptionLength = data[1] - if len(data) < int(opt.OptionLength) { + + opt.OptionLength = headerOptionsData[1] + if len(headerOptionsData) < int(opt.OptionLength) { df.SetTruncated() return fmt.Errorf("IP option length exceeds remaining IP header size, option type %v length %v", opt.OptionType, opt.OptionLength) } if opt.OptionLength <= 2 { return fmt.Errorf("Invalid IP option type %v length %d. Must be greater than 2", opt.OptionType, opt.OptionLength) } - opt.OptionData = data[2:opt.OptionLength] - data = data[opt.OptionLength:] + opt.OptionData = headerOptionsData[2:opt.OptionLength] + headerOptionsData = headerOptionsData[opt.OptionLength:] ip.Options = append(ip.Options, opt) } } + + flagsfrags := binary.BigEndian.Uint16(data[6:8]) + ip.Version = data[0] >> 4 + ip.TOS = data[1] + ip.Id = binary.BigEndian.Uint16(data[4:6]) + ip.Flags = IPv4Flag(flagsfrags >> 13) + ip.FragOffset = flagsfrags & 0x1FFF + ip.TTL = data[8] + ip.Protocol = IPProtocol(data[9]) + ip.Checksum = binary.BigEndian.Uint16(data[10:12]) + ip.SrcIP = data[12:16] + ip.DstIP = data[16:20] + ip.Padding = nil + return nil } @@ -323,3 +311,14 @@ func (ip *IPv4) AddressTo4() error { ip.DstIP = dst return nil } + +func (ip *IPv4) VerifyChecksum() (error, gopacket.ChecksumVerificationResult) { + existing := ip.Checksum + verification := gopacket.ComputeChecksum(ip.Contents, 0) + correct := gopacket.FoldChecksum(verification - uint32(existing)) + return nil, gopacket.ChecksumVerificationResult{ + Valid: correct == existing, + Correct: uint32(correct), + Actual: uint32(existing), + } +} diff --git a/backend/vendor/github.com/google/gopacket/layers/ip6.go b/backend/vendor/github.com/gopacket/gopacket/layers/ip6.go similarity index 97% rename from backend/vendor/github.com/google/gopacket/layers/ip6.go rename to backend/vendor/github.com/gopacket/gopacket/layers/ip6.go index 87b9d33d5..77937da46 100644 --- a/backend/vendor/github.com/google/gopacket/layers/ip6.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/ip6.go @@ -13,7 +13,7 @@ import ( "fmt" "net" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) const ( @@ -603,6 +603,23 @@ type IPv6Fragment struct { Identification uint32 } +func (i *IPv6Fragment) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error { + data, err := b.PrependBytes(8) + if err != nil { + return err + } + + data[0] = uint8(i.NextHeader) + data[1] = i.Reserved1 + binary.BigEndian.PutUint16(data[2:4], i.FragmentOffset<<3) + data[3] = data[3] | ((i.Reserved2 << 1) & 0x6) + if i.MoreFragments { + data[3] = data[3] | 0x1 + } + binary.BigEndian.PutUint32(data[4:8], i.Identification) + return nil +} + // LayerType returns LayerTypeIPv6Fragment. func (i *IPv6Fragment) LayerType() gopacket.LayerType { return LayerTypeIPv6Fragment } diff --git a/backend/vendor/github.com/google/gopacket/layers/ipsec.go b/backend/vendor/github.com/gopacket/gopacket/layers/ipsec.go similarity index 98% rename from backend/vendor/github.com/google/gopacket/layers/ipsec.go rename to backend/vendor/github.com/gopacket/gopacket/layers/ipsec.go index 12f31caf6..7f789acda 100644 --- a/backend/vendor/github.com/google/gopacket/layers/ipsec.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/ipsec.go @@ -9,7 +9,8 @@ package layers import ( "encoding/binary" "errors" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) // IPSecAH is the authentication header for IPv4/6 defined in diff --git a/backend/vendor/github.com/google/gopacket/layers/layertypes.go b/backend/vendor/github.com/gopacket/gopacket/layers/layertypes.go similarity index 98% rename from backend/vendor/github.com/google/gopacket/layers/layertypes.go rename to backend/vendor/github.com/gopacket/gopacket/layers/layertypes.go index 69d25ae80..a973b877d 100644 --- a/backend/vendor/github.com/google/gopacket/layers/layertypes.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/layertypes.go @@ -7,7 +7,7 @@ package layers import ( - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) var ( @@ -148,6 +148,8 @@ var ( LayerTypeASFPresencePong = gopacket.RegisterLayerType(144, gopacket.LayerTypeMetadata{Name: "ASFPresencePong", Decoder: gopacket.DecodeFunc(decodeASFPresencePong)}) LayerTypeERSPANII = gopacket.RegisterLayerType(145, gopacket.LayerTypeMetadata{Name: "ERSPAN Type II", Decoder: gopacket.DecodeFunc(decodeERSPANII)}) LayerTypeRADIUS = gopacket.RegisterLayerType(146, gopacket.LayerTypeMetadata{Name: "RADIUS", Decoder: gopacket.DecodeFunc(decodeRADIUS)}) + LayerTypeLinuxSLL2 = gopacket.RegisterLayerType(276, gopacket.LayerTypeMetadata{Name: "Linux SLL2", Decoder: gopacket.DecodeFunc(decodeLinuxSLL2)}) + LayerTypeMDP = gopacket.RegisterLayerType(147, gopacket.LayerTypeMetadata{Name: "MDP", Decoder: gopacket.DecodeFunc(decodeMDP)}) ) var ( diff --git a/backend/vendor/github.com/google/gopacket/layers/lcm.go b/backend/vendor/github.com/gopacket/gopacket/layers/lcm.go similarity index 98% rename from backend/vendor/github.com/google/gopacket/layers/lcm.go rename to backend/vendor/github.com/gopacket/gopacket/layers/lcm.go index 58a4b8289..04db3bc3f 100644 --- a/backend/vendor/github.com/google/gopacket/layers/lcm.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/lcm.go @@ -11,7 +11,7 @@ import ( "errors" "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) const ( @@ -29,8 +29,9 @@ const ( // variety of programming languages. // // References -// https://lcm-proj.github.io/ -// https://github.com/lcm-proj/lcm +// +// https://lcm-proj.github.io/ +// https://github.com/lcm-proj/lcm type LCM struct { // Common (short & fragmented header) fields Magic uint32 diff --git a/backend/vendor/github.com/google/gopacket/layers/linux_sll.go b/backend/vendor/github.com/gopacket/gopacket/layers/linux_sll.go similarity index 98% rename from backend/vendor/github.com/google/gopacket/layers/linux_sll.go rename to backend/vendor/github.com/gopacket/gopacket/layers/linux_sll.go index 85a4f8bdd..d6163c4ca 100644 --- a/backend/vendor/github.com/google/gopacket/layers/linux_sll.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/linux_sll.go @@ -12,7 +12,7 @@ import ( "fmt" "net" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) type LinuxSLLPacketType uint16 diff --git a/backend/vendor/github.com/gopacket/gopacket/layers/linux_sll2.go b/backend/vendor/github.com/gopacket/gopacket/layers/linux_sll2.go new file mode 100644 index 000000000..5935b3163 --- /dev/null +++ b/backend/vendor/github.com/gopacket/gopacket/layers/linux_sll2.go @@ -0,0 +1,176 @@ +// Copyright 2022 Google, Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style license +// that can be found in the LICENSE file in the root of the source +// tree. + +package layers + +import ( + "encoding/binary" + "errors" + "fmt" + "net" + + "github.com/gopacket/gopacket" +) + +// The ARPHardwareType contains a Linux ARPHRD_ value for the link-layer device type +type ARPHardwareType uint16 + +const ( + ARPHardwareTypeEthernet ARPHardwareType = 1 + ARPHardwareTypeFRAD ARPHardwareType = 770 + ARPHardwareTypeLoopback ARPHardwareType = 772 + ARPHardwareTypeIPGRE ARPHardwareType = 778 + ARPHardwareTypeDot11Radiotap ARPHardwareType = 803 +) + +func (l ARPHardwareType) String() string { + switch l { + case ARPHardwareTypeEthernet: + return "Ethernet" + case ARPHardwareTypeFRAD: + return "Frame Relay Access Device" + case ARPHardwareTypeLoopback: + return "Loopback device" + case ARPHardwareTypeIPGRE: + return "GRE over IP" + case ARPHardwareTypeDot11Radiotap: + return "IEEE 802.11 + radiotap header" + } + + return fmt.Sprintf("Unknown(%d)", int(l)) +} + +// The LinuxSLL2PacketType can contain the same values as LinuxSLLPacketType accept it is a uint8 instread of a uint16 +type LinuxSLL2PacketType uint8 + +const ( + LinuxSLL2PacketTypeHost LinuxSLL2PacketType = 0 // To us + LinuxSLL2PacketTypeBroadcast LinuxSLL2PacketType = 1 // To all + LinuxSLL2PacketTypeMulticast LinuxSLL2PacketType = 2 // To group + LinuxSLL2PacketTypeOtherhost LinuxSLL2PacketType = 3 // To someone else + LinuxSLL2PacketTypeOutgoing LinuxSLL2PacketType = 4 // Outgoing of any type + // These ones are invisible by user level + LinuxSLL2PacketTypeLoopback LinuxSLL2PacketType = 5 // MC/BRD frame looped back + LinuxSLL2PacketTypeFastroute LinuxSLL2PacketType = 6 // Fastrouted frame +) + +func (l LinuxSLL2PacketType) String() string { + switch l { + case LinuxSLL2PacketTypeHost: + return "host" + case LinuxSLL2PacketTypeBroadcast: + return "broadcast" + case LinuxSLL2PacketTypeMulticast: + return "multicast" + case LinuxSLL2PacketTypeOtherhost: + return "otherhost" + case LinuxSLL2PacketTypeOutgoing: + return "outgoing" + case LinuxSLL2PacketTypeLoopback: + return "loopback" + case LinuxSLL2PacketTypeFastroute: + return "fastroute" + } + return fmt.Sprintf("Unknown(%d)", int(l)) +} + +const ( + LinuxSLL2EthernetTypeDot3 EthernetType = 0x0001 + LinuxSLL2EthernetTypeUnknown EthernetType = 0x0003 + LinuxSLL2EthernetTypeLLC EthernetType = 0x0004 + LinuxSLL2EthernetTypeCAN EthernetType = 0x000C +) + +// LinuxSLL2 is the second version of the Linux "cooked" capture encapsulation protocol. It is used to encapsulate +// packets within packet capture files, particularly by libpcap/tcpdump when making a packet capture with -i any +// https://www.tcpdump.org/linktypes/LINKTYPE_LINUX_SLL2.html +type LinuxSLL2 struct { + BaseLayer + ProtocolType EthernetType + InterfaceIndex uint32 + ARPHardwareType ARPHardwareType + PacketType LinuxSLL2PacketType + AddrLength uint8 + Addr net.HardwareAddr +} + +// LayerType returns LayerTypeLinuxSLL. +func (sll *LinuxSLL2) LayerType() gopacket.LayerType { return LayerTypeLinuxSLL2 } + +func (sll *LinuxSLL2) CanDecode() gopacket.LayerClass { + return LayerTypeLinuxSLL2 +} + +func (sll *LinuxSLL2) LinkFlow() gopacket.Flow { + return gopacket.NewFlow(EndpointMAC, sll.Addr, nil) +} + +func (sll *LinuxSLL2) NextLayerType() gopacket.LayerType { + switch sll.ARPHardwareType { + case ARPHardwareTypeFRAD: + // If the ARPHRD_ type is ARPHRD_FRAD (770), the protocol type field is ignored, + // and the payload following the LINKTYPE_LINUX_SLL header is a Frame Relay LAPF frame, + // beginning with a ITU-T Recommendation Q.922 LAPF header starting with the address field, + // and without an FCS at the end of the frame. + return gopacket.LayerTypeZero // LAPF layer not yet implemented + + case ARPHardwareTypeDot11Radiotap: + return LayerTypeRadioTap + + case ARPHardwareTypeIPGRE: + // Docs: If the ARPHRD_ type is ARPHRD_IPGRE (778), the protocol type field contains a GRE protocol type. + // + // It doesn't clearly state if if the next header should be GRE or Ethernet in this case. Will assume ethernet + // for now + return LayerTypeEthernet + + default: + switch sll.ProtocolType { + case LinuxSLL2EthernetTypeDot3: + // Docs: if the frame is a Novell 802.3 frame without an 802.2 LLC header + return gopacket.LayerTypeZero // Novell 802.3 frame layer not yet implemented + + case LinuxSLL2EthernetTypeUnknown: + // Docs: in some mysterious cases; + return gopacket.LayerTypeZero // Mysterious cases not implemented + + case LinuxSLL2EthernetTypeLLC: + return LayerTypeLLC + + case LinuxSLL2EthernetTypeCAN: + // Docs: if the frame is a CAN bus frame that begins with a header of the form + return gopacket.LayerTypeZero + } + + return sll.ProtocolType.LayerType() + } +} + +func (sll *LinuxSLL2) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { + if len(data) < 20 { + return errors.New("Linux SLL2 packet too small") + } + sll.ProtocolType = EthernetType(binary.BigEndian.Uint16(data[0:2])) + sll.InterfaceIndex = binary.BigEndian.Uint32(data[4:8]) + sll.ARPHardwareType = ARPHardwareType(binary.BigEndian.Uint16(data[8:10])) + sll.PacketType = LinuxSLL2PacketType(data[10]) + sll.AddrLength = data[11] + sll.Addr = data[12:20] + sll.Addr = sll.Addr[:sll.AddrLength] + sll.BaseLayer = BaseLayer{data[:20], data[20:]} + + return nil +} + +func decodeLinuxSLL2(data []byte, p gopacket.PacketBuilder) error { + sll := &LinuxSLL2{} + if err := sll.DecodeFromBytes(data, p); err != nil { + return err + } + p.AddLayer(sll) + p.SetLinkLayer(sll) + return p.NextDecoder(sll.NextLayerType()) +} diff --git a/backend/vendor/github.com/google/gopacket/layers/llc.go b/backend/vendor/github.com/gopacket/gopacket/layers/llc.go similarity index 95% rename from backend/vendor/github.com/google/gopacket/layers/llc.go rename to backend/vendor/github.com/gopacket/gopacket/layers/llc.go index cad680367..7c3a282f9 100644 --- a/backend/vendor/github.com/google/gopacket/layers/llc.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/llc.go @@ -10,7 +10,7 @@ import ( "encoding/binary" "errors" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // LLC is the layer used for 802.2 Logical Link Control headers. @@ -71,9 +71,10 @@ func (l *LLC) NextLayerType() gopacket.LayerType { // SNAP is used inside LLC. See // http://standards.ieee.org/getieee802/download/802-2001.pdf. // From http://en.wikipedia.org/wiki/Subnetwork_Access_Protocol: -// "[T]he Subnetwork Access Protocol (SNAP) is a mechanism for multiplexing, -// on networks using IEEE 802.2 LLC, more protocols than can be distinguished -// by the 8-bit 802.2 Service Access Point (SAP) fields." +// +// "[T]he Subnetwork Access Protocol (SNAP) is a mechanism for multiplexing, +// on networks using IEEE 802.2 LLC, more protocols than can be distinguished +// by the 8-bit 802.2 Service Access Point (SAP) fields." type SNAP struct { BaseLayer OrganizationalCode []byte diff --git a/backend/vendor/github.com/google/gopacket/layers/lldp.go b/backend/vendor/github.com/gopacket/gopacket/layers/lldp.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/lldp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/lldp.go index 16a5bbada..c97fd4513 100644 --- a/backend/vendor/github.com/google/gopacket/layers/lldp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/lldp.go @@ -11,7 +11,7 @@ import ( "errors" "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // LLDPTLVType is the type of each TLV value in a LinkLayerDiscovery packet. @@ -240,7 +240,7 @@ type LinkLayerDiscoveryInfo struct { Unknown []LinkLayerDiscoveryValue // undecoded TLVs } -/// IEEE 802.1 TLV Subtypes +// / IEEE 802.1 TLV Subtypes const ( LLDP8021SubtypePortVLANID uint8 = 1 LLDP8021SubtypeProtocolVLANID uint8 = 2 @@ -1449,7 +1449,7 @@ func (t LLDPPowerPriority) String() (s string) { func (t LLDPMediaSubtype) String() (s string) { switch t { case LLDPMediaTypeCapabilities: - s = "Media Capabilities " + s = "Media Capabilities" case LLDPMediaTypeNetwork: s = "Network Policy" case LLDPMediaTypeLocation: @@ -1487,7 +1487,7 @@ func (t LLDPMediaClass) String() (s string) { case LLDPMediaClassEndpointIII: s = "Endpoint Class III" case LLDPMediaClassNetwork: - s = "Network connectivity " + s = "Network Connectivity" default: s = "Unknown" } diff --git a/backend/vendor/github.com/google/gopacket/layers/loopback.go b/backend/vendor/github.com/gopacket/gopacket/layers/loopback.go similarity index 98% rename from backend/vendor/github.com/google/gopacket/layers/loopback.go rename to backend/vendor/github.com/gopacket/gopacket/layers/loopback.go index 839f76073..03f48e391 100644 --- a/backend/vendor/github.com/google/gopacket/layers/loopback.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/loopback.go @@ -11,7 +11,7 @@ import ( "errors" "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // Loopback contains the header for loopback encapsulation. This header is diff --git a/backend/vendor/github.com/gopacket/gopacket/layers/mdp.go b/backend/vendor/github.com/gopacket/gopacket/layers/mdp.go new file mode 100644 index 000000000..a3e3bd5da --- /dev/null +++ b/backend/vendor/github.com/gopacket/gopacket/layers/mdp.go @@ -0,0 +1,162 @@ +// Copyright 2024 Google, Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style license +// that can be found in the LICENSE file in the root of the source +// tree. + +package layers + +import ( + "fmt" + "net" + "strconv" + + "github.com/gopacket/gopacket" +) + +const ( + MdpTlvType uint8 = iota + MdpTlvLength + MdpTlvDeviceInfo + MdpTlvNetworkInfo + MdpTlvLongitude + MdpTlvLatitude + MdpTlvType6 + MdpTlvType7 + MdpTlvIP = 11 + MdpTlvUnknownBool = 13 + MdpTlvEnd = 255 +) + +// MDP defines a MDP over LLC layer. +type MDP struct { + BaseLayer + PreambleData []byte + DeviceInfo string + NetworkInfo string + Longitude float64 + Latitude float64 + Type6UUID string + Type7UUID string + IPAddress net.IP + Type13Bool bool + + Type EthernetType + Length int +} + +// LayerType returns LayerTypeMDP. +func (m *MDP) LayerType() gopacket.LayerType { return LayerTypeMDP } + +// DecodeFromBytes decodes the given bytes into this layer. +func (m *MDP) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { + var length int + if len(data) < 28 { + df.SetTruncated() + return fmt.Errorf("MDP length %d too short", len(data)) + } + m.Type = EthernetTypeMerakiDiscoveryProtocol + m.Length = len(data) + offset := 28 + m.PreambleData = data[:offset] + + for { + if offset >= m.Length { + break + } + t := data[offset] + switch t { + case MdpTlvDeviceInfo: + offset += 2 + length = int(data[offset-1]) + m.Contents = append(m.Contents, data[offset-2:offset+length]...) + m.DeviceInfo = string(data[offset : offset+length]) + offset += length + break + case MdpTlvNetworkInfo: + offset += 2 + length = int(data[offset-1]) + m.NetworkInfo = string(data[offset : offset+length]) + offset += length + break + case MdpTlvLongitude: + offset += 2 + length = int(data[offset-1]) + m.Longitude, _ = strconv.ParseFloat(string(data[offset:offset+length]), 64) + offset += length + break + case MdpTlvLatitude: + offset += 2 + length = int(data[offset-1]) + m.Latitude, _ = strconv.ParseFloat(string(data[offset:offset+length]), 64) + offset += length + break + case MdpTlvType6: + offset += 2 + length = int(data[offset-1]) + m.Type6UUID = string(data[offset : offset+length]) + offset += length + break + case MdpTlvType7: + offset += 2 + length = int(data[offset-1]) + m.Type7UUID = string(data[offset : offset+length]) + offset += length + break + case MdpTlvIP: + offset += 2 + length = int(data[offset-1]) + m.IPAddress = net.ParseIP(string(data[offset : offset+length])) + offset += length + break + case MdpTlvUnknownBool: + offset += 2 + length = int(data[offset-1]) + m.Type13Bool, _ = strconv.ParseBool(string(data[offset : offset+length])) + offset += length + break + case MdpTlvEnd: + offset = m.Length + break + default: + // Skip over unknown junk + offset += 2 + length = int(data[offset-1]) + offset += length + break + + } + } + m.BaseLayer = BaseLayer{Contents: data, Payload: nil} + return nil +} + +// SerializeTo writes the serialized form of this layer into the +// SerializationBuffer, implementing gopacket.SerializableLayer +func (m *MDP) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error { + // bytes, _ := b.PrependBytes(4) + // bytes[0] = m.Version + // bytes[1] = byte(m.Type) + // binary.BigEndian.PutUint16(bytes[2:], m.Length) + return nil +} + +// CanDecode returns the set of layer types that this DecodingLayer can decode. +func (m *MDP) CanDecode() gopacket.LayerClass { + return LayerTypeMDP +} + +// NextLayerType returns the layer type contained by this DecodingLayer. +func (m *MDP) NextLayerType() gopacket.LayerType { + return m.Type.LayerType() +} + +func decodeMDP(data []byte, p gopacket.PacketBuilder) error { + m := &MDP{} + err := m.DecodeFromBytes(data, p) + if err != nil { + return err + } + p.AddLayer(m) + return p.NextDecoder(m.NextLayerType()) +} diff --git a/backend/vendor/github.com/google/gopacket/layers/mldv1.go b/backend/vendor/github.com/gopacket/gopacket/layers/mldv1.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/mldv1.go rename to backend/vendor/github.com/gopacket/gopacket/layers/mldv1.go index e1bb1dc00..aef6e8382 100644 --- a/backend/vendor/github.com/google/gopacket/layers/mldv1.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/mldv1.go @@ -14,7 +14,7 @@ import ( "net" "time" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // MLDv1Message represents the common structure of all MLDv1 messages diff --git a/backend/vendor/github.com/google/gopacket/layers/mldv2.go b/backend/vendor/github.com/gopacket/gopacket/layers/mldv2.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/mldv2.go rename to backend/vendor/github.com/gopacket/gopacket/layers/mldv2.go index 05100a52d..ebcab88e0 100644 --- a/backend/vendor/github.com/google/gopacket/layers/mldv2.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/mldv2.go @@ -14,7 +14,7 @@ import ( "net" "time" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) const ( diff --git a/backend/vendor/github.com/google/gopacket/layers/modbustcp.go b/backend/vendor/github.com/gopacket/gopacket/layers/modbustcp.go similarity index 96% rename from backend/vendor/github.com/google/gopacket/layers/modbustcp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/modbustcp.go index bafbd7436..09d5e3261 100644 --- a/backend/vendor/github.com/google/gopacket/layers/modbustcp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/modbustcp.go @@ -11,7 +11,8 @@ package layers import ( "encoding/binary" "errors" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) //****************************************************************************** @@ -50,7 +51,6 @@ func (mp ModbusProtocol) String() string { // Type ModbusTCP implements the DecodingLayer interface. Each ModbusTCP object // represents in a structured form the MODBUS Application Protocol header (MBAP) record present as the TCP // payload in an ModbusTCP TCP packet. -// type ModbusTCP struct { BaseLayer // Stores the packet bytes and payload (Modbus PDU) bytes . @@ -148,3 +148,8 @@ func (d *ModbusTCP) NextLayerType() gopacket.LayerType { func (d *ModbusTCP) Payload() []byte { return d.BaseLayer.Payload } + +// CanDecode returns the set of layer types that this DecodingLayer can decode +func (s *ModbusTCP) CanDecode() gopacket.LayerClass { + return LayerTypeModbusTCP +} diff --git a/backend/vendor/github.com/google/gopacket/layers/mpls.go b/backend/vendor/github.com/gopacket/gopacket/layers/mpls.go similarity index 94% rename from backend/vendor/github.com/google/gopacket/layers/mpls.go rename to backend/vendor/github.com/gopacket/gopacket/layers/mpls.go index 83079a09b..e8e3eefd8 100644 --- a/backend/vendor/github.com/google/gopacket/layers/mpls.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/mpls.go @@ -9,7 +9,8 @@ package layers import ( "encoding/binary" "errors" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) // MPLS is the MPLS packet header. @@ -26,9 +27,11 @@ func (m *MPLS) LayerType() gopacket.LayerType { return LayerTypeMPLS } // ProtocolGuessingDecoder attempts to guess the protocol of the bytes it's // given, then decode the packet accordingly. Its algorithm for guessing is: -// If the packet starts with byte 0x45-0x4F: IPv4 -// If the packet starts with byte 0x60-0x6F: IPv6 -// Otherwise: Error +// +// If the packet starts with byte 0x45-0x4F: IPv4 +// If the packet starts with byte 0x60-0x6F: IPv6 +// Otherwise: Error +// // See draft-hsmit-isis-aal5mux-00.txt for more detail on this approach. type ProtocolGuessingDecoder struct{} diff --git a/backend/vendor/github.com/gopacket/gopacket/layers/multipathtcp.go b/backend/vendor/github.com/gopacket/gopacket/layers/multipathtcp.go new file mode 100644 index 000000000..313cb86c9 --- /dev/null +++ b/backend/vendor/github.com/gopacket/gopacket/layers/multipathtcp.go @@ -0,0 +1,161 @@ +// Copyright 2012 Google, Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style license +// that can be found in the LICENSE file in the root of the source +// tree. + +package layers + +import ( + "fmt" + "net" +) + +// MPTCPSubtype represents an MPTCP subtype code. +type MPTCPSubtype uint8 + +// MPTCP Subtypes constonts from https://www.iana.org/assignments/tcp-parameters/tcp-parameters.xml#mptcp-option-subtypes +const ( + MPTCPSubtypeMPCAPABLE = 0x0 + MPTCPSubtypeMPJOIN = 0x1 + MPTCPSubtypeDSS = 0x2 + MPTCPSubtypeADDADDR = 0x3 + MPTCPSubtypeREMOVEADDR = 0x4 + MPTCPSubtypeMPPRIO = 0x5 + MPTCPSubtypeMPFAIL = 0x6 + MPTCPSubtypeMPFASTCLOSE = 0x7 + MPTCPSubtypeMPTCPRST = 0x8 +) + +func (k MPTCPSubtype) String() string { + switch k { + case MPTCPSubtypeMPCAPABLE: + return "MP_CAPABLE" + case MPTCPSubtypeMPJOIN: + return "MP_JOIN" + case MPTCPSubtypeDSS: + return "DSS" + case MPTCPSubtypeADDADDR: + return "ADD_ADDR" + case MPTCPSubtypeREMOVEADDR: + return "REMOVE_ADDR" + case MPTCPSubtypeMPPRIO: + return "MP_PRIO" + case MPTCPSubtypeMPFAIL: + return "MP_FAIL" + case MPTCPSubtypeMPFASTCLOSE: + return "MP_FASTCLOSE" + case MPTCPSubtypeMPTCPRST: + return "MP_TCPRST" + default: + return fmt.Sprintf("Unknown(%d)", k) + } +} + +const ( + MptcpVersion0 = 0 + MptcpVersion1 = 1 +) + +const ( + OptionLenMpCapableSyn = 4 + OptionLenMpCapableSynAck = 12 + OptionLenMpCapableAck = 20 + OptionLenMpCapableAckData = 22 + OptionLenMpCapableAckDataCSum = 24 + OptionLenMpJoinSyn = 12 + OptionLenMpJoinSynAck = 16 + OptionLenMpJoinAck = 24 + OptionLenDssAck = 4 + OptionLenDssAck64 = 8 + OptionLenDssDSN = 4 + OptionLenDssDSN64 = 8 + OptionLenDssSSN = 4 + OptionLenDssDataLen = 2 + OptionLenDssCSum = 2 + OptionLenAddAddrv4 = 8 + OptionLenAddAddrv6 = 20 + OptionLenAddAddrPort = 2 + OptionLenAddAddrHmac = 8 + OptionLenRemAddr = 4 + OptionLenMpPrio = 3 + OptionLenMpPrioAddr = 4 + OptionLenMpFail = 12 + OptionLenMpFClose = 12 + OptionLenMpTcpRst = 4 +) + +// MPCapable contains the fields from the MP_CAPABLE MPTCP Option +type MPCapable struct { + BaseLayer + Version uint8 + A, B, C, D, E, F, G, H bool + SendKey []byte + ReceivKey []byte + DataLength uint16 + Checksum uint16 +} + +// MPJoin contains the fields from the MP_JOIN MPTCP Option +type MPJoin struct { + BaseLayer + Backup bool + AddrID uint8 + ReceivToken uint32 + SendRandNum uint32 + SendHMAC []byte +} + +// Dss contains the fields from the DSS MPTCP Option +type Dss struct { + BaseLayer + F, m, M, a, A bool + DataAck []byte + DSN []byte + SSN uint32 + DataLength uint16 + Checksum uint16 +} + +// AddAddr contains the fields from the ADD_ADDR MPTCP Option +type AddAddr struct { + BaseLayer + IPVer uint8 + E bool + AddrID uint8 + Address net.IP + Port uint16 + SendHMAC []byte +} + +// RemAddr contains the fields from the REMOVE_ADDR MPTCP Option +type RemAddr struct { + BaseLayer + AddrIDs []uint8 +} + +// MPPrio contains the fields from the MP_PRIO MPTCP Option +type MPPrio struct { + BaseLayer + Backup bool + AddrID uint8 +} + +// MPFail contains the fields from the MP_FAIL MPTCP Option +type MPFail struct { + BaseLayer + DSN uint64 +} + +// MPFClose contains the fields from the MP_FASTCLOSE MPTCP Option +type MPFClose struct { + BaseLayer + ReceivKey []byte +} + +// MPTcpRst contains the fields from the MP_TCPRST MPTCP Option +type MPTcpRst struct { + BaseLayer + U, V, W, T bool + Reason uint8 +} diff --git a/backend/vendor/github.com/google/gopacket/layers/ndp.go b/backend/vendor/github.com/gopacket/gopacket/layers/ndp.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/ndp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/ndp.go index f7ca1b26b..e7593f4b1 100644 --- a/backend/vendor/github.com/google/gopacket/layers/ndp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/ndp.go @@ -11,8 +11,9 @@ package layers import ( "fmt" - "github.com/google/gopacket" "net" + + "github.com/gopacket/gopacket" ) type NDPChassisType uint8 diff --git a/backend/vendor/github.com/google/gopacket/layers/ntp.go b/backend/vendor/github.com/gopacket/gopacket/layers/ntp.go similarity index 81% rename from backend/vendor/github.com/google/gopacket/layers/ntp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/ntp.go index 33c15b3b3..26bb083a1 100644 --- a/backend/vendor/github.com/google/gopacket/layers/ntp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/ntp.go @@ -12,7 +12,7 @@ import ( "encoding/binary" "errors" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) //****************************************************************************** @@ -160,56 +160,55 @@ import ( // The current version of NTP (NTP V4)'s RFC (V4 - RFC 5905) contains // the following diagram for the NTP record format: -// 0 1 2 3 -// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// |LI | VN |Mode | Stratum | Poll | Precision | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Root Delay | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Root Dispersion | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Reference ID | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | | -// + Reference Timestamp (64) + -// | | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | | -// + Origin Timestamp (64) + -// | | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | | -// + Receive Timestamp (64) + -// | | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | | -// + Transmit Timestamp (64) + -// | | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | | -// . . -// . Extension Field 1 (variable) . -// . . -// | | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | | -// . . -// . Extension Field 2 (variable) . -// . . -// | | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | Key Identifier | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// | | -// | dgst (128) | -// | | -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -// From http://www.ietf.org/rfc/rfc5905.txt +// 0 1 2 3 +// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// |LI | VN |Mode | Stratum | Poll | Precision | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Root Delay | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Root Dispersion | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Reference ID | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | | +// + Reference Timestamp (64) + +// | | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | | +// + Origin Timestamp (64) + +// | | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | | +// + Receive Timestamp (64) + +// | | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | | +// + Transmit Timestamp (64) + +// | | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | | +// . . +// . Extension Field 1 (variable) . +// . . +// | | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | | +// . . +// . Extension Field 2 (variable) . +// . . +// | | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | Key Identifier | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// | | +// | dgst (128) | +// | | +// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +// From http://www.ietf.org/rfc/rfc5905.txt // // The fields "Extension Field 1 (variable)" and later are optional fields, // and so we can set a minimum NTP record size of 48 bytes. -// const ntpMinimumRecordSizeInBytes int = 48 //****************************************************************************** diff --git a/backend/vendor/github.com/google/gopacket/layers/ospf.go b/backend/vendor/github.com/gopacket/gopacket/layers/ospf.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/ospf.go rename to backend/vendor/github.com/gopacket/gopacket/layers/ospf.go index 4f5473d06..ca2ac6e65 100644 --- a/backend/vendor/github.com/google/gopacket/layers/ospf.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/ospf.go @@ -11,7 +11,7 @@ import ( "errors" "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // OSPFType denotes what kind of OSPF type it is @@ -237,7 +237,7 @@ type OSPF struct { Content interface{} } -//OSPFv2 extend the OSPF head with version 2 specific fields +// OSPFv2 extend the OSPF head with version 2 specific fields type OSPFv2 struct { BaseLayer OSPF @@ -518,7 +518,8 @@ func (ospf *OSPFv2) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) err for i := 32; uint16(i+20) <= ospf.PacketLength; i += 20 { lsa := LSAheader{ LSAge: binary.BigEndian.Uint16(data[i : i+2]), - LSType: binary.BigEndian.Uint16(data[i+2 : i+4]), + LSOptions: data[i+2], + LSType: uint16(data[i+3]), LinkStateID: binary.BigEndian.Uint32(data[i+4 : i+8]), AdvRouter: binary.BigEndian.Uint32(data[i+8 : i+12]), LSSeqNumber: binary.BigEndian.Uint32(data[i+12 : i+16]), diff --git a/backend/vendor/github.com/google/gopacket/layers/pflog.go b/backend/vendor/github.com/gopacket/gopacket/layers/pflog.go similarity index 92% rename from backend/vendor/github.com/google/gopacket/layers/pflog.go rename to backend/vendor/github.com/gopacket/gopacket/layers/pflog.go index 9dbbd90d1..2daf45579 100644 --- a/backend/vendor/github.com/google/gopacket/layers/pflog.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/pflog.go @@ -11,7 +11,7 @@ import ( "errors" "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) type PFDirection uint8 @@ -57,10 +57,10 @@ func (pf *PFLog) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error pf.RuleUID = binary.BigEndian.Uint32(data[52:56]) pf.RulePID = int32(binary.BigEndian.Uint32(data[56:60])) pf.Direction = PFDirection(data[60]) - if pf.Length%4 != 1 { - return errors.New("PFLog header length should be 3 less than multiple of 4") + actualLength := int(pf.Length) + if pf.Length%4 == 1 { + actualLength += 3 } - actualLength := int(pf.Length) + 3 if len(data) < actualLength { return fmt.Errorf("PFLog data size < %d", actualLength) } diff --git a/backend/vendor/github.com/google/gopacket/layers/ports.go b/backend/vendor/github.com/gopacket/gopacket/layers/ports.go similarity index 68% rename from backend/vendor/github.com/google/gopacket/layers/ports.go rename to backend/vendor/github.com/gopacket/gopacket/layers/ports.go index 1e3f42efc..43bf90c7f 100644 --- a/backend/vendor/github.com/google/gopacket/layers/ports.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/ports.go @@ -10,7 +10,7 @@ import ( "fmt" "strconv" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // TCPPort is a port in a TCP layer. @@ -40,7 +40,7 @@ var UDPLitePortNames = map[UDPLitePort]string{} // or just "number" if there isn't. Well-known names are stored in // TCPPortNames. func (a TCPPort) String() string { - if name, ok := TCPPortNames[a]; ok { + if name, ok := TCPPortNames(a); ok { return fmt.Sprintf("%d(%s)", a, name) } return strconv.Itoa(int(a)) @@ -52,30 +52,44 @@ func (a TCPPort) String() string { // // Returns gopacket.LayerTypePayload for unknown/unsupported port numbers. func (a TCPPort) LayerType() gopacket.LayerType { - lt := tcpPortLayerType[uint16(a)] - if lt != 0 { - return lt + if tcpPortLayerTypeOverride.has(uint16(a)) { + return tcpPortLayerType[a] + } + switch a { + case 53: + return LayerTypeDNS + case 443: // https + return LayerTypeTLS + case 502: // modbustcp + return LayerTypeModbusTCP + case 636: // ldaps + return LayerTypeTLS + case 989: // ftps-data + return LayerTypeTLS + case 990: // ftps + return LayerTypeTLS + case 992: // telnets + return LayerTypeTLS + case 993: // imaps + return LayerTypeTLS + case 994: // ircs + return LayerTypeTLS + case 995: // pop3s + return LayerTypeTLS + case 5061: // ips + return LayerTypeTLS } return gopacket.LayerTypePayload } -var tcpPortLayerType = [65536]gopacket.LayerType{ - 53: LayerTypeDNS, - 443: LayerTypeTLS, // https - 502: LayerTypeModbusTCP, // modbustcp - 636: LayerTypeTLS, // ldaps - 989: LayerTypeTLS, // ftps-data - 990: LayerTypeTLS, // ftps - 992: LayerTypeTLS, // telnets - 993: LayerTypeTLS, // imaps - 994: LayerTypeTLS, // ircs - 995: LayerTypeTLS, // pop3s - 5061: LayerTypeTLS, // ips -} +var tcpPortLayerTypeOverride bitfield + +var tcpPortLayerType = map[TCPPort]gopacket.LayerType{} // RegisterTCPPortLayerType creates a new mapping between a TCPPort // and an underlaying LayerType. func RegisterTCPPortLayerType(port TCPPort, layerType gopacket.LayerType) { + tcpPortLayerTypeOverride.set(uint16(port)) tcpPortLayerType[port] = layerType } @@ -83,7 +97,7 @@ func RegisterTCPPortLayerType(port TCPPort, layerType gopacket.LayerType) { // or just "number" if there isn't. Well-known names are stored in // UDPPortNames. func (a UDPPort) String() string { - if name, ok := UDPPortNames[a]; ok { + if name, ok := UDPPortNames(a); ok { return fmt.Sprintf("%d(%s)", a, name) } return strconv.Itoa(int(a)) @@ -95,33 +109,50 @@ func (a UDPPort) String() string { // // Returns gopacket.LayerTypePayload for unknown/unsupported port numbers. func (a UDPPort) LayerType() gopacket.LayerType { - lt := udpPortLayerType[uint16(a)] - if lt != 0 { - return lt + if udpPortLayerTypeOverride.has(uint16(a)) { + return udpPortLayerType[a] + } + switch a { + case 53: + return LayerTypeDNS + case 67: + return LayerTypeDHCPv4 + case 68: + return LayerTypeDHCPv4 + case 123: + return LayerTypeNTP + case 546: + return LayerTypeDHCPv6 + case 547: + return LayerTypeDHCPv6 + case 623: + return LayerTypeRMCP + case 1812: + return LayerTypeRADIUS + case 2152: + return LayerTypeGTPv1U + case 3784: + return LayerTypeBFD + case 4789: + return LayerTypeVXLAN + case 5060: + return LayerTypeSIP + case 6081: + return LayerTypeGeneve + case 6343: + return LayerTypeSFlow } return gopacket.LayerTypePayload } -var udpPortLayerType = [65536]gopacket.LayerType{ - 53: LayerTypeDNS, - 123: LayerTypeNTP, - 4789: LayerTypeVXLAN, - 67: LayerTypeDHCPv4, - 68: LayerTypeDHCPv4, - 546: LayerTypeDHCPv6, - 547: LayerTypeDHCPv6, - 5060: LayerTypeSIP, - 6343: LayerTypeSFlow, - 6081: LayerTypeGeneve, - 3784: LayerTypeBFD, - 2152: LayerTypeGTPv1U, - 623: LayerTypeRMCP, - 1812: LayerTypeRADIUS, -} +var udpPortLayerTypeOverride bitfield + +var udpPortLayerType = map[UDPPort]gopacket.LayerType{} // RegisterUDPPortLayerType creates a new mapping between a UDPPort // and an underlaying LayerType. func RegisterUDPPortLayerType(port UDPPort, layerType gopacket.LayerType) { + udpPortLayerTypeOverride.set(uint16(port)) udpPortLayerType[port] = layerType } @@ -139,7 +170,7 @@ func (a RUDPPort) String() string { // or just "number" if there isn't. Well-known names are stored in // SCTPPortNames. func (a SCTPPort) String() string { - if name, ok := SCTPPortNames[a]; ok { + if name, ok := SCTPPortNames(a); ok { return fmt.Sprintf("%d(%s)", a, name) } return strconv.Itoa(int(a)) diff --git a/backend/vendor/github.com/google/gopacket/layers/ppp.go b/backend/vendor/github.com/gopacket/gopacket/layers/ppp.go similarity index 98% rename from backend/vendor/github.com/google/gopacket/layers/ppp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/ppp.go index e534d698c..0a66074b4 100644 --- a/backend/vendor/github.com/google/gopacket/layers/ppp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/ppp.go @@ -9,7 +9,8 @@ package layers import ( "encoding/binary" "errors" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) // PPP is the layer for PPP encapsulation headers. diff --git a/backend/vendor/github.com/google/gopacket/layers/pppoe.go b/backend/vendor/github.com/gopacket/gopacket/layers/pppoe.go similarity index 98% rename from backend/vendor/github.com/google/gopacket/layers/pppoe.go rename to backend/vendor/github.com/gopacket/gopacket/layers/pppoe.go index 14cd63a18..549224d1b 100644 --- a/backend/vendor/github.com/google/gopacket/layers/pppoe.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/pppoe.go @@ -8,7 +8,8 @@ package layers import ( "encoding/binary" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) // PPPoE is the layer for PPPoE encapsulation headers. diff --git a/backend/vendor/github.com/google/gopacket/layers/prism.go b/backend/vendor/github.com/gopacket/gopacket/layers/prism.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/prism.go rename to backend/vendor/github.com/gopacket/gopacket/layers/prism.go index e1711e7f5..b075ac0ae 100644 --- a/backend/vendor/github.com/google/gopacket/layers/prism.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/prism.go @@ -12,7 +12,7 @@ import ( "encoding/binary" "errors" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) func decodePrismValue(data []byte, pv *PrismValue) { diff --git a/backend/vendor/github.com/google/gopacket/layers/radiotap.go b/backend/vendor/github.com/gopacket/gopacket/layers/radiotap.go similarity index 64% rename from backend/vendor/github.com/google/gopacket/layers/radiotap.go rename to backend/vendor/github.com/gopacket/gopacket/layers/radiotap.go index d09559f79..f63b0f493 100644 --- a/backend/vendor/github.com/google/gopacket/layers/radiotap.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/radiotap.go @@ -14,7 +14,7 @@ import ( "hash/crc32" "strings" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // align calculates the number of bytes needed to align with the width @@ -49,6 +49,10 @@ const ( RadioTapPresentMCS RadioTapPresentAMPDUStatus RadioTapPresentVHT + RadiotapPresentTimestamp + RadiotapPresentHE + RadioTapPresentHEMU + RadioTapPresentHEUOtherUser RadioTapPresentEXT RadioTapPresent = 1 << 31 ) @@ -115,6 +119,18 @@ func (r RadioTapPresent) AMPDUStatus() bool { func (r RadioTapPresent) VHT() bool { return r&RadioTapPresentVHT != 0 } +func (r RadioTapPresent) Timestamp() bool { + return r&RadiotapPresentTimestamp != 0 +} +func (r RadioTapPresent) HE() bool { + return r&RadiotapPresentHE != 0 +} +func (r RadioTapPresent) HEMU() bool { + return r&RadioTapPresentHEMU != 0 +} +func (r RadioTapPresent) HEUOtherUser() bool { + return r&RadioTapPresentHEUOtherUser != 0 +} func (r RadioTapPresent) EXT() bool { return r&RadioTapPresentEXT != 0 } @@ -674,6 +690,569 @@ func (self RadioTapVHTMCSNSS) String() string { return fmt.Sprintf("NSS#%dMCS#%d", uint32(self&0xf), uint32(self>>4)) } +type RadiotapHE struct { + Data1 RadiotapHEData1 + Data2 RadiotapHEData2 + Data3 RadiotapHEData3 + Data4 RadiotapHEData4 + Data5 RadiotapHEData5 + Data6 RadiotapHEData6 +} + +func (self RadiotapHE) String() string { + var tokens []string + tokens = append(tokens, fmt.Sprintf("HE PPDU Format: %v", self.Data1.HE_PPDUFormat())) + if self.Data1.BSSColorKnown() { + tokens = append(tokens, fmt.Sprintf("BSS Color: %d", self.Data3.BSSColor())) + } + if self.Data1.BeamChangeKnown() { + if self.Data3.BeamChange() { + tokens = append(tokens, "Beam Change") + } else { + tokens = append(tokens, "No Beam Change") + } + } + if self.Data1.ULDLKnown() { + if self.Data3.ULDL() { + tokens = append(tokens, "UL") + } else { + tokens = append(tokens, "DL") + } + } + if self.Data1.DataMCSKnown() { + tokens = append(tokens, fmt.Sprintf("Data MCS: %d", self.Data3.DataMCS())) + } + if self.Data1.DataDCMKnown() { + if self.Data3.DataDCM() { + tokens = append(tokens, "Data DCM applied") + } else { + tokens = append(tokens, "Data DCM not applied") + } + } + if self.Data1.CodingKnown() { + tokens = append(tokens, fmt.Sprintf("Coding: %v", self.Data3.Coding())) + } + if self.Data1.LDPCExtraSymbolSegmentKnown() { + if self.Data3.LDPCExtraSymbolSegment() { + tokens = append(tokens, "LDPC Extra Symbol Segment") + } else { + tokens = append(tokens, "No LDPC Extra Symbol Segment") + } + } + if self.Data1.STBCKnown() { + if self.Data3.STBC() { + tokens = append(tokens, "STBC") + } else { + tokens = append(tokens, "No STBC") + } + } + switch self.Data1.HE_PPDUFormat() { + case RadiotapHePpduFormatHE_SU: + case RadiotapHePpduFormatHE_EXT_SU: + if self.Data1.SpatialReuseKnown() { + tokens = append(tokens, fmt.Sprintf("Spatial Reuse: %d", self.Data4&0x000f)) + } + case RadiotapHePpduFormatHE_TRIG: + if self.Data1.SpatialReuse1Known() { + tokens = append(tokens, fmt.Sprintf("Spatial Reuse 1: %d", self.Data4&0x000f)) + } + if self.Data1.SpatialReuse2Known() { + tokens = append(tokens, fmt.Sprintf("Spatial Reuse 2: %d", self.Data4&0x00f0>>4)) + } + if self.Data1.SpatialReuse3Known() { + tokens = append(tokens, fmt.Sprintf("Spatial Reuse 3: %d", self.Data4&0x0f00>>8)) + } + if self.Data1.SpatialReuse4Known() { + tokens = append(tokens, fmt.Sprintf("Spatial Reuse 4: %d", self.Data4&0xf000>>12)) + } + case RadiotapHePpduFormatHE_MU: + if self.Data1.SpatialReuseKnown() { + tokens = append(tokens, fmt.Sprintf("Spatial Reuse: %d", self.Data4&0x000f)) + } + if self.Data1.StaIDKnown() { + tokens = append(tokens, fmt.Sprintf("STA ID: %d", self.Data4&0x7ff0>>4)) + } + } + if self.Data1.DataBWRUAllocationKnown() { + tokens = append(tokens, fmt.Sprintf("Data BW/RU Allocation: %s", self.Data5.DataBandwidth())) + } + if self.Data2.GIKnown() { + tokens = append(tokens, fmt.Sprintf("GI: %v", self.Data5.Gi())) + } + if self.Data2.NumLTFKnown() { + tokens = append(tokens, fmt.Sprintf("LTF Symbol size: %s", self.Data5.LTFSize())) + tokens = append(tokens, fmt.Sprintf("Number of LTF symbols: %s", self.Data5.NumLTFSymbols())) + } + if self.Data2.PreFECPaddingFactorKnown() { + tokens = append(tokens, fmt.Sprintf("Pre-FEC Padding Factor: %d", self.Data5.PreFECPaddingFactor())) + } + if self.Data2.TxBFKnown() { + if self.Data5.TxBF() { + tokens = append(tokens, "TxBF") + } else { + tokens = append(tokens, "No TxBF") + } + } + if self.Data2.PEDisambiguityKnown() { + if self.Data5.PEDisambiguity() { + tokens = append(tokens, "PE Disambiguity") + } else { + tokens = append(tokens, "No PE Disambiguity") + } + } + nSts := self.Data6.NSTS() + if nSts > 0 { + tokens = append(tokens, fmt.Sprintf("NSTS: %d", self.Data6.NSTS())) + } else { + tokens = append(tokens, "NSTS: unknown") + } + if self.Data1.DopplerKnown() { + if self.Data6.Doppler() { + tokens = append(tokens, "Doppler") + } else { + tokens = append(tokens, "No Doppler") + } + } + if self.Data2.TXOPKnown() { + tokens = append(tokens, fmt.Sprintf("TXOP: %d", self.Data6.TXOP())) + } + if self.Data2.MidamblePeriodicityKnown() { + tokens = append(tokens, fmt.Sprintf("Midamble Periodicity: %v", self.Data6.MidamblePeriodicity())) + } + return strings.Join(tokens, ",") +} + +type RadiotapHEData1 uint16 + +const ( + RadiotapHEData1_HE_PPDUFormatMask RadiotapHEData1 = 0x0003 + RadiotapHEData1BSSColorKnown RadiotapHEData1 = 0x0004 + RadiotapHEData1BeamChangeKnown RadiotapHEData1 = 0x0008 + RadiotapHEData1ULDLKnown RadiotapHEData1 = 0x0010 + RadiotapHEData1DataMCSKnown RadiotapHEData1 = 0x0020 + RadiotapHEData1DataDCMKnown RadiotapHEData1 = 0x0040 + RadiotapHEData1CodingKnown RadiotapHEData1 = 0x0080 + RadiotapHEData1LDPCExtraSymbolSegmentKnown RadiotapHEData1 = 0x0100 + RadiotapHEData1STBCKnown RadiotapHEData1 = 0x0200 + RadiotapHEData1SpatialReuseKnown RadiotapHEData1 = 0x0400 + RadiotapHEData1SpatialReuse1Known RadiotapHEData1 = 0x0400 + RadiotapHEData1SpatialReuse2Known RadiotapHEData1 = 0x0800 + RadiotapHEData1StaIDKnown RadiotapHEData1 = 0x8000 + RadiotapHEData1SpatialReuse3Known RadiotapHEData1 = 0x1000 + RadiotapHEData1SpatialReuse4Known RadiotapHEData1 = 0x2000 + RadiotapHEData1DataBWRUAllocationKnown RadiotapHEData1 = 0x4000 + RadiotapHEData1DopplerKnown RadiotapHEData1 = 0x8000 +) + +func (self RadiotapHEData1) HE_PPDUFormat() RadiotapHePpduFormat { + return RadiotapHePpduFormat(self & 0x0003) +} + +func (self RadiotapHEData1) BSSColorKnown() bool { + return self&RadiotapHEData1BSSColorKnown != 0 +} + +func (self RadiotapHEData1) BeamChangeKnown() bool { + return self&RadiotapHEData1BeamChangeKnown != 0 +} + +func (self RadiotapHEData1) ULDLKnown() bool { + return self&RadiotapHEData1ULDLKnown != 0 +} + +func (self RadiotapHEData1) DataMCSKnown() bool { + return self&RadiotapHEData1DataMCSKnown != 0 +} + +func (self RadiotapHEData1) DataDCMKnown() bool { + return self&RadiotapHEData1DataDCMKnown != 0 +} + +func (self RadiotapHEData1) CodingKnown() bool { + return self&RadiotapHEData1CodingKnown != 0 +} + +func (self RadiotapHEData1) LDPCExtraSymbolSegmentKnown() bool { + return self&RadiotapHEData1LDPCExtraSymbolSegmentKnown != 0 +} + +func (self RadiotapHEData1) STBCKnown() bool { + return self&RadiotapHEData1STBCKnown != 0 +} + +func (self RadiotapHEData1) SpatialReuseKnown() bool { + return self&RadiotapHEData1SpatialReuseKnown != 0 +} + +func (self RadiotapHEData1) SpatialReuse1Known() bool { + return self&RadiotapHEData1SpatialReuse1Known != 0 +} + +func (self RadiotapHEData1) SpatialReuse2Known() bool { + return self&RadiotapHEData1SpatialReuse2Known != 0 +} + +func (self RadiotapHEData1) StaIDKnown() bool { + return self&RadiotapHEData1StaIDKnown != 0 +} + +func (self RadiotapHEData1) SpatialReuse3Known() bool { + return self&RadiotapHEData1SpatialReuse3Known != 0 +} + +func (self RadiotapHEData1) SpatialReuse4Known() bool { + return self&RadiotapHEData1SpatialReuse4Known != 0 +} + +func (self RadiotapHEData1) DataBWRUAllocationKnown() bool { + return self&RadiotapHEData1DataBWRUAllocationKnown != 0 +} + +func (self RadiotapHEData1) DopplerKnown() bool { + return self&RadiotapHEData1DopplerKnown != 0 +} + +type RadiotapHePpduFormat uint8 + +const ( + RadiotapHePpduFormatHE_SU RadiotapHePpduFormat = iota + RadiotapHePpduFormatHE_EXT_SU + RadiotapHePpduFormatHE_MU + RadiotapHePpduFormatHE_TRIG +) + +func (self RadiotapHePpduFormat) String() string { + switch self { + case RadiotapHePpduFormatHE_SU: + return "HE SU" + case RadiotapHePpduFormatHE_EXT_SU: + return "HE EXT SU" + case RadiotapHePpduFormatHE_MU: + return "HE MU" + case RadiotapHePpduFormatHE_TRIG: + return "HE TRIG" + } + return fmt.Sprintf("HE Unknown(%d)", self) +} + +type RadiotapHEData2 uint16 + +const ( + RadiotapHEData2PriSec80MHzKnown RadiotapHEData2 = 0x0001 + RadiotapHEData2GIKnown RadiotapHEData2 = 0x0002 + RadiotapHEData2NumLTFKnown RadiotapHEData2 = 0x0004 + RadiotapHEData2PreFECPaddingFactorKnown RadiotapHEData2 = 0x0008 + RadiotapHEData2TxBFKnown RadiotapHEData2 = 0x0010 + RadiotapHEData2PEDisambiguityKnown RadiotapHEData2 = 0x0020 + RadiotapHEData2TXOPKnown RadiotapHEData2 = 0x0040 + RadiotapHEData2MidamblePeriodicityKnown RadiotapHEData2 = 0x0080 + RadiotapHEData2RUAllocationOffset RadiotapHEData2 = 0x3f00 + RadiotapHEData2RUAllocationOffsetKnown RadiotapHEData2 = 0x4000 + RadiotapHEData2PriSec80MHz RadiotapHEData2 = 0x8000 +) + +func (self RadiotapHEData2) PriSec80MHzKnown() bool { + return self&RadiotapHEData2PriSec80MHzKnown != 0 +} + +func (self RadiotapHEData2) GIKnown() bool { + return self&RadiotapHEData2GIKnown != 0 +} + +func (self RadiotapHEData2) NumLTFKnown() bool { + return self&RadiotapHEData2NumLTFKnown != 0 +} + +func (self RadiotapHEData2) PreFECPaddingFactorKnown() bool { + return self&RadiotapHEData2PreFECPaddingFactorKnown != 0 +} + +func (self RadiotapHEData2) TxBFKnown() bool { + return self&RadiotapHEData2TxBFKnown != 0 +} + +func (self RadiotapHEData2) PEDisambiguityKnown() bool { + return self&RadiotapHEData2PEDisambiguityKnown != 0 +} + +func (self RadiotapHEData2) TXOPKnown() bool { + return self&RadiotapHEData2TXOPKnown != 0 +} + +func (self RadiotapHEData2) MidamblePeriodicityKnown() bool { + return self&RadiotapHEData2MidamblePeriodicityKnown != 0 +} + +func (self RadiotapHEData2) RUAllocationOffset() int { + return int(self&RadiotapHEData2RUAllocationOffset) >> 8 +} + +func (self RadiotapHEData2) RUAllocationOffsetKnown() bool { + return self&RadiotapHEData2RUAllocationOffsetKnown != 0 +} + +func (self RadiotapHEData2) PriSec80MHz() bool { + return self&RadiotapHEData2PriSec80MHz != 0 +} + +type RadiotapHEPriSec80MHz bool + +type RadiotapHEData3 uint16 + +const ( + RadiotapHEData3BSSColorMask RadiotapHEData3 = 0x003F + RadiotapHEData3BeamChange RadiotapHEData3 = 0x0040 + RadiotapHEData3ULDL RadiotapHEData3 = 0x0080 + RadiotapHEData3DataMCSMask RadiotapHEData3 = 0x0F00 + RadiotapHEData3DataDCM RadiotapHEData3 = 0x1000 + RadiotapHEData3Coding RadiotapHEData3 = 0x2000 + RadiotapHEData3LDPCEXtraSymbolSegment RadiotapHEData3 = 0x4000 + RadiotapHEData3STBC RadiotapHEData3 = 0x8000 +) + +func (self RadiotapHEData3) BSSColor() int { + return int(self & RadiotapHEData3BSSColorMask) +} + +func (self RadiotapHEData3) BeamChange() bool { + return self&RadiotapHEData3BeamChange != 0 +} + +func (self RadiotapHEData3) ULDL() bool { + return self&RadiotapHEData3ULDL != 0 +} + +func (self RadiotapHEData3) DataMCS() uint8 { + return uint8((self & RadiotapHEData3DataMCSMask) >> 8) +} + +func (self RadiotapHEData3) DataDCM() bool { + return self&RadiotapHEData3DataDCM != 0 +} + +func (self RadiotapHEData3) Coding() RadiotapHECoding { + return self&RadiotapHEData3Coding != 0 +} + +func (self RadiotapHEData3) LDPCExtraSymbolSegment() bool { + return self&RadiotapHEData3LDPCEXtraSymbolSegment != 0 +} + +func (self RadiotapHEData3) STBC() bool { + return self&RadiotapHEData3STBC != 0 +} + +type RadiotapHECoding bool + +const ( + RadiotapHECodingBCC RadiotapHECoding = false + RadiotapHECodingLDPC RadiotapHECoding = true +) + +type RadiotapHEData4 uint16 + +type RadiotapHEData5 uint16 + +const ( + RadiotapHEData5DataBandwidthMask RadiotapHEData5 = 0x000F + RadiotapHEData5GI RadiotapHEData5 = 0x0030 + RadiotapHEData5LTFSize RadiotapHEData5 = 0x00C0 + RadiotapHEData5NumLTFSymbols RadiotapHEData5 = 0x0700 + RadiotapHEData5PreFECPaddingFactor RadiotapHEData5 = 0x3000 + RadiotapHEData5TxBF RadiotapHEData5 = 0x4000 + RadiotapHEData5PEDisambiguity RadiotapHEData5 = 0x8000 +) + +type DataBandwidth uint8 + +const ( + DataBandwidth20 DataBandwidth = iota + DataBandwidth40 + DataBandwidth80 + DataBandwidth160 + DataBandwidth26ToneRU + DataBandwidth52ToneRU + DataBandwidth106ToneRU + DataBandwidth242ToneRU + DataBandwidth484ToneRU + DataBandwidth996ToneRU + DataBandwidth2x996ToneRU +) + +func (db DataBandwidth) String() string { + switch db { + case DataBandwidth20: + return "20" + case DataBandwidth40: + return "40" + case DataBandwidth80: + return "80" + case DataBandwidth160: + return "160/80+80" + case DataBandwidth26ToneRU: + return "26-tone RU" + case DataBandwidth52ToneRU: + return "52-tone RU" + case DataBandwidth106ToneRU: + return "106-tone RU" + case DataBandwidth242ToneRU: + return "242-tone RU" + case DataBandwidth484ToneRU: + return "484-tone RU" + case DataBandwidth996ToneRU: + return "996-tone RU" + case DataBandwidth2x996ToneRU: + return "2x996-tone RU" + default: + return "Unknown" + } +} + +func (self RadiotapHEData5) DataBandwidth() DataBandwidth { + return DataBandwidth(self & RadiotapHEData5DataBandwidthMask) +} + +func (self RadiotapHEData5) Gi() Gi { + return Gi((self & RadiotapHEData5GI) >> 4) +} + +func (self RadiotapHEData5) LTFSize() LTF { + return LTF((self & RadiotapHEData5LTFSize) >> 6) +} + +func (self RadiotapHEData5) NumLTFSymbols() NLTF { + return NLTF((self & RadiotapHEData5NumLTFSymbols) >> 8) +} + +func (self RadiotapHEData5) PreFECPaddingFactor() uint8 { + return uint8((self & RadiotapHEData5PreFECPaddingFactor) >> 12) +} + +func (self RadiotapHEData5) TxBF() bool { + return self&RadiotapHEData5TxBF != 0 +} + +func (self RadiotapHEData5) PEDisambiguity() bool { + return self&RadiotapHEData5PEDisambiguity != 0 +} + +type Gi uint8 + +const ( + Gi_0_8us Gi = iota + Gi_1_6us + Gi_3_2us + Gi_reserved +) + +func (gi Gi) String() string { + switch gi { + case Gi_0_8us: + return "0.8us" + case Gi_1_6us: + return "1.6us" + case Gi_3_2us: + return "3.2us" + default: + return "Reserved" + } +} + +type LTF uint8 + +const ( + LTF_unknown LTF = iota + LTF_1x + LTF_2x + LTF_4x +) + +func (ltf LTF) String() string { + switch ltf { + case LTF_unknown: + return "Unknown" + case LTF_1x: + return "1x" + case LTF_2x: + return "2x" + case LTF_4x: + return "4x" + default: + return "Unknown" + } +} + +type NLTF uint8 + +const ( + NLTF_1x NLTF = iota + NLTF_2x + NLTF_4x + NLTF_6x + NLTF_8x + NLTF_reserved +) + +func (nltf NLTF) String() string { + switch nltf { + case NLTF_1x: + return "1x" + case NLTF_2x: + return "2x" + case NLTF_4x: + return "4x" + case NLTF_6x: + return "6x" + case NLTF_8x: + return "8x" + default: + return "Reserved" + } +} + +type MidamblePeriodicity uint8 + +const ( + MidamblePeriodicity_10 MidamblePeriodicity = iota + MidamblePeriodicity_20 +) + +func (mp MidamblePeriodicity) String() string { + switch mp { + case MidamblePeriodicity_10: + return "10" + case MidamblePeriodicity_20: + return "20" + default: + return "Unknown" + } +} + +type RadiotapHEData6 uint16 + +const ( + RadiotapHEData6NSTS RadiotapHEData6 = 0x000F + RadiotapHEData6Doppler RadiotapHEData6 = 0x0010 + RadiotapHEData6TXOP RadiotapHEData6 = 0x7F00 + RadiotapHEData6MidamblePeriodic RadiotapHEData6 = 0x8000 +) + +func (self RadiotapHEData6) NSTS() int { + return int(self & RadiotapHEData6NSTS) +} + +func (self RadiotapHEData6) Doppler() bool { + return self&RadiotapHEData6Doppler != 0 +} + +func (self RadiotapHEData6) TXOP() int { + return int((self & RadiotapHEData6TXOP) >> 8) +} + +func (self RadiotapHEData6) MidamblePeriodicity() MidamblePeriodicity { + return MidamblePeriodicity((self & RadiotapHEData6MidamblePeriodic) >> 15) +} + func decodeRadioTap(data []byte, p gopacket.PacketBuilder) error { d := &RadioTap{} // TODO: Should we set LinkLayer here? And implement LinkFlow @@ -725,12 +1304,14 @@ type RadioTap struct { MCS RadioTapMCS AMPDUStatus RadioTapAMPDUStatus VHT RadioTapVHT + HE RadiotapHE } func (m *RadioTap) LayerType() gopacket.LayerType { return LayerTypeRadioTap } func (m *RadioTap) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { - if len(data) < 8 { + dataLen := uint16(len(data)) + if dataLen < 8 { df.SetTruncated() return errors.New("RadioTap too small") } @@ -738,6 +1319,11 @@ func (m *RadioTap) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) erro m.Length = binary.LittleEndian.Uint16(data[2:4]) m.Present = RadioTapPresent(binary.LittleEndian.Uint32(data[4:8])) + // Truncate the length to avoid panics, might be smaller due to corruption or loss + if m.Length > dataLen { + m.Length = dataLen + } + offset := uint16(4) for (binary.LittleEndian.Uint32(data[offset:offset+4]) & 0x80000000) != 0 { @@ -864,6 +1450,22 @@ func (m *RadioTap) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) erro } offset += 12 } + if m.Present.Timestamp() { + offset += align(offset, 8) + offset += 12 + } + if m.Present.HE() { + offset += align(offset, 2) + m.HE = RadiotapHE{ + Data1: RadiotapHEData1(binary.LittleEndian.Uint16(data[offset:])), + Data2: RadiotapHEData2(binary.LittleEndian.Uint16(data[offset+2:])), + Data3: RadiotapHEData3(binary.LittleEndian.Uint16(data[offset+4:])), + Data4: RadiotapHEData4(binary.LittleEndian.Uint16(data[offset+6:])), + Data5: RadiotapHEData5(binary.LittleEndian.Uint16(data[offset+8:])), + Data6: RadiotapHEData6(binary.LittleEndian.Uint16(data[offset+10:])), + } + offset += 12 + } payload := data[m.Length:] diff --git a/backend/vendor/github.com/google/gopacket/layers/radius.go b/backend/vendor/github.com/gopacket/gopacket/layers/radius.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/radius.go rename to backend/vendor/github.com/gopacket/gopacket/layers/radius.go index c43ea2945..f2cd280cb 100644 --- a/backend/vendor/github.com/google/gopacket/layers/radius.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/radius.go @@ -9,7 +9,7 @@ import ( "encoding/binary" "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) const ( diff --git a/backend/vendor/github.com/google/gopacket/layers/rmcp.go b/backend/vendor/github.com/gopacket/gopacket/layers/rmcp.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/rmcp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/rmcp.go index 5474fee4a..4e4a6e807 100644 --- a/backend/vendor/github.com/google/gopacket/layers/rmcp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/rmcp.go @@ -11,7 +11,7 @@ package layers import ( "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // RMCPClass is the class of a RMCP layer's payload, e.g. ASF or IPMI. This is a diff --git a/backend/vendor/github.com/google/gopacket/layers/rudp.go b/backend/vendor/github.com/gopacket/gopacket/layers/rudp.go similarity index 98% rename from backend/vendor/github.com/google/gopacket/layers/rudp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/rudp.go index 8435129b9..5c3e76947 100644 --- a/backend/vendor/github.com/google/gopacket/layers/rudp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/rudp.go @@ -9,7 +9,8 @@ package layers import ( "encoding/binary" "fmt" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) type RUDP struct { diff --git a/backend/vendor/github.com/google/gopacket/layers/sctp.go b/backend/vendor/github.com/gopacket/gopacket/layers/sctp.go similarity index 96% rename from backend/vendor/github.com/google/gopacket/layers/sctp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/sctp.go index 511176e56..368497bc5 100644 --- a/backend/vendor/github.com/google/gopacket/layers/sctp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/sctp.go @@ -12,7 +12,7 @@ import ( "fmt" "hash/crc32" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // SCTP contains information on the top level of an SCTP packet. @@ -136,6 +136,23 @@ func decodeSCTPChunk(data []byte) (SCTPChunk, error) { }, nil } +func decodeSCTPDataChunk(data []byte) (SCTPChunk, error) { + length := binary.BigEndian.Uint16(data[2:4]) + if length < 4 { + return SCTPChunk{}, errors.New("invalid SCTP chunk length") + } + actual := roundUpToNearest4(int(length)) + ct := SCTPChunkType(data[0]) + + return SCTPChunk{ + Type: ct, + Flags: data[1], + Length: length, + ActualLength: actual, + BaseLayer: BaseLayer{data[:actual], data[actual:]}, + }, nil +} + // SCTPParameter is a TLV parameter inside a SCTPChunk. type SCTPParameter struct { Type uint16 @@ -214,6 +231,7 @@ type SCTPData struct { StreamId uint16 StreamSequence uint16 PayloadProtocol SCTPPayloadProtocol + Payload []byte } // LayerType returns gopacket.LayerTypeSCTPData. @@ -290,10 +308,11 @@ func (p SCTPPayloadProtocol) String() string { } func decodeSCTPData(data []byte, p gopacket.PacketBuilder) error { - chunk, err := decodeSCTPChunk(data) + chunk, err := decodeSCTPDataChunk(data) if err != nil { return err } + l := chunk.ActualLength sc := &SCTPData{ SCTPChunk: chunk, Unordered: data[1]&0x4 != 0, @@ -303,20 +322,24 @@ func decodeSCTPData(data []byte, p gopacket.PacketBuilder) error { StreamId: binary.BigEndian.Uint16(data[8:10]), StreamSequence: binary.BigEndian.Uint16(data[10:12]), PayloadProtocol: SCTPPayloadProtocol(binary.BigEndian.Uint32(data[12:16])), + Payload: []byte{}, + } + if l >= 16 { + sc.Payload = data[16:l] } // Length is the length in bytes of the data, INCLUDING the 16-byte header. p.AddLayer(sc) - return p.NextDecoder(gopacket.LayerTypePayload) + return p.NextDecoder(gopacket.DecodeFunc(decodeWithSCTPChunkTypePrefix)) } // SerializeTo is for gopacket.SerializableLayer. func (sc SCTPData) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error { - payload := b.Bytes() - // Pad the payload to a 32 bit boundary - if rem := len(payload) % 4; rem != 0 { - b.AppendBytes(4 - rem) + payload := sc.Payload + length := len(payload) + 16 + + if rem := length % 4; rem != 0 { + length += 4 - rem } - length := 16 bytes, err := b.PrependBytes(length) if err != nil { return err @@ -333,11 +356,12 @@ func (sc SCTPData) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.Seriali flags |= 0x1 } bytes[1] = flags - binary.BigEndian.PutUint16(bytes[2:4], uint16(length+len(payload))) + binary.BigEndian.PutUint16(bytes[2:4], sc.Length) binary.BigEndian.PutUint32(bytes[4:8], sc.TSN) binary.BigEndian.PutUint16(bytes[8:10], sc.StreamId) binary.BigEndian.PutUint16(bytes[10:12], sc.StreamSequence) binary.BigEndian.PutUint32(bytes[12:16], uint32(sc.PayloadProtocol)) + copy(bytes[16:], payload) return nil } diff --git a/backend/vendor/github.com/google/gopacket/layers/sflow.go b/backend/vendor/github.com/gopacket/gopacket/layers/sflow.go similarity index 77% rename from backend/vendor/github.com/google/gopacket/layers/sflow.go rename to backend/vendor/github.com/gopacket/gopacket/layers/sflow.go index bc1c9733b..70fd787a4 100644 --- a/backend/vendor/github.com/google/gopacket/layers/sflow.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/sflow.go @@ -77,7 +77,7 @@ import ( "fmt" "net" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // SFlowRecord holds both flow sample records and counter sample records. @@ -161,26 +161,28 @@ type SFlowDatagram struct { // An SFlow datagram's outer container has the following // structure: -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int sFlow version (2|4|5) | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int IP version of the Agent (1=v4|2=v6) | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / Agent IP address (v4=4byte|v6=16byte) / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int sub agent id | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int datagram sequence number | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int switch uptime in ms | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int n samples in datagram | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / n samples / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// SFlowDataFormat +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int sFlow version (2|4|5) | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int IP version of the Agent (1=v4|2=v6) | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / Agent IP address (v4=4byte|v6=16byte) / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int sub agent id | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int datagram sequence number | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int switch uptime in ms | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int n samples in datagram | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / n samples / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ // SFlowDataFormat encodes the EnterpriseID in the most // significant 12 bits, and the SampleType in the least significant @@ -371,66 +373,66 @@ type SFlowFlowSample struct { // the bit fields to encode the Enterprise ID and the // Flow record format: type 1 -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | sample length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int sample sequence number | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// |id type | src id index value | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int sampling rate | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int sample pool | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int drops | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int input ifIndex | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int output ifIndex | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int number of records | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / flow records / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | sample length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int sample sequence number | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// |id type | src id index value | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int sampling rate | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int sample pool | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int drops | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int input ifIndex | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int output ifIndex | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int number of records | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / flow records / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ // Flow samples have the following structure. // Flow record format: type 3 -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | sample length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int sample sequence number | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int src id type | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int src id index value | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int sampling rate | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int sample pool | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int drops | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int input interface format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int input interface value | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int output interface format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int output interface value | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int number of records | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / flow records / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | sample length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int sample sequence number | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int src id type | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int src id index value | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int sampling rate | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int sample pool | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int drops | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int input interface format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int input interface value | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int output interface format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int output interface value | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int number of records | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / flow records / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowFlowDataFormat uint32 @@ -697,17 +699,19 @@ type SFlowCounterSample struct { // Counter samples have the following structure: -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int sample sequence number | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// |id type | src id index value | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | int number of records | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / counter records / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// SFlowCounterDataFormat +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int sample sequence number | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// |id type | src id index value | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | int number of records | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / counter records / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowCounterDataFormat uint32 @@ -984,25 +988,25 @@ type SFlowRawPacketFlowRecord struct { } // Raw packet record types have the following structure: - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Header Protocol | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Frame Length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Payload Removed | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Header Length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// \ Header \ -// \ \ -// \ \ -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Header Protocol | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Frame Length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Payload Removed | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Header Length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// \ Header \ +// \ \ +// \ \ +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowRawHeaderProtocol uint32 @@ -1088,21 +1092,21 @@ type SFlowExtendedSwitchFlowRecord struct { } // Extended switch records have the following structure: - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Incoming VLAN | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Incoming VLAN Priority | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Outgoing VLAN | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Outgoing VLAN Priority | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Incoming VLAN | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Incoming VLAN Priority | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Outgoing VLAN | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Outgoing VLAN Priority | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ func decodeExtendedSwitchFlowRecord(data *[]byte) (SFlowExtendedSwitchFlowRecord, error) { es := SFlowExtendedSwitchFlowRecord{} @@ -1129,22 +1133,22 @@ type SFlowExtendedRouterFlowRecord struct { } // Extended router records have the following structure: - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IP version of next hop router (1=v4|2=v6) | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / Next Hop address (v4=4byte|v6=16byte) / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Next Hop Source Mask | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Next Hop Destination Mask | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IP version of next hop router (1=v4|2=v6) | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / Next Hop address (v4=4byte|v6=16byte) / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Next Hop Source Mask | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Next Hop Destination Mask | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ func decodeExtendedRouterFlowRecord(data *[]byte) (SFlowExtendedRouterFlowRecord, error) { er := SFlowExtendedRouterFlowRecord{} @@ -1168,56 +1172,56 @@ func decodeExtendedRouterFlowRecord(data *[]byte) (SFlowExtendedRouterFlowRecord // traffic is being sent from / received by various BGP peers. // Extended gateway records have the following structure: - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IP version of next hop router (1=v4|2=v6) | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / Next Hop address (v4=4byte|v6=16byte) / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | AS | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Source AS | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Peer AS | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | AS Path Count | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / AS Path / Sequence / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / Communities / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Local Pref | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IP version of next hop router (1=v4|2=v6) | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / Next Hop address (v4=4byte|v6=16byte) / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | AS | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Source AS | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Peer AS | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | AS Path Count | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / AS Path / Sequence / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / Communities / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Local Pref | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ // AS Path / Sequence: -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | AS Source Type (Path=1 / Sequence=2) | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Path / Sequence length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / Path / Sequence Members / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | AS Source Type (Path=1 / Sequence=2) | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Path / Sequence length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / Path / Sequence Members / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ // Communities: -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | communitiy length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / communitiy Members / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | communitiy length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / communitiy Members / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowExtendedGatewayFlowRecord struct { SFlowBaseFlowRecord @@ -1311,19 +1315,19 @@ func decodeExtendedGatewayFlowRecord(data *[]byte) (SFlowExtendedGatewayFlowReco // ************************************************** // Extended URL Flow Record // ************************************************** - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | direction | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | URL | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Host | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | direction | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | URL | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Host | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowURLDirection uint32 @@ -1378,21 +1382,21 @@ func decodeExtendedURLRecord(data *[]byte) (SFlowExtendedURLRecord, error) { // ************************************************** // Extended User Flow Record // ************************************************** - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Source Character Set | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Source User Id | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Destination Character Set | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Destination User ID | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Source Character Set | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Source User Id | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Destination Character Set | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Destination User ID | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowExtendedUserFlow struct { SFlowBaseFlowRecord @@ -1696,24 +1700,26 @@ func decodeExtendedUserFlow(data *[]byte) (SFlowExtendedUserFlow, error) { // Packet IP version 4 Record // ************************************************** -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Protocol | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Source IPv4 | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Destination IPv4 | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Source Port | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Destionation Port | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | TCP Flags | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | TOS | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// SFlowIpv4Record +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Protocol | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Source IPv4 | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Destination IPv4 | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Source Port | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Destionation Port | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | TCP Flags | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | TOS | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowIpv4Record struct { // The length of the IP packet excluding ower layer encapsulations Length uint32 @@ -1749,27 +1755,29 @@ func decodeSFlowIpv4Record(data *[]byte) (SFlowIpv4Record, error) { } // ************************************************** -// Packet IP version 6 Record +// +// Packet IP version 6 Record +// // ************************************************** - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Protocol | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Source IPv4 | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Destination IPv4 | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Source Port | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Destionation Port | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | TCP Flags | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Priority | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Protocol | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Source IPv4 | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Destination IPv4 | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Source Port | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Destionation Port | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | TCP Flags | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Priority | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowIpv6Record struct { // The length of the IP packet excluding ower layer encapsulations Length uint32 @@ -1805,18 +1813,20 @@ func decodeSFlowIpv6Record(data *[]byte) (SFlowIpv6Record, error) { } // ************************************************** -// Extended IPv4 Tunnel Egress +// +// Extended IPv4 Tunnel Egress +// // ************************************************** - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / Packet IP version 4 Record / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / Packet IP version 4 Record / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowExtendedIpv4TunnelEgressRecord struct { SFlowBaseFlowRecord SFlowIpv4Record SFlowIpv4Record @@ -1835,18 +1845,20 @@ func decodeExtendedIpv4TunnelEgress(data *[]byte) (SFlowExtendedIpv4TunnelEgress } // ************************************************** -// Extended IPv4 Tunnel Ingress +// +// Extended IPv4 Tunnel Ingress +// // ************************************************** - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / Packet IP version 4 Record / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / Packet IP version 4 Record / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowExtendedIpv4TunnelIngressRecord struct { SFlowBaseFlowRecord SFlowIpv4Record SFlowIpv4Record @@ -1865,18 +1877,20 @@ func decodeExtendedIpv4TunnelIngress(data *[]byte) (SFlowExtendedIpv4TunnelIngre } // ************************************************** -// Extended IPv6 Tunnel Egress +// +// Extended IPv6 Tunnel Egress +// // ************************************************** - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / Packet IP version 6 Record / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / Packet IP version 6 Record / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowExtendedIpv6TunnelEgressRecord struct { SFlowBaseFlowRecord SFlowIpv6Record @@ -1895,18 +1909,20 @@ func decodeExtendedIpv6TunnelEgress(data *[]byte) (SFlowExtendedIpv6TunnelEgress } // ************************************************** -// Extended IPv6 Tunnel Ingress +// +// Extended IPv6 Tunnel Ingress +// // ************************************************** - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / Packet IP version 6 Record / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / Packet IP version 6 Record / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowExtendedIpv6TunnelIngressRecord struct { SFlowBaseFlowRecord SFlowIpv6Record @@ -1925,17 +1941,19 @@ func decodeExtendedIpv6TunnelIngress(data *[]byte) (SFlowExtendedIpv6TunnelIngre } // ************************************************** -// Extended Decapsulate Egress +// +// Extended Decapsulate Egress +// // ************************************************** - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Inner Header Offset | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Inner Header Offset | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowExtendedDecapsulateEgressRecord struct { SFlowBaseFlowRecord InnerHeaderOffset uint32 @@ -1954,17 +1972,21 @@ func decodeExtendedDecapsulateEgress(data *[]byte) (SFlowExtendedDecapsulateEgre } // ************************************************** -// Extended Decapsulate Ingress +// +// Extended Decapsulate Ingress +// // ************************************************** -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Inner Header Offset | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// SFlowExtendedDecapsulateIngressRecord +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Inner Header Offset | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowExtendedDecapsulateIngressRecord struct { SFlowBaseFlowRecord InnerHeaderOffset uint32 @@ -1983,17 +2005,21 @@ func decodeExtendedDecapsulateIngress(data *[]byte) (SFlowExtendedDecapsulateIng } // ************************************************** -// Extended VNI Egress +// +// Extended VNI Egress +// // ************************************************** -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | VNI | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// SFlowExtendedVniEgressRecord +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | VNI | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowExtendedVniEgressRecord struct { SFlowBaseFlowRecord VNI uint32 @@ -2012,17 +2038,21 @@ func decodeExtendedVniEgress(data *[]byte) (SFlowExtendedVniEgressRecord, error) } // ************************************************** -// Extended VNI Ingress +// +// Extended VNI Ingress +// // ************************************************** -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | VNI | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// SFlowExtendedVniIngressRecord +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | VNI | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowExtendedVniIngressRecord struct { SFlowBaseFlowRecord VNI uint32 @@ -2044,16 +2074,17 @@ func decodeExtendedVniIngress(data *[]byte) (SFlowExtendedVniIngressRecord, erro // Counter Record // ************************************************** -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | counter length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / counter data / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ - +// SFlowBaseCounterRecord +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | counter length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | counter data | +// | | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowBaseCounterRecord struct { EnterpriseID SFlowEnterpriseID Format SFlowCounterRecordType @@ -2092,53 +2123,53 @@ func (bcr SFlowBaseCounterRecord) GetType() SFlowCounterRecordType { // ************************************************** // Counter Record // ************************************************** - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | counter length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfIndex | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfType | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfSpeed | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfDirection | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfStatus | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IFInOctets | -// | | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfInUcastPkts | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfInMulticastPkts | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfInBroadcastPkts | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfInDiscards | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | InInErrors | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfInUnknownProtos | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfOutOctets | -// | | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfOutUcastPkts | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfOutMulticastPkts | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfOutBroadcastPkts | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfOutDiscards | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfOUtErrors | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | IfPromiscouousMode | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | counter length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfIndex | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfType | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfSpeed | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfDirection | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfStatus | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IFInOctets | +// | | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfInUcastPkts | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfInMulticastPkts | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfInBroadcastPkts | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfInDiscards | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | InInErrors | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfInUnknownProtos | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfOutOctets | +// | | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfOutUcastPkts | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfOutMulticastPkts | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfOutBroadcastPkts | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfOutDiscards | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfOUtErrors | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | IfPromiscouousMode | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowGenericInterfaceCounters struct { SFlowBaseCounterRecord @@ -2195,16 +2226,16 @@ func decodeGenericInterfaceCounters(data *[]byte) (SFlowGenericInterfaceCounters // ************************************************** // Counter Record // ************************************************** - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | counter length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// / counter data / -// / / -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | counter length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// / counter data / +// / / +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowEthernetCounters struct { SFlowBaseCounterRecord @@ -2317,12 +2348,12 @@ func decodeVLANCounters(data *[]byte) (SFlowVLANCounters, error) { return vc, nil } -//SFLLACPportState : SFlow LACP Port State (All(4) - 32 bit) +// SFLLACPportState : SFlow LACP Port State (All(4) - 32 bit) type SFLLACPPortState struct { PortStateAll uint32 } -//LACPcounters : LACP SFlow Counters ( 64 Bytes ) +// LACPcounters : LACP SFlow Counters ( 64 Bytes ) type SFlowLACPCounters struct { SFlowBaseCounterRecord ActorSystemID net.HardwareAddr @@ -2368,22 +2399,23 @@ func decodeLACPCounters(data *[]byte) (SFlowLACPCounters, error) { // ************************************************** // Processor Counter Record // ************************************************** -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | counter length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | FiveSecCpu | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | OneMinCpu | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | GiveMinCpu | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | TotalMemory | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | FreeMemory | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | counter length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | FiveSecCpu | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | OneMinCpu | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | GiveMinCpu | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | TotalMemory | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | FreeMemory | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ type SFlowProcessorCounters struct { SFlowBaseCounterRecord @@ -2428,19 +2460,19 @@ type SFlowEthernetFrameFlowRecord struct { } // Ethernet frame flow records have the following structure: - -// 0 15 31 -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | 20 bit Interprise (0) |12 bit format | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | record length | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Source Mac Address | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Destination Mac Address | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ -// | Ethernet Packet Type | -// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// +// 0 15 31 +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | 20 bit Interprise (0) |12 bit format | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | record length | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Source Mac Address | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Destination Mac Address | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ +// | Ethernet Packet Type | +// +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ func decodeEthernetFrameFlowRecord(data *[]byte) (SFlowEthernetFrameFlowRecord, error) { es := SFlowEthernetFrameFlowRecord{} @@ -2457,7 +2489,7 @@ func decodeEthernetFrameFlowRecord(data *[]byte) (SFlowEthernetFrameFlowRecord, return es, nil } -//SFlowOpenflowPortCounters : OVS-Sflow OpenFlow Port Counter ( 20 Bytes ) +// SFlowOpenflowPortCounters : OVS-Sflow OpenFlow Port Counter ( 20 Bytes ) type SFlowOpenflowPortCounters struct { SFlowBaseCounterRecord DatapathID uint64 @@ -2477,7 +2509,7 @@ func decodeOpenflowportCounters(data *[]byte) (SFlowOpenflowPortCounters, error) return ofp, nil } -//SFlowAppresourcesCounters : OVS_Sflow App Resources Counter ( 48 Bytes ) +// SFlowAppresourcesCounters : OVS_Sflow App Resources Counter ( 48 Bytes ) type SFlowAppresourcesCounters struct { SFlowBaseCounterRecord UserTime uint32 @@ -2509,7 +2541,7 @@ func decodeAppresourcesCounters(data *[]byte) (SFlowAppresourcesCounters, error) return app, nil } -//SFlowOVSDPCounters : OVS-Sflow DataPath Counter ( 32 Bytes ) +// SFlowOVSDPCounters : OVS-Sflow DataPath Counter ( 32 Bytes ) type SFlowOVSDPCounters struct { SFlowBaseCounterRecord NHit uint32 @@ -2537,7 +2569,7 @@ func decodeOVSDPCounters(data *[]byte) (SFlowOVSDPCounters, error) { return dp, nil } -//SFlowPORTNAME : OVS-Sflow PORTNAME Counter Sampletype ( 20 Bytes ) +// SFlowPORTNAME : OVS-Sflow PORTNAME Counter Sampletype ( 20 Bytes ) type SFlowPORTNAME struct { SFlowBaseCounterRecord Len uint32 diff --git a/backend/vendor/github.com/google/gopacket/layers/sip.go b/backend/vendor/github.com/gopacket/gopacket/layers/sip.go similarity index 78% rename from backend/vendor/github.com/google/gopacket/layers/sip.go rename to backend/vendor/github.com/gopacket/gopacket/layers/sip.go index 70afdb5c0..2e8834ffb 100644 --- a/backend/vendor/github.com/google/gopacket/layers/sip.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/sip.go @@ -13,7 +13,7 @@ import ( "strconv" "strings" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // SIPVersion defines the different versions of the SIP Protocol @@ -180,7 +180,6 @@ var compactSipHeadersCorrespondance = map[string]string{ // -> The SIP Response code (if it's a response) // -> The SIP Status line (if it's a response) // You can easily know the type of the packet with the IsResponse boolean -// type SIP struct { BaseLayer @@ -198,8 +197,8 @@ type SIP struct { ResponseStatus string // Private fields - cseq int64 - contentLength int64 + cseq uint32 + contentLength int lastHeaderParsed string } @@ -220,6 +219,7 @@ func decodeSIP(data []byte, p gopacket.PacketBuilder) error { func NewSIP() *SIP { s := new(SIP) s.Headers = make(map[string][]string) + s.contentLength = -1 return s } @@ -297,20 +297,49 @@ func (s *SIP) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { countLines++ } - s.BaseLayer = BaseLayer{Contents: data[:offset], Payload: data[offset:]} + s.setBaseLayer(data, offset, df) return nil } +// setBaseLayer is used to set the base layer of the SIP packet. +// +// According to "RFC3261 - 20.14 - Content-Length" the Content-Length header is mandatory +// for SIP packages transported over TCP. When transporting over UDP, the message +// body length CAN be determined by the length of the UDP datagram. +// +// So by using the Content-Length header, if present we can mark the packet as truncated if we do not +// have enough data. We are also able to limit the payload to the number bytes actually specified. +// If the header is not present, we can assume that the data was transported over UDP we can then +// use the length of the data as payload length. +func (s *SIP) setBaseLayer(data []byte, offset int, df gopacket.DecodeFeedback) { + // The content-length header was not present in the packet, we use the rest of the packet as payload + if s.contentLength == -1 { + s.BaseLayer = BaseLayer{Contents: data[:offset], Payload: data[offset:]} + } else if s.contentLength == 0 { + // We have a zero Content-Length, no payload + s.BaseLayer = BaseLayer{Contents: data[:offset], Payload: []byte{}} // no payload + } else if len(data) < offset+s.contentLength { + // Not enough data to fulfill the Content-Length. We set the packet as truncated + // and return what we have. The receiver of the packet will be able to determine this + // by comparing the SIP.ContentLength with the length of the SIP.Payload. + df.SetTruncated() + s.BaseLayer = BaseLayer{Contents: data[:offset], Payload: data[offset:]} + } else { + // we have at least enough data, to fulfill the Content-Length. But we only add the number + // of bytes specified in the Content-Length header to the payload. + s.BaseLayer = BaseLayer{Contents: data[:offset], Payload: data[offset : offset+s.contentLength]} + } +} + // ParseFirstLine will compute the first line of a SIP packet. // The first line will tell us if it's a request or a response. // // Examples of first line of SIP Prococol : // -// Request : INVITE bob@example.com SIP/2.0 -// Response : SIP/2.0 200 OK -// Response : SIP/2.0 501 Not Implemented -// +// Request : INVITE bob@example.com SIP/2.0 +// Response : SIP/2.0 200 OK +// Response : SIP/2.0 501 Not Implemented func (s *SIP) ParseFirstLine(firstLine []byte) error { var err error @@ -372,13 +401,12 @@ func (s *SIP) ParseFirstLine(firstLine []byte) error { // // Examples of header : // -// CSeq: 1 REGISTER -// Via: SIP/2.0/UDP there.com:5060 -// Authorization:Digest username="UserB", -// realm="MCI WorldCom SIP", -// nonce="1cec4341ae6cbe5a359ea9c8e88df84f", opaque="", -// uri="sip:ss2.wcom.com", response="71ba27c64bd01de719686aa4590d5824" -// +// CSeq: 1 REGISTER +// Via: SIP/2.0/UDP there.com:5060 +// Authorization:Digest username="UserB", +// realm="MCI WorldCom SIP", +// nonce="1cec4341ae6cbe5a359ea9c8e88df84f", opaque="", +// uri="sip:ss2.wcom.com", response="71ba27c64bd01de719686aa4590d5824" func (s *SIP) ParseHeader(header []byte) (err error) { // Ignore empty headers @@ -423,19 +451,16 @@ func (s *SIP) ParseSpecificHeaders(headerName string, headerValue string) (err e switch headerName { case "cseq": - // CSeq header value is formatted like that : // CSeq: 123 INVITE // We split the value to parse Cseq integer value, and method splits := strings.Split(headerValue, " ") if len(splits) > 1 { - - // Parse Cseq - s.cseq, err = strconv.ParseInt(splits[0], 10, 64) + // parse CSEQ + s.cseq, err = parseUint32(splits[0]) if err != nil { - return err + return fmt.Errorf("invalid CSEQ value: %w", err) } - // Validate method if s.IsResponse { s.Method, err = GetSIPMethod(splits[1]) @@ -446,17 +471,38 @@ func (s *SIP) ParseSpecificHeaders(headerName string, headerValue string) (err e } case "content-length": - // Parse Content-Length - s.contentLength, err = strconv.ParseInt(headerValue, 10, 64) + s.contentLength, err = parsePositiveInt32(headerValue) if err != nil { - return err + return fmt.Errorf("invalid Content-Length: %w", err) } } return nil } +// parsePositiveInt32 will parse the string as an int, but will return error if +// value is < 0 or above the max positive value of an int32 +func parsePositiveInt32(s string) (int, error) { + i, err := strconv.ParseInt(s, 10, 32) + if err != nil { + return 0, err + } + if i < 0 { + return 0, fmt.Errorf("%d out of range", i) + } + return int(i), nil +} + +// parseUint32 parse string value to uint32, return error if not successful +func parseUint32(s string) (uint32, error) { + i, err := strconv.ParseUint(s, 10, 32) + if err != nil { + return 0, err + } + return uint32(i), nil +} + // GetAllHeaders will return the full headers of the // current SIP packets in a map[string][]string func (s *SIP) GetAllHeaders() map[string][]string { @@ -532,11 +578,15 @@ func (s *SIP) GetUserAgent() string { // GetContentLength will return the parsed integer // Content-Length header of the current SIP packet func (s *SIP) GetContentLength() int64 { - return s.contentLength + // to keep compatibility with previous versions, we return 0 if contentLength is not set by header + if s.contentLength == -1 { + return 0 + } + return int64(s.contentLength) } // GetCSeq will return the parsed integer CSeq header // header of the current SIP packet func (s *SIP) GetCSeq() int64 { - return s.cseq + return int64(s.cseq) } diff --git a/backend/vendor/github.com/gopacket/gopacket/layers/stp.go b/backend/vendor/github.com/gopacket/gopacket/layers/stp.go new file mode 100644 index 000000000..5ced41281 --- /dev/null +++ b/backend/vendor/github.com/gopacket/gopacket/layers/stp.go @@ -0,0 +1,150 @@ +// Copyright 2017 Google, Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style license +// that can be found in the LICENSE file in the root of the source +// tree. + +package layers + +import ( + "encoding/binary" + "errors" + "fmt" + "net" + + "github.com/gopacket/gopacket" +) + +type STPSwitchID struct { + Priority uint16 // Bridge priority + SysID uint16 // VLAN ID + HwAddr net.HardwareAddr +} + +// STP decode spanning tree protocol packets to transport BPDU (bridge protocol data unit) message. +type STP struct { + BaseLayer + ProtocolID uint16 + Version uint8 + Type uint8 + TC, TCA bool // TC: Topologie change ; TCA: Topologie change ack + RouteID, BridgeID STPSwitchID + Cost uint32 + PortID uint16 + MessageAge uint16 + MaxAge uint16 + HelloTime uint16 + FDelay uint16 +} + +// LayerType returns gopacket.LayerTypeSTP. +func (s *STP) LayerType() gopacket.LayerType { return LayerTypeSTP } + +// CanDecode returns the set of layer types that this DecodingLayer can decode. +func (s *STP) CanDecode() gopacket.LayerClass { + return LayerTypeSTP +} + +// DecodeFromBytes decodes the given bytes into this layer. +func (stp *STP) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { + stpLength := 35 + if len(data) < stpLength { + df.SetTruncated() + return fmt.Errorf("STP length %d too short", len(data)) + } + + stp.ProtocolID = binary.BigEndian.Uint16(data[:2]) + stp.Version = uint8(data[2]) + stp.Type = uint8(data[3]) + stp.TC = data[4]&0x01 != 0 + stp.TCA = data[4]&0x80 != 0 + stp.RouteID.Priority = binary.BigEndian.Uint16(data[5:7]) & 0xf000 + stp.RouteID.SysID = binary.BigEndian.Uint16(data[5:7]) & 0x0fff + stp.RouteID.HwAddr = net.HardwareAddr(data[7:13]) + stp.Cost = binary.BigEndian.Uint32(data[13:17]) + stp.BridgeID.Priority = binary.BigEndian.Uint16(data[17:19]) & 0xf000 + stp.BridgeID.SysID = binary.BigEndian.Uint16(data[17:19]) & 0x0fff + stp.BridgeID.HwAddr = net.HardwareAddr(data[19:25]) + stp.PortID = binary.BigEndian.Uint16(data[25:27]) + stp.MessageAge = binary.BigEndian.Uint16(data[27:29]) + stp.MaxAge = binary.BigEndian.Uint16(data[29:31]) + stp.HelloTime = binary.BigEndian.Uint16(data[31:33]) + stp.FDelay = binary.BigEndian.Uint16(data[33:35]) + stp.Contents = data[:stpLength] + stp.Payload = data[stpLength:] + + return nil +} + +// NextLayerType returns the layer type contained by this DecodingLayer. +func (stp *STP) NextLayerType() gopacket.LayerType { + return gopacket.LayerTypePayload +} + +// Check if the priority value is correct. +func checkPriority(prio uint16) (uint16, error) { + if prio == 0 { + return prio, errors.New("Invalid Priority value must be in the rage <4096-61440> with an increment of 4096") + } + if prio%4096 == 0 { + return prio, nil + } else { + return prio, errors.New("Invalid Priority value must be in the rage <4096-61440> with an increment of 4096") + } +} + +// SerializeTo writes the serialized form of this layer into the +// SerializationBuffer, implementing gopacket.SerializableLayer. +// See the docs for gopacket.SerializableLayer for more info. +func (s *STP) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error { + var flags uint8 = 0x00 + bytes, err := b.PrependBytes(35) + if err != nil { + return err + } + binary.BigEndian.PutUint16(bytes, s.ProtocolID) + bytes[2] = s.Version + bytes[3] = s.Type + if s.TC { + flags |= 0x01 + } + if s.TCA { + flags |= 0x80 + } + bytes[4] = flags + + prioRoot, err := checkPriority(s.RouteID.Priority) + if err != nil { + panic(err) + } + if s.RouteID.SysID >= 4096 { + panic("Invalid VlanID value ..!") + } + binary.BigEndian.PutUint16(bytes[5:7], prioRoot|s.RouteID.SysID) + copy(bytes[7:13], s.RouteID.HwAddr) + + binary.BigEndian.PutUint32(bytes[13:17], s.Cost) + + prioBridge, err := checkPriority(s.BridgeID.Priority) + if err != nil { + panic(err) + } + if s.BridgeID.SysID >= 4096 { + panic("Invalid VlanID value ..!") + } + binary.BigEndian.PutUint16(bytes[17:19], prioBridge|s.BridgeID.SysID) + copy(bytes[19:25], s.BridgeID.HwAddr) + + binary.BigEndian.PutUint16(bytes[25:27], s.PortID) + binary.BigEndian.PutUint16(bytes[27:29], s.MessageAge) + binary.BigEndian.PutUint16(bytes[29:31], s.MaxAge) + binary.BigEndian.PutUint16(bytes[31:33], s.HelloTime) + binary.BigEndian.PutUint16(bytes[33:35], s.FDelay) + + return nil +} + +func decodeSTP(data []byte, p gopacket.PacketBuilder) error { + stp := &STP{} + return decodingLayerDecoder(stp, data, p) +} diff --git a/backend/vendor/github.com/gopacket/gopacket/layers/tcp.go b/backend/vendor/github.com/gopacket/gopacket/layers/tcp.go new file mode 100644 index 000000000..782c0005f --- /dev/null +++ b/backend/vendor/github.com/gopacket/gopacket/layers/tcp.go @@ -0,0 +1,637 @@ +// Copyright 2012 Google, Inc. All rights reserved. +// Copyright 2009-2011 Andreas Krennmair. All rights reserved. +// +// Use of this source code is governed by a BSD-style license +// that can be found in the LICENSE file in the root of the source +// tree. + +package layers + +import ( + "encoding/binary" + "encoding/hex" + "errors" + "fmt" + + "github.com/gopacket/gopacket" +) + +// TCP is the layer for TCP headers. +type TCP struct { + BaseLayer + SrcPort, DstPort TCPPort + Seq uint32 + Ack uint32 + DataOffset uint8 + FIN, SYN, RST, PSH, ACK, URG, ECE, CWR, NS bool + Window uint16 + Checksum uint16 + Urgent uint16 + sPort, dPort []byte + Options []TCPOption + Padding []byte + opts [4]TCPOption + Multipath bool + tcpipchecksum +} + +// TCPOptionKind represents a TCP option code. +type TCPOptionKind uint8 + +// TCP Option Kind constonts from https://www.iana.org/assignments/tcp-parameters/tcp-parameters.xml#tcp-parameters-1 +const ( + TCPOptionKindEndList = 0 + TCPOptionKindNop = 1 + TCPOptionKindMSS = 2 // len = 4 + TCPOptionKindWindowScale = 3 // len = 3 + TCPOptionKindSACKPermitted = 4 // len = 2 + TCPOptionKindSACK = 5 // len = n + TCPOptionKindEcho = 6 // len = 6, obsolete + TCPOptionKindEchoReply = 7 // len = 6, obsolete + TCPOptionKindTimestamps = 8 // len = 10 + TCPOptionKindPartialOrderConnectionPermitted = 9 // len = 2, obsolete + TCPOptionKindPartialOrderServiceProfile = 10 // len = 3, obsolete + TCPOptionKindCC = 11 // obsolete + TCPOptionKindCCNew = 12 // obsolete + TCPOptionKindCCEcho = 13 // obsolete + TCPOptionKindAltChecksum = 14 // len = 3, obsolete + TCPOptionKindAltChecksumData = 15 // len = n, obsolete + TCPOptionKindMultipathTCP = 30 +) + +func (k TCPOptionKind) String() string { + switch k { + case TCPOptionKindEndList: + return "EndList" + case TCPOptionKindNop: + return "NOP" + case TCPOptionKindMSS: + return "MSS" + case TCPOptionKindWindowScale: + return "WindowScale" + case TCPOptionKindSACKPermitted: + return "SACKPermitted" + case TCPOptionKindSACK: + return "SACK" + case TCPOptionKindEcho: + return "Echo" + case TCPOptionKindEchoReply: + return "EchoReply" + case TCPOptionKindTimestamps: + return "Timestamps" + case TCPOptionKindPartialOrderConnectionPermitted: + return "PartialOrderConnectionPermitted" + case TCPOptionKindPartialOrderServiceProfile: + return "PartialOrderServiceProfile" + case TCPOptionKindCC: + return "CC" + case TCPOptionKindCCNew: + return "CCNew" + case TCPOptionKindCCEcho: + return "CCEcho" + case TCPOptionKindAltChecksum: + return "AltChecksum" + case TCPOptionKindAltChecksumData: + return "AltChecksumData" + case TCPOptionKindMultipathTCP: + return "MultipathTCP" + default: + return fmt.Sprintf("Unknown(%d)", k) + } +} + +// TCPOption are the possible TCP and MPTCP Options +type TCPOption struct { + OptionType TCPOptionKind + OptionLength uint8 + OptionData []byte + OptionMultipath MPTCPSubtype + OptionMPTCPMpCapable *MPCapable + OptionMPTCPDss *Dss + OptionMPTCPMpJoin *MPJoin + OptionMPTCPMpPrio *MPPrio + OptionMPTCPAddAddr *AddAddr + OptionMTCPRemAddr *RemAddr + OptionMTCPMPFastClose *MPFClose + OptionMPTCPMPTcpRst *MPTcpRst + OptionMTCPMPFail *MPFail +} + +func (t TCPOption) String() string { + hd := hex.EncodeToString(t.OptionData) + if len(hd) > 0 { + hd = " 0x" + hd + } + switch t.OptionType { + case TCPOptionKindMSS: + if len(t.OptionData) >= 2 { + return fmt.Sprintf("TCPOption(%s:%v%s)", + t.OptionType, + binary.BigEndian.Uint16(t.OptionData), + hd) + } + + case TCPOptionKindTimestamps: + if len(t.OptionData) == 8 { + return fmt.Sprintf("TCPOption(%s:%v/%v%s)", + t.OptionType, + binary.BigEndian.Uint32(t.OptionData[:4]), + binary.BigEndian.Uint32(t.OptionData[4:8]), + hd) + } + + case TCPOptionKindMultipathTCP: + switch t.OptionMultipath { + case MPTCPSubtypeMPCAPABLE: + return fmt.Sprintf("MPTCPOption(%s Version %v)", + t.OptionMultipath, + t.OptionMPTCPMpCapable.Version) + case MPTCPSubtypeMPJOIN: + return fmt.Sprintf("MPTCPOption(%s Backup %v;Address ID %v)", + t.OptionMultipath, + t.OptionMPTCPMpJoin.Backup, + t.OptionMPTCPMpJoin.AddrID) + case MPTCPSubtypeDSS: + return fmt.Sprintf("MPTCPOption(%s)", + t.OptionMultipath) + case MPTCPSubtypeMPPRIO: + return fmt.Sprintf("MPTCPOption(%s Backup %v;Address ID %v)", + t.OptionMultipath, + t.OptionMPTCPMpPrio.Backup, + t.OptionMPTCPMpPrio.AddrID) + case MPTCPSubtypeADDADDR: + return fmt.Sprintf("MPTCPOption(%s Address ID %v;Address %v;Port %v)", + t.OptionMultipath, + t.OptionMPTCPAddAddr.AddrID, + t.OptionMPTCPAddAddr.Address, + t.OptionMPTCPAddAddr.Port) + case MPTCPSubtypeREMOVEADDR: + return fmt.Sprintf("MPTCPOption(%s Address ID %v)", + t.OptionMultipath, + t.OptionMTCPRemAddr.AddrIDs) + case MPTCPSubtypeMPFASTCLOSE: + return fmt.Sprintf("MPTCPOption(%s)", + t.OptionMultipath) + case MPTCPSubtypeMPTCPRST: + return fmt.Sprintf("MPTCPOption(%s Transient %v; Reason %v)", + t.OptionMultipath, + t.OptionMPTCPMPTcpRst.T, + t.OptionMPTCPMPTcpRst.Reason) + case MPTCPSubtypeMPFAIL: + return fmt.Sprintf("MPTCPOption(%s)", + t.OptionMultipath) + } + } + return fmt.Sprintf("TCPOption(%s:%s)", t.OptionType, hd) +} + +// LayerType returns gopacket.LayerTypeTCP +func (t *TCP) LayerType() gopacket.LayerType { return LayerTypeTCP } + +// SerializeTo writes the serialized form of this layer into the +// SerializationBuffer, implementing gopacket.SerializableLayer. +// See the docs for gopacket.SerializableLayer for more info. +func (t *TCP) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error { + var optionLength int + for _, o := range t.Options { + switch o.OptionType { + case 0, 1: + optionLength += 1 + default: + optionLength += 2 + len(o.OptionData) + } + } + if opts.FixLengths { + if rem := optionLength % 4; rem != 0 { + t.Padding = lotsOfZeros[:4-rem] + } + t.DataOffset = uint8((len(t.Padding) + optionLength + 20) / 4) + } + bytes, err := b.PrependBytes(20 + optionLength + len(t.Padding)) + if err != nil { + return err + } + binary.BigEndian.PutUint16(bytes, uint16(t.SrcPort)) + binary.BigEndian.PutUint16(bytes[2:], uint16(t.DstPort)) + binary.BigEndian.PutUint32(bytes[4:], t.Seq) + binary.BigEndian.PutUint32(bytes[8:], t.Ack) + binary.BigEndian.PutUint16(bytes[12:], t.flagsAndOffset()) + binary.BigEndian.PutUint16(bytes[14:], t.Window) + binary.BigEndian.PutUint16(bytes[18:], t.Urgent) + start := 20 + for _, o := range t.Options { + bytes[start] = byte(o.OptionType) + switch o.OptionType { + case 0, 1: + start++ + default: + if opts.FixLengths { + o.OptionLength = uint8(len(o.OptionData) + 2) + } + bytes[start+1] = o.OptionLength + copy(bytes[start+2:start+len(o.OptionData)+2], o.OptionData) + start += len(o.OptionData) + 2 + } + } + copy(bytes[start:], t.Padding) + if opts.ComputeChecksums { + // zero out checksum bytes in current serialization. + bytes[16] = 0 + bytes[17] = 0 + csum, err := t.computeChecksum(b.Bytes(), IPProtocolTCP) + if err != nil { + return err + } + t.Checksum = gopacket.FoldChecksum(csum) + } + binary.BigEndian.PutUint16(bytes[16:], t.Checksum) + return nil +} + +func (t *TCP) ComputeChecksum() (uint16, error) { + csum, err := t.computeChecksum(append(t.Contents, t.Payload...), IPProtocolTCP) + if err != nil { + return 0, err + } + return gopacket.FoldChecksum(csum), nil +} + +func (t *TCP) flagsAndOffset() uint16 { + f := uint16(t.DataOffset) << 12 + if t.FIN { + f |= 0x0001 + } + if t.SYN { + f |= 0x0002 + } + if t.RST { + f |= 0x0004 + } + if t.PSH { + f |= 0x0008 + } + if t.ACK { + f |= 0x0010 + } + if t.URG { + f |= 0x0020 + } + if t.ECE { + f |= 0x0040 + } + if t.CWR { + f |= 0x0080 + } + if t.NS { + f |= 0x0100 + } + return f +} + +func (tcp *TCP) DecodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { + if len(data) < 20 { + df.SetTruncated() + return fmt.Errorf("Invalid TCP header. Length %d less than 20", len(data)) + } + tcp.SrcPort = TCPPort(binary.BigEndian.Uint16(data[0:2])) + tcp.sPort = data[0:2] + tcp.DstPort = TCPPort(binary.BigEndian.Uint16(data[2:4])) + tcp.dPort = data[2:4] + tcp.Seq = binary.BigEndian.Uint32(data[4:8]) + tcp.Ack = binary.BigEndian.Uint32(data[8:12]) + tcp.DataOffset = data[12] >> 4 + tcp.FIN = data[13]&0x01 != 0 + tcp.SYN = data[13]&0x02 != 0 + tcp.RST = data[13]&0x04 != 0 + tcp.PSH = data[13]&0x08 != 0 + tcp.ACK = data[13]&0x10 != 0 + tcp.URG = data[13]&0x20 != 0 + tcp.ECE = data[13]&0x40 != 0 + tcp.CWR = data[13]&0x80 != 0 + tcp.NS = data[12]&0x01 != 0 + tcp.Window = binary.BigEndian.Uint16(data[14:16]) + tcp.Checksum = binary.BigEndian.Uint16(data[16:18]) + tcp.Urgent = binary.BigEndian.Uint16(data[18:20]) + if tcp.Options == nil { + // Pre-allocate to avoid allocating a slice. + tcp.Options = tcp.opts[:0] + } else { + tcp.Options = tcp.Options[:0] + } + tcp.Padding = tcp.Padding[:0] + if tcp.DataOffset < 5 { + return fmt.Errorf("Invalid TCP data offset %d < 5", tcp.DataOffset) + } + dataStart := int(tcp.DataOffset) * 4 + if dataStart > len(data) { + df.SetTruncated() + tcp.Payload = nil + tcp.Contents = data + return errors.New("TCP data offset greater than packet length") + } + tcp.Contents = data[:dataStart] + tcp.Payload = data[dataStart:] + // From here on, data points just to the header options. + data = data[20:dataStart] +OPTIONS: + for len(data) > 0 { + tcp.Options = append(tcp.Options, TCPOption{OptionType: TCPOptionKind(data[0])}) + opt := &tcp.Options[len(tcp.Options)-1] + switch opt.OptionType { + case TCPOptionKindEndList: // End of options + opt.OptionLength = 1 + tcp.Padding = data[1:] + break OPTIONS + case TCPOptionKindNop: // 1 byte padding + opt.OptionLength = 1 + case TCPOptionKindMultipathTCP: + tcp.Multipath = true + opt.OptionLength = data[1] + opt.OptionMultipath = MPTCPSubtype(data[2] >> 4) + switch opt.OptionMultipath { + case MPTCPSubtypeMPCAPABLE: + if opt.OptionLength != OptionLenMpCapableSyn && opt.OptionLength != OptionLenMpCapableSynAck && opt.OptionLength != OptionLenMpCapableAck && opt.OptionLength != OptionLenMpCapableAckData && opt.OptionLength != OptionLenMpCapableAckDataCSum { + return fmt.Errorf("MP_CAPABLE bad option length %d", opt.OptionLength) + } + opt.OptionMPTCPMpCapable = &MPCapable{ + Version: data[2] & 0x0F, + A: data[3]&0x80 != 0, + B: data[3]&0x40 != 0, + C: data[3]&0x20 != 0, + D: data[3]&0x10 != 0, + E: data[3]&0x08 != 0, + F: data[3]&0x04 != 0, + G: data[3]&0x02 != 0, + H: data[3]&0x01 != 0, + } + if opt.OptionLength >= OptionLenMpCapableSynAck { + opt.OptionMPTCPMpCapable.SendKey = data[4:12] + } + if opt.OptionLength >= OptionLenMpCapableAck { + opt.OptionMPTCPMpCapable.ReceivKey = data[12:20] + } + if opt.OptionLength >= OptionLenMpCapableAckData { + opt.OptionMPTCPMpCapable.DataLength = binary.BigEndian.Uint16(data[20:22]) + } + if opt.OptionLength == OptionLenMpCapableAckDataCSum { + opt.OptionMPTCPMpCapable.Checksum = binary.BigEndian.Uint16(data[22:24]) + } + case MPTCPSubtypeMPJOIN: + if opt.OptionLength != OptionLenMpJoinSyn && opt.OptionLength != OptionLenMpJoinSynAck && opt.OptionLength != OptionLenMpJoinAck { + return fmt.Errorf("MP_JOIN bad option length %d", opt.OptionLength) + } + switch opt.OptionLength { + case OptionLenMpJoinSyn: + opt.OptionMPTCPMpJoin = &MPJoin{ + Backup: data[2]&0x01 != 0, + AddrID: data[3], + ReceivToken: binary.BigEndian.Uint32(data[4:8]), + SendRandNum: binary.BigEndian.Uint32(data[8:12]), + } + case OptionLenMpJoinSynAck: + opt.OptionMPTCPMpJoin = &MPJoin{ + Backup: data[2]&0x01 != 0, + AddrID: data[3], + SendHMAC: data[4:12], + SendRandNum: binary.BigEndian.Uint32(data[12:16]), + } + case OptionLenMpJoinAck: + opt.OptionMPTCPMpJoin = &MPJoin{ + SendHMAC: data[4:24], + } + } + case MPTCPSubtypeDSS: + opt.OptionMPTCPDss = &Dss{ + F: data[3]&0x10 != 0, + m: data[3]&0x08 != 0, + M: data[3]&0x04 != 0, + a: data[3]&0x02 != 0, + A: data[3]&0x01 != 0, + } + if opt.OptionLength != optionMptcpDsslen(opt.OptionMPTCPDss, false) && opt.OptionLength != optionMptcpDsslen(opt.OptionMPTCPDss, true) { + return fmt.Errorf("DSS bad option length %d", opt.OptionLength) + } + var lenOpt uint8 = 4 + if opt.OptionMPTCPDss.A { // Data ACK present + if opt.OptionMPTCPDss.a { // Data ACK is 8 octets + opt.OptionMPTCPDss.DataAck = data[lenOpt : lenOpt+OptionLenDssAck64] + lenOpt += OptionLenDssAck64 + } else { + opt.OptionMPTCPDss.DataAck = data[lenOpt : lenOpt+OptionLenDssAck] + lenOpt += OptionLenDssAck + } + } + if opt.OptionMPTCPDss.M { // Data Sequence Number (DSN), Subflow Sequence Number (SSN), Data-Level Length, and Checksum (if negotiated) present + if opt.OptionMPTCPDss.m { // Data Sequence Number is 8 octets + opt.OptionMPTCPDss.DSN = data[lenOpt : lenOpt+OptionLenDssDSN64] + lenOpt += OptionLenDssDSN64 + } else { + opt.OptionMPTCPDss.DSN = data[lenOpt : lenOpt+OptionLenDssDSN] + lenOpt += OptionLenDssDSN + } + opt.OptionMPTCPDss.SSN = binary.BigEndian.Uint32(data[lenOpt : lenOpt+OptionLenDssSSN]) + lenOpt += OptionLenDssSSN + opt.OptionMPTCPDss.DataLength = binary.BigEndian.Uint16(data[lenOpt : lenOpt+OptionLenDssDataLen]) + lenOpt += OptionLenDssDataLen + if opt.OptionLength-lenOpt == 2 { // Checksum present + opt.OptionMPTCPDss.Checksum = binary.BigEndian.Uint16(data[lenOpt : lenOpt+OptionLenDssCSum]) + } + } + case MPTCPSubtypeADDADDR: + var mptcpVer uint8 + var bitE bool + lenOpt := opt.OptionLength + + if data[2]&0x0F > 1 { + mptcpVer = MptcpVersion0 + } else { + mptcpVer = MptcpVersion1 + bitE = data[2]&0x01 != 0 + } + if !isValidOptionMptcpAddAddrlen(opt.OptionLength, mptcpVer, bitE) { + return fmt.Errorf("ADD_ADDR bad option length %d", opt.OptionLength) + } + switch mptcpVer { + case MptcpVersion0: + opt.OptionMPTCPAddAddr = &AddAddr{ + IPVer: data[2] & 0x0F, + AddrID: data[3], + } + case MptcpVersion1: + opt.OptionMPTCPAddAddr = &AddAddr{ + E: data[2]&0x01 != 0, + AddrID: data[3], + } + if !opt.OptionMPTCPAddAddr.E { + opt.OptionMPTCPAddAddr.SendHMAC = data[opt.OptionLength-8:] + lenOpt -= OptionLenAddAddrHmac + } + } + switch lenOpt { + case OptionLenAddAddrv4: + opt.OptionMPTCPAddAddr.Address = data[4:8] + case OptionLenAddAddrv4 + OptionLenAddAddrPort: + opt.OptionMPTCPAddAddr.Address = data[4:8] + opt.OptionMPTCPAddAddr.Port = binary.BigEndian.Uint16(data[8:10]) + case OptionLenAddAddrv6: + opt.OptionMPTCPAddAddr.Address = data[4:20] + case OptionLenAddAddrv6 + OptionLenAddAddrPort: + opt.OptionMPTCPAddAddr.Address = data[4:20] + opt.OptionMPTCPAddAddr.Port = binary.BigEndian.Uint16(data[20:22]) + } + case MPTCPSubtypeREMOVEADDR: + if opt.OptionLength < OptionLenRemAddr { + return fmt.Errorf("Rem_ADDR bad option length %d", opt.OptionLength) + } + var addrIds []uint8 + var n uint8 + for n = 0; n < opt.OptionLength-3; n++ { + addrIds = append(addrIds, data[3+n]) + } + opt.OptionMTCPRemAddr = &RemAddr{ + AddrIDs: addrIds, + } + case MPTCPSubtypeMPPRIO: + if opt.OptionLength != OptionLenMpPrio && opt.OptionLength != OptionLenMpPrioAddr { + return fmt.Errorf("MP_PRIO bad option length %d", opt.OptionLength) + } + opt.OptionMPTCPMpPrio = &MPPrio{ + Backup: data[2]&0x01 != 0, + } + if opt.OptionLength == OptionLenMpPrioAddr { + opt.OptionMPTCPMpPrio.AddrID = data[3] + } + case MPTCPSubtypeMPFAIL: + if opt.OptionLength != OptionLenMpFail { + return fmt.Errorf("MP_FAIL bad option length %d", opt.OptionLength) + } + opt.OptionMTCPMPFail = &MPFail{ + DSN: binary.BigEndian.Uint64(data[4:OptionLenMpFail]), + } + + case MPTCPSubtypeMPFASTCLOSE: + if opt.OptionLength != OptionLenMpFClose { + return fmt.Errorf("MP_FASTCLOSE bad option length %d", opt.OptionLength) + } + opt.OptionMTCPMPFastClose = &MPFClose{ + ReceivKey: data[4:OptionLenMpFClose], + } + case MPTCPSubtypeMPTCPRST: + if opt.OptionLength != OptionLenMpTcpRst { + return fmt.Errorf("MP_TCPRST bad option length %d", opt.OptionLength) + } + opt.OptionMPTCPMPTcpRst = &MPTcpRst{ + U: data[2]&0x08 != 0, + V: data[2]&0x04 != 0, + W: data[2]&0x02 != 0, + T: data[2]&0x01 != 0, + Reason: data[3], + } + } + default: + if len(data) < 2 { + df.SetTruncated() + return fmt.Errorf("Invalid TCP option length. Length %d less than 2", len(data)) + } + opt.OptionLength = data[1] + if opt.OptionLength < 2 { + return fmt.Errorf("Invalid TCP option length %d < 2", opt.OptionLength) + } else if int(opt.OptionLength) > len(data) { + df.SetTruncated() + return fmt.Errorf("Invalid TCP option length %d exceeds remaining %d bytes", opt.OptionLength, len(data)) + } + opt.OptionData = data[2:opt.OptionLength] + } + data = data[opt.OptionLength:] + } + return nil +} + +func optionMptcpDsslen(OptionMPTCPDss *Dss, csum bool) uint8 { + var len uint8 = 4 + if OptionMPTCPDss.A { // Data ACK + len += 4 + if OptionMPTCPDss.a { + len += 4 + } // Data ACK 8 octets + } + if OptionMPTCPDss.M { // DSN (4)+ SSN (4) + Data-Level Length (2) = 10 + len += 10 + if OptionMPTCPDss.m { + len += 4 + } // DSN 8 octets + if csum { + len += 2 + } + } + return len +} + +func isValidOptionMptcpAddAddrlen(length uint8, mptcpVer uint8, hmac bool) bool { + var ret bool + switch mptcpVer { + case MptcpVersion0: + ret = length == OptionLenAddAddrv4 || length == OptionLenAddAddrv4+OptionLenAddAddrPort || length == OptionLenAddAddrv6 || length == OptionLenAddAddrv6+OptionLenAddAddrPort + case MptcpVersion1: + if !hmac { + length -= OptionLenAddAddrHmac + } + ret = length == OptionLenAddAddrv4 || length == OptionLenAddAddrv4+OptionLenAddAddrPort || length == OptionLenAddAddrv6 || length == OptionLenAddAddrv6+OptionLenAddAddrPort + } + return ret +} + +func (t *TCP) CanDecode() gopacket.LayerClass { + return LayerTypeTCP +} + +func (t *TCP) NextLayerType() gopacket.LayerType { + lt := t.DstPort.LayerType() + if lt == gopacket.LayerTypePayload { + lt = t.SrcPort.LayerType() + } + return lt +} + +func decodeTCP(data []byte, p gopacket.PacketBuilder) error { + tcp := &TCP{} + err := tcp.DecodeFromBytes(data, p) + p.AddLayer(tcp) + p.SetTransportLayer(tcp) + if err != nil { + return err + } + if p.DecodeOptions().DecodeStreamsAsDatagrams { + return p.NextDecoder(tcp.NextLayerType()) + } else { + return p.NextDecoder(gopacket.LayerTypePayload) + } +} + +func (t *TCP) TransportFlow() gopacket.Flow { + return gopacket.NewFlow(EndpointTCPPort, t.sPort, t.dPort) +} + +// For testing only +func (t *TCP) SetInternalPortsForTesting() { + t.sPort = make([]byte, 2) + t.dPort = make([]byte, 2) + binary.BigEndian.PutUint16(t.sPort, uint16(t.SrcPort)) + binary.BigEndian.PutUint16(t.dPort, uint16(t.DstPort)) +} + +func (t *TCP) VerifyChecksum() (error, gopacket.ChecksumVerificationResult) { + bytes := append(t.Contents, t.Payload...) + + existing := t.Checksum + verification, err := t.computeChecksum(bytes, IPProtocolTCP) + if err != nil { + return err, gopacket.ChecksumVerificationResult{} + } + correct := gopacket.FoldChecksum(verification - uint32(existing)) + return nil, gopacket.ChecksumVerificationResult{ + Valid: correct == existing, + Correct: uint32(correct), + Actual: uint32(existing), + } +} diff --git a/backend/vendor/github.com/google/gopacket/layers/tcpip.go b/backend/vendor/github.com/gopacket/gopacket/layers/tcpip.go similarity index 73% rename from backend/vendor/github.com/google/gopacket/layers/tcpip.go rename to backend/vendor/github.com/gopacket/gopacket/layers/tcpip.go index 64ba51cc7..90584b32a 100644 --- a/backend/vendor/github.com/google/gopacket/layers/tcpip.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/tcpip.go @@ -11,7 +11,7 @@ import ( "errors" "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // Checksum computation for TCP/UDP. @@ -47,32 +47,11 @@ func (ip *IPv6) pseudoheaderChecksum() (csum uint32, err error) { return csum, nil } -// Calculate the TCP/IP checksum defined in rfc1071. The passed-in csum is any -// initial checksum data that's already been computed. -func tcpipChecksum(data []byte, csum uint32) uint16 { - // to handle odd lengths, we loop to length - 1, incrementing by 2, then - // handle the last byte specifically by checking against the original - // length. - length := len(data) - 1 - for i := 0; i < length; i += 2 { - // For our test packet, doing this manually is about 25% faster - // (740 ns vs. 1000ns) than doing it by calling binary.BigEndian.Uint16. - csum += uint32(data[i]) << 8 - csum += uint32(data[i+1]) - } - if len(data)%2 == 1 { - csum += uint32(data[length]) << 8 - } - for csum > 0xffff { - csum = (csum >> 16) + (csum & 0xffff) - } - return ^uint16(csum) -} - // computeChecksum computes a TCP or UDP checksum. headerAndPayload is the // serialized TCP or UDP header plus its payload, with the checksum zero'd // out. headerProtocol is the IP protocol number of the upper-layer header. -func (c *tcpipchecksum) computeChecksum(headerAndPayload []byte, headerProtocol IPProtocol) (uint16, error) { +// The returned 32bit checksum may need to be folded. +func (c *tcpipchecksum) computeChecksum(headerAndPayload []byte, headerProtocol IPProtocol) (uint32, error) { if c.pseudoheader == nil { return 0, errors.New("TCP/IP layer 4 checksum cannot be computed without network layer... call SetNetworkLayerForChecksum to set which layer to use") } @@ -84,7 +63,9 @@ func (c *tcpipchecksum) computeChecksum(headerAndPayload []byte, headerProtocol csum += uint32(headerProtocol) csum += length & 0xffff csum += length >> 16 - return tcpipChecksum(headerAndPayload, csum), nil + + csum = gopacket.ComputeChecksum(headerAndPayload, csum) + return csum, nil } // SetNetworkLayerForChecksum tells this layer which network layer is wrapping it. diff --git a/backend/vendor/github.com/google/gopacket/layers/test_creator.py b/backend/vendor/github.com/gopacket/gopacket/layers/test_creator.py similarity index 89% rename from backend/vendor/github.com/google/gopacket/layers/test_creator.py rename to backend/vendor/github.com/gopacket/gopacket/layers/test_creator.py index c92d2765a..92cba4d4c 100644 --- a/backend/vendor/github.com/google/gopacket/layers/test_creator.py +++ b/backend/vendor/github.com/gopacket/gopacket/layers/test_creator.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Copyright 2012 Google, Inc. All rights reserved. """TestCreator creates test templates from pcap files.""" @@ -9,7 +9,6 @@ import re import string import subprocess -import sys class Packet(object): @@ -30,7 +29,7 @@ def _DecodeText(cls, packet_lines): if m is None: continue for hexpart in m.group(1).split(): packet_bytes.append(base64.b16decode(hexpart.upper())) - return ''.join(packet_bytes) + return b''.join(packet_bytes) def Test(self, name, link_type): """Yields a test using this packet, as a set of lines.""" @@ -41,7 +40,8 @@ def Test(self, name, link_type): data = list(self.data) while data: linebytes, data = data[:16], data[16:] - yield ''.join(['\t'] + ['0x%02x, ' % ord(c) for c in linebytes]) + b = ''.join(["0x{:02x}, ".format(c) for c in linebytes]) + yield f'\t{b}' yield '}' yield 'func TestPacket%s(t *testing.T) {' % name yield '\tp := gopacket.NewPacket(testPacket%s, LinkType%s, gopacket.Default)' % (name, link_type) @@ -61,14 +61,14 @@ def Test(self, name, link_type): def GetTcpdumpOutput(filename): """Runs tcpdump on the given file, returning output as string.""" return subprocess.check_output( - ['tcpdump', '-XX', '-s', '0', '-n', '-r', filename]) + ['tcpdump', '-XX', '-s', '0', '-n', '-r', filename]) def TcpdumpOutputToPackets(output): """Reads a pcap file with TCPDump, yielding Packet objects.""" pdata = [] - for line in output.splitlines(): - if line[0] not in string.whitespace and pdata: + for line in output.decode('utf-8').split('\n'): + if line and line[0] not in string.whitespace and pdata: yield Packet(pdata) pdata = [] pdata.append(line) @@ -96,8 +96,9 @@ def _format_usage(self, usage, actions, groups, prefix=None): for arg in args.files: for path in glob.glob(arg): for i, packet in enumerate(TcpdumpOutputToPackets(GetTcpdumpOutput(path))): - print '\n'.join(packet.Test( - args.name % i, args.link_type)) + print('\n'.join(packet.Test( + f'{args.name}{i}', args.link_type)) + ) if __name__ == '__main__': - main() + main() diff --git a/backend/vendor/github.com/google/gopacket/layers/tls.go b/backend/vendor/github.com/gopacket/gopacket/layers/tls.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/tls.go rename to backend/vendor/github.com/gopacket/gopacket/layers/tls.go index 5a155d455..b5c041f6a 100644 --- a/backend/vendor/github.com/google/gopacket/layers/tls.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/tls.go @@ -10,7 +10,7 @@ import ( "encoding/binary" "errors" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // TLSType defines the type of data after the TLS Record diff --git a/backend/vendor/github.com/google/gopacket/layers/tls_alert.go b/backend/vendor/github.com/gopacket/gopacket/layers/tls_alert.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/tls_alert.go rename to backend/vendor/github.com/gopacket/gopacket/layers/tls_alert.go index 0c5aee021..15cc2e16d 100644 --- a/backend/vendor/github.com/google/gopacket/layers/tls_alert.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/tls_alert.go @@ -10,7 +10,7 @@ import ( "errors" "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // TLSAlertLevel defines the alert level data type diff --git a/backend/vendor/github.com/google/gopacket/layers/tls_appdata.go b/backend/vendor/github.com/gopacket/gopacket/layers/tls_appdata.go similarity index 96% rename from backend/vendor/github.com/google/gopacket/layers/tls_appdata.go rename to backend/vendor/github.com/gopacket/gopacket/layers/tls_appdata.go index dedd1d587..cc6b095b5 100644 --- a/backend/vendor/github.com/google/gopacket/layers/tls_appdata.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/tls_appdata.go @@ -9,7 +9,7 @@ package layers import ( "errors" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // TLSAppDataRecord contains all the information that each AppData Record types should have diff --git a/backend/vendor/github.com/google/gopacket/layers/tls_cipherspec.go b/backend/vendor/github.com/gopacket/gopacket/layers/tls_cipherspec.go similarity index 97% rename from backend/vendor/github.com/google/gopacket/layers/tls_cipherspec.go rename to backend/vendor/github.com/gopacket/gopacket/layers/tls_cipherspec.go index 8f3dc62ba..5f9312ab4 100644 --- a/backend/vendor/github.com/google/gopacket/layers/tls_cipherspec.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/tls_cipherspec.go @@ -9,7 +9,7 @@ package layers import ( "errors" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // TLSchangeCipherSpec defines the message value inside ChangeCipherSpec Record diff --git a/backend/vendor/github.com/gopacket/gopacket/layers/tls_handshake.go b/backend/vendor/github.com/gopacket/gopacket/layers/tls_handshake.go new file mode 100644 index 000000000..7c3a68b0e --- /dev/null +++ b/backend/vendor/github.com/gopacket/gopacket/layers/tls_handshake.go @@ -0,0 +1,208 @@ +// Copyright 2018 The GoPacket Authors. All rights reserved. +// +// Use of this source code is governed by a BSD-style license +// that can be found in the LICENSE file in the root of the source +// tree. + +package layers + +import ( + "encoding/binary" + "errors" + + "github.com/gopacket/gopacket" +) + +// TLS Extensions http://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml +type TLSExtension uint16 + +const ( + TLSExtServerName TLSExtension = 0 + TLSExtMaxFragLen TLSExtension = 1 + TLSExtClientCertURL TLSExtension = 2 + TLSExtTrustedCAKeys TLSExtension = 3 + TLSExtTruncatedHMAC TLSExtension = 4 + TLSExtStatusRequest TLSExtension = 5 + TLSExtUserMapping TLSExtension = 6 + TLSExtClientAuthz TLSExtension = 7 + TLSExtServerAuthz TLSExtension = 8 + TLSExtCertType TLSExtension = 9 + TLSExtSupportedGroups TLSExtension = 10 + TLSExtECPointFormats TLSExtension = 11 + TLSExtSRP TLSExtension = 12 + TLSExtSignatureAlgs TLSExtension = 13 + TLSxtUseSRTP TLSExtension = 14 + TLSExtHeartbeat TLSExtension = 15 + TLSExtALPN TLSExtension = 16 + TLSExtStatusRequestV2 TLSExtension = 17 + TLSExtSignedCertTS TLSExtension = 18 + TLSExtClientCertType TLSExtension = 19 + TLSExtServerCertType TLSExtension = 20 + TLSExtPadding TLSExtension = 21 + TLSExtEncryptThenMAC TLSExtension = 22 + TLSExtExtendedMasterSecret TLSExtension = 23 + TLSExtSessionTicket TLSExtension = 35 + TLSExtNPN TLSExtension = 13172 + TLSExtRenegotiationInfo TLSExtension = 65281 +) + +/*refer to https://datatracker.ietf.org/doc/html/rfc5246#appendix-A.4*/ +const ( + TLSHandshakeHelloRequest = 0 + TLSHandshakeClientHello = 1 + TLSHandshakeServerHello = 2 + TLSHandsharkHelloVerirfyRequest = 3 + TLSHandshakeCertificate = 11 + TLSHandshakeServerKeyExchange = 12 + TLSHandshakeCertificateRequest = 13 + TLSHandshakeServerHelloDone = 14 + TLSHandshakeCertificateVerify = 15 + TLSHandshakeClientKeyExchange = 16 + TLSHandshakeFinished = 20 +) + +var handShakeTypeMap = map[uint8]string{ + TLSHandshakeHelloRequest: "Hello Request", + TLSHandshakeClientHello: "Client Hello", + TLSHandshakeServerHello: "Server Hello", + TLSHandsharkHelloVerirfyRequest: "Hello Verify Request", + TLSHandshakeCertificate: "Certificate", + TLSHandshakeServerKeyExchange: "Server Key Exchange", + TLSHandshakeCertificateRequest: "Certificate Request", + TLSHandshakeServerHelloDone: "Server Hello Done", + TLSHandshakeCertificateVerify: "Certificate Verify", + TLSHandshakeClientKeyExchange: "Client Key Exchange", + TLSHandshakeFinished: "Finished", +} + +type TLSHandshakeRecordClientHello struct { + HandshakeType uint8 + Length uint32 + ProtocolVersion TLSVersion + Random []uint8 + SessionIDLength uint8 + SessionID []uint8 + CipherSuitsLength uint16 + CipherSuits []uint8 + CompressionMethodsLength uint8 + CompressionMethods []uint8 + ExtensionsLength uint16 + Extensions []uint8 + SNI []uint8 +} + +type TLSHandshakeRecordClientKeyChange struct { +} + +// TLSHandshakeRecord defines the structure of a Handshare Record +type TLSHandshakeRecord struct { + TLSRecordHeader + ClientHello TLSHandshakeRecordClientHello + ClientKeyChange TLSHandshakeRecordClientKeyChange +} + +func (t *TLSHandshakeRecordClientHello) decodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { + t.HandshakeType = data[0] + d := make([]byte, 4) + for k, v := range data[1:4] { + d[k+1] = v + } + t.Length = binary.BigEndian.Uint32(d) + t.ProtocolVersion = TLSVersion(binary.BigEndian.Uint16(data[4:6])) + t.Random = data[6:38] + t.SessionIDLength = data[38] + t.SessionID = data[39 : 39+t.SessionIDLength] + t.CipherSuitsLength = binary.BigEndian.Uint16(data[39+t.SessionIDLength : 39+t.SessionIDLength+2]) + t.CipherSuits = data[39+t.SessionIDLength+2 : (39 + uint16(t.SessionIDLength) + 2 + t.CipherSuitsLength)] + t.CompressionMethodsLength = data[(39 + uint16(t.SessionIDLength) + 2 + t.CipherSuitsLength)] + t.CompressionMethods = data[(39+uint16(t.SessionIDLength)+2+t.CipherSuitsLength)+1 : (39+uint16(t.SessionIDLength)+2+t.CipherSuitsLength)+1+uint16(t.CompressionMethodsLength)] + t.ExtensionsLength = binary.BigEndian.Uint16(data[(39+uint16(t.SessionIDLength)+2+t.CipherSuitsLength)+1+uint16(t.CompressionMethodsLength) : (39+uint16(t.SessionIDLength)+2+t.CipherSuitsLength)+1+uint16(t.CompressionMethodsLength)+2]) + + // extract extension data + data = data[((39 + uint16(t.SessionIDLength) + 2 + t.CipherSuitsLength) + 1 + uint16(t.CompressionMethodsLength) + 2) : ((39+uint16(t.SessionIDLength)+2+t.CipherSuitsLength)+1+uint16(t.CompressionMethodsLength)+2)+t.ExtensionsLength] + t.Extensions = data + for len(data) > 0 { + if len(data) < 4 { + break + } + extensionType := binary.BigEndian.Uint16(data[:2]) + length := binary.BigEndian.Uint16(data[2:4]) + if len(data) < 4+int(length) { + break + } + switch TLSExtension(extensionType) { + case TLSExtServerName: + if len(data) > 6 { + serverNameExtensionLength := binary.BigEndian.Uint16(data[4:6]) + entryType := data[6] + if serverNameExtensionLength > 0 && entryType == 0 && len(data) > 8 { // 0 = DNS hostname + hostnameLength := binary.BigEndian.Uint16(data[7:9]) + if len(data) > int(8+hostnameLength) { + t.SNI = data[9 : 9+hostnameLength] + } + } + } + } + data = data[4+length:] + } + + return nil +} +func (t *TLSHandshakeRecordClientKeyChange) decodeFromBytes(data []byte, df gopacket.DecodeFeedback) error { + /*TBD*/ + return nil +} + +/** + * Checks whether a handshake message seems encrypted and cannot be dissected. + */ +func (t TLSHandshakeRecord) isEncryptedHandshakeMessage(h TLSRecordHeader, data []byte) bool { + if h.Length < 16 { + /* + * Encrypted data has additional overhead. For TLS 1.0/1.1 with stream + * and block ciphers, there is at least a MAC which is at minimum 16 + * bytes for MD5. In TLS 1.2, AEAD adds an explicit nonce and auth tag. + * For AES-GCM/CCM the auth tag is 16 bytes. AES_CCM_8 (RFC 6655) uses 8 + * byte auth tags, but the explicit nonce is also 8 (sums up to 16). + * + * So anything smaller than 16 bytes is assumed to be plaintext. + */ + return false + } + maybeType := data[0] + d := make([]byte, 4) + for k, v := range data[1:4] { + d[k+1] = v + } + if uint32(h.Length)-binary.BigEndian.Uint32(d) != 4 { + return true + } + if _, ok := handShakeTypeMap[maybeType]; !ok { + return true + } + return false +} + +// DecodeFromBytes decodes the slice into the TLS struct. +func (t *TLSHandshakeRecord) decodeFromBytes(h TLSRecordHeader, data []byte, df gopacket.DecodeFeedback) error { + // TLS Record Header + t.ContentType = h.ContentType + t.Version = h.Version + t.Length = h.Length + + if t.isEncryptedHandshakeMessage(h, data) { + return nil + } + handshakeType := data[0] + switch handshakeType { + case TLSHandshakeClientHello: + t.ClientHello.decodeFromBytes(data, df) + case TLSHandshakeClientKeyExchange: + t.ClientKeyChange.decodeFromBytes(data, df) + default: + return errors.New("Unknown TLS handshake type") + // TODO + } + + return nil +} diff --git a/backend/vendor/github.com/google/gopacket/layers/udp.go b/backend/vendor/github.com/gopacket/gopacket/layers/udp.go similarity index 79% rename from backend/vendor/github.com/google/gopacket/layers/udp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/udp.go index 97e81c69f..ed489130e 100644 --- a/backend/vendor/github.com/google/gopacket/layers/udp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/udp.go @@ -11,7 +11,7 @@ import ( "encoding/binary" "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // UDP is the layer for UDP headers. @@ -85,11 +85,20 @@ func (u *UDP) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOpt // zero out checksum bytes bytes[6] = 0 bytes[7] = 0 + csum, err := u.computeChecksum(b.Bytes(), IPProtocolUDP) if err != nil { return err } - u.Checksum = csum + csumFolded := gopacket.FoldChecksum(csum) + + // RFC768: If the computed checksum is zero, it is transmitted as all ones (the + // equivalent in one's complement arithmetic). An all zero transmitted + // checksum value means that the transmitter generated no checksum. + if csumFolded == 0 { + csumFolded = 0xffff + } + u.Checksum = csumFolded } binary.BigEndian.PutUint16(bytes[6:], u.Checksum) return nil @@ -131,3 +140,19 @@ func (u *UDP) SetInternalPortsForTesting() { binary.BigEndian.PutUint16(u.sPort, uint16(u.SrcPort)) binary.BigEndian.PutUint16(u.dPort, uint16(u.DstPort)) } + +func (u *UDP) VerifyChecksum() (error, gopacket.ChecksumVerificationResult) { + bytes := append(u.Contents, u.Payload...) + + existing := u.Checksum + verification, err := u.computeChecksum(bytes, IPProtocolUDP) + if err != nil { + return err, gopacket.ChecksumVerificationResult{} + } + correct := gopacket.FoldChecksum(verification - uint32(existing)) + return nil, gopacket.ChecksumVerificationResult{ + Valid: existing == 0 || correct == existing, + Correct: uint32(correct), + Actual: uint32(existing), + } +} diff --git a/backend/vendor/github.com/google/gopacket/layers/udplite.go b/backend/vendor/github.com/gopacket/gopacket/layers/udplite.go similarity index 97% rename from backend/vendor/github.com/google/gopacket/layers/udplite.go rename to backend/vendor/github.com/gopacket/gopacket/layers/udplite.go index 7d84c5146..6566e17b8 100644 --- a/backend/vendor/github.com/google/gopacket/layers/udplite.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/udplite.go @@ -9,7 +9,8 @@ package layers import ( "encoding/binary" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) // UDPLite is the layer for UDP-Lite headers (rfc 3828). diff --git a/backend/vendor/github.com/google/gopacket/layers/usb.go b/backend/vendor/github.com/gopacket/gopacket/layers/usb.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/usb.go rename to backend/vendor/github.com/gopacket/gopacket/layers/usb.go index d611e0fd0..b04791d5b 100644 --- a/backend/vendor/github.com/google/gopacket/layers/usb.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/usb.go @@ -9,7 +9,8 @@ package layers import ( "encoding/binary" "errors" - "github.com/google/gopacket" + + "github.com/gopacket/gopacket" ) type USBEventType uint8 diff --git a/backend/vendor/github.com/google/gopacket/layers/vrrp.go b/backend/vendor/github.com/gopacket/gopacket/layers/vrrp.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/vrrp.go rename to backend/vendor/github.com/gopacket/gopacket/layers/vrrp.go index ffaafe6a7..b512e6f82 100644 --- a/backend/vendor/github.com/google/gopacket/layers/vrrp.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/vrrp.go @@ -11,7 +11,7 @@ import ( "errors" "net" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) /* diff --git a/backend/vendor/github.com/google/gopacket/layers/vxlan.go b/backend/vendor/github.com/gopacket/gopacket/layers/vxlan.go similarity index 99% rename from backend/vendor/github.com/google/gopacket/layers/vxlan.go rename to backend/vendor/github.com/gopacket/gopacket/layers/vxlan.go index e479cd81f..f7cdc040a 100644 --- a/backend/vendor/github.com/google/gopacket/layers/vxlan.go +++ b/backend/vendor/github.com/gopacket/gopacket/layers/vxlan.go @@ -11,7 +11,7 @@ import ( "errors" "fmt" - "github.com/google/gopacket" + "github.com/gopacket/gopacket" ) // VXLAN is specifed in RFC 7348 https://tools.ietf.org/html/rfc7348 diff --git a/backend/vendor/github.com/google/gopacket/layers_decoder.go b/backend/vendor/github.com/gopacket/gopacket/layers_decoder.go similarity index 100% rename from backend/vendor/github.com/google/gopacket/layers_decoder.go rename to backend/vendor/github.com/gopacket/gopacket/layers_decoder.go diff --git a/backend/vendor/github.com/google/gopacket/layertype.go b/backend/vendor/github.com/gopacket/gopacket/layertype.go similarity index 100% rename from backend/vendor/github.com/google/gopacket/layertype.go rename to backend/vendor/github.com/gopacket/gopacket/layertype.go diff --git a/backend/vendor/github.com/google/gopacket/packet.go b/backend/vendor/github.com/gopacket/gopacket/packet.go similarity index 79% rename from backend/vendor/github.com/google/gopacket/packet.go rename to backend/vendor/github.com/gopacket/gopacket/packet.go index 3a7c4b3d8..93563437f 100644 --- a/backend/vendor/github.com/google/gopacket/packet.go +++ b/backend/vendor/github.com/gopacket/gopacket/packet.go @@ -8,6 +8,7 @@ package gopacket import ( "bytes" + "context" "encoding/hex" "errors" "fmt" @@ -17,10 +18,23 @@ import ( "reflect" "runtime/debug" "strings" + "sync" "syscall" "time" ) +const maximumMTU = 1500 + +var ( + ErrNoLayersAdded = errors.New("NextDecoder called, but no layers added yet") + poolPackedPool = &sync.Pool{ + New: func() interface{} { + b := make([]byte, maximumMTU) + return &b + }, + } +) + // CaptureInfo provides standardized information about a packet captured off // the wire or read from a file. type CaptureInfo struct { @@ -97,6 +111,17 @@ type Packet interface { Data() []byte // Metadata returns packet metadata associated with this packet. Metadata() *PacketMetadata + + //// Functions for verifying specific aspects of the packet: + //// ------------------------------------------------------------------ + // VerifyChecksums verifies the checksums of all layers in this packet, + // that have one, and returns all found checksum mismatches. + VerifyChecksums() (error, []ChecksumMismatch) +} + +type PooledPacket interface { + Packet + Dispose() } // packet contains all the information we need to fulfill the Packet interface, @@ -182,6 +207,30 @@ func (p *packet) DecodeOptions() *DecodeOptions { return &p.decodeOptions } +func (p *packet) VerifyChecksums() (error, []ChecksumMismatch) { + mismatches := make([]ChecksumMismatch, 0) + for i, l := range p.layers { + if lwc, ok := l.(LayerWithChecksum); ok { + // Verify checksum for that layer + err, res := lwc.VerifyChecksum() + if err != nil { + return fmt.Errorf("couldn't verify checksum for layer %d (%s): %w", + i+1, l.LayerType(), err), nil + } + + if !res.Valid { + mismatches = append(mismatches, ChecksumMismatch{ + ChecksumVerificationResult: res, + Layer: l, + LayerIndex: i, + }) + } + } + } + + return nil, mismatches +} + func (p *packet) addFinalDecodeError(err error, stack []byte) { fail := &DecodeFailure{err: err, stack: stack} if p.last == nil { @@ -201,13 +250,23 @@ func (p *packet) recoverDecodeError() { } } +type pooledPacket struct { + Packet + origData *[]byte +} + +func (p pooledPacket) Dispose() { + poolPackedPool.Put(p.origData) +} + // LayerString outputs an individual layer as a string. The layer is output // in a single line, with no trailing newline. This function is specifically // designed to do the right thing for most layers... it follows the following // rules: -// * If the Layer has a String function, just output that. -// * Otherwise, output all exported fields in the layer, recursing into -// exported slices and structs. +// - If the Layer has a String function, just output that. +// - Otherwise, output all exported fields in the layer, recursing into +// exported slices and structs. +// // NOTE: This is NOT THE SAME AS fmt's "%#v". %#v will output both exported // and unexported fields... many times packet layers contain unexported stuff // that would just mess up the output of the layer, see for example the @@ -247,11 +306,12 @@ func LayerDump(l Layer) string { // LayerString for more details. // // Params: -// i - value to write out -// anonymous: if we're currently recursing an anonymous member of a struct -// writeSpace: if we've already written a value in a struct, and need to -// write a space before writing more. This happens when we write various -// anonymous values, and need to keep writing more. +// +// i - value to write out +// anonymous: if we're currently recursing an anonymous member of a struct +// writeSpace: if we've already written a value in a struct, and need to +// write a space before writing more. This happens when we write various +// anonymous values, and need to keep writing more. func layerString(v reflect.Value, anonymous bool, writeSpace bool) string { // Let String() functions take precedence. if v.CanInterface() { @@ -439,7 +499,7 @@ func (p *eagerPacket) NextDecoder(next Decoder) error { return errNilDecoder } if p.last == nil { - return errors.New("NextDecoder called, but no layers added yet") + return ErrNoLayersAdded } d := p.last.LayerPayload() if len(d) == 0 { @@ -617,6 +677,11 @@ type DecodeOptions struct { // there's any chance that those bytes WILL be changed, this will invalidate // your packets. NoCopy bool + // Pool decoding only applies if NoCopy is false. + // Instead of always allocating new memory it takes the memory from a pool. + // NewPacket then will return a PooledPacket instead of a Packet. + // As soon as you're done with the PooledPacket you should call PooledPacket.Dispose() to return it to the pool. + Pool bool // SkipDecodeRecovery skips over panic recovery during packet decoding. // Normally, when packets decode, if a panic occurs, that panic is captured // by a recover(), and a DecodeFailure layer is added to the packet detailing @@ -651,18 +716,32 @@ var DecodeStreamsAsDatagrams = DecodeOptions{DecodeStreamsAsDatagrams: true} // NewPacket creates a new Packet object from a set of bytes. The // firstLayerDecoder tells it how to interpret the first layer from the bytes, // future layers will be generated from that first layer automatically. -func NewPacket(data []byte, firstLayerDecoder Decoder, options DecodeOptions) Packet { +func NewPacket(data []byte, firstLayerDecoder Decoder, options DecodeOptions) (p Packet) { if !options.NoCopy { - dataCopy := make([]byte, len(data)) - copy(dataCopy, data) - data = dataCopy + var ( + poolMemory *[]byte + dataCopy []byte + ) + if options.Pool && len(data) <= maximumMTU { + poolMemory = poolPackedPool.Get().(*[]byte) + dataCopy = (*poolMemory)[:len(data)] + copy(dataCopy, data) + data = dataCopy + defer func() { + p = &pooledPacket{Packet: p, origData: poolMemory} + }() + } else { + dataCopy = make([]byte, len(data)) + copy(dataCopy, data) + data = dataCopy + } } if options.Lazy { - p := &lazyPacket{ + lp := &lazyPacket{ packet: packet{data: data, decodeOptions: options}, next: firstLayerDecoder, } - p.layers = p.initialLayers[:0] + lp.layers = lp.initialLayers[:0] // Crazy craziness: // If the following return statemet is REMOVED, and Lazy is FALSE, then // eager packet processing becomes 17% FASTER. No, there is no logical @@ -673,14 +752,14 @@ func NewPacket(data []byte, firstLayerDecoder Decoder, options DecodeOptions) Pa // runtime.morestack/runtime.lessstack. We'll hope the compiler gets better // over time and we get this optimization for free. Until then, we'll have // to live with slower packet processing. - return p + return lp } - p := &eagerPacket{ + ep := &eagerPacket{ packet: packet{data: data, decodeOptions: options}, } - p.layers = p.initialLayers[:0] - p.initialDecode(firstLayerDecoder) - return p + ep.layers = ep.initialLayers[:0] + ep.initialDecode(firstLayerDecoder) + return ep } // PacketDataSource is an interface for some source of packet data. Users may @@ -714,7 +793,7 @@ type concat []PacketDataSource func (c *concat) ReadPacketData() (data []byte, ci CaptureInfo, err error) { for len(*c) > 0 { data, ci, err = (*c)[0].ReadPacketData() - if err == io.EOF { + if errors.Is(err, io.EOF) { *c = (*c)[1:] continue } @@ -742,24 +821,65 @@ type ZeroCopyPacketDataSource interface { ZeroCopyReadPacketData() (data []byte, ci CaptureInfo, err error) } +type PacketSourceOption interface { + apply(ps *PacketSource) +} + +type packetSourceOptionFunc func(ps *PacketSource) + +func (f packetSourceOptionFunc) apply(ps *PacketSource) { + f(ps) +} + +func WithLazy(lazy bool) packetSourceOptionFunc { + return func(ps *PacketSource) { + ps.Lazy = lazy + } +} + +func WithNoCopy(noCopy bool) packetSourceOptionFunc { + return func(ps *PacketSource) { + ps.NoCopy = noCopy + } +} + +func WithPool(pool bool) packetSourceOptionFunc { + return func(ps *PacketSource) { + ps.Pool = pool + } +} + +func WithSkipDecodeRecovery(skipDecodeRecovery bool) packetSourceOptionFunc { + return func(ps *PacketSource) { + ps.SkipDecodeRecovery = skipDecodeRecovery + } +} + +func WithDecodeStreamsAsDatagrams(decodeStreamsAsDatagrams bool) packetSourceOptionFunc { + return func(ps *PacketSource) { + ps.DecodeStreamsAsDatagrams = decodeStreamsAsDatagrams + } +} + // PacketSource reads in packets from a PacketDataSource, decodes them, and // returns them. // // There are currently two different methods for reading packets in through // a PacketSource: // -// Reading With Packets Function +// # Reading With Packets Function // // This method is the most convenient and easiest to code, but lacks // flexibility. Packets returns a 'chan Packet', then asynchronously writes // packets into that channel. Packets uses a blocking channel, and closes // it if an io.EOF is returned by the underlying PacketDataSource. All other // PacketDataSource errors are ignored and discarded. -// for packet := range packetSource.Packets() { -// ... -// } // -// Reading With NextPacket Function +// for packet := range packetSource.Packets() { +// ... +// } +// +// # Reading With NextPacket Function // // This method is the most flexible, and exposes errors that may be // encountered by the underlying PacketDataSource. It's also the fastest @@ -767,19 +887,21 @@ type ZeroCopyPacketDataSource interface { // read/write. However, it requires the user to handle errors, most // importantly the io.EOF error in cases where packets are being read from // a file. -// for { -// packet, err := packetSource.NextPacket() -// if err == io.EOF { -// break -// } else if err != nil { -// log.Println("Error:", err) -// continue -// } -// handlePacket(packet) // Do something with each packet. -// } +// +// for { +// packet, err := packetSource.NextPacket() +// if err == io.EOF { +// break +// } else if err != nil { +// log.Println("Error:", err) +// continue +// } +// handlePacket(packet) // Do something with each packet. +// } type PacketSource struct { - source PacketDataSource - decoder Decoder + zeroCopy bool + source func() (data []byte, ci CaptureInfo, err error) + decoder Decoder // DecodeOptions is the set of options to use for decoding each piece // of packet data. This can/should be changed by the user to reflect the // way packets should be decoded. @@ -787,18 +909,38 @@ type PacketSource struct { c chan Packet } +// NewZeroCopyPacketSource creates a zero copy packet data source. +func NewZeroCopyPacketSource(source ZeroCopyPacketDataSource, decoder Decoder, opts ...PacketSourceOption) *PacketSource { + ps := &PacketSource{ + source: source.ZeroCopyReadPacketData, + decoder: decoder, + } + + for idx := range opts { + opts[idx].apply(ps) + } + + return ps +} + // NewPacketSource creates a packet data source. -func NewPacketSource(source PacketDataSource, decoder Decoder) *PacketSource { - return &PacketSource{ - source: source, +func NewPacketSource(source PacketDataSource, decoder Decoder, opts ...PacketSourceOption) *PacketSource { + ps := &PacketSource{ + source: source.ReadPacketData, decoder: decoder, } + + for idx := range opts { + opts[idx].apply(ps) + } + + return ps } // NextPacket returns the next decoded packet from the PacketSource. On error, // it returns a nil packet and a non-nil error. func (p *PacketSource) NextPacket() (Packet, error) { - data, ci, err := p.source.ReadPacketData() + data, ci, err := p.source() if err != nil { return nil, err } @@ -812,29 +954,30 @@ func (p *PacketSource) NextPacket() (Packet, error) { // packetsToChannel reads in all packets from the packet source and sends them // to the given channel. This routine terminates when a non-temporary error // is returned by NextPacket(). -func (p *PacketSource) packetsToChannel() { +func (p *PacketSource) packetsToChannel(ctx context.Context) { defer close(p.c) - for { + for ctx.Err() == nil { packet, err := p.NextPacket() if err == nil { - p.c <- packet - continue - } - - // Immediately retry for temporary network errors - if nerr, ok := err.(net.Error); ok && nerr.Temporary() { - continue + select { + case p.c <- packet: + continue + case <-ctx.Done(): + return + } } - // Immediately retry for EAGAIN - if err == syscall.EAGAIN { + // if timeout error sleep briefly and retry + var netErr net.Error + if ok := errors.As(err, &netErr); ok && netErr.Timeout() { + time.Sleep(time.Millisecond * time.Duration(5)) continue } // Immediately break for known unrecoverable errors - if err == io.EOF || err == io.ErrUnexpectedEOF || - err == io.ErrNoProgress || err == io.ErrClosedPipe || err == io.ErrShortBuffer || - err == syscall.EBADF || + if errors.Is(err, io.EOF) || errors.Is(err, io.ErrUnexpectedEOF) || + errors.Is(err, io.ErrNoProgress) || errors.Is(err, io.ErrClosedPipe) || errors.Is(err, io.ErrShortBuffer) || + errors.Is(err, syscall.EBADF) || strings.Contains(err.Error(), "use of closed file") { break } @@ -850,15 +993,37 @@ func (p *PacketSource) packetsToChannel() { // PacketDataSource returns an io.EOF error, the channel will be closed. // If any other error is encountered, it is ignored. // -// for packet := range packetSource.Packets() { -// handlePacket(packet) // Do something with each packet. -// } +// for packet := range packetSource.Packets() { +// handlePacket(packet) // Do something with each packet +// } // // If called more than once, returns the same channel. func (p *PacketSource) Packets() chan Packet { + return p.PacketsCtx(context.Background()) +} + +// PacketsCtx returns a channel of packets, allowing easy iterating over +// packets. Packets will be asynchronously read in from the underlying +// PacketDataSource and written to the returned channel. If the underlying +// PacketDataSource returns an io.EOF error, the channel will be closed. +// If any other error is encountered, it is ignored. +// The background Go routine will be canceled as soon as the given context +// returns an error either because it got canceled or it has reached its deadline. +// +// for packet := range packetSource.PacketsCtx(context.Background()) { +// handlePacket(packet) // Do something with each packet. +// } +// +// If called more than once, returns the same channel. +func (p *PacketSource) PacketsCtx(ctx context.Context) chan Packet { + if p.DecodeOptions.NoCopy && p.zeroCopy { + panic("PacketSource uses a zero copy datasource and NoCopy decoder option activated - Packets() uses a buffered channel hence packets are most likely overwritten") + } + + const defaultPacketChannelSize = 1000 if p.c == nil { - p.c = make(chan Packet, 1000) - go p.packetsToChannel() + p.c = make(chan Packet, defaultPacketChannelSize) + go p.packetsToChannel(ctx) } return p.c } diff --git a/backend/vendor/github.com/google/gopacket/parser.go b/backend/vendor/github.com/gopacket/gopacket/parser.go similarity index 87% rename from backend/vendor/github.com/google/gopacket/parser.go rename to backend/vendor/github.com/gopacket/gopacket/parser.go index 4a4676f1c..8bc6a68d4 100644 --- a/backend/vendor/github.com/google/gopacket/parser.go +++ b/backend/vendor/github.com/gopacket/gopacket/parser.go @@ -255,47 +255,48 @@ func (l *DecodingLayerParser) SetDecodingLayerContainer(dlc DecodingLayerContain // instead it overwrites the layers that already exist. // // Example usage: -// func main() { -// var eth layers.Ethernet -// var ip4 layers.IPv4 -// var ip6 layers.IPv6 -// var tcp layers.TCP -// var udp layers.UDP -// var payload gopacket.Payload -// parser := gopacket.NewDecodingLayerParser(layers.LayerTypeEthernet, ð, &ip4, &ip6, &tcp, &udp, &payload) -// var source gopacket.PacketDataSource = getMyDataSource() -// decodedLayers := make([]gopacket.LayerType, 0, 10) -// for { -// data, _, err := source.ReadPacketData() -// if err != nil { -// fmt.Println("Error reading packet data: ", err) -// continue -// } -// fmt.Println("Decoding packet") -// err = parser.DecodeLayers(data, &decodedLayers) -// for _, typ := range decodedLayers { -// fmt.Println(" Successfully decoded layer type", typ) -// switch typ { -// case layers.LayerTypeEthernet: -// fmt.Println(" Eth ", eth.SrcMAC, eth.DstMAC) -// case layers.LayerTypeIPv4: -// fmt.Println(" IP4 ", ip4.SrcIP, ip4.DstIP) -// case layers.LayerTypeIPv6: -// fmt.Println(" IP6 ", ip6.SrcIP, ip6.DstIP) -// case layers.LayerTypeTCP: -// fmt.Println(" TCP ", tcp.SrcPort, tcp.DstPort) -// case layers.LayerTypeUDP: -// fmt.Println(" UDP ", udp.SrcPort, udp.DstPort) -// } -// } -// if decodedLayers.Truncated { -// fmt.Println(" Packet has been truncated") -// } -// if err != nil { -// fmt.Println(" Error encountered:", err) -// } -// } -// } +// +// func main() { +// var eth layers.Ethernet +// var ip4 layers.IPv4 +// var ip6 layers.IPv6 +// var tcp layers.TCP +// var udp layers.UDP +// var payload gopacket.Payload +// parser := gopacket.NewDecodingLayerParser(layers.LayerTypeEthernet, ð, &ip4, &ip6, &tcp, &udp, &payload) +// var source gopacket.PacketDataSource = getMyDataSource() +// decodedLayers := make([]gopacket.LayerType, 0, 10) +// for { +// data, _, err := source.ReadPacketData() +// if err != nil { +// fmt.Println("Error reading packet data: ", err) +// continue +// } +// fmt.Println("Decoding packet") +// err = parser.DecodeLayers(data, &decodedLayers) +// for _, typ := range decodedLayers { +// fmt.Println(" Successfully decoded layer type", typ) +// switch typ { +// case layers.LayerTypeEthernet: +// fmt.Println(" Eth ", eth.SrcMAC, eth.DstMAC) +// case layers.LayerTypeIPv4: +// fmt.Println(" IP4 ", ip4.SrcIP, ip4.DstIP) +// case layers.LayerTypeIPv6: +// fmt.Println(" IP6 ", ip6.SrcIP, ip6.DstIP) +// case layers.LayerTypeTCP: +// fmt.Println(" TCP ", tcp.SrcPort, tcp.DstPort) +// case layers.LayerTypeUDP: +// fmt.Println(" UDP ", udp.SrcPort, udp.DstPort) +// } +// } +// if decodedLayers.Truncated { +// fmt.Println(" Packet has been truncated") +// } +// if err != nil { +// fmt.Println(" Error encountered:", err) +// } +// } +// } // // If DecodeLayers is unable to decode the next layer type, it will return the // error UnsupportedLayerType. diff --git a/backend/vendor/github.com/gopacket/gopacket/runtests.sh b/backend/vendor/github.com/gopacket/gopacket/runtests.sh new file mode 100644 index 000000000..61e95a4de --- /dev/null +++ b/backend/vendor/github.com/gopacket/gopacket/runtests.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +DIRS="afpacket layers pcap pcapgo tcpassembly tcpassembly/tcpreader reassembly routing ip4defrag bytediff macs routing defrag/lcmdefrag" +set -e +export CGO_ENABLED=1 +for subdir in $DIRS; do + pushd $subdir + sudo -E go test -v -count=1 . + popd +done diff --git a/backend/vendor/github.com/google/gopacket/time.go b/backend/vendor/github.com/gopacket/gopacket/time.go similarity index 100% rename from backend/vendor/github.com/google/gopacket/time.go rename to backend/vendor/github.com/gopacket/gopacket/time.go diff --git a/backend/vendor/github.com/google/gopacket/writer.go b/backend/vendor/github.com/gopacket/gopacket/writer.go similarity index 93% rename from backend/vendor/github.com/google/gopacket/writer.go rename to backend/vendor/github.com/gopacket/gopacket/writer.go index 5d303dc4a..9a463f047 100644 --- a/backend/vendor/github.com/google/gopacket/writer.go +++ b/backend/vendor/github.com/gopacket/gopacket/writer.go @@ -69,9 +69,9 @@ type SerializeOptions struct { // byte slices returned by any previous Bytes() call (the same buffer is // reused). // -// 1) Reusing a write buffer is generally much faster than creating a new one, +// 1. Reusing a write buffer is generally much faster than creating a new one, // and with the default implementation it avoids additional memory allocations. -// 2) If a byte slice from a previous Bytes() call will continue to be used, +// 2. If a byte slice from a previous Bytes() call will continue to be used, // it's better to create a new SerializeBuffer. // // The Clear method is specifically designed to minimize memory allocations for @@ -197,12 +197,13 @@ func (w *serializeBuffer) PushLayer(l LayerType) { // invalidates all slices previously returned by w.Bytes() // // Example: -// buf := gopacket.NewSerializeBuffer() -// opts := gopacket.SerializeOptions{} -// gopacket.SerializeLayers(buf, opts, a, b, c) -// firstPayload := buf.Bytes() // contains byte representation of a(b(c)) -// gopacket.SerializeLayers(buf, opts, d, e, f) -// secondPayload := buf.Bytes() // contains byte representation of d(e(f)). firstPayload is now invalidated, since the SerializeLayers call Clears buf. +// +// buf := gopacket.NewSerializeBuffer() +// opts := gopacket.SerializeOptions{} +// gopacket.SerializeLayers(buf, opts, a, b, c) +// firstPayload := buf.Bytes() // contains byte representation of a(b(c)) +// gopacket.SerializeLayers(buf, opts, d, e, f) +// secondPayload := buf.Bytes() // contains byte representation of d(e(f)). firstPayload is now invalidated, since the SerializeLayers call Clears buf. func SerializeLayers(w SerializeBuffer, opts SerializeOptions, layers ...SerializableLayer) error { w.Clear() for i := len(layers) - 1; i >= 0; i-- { diff --git a/backend/vendor/github.com/kr/pretty/.gitignore b/backend/vendor/github.com/kr/pretty/.gitignore deleted file mode 100644 index b2d47811f..000000000 --- a/backend/vendor/github.com/kr/pretty/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -[568].out -_go* -_test* -_obj -/.idea diff --git a/backend/vendor/github.com/kr/pretty/Readme b/backend/vendor/github.com/kr/pretty/Readme deleted file mode 100644 index c589fc622..000000000 --- a/backend/vendor/github.com/kr/pretty/Readme +++ /dev/null @@ -1,9 +0,0 @@ -package pretty - - import "github.com/kr/pretty" - - Package pretty provides pretty-printing for Go values. - -Documentation - - http://godoc.org/github.com/kr/pretty diff --git a/backend/vendor/github.com/kr/pretty/diff.go b/backend/vendor/github.com/kr/pretty/diff.go deleted file mode 100644 index 40a09dc64..000000000 --- a/backend/vendor/github.com/kr/pretty/diff.go +++ /dev/null @@ -1,295 +0,0 @@ -package pretty - -import ( - "fmt" - "io" - "reflect" -) - -type sbuf []string - -func (p *sbuf) Printf(format string, a ...interface{}) { - s := fmt.Sprintf(format, a...) - *p = append(*p, s) -} - -// Diff returns a slice where each element describes -// a difference between a and b. -func Diff(a, b interface{}) (desc []string) { - Pdiff((*sbuf)(&desc), a, b) - return desc -} - -// wprintfer calls Fprintf on w for each Printf call -// with a trailing newline. -type wprintfer struct{ w io.Writer } - -func (p *wprintfer) Printf(format string, a ...interface{}) { - fmt.Fprintf(p.w, format+"\n", a...) -} - -// Fdiff writes to w a description of the differences between a and b. -func Fdiff(w io.Writer, a, b interface{}) { - Pdiff(&wprintfer{w}, a, b) -} - -type Printfer interface { - Printf(format string, a ...interface{}) -} - -// Pdiff prints to p a description of the differences between a and b. -// It calls Printf once for each difference, with no trailing newline. -// The standard library log.Logger is a Printfer. -func Pdiff(p Printfer, a, b interface{}) { - d := diffPrinter{ - w: p, - aVisited: make(map[visit]visit), - bVisited: make(map[visit]visit), - } - d.diff(reflect.ValueOf(a), reflect.ValueOf(b)) -} - -type Logfer interface { - Logf(format string, a ...interface{}) -} - -// logprintfer calls Fprintf on w for each Printf call -// with a trailing newline. -type logprintfer struct{ l Logfer } - -func (p *logprintfer) Printf(format string, a ...interface{}) { - p.l.Logf(format, a...) -} - -// Ldiff prints to l a description of the differences between a and b. -// It calls Logf once for each difference, with no trailing newline. -// The standard library testing.T and testing.B are Logfers. -func Ldiff(l Logfer, a, b interface{}) { - Pdiff(&logprintfer{l}, a, b) -} - -type diffPrinter struct { - w Printfer - l string // label - - aVisited map[visit]visit - bVisited map[visit]visit -} - -func (w diffPrinter) printf(f string, a ...interface{}) { - var l string - if w.l != "" { - l = w.l + ": " - } - w.w.Printf(l+f, a...) -} - -func (w diffPrinter) diff(av, bv reflect.Value) { - if !av.IsValid() && bv.IsValid() { - w.printf("nil != %# v", formatter{v: bv, quote: true}) - return - } - if av.IsValid() && !bv.IsValid() { - w.printf("%# v != nil", formatter{v: av, quote: true}) - return - } - if !av.IsValid() && !bv.IsValid() { - return - } - - at := av.Type() - bt := bv.Type() - if at != bt { - w.printf("%v != %v", at, bt) - return - } - - if av.CanAddr() && bv.CanAddr() { - avis := visit{av.UnsafeAddr(), at} - bvis := visit{bv.UnsafeAddr(), bt} - var cycle bool - - // Have we seen this value before? - if vis, ok := w.aVisited[avis]; ok { - cycle = true - if vis != bvis { - w.printf("%# v (previously visited) != %# v", formatter{v: av, quote: true}, formatter{v: bv, quote: true}) - } - } else if _, ok := w.bVisited[bvis]; ok { - cycle = true - w.printf("%# v != %# v (previously visited)", formatter{v: av, quote: true}, formatter{v: bv, quote: true}) - } - w.aVisited[avis] = bvis - w.bVisited[bvis] = avis - if cycle { - return - } - } - - switch kind := at.Kind(); kind { - case reflect.Bool: - if a, b := av.Bool(), bv.Bool(); a != b { - w.printf("%v != %v", a, b) - } - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - if a, b := av.Int(), bv.Int(); a != b { - w.printf("%d != %d", a, b) - } - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - if a, b := av.Uint(), bv.Uint(); a != b { - w.printf("%d != %d", a, b) - } - case reflect.Float32, reflect.Float64: - if a, b := av.Float(), bv.Float(); a != b { - w.printf("%v != %v", a, b) - } - case reflect.Complex64, reflect.Complex128: - if a, b := av.Complex(), bv.Complex(); a != b { - w.printf("%v != %v", a, b) - } - case reflect.Array: - n := av.Len() - for i := 0; i < n; i++ { - w.relabel(fmt.Sprintf("[%d]", i)).diff(av.Index(i), bv.Index(i)) - } - case reflect.Chan, reflect.Func, reflect.UnsafePointer: - if a, b := av.Pointer(), bv.Pointer(); a != b { - w.printf("%#x != %#x", a, b) - } - case reflect.Interface: - w.diff(av.Elem(), bv.Elem()) - case reflect.Map: - ak, both, bk := keyDiff(av.MapKeys(), bv.MapKeys()) - for _, k := range ak { - w := w.relabel(fmt.Sprintf("[%#v]", k)) - w.printf("%q != (missing)", av.MapIndex(k)) - } - for _, k := range both { - w := w.relabel(fmt.Sprintf("[%#v]", k)) - w.diff(av.MapIndex(k), bv.MapIndex(k)) - } - for _, k := range bk { - w := w.relabel(fmt.Sprintf("[%#v]", k)) - w.printf("(missing) != %q", bv.MapIndex(k)) - } - case reflect.Ptr: - switch { - case av.IsNil() && !bv.IsNil(): - w.printf("nil != %# v", formatter{v: bv, quote: true}) - case !av.IsNil() && bv.IsNil(): - w.printf("%# v != nil", formatter{v: av, quote: true}) - case !av.IsNil() && !bv.IsNil(): - w.diff(av.Elem(), bv.Elem()) - } - case reflect.Slice: - lenA := av.Len() - lenB := bv.Len() - if lenA != lenB { - w.printf("%s[%d] != %s[%d]", av.Type(), lenA, bv.Type(), lenB) - break - } - for i := 0; i < lenA; i++ { - w.relabel(fmt.Sprintf("[%d]", i)).diff(av.Index(i), bv.Index(i)) - } - case reflect.String: - if a, b := av.String(), bv.String(); a != b { - w.printf("%q != %q", a, b) - } - case reflect.Struct: - for i := 0; i < av.NumField(); i++ { - w.relabel(at.Field(i).Name).diff(av.Field(i), bv.Field(i)) - } - default: - panic("unknown reflect Kind: " + kind.String()) - } -} - -func (d diffPrinter) relabel(name string) (d1 diffPrinter) { - d1 = d - if d.l != "" && name[0] != '[' { - d1.l += "." - } - d1.l += name - return d1 -} - -// keyEqual compares a and b for equality. -// Both a and b must be valid map keys. -func keyEqual(av, bv reflect.Value) bool { - if !av.IsValid() && !bv.IsValid() { - return true - } - if !av.IsValid() || !bv.IsValid() || av.Type() != bv.Type() { - return false - } - switch kind := av.Kind(); kind { - case reflect.Bool: - a, b := av.Bool(), bv.Bool() - return a == b - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - a, b := av.Int(), bv.Int() - return a == b - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - a, b := av.Uint(), bv.Uint() - return a == b - case reflect.Float32, reflect.Float64: - a, b := av.Float(), bv.Float() - return a == b - case reflect.Complex64, reflect.Complex128: - a, b := av.Complex(), bv.Complex() - return a == b - case reflect.Array: - for i := 0; i < av.Len(); i++ { - if !keyEqual(av.Index(i), bv.Index(i)) { - return false - } - } - return true - case reflect.Chan, reflect.UnsafePointer, reflect.Ptr: - a, b := av.Pointer(), bv.Pointer() - return a == b - case reflect.Interface: - return keyEqual(av.Elem(), bv.Elem()) - case reflect.String: - a, b := av.String(), bv.String() - return a == b - case reflect.Struct: - for i := 0; i < av.NumField(); i++ { - if !keyEqual(av.Field(i), bv.Field(i)) { - return false - } - } - return true - default: - panic("invalid map key type " + av.Type().String()) - } -} - -func keyDiff(a, b []reflect.Value) (ak, both, bk []reflect.Value) { - for _, av := range a { - inBoth := false - for _, bv := range b { - if keyEqual(av, bv) { - inBoth = true - both = append(both, av) - break - } - } - if !inBoth { - ak = append(ak, av) - } - } - for _, bv := range b { - inBoth := false - for _, av := range a { - if keyEqual(av, bv) { - inBoth = true - break - } - } - if !inBoth { - bk = append(bk, bv) - } - } - return -} diff --git a/backend/vendor/github.com/kr/pretty/formatter.go b/backend/vendor/github.com/kr/pretty/formatter.go deleted file mode 100644 index 8e6969c59..000000000 --- a/backend/vendor/github.com/kr/pretty/formatter.go +++ /dev/null @@ -1,355 +0,0 @@ -package pretty - -import ( - "fmt" - "io" - "reflect" - "strconv" - "text/tabwriter" - - "github.com/kr/text" - "github.com/rogpeppe/go-internal/fmtsort" -) - -type formatter struct { - v reflect.Value - force bool - quote bool -} - -// Formatter makes a wrapper, f, that will format x as go source with line -// breaks and tabs. Object f responds to the "%v" formatting verb when both the -// "#" and " " (space) flags are set, for example: -// -// fmt.Sprintf("%# v", Formatter(x)) -// -// If one of these two flags is not set, or any other verb is used, f will -// format x according to the usual rules of package fmt. -// In particular, if x satisfies fmt.Formatter, then x.Format will be called. -func Formatter(x interface{}) (f fmt.Formatter) { - return formatter{v: reflect.ValueOf(x), quote: true} -} - -func (fo formatter) String() string { - return fmt.Sprint(fo.v.Interface()) // unwrap it -} - -func (fo formatter) passThrough(f fmt.State, c rune) { - s := "%" - for i := 0; i < 128; i++ { - if f.Flag(i) { - s += string(rune(i)) - } - } - if w, ok := f.Width(); ok { - s += fmt.Sprintf("%d", w) - } - if p, ok := f.Precision(); ok { - s += fmt.Sprintf(".%d", p) - } - s += string(c) - fmt.Fprintf(f, s, fo.v.Interface()) -} - -func (fo formatter) Format(f fmt.State, c rune) { - if fo.force || c == 'v' && f.Flag('#') && f.Flag(' ') { - w := tabwriter.NewWriter(f, 4, 4, 1, ' ', 0) - p := &printer{tw: w, Writer: w, visited: make(map[visit]int)} - p.printValue(fo.v, true, fo.quote) - w.Flush() - return - } - fo.passThrough(f, c) -} - -type printer struct { - io.Writer - tw *tabwriter.Writer - visited map[visit]int - depth int -} - -func (p *printer) indent() *printer { - q := *p - q.tw = tabwriter.NewWriter(p.Writer, 4, 4, 1, ' ', 0) - q.Writer = text.NewIndentWriter(q.tw, []byte{'\t'}) - return &q -} - -func (p *printer) printInline(v reflect.Value, x interface{}, showType bool) { - if showType { - io.WriteString(p, v.Type().String()) - fmt.Fprintf(p, "(%#v)", x) - } else { - fmt.Fprintf(p, "%#v", x) - } -} - -// printValue must keep track of already-printed pointer values to avoid -// infinite recursion. -type visit struct { - v uintptr - typ reflect.Type -} - -func (p *printer) catchPanic(v reflect.Value, method string) { - if r := recover(); r != nil { - if v.Kind() == reflect.Ptr && v.IsNil() { - writeByte(p, '(') - io.WriteString(p, v.Type().String()) - io.WriteString(p, ")(nil)") - return - } - writeByte(p, '(') - io.WriteString(p, v.Type().String()) - io.WriteString(p, ")(PANIC=calling method ") - io.WriteString(p, strconv.Quote(method)) - io.WriteString(p, ": ") - fmt.Fprint(p, r) - writeByte(p, ')') - } -} - -func (p *printer) printValue(v reflect.Value, showType, quote bool) { - if p.depth > 10 { - io.WriteString(p, "!%v(DEPTH EXCEEDED)") - return - } - - if v.IsValid() && v.CanInterface() { - i := v.Interface() - if goStringer, ok := i.(fmt.GoStringer); ok { - defer p.catchPanic(v, "GoString") - io.WriteString(p, goStringer.GoString()) - return - } - } - - switch v.Kind() { - case reflect.Bool: - p.printInline(v, v.Bool(), showType) - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - p.printInline(v, v.Int(), showType) - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - p.printInline(v, v.Uint(), showType) - case reflect.Float32, reflect.Float64: - p.printInline(v, v.Float(), showType) - case reflect.Complex64, reflect.Complex128: - fmt.Fprintf(p, "%#v", v.Complex()) - case reflect.String: - p.fmtString(v.String(), quote) - case reflect.Map: - t := v.Type() - if showType { - io.WriteString(p, t.String()) - } - writeByte(p, '{') - if nonzero(v) { - expand := !canInline(v.Type()) - pp := p - if expand { - writeByte(p, '\n') - pp = p.indent() - } - sm := fmtsort.Sort(v) - for i := 0; i < v.Len(); i++ { - k := sm.Key[i] - mv := sm.Value[i] - pp.printValue(k, false, true) - writeByte(pp, ':') - if expand { - writeByte(pp, '\t') - } - showTypeInStruct := t.Elem().Kind() == reflect.Interface - pp.printValue(mv, showTypeInStruct, true) - if expand { - io.WriteString(pp, ",\n") - } else if i < v.Len()-1 { - io.WriteString(pp, ", ") - } - } - if expand { - pp.tw.Flush() - } - } - writeByte(p, '}') - case reflect.Struct: - t := v.Type() - if v.CanAddr() { - addr := v.UnsafeAddr() - vis := visit{addr, t} - if vd, ok := p.visited[vis]; ok && vd < p.depth { - p.fmtString(t.String()+"{(CYCLIC REFERENCE)}", false) - break // don't print v again - } - p.visited[vis] = p.depth - } - - if showType { - io.WriteString(p, t.String()) - } - writeByte(p, '{') - if nonzero(v) { - expand := !canInline(v.Type()) - pp := p - if expand { - writeByte(p, '\n') - pp = p.indent() - } - for i := 0; i < v.NumField(); i++ { - showTypeInStruct := true - if f := t.Field(i); f.Name != "" { - io.WriteString(pp, f.Name) - writeByte(pp, ':') - if expand { - writeByte(pp, '\t') - } - showTypeInStruct = labelType(f.Type) - } - pp.printValue(getField(v, i), showTypeInStruct, true) - if expand { - io.WriteString(pp, ",\n") - } else if i < v.NumField()-1 { - io.WriteString(pp, ", ") - } - } - if expand { - pp.tw.Flush() - } - } - writeByte(p, '}') - case reflect.Interface: - switch e := v.Elem(); { - case e.Kind() == reflect.Invalid: - io.WriteString(p, "nil") - case e.IsValid(): - pp := *p - pp.depth++ - pp.printValue(e, showType, true) - default: - io.WriteString(p, v.Type().String()) - io.WriteString(p, "(nil)") - } - case reflect.Array, reflect.Slice: - t := v.Type() - if showType { - io.WriteString(p, t.String()) - } - if v.Kind() == reflect.Slice && v.IsNil() && showType { - io.WriteString(p, "(nil)") - break - } - if v.Kind() == reflect.Slice && v.IsNil() { - io.WriteString(p, "nil") - break - } - writeByte(p, '{') - expand := !canInline(v.Type()) - pp := p - if expand { - writeByte(p, '\n') - pp = p.indent() - } - for i := 0; i < v.Len(); i++ { - showTypeInSlice := t.Elem().Kind() == reflect.Interface - pp.printValue(v.Index(i), showTypeInSlice, true) - if expand { - io.WriteString(pp, ",\n") - } else if i < v.Len()-1 { - io.WriteString(pp, ", ") - } - } - if expand { - pp.tw.Flush() - } - writeByte(p, '}') - case reflect.Ptr: - e := v.Elem() - if !e.IsValid() { - writeByte(p, '(') - io.WriteString(p, v.Type().String()) - io.WriteString(p, ")(nil)") - } else { - pp := *p - pp.depth++ - writeByte(pp, '&') - pp.printValue(e, true, true) - } - case reflect.Chan: - x := v.Pointer() - if showType { - writeByte(p, '(') - io.WriteString(p, v.Type().String()) - fmt.Fprintf(p, ")(%#v)", x) - } else { - fmt.Fprintf(p, "%#v", x) - } - case reflect.Func: - io.WriteString(p, v.Type().String()) - io.WriteString(p, " {...}") - case reflect.UnsafePointer: - p.printInline(v, v.Pointer(), showType) - case reflect.Invalid: - io.WriteString(p, "nil") - } -} - -func canInline(t reflect.Type) bool { - switch t.Kind() { - case reflect.Map: - return !canExpand(t.Elem()) - case reflect.Struct: - for i := 0; i < t.NumField(); i++ { - if canExpand(t.Field(i).Type) { - return false - } - } - return true - case reflect.Interface: - return false - case reflect.Array, reflect.Slice: - return !canExpand(t.Elem()) - case reflect.Ptr: - return false - case reflect.Chan, reflect.Func, reflect.UnsafePointer: - return false - } - return true -} - -func canExpand(t reflect.Type) bool { - switch t.Kind() { - case reflect.Map, reflect.Struct, - reflect.Interface, reflect.Array, reflect.Slice, - reflect.Ptr: - return true - } - return false -} - -func labelType(t reflect.Type) bool { - switch t.Kind() { - case reflect.Interface, reflect.Struct: - return true - } - return false -} - -func (p *printer) fmtString(s string, quote bool) { - if quote { - s = strconv.Quote(s) - } - io.WriteString(p, s) -} - -func writeByte(w io.Writer, b byte) { - w.Write([]byte{b}) -} - -func getField(v reflect.Value, i int) reflect.Value { - val := v.Field(i) - if val.Kind() == reflect.Interface && !val.IsNil() { - val = val.Elem() - } - return val -} diff --git a/backend/vendor/github.com/kr/pretty/pretty.go b/backend/vendor/github.com/kr/pretty/pretty.go deleted file mode 100644 index b4ca583c0..000000000 --- a/backend/vendor/github.com/kr/pretty/pretty.go +++ /dev/null @@ -1,108 +0,0 @@ -// Package pretty provides pretty-printing for Go values. This is -// useful during debugging, to avoid wrapping long output lines in -// the terminal. -// -// It provides a function, Formatter, that can be used with any -// function that accepts a format string. It also provides -// convenience wrappers for functions in packages fmt and log. -package pretty - -import ( - "fmt" - "io" - "log" - "reflect" -) - -// Errorf is a convenience wrapper for fmt.Errorf. -// -// Calling Errorf(f, x, y) is equivalent to -// fmt.Errorf(f, Formatter(x), Formatter(y)). -func Errorf(format string, a ...interface{}) error { - return fmt.Errorf(format, wrap(a, false)...) -} - -// Fprintf is a convenience wrapper for fmt.Fprintf. -// -// Calling Fprintf(w, f, x, y) is equivalent to -// fmt.Fprintf(w, f, Formatter(x), Formatter(y)). -func Fprintf(w io.Writer, format string, a ...interface{}) (n int, error error) { - return fmt.Fprintf(w, format, wrap(a, false)...) -} - -// Log is a convenience wrapper for log.Printf. -// -// Calling Log(x, y) is equivalent to -// log.Print(Formatter(x), Formatter(y)), but each operand is -// formatted with "%# v". -func Log(a ...interface{}) { - log.Print(wrap(a, true)...) -} - -// Logf is a convenience wrapper for log.Printf. -// -// Calling Logf(f, x, y) is equivalent to -// log.Printf(f, Formatter(x), Formatter(y)). -func Logf(format string, a ...interface{}) { - log.Printf(format, wrap(a, false)...) -} - -// Logln is a convenience wrapper for log.Printf. -// -// Calling Logln(x, y) is equivalent to -// log.Println(Formatter(x), Formatter(y)), but each operand is -// formatted with "%# v". -func Logln(a ...interface{}) { - log.Println(wrap(a, true)...) -} - -// Print pretty-prints its operands and writes to standard output. -// -// Calling Print(x, y) is equivalent to -// fmt.Print(Formatter(x), Formatter(y)), but each operand is -// formatted with "%# v". -func Print(a ...interface{}) (n int, errno error) { - return fmt.Print(wrap(a, true)...) -} - -// Printf is a convenience wrapper for fmt.Printf. -// -// Calling Printf(f, x, y) is equivalent to -// fmt.Printf(f, Formatter(x), Formatter(y)). -func Printf(format string, a ...interface{}) (n int, errno error) { - return fmt.Printf(format, wrap(a, false)...) -} - -// Println pretty-prints its operands and writes to standard output. -// -// Calling Println(x, y) is equivalent to -// fmt.Println(Formatter(x), Formatter(y)), but each operand is -// formatted with "%# v". -func Println(a ...interface{}) (n int, errno error) { - return fmt.Println(wrap(a, true)...) -} - -// Sprint is a convenience wrapper for fmt.Sprintf. -// -// Calling Sprint(x, y) is equivalent to -// fmt.Sprint(Formatter(x), Formatter(y)), but each operand is -// formatted with "%# v". -func Sprint(a ...interface{}) string { - return fmt.Sprint(wrap(a, true)...) -} - -// Sprintf is a convenience wrapper for fmt.Sprintf. -// -// Calling Sprintf(f, x, y) is equivalent to -// fmt.Sprintf(f, Formatter(x), Formatter(y)). -func Sprintf(format string, a ...interface{}) string { - return fmt.Sprintf(format, wrap(a, false)...) -} - -func wrap(a []interface{}, force bool) []interface{} { - w := make([]interface{}, len(a)) - for i, x := range a { - w[i] = formatter{v: reflect.ValueOf(x), force: force} - } - return w -} diff --git a/backend/vendor/github.com/kr/pretty/zero.go b/backend/vendor/github.com/kr/pretty/zero.go deleted file mode 100644 index abb5b6fc1..000000000 --- a/backend/vendor/github.com/kr/pretty/zero.go +++ /dev/null @@ -1,41 +0,0 @@ -package pretty - -import ( - "reflect" -) - -func nonzero(v reflect.Value) bool { - switch v.Kind() { - case reflect.Bool: - return v.Bool() - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - return v.Int() != 0 - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - return v.Uint() != 0 - case reflect.Float32, reflect.Float64: - return v.Float() != 0 - case reflect.Complex64, reflect.Complex128: - return v.Complex() != complex(0, 0) - case reflect.String: - return v.String() != "" - case reflect.Struct: - for i := 0; i < v.NumField(); i++ { - if nonzero(getField(v, i)) { - return true - } - } - return false - case reflect.Array: - for i := 0; i < v.Len(); i++ { - if nonzero(v.Index(i)) { - return true - } - } - return false - case reflect.Map, reflect.Interface, reflect.Slice, reflect.Ptr, reflect.Chan, reflect.Func: - return !v.IsNil() - case reflect.UnsafePointer: - return v.Pointer() != 0 - } - return true -} diff --git a/backend/vendor/github.com/kr/text/License b/backend/vendor/github.com/kr/text/License deleted file mode 100644 index 480a32805..000000000 --- a/backend/vendor/github.com/kr/text/License +++ /dev/null @@ -1,19 +0,0 @@ -Copyright 2012 Keith Rarick - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/backend/vendor/github.com/kr/text/Readme b/backend/vendor/github.com/kr/text/Readme deleted file mode 100644 index 7e6e7c068..000000000 --- a/backend/vendor/github.com/kr/text/Readme +++ /dev/null @@ -1,3 +0,0 @@ -This is a Go package for manipulating paragraphs of text. - -See http://go.pkgdoc.org/github.com/kr/text for full documentation. diff --git a/backend/vendor/github.com/kr/text/doc.go b/backend/vendor/github.com/kr/text/doc.go deleted file mode 100644 index cf4c198f9..000000000 --- a/backend/vendor/github.com/kr/text/doc.go +++ /dev/null @@ -1,3 +0,0 @@ -// Package text provides rudimentary functions for manipulating text in -// paragraphs. -package text diff --git a/backend/vendor/github.com/kr/text/indent.go b/backend/vendor/github.com/kr/text/indent.go deleted file mode 100644 index 4ebac45c0..000000000 --- a/backend/vendor/github.com/kr/text/indent.go +++ /dev/null @@ -1,74 +0,0 @@ -package text - -import ( - "io" -) - -// Indent inserts prefix at the beginning of each non-empty line of s. The -// end-of-line marker is NL. -func Indent(s, prefix string) string { - return string(IndentBytes([]byte(s), []byte(prefix))) -} - -// IndentBytes inserts prefix at the beginning of each non-empty line of b. -// The end-of-line marker is NL. -func IndentBytes(b, prefix []byte) []byte { - var res []byte - bol := true - for _, c := range b { - if bol && c != '\n' { - res = append(res, prefix...) - } - res = append(res, c) - bol = c == '\n' - } - return res -} - -// Writer indents each line of its input. -type indentWriter struct { - w io.Writer - bol bool - pre [][]byte - sel int - off int -} - -// NewIndentWriter makes a new write filter that indents the input -// lines. Each line is prefixed in order with the corresponding -// element of pre. If there are more lines than elements, the last -// element of pre is repeated for each subsequent line. -func NewIndentWriter(w io.Writer, pre ...[]byte) io.Writer { - return &indentWriter{ - w: w, - pre: pre, - bol: true, - } -} - -// The only errors returned are from the underlying indentWriter. -func (w *indentWriter) Write(p []byte) (n int, err error) { - for _, c := range p { - if w.bol { - var i int - i, err = w.w.Write(w.pre[w.sel][w.off:]) - w.off += i - if err != nil { - return n, err - } - } - _, err = w.w.Write([]byte{c}) - if err != nil { - return n, err - } - n++ - w.bol = c == '\n' - if w.bol { - w.off = 0 - if w.sel < len(w.pre)-1 { - w.sel++ - } - } - } - return n, nil -} diff --git a/backend/vendor/github.com/kr/text/wrap.go b/backend/vendor/github.com/kr/text/wrap.go deleted file mode 100644 index b09bb0373..000000000 --- a/backend/vendor/github.com/kr/text/wrap.go +++ /dev/null @@ -1,86 +0,0 @@ -package text - -import ( - "bytes" - "math" -) - -var ( - nl = []byte{'\n'} - sp = []byte{' '} -) - -const defaultPenalty = 1e5 - -// Wrap wraps s into a paragraph of lines of length lim, with minimal -// raggedness. -func Wrap(s string, lim int) string { - return string(WrapBytes([]byte(s), lim)) -} - -// WrapBytes wraps b into a paragraph of lines of length lim, with minimal -// raggedness. -func WrapBytes(b []byte, lim int) []byte { - words := bytes.Split(bytes.Replace(bytes.TrimSpace(b), nl, sp, -1), sp) - var lines [][]byte - for _, line := range WrapWords(words, 1, lim, defaultPenalty) { - lines = append(lines, bytes.Join(line, sp)) - } - return bytes.Join(lines, nl) -} - -// WrapWords is the low-level line-breaking algorithm, useful if you need more -// control over the details of the text wrapping process. For most uses, either -// Wrap or WrapBytes will be sufficient and more convenient. -// -// WrapWords splits a list of words into lines with minimal "raggedness", -// treating each byte as one unit, accounting for spc units between adjacent -// words on each line, and attempting to limit lines to lim units. Raggedness -// is the total error over all lines, where error is the square of the -// difference of the length of the line and lim. Too-long lines (which only -// happen when a single word is longer than lim units) have pen penalty units -// added to the error. -func WrapWords(words [][]byte, spc, lim, pen int) [][][]byte { - n := len(words) - - length := make([][]int, n) - for i := 0; i < n; i++ { - length[i] = make([]int, n) - length[i][i] = len(words[i]) - for j := i + 1; j < n; j++ { - length[i][j] = length[i][j-1] + spc + len(words[j]) - } - } - - nbrk := make([]int, n) - cost := make([]int, n) - for i := range cost { - cost[i] = math.MaxInt32 - } - for i := n - 1; i >= 0; i-- { - if length[i][n-1] <= lim || i == n-1 { - cost[i] = 0 - nbrk[i] = n - } else { - for j := i + 1; j < n; j++ { - d := lim - length[i][j-1] - c := d*d + cost[j] - if length[i][j-1] > lim { - c += pen // too-long lines get a worse penalty - } - if c < cost[i] { - cost[i] = c - nbrk[i] = j - } - } - } - } - - var lines [][][]byte - i := 0 - for i < n { - lines = append(lines, words[i:nbrk[i]]) - i = nbrk[i] - } - return lines -} diff --git a/backend/vendor/github.com/kr/pretty/License b/backend/vendor/github.com/mitchellh/go-wordwrap/LICENSE.md similarity index 94% rename from backend/vendor/github.com/kr/pretty/License rename to backend/vendor/github.com/mitchellh/go-wordwrap/LICENSE.md index 480a32805..229851590 100644 --- a/backend/vendor/github.com/kr/pretty/License +++ b/backend/vendor/github.com/mitchellh/go-wordwrap/LICENSE.md @@ -1,4 +1,6 @@ -Copyright 2012 Keith Rarick +The MIT License (MIT) + +Copyright (c) 2014 Mitchell Hashimoto Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/backend/vendor/github.com/mitchellh/go-wordwrap/README.md b/backend/vendor/github.com/mitchellh/go-wordwrap/README.md new file mode 100644 index 000000000..60ae31170 --- /dev/null +++ b/backend/vendor/github.com/mitchellh/go-wordwrap/README.md @@ -0,0 +1,39 @@ +# go-wordwrap + +`go-wordwrap` (Golang package: `wordwrap`) is a package for Go that +automatically wraps words into multiple lines. The primary use case for this +is in formatting CLI output, but of course word wrapping is a generally useful +thing to do. + +## Installation and Usage + +Install using `go get github.com/mitchellh/go-wordwrap`. + +Full documentation is available at +http://godoc.org/github.com/mitchellh/go-wordwrap + +Below is an example of its usage ignoring errors: + +```go +wrapped := wordwrap.WrapString("foo bar baz", 3) +fmt.Println(wrapped) +``` + +Would output: + +``` +foo +bar +baz +``` + +## Word Wrap Algorithm + +This library doesn't use any clever algorithm for word wrapping. The wrapping +is actually very naive: whenever there is whitespace or an explicit linebreak. +The goal of this library is for word wrapping CLI output, so the input is +typically pretty well controlled human language. Because of this, the naive +approach typically works just fine. + +In the future, we'd like to make the algorithm more advanced. We would do +so without breaking the API. diff --git a/backend/vendor/github.com/mitchellh/go-wordwrap/wordwrap.go b/backend/vendor/github.com/mitchellh/go-wordwrap/wordwrap.go new file mode 100644 index 000000000..f7bedda38 --- /dev/null +++ b/backend/vendor/github.com/mitchellh/go-wordwrap/wordwrap.go @@ -0,0 +1,83 @@ +package wordwrap + +import ( + "bytes" + "unicode" +) + +const nbsp = 0xA0 + +// WrapString wraps the given string within lim width in characters. +// +// Wrapping is currently naive and only happens at white-space. A future +// version of the library will implement smarter wrapping. This means that +// pathological cases can dramatically reach past the limit, such as a very +// long word. +func WrapString(s string, lim uint) string { + // Initialize a buffer with a slightly larger size to account for breaks + init := make([]byte, 0, len(s)) + buf := bytes.NewBuffer(init) + + var current uint + var wordBuf, spaceBuf bytes.Buffer + var wordBufLen, spaceBufLen uint + + for _, char := range s { + if char == '\n' { + if wordBuf.Len() == 0 { + if current+spaceBufLen > lim { + current = 0 + } else { + current += spaceBufLen + spaceBuf.WriteTo(buf) + } + spaceBuf.Reset() + spaceBufLen = 0 + } else { + current += spaceBufLen + wordBufLen + spaceBuf.WriteTo(buf) + spaceBuf.Reset() + spaceBufLen = 0 + wordBuf.WriteTo(buf) + wordBuf.Reset() + wordBufLen = 0 + } + buf.WriteRune(char) + current = 0 + } else if unicode.IsSpace(char) && char != nbsp { + if spaceBuf.Len() == 0 || wordBuf.Len() > 0 { + current += spaceBufLen + wordBufLen + spaceBuf.WriteTo(buf) + spaceBuf.Reset() + spaceBufLen = 0 + wordBuf.WriteTo(buf) + wordBuf.Reset() + wordBufLen = 0 + } + + spaceBuf.WriteRune(char) + spaceBufLen++ + } else { + wordBuf.WriteRune(char) + wordBufLen++ + + if current+wordBufLen+spaceBufLen > lim && wordBufLen < lim { + buf.WriteRune('\n') + current = 0 + spaceBuf.Reset() + spaceBufLen = 0 + } + } + } + + if wordBuf.Len() == 0 { + if current+spaceBufLen <= lim { + spaceBuf.WriteTo(buf) + } + } else { + spaceBuf.WriteTo(buf) + wordBuf.WriteTo(buf) + } + + return buf.String() +} diff --git a/backend/vendor/github.com/pmezard/go-difflib/LICENSE b/backend/vendor/github.com/pmezard/go-difflib/LICENSE deleted file mode 100644 index c67dad612..000000000 --- a/backend/vendor/github.com/pmezard/go-difflib/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2013, Patrick Mezard -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright -notice, this list of conditions and the following disclaimer in the -documentation and/or other materials provided with the distribution. - The names of its contributors may not be used to endorse or promote -products derived from this software without specific prior written -permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS -IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A -PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/backend/vendor/github.com/pmezard/go-difflib/difflib/difflib.go b/backend/vendor/github.com/pmezard/go-difflib/difflib/difflib.go deleted file mode 100644 index 003e99fad..000000000 --- a/backend/vendor/github.com/pmezard/go-difflib/difflib/difflib.go +++ /dev/null @@ -1,772 +0,0 @@ -// Package difflib is a partial port of Python difflib module. -// -// It provides tools to compare sequences of strings and generate textual diffs. -// -// The following class and functions have been ported: -// -// - SequenceMatcher -// -// - unified_diff -// -// - context_diff -// -// Getting unified diffs was the main goal of the port. Keep in mind this code -// is mostly suitable to output text differences in a human friendly way, there -// are no guarantees generated diffs are consumable by patch(1). -package difflib - -import ( - "bufio" - "bytes" - "fmt" - "io" - "strings" -) - -func min(a, b int) int { - if a < b { - return a - } - return b -} - -func max(a, b int) int { - if a > b { - return a - } - return b -} - -func calculateRatio(matches, length int) float64 { - if length > 0 { - return 2.0 * float64(matches) / float64(length) - } - return 1.0 -} - -type Match struct { - A int - B int - Size int -} - -type OpCode struct { - Tag byte - I1 int - I2 int - J1 int - J2 int -} - -// SequenceMatcher compares sequence of strings. The basic -// algorithm predates, and is a little fancier than, an algorithm -// published in the late 1980's by Ratcliff and Obershelp under the -// hyperbolic name "gestalt pattern matching". The basic idea is to find -// the longest contiguous matching subsequence that contains no "junk" -// elements (R-O doesn't address junk). The same idea is then applied -// recursively to the pieces of the sequences to the left and to the right -// of the matching subsequence. This does not yield minimal edit -// sequences, but does tend to yield matches that "look right" to people. -// -// SequenceMatcher tries to compute a "human-friendly diff" between two -// sequences. Unlike e.g. UNIX(tm) diff, the fundamental notion is the -// longest *contiguous* & junk-free matching subsequence. That's what -// catches peoples' eyes. The Windows(tm) windiff has another interesting -// notion, pairing up elements that appear uniquely in each sequence. -// That, and the method here, appear to yield more intuitive difference -// reports than does diff. This method appears to be the least vulnerable -// to synching up on blocks of "junk lines", though (like blank lines in -// ordinary text files, or maybe "

" lines in HTML files). That may be -// because this is the only method of the 3 that has a *concept* of -// "junk" . -// -// Timing: Basic R-O is cubic time worst case and quadratic time expected -// case. SequenceMatcher is quadratic time for the worst case and has -// expected-case behavior dependent in a complicated way on how many -// elements the sequences have in common; best case time is linear. -type SequenceMatcher struct { - a []string - b []string - b2j map[string][]int - IsJunk func(string) bool - autoJunk bool - bJunk map[string]struct{} - matchingBlocks []Match - fullBCount map[string]int - bPopular map[string]struct{} - opCodes []OpCode -} - -func NewMatcher(a, b []string) *SequenceMatcher { - m := SequenceMatcher{autoJunk: true} - m.SetSeqs(a, b) - return &m -} - -func NewMatcherWithJunk(a, b []string, autoJunk bool, - isJunk func(string) bool) *SequenceMatcher { - - m := SequenceMatcher{IsJunk: isJunk, autoJunk: autoJunk} - m.SetSeqs(a, b) - return &m -} - -// Set two sequences to be compared. -func (m *SequenceMatcher) SetSeqs(a, b []string) { - m.SetSeq1(a) - m.SetSeq2(b) -} - -// Set the first sequence to be compared. The second sequence to be compared is -// not changed. -// -// SequenceMatcher computes and caches detailed information about the second -// sequence, so if you want to compare one sequence S against many sequences, -// use .SetSeq2(s) once and call .SetSeq1(x) repeatedly for each of the other -// sequences. -// -// See also SetSeqs() and SetSeq2(). -func (m *SequenceMatcher) SetSeq1(a []string) { - if &a == &m.a { - return - } - m.a = a - m.matchingBlocks = nil - m.opCodes = nil -} - -// Set the second sequence to be compared. The first sequence to be compared is -// not changed. -func (m *SequenceMatcher) SetSeq2(b []string) { - if &b == &m.b { - return - } - m.b = b - m.matchingBlocks = nil - m.opCodes = nil - m.fullBCount = nil - m.chainB() -} - -func (m *SequenceMatcher) chainB() { - // Populate line -> index mapping - b2j := map[string][]int{} - for i, s := range m.b { - indices := b2j[s] - indices = append(indices, i) - b2j[s] = indices - } - - // Purge junk elements - m.bJunk = map[string]struct{}{} - if m.IsJunk != nil { - junk := m.bJunk - for s, _ := range b2j { - if m.IsJunk(s) { - junk[s] = struct{}{} - } - } - for s, _ := range junk { - delete(b2j, s) - } - } - - // Purge remaining popular elements - popular := map[string]struct{}{} - n := len(m.b) - if m.autoJunk && n >= 200 { - ntest := n/100 + 1 - for s, indices := range b2j { - if len(indices) > ntest { - popular[s] = struct{}{} - } - } - for s, _ := range popular { - delete(b2j, s) - } - } - m.bPopular = popular - m.b2j = b2j -} - -func (m *SequenceMatcher) isBJunk(s string) bool { - _, ok := m.bJunk[s] - return ok -} - -// Find longest matching block in a[alo:ahi] and b[blo:bhi]. -// -// If IsJunk is not defined: -// -// Return (i,j,k) such that a[i:i+k] is equal to b[j:j+k], where -// alo <= i <= i+k <= ahi -// blo <= j <= j+k <= bhi -// and for all (i',j',k') meeting those conditions, -// k >= k' -// i <= i' -// and if i == i', j <= j' -// -// In other words, of all maximal matching blocks, return one that -// starts earliest in a, and of all those maximal matching blocks that -// start earliest in a, return the one that starts earliest in b. -// -// If IsJunk is defined, first the longest matching block is -// determined as above, but with the additional restriction that no -// junk element appears in the block. Then that block is extended as -// far as possible by matching (only) junk elements on both sides. So -// the resulting block never matches on junk except as identical junk -// happens to be adjacent to an "interesting" match. -// -// If no blocks match, return (alo, blo, 0). -func (m *SequenceMatcher) findLongestMatch(alo, ahi, blo, bhi int) Match { - // CAUTION: stripping common prefix or suffix would be incorrect. - // E.g., - // ab - // acab - // Longest matching block is "ab", but if common prefix is - // stripped, it's "a" (tied with "b"). UNIX(tm) diff does so - // strip, so ends up claiming that ab is changed to acab by - // inserting "ca" in the middle. That's minimal but unintuitive: - // "it's obvious" that someone inserted "ac" at the front. - // Windiff ends up at the same place as diff, but by pairing up - // the unique 'b's and then matching the first two 'a's. - besti, bestj, bestsize := alo, blo, 0 - - // find longest junk-free match - // during an iteration of the loop, j2len[j] = length of longest - // junk-free match ending with a[i-1] and b[j] - j2len := map[int]int{} - for i := alo; i != ahi; i++ { - // look at all instances of a[i] in b; note that because - // b2j has no junk keys, the loop is skipped if a[i] is junk - newj2len := map[int]int{} - for _, j := range m.b2j[m.a[i]] { - // a[i] matches b[j] - if j < blo { - continue - } - if j >= bhi { - break - } - k := j2len[j-1] + 1 - newj2len[j] = k - if k > bestsize { - besti, bestj, bestsize = i-k+1, j-k+1, k - } - } - j2len = newj2len - } - - // Extend the best by non-junk elements on each end. In particular, - // "popular" non-junk elements aren't in b2j, which greatly speeds - // the inner loop above, but also means "the best" match so far - // doesn't contain any junk *or* popular non-junk elements. - for besti > alo && bestj > blo && !m.isBJunk(m.b[bestj-1]) && - m.a[besti-1] == m.b[bestj-1] { - besti, bestj, bestsize = besti-1, bestj-1, bestsize+1 - } - for besti+bestsize < ahi && bestj+bestsize < bhi && - !m.isBJunk(m.b[bestj+bestsize]) && - m.a[besti+bestsize] == m.b[bestj+bestsize] { - bestsize += 1 - } - - // Now that we have a wholly interesting match (albeit possibly - // empty!), we may as well suck up the matching junk on each - // side of it too. Can't think of a good reason not to, and it - // saves post-processing the (possibly considerable) expense of - // figuring out what to do with it. In the case of an empty - // interesting match, this is clearly the right thing to do, - // because no other kind of match is possible in the regions. - for besti > alo && bestj > blo && m.isBJunk(m.b[bestj-1]) && - m.a[besti-1] == m.b[bestj-1] { - besti, bestj, bestsize = besti-1, bestj-1, bestsize+1 - } - for besti+bestsize < ahi && bestj+bestsize < bhi && - m.isBJunk(m.b[bestj+bestsize]) && - m.a[besti+bestsize] == m.b[bestj+bestsize] { - bestsize += 1 - } - - return Match{A: besti, B: bestj, Size: bestsize} -} - -// Return list of triples describing matching subsequences. -// -// Each triple is of the form (i, j, n), and means that -// a[i:i+n] == b[j:j+n]. The triples are monotonically increasing in -// i and in j. It's also guaranteed that if (i, j, n) and (i', j', n') are -// adjacent triples in the list, and the second is not the last triple in the -// list, then i+n != i' or j+n != j'. IOW, adjacent triples never describe -// adjacent equal blocks. -// -// The last triple is a dummy, (len(a), len(b), 0), and is the only -// triple with n==0. -func (m *SequenceMatcher) GetMatchingBlocks() []Match { - if m.matchingBlocks != nil { - return m.matchingBlocks - } - - var matchBlocks func(alo, ahi, blo, bhi int, matched []Match) []Match - matchBlocks = func(alo, ahi, blo, bhi int, matched []Match) []Match { - match := m.findLongestMatch(alo, ahi, blo, bhi) - i, j, k := match.A, match.B, match.Size - if match.Size > 0 { - if alo < i && blo < j { - matched = matchBlocks(alo, i, blo, j, matched) - } - matched = append(matched, match) - if i+k < ahi && j+k < bhi { - matched = matchBlocks(i+k, ahi, j+k, bhi, matched) - } - } - return matched - } - matched := matchBlocks(0, len(m.a), 0, len(m.b), nil) - - // It's possible that we have adjacent equal blocks in the - // matching_blocks list now. - nonAdjacent := []Match{} - i1, j1, k1 := 0, 0, 0 - for _, b := range matched { - // Is this block adjacent to i1, j1, k1? - i2, j2, k2 := b.A, b.B, b.Size - if i1+k1 == i2 && j1+k1 == j2 { - // Yes, so collapse them -- this just increases the length of - // the first block by the length of the second, and the first - // block so lengthened remains the block to compare against. - k1 += k2 - } else { - // Not adjacent. Remember the first block (k1==0 means it's - // the dummy we started with), and make the second block the - // new block to compare against. - if k1 > 0 { - nonAdjacent = append(nonAdjacent, Match{i1, j1, k1}) - } - i1, j1, k1 = i2, j2, k2 - } - } - if k1 > 0 { - nonAdjacent = append(nonAdjacent, Match{i1, j1, k1}) - } - - nonAdjacent = append(nonAdjacent, Match{len(m.a), len(m.b), 0}) - m.matchingBlocks = nonAdjacent - return m.matchingBlocks -} - -// Return list of 5-tuples describing how to turn a into b. -// -// Each tuple is of the form (tag, i1, i2, j1, j2). The first tuple -// has i1 == j1 == 0, and remaining tuples have i1 == the i2 from the -// tuple preceding it, and likewise for j1 == the previous j2. -// -// The tags are characters, with these meanings: -// -// 'r' (replace): a[i1:i2] should be replaced by b[j1:j2] -// -// 'd' (delete): a[i1:i2] should be deleted, j1==j2 in this case. -// -// 'i' (insert): b[j1:j2] should be inserted at a[i1:i1], i1==i2 in this case. -// -// 'e' (equal): a[i1:i2] == b[j1:j2] -func (m *SequenceMatcher) GetOpCodes() []OpCode { - if m.opCodes != nil { - return m.opCodes - } - i, j := 0, 0 - matching := m.GetMatchingBlocks() - opCodes := make([]OpCode, 0, len(matching)) - for _, m := range matching { - // invariant: we've pumped out correct diffs to change - // a[:i] into b[:j], and the next matching block is - // a[ai:ai+size] == b[bj:bj+size]. So we need to pump - // out a diff to change a[i:ai] into b[j:bj], pump out - // the matching block, and move (i,j) beyond the match - ai, bj, size := m.A, m.B, m.Size - tag := byte(0) - if i < ai && j < bj { - tag = 'r' - } else if i < ai { - tag = 'd' - } else if j < bj { - tag = 'i' - } - if tag > 0 { - opCodes = append(opCodes, OpCode{tag, i, ai, j, bj}) - } - i, j = ai+size, bj+size - // the list of matching blocks is terminated by a - // sentinel with size 0 - if size > 0 { - opCodes = append(opCodes, OpCode{'e', ai, i, bj, j}) - } - } - m.opCodes = opCodes - return m.opCodes -} - -// Isolate change clusters by eliminating ranges with no changes. -// -// Return a generator of groups with up to n lines of context. -// Each group is in the same format as returned by GetOpCodes(). -func (m *SequenceMatcher) GetGroupedOpCodes(n int) [][]OpCode { - if n < 0 { - n = 3 - } - codes := m.GetOpCodes() - if len(codes) == 0 { - codes = []OpCode{OpCode{'e', 0, 1, 0, 1}} - } - // Fixup leading and trailing groups if they show no changes. - if codes[0].Tag == 'e' { - c := codes[0] - i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2 - codes[0] = OpCode{c.Tag, max(i1, i2-n), i2, max(j1, j2-n), j2} - } - if codes[len(codes)-1].Tag == 'e' { - c := codes[len(codes)-1] - i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2 - codes[len(codes)-1] = OpCode{c.Tag, i1, min(i2, i1+n), j1, min(j2, j1+n)} - } - nn := n + n - groups := [][]OpCode{} - group := []OpCode{} - for _, c := range codes { - i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2 - // End the current group and start a new one whenever - // there is a large range with no changes. - if c.Tag == 'e' && i2-i1 > nn { - group = append(group, OpCode{c.Tag, i1, min(i2, i1+n), - j1, min(j2, j1+n)}) - groups = append(groups, group) - group = []OpCode{} - i1, j1 = max(i1, i2-n), max(j1, j2-n) - } - group = append(group, OpCode{c.Tag, i1, i2, j1, j2}) - } - if len(group) > 0 && !(len(group) == 1 && group[0].Tag == 'e') { - groups = append(groups, group) - } - return groups -} - -// Return a measure of the sequences' similarity (float in [0,1]). -// -// Where T is the total number of elements in both sequences, and -// M is the number of matches, this is 2.0*M / T. -// Note that this is 1 if the sequences are identical, and 0 if -// they have nothing in common. -// -// .Ratio() is expensive to compute if you haven't already computed -// .GetMatchingBlocks() or .GetOpCodes(), in which case you may -// want to try .QuickRatio() or .RealQuickRation() first to get an -// upper bound. -func (m *SequenceMatcher) Ratio() float64 { - matches := 0 - for _, m := range m.GetMatchingBlocks() { - matches += m.Size - } - return calculateRatio(matches, len(m.a)+len(m.b)) -} - -// Return an upper bound on ratio() relatively quickly. -// -// This isn't defined beyond that it is an upper bound on .Ratio(), and -// is faster to compute. -func (m *SequenceMatcher) QuickRatio() float64 { - // viewing a and b as multisets, set matches to the cardinality - // of their intersection; this counts the number of matches - // without regard to order, so is clearly an upper bound - if m.fullBCount == nil { - m.fullBCount = map[string]int{} - for _, s := range m.b { - m.fullBCount[s] = m.fullBCount[s] + 1 - } - } - - // avail[x] is the number of times x appears in 'b' less the - // number of times we've seen it in 'a' so far ... kinda - avail := map[string]int{} - matches := 0 - for _, s := range m.a { - n, ok := avail[s] - if !ok { - n = m.fullBCount[s] - } - avail[s] = n - 1 - if n > 0 { - matches += 1 - } - } - return calculateRatio(matches, len(m.a)+len(m.b)) -} - -// Return an upper bound on ratio() very quickly. -// -// This isn't defined beyond that it is an upper bound on .Ratio(), and -// is faster to compute than either .Ratio() or .QuickRatio(). -func (m *SequenceMatcher) RealQuickRatio() float64 { - la, lb := len(m.a), len(m.b) - return calculateRatio(min(la, lb), la+lb) -} - -// Convert range to the "ed" format -func formatRangeUnified(start, stop int) string { - // Per the diff spec at http://www.unix.org/single_unix_specification/ - beginning := start + 1 // lines start numbering with one - length := stop - start - if length == 1 { - return fmt.Sprintf("%d", beginning) - } - if length == 0 { - beginning -= 1 // empty ranges begin at line just before the range - } - return fmt.Sprintf("%d,%d", beginning, length) -} - -// Unified diff parameters -type UnifiedDiff struct { - A []string // First sequence lines - FromFile string // First file name - FromDate string // First file time - B []string // Second sequence lines - ToFile string // Second file name - ToDate string // Second file time - Eol string // Headers end of line, defaults to LF - Context int // Number of context lines -} - -// Compare two sequences of lines; generate the delta as a unified diff. -// -// Unified diffs are a compact way of showing line changes and a few -// lines of context. The number of context lines is set by 'n' which -// defaults to three. -// -// By default, the diff control lines (those with ---, +++, or @@) are -// created with a trailing newline. This is helpful so that inputs -// created from file.readlines() result in diffs that are suitable for -// file.writelines() since both the inputs and outputs have trailing -// newlines. -// -// For inputs that do not have trailing newlines, set the lineterm -// argument to "" so that the output will be uniformly newline free. -// -// The unidiff format normally has a header for filenames and modification -// times. Any or all of these may be specified using strings for -// 'fromfile', 'tofile', 'fromfiledate', and 'tofiledate'. -// The modification times are normally expressed in the ISO 8601 format. -func WriteUnifiedDiff(writer io.Writer, diff UnifiedDiff) error { - buf := bufio.NewWriter(writer) - defer buf.Flush() - wf := func(format string, args ...interface{}) error { - _, err := buf.WriteString(fmt.Sprintf(format, args...)) - return err - } - ws := func(s string) error { - _, err := buf.WriteString(s) - return err - } - - if len(diff.Eol) == 0 { - diff.Eol = "\n" - } - - started := false - m := NewMatcher(diff.A, diff.B) - for _, g := range m.GetGroupedOpCodes(diff.Context) { - if !started { - started = true - fromDate := "" - if len(diff.FromDate) > 0 { - fromDate = "\t" + diff.FromDate - } - toDate := "" - if len(diff.ToDate) > 0 { - toDate = "\t" + diff.ToDate - } - if diff.FromFile != "" || diff.ToFile != "" { - err := wf("--- %s%s%s", diff.FromFile, fromDate, diff.Eol) - if err != nil { - return err - } - err = wf("+++ %s%s%s", diff.ToFile, toDate, diff.Eol) - if err != nil { - return err - } - } - } - first, last := g[0], g[len(g)-1] - range1 := formatRangeUnified(first.I1, last.I2) - range2 := formatRangeUnified(first.J1, last.J2) - if err := wf("@@ -%s +%s @@%s", range1, range2, diff.Eol); err != nil { - return err - } - for _, c := range g { - i1, i2, j1, j2 := c.I1, c.I2, c.J1, c.J2 - if c.Tag == 'e' { - for _, line := range diff.A[i1:i2] { - if err := ws(" " + line); err != nil { - return err - } - } - continue - } - if c.Tag == 'r' || c.Tag == 'd' { - for _, line := range diff.A[i1:i2] { - if err := ws("-" + line); err != nil { - return err - } - } - } - if c.Tag == 'r' || c.Tag == 'i' { - for _, line := range diff.B[j1:j2] { - if err := ws("+" + line); err != nil { - return err - } - } - } - } - } - return nil -} - -// Like WriteUnifiedDiff but returns the diff a string. -func GetUnifiedDiffString(diff UnifiedDiff) (string, error) { - w := &bytes.Buffer{} - err := WriteUnifiedDiff(w, diff) - return string(w.Bytes()), err -} - -// Convert range to the "ed" format. -func formatRangeContext(start, stop int) string { - // Per the diff spec at http://www.unix.org/single_unix_specification/ - beginning := start + 1 // lines start numbering with one - length := stop - start - if length == 0 { - beginning -= 1 // empty ranges begin at line just before the range - } - if length <= 1 { - return fmt.Sprintf("%d", beginning) - } - return fmt.Sprintf("%d,%d", beginning, beginning+length-1) -} - -type ContextDiff UnifiedDiff - -// Compare two sequences of lines; generate the delta as a context diff. -// -// Context diffs are a compact way of showing line changes and a few -// lines of context. The number of context lines is set by diff.Context -// which defaults to three. -// -// By default, the diff control lines (those with *** or ---) are -// created with a trailing newline. -// -// For inputs that do not have trailing newlines, set the diff.Eol -// argument to "" so that the output will be uniformly newline free. -// -// The context diff format normally has a header for filenames and -// modification times. Any or all of these may be specified using -// strings for diff.FromFile, diff.ToFile, diff.FromDate, diff.ToDate. -// The modification times are normally expressed in the ISO 8601 format. -// If not specified, the strings default to blanks. -func WriteContextDiff(writer io.Writer, diff ContextDiff) error { - buf := bufio.NewWriter(writer) - defer buf.Flush() - var diffErr error - wf := func(format string, args ...interface{}) { - _, err := buf.WriteString(fmt.Sprintf(format, args...)) - if diffErr == nil && err != nil { - diffErr = err - } - } - ws := func(s string) { - _, err := buf.WriteString(s) - if diffErr == nil && err != nil { - diffErr = err - } - } - - if len(diff.Eol) == 0 { - diff.Eol = "\n" - } - - prefix := map[byte]string{ - 'i': "+ ", - 'd': "- ", - 'r': "! ", - 'e': " ", - } - - started := false - m := NewMatcher(diff.A, diff.B) - for _, g := range m.GetGroupedOpCodes(diff.Context) { - if !started { - started = true - fromDate := "" - if len(diff.FromDate) > 0 { - fromDate = "\t" + diff.FromDate - } - toDate := "" - if len(diff.ToDate) > 0 { - toDate = "\t" + diff.ToDate - } - if diff.FromFile != "" || diff.ToFile != "" { - wf("*** %s%s%s", diff.FromFile, fromDate, diff.Eol) - wf("--- %s%s%s", diff.ToFile, toDate, diff.Eol) - } - } - - first, last := g[0], g[len(g)-1] - ws("***************" + diff.Eol) - - range1 := formatRangeContext(first.I1, last.I2) - wf("*** %s ****%s", range1, diff.Eol) - for _, c := range g { - if c.Tag == 'r' || c.Tag == 'd' { - for _, cc := range g { - if cc.Tag == 'i' { - continue - } - for _, line := range diff.A[cc.I1:cc.I2] { - ws(prefix[cc.Tag] + line) - } - } - break - } - } - - range2 := formatRangeContext(first.J1, last.J2) - wf("--- %s ----%s", range2, diff.Eol) - for _, c := range g { - if c.Tag == 'r' || c.Tag == 'i' { - for _, cc := range g { - if cc.Tag == 'd' { - continue - } - for _, line := range diff.B[cc.J1:cc.J2] { - ws(prefix[cc.Tag] + line) - } - } - break - } - } - } - return diffErr -} - -// Like WriteContextDiff but returns the diff a string. -func GetContextDiffString(diff ContextDiff) (string, error) { - w := &bytes.Buffer{} - err := WriteContextDiff(w, diff) - return string(w.Bytes()), err -} - -// Split a string on "\n" while preserving them. The output can be used -// as input for UnifiedDiff and ContextDiff structures. -func SplitLines(s string) []string { - lines := strings.SplitAfter(s, "\n") - lines[len(lines)-1] += "\n" - return lines -} diff --git a/backend/vendor/github.com/rogpeppe/go-internal/LICENSE b/backend/vendor/github.com/rogpeppe/go-internal/LICENSE deleted file mode 100644 index 49ea0f928..000000000 --- a/backend/vendor/github.com/rogpeppe/go-internal/LICENSE +++ /dev/null @@ -1,27 +0,0 @@ -Copyright (c) 2018 The Go Authors. All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are -met: - - * Redistributions of source code must retain the above copyright -notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above -copyright notice, this list of conditions and the following disclaimer -in the documentation and/or other materials provided with the -distribution. - * Neither the name of Google Inc. nor the names of its -contributors may be used to endorse or promote products derived from -this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/backend/vendor/github.com/rogpeppe/go-internal/fmtsort/mapelem.go b/backend/vendor/github.com/rogpeppe/go-internal/fmtsort/mapelem.go deleted file mode 100644 index 98e4e38f4..000000000 --- a/backend/vendor/github.com/rogpeppe/go-internal/fmtsort/mapelem.go +++ /dev/null @@ -1,20 +0,0 @@ -package fmtsort - -import "reflect" - -const brokenNaNs = false - -func mapElems(mapValue reflect.Value) ([]reflect.Value, []reflect.Value) { - // Note: this code is arranged to not panic even in the presence - // of a concurrent map update. The runtime is responsible for - // yelling loudly if that happens. See issue 33275. - n := mapValue.Len() - key := make([]reflect.Value, 0, n) - value := make([]reflect.Value, 0, n) - iter := mapValue.MapRange() - for iter.Next() { - key = append(key, iter.Key()) - value = append(value, iter.Value()) - } - return key, value -} diff --git a/backend/vendor/github.com/rogpeppe/go-internal/fmtsort/sort.go b/backend/vendor/github.com/rogpeppe/go-internal/fmtsort/sort.go deleted file mode 100644 index 7f5185417..000000000 --- a/backend/vendor/github.com/rogpeppe/go-internal/fmtsort/sort.go +++ /dev/null @@ -1,209 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package fmtsort provides a general stable ordering mechanism -// for maps, on behalf of the fmt and text/template packages. -// It is not guaranteed to be efficient and works only for types -// that are valid map keys. -package fmtsort - -import ( - "reflect" - "sort" -) - -// Note: Throughout this package we avoid calling reflect.Value.Interface as -// it is not always legal to do so and it's easier to avoid the issue than to face it. - -// SortedMap represents a map's keys and values. The keys and values are -// aligned in index order: Value[i] is the value in the map corresponding to Key[i]. -type SortedMap struct { - Key []reflect.Value - Value []reflect.Value -} - -func (o *SortedMap) Len() int { return len(o.Key) } -func (o *SortedMap) Less(i, j int) bool { return compare(o.Key[i], o.Key[j]) < 0 } -func (o *SortedMap) Swap(i, j int) { - o.Key[i], o.Key[j] = o.Key[j], o.Key[i] - o.Value[i], o.Value[j] = o.Value[j], o.Value[i] -} - -// Sort accepts a map and returns a SortedMap that has the same keys and -// values but in a stable sorted order according to the keys, modulo issues -// raised by unorderable key values such as NaNs. -// -// The ordering rules are more general than with Go's < operator: -// -// - when applicable, nil compares low -// - ints, floats, and strings order by < -// - NaN compares less than non-NaN floats -// - bool compares false before true -// - complex compares real, then imag -// - pointers compare by machine address -// - channel values compare by machine address -// - structs compare each field in turn -// - arrays compare each element in turn. -// Otherwise identical arrays compare by length. -// - interface values compare first by reflect.Type describing the concrete type -// and then by concrete value as described in the previous rules. -func Sort(mapValue reflect.Value) *SortedMap { - if mapValue.Type().Kind() != reflect.Map { - return nil - } - key, value := mapElems(mapValue) - sorted := &SortedMap{ - Key: key, - Value: value, - } - sort.Stable(sorted) - return sorted -} - -// compare compares two values of the same type. It returns -1, 0, 1 -// according to whether a > b (1), a == b (0), or a < b (-1). -// If the types differ, it returns -1. -// See the comment on Sort for the comparison rules. -func compare(aVal, bVal reflect.Value) int { - aType, bType := aVal.Type(), bVal.Type() - if aType != bType { - return -1 // No good answer possible, but don't return 0: they're not equal. - } - switch aVal.Kind() { - case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: - a, b := aVal.Int(), bVal.Int() - switch { - case a < b: - return -1 - case a > b: - return 1 - default: - return 0 - } - case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: - a, b := aVal.Uint(), bVal.Uint() - switch { - case a < b: - return -1 - case a > b: - return 1 - default: - return 0 - } - case reflect.String: - a, b := aVal.String(), bVal.String() - switch { - case a < b: - return -1 - case a > b: - return 1 - default: - return 0 - } - case reflect.Float32, reflect.Float64: - return floatCompare(aVal.Float(), bVal.Float()) - case reflect.Complex64, reflect.Complex128: - a, b := aVal.Complex(), bVal.Complex() - if c := floatCompare(real(a), real(b)); c != 0 { - return c - } - return floatCompare(imag(a), imag(b)) - case reflect.Bool: - a, b := aVal.Bool(), bVal.Bool() - switch { - case a == b: - return 0 - case a: - return 1 - default: - return -1 - } - case reflect.Ptr: - a, b := aVal.Pointer(), bVal.Pointer() - switch { - case a < b: - return -1 - case a > b: - return 1 - default: - return 0 - } - case reflect.Chan: - if c, ok := nilCompare(aVal, bVal); ok { - return c - } - ap, bp := aVal.Pointer(), bVal.Pointer() - switch { - case ap < bp: - return -1 - case ap > bp: - return 1 - default: - return 0 - } - case reflect.Struct: - for i := 0; i < aVal.NumField(); i++ { - if c := compare(aVal.Field(i), bVal.Field(i)); c != 0 { - return c - } - } - return 0 - case reflect.Array: - for i := 0; i < aVal.Len(); i++ { - if c := compare(aVal.Index(i), bVal.Index(i)); c != 0 { - return c - } - } - return 0 - case reflect.Interface: - if c, ok := nilCompare(aVal, bVal); ok { - return c - } - c := compare(reflect.ValueOf(aVal.Elem().Type()), reflect.ValueOf(bVal.Elem().Type())) - if c != 0 { - return c - } - return compare(aVal.Elem(), bVal.Elem()) - default: - // Certain types cannot appear as keys (maps, funcs, slices), but be explicit. - panic("bad type in compare: " + aType.String()) - } -} - -// nilCompare checks whether either value is nil. If not, the boolean is false. -// If either value is nil, the boolean is true and the integer is the comparison -// value. The comparison is defined to be 0 if both are nil, otherwise the one -// nil value compares low. Both arguments must represent a chan, func, -// interface, map, pointer, or slice. -func nilCompare(aVal, bVal reflect.Value) (int, bool) { - if aVal.IsNil() { - if bVal.IsNil() { - return 0, true - } - return -1, true - } - if bVal.IsNil() { - return 1, true - } - return 0, false -} - -// floatCompare compares two floating-point values. NaNs compare low. -func floatCompare(a, b float64) int { - switch { - case isNaN(a): - return -1 // No good answer if b is a NaN so don't bother checking. - case isNaN(b): - return 1 - case a < b: - return -1 - case a > b: - return 1 - } - return 0 -} - -func isNaN(a float64) bool { - return a != a -} diff --git a/backend/vendor/golang.org/x/exp/constraints/constraints.go b/backend/vendor/golang.org/x/exp/constraints/constraints.go deleted file mode 100644 index a9392af7c..000000000 --- a/backend/vendor/golang.org/x/exp/constraints/constraints.go +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package constraints defines a set of useful constraints to be used -// with type parameters. -package constraints - -// Signed is a constraint that permits any signed integer type. -// If future releases of Go add new predeclared signed integer types, -// this constraint will be modified to include them. -type Signed interface { - ~int | ~int8 | ~int16 | ~int32 | ~int64 -} - -// Unsigned is a constraint that permits any unsigned integer type. -// If future releases of Go add new predeclared unsigned integer types, -// this constraint will be modified to include them. -type Unsigned interface { - ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr -} - -// Integer is a constraint that permits any integer type. -// If future releases of Go add new predeclared integer types, -// this constraint will be modified to include them. -type Integer interface { - Signed | Unsigned -} - -// Float is a constraint that permits any floating-point type. -// If future releases of Go add new predeclared floating-point types, -// this constraint will be modified to include them. -type Float interface { - ~float32 | ~float64 -} - -// Complex is a constraint that permits any complex numeric type. -// If future releases of Go add new predeclared complex numeric types, -// this constraint will be modified to include them. -type Complex interface { - ~complex64 | ~complex128 -} - -// Ordered is a constraint that permits any ordered type: any type -// that supports the operators < <= >= >. -// If future releases of Go add new ordered types, -// this constraint will be modified to include them. -// -// This type is redundant since Go 1.21 introduced [cmp.Ordered]. -type Ordered interface { - Integer | Float | ~string -} diff --git a/backend/vendor/golang.org/x/exp/maps/maps.go b/backend/vendor/golang.org/x/exp/maps/maps.go deleted file mode 100644 index c25939b92..000000000 --- a/backend/vendor/golang.org/x/exp/maps/maps.go +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// Package maps defines various functions useful with maps of any type. -package maps - -import "maps" - -// TODO(adonovan): when https://go.dev/issue/32816 is accepted, all of -// these functions except Keys and Values should be annotated -// (provisionally with "//go:fix inline") so that tools can safely and -// automatically replace calls to exp/maps with calls to std maps by -// inlining them. - -// Keys returns the keys of the map m. -// The keys will be in an indeterminate order. -func Keys[M ~map[K]V, K comparable, V any](m M) []K { - // The simplest true equivalent using std is: - // return slices.AppendSeq(make([]K, 0, len(m)), maps.Keys(m)). - - r := make([]K, 0, len(m)) - for k := range m { - r = append(r, k) - } - return r -} - -// Values returns the values of the map m. -// The values will be in an indeterminate order. -func Values[M ~map[K]V, K comparable, V any](m M) []V { - // The simplest true equivalent using std is: - // return slices.AppendSeq(make([]V, 0, len(m)), maps.Values(m)). - - r := make([]V, 0, len(m)) - for _, v := range m { - r = append(r, v) - } - return r -} - -// Equal reports whether two maps contain the same key/value pairs. -// Values are compared using ==. -func Equal[M1, M2 ~map[K]V, K, V comparable](m1 M1, m2 M2) bool { - return maps.Equal(m1, m2) -} - -// EqualFunc is like Equal, but compares values using eq. -// Keys are still compared with ==. -func EqualFunc[M1 ~map[K]V1, M2 ~map[K]V2, K comparable, V1, V2 any](m1 M1, m2 M2, eq func(V1, V2) bool) bool { - return maps.EqualFunc(m1, m2, eq) -} - -// Clear removes all entries from m, leaving it empty. -func Clear[M ~map[K]V, K comparable, V any](m M) { - clear(m) -} - -// Clone returns a copy of m. This is a shallow clone: -// the new keys and values are set using ordinary assignment. -func Clone[M ~map[K]V, K comparable, V any](m M) M { - return maps.Clone(m) -} - -// Copy copies all key/value pairs in src adding them to dst. -// When a key in src is already present in dst, -// the value in dst will be overwritten by the value associated -// with the key in src. -func Copy[M1 ~map[K]V, M2 ~map[K]V, K comparable, V any](dst M1, src M2) { - maps.Copy(dst, src) -} - -// DeleteFunc deletes any key/value pairs from m for which del returns true. -func DeleteFunc[M ~map[K]V, K comparable, V any](m M, del func(K, V) bool) { - maps.DeleteFunc(m, del) -} diff --git a/backend/vendor/golang.org/x/net/http2/http2.go b/backend/vendor/golang.org/x/net/http2/http2.go index c7601c909..6c18ea230 100644 --- a/backend/vendor/golang.org/x/net/http2/http2.go +++ b/backend/vendor/golang.org/x/net/http2/http2.go @@ -34,11 +34,19 @@ import ( ) var ( - VerboseLogs bool - logFrameWrites bool - logFrameReads bool - inTests bool - disableExtendedConnectProtocol bool + VerboseLogs bool + logFrameWrites bool + logFrameReads bool + inTests bool + + // Enabling extended CONNECT by causes browsers to attempt to use + // WebSockets-over-HTTP/2. This results in problems when the server's websocket + // package doesn't support extended CONNECT. + // + // Disable extended CONNECT by default for now. + // + // Issue #71128. + disableExtendedConnectProtocol = true ) func init() { @@ -51,8 +59,8 @@ func init() { logFrameWrites = true logFrameReads = true } - if strings.Contains(e, "http2xconnect=0") { - disableExtendedConnectProtocol = true + if strings.Contains(e, "http2xconnect=1") { + disableExtendedConnectProtocol = false } } @@ -407,23 +415,6 @@ func (s *sorter) SortStrings(ss []string) { s.v = save } -// validPseudoPath reports whether v is a valid :path pseudo-header -// value. It must be either: -// -// - a non-empty string starting with '/' -// - the string '*', for OPTIONS requests. -// -// For now this is only used a quick check for deciding when to clean -// up Opaque URLs before sending requests from the Transport. -// See golang.org/issue/16847 -// -// We used to enforce that the path also didn't start with "//", but -// Google's GFE accepts such paths and Chrome sends them, so ignore -// that part of the spec. See golang.org/issue/19103. -func validPseudoPath(v string) bool { - return (len(v) > 0 && v[0] == '/') || v == "*" -} - // incomparable is a zero-width, non-comparable type. Adding it to a struct // makes that struct also non-comparable, and generally doesn't add // any size (as long as it's first). diff --git a/backend/vendor/golang.org/x/net/http2/server.go b/backend/vendor/golang.org/x/net/http2/server.go index b55547aec..7434b8784 100644 --- a/backend/vendor/golang.org/x/net/http2/server.go +++ b/backend/vendor/golang.org/x/net/http2/server.go @@ -50,6 +50,7 @@ import ( "golang.org/x/net/http/httpguts" "golang.org/x/net/http2/hpack" + "golang.org/x/net/internal/httpcommon" ) const ( @@ -812,8 +813,7 @@ const maxCachedCanonicalHeadersKeysSize = 2048 func (sc *serverConn) canonicalHeader(v string) string { sc.serveG.check() - buildCommonHeaderMapsOnce() - cv, ok := commonCanonHeader[v] + cv, ok := httpcommon.CachedCanonicalHeader(v) if ok { return cv } diff --git a/backend/vendor/golang.org/x/net/http2/transport.go b/backend/vendor/golang.org/x/net/http2/transport.go index b2e2ed337..f2c166b61 100644 --- a/backend/vendor/golang.org/x/net/http2/transport.go +++ b/backend/vendor/golang.org/x/net/http2/transport.go @@ -25,7 +25,6 @@ import ( "net/http" "net/http/httptrace" "net/textproto" - "sort" "strconv" "strings" "sync" @@ -35,6 +34,7 @@ import ( "golang.org/x/net/http/httpguts" "golang.org/x/net/http2/hpack" "golang.org/x/net/idna" + "golang.org/x/net/internal/httpcommon" ) const ( @@ -1275,23 +1275,6 @@ func (cc *ClientConn) closeForLostPing() { // exported. At least they'll be DeepEqual for h1-vs-h2 comparisons tests. var errRequestCanceled = errors.New("net/http: request canceled") -func commaSeparatedTrailers(req *http.Request) (string, error) { - keys := make([]string, 0, len(req.Trailer)) - for k := range req.Trailer { - k = canonicalHeader(k) - switch k { - case "Transfer-Encoding", "Trailer", "Content-Length": - return "", fmt.Errorf("invalid Trailer key %q", k) - } - keys = append(keys, k) - } - if len(keys) > 0 { - sort.Strings(keys) - return strings.Join(keys, ","), nil - } - return "", nil -} - func (cc *ClientConn) responseHeaderTimeout() time.Duration { if cc.t.t1 != nil { return cc.t.t1.ResponseHeaderTimeout @@ -1303,35 +1286,6 @@ func (cc *ClientConn) responseHeaderTimeout() time.Duration { return 0 } -// checkConnHeaders checks whether req has any invalid connection-level headers. -// per RFC 7540 section 8.1.2.2: Connection-Specific Header Fields. -// Certain headers are special-cased as okay but not transmitted later. -func checkConnHeaders(req *http.Request) error { - if v := req.Header.Get("Upgrade"); v != "" { - return fmt.Errorf("http2: invalid Upgrade request header: %q", req.Header["Upgrade"]) - } - if vv := req.Header["Transfer-Encoding"]; len(vv) > 0 && (len(vv) > 1 || vv[0] != "" && vv[0] != "chunked") { - return fmt.Errorf("http2: invalid Transfer-Encoding request header: %q", vv) - } - if vv := req.Header["Connection"]; len(vv) > 0 && (len(vv) > 1 || vv[0] != "" && !asciiEqualFold(vv[0], "close") && !asciiEqualFold(vv[0], "keep-alive")) { - return fmt.Errorf("http2: invalid Connection request header: %q", vv) - } - return nil -} - -// actualContentLength returns a sanitized version of -// req.ContentLength, where 0 actually means zero (not unknown) and -1 -// means unknown. -func actualContentLength(req *http.Request) int64 { - if req.Body == nil || req.Body == http.NoBody { - return 0 - } - if req.ContentLength != 0 { - return req.ContentLength - } - return -1 -} - func (cc *ClientConn) decrStreamReservations() { cc.mu.Lock() defer cc.mu.Unlock() @@ -1356,7 +1310,7 @@ func (cc *ClientConn) roundTrip(req *http.Request, streamf func(*clientStream)) reqCancel: req.Cancel, isHead: req.Method == "HEAD", reqBody: req.Body, - reqBodyContentLength: actualContentLength(req), + reqBodyContentLength: httpcommon.ActualContentLength(req), trace: httptrace.ContextClientTrace(ctx), peerClosed: make(chan struct{}), abort: make(chan struct{}), @@ -1364,25 +1318,7 @@ func (cc *ClientConn) roundTrip(req *http.Request, streamf func(*clientStream)) donec: make(chan struct{}), } - // TODO(bradfitz): this is a copy of the logic in net/http. Unify somewhere? - if !cc.t.disableCompression() && - req.Header.Get("Accept-Encoding") == "" && - req.Header.Get("Range") == "" && - !cs.isHead { - // Request gzip only, not deflate. Deflate is ambiguous and - // not as universally supported anyway. - // See: https://zlib.net/zlib_faq.html#faq39 - // - // Note that we don't request this for HEAD requests, - // due to a bug in nginx: - // http://trac.nginx.org/nginx/ticket/358 - // https://golang.org/issue/5522 - // - // We don't request gzip if the request is for a range, since - // auto-decoding a portion of a gzipped document will just fail - // anyway. See https://golang.org/issue/8923 - cs.requestedGzip = true - } + cs.requestedGzip = httpcommon.IsRequestGzip(req, cc.t.disableCompression()) go cs.doRequest(req, streamf) @@ -1413,7 +1349,7 @@ func (cc *ClientConn) roundTrip(req *http.Request, streamf func(*clientStream)) } res.Request = req res.TLS = cc.tlsState - if res.Body == noBody && actualContentLength(req) == 0 { + if res.Body == noBody && httpcommon.ActualContentLength(req) == 0 { // If there isn't a request or response body still being // written, then wait for the stream to be closed before // RoundTrip returns. @@ -1496,10 +1432,6 @@ func (cs *clientStream) writeRequest(req *http.Request, streamf func(*clientStre cc := cs.cc ctx := cs.ctx - if err := checkConnHeaders(req); err != nil { - return err - } - // wait for setting frames to be received, a server can change this value later, // but we just wait for the first settings frame var isExtendedConnect bool @@ -1663,20 +1595,22 @@ func (cs *clientStream) encodeAndWriteHeaders(req *http.Request) error { // we send: HEADERS{1}, CONTINUATION{0,} + DATA{0,} (DATA is // sent by writeRequestBody below, along with any Trailers, // again in form HEADERS{1}, CONTINUATION{0,}) - trailers, err := commaSeparatedTrailers(req) - if err != nil { - return err - } - hasTrailers := trailers != "" - contentLen := actualContentLength(req) - hasBody := contentLen != 0 - hdrs, err := cc.encodeHeaders(req, cs.requestedGzip, trailers, contentLen) + cc.hbuf.Reset() + res, err := httpcommon.EncodeHeaders(httpcommon.EncodeHeadersParam{ + Request: req, + AddGzipHeader: cs.requestedGzip, + PeerMaxHeaderListSize: cc.peerMaxHeaderListSize, + DefaultUserAgent: defaultUserAgent, + }, func(name, value string) { + cc.writeHeader(name, value) + }) if err != nil { - return err + return fmt.Errorf("http2: %w", err) } + hdrs := cc.hbuf.Bytes() // Write the request. - endStream := !hasBody && !hasTrailers + endStream := !res.HasBody && !res.HasTrailers cs.sentHeaders = true err = cc.writeHeaders(cs.ID, endStream, int(cc.maxFrameSize), hdrs) traceWroteHeaders(cs.trace) @@ -2070,218 +2004,6 @@ func (cs *clientStream) awaitFlowControl(maxBytes int) (taken int32, err error) } } -func validateHeaders(hdrs http.Header) string { - for k, vv := range hdrs { - if !httpguts.ValidHeaderFieldName(k) && k != ":protocol" { - return fmt.Sprintf("name %q", k) - } - for _, v := range vv { - if !httpguts.ValidHeaderFieldValue(v) { - // Don't include the value in the error, - // because it may be sensitive. - return fmt.Sprintf("value for header %q", k) - } - } - } - return "" -} - -var errNilRequestURL = errors.New("http2: Request.URI is nil") - -func isNormalConnect(req *http.Request) bool { - return req.Method == "CONNECT" && req.Header.Get(":protocol") == "" -} - -// requires cc.wmu be held. -func (cc *ClientConn) encodeHeaders(req *http.Request, addGzipHeader bool, trailers string, contentLength int64) ([]byte, error) { - cc.hbuf.Reset() - if req.URL == nil { - return nil, errNilRequestURL - } - - host := req.Host - if host == "" { - host = req.URL.Host - } - host, err := httpguts.PunycodeHostPort(host) - if err != nil { - return nil, err - } - if !httpguts.ValidHostHeader(host) { - return nil, errors.New("http2: invalid Host header") - } - - var path string - if !isNormalConnect(req) { - path = req.URL.RequestURI() - if !validPseudoPath(path) { - orig := path - path = strings.TrimPrefix(path, req.URL.Scheme+"://"+host) - if !validPseudoPath(path) { - if req.URL.Opaque != "" { - return nil, fmt.Errorf("invalid request :path %q from URL.Opaque = %q", orig, req.URL.Opaque) - } else { - return nil, fmt.Errorf("invalid request :path %q", orig) - } - } - } - } - - // Check for any invalid headers+trailers and return an error before we - // potentially pollute our hpack state. (We want to be able to - // continue to reuse the hpack encoder for future requests) - if err := validateHeaders(req.Header); err != "" { - return nil, fmt.Errorf("invalid HTTP header %s", err) - } - if err := validateHeaders(req.Trailer); err != "" { - return nil, fmt.Errorf("invalid HTTP trailer %s", err) - } - - enumerateHeaders := func(f func(name, value string)) { - // 8.1.2.3 Request Pseudo-Header Fields - // The :path pseudo-header field includes the path and query parts of the - // target URI (the path-absolute production and optionally a '?' character - // followed by the query production, see Sections 3.3 and 3.4 of - // [RFC3986]). - f(":authority", host) - m := req.Method - if m == "" { - m = http.MethodGet - } - f(":method", m) - if !isNormalConnect(req) { - f(":path", path) - f(":scheme", req.URL.Scheme) - } - if trailers != "" { - f("trailer", trailers) - } - - var didUA bool - for k, vv := range req.Header { - if asciiEqualFold(k, "host") || asciiEqualFold(k, "content-length") { - // Host is :authority, already sent. - // Content-Length is automatic, set below. - continue - } else if asciiEqualFold(k, "connection") || - asciiEqualFold(k, "proxy-connection") || - asciiEqualFold(k, "transfer-encoding") || - asciiEqualFold(k, "upgrade") || - asciiEqualFold(k, "keep-alive") { - // Per 8.1.2.2 Connection-Specific Header - // Fields, don't send connection-specific - // fields. We have already checked if any - // are error-worthy so just ignore the rest. - continue - } else if asciiEqualFold(k, "user-agent") { - // Match Go's http1 behavior: at most one - // User-Agent. If set to nil or empty string, - // then omit it. Otherwise if not mentioned, - // include the default (below). - didUA = true - if len(vv) < 1 { - continue - } - vv = vv[:1] - if vv[0] == "" { - continue - } - } else if asciiEqualFold(k, "cookie") { - // Per 8.1.2.5 To allow for better compression efficiency, the - // Cookie header field MAY be split into separate header fields, - // each with one or more cookie-pairs. - for _, v := range vv { - for { - p := strings.IndexByte(v, ';') - if p < 0 { - break - } - f("cookie", v[:p]) - p++ - // strip space after semicolon if any. - for p+1 <= len(v) && v[p] == ' ' { - p++ - } - v = v[p:] - } - if len(v) > 0 { - f("cookie", v) - } - } - continue - } - - for _, v := range vv { - f(k, v) - } - } - if shouldSendReqContentLength(req.Method, contentLength) { - f("content-length", strconv.FormatInt(contentLength, 10)) - } - if addGzipHeader { - f("accept-encoding", "gzip") - } - if !didUA { - f("user-agent", defaultUserAgent) - } - } - - // Do a first pass over the headers counting bytes to ensure - // we don't exceed cc.peerMaxHeaderListSize. This is done as a - // separate pass before encoding the headers to prevent - // modifying the hpack state. - hlSize := uint64(0) - enumerateHeaders(func(name, value string) { - hf := hpack.HeaderField{Name: name, Value: value} - hlSize += uint64(hf.Size()) - }) - - if hlSize > cc.peerMaxHeaderListSize { - return nil, errRequestHeaderListSize - } - - trace := httptrace.ContextClientTrace(req.Context()) - traceHeaders := traceHasWroteHeaderField(trace) - - // Header list size is ok. Write the headers. - enumerateHeaders(func(name, value string) { - name, ascii := lowerHeader(name) - if !ascii { - // Skip writing invalid headers. Per RFC 7540, Section 8.1.2, header - // field names have to be ASCII characters (just as in HTTP/1.x). - return - } - cc.writeHeader(name, value) - if traceHeaders { - traceWroteHeaderField(trace, name, value) - } - }) - - return cc.hbuf.Bytes(), nil -} - -// shouldSendReqContentLength reports whether the http2.Transport should send -// a "content-length" request header. This logic is basically a copy of the net/http -// transferWriter.shouldSendContentLength. -// The contentLength is the corrected contentLength (so 0 means actually 0, not unknown). -// -1 means unknown. -func shouldSendReqContentLength(method string, contentLength int64) bool { - if contentLength > 0 { - return true - } - if contentLength < 0 { - return false - } - // For zero bodies, whether we send a content-length depends on the method. - // It also kinda doesn't matter for http2 either way, with END_STREAM. - switch method { - case "POST", "PUT", "PATCH": - return true - default: - return false - } -} - // requires cc.wmu be held. func (cc *ClientConn) encodeTrailers(trailer http.Header) ([]byte, error) { cc.hbuf.Reset() @@ -2298,7 +2020,7 @@ func (cc *ClientConn) encodeTrailers(trailer http.Header) ([]byte, error) { } for k, vv := range trailer { - lowKey, ascii := lowerHeader(k) + lowKey, ascii := httpcommon.LowerHeader(k) if !ascii { // Skip writing invalid headers. Per RFC 7540, Section 8.1.2, header // field names have to be ASCII characters (just as in HTTP/1.x). @@ -2653,7 +2375,7 @@ func (rl *clientConnReadLoop) handleResponse(cs *clientStream, f *MetaHeadersFra Status: status + " " + http.StatusText(statusCode), } for _, hf := range regularFields { - key := canonicalHeader(hf.Name) + key := httpcommon.CanonicalHeader(hf.Name) if key == "Trailer" { t := res.Trailer if t == nil { @@ -2661,7 +2383,7 @@ func (rl *clientConnReadLoop) handleResponse(cs *clientStream, f *MetaHeadersFra res.Trailer = t } foreachHeaderElement(hf.Value, func(v string) { - t[canonicalHeader(v)] = nil + t[httpcommon.CanonicalHeader(v)] = nil }) } else { vv := header[key] @@ -2785,7 +2507,7 @@ func (rl *clientConnReadLoop) processTrailers(cs *clientStream, f *MetaHeadersFr trailer := make(http.Header) for _, hf := range f.RegularFields() { - key := canonicalHeader(hf.Name) + key := httpcommon.CanonicalHeader(hf.Name) trailer[key] = append(trailer[key], hf.Value) } cs.trailer = trailer @@ -3331,7 +3053,7 @@ func (cc *ClientConn) writeStreamReset(streamID uint32, code ErrCode, ping bool, var ( errResponseHeaderListSize = errors.New("http2: response header list larger than advertised limit") - errRequestHeaderListSize = errors.New("http2: request header list larger than peer's advertised limit") + errRequestHeaderListSize = httpcommon.ErrRequestHeaderListSize ) func (cc *ClientConn) logf(format string, args ...interface{}) { @@ -3515,16 +3237,6 @@ func traceFirstResponseByte(trace *httptrace.ClientTrace) { } } -func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { - return trace != nil && trace.WroteHeaderField != nil -} - -func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) { - if trace != nil && trace.WroteHeaderField != nil { - trace.WroteHeaderField(k, []string{v}) - } -} - func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { if trace != nil { return trace.Got1xxResponse diff --git a/backend/vendor/golang.org/x/net/http2/write.go b/backend/vendor/golang.org/x/net/http2/write.go index 6ff6bee7e..fdb35b947 100644 --- a/backend/vendor/golang.org/x/net/http2/write.go +++ b/backend/vendor/golang.org/x/net/http2/write.go @@ -13,6 +13,7 @@ import ( "golang.org/x/net/http/httpguts" "golang.org/x/net/http2/hpack" + "golang.org/x/net/internal/httpcommon" ) // writeFramer is implemented by any type that is used to write frames. @@ -351,7 +352,7 @@ func encodeHeaders(enc *hpack.Encoder, h http.Header, keys []string) { } for _, k := range keys { vv := h[k] - k, ascii := lowerHeader(k) + k, ascii := httpcommon.LowerHeader(k) if !ascii { // Skip writing invalid headers. Per RFC 7540, Section 8.1.2, header // field names have to be ASCII characters (just as in HTTP/1.x). diff --git a/backend/vendor/golang.org/x/net/internal/httpcommon/ascii.go b/backend/vendor/golang.org/x/net/internal/httpcommon/ascii.go new file mode 100644 index 000000000..ed14da5af --- /dev/null +++ b/backend/vendor/golang.org/x/net/internal/httpcommon/ascii.go @@ -0,0 +1,53 @@ +// Copyright 2025 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package httpcommon + +import "strings" + +// The HTTP protocols are defined in terms of ASCII, not Unicode. This file +// contains helper functions which may use Unicode-aware functions which would +// otherwise be unsafe and could introduce vulnerabilities if used improperly. + +// asciiEqualFold is strings.EqualFold, ASCII only. It reports whether s and t +// are equal, ASCII-case-insensitively. +func asciiEqualFold(s, t string) bool { + if len(s) != len(t) { + return false + } + for i := 0; i < len(s); i++ { + if lower(s[i]) != lower(t[i]) { + return false + } + } + return true +} + +// lower returns the ASCII lowercase version of b. +func lower(b byte) byte { + if 'A' <= b && b <= 'Z' { + return b + ('a' - 'A') + } + return b +} + +// isASCIIPrint returns whether s is ASCII and printable according to +// https://tools.ietf.org/html/rfc20#section-4.2. +func isASCIIPrint(s string) bool { + for i := 0; i < len(s); i++ { + if s[i] < ' ' || s[i] > '~' { + return false + } + } + return true +} + +// asciiToLower returns the lowercase version of s if s is ASCII and printable, +// and whether or not it was. +func asciiToLower(s string) (lower string, ok bool) { + if !isASCIIPrint(s) { + return "", false + } + return strings.ToLower(s), true +} diff --git a/backend/vendor/golang.org/x/net/http2/headermap.go b/backend/vendor/golang.org/x/net/internal/httpcommon/headermap.go similarity index 77% rename from backend/vendor/golang.org/x/net/http2/headermap.go rename to backend/vendor/golang.org/x/net/internal/httpcommon/headermap.go index 149b3dd20..ad3fbacd6 100644 --- a/backend/vendor/golang.org/x/net/http2/headermap.go +++ b/backend/vendor/golang.org/x/net/internal/httpcommon/headermap.go @@ -1,8 +1,8 @@ -// Copyright 2014 The Go Authors. All rights reserved. +// Copyright 2025 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -package http2 +package httpcommon import ( "net/http" @@ -88,7 +88,9 @@ func buildCommonHeaderMaps() { } } -func lowerHeader(v string) (lower string, ascii bool) { +// LowerHeader returns the lowercase form of a header name, +// used on the wire for HTTP/2 and HTTP/3 requests. +func LowerHeader(v string) (lower string, ascii bool) { buildCommonHeaderMapsOnce() if s, ok := commonLowerHeader[v]; ok { return s, true @@ -96,10 +98,18 @@ func lowerHeader(v string) (lower string, ascii bool) { return asciiToLower(v) } -func canonicalHeader(v string) string { +// CanonicalHeader canonicalizes a header name. (For example, "host" becomes "Host".) +func CanonicalHeader(v string) string { buildCommonHeaderMapsOnce() if s, ok := commonCanonHeader[v]; ok { return s } return http.CanonicalHeaderKey(v) } + +// CachedCanonicalHeader returns the canonical form of a well-known header name. +func CachedCanonicalHeader(v string) (string, bool) { + buildCommonHeaderMapsOnce() + s, ok := commonCanonHeader[v] + return s, ok +} diff --git a/backend/vendor/golang.org/x/net/internal/httpcommon/request.go b/backend/vendor/golang.org/x/net/internal/httpcommon/request.go new file mode 100644 index 000000000..343914773 --- /dev/null +++ b/backend/vendor/golang.org/x/net/internal/httpcommon/request.go @@ -0,0 +1,379 @@ +// Copyright 2025 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +package httpcommon + +import ( + "errors" + "fmt" + "net/http" + "net/http/httptrace" + "sort" + "strconv" + "strings" + + "golang.org/x/net/http/httpguts" + "golang.org/x/net/http2/hpack" +) + +var ( + ErrRequestHeaderListSize = errors.New("request header list larger than peer's advertised limit") +) + +// EncodeHeadersParam is parameters to EncodeHeaders. +type EncodeHeadersParam struct { + Request *http.Request + + // AddGzipHeader indicates that an "accept-encoding: gzip" header should be + // added to the request. + AddGzipHeader bool + + // PeerMaxHeaderListSize, when non-zero, is the peer's MAX_HEADER_LIST_SIZE setting. + PeerMaxHeaderListSize uint64 + + // DefaultUserAgent is the User-Agent header to send when the request + // neither contains a User-Agent nor disables it. + DefaultUserAgent string +} + +// EncodeHeadersParam is the result of EncodeHeaders. +type EncodeHeadersResult struct { + HasBody bool + HasTrailers bool +} + +// EncodeHeaders constructs request headers common to HTTP/2 and HTTP/3. +// It validates a request and calls headerf with each pseudo-header and header +// for the request. +// The headerf function is called with the validated, canonicalized header name. +func EncodeHeaders(param EncodeHeadersParam, headerf func(name, value string)) (res EncodeHeadersResult, _ error) { + req := param.Request + + // Check for invalid connection-level headers. + if err := checkConnHeaders(req); err != nil { + return res, err + } + + if req.URL == nil { + return res, errors.New("Request.URL is nil") + } + + host := req.Host + if host == "" { + host = req.URL.Host + } + host, err := httpguts.PunycodeHostPort(host) + if err != nil { + return res, err + } + if !httpguts.ValidHostHeader(host) { + return res, errors.New("invalid Host header") + } + + // isNormalConnect is true if this is a non-extended CONNECT request. + isNormalConnect := false + protocol := req.Header.Get(":protocol") + if req.Method == "CONNECT" && protocol == "" { + isNormalConnect = true + } else if protocol != "" && req.Method != "CONNECT" { + return res, errors.New("invalid :protocol header in non-CONNECT request") + } + + // Validate the path, except for non-extended CONNECT requests which have no path. + var path string + if !isNormalConnect { + path = req.URL.RequestURI() + if !validPseudoPath(path) { + orig := path + path = strings.TrimPrefix(path, req.URL.Scheme+"://"+host) + if !validPseudoPath(path) { + if req.URL.Opaque != "" { + return res, fmt.Errorf("invalid request :path %q from URL.Opaque = %q", orig, req.URL.Opaque) + } else { + return res, fmt.Errorf("invalid request :path %q", orig) + } + } + } + } + + // Check for any invalid headers+trailers and return an error before we + // potentially pollute our hpack state. (We want to be able to + // continue to reuse the hpack encoder for future requests) + if err := validateHeaders(req.Header); err != "" { + return res, fmt.Errorf("invalid HTTP header %s", err) + } + if err := validateHeaders(req.Trailer); err != "" { + return res, fmt.Errorf("invalid HTTP trailer %s", err) + } + + contentLength := ActualContentLength(req) + + trailers, err := commaSeparatedTrailers(req) + if err != nil { + return res, err + } + + enumerateHeaders := func(f func(name, value string)) { + // 8.1.2.3 Request Pseudo-Header Fields + // The :path pseudo-header field includes the path and query parts of the + // target URI (the path-absolute production and optionally a '?' character + // followed by the query production, see Sections 3.3 and 3.4 of + // [RFC3986]). + f(":authority", host) + m := req.Method + if m == "" { + m = http.MethodGet + } + f(":method", m) + if !isNormalConnect { + f(":path", path) + f(":scheme", req.URL.Scheme) + } + if protocol != "" { + f(":protocol", protocol) + } + if trailers != "" { + f("trailer", trailers) + } + + var didUA bool + for k, vv := range req.Header { + if asciiEqualFold(k, "host") || asciiEqualFold(k, "content-length") { + // Host is :authority, already sent. + // Content-Length is automatic, set below. + continue + } else if asciiEqualFold(k, "connection") || + asciiEqualFold(k, "proxy-connection") || + asciiEqualFold(k, "transfer-encoding") || + asciiEqualFold(k, "upgrade") || + asciiEqualFold(k, "keep-alive") { + // Per 8.1.2.2 Connection-Specific Header + // Fields, don't send connection-specific + // fields. We have already checked if any + // are error-worthy so just ignore the rest. + continue + } else if asciiEqualFold(k, "user-agent") { + // Match Go's http1 behavior: at most one + // User-Agent. If set to nil or empty string, + // then omit it. Otherwise if not mentioned, + // include the default (below). + didUA = true + if len(vv) < 1 { + continue + } + vv = vv[:1] + if vv[0] == "" { + continue + } + } else if asciiEqualFold(k, "cookie") { + // Per 8.1.2.5 To allow for better compression efficiency, the + // Cookie header field MAY be split into separate header fields, + // each with one or more cookie-pairs. + for _, v := range vv { + for { + p := strings.IndexByte(v, ';') + if p < 0 { + break + } + f("cookie", v[:p]) + p++ + // strip space after semicolon if any. + for p+1 <= len(v) && v[p] == ' ' { + p++ + } + v = v[p:] + } + if len(v) > 0 { + f("cookie", v) + } + } + continue + } else if k == ":protocol" { + // :protocol pseudo-header was already sent above. + continue + } + + for _, v := range vv { + f(k, v) + } + } + if shouldSendReqContentLength(req.Method, contentLength) { + f("content-length", strconv.FormatInt(contentLength, 10)) + } + if param.AddGzipHeader { + f("accept-encoding", "gzip") + } + if !didUA { + f("user-agent", param.DefaultUserAgent) + } + } + + // Do a first pass over the headers counting bytes to ensure + // we don't exceed cc.peerMaxHeaderListSize. This is done as a + // separate pass before encoding the headers to prevent + // modifying the hpack state. + if param.PeerMaxHeaderListSize > 0 { + hlSize := uint64(0) + enumerateHeaders(func(name, value string) { + hf := hpack.HeaderField{Name: name, Value: value} + hlSize += uint64(hf.Size()) + }) + + if hlSize > param.PeerMaxHeaderListSize { + return res, ErrRequestHeaderListSize + } + } + + trace := httptrace.ContextClientTrace(req.Context()) + + // Header list size is ok. Write the headers. + enumerateHeaders(func(name, value string) { + name, ascii := LowerHeader(name) + if !ascii { + // Skip writing invalid headers. Per RFC 7540, Section 8.1.2, header + // field names have to be ASCII characters (just as in HTTP/1.x). + return + } + + headerf(name, value) + + if trace != nil && trace.WroteHeaderField != nil { + trace.WroteHeaderField(name, []string{value}) + } + }) + + res.HasBody = contentLength != 0 + res.HasTrailers = trailers != "" + return res, nil +} + +// IsRequestGzip reports whether we should add an Accept-Encoding: gzip header +// for a request. +func IsRequestGzip(req *http.Request, disableCompression bool) bool { + // TODO(bradfitz): this is a copy of the logic in net/http. Unify somewhere? + if !disableCompression && + req.Header.Get("Accept-Encoding") == "" && + req.Header.Get("Range") == "" && + req.Method != "HEAD" { + // Request gzip only, not deflate. Deflate is ambiguous and + // not as universally supported anyway. + // See: https://zlib.net/zlib_faq.html#faq39 + // + // Note that we don't request this for HEAD requests, + // due to a bug in nginx: + // http://trac.nginx.org/nginx/ticket/358 + // https://golang.org/issue/5522 + // + // We don't request gzip if the request is for a range, since + // auto-decoding a portion of a gzipped document will just fail + // anyway. See https://golang.org/issue/8923 + return true + } + return false +} + +// checkConnHeaders checks whether req has any invalid connection-level headers. +// +// https://www.rfc-editor.org/rfc/rfc9114.html#section-4.2-3 +// https://www.rfc-editor.org/rfc/rfc9113.html#section-8.2.2-1 +// +// Certain headers are special-cased as okay but not transmitted later. +// For example, we allow "Transfer-Encoding: chunked", but drop the header when encoding. +func checkConnHeaders(req *http.Request) error { + if v := req.Header.Get("Upgrade"); v != "" { + return fmt.Errorf("invalid Upgrade request header: %q", req.Header["Upgrade"]) + } + if vv := req.Header["Transfer-Encoding"]; len(vv) > 0 && (len(vv) > 1 || vv[0] != "" && vv[0] != "chunked") { + return fmt.Errorf("invalid Transfer-Encoding request header: %q", vv) + } + if vv := req.Header["Connection"]; len(vv) > 0 && (len(vv) > 1 || vv[0] != "" && !asciiEqualFold(vv[0], "close") && !asciiEqualFold(vv[0], "keep-alive")) { + return fmt.Errorf("invalid Connection request header: %q", vv) + } + return nil +} + +func commaSeparatedTrailers(req *http.Request) (string, error) { + keys := make([]string, 0, len(req.Trailer)) + for k := range req.Trailer { + k = CanonicalHeader(k) + switch k { + case "Transfer-Encoding", "Trailer", "Content-Length": + return "", fmt.Errorf("invalid Trailer key %q", k) + } + keys = append(keys, k) + } + if len(keys) > 0 { + sort.Strings(keys) + return strings.Join(keys, ","), nil + } + return "", nil +} + +// ActualContentLength returns a sanitized version of +// req.ContentLength, where 0 actually means zero (not unknown) and -1 +// means unknown. +func ActualContentLength(req *http.Request) int64 { + if req.Body == nil || req.Body == http.NoBody { + return 0 + } + if req.ContentLength != 0 { + return req.ContentLength + } + return -1 +} + +// validPseudoPath reports whether v is a valid :path pseudo-header +// value. It must be either: +// +// - a non-empty string starting with '/' +// - the string '*', for OPTIONS requests. +// +// For now this is only used a quick check for deciding when to clean +// up Opaque URLs before sending requests from the Transport. +// See golang.org/issue/16847 +// +// We used to enforce that the path also didn't start with "//", but +// Google's GFE accepts such paths and Chrome sends them, so ignore +// that part of the spec. See golang.org/issue/19103. +func validPseudoPath(v string) bool { + return (len(v) > 0 && v[0] == '/') || v == "*" +} + +func validateHeaders(hdrs http.Header) string { + for k, vv := range hdrs { + if !httpguts.ValidHeaderFieldName(k) && k != ":protocol" { + return fmt.Sprintf("name %q", k) + } + for _, v := range vv { + if !httpguts.ValidHeaderFieldValue(v) { + // Don't include the value in the error, + // because it may be sensitive. + return fmt.Sprintf("value for header %q", k) + } + } + } + return "" +} + +// shouldSendReqContentLength reports whether we should send +// a "content-length" request header. This logic is basically a copy of the net/http +// transferWriter.shouldSendContentLength. +// The contentLength is the corrected contentLength (so 0 means actually 0, not unknown). +// -1 means unknown. +func shouldSendReqContentLength(method string, contentLength int64) bool { + if contentLength > 0 { + return true + } + if contentLength < 0 { + return false + } + // For zero bodies, whether we send a content-length depends on the method. + // It also kinda doesn't matter for http2 either way, with END_STREAM. + switch method { + case "POST", "PUT", "PATCH": + return true + default: + return false + } +} diff --git a/backend/vendor/golang.org/x/sync/errgroup/errgroup.go b/backend/vendor/golang.org/x/sync/errgroup/errgroup.go index 948a3ee63..b8322598a 100644 --- a/backend/vendor/golang.org/x/sync/errgroup/errgroup.go +++ b/backend/vendor/golang.org/x/sync/errgroup/errgroup.go @@ -118,6 +118,7 @@ func (g *Group) TryGo(f func() error) bool { // SetLimit limits the number of active goroutines in this group to at most n. // A negative value indicates no limit. +// A limit of zero will prevent any new goroutines from being added. // // Any subsequent call to the Go method will block until it can add an active // goroutine without exceeding the configured limit. diff --git a/backend/vendor/golang.org/x/sync/singleflight/singleflight.go b/backend/vendor/golang.org/x/sync/singleflight/singleflight.go new file mode 100644 index 000000000..405183098 --- /dev/null +++ b/backend/vendor/golang.org/x/sync/singleflight/singleflight.go @@ -0,0 +1,214 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +// Package singleflight provides a duplicate function call suppression +// mechanism. +package singleflight // import "golang.org/x/sync/singleflight" + +import ( + "bytes" + "errors" + "fmt" + "runtime" + "runtime/debug" + "sync" +) + +// errGoexit indicates the runtime.Goexit was called in +// the user given function. +var errGoexit = errors.New("runtime.Goexit was called") + +// A panicError is an arbitrary value recovered from a panic +// with the stack trace during the execution of given function. +type panicError struct { + value interface{} + stack []byte +} + +// Error implements error interface. +func (p *panicError) Error() string { + return fmt.Sprintf("%v\n\n%s", p.value, p.stack) +} + +func (p *panicError) Unwrap() error { + err, ok := p.value.(error) + if !ok { + return nil + } + + return err +} + +func newPanicError(v interface{}) error { + stack := debug.Stack() + + // The first line of the stack trace is of the form "goroutine N [status]:" + // but by the time the panic reaches Do the goroutine may no longer exist + // and its status will have changed. Trim out the misleading line. + if line := bytes.IndexByte(stack[:], '\n'); line >= 0 { + stack = stack[line+1:] + } + return &panicError{value: v, stack: stack} +} + +// call is an in-flight or completed singleflight.Do call +type call struct { + wg sync.WaitGroup + + // These fields are written once before the WaitGroup is done + // and are only read after the WaitGroup is done. + val interface{} + err error + + // These fields are read and written with the singleflight + // mutex held before the WaitGroup is done, and are read but + // not written after the WaitGroup is done. + dups int + chans []chan<- Result +} + +// Group represents a class of work and forms a namespace in +// which units of work can be executed with duplicate suppression. +type Group struct { + mu sync.Mutex // protects m + m map[string]*call // lazily initialized +} + +// Result holds the results of Do, so they can be passed +// on a channel. +type Result struct { + Val interface{} + Err error + Shared bool +} + +// Do executes and returns the results of the given function, making +// sure that only one execution is in-flight for a given key at a +// time. If a duplicate comes in, the duplicate caller waits for the +// original to complete and receives the same results. +// The return value shared indicates whether v was given to multiple callers. +func (g *Group) Do(key string, fn func() (interface{}, error)) (v interface{}, err error, shared bool) { + g.mu.Lock() + if g.m == nil { + g.m = make(map[string]*call) + } + if c, ok := g.m[key]; ok { + c.dups++ + g.mu.Unlock() + c.wg.Wait() + + if e, ok := c.err.(*panicError); ok { + panic(e) + } else if c.err == errGoexit { + runtime.Goexit() + } + return c.val, c.err, true + } + c := new(call) + c.wg.Add(1) + g.m[key] = c + g.mu.Unlock() + + g.doCall(c, key, fn) + return c.val, c.err, c.dups > 0 +} + +// DoChan is like Do but returns a channel that will receive the +// results when they are ready. +// +// The returned channel will not be closed. +func (g *Group) DoChan(key string, fn func() (interface{}, error)) <-chan Result { + ch := make(chan Result, 1) + g.mu.Lock() + if g.m == nil { + g.m = make(map[string]*call) + } + if c, ok := g.m[key]; ok { + c.dups++ + c.chans = append(c.chans, ch) + g.mu.Unlock() + return ch + } + c := &call{chans: []chan<- Result{ch}} + c.wg.Add(1) + g.m[key] = c + g.mu.Unlock() + + go g.doCall(c, key, fn) + + return ch +} + +// doCall handles the single call for a key. +func (g *Group) doCall(c *call, key string, fn func() (interface{}, error)) { + normalReturn := false + recovered := false + + // use double-defer to distinguish panic from runtime.Goexit, + // more details see https://golang.org/cl/134395 + defer func() { + // the given function invoked runtime.Goexit + if !normalReturn && !recovered { + c.err = errGoexit + } + + g.mu.Lock() + defer g.mu.Unlock() + c.wg.Done() + if g.m[key] == c { + delete(g.m, key) + } + + if e, ok := c.err.(*panicError); ok { + // In order to prevent the waiting channels from being blocked forever, + // needs to ensure that this panic cannot be recovered. + if len(c.chans) > 0 { + go panic(e) + select {} // Keep this goroutine around so that it will appear in the crash dump. + } else { + panic(e) + } + } else if c.err == errGoexit { + // Already in the process of goexit, no need to call again + } else { + // Normal return + for _, ch := range c.chans { + ch <- Result{c.val, c.err, c.dups > 0} + } + } + }() + + func() { + defer func() { + if !normalReturn { + // Ideally, we would wait to take a stack trace until we've determined + // whether this is a panic or a runtime.Goexit. + // + // Unfortunately, the only way we can distinguish the two is to see + // whether the recover stopped the goroutine from terminating, and by + // the time we know that, the part of the stack trace relevant to the + // panic has been discarded. + if r := recover(); r != nil { + c.err = newPanicError(r) + } + } + }() + + c.val, c.err = fn() + normalReturn = true + }() + + if !normalReturn { + recovered = true + } +} + +// Forget tells the singleflight to forget about a key. Future calls +// to Do for this key will call the function rather than waiting for +// an earlier call to complete. +func (g *Group) Forget(key string) { + g.mu.Lock() + delete(g.m, key) + g.mu.Unlock() +} diff --git a/backend/vendor/golang.org/x/time/rate/rate.go b/backend/vendor/golang.org/x/time/rate/rate.go index 93a798ab6..ec5f0cdd0 100644 --- a/backend/vendor/golang.org/x/time/rate/rate.go +++ b/backend/vendor/golang.org/x/time/rate/rate.go @@ -405,8 +405,15 @@ func (limit Limit) durationFromTokens(tokens float64) time.Duration { if limit <= 0 { return InfDuration } - seconds := tokens / float64(limit) - return time.Duration(float64(time.Second) * seconds) + + duration := (tokens / float64(limit)) * float64(time.Second) + + // Cap the duration to the maximum representable int64 value, to avoid overflow. + if duration > float64(math.MaxInt64) { + return InfDuration + } + + return time.Duration(duration) } // tokensFromDuration is a unit conversion function from a time duration to the number of tokens diff --git a/backend/vendor/k8s.io/utils/strings/slices/slices.go b/backend/vendor/k8s.io/utils/strings/slices/slices.go deleted file mode 100644 index 8e21838f2..000000000 --- a/backend/vendor/k8s.io/utils/strings/slices/slices.go +++ /dev/null @@ -1,82 +0,0 @@ -/* -Copyright 2021 The Kubernetes Authors. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ - -// Package slices defines various functions useful with slices of string type. -// The goal is to be as close as possible to -// https://github.com/golang/go/issues/45955. Ideal would be if we can just -// replace "stringslices" if the "slices" package becomes standard. -package slices - -// Equal reports whether two slices are equal: the same length and all -// elements equal. If the lengths are different, Equal returns false. -// Otherwise, the elements are compared in index order, and the -// comparison stops at the first unequal pair. -func Equal(s1, s2 []string) bool { - if len(s1) != len(s2) { - return false - } - for i, n := range s1 { - if n != s2[i] { - return false - } - } - return true -} - -// Filter appends to d each element e of s for which keep(e) returns true. -// It returns the modified d. d may be s[:0], in which case the kept -// elements will be stored in the same slice. -// if the slices overlap in some other way, the results are unspecified. -// To create a new slice with the filtered results, pass nil for d. -func Filter(d, s []string, keep func(string) bool) []string { - for _, n := range s { - if keep(n) { - d = append(d, n) - } - } - return d -} - -// Contains reports whether v is present in s. -func Contains(s []string, v string) bool { - return Index(s, v) >= 0 -} - -// Index returns the index of the first occurrence of v in s, or -1 if -// not present. -func Index(s []string, v string) int { - // "Contains" may be replaced with "Index(s, v) >= 0": - // https://github.com/golang/go/issues/45955#issuecomment-873377947 - for i, n := range s { - if n == v { - return i - } - } - return -1 -} - -// Functions below are not in https://github.com/golang/go/issues/45955 - -// Clone returns a new clone of s. -func Clone(s []string) []string { - // https://github.com/go101/go101/wiki/There-is-not-a-perfect-way-to-clone-slices-in-Go - if s == nil { - return nil - } - c := make([]string, len(s)) - copy(c, s) - return c -} diff --git a/backend/vendor/modules.txt b/backend/vendor/modules.txt index 871d3725b..e15fa9174 100644 --- a/backend/vendor/modules.txt +++ b/backend/vendor/modules.txt @@ -16,14 +16,13 @@ github.com/blang/semver/v4 # github.com/cespare/xxhash/v2 v2.3.0 ## explicit; go 1.11 github.com/cespare/xxhash/v2 -# github.com/cilium/cilium v1.16.6 -## explicit; go 1.22.0 +# github.com/cilium/cilium v1.17.0 +## explicit; go 1.23.0 github.com/cilium/cilium/api/v1/client github.com/cilium/cilium/api/v1/client/bgp github.com/cilium/cilium/api/v1/client/daemon github.com/cilium/cilium/api/v1/client/endpoint github.com/cilium/cilium/api/v1/client/ipam -github.com/cilium/cilium/api/v1/client/metrics github.com/cilium/cilium/api/v1/client/policy github.com/cilium/cilium/api/v1/client/prefilter github.com/cilium/cilium/api/v1/client/recorder @@ -48,6 +47,7 @@ github.com/cilium/cilium/pkg/clustermesh/types github.com/cilium/cilium/pkg/command github.com/cilium/cilium/pkg/command/exec github.com/cilium/cilium/pkg/comparator +github.com/cilium/cilium/pkg/container/cache github.com/cilium/cilium/pkg/counter github.com/cilium/cilium/pkg/crypto/certloader github.com/cilium/cilium/pkg/datapath/linux/probes @@ -65,7 +65,6 @@ github.com/cilium/cilium/pkg/hubble/api/v1 github.com/cilium/cilium/pkg/hubble/filters github.com/cilium/cilium/pkg/hubble/k8s github.com/cilium/cilium/pkg/iana -github.com/cilium/cilium/pkg/inctimer github.com/cilium/cilium/pkg/ip github.com/cilium/cilium/pkg/ipam/option github.com/cilium/cilium/pkg/ipam/types @@ -106,9 +105,10 @@ github.com/cilium/cilium/pkg/slices github.com/cilium/cilium/pkg/source github.com/cilium/cilium/pkg/spanstat github.com/cilium/cilium/pkg/time +github.com/cilium/cilium/pkg/u8proto github.com/cilium/cilium/pkg/version github.com/cilium/cilium/pkg/versioncheck -# github.com/cilium/ebpf v0.17.2 +# github.com/cilium/ebpf v0.17.1 ## explicit; go 1.22 github.com/cilium/ebpf github.com/cilium/ebpf/asm @@ -124,16 +124,24 @@ github.com/cilium/ebpf/internal/testutils/fdtrace github.com/cilium/ebpf/internal/tracefs github.com/cilium/ebpf/internal/unix github.com/cilium/ebpf/link -# github.com/cilium/hive v0.0.0-20250123101719-ef9b68363b0c +# github.com/cilium/hive v0.0.0-20250206110837-3a9e5694e24a ## explicit; go 1.21.3 github.com/cilium/hive github.com/cilium/hive/cell github.com/cilium/hive/internal +github.com/cilium/hive/job github.com/cilium/hive/script github.com/cilium/hive/script/internal/diff -# github.com/cilium/proxy v0.0.0-20250130165955-f0d28a4d0751 +# github.com/cilium/proxy v0.0.0-20250211021819-e85e926b0fa4 ## explicit; go 1.23 github.com/cilium/proxy/pkg/policy/api/kafka +# github.com/cilium/statedb v0.3.5 +## explicit; go 1.23 +github.com/cilium/statedb/index +github.com/cilium/statedb/part +# github.com/cilium/stream v0.0.0-20241203114243-53c3e5d79744 +## explicit; go 1.21.0 +github.com/cilium/stream # github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc ## explicit github.com/davecgh/go-spew/spew @@ -258,10 +266,6 @@ github.com/google/go-cmp/cmp/internal/value ## explicit; go 1.12 github.com/google/gofuzz github.com/google/gofuzz/bytesource -# github.com/google/gopacket v1.1.19 -## explicit; go 1.12 -github.com/google/gopacket -github.com/google/gopacket/layers # github.com/google/gops v0.3.28 ## explicit; go 1.17 github.com/google/gops/agent @@ -270,6 +274,10 @@ github.com/google/gops/signal # github.com/google/uuid v1.6.0 ## explicit github.com/google/uuid +# github.com/gopacket/gopacket v1.3.1 +## explicit; go 1.22.0 +github.com/gopacket/gopacket +github.com/gopacket/gopacket/layers # github.com/grpc-ecosystem/grpc-gateway v1.16.0 ## explicit; go 1.14 github.com/grpc-ecosystem/grpc-gateway/internal @@ -308,12 +316,6 @@ github.com/klauspost/compress/internal/cpuinfo github.com/klauspost/compress/internal/snapref github.com/klauspost/compress/zstd github.com/klauspost/compress/zstd/internal/xxhash -# github.com/kr/pretty v0.3.1 -## explicit; go 1.12 -github.com/kr/pretty -# github.com/kr/text v0.2.0 -## explicit -github.com/kr/text # github.com/mackerelio/go-osstat v0.2.5 ## explicit; go 1.18 github.com/mackerelio/go-osstat/memory @@ -325,6 +327,9 @@ github.com/magiconair/properties github.com/mailru/easyjson/buffer github.com/mailru/easyjson/jlexer github.com/mailru/easyjson/jwriter +# github.com/mitchellh/go-wordwrap v1.0.1 +## explicit; go 1.14 +github.com/mitchellh/go-wordwrap # github.com/mitchellh/mapstructure v1.5.0 ## explicit; go 1.14 github.com/mitchellh/mapstructure @@ -358,9 +363,6 @@ github.com/petermattis/goid # github.com/pkg/errors v0.9.1 ## explicit github.com/pkg/errors -# github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 -## explicit -github.com/pmezard/go-difflib/difflib # github.com/prometheus/client_golang v1.20.5 ## explicit; go 1.20 github.com/prometheus/client_golang/internal/github.com/golang/gddo/httputil @@ -381,9 +383,6 @@ github.com/prometheus/common/model github.com/prometheus/procfs github.com/prometheus/procfs/internal/fs github.com/prometheus/procfs/internal/util -# github.com/rogpeppe/go-internal v1.13.1 -## explicit; go 1.22 -github.com/rogpeppe/go-internal/fmtsort # github.com/sagikazarmark/locafero v0.7.0 ## explicit; go 1.21 github.com/sagikazarmark/locafero @@ -496,39 +495,39 @@ go.uber.org/multierr # go4.org/netipx v0.0.0-20231129151722-fdeea329fbba ## explicit; go 1.18 go4.org/netipx -# golang.org/x/exp v0.0.0-20250128182459-e0ece0dbea4c +# golang.org/x/exp v0.0.0-20250210185358-939b2ce775ac ## explicit; go 1.22.0 -golang.org/x/exp/constraints -golang.org/x/exp/maps golang.org/x/exp/slices golang.org/x/exp/slog golang.org/x/exp/slog/internal golang.org/x/exp/slog/internal/buffer -# golang.org/x/net v0.34.0 +# golang.org/x/net v0.35.0 ## explicit; go 1.18 golang.org/x/net/http/httpguts golang.org/x/net/http2 golang.org/x/net/http2/hpack golang.org/x/net/idna +golang.org/x/net/internal/httpcommon golang.org/x/net/internal/timeseries golang.org/x/net/trace -# golang.org/x/oauth2 v0.25.0 +# golang.org/x/oauth2 v0.26.0 ## explicit; go 1.18 golang.org/x/oauth2 golang.org/x/oauth2/internal -# golang.org/x/sync v0.10.0 +# golang.org/x/sync v0.11.0 ## explicit; go 1.18 golang.org/x/sync/errgroup golang.org/x/sync/semaphore +golang.org/x/sync/singleflight # golang.org/x/sys v0.30.0 ## explicit; go 1.18 golang.org/x/sys/plan9 golang.org/x/sys/unix golang.org/x/sys/windows -# golang.org/x/term v0.28.0 +# golang.org/x/term v0.29.0 ## explicit; go 1.18 golang.org/x/term -# golang.org/x/text v0.21.0 +# golang.org/x/text v0.22.0 ## explicit; go 1.18 golang.org/x/text/encoding golang.org/x/text/encoding/internal @@ -540,20 +539,20 @@ golang.org/x/text/secure/bidirule golang.org/x/text/transform golang.org/x/text/unicode/bidi golang.org/x/text/unicode/norm -# golang.org/x/time v0.9.0 +# golang.org/x/time v0.10.0 ## explicit; go 1.18 golang.org/x/time/rate -# golang.org/x/tools v0.29.0 +# golang.org/x/tools v0.30.0 ## explicit; go 1.22.0 golang.org/x/tools/txtar -# google.golang.org/genproto v0.0.0-20250127172529-29210b9bc287 +# google.golang.org/genproto v0.0.0-20250207221924-e9438ea467c6 ## explicit; go 1.22.7 google.golang.org/genproto/protobuf/field_mask -# google.golang.org/genproto/googleapis/api v0.0.0-20250127172529-29210b9bc287 +# google.golang.org/genproto/googleapis/api v0.0.0-20250207221924-e9438ea467c6 ## explicit; go 1.22 google.golang.org/genproto/googleapis/api/expr/v1alpha1 google.golang.org/genproto/googleapis/api/httpbody -# google.golang.org/genproto/googleapis/rpc v0.0.0-20250127172529-29210b9bc287 +# google.golang.org/genproto/googleapis/rpc v0.0.0-20250207221924-e9438ea467c6 ## explicit; go 1.22 google.golang.org/genproto/googleapis/rpc/status # google.golang.org/grpc v1.70.0 @@ -958,7 +957,6 @@ k8s.io/utils/internal/third_party/forked/golang/net k8s.io/utils/net k8s.io/utils/pointer k8s.io/utils/ptr -k8s.io/utils/strings/slices k8s.io/utils/trace # sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 ## explicit; go 1.23