text
stringlengths
1
22.8M
The 2020 FIM Cross-Country Rallies World Championship was set to be the 18th season of the FIM Cross-Country Rallies World Championship, an international rally raid competition for motorbikes and quads. Due to COVID-19 pandemic all events and thus the season, were canceled. Calendar The calendar for the 2020 season originally featured five long-distance rally raid events; including one marathon event in the Silk Way Rally. Four of the events were also part of 2020 FIA World Cup for Cross-Country Rallies; with the Rally dos Sertões remaining solely under the auspices of the FIM. Due to COVID-19 pandemic all events were canceled. Regulation changes Starting with the 2020 season new categories have been introduced with the RallyGP category being for professionals and experienced riders, Rally2 for newcomers, and the Rally Adventure trophy for riders without assistance. SSVs would be introduced as their own category for all events. The end of season there would be awards as follows: World Championship for RallyGP riders and manufacturers in the bike class World Cups for Rally2 riders in the Moto-Rally, Moto-Enduro, and Quad groups. World Cups for women and juniors in the RallyGP category World Cups for SSVs References External links FIM Cross-Country Rallies World Championship Cross-Country Rallies World Championship Cross-country FIM Cross
Orsett Hall was a 17th-century Grade II listed building in Orsett, Essex (de-listed on 10 March 2008). It was set in of parkland and was the centre of the Orsett Hall agricultural estate. The house was destroyed by fire on 11 May 2007 and rebuilt in the same style and on the same footprint as the original building in 2009. History The house dated in part to the 17th century, but was enlarged and reconstructed in brick by Richard Baker about 1750 and was set in of parkland. With the purchases of additional farm land in Orsett and nearby parishes, Baker established an agricultural estate centred on the house. In 1827, the house and estate passed from the Baker family to a nephew, William Wingfield, who changed his name to Wingfield-Baker. It was inherited by his son, Richard Baker Wingfield-Baker and in turn by his son, Digby Wingfield-Baker. At the end of the 19th century the estate was inherited by Thomas Whitmore as a debt of honour. (A family legend says that it was won in a game of cards.) The house was refurbished in the early 20th century by Colonel Sir Francis Whitmore who described it as "an uninhabitable shell, without light, water or sanitation". It was the Whitmore family home for more than fifty years. It was inherited by Sir Francis' son, Sir John Whitmore, who used the grounds to take off and land his plane. He sold it in 1968, to his friends, Tony and Val Morgan. At the time of the fire Steve and Lynn Haynes owned and ran the Orsett Hall Hotel as a conference centre, hotel and wedding venue. The fire The last event held at the Orsett Hall was Chafford Hundred Campus' School Prom, held on 10 May 2007. Only a few hours after they left the building, it caught alight and collapsed. The fire broke out in the kitchen while breakfast was being prepared and spread rapidly. Guests were evacuated and no one was seriously hurt. More than 70 Essex firefighters and crews attended, including two fire engines from Orsett, two from Grays, two from Basildon including an aerial ladder platform, one from Southend, and a Fire Brigade Command Unit from Brentwood. The building collapsed at around midday. The house contained antique furniture and Sir Francis' ceremonial uniform as well as photographs and documents relating to the history of the house and Whitmore family. There were numerous paintings, including many family portraits that displayed the characteristic family trait - a "prominent nose". Nothing was saved. Prior to the fire, documents from the Orsett Estate during the 19th and 20th centuries had been deposited in the Museum of English Rural Life at Reading. There are some other documents related to Orsett Hall in the Essex Record Office. Following the fire, the building was de-listed on 10 March 2008. Rebuilding The owners took the decision to rebuild in the same style and on the same footprint as the original building. Building work was completed early in 2009. References External links Grade II listed buildings in Essex Buildings and structures in Thurrock Hotels in Essex
```javascript /** * @license Apache-2.0 * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ 'use strict'; // MAIN // /** * Computes the arithmetic mean of a single-precision floating-point strided array using Welford's algorithm with extended accumulation and returning an extended precision result. * * ## Method * * - This implementation uses Welford's algorithm for efficient computation, which can be derived as follows * * ```tex * \begin{align*} * \mu_n &= \frac{1}{n} \sum_{i=0}^{n-1} x_i \\ * &= \frac{1}{n} \biggl(x_{n-1} + \sum_{i=0}^{n-2} x_i \biggr) \\ * &= \frac{1}{n} (x_{n-1} + (n-1)\mu_{n-1}) \\ * &= \mu_{n-1} + \frac{1}{n} (x_{n-1} - \mu_{n-1}) * \end{align*} * ``` * * ## References * * - Welford, B. P. 1962. "Note on a Method for Calculating Corrected Sums of Squares and Products." _Technometrics_ 4 (3). Taylor & Francis: 41920. doi:[10.1080/00401706.1962.10490022](path_to_url * - van Reeken, A. J. 1968. "Letters to the Editor: Dealing with Neely's Algorithms." _Communications of the ACM_ 11 (3): 14950. doi:[10.1145/362929.362961](path_to_url * * @param {PositiveInteger} N - number of indexed elements * @param {Float32Array} x - input array * @param {integer} stride - stride length * @param {NonNegativeInteger} offset - starting index * @returns {number} arithmetic mean * * @example * var Float32Array = require( '@stdlib/array/float32' ); * var floor = require( '@stdlib/math/base/special/floor' ); * * var x = new Float32Array( [ 2.0, 1.0, 2.0, -2.0, -2.0, 2.0, 3.0, 4.0 ] ); * var N = floor( x.length / 2 ); * * var v = dsmeanwd( N, x, 2, 1 ); * // returns 1.25 */ function dsmeanwd( N, x, stride, offset ) { var mu; var ix; var n; var i; if ( N <= 0 ) { return NaN; } if ( N === 1 || stride === 0 ) { return x[ offset ]; } ix = offset; mu = 0.0; n = 0; for ( i = 0; i < N; i++ ) { n += 1; mu += ( x[ix]-mu ) / n; ix += stride; } return mu; } // EXPORTS // module.exports = dsmeanwd; ```
```javascript (window.webpackJsonp=window.webpackJsonp||[]).push([[17],{291:function(r,t,e){"use strict";e.r(t);var n=e(14),a=Object(n.a)({},(function(){var r=this,t=r._self._c;return t("ContentSlotsDistributor",{attrs:{"slot-key":r.$parent.slotKey}},[t("h4",{attrs:{id:"framework"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#framework"}},[r._v("#")]),r._v(" Framework")]),r._v(" "),t("p",[r._v("Framework"),t("a",{attrs:{href:"path_to_url",target:"_blank",rel:"noopener noreferrer"}},[r._v("Android"),t("OutboundLink")],1),r._v("")]),r._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"path_to_url",target:"_blank",rel:"noopener noreferrer"}},[r._v("App "),t("OutboundLink")],1)]),r._v(" "),t("li",[t("a",{attrs:{href:"path_to_url",target:"_blank",rel:"noopener noreferrer"}},[r._v("Android"),t("OutboundLink")],1)]),r._v(" "),t("li",[t("a",{attrs:{href:"path_to_url",target:"_blank",rel:"noopener noreferrer"}},[r._v("AndroidActivitystartActivity"),t("OutboundLink")],1)]),r._v(" "),t("li",[t("a",{attrs:{href:"path_to_url",target:"_blank",rel:"noopener noreferrer"}},[r._v("startActivity"),t("OutboundLink")],1)]),r._v(" "),t("li",[t("a",{attrs:{href:"path_to_url",target:"_blank",rel:"noopener noreferrer"}},[r._v("bindService"),t("OutboundLink")],1)]),r._v(" "),t("li",[t("a",{attrs:{href:"path_to_url",target:"_blank",rel:"noopener noreferrer"}},[r._v("AndroidAsset Manager"),t("OutboundLink")],1)])]),r._v(" "),t("p",[r._v("AMS")]),r._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"path_to_url",target:"_blank",rel:"noopener noreferrer"}},[r._v("ActivityManagerService"),t("OutboundLink")],1)])]),r._v(" "),t("p",[r._v("PMS")]),r._v(" "),t("ul",[t("li",[t("a",{attrs:{href:"path_to_url",target:"_blank",rel:"noopener noreferrer"}},[r._v("Android"),t("OutboundLink")],1)])])])}),[],!1,null,null,null);t.default=a.exports}}]); ```
```javascript // Flags: --expose-internals 'use strict'; const common = require('../common'); common.skipIfInspectorDisabled(); const { strictEqual } = require('assert'); const { NodeInstance } = require('../common/inspector-helper.js'); async function testNoServerNoCrash() { console.log('Test there\'s no crash stopping server that was not started'); const instance = new NodeInstance([], `process._debugEnd(); process.exit(42);`); strictEqual(42, (await instance.expectShutdown()).exitCode); } async function testNoSessionNoCrash() { console.log('Test there\'s no crash stopping server without connecting'); const instance = new NodeInstance('--inspect=0', 'process._debugEnd();process.exit(42);'); strictEqual(42, (await instance.expectShutdown()).exitCode); } async function testSessionNoCrash() { console.log('Test there\'s no crash stopping server after connecting'); const script = `process._debugEnd(); process._debugProcess(process.pid); setTimeout(() => { console.log("Done"); process.exit(42); });`; const instance = new NodeInstance('--inspect-brk=0', script); const session = await instance.connectInspectorSession(); await session.send({ 'method': 'Runtime.runIfWaitingForDebugger' }); await session.waitForServerDisconnect(); strictEqual(42, (await instance.expectShutdown()).exitCode); } async function runTest() { await testNoServerNoCrash(); await testNoSessionNoCrash(); await testSessionNoCrash(); } runTest(); ```
Epropetes bolivianus is a species of beetle in the family Cerambycidae. It was described by Galileo and Martins in 2008. References Tillomorphini Beetles described in 2008
Pushkin House (), established in 1954, is the UK's oldest independent Russian cultural centre, now based in Bloomsbury, London. It was founded by a group of émigré Russian friends, led by Maria Mikhailovna Kullmann (Zernova), with the aim of creating a welcoming meeting-place "for the enjoyment, understanding and promotion of Russian culture in all its forms, and for the exchange of views in a lively, informal atmosphere, with freedom of speech a core principle". It continues to host a programme of Russian literature, poetry, art, cinema, music, theatre and dance, history, philosophy and current affairs. Events include lectures, exhibitions, films, concerts, readings, panel discussions, debates and an annual Book Prize. It is a politically independent, registered UK charity, owned and run by the Pushkin House Trust. While its original endowment ensures its independence, it also derives an income from ticket sales and donations from the public. History In 1953 Maria Kullmann recognised a need in London for a politically neutral centre of Russian culture. With a small group of family and friends she bought 24 Kensington Park Gardens, Notting Hill, as a house for students and academics of all nationalities. The first meeting of the Pushkin Club was held there in 1954. By 1956 it was clear that the club needed premises of its own, and it subsequently bought 46 Ladbroke Grove. This remained its home until 2006, when it moved to its current premises at nos 5, 5a and 6 Bloomsbury Square, a listed building of the 1740s. Since its foundation, Pushkin House has borne witness to dramatic changes in the relationship between Britain and Russia. The establishment of the original Pushkin House coincided with the immediate post-Stalin years and the "Khrushchev Thaw", when interest in things Russian was intense. These years were marked, for example, by the first yearly visits of the Bolshoi and Kirov (now Mariinsky) Opera and Ballet companies. Several distinguished scholars, writers and artists of the post-revolutionary emigration were still alive, and the Pushkin Club provided them with an effective platform. Speakers in the early days included Metropolitan Anthony, Sir Isaiah Berlin and Dame Elizabeth Hill. In 1955, Tamara Karsavina spoke of her life in ballet; the following year Edward Crankshaw talked of the Soviet Union in the aftermath of the 20th Party Congress. Scriabin's sister and Medtner's widow were both regular attendees. The poet Korney Chukovsky performed at the club in June 1962. Mstislav Dobuzhinsky, one of the last surviving members of Mir Iskusstva, held more than one exhibition in the club and presented several of stage designs to the club. There was an exhibition of paintings and lithographs by Leonid Pasternak. Soviet writers brought to the UK by the British Council would often come and talk at the Pushkin Club; they included Konstantin Fedin and Alexander Tvardovsky in 1960. It also provided a rehearsal venue for the London Balalaika Ensemble, also popular during the 1960s. The Pushkin Club enabled people from opposite ends of the political spectrum to meet and discuss; this remains a firm commitment of Pushkin House to the present. Activities Pushkin House aims to serve as a home and showcase for Russian culture in London, a focus for Anglo-Russian cultural exchange, a provider of education and information on Russian language and culture, and a resource and networking centre for individuals and institutions. In pursuit of these aims, it has developed a cultural programme relating to Russian literature, art, film, music, theatre and dance, as well as history, philosophy and politics. Events include lectures and talks, seminars, conferences, exhibitions, films, concerts and readings. Besides its own events, Pushkin House collaborates with other institutions and groups dedicated to Russian culture. It hosts lectures run by the Pushkin Club and the GB-Russia Society, among others. Russian language courses are provided by the Russian Language Centre, located on the top floor of the building. Creative partnerships exist with museums and libraries in Russia. Pushkin House Book Prize The Pushkin House Book Prize was launched in 2013 with an aim to "encourage public understanding and intelligent debate about the Russian-speaking world". The prize is for a book published in English, but translations from other languages, including Russian, are encouraged. Winners 2013 – Former People: The Last Days of the Russian Aristocracy by Douglas Smith 2014 – Red Fortress: The Secret Heart of Russia's History by Catherine Merridale 2015 – The Last Empire by Serhii Plokhy 2016 – Towards the Flame by Dominic Lieven 2017 – The Russian Canvas: Painting in Imperial Russia (1757–1881) by Rosalind P. Blakesley 2018 – The War Within by Alexis Peri 2019 – Chernobyl: The History of a Nuclear Catastrophe by Serhii Plokhy 2020 – The Return of the Russian Leviathan by Sergei Medvedev References External links Art museums and galleries in London Ethnic museums in the United Kingdom Russian Cultural Centers Russian diaspora in the United Kingdom Russia–United Kingdom relations Soviet Union–United Kingdom relations Tourist attractions in the London Borough of Camden 1954 establishments in England Organizations established in 1954
```makefile libavformat/samidec.o: libavformat/samidec.c libavformat/avformat.h \ libavcodec/avcodec.h libavutil/samplefmt.h libavutil/avutil.h \ libavutil/common.h libavutil/attributes.h libavutil/macros.h \ libavutil/version.h libavutil/avconfig.h config.h libavutil/intmath.h \ libavutil/mem.h libavutil/error.h libavutil/internal.h libavutil/timer.h \ libavutil/log.h libavutil/cpu.h libavutil/dict.h libavutil/pixfmt.h \ libavutil/libm.h libavutil/intfloat.h libavutil/mathematics.h \ libavutil/rational.h libavutil/attributes.h libavutil/avutil.h \ libavutil/buffer.h libavutil/cpu.h libavutil/channel_layout.h \ libavutil/dict.h libavutil/frame.h libavutil/buffer.h \ libavutil/samplefmt.h libavutil/log.h libavutil/pixfmt.h \ libavutil/rational.h libavcodec/version.h libavutil/version.h \ libavformat/avio.h libavutil/common.h libavformat/version.h \ libavformat/internal.h libavutil/bprint.h libavutil/avstring.h \ libavformat/os_support.h libavformat/subtitles.h libavcodec/internal.h \ libavutil/mathematics.h libavcodec/avcodec.h libavutil/avstring.h \ libavutil/intreadwrite.h libavutil/bswap.h ```
Sex, Ecology, Spirituality: The Spirit of Evolution is a 1995 book by integral philosopher Ken Wilber. Wilber intended it to be the first volume of a series called The Kosmos Trilogy, but subsequent volumes were never produced. The German edition of Sex, Ecology, Spirituality was entitled Eros, Kosmos, Logos: Eine Jahrtausend-Vision ("A Millennium-vision"). The book has been both highly acclaimed by some authors and harshly criticized by others. Content Published in 1995, the book is a work in which Wilber grapples with modern philosophical naturalism, attempting to show its insufficiency as an explanation of being, evolution, and the meaning of life. He also describes an approach, called vision-logic, which he finds qualified to succeed modernism. Wilber's project in this book requires nothing less than a complete re-visioning of the history of Eastern and Western thought. There are four philosophers that Wilber finds to be of the highest importance: Plotinus, Neo-Platonic philosopher, who introduced the first nondual philosophy to the West Nagarjuna, Buddhist philosopher, who did the same in the East Friedrich Wilhelm Joseph von Schelling, German Idealist who created the first evolutionary nondual philosophy in the West and Sri Aurobindo, Hindu yogi and philosopher who did the same in the East Wilber argues that the account of existence presented by the Enlightenment is incomplete—it ignores the spiritual and noetic components of existence. He accordingly avoids the term cosmos, which is associated with merely physical existence. He prefers the term kosmos to refer to the sum of manifest existence, which harks back to the usage of the term by the Pythagoreans and other ancient mystics. Wilber conceives of the Kosmos as consisting of several concentric spheres: matter (the physical universe) plus life (the vital realm) plus mind (the mental realm) plus soul (the psychic realm) plus Spirit (the spiritual realm). Structure and theses In the introduction, Wilber describes the deeply dysteleological perspective of contemporary philosophical naturalism as "the philosophy of 'oops'". He describes the spiritual inadequacies of philosophical naturalism as the source of the contemporary world's menacing ecological crisis. He describes his methodology as outlining "orienting generalizations"—points on which agreement can be found that will reveal a shared world-space. Book One In the first chapter, "The Web of Life", Wilber uses Arthur Lovejoy's account of the Great Chain of Being to show how the mechanistic, materialistic modern worldview triumphed over the West's traditional, holistic, hierarchical view. The prevalence of pathological, dominating hierarchies throughout history has given hierarchy a bad name. But hierarchy is ultimately inescapable. Thus, we should concentrate on discovering which hierarchies actually do exist and on healing them. In the second chapter, "The Pattern That Connects", Wilber uses Arthur Koestler's account of holism and holarchy and Ludwig von Bertalanffy's General Systems Theory to describe approximately twenty tenets of all holons. Wilber calls the holistic version of the Great Chain of Being the "Great Nest of Spirit", because this account emphasizes that higher levels include as well as transcend lower ones. In the third chapter, "Individual And Social", Wilber describes Erich Jantsch's account of co-evolution and self-organizing systems. In the fourth chapter, "A View From Within", Wilber describes what he calls two fundamental aspects of existence: the "Left-hand path" (interiority) and the "Right-hand path" (exteriority). Gross reductionism—atomism, for example—consists of reducing a whole to its parts. Subtle reductionism—systems theory, for example—consists of reducing the interior to the exterior. Charles Taylor's work is used to show that the Enlightenment paradigm suffers from both gross and subtle reductionism. When Individual and Social spheres are added to the Interior and Exterior aspects of existence, four quadrants emerge. In the fifth chapter, "The Emergence Of Human Nature", Wilber uses Jean Gebser's account of the development of human consciousness to show how the West progressed from the magic to the mythic to the rational mentalities. This acknowledgment that all of existence is in development adds a third fundamental dimension—depth, or verticality—to Wilber's model of consciousness. In the sixth chapter, "Magic, Mythic And Beyond", Wilber uses Jean Piaget's theory of developmental psychology to describe the individual development of the contemporary human being. The "Pre/Trans Fallacy" is described. This is Wilber's term for "romantic" approaches, like deep ecology and ecofeminism, that often mistake earlier and more exclusivist modes of being for more mature, more inclusive modes. In the seventh chapter, "The Farther Reaches Of Human Nature", Wilber uses Jürgen Habermas' account of socio-cultural development to describe collective human development. Wilber describes vision-logic, a non-dominating, global awareness of holistic hierarchy, in which the pathological dissociations of Nature from Self, interiority from exteriority, and creativity from compassion are transformed into healthy differentiations. The validity claims of mystics are compared to Thomas Kuhn's account of scientific paradigms. In the eighth chapter, "The Depths Of The Divine", Wilber uses the accounts of four mystics to describe the possibilities for further individual spiritual development: the Transcendentalist Ralph Waldo Emerson on nature mysticism, the Christian saint Teresa of Avila on deity mysticism, Meister Eckhart on formless mysticism, and the Hindu guru Ramana Maharshi on nondual mysticism. Book Two In the ninth chapter, "The Way Up Is The Way Down", Wilber describes Neo-Platonist Plotinus' nondual metaphysics. "Ascending" philosophies are those that embrace the One, or the Absolute. "Descending" philosophies are those that embrace the Many, or Plenitude. Both ascent (driven by Eros, or creativity) and descent (driven by Agape, or compassion) are indispensable for a healthy, whole view. Plato's metaphysics, which also included both ascending and descending drives, is described. Plotinus' attack on Gnosticism is described in order to trace differences between healthy and pathological approaches to ascent. In the tenth chapter, "This-Worldly, Otherworldly", Wilber describes various attempts to repair modernism's fractured and flattened worldview, especially Schelling's existential idealism. In the eleventh chapter, "Brave New World", Wilber describes the liberating advantages as well as the spiritually crippling disadvantages of the modern, scientific mentality. In the twelfth chapter, "The Collapse Of The Kosmos", Wilber uses Taylor's account of the effects of the Enlightenment paradigm to show how vertical depth was collapsed into horizontal span and how the ascending drive was dissociated into the "Ego camp" (Immanuel Kant's and Johann Gottlieb Fichte's Transcendent Ego) and the "Eco camp" (Baruch Spinoza's deified Nature). Utilitarianism is described as mistaking sensory pleasure for Spirit, which ultimately resulted in a fixation on hedonism and sex in modern society. In the thirteenth chapter, "The Dominance Of The Descenders", Wilber describes how the West tried to embrace the Many through science, but failed to embrace the One through mysticism. The result was the rise of Thanatos (Sigmund Freud's death drive), and Phobos (existential fear), which are the respective pathological versions of Agape and Eros. In the fourteenth chapter, "The Unpacking Of God", Wilber describes aspects of particular historical nondual views that could possibly heal the noetic fissures in the West, especially spiritual practice as understood by Zen and Dzogchen Buddhism. The afterword, "At The Edge Of History", includes a meditation on Emptiness as the ground of Being in which all entities are ontologically healed. Reception In a review of the book, author Michael Murphy described it as one of the four most important books of the 20th century (the others being Aurobindo's The Life Divine, Heidegger's Being and Time, and Whitehead's Process and Reality). The cultural historian William Irwin Thompson harshly criticized Wilber's project, contending that systematic "theories of everything" were inherently misguided. He also dismissed Wilber's scholarly achievements as "undergraduate generalizations". A Publishers Weekly reviewer criticized the book as disorganized and wrote that Wilber “has unfortunately tried too hard to cram everything possible into this massive undertaking. The result is that even the hundreds of pages of notes (sometimes useful, sometimes merely repetitive) become a mass of ideas and names.” Quotation "Put differently, I sought a world philosophy. I sought an integral philosophy, one that would believably weave together the many pluralistic contexts of science, morals, aesthetics, Eastern as well as Western philosophy, and the world's great wisdom traditions. Not on the level of details—that is finitely impossible; but on the level of orienting generalizations: a way to suggest that the world is one, undivided whole, and related to itself in every way: a holistic philosophy for a holistic Kosmos: a world philosophy, an integral philosophy." — Ken Wilber, "Introduction to Volume Six of the Collected Works". References External links Ken Wilber at Shambhala 1995 non-fiction books 2001 non-fiction books Books by Ken Wilber Cognitive science literature English-language books Integral theory (Ken Wilber) Metaphysics books Shambhala Publications books
```go // _ _ // __ _____ __ ___ ___ __ _| |_ ___ // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ // \ V V / __/ (_| |\ V /| | (_| | || __/ // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| // // // CONTACT: hello@weaviate.io // package parameters import "github.com/weaviate/weaviate/entities/modulecapabilities" const name = "cohere" func AdditionalGenerativeParameters(client modulecapabilities.GenerativeClient) map[string]modulecapabilities.GenerativeProperty { return map[string]modulecapabilities.GenerativeProperty{ name: {Client: client, RequestParamsFunction: input, ResponseParamsFunction: output, ExtractRequestParamsFunction: extract}, } } ```
The canton of Lattes is an administrative division of the Hérault department, southern France. Its borders were modified at the French canton reorganisation which came into effect in March 2015. Its seat is in Lattes. Composition It consists of the following communes: Juvignac Lattes Lavérune Pérols Saint-Jean-de-Védas Councillors Pictures of the canton References External links Site of INSEE Lattes
```cmake include_guard(GLOBAL) include(extensions) include(python) # autoconf.h is generated by Kconfig and placed in # <build>/zephyr/include/generated/autoconf.h. # A project may request a custom location by setting AUTOCONF_H explicitly before # calling 'find_package(Zephyr)' or loading this module. set_ifndef(AUTOCONF_H ${PROJECT_BINARY_DIR}/include/generated/zephyr/autoconf.h) # Re-configure (Re-execute all CMakeLists.txt code) when autoconf.h changes set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${AUTOCONF_H}) # Folders needed for conf/mconf files (kconfig has no method of redirecting all output files). # conf/mconf needs to be run from a different directory because of: GH-3408 file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/kconfig/include/generated) file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/kconfig/include/config) set_ifndef(KCONFIG_NAMESPACE "CONFIG") set_ifndef(KCONFIG_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/Kconfig) file(MAKE_DIRECTORY ${KCONFIG_BINARY_DIR}) if(HWMv1) # Support multiple SOC_ROOT file(MAKE_DIRECTORY ${KCONFIG_BINARY_DIR}/soc) set(kconfig_soc_root ${SOC_ROOT}) list(REMOVE_ITEM kconfig_soc_root ${ZEPHYR_BASE}) set(soc_defconfig_file ${KCONFIG_BINARY_DIR}/soc/Kconfig.defconfig) set(OPERATION WRITE) foreach(root ${kconfig_soc_root}) file(APPEND ${soc_defconfig_file} "osource \"${root}/soc/$(ARCH)/*/Kconfig.defconfig\"\n") file(${OPERATION} ${KCONFIG_BINARY_DIR}/soc/Kconfig.soc.choice "osource \"${root}/soc/$(ARCH)/*/Kconfig.soc\"\n" ) file(${OPERATION} ${KCONFIG_BINARY_DIR}/soc/Kconfig.soc.arch "osource \"${root}/soc/$(ARCH)/Kconfig\"\n" "osource \"${root}/soc/$(ARCH)/*/Kconfig\"\n" ) set(OPERATION APPEND) endforeach() endif() # Support multiple shields in BOARD_ROOT, remove ZEPHYR_BASE as that is always sourced. set(kconfig_board_root ${BOARD_ROOT}) list(REMOVE_ITEM kconfig_board_root ${ZEPHYR_BASE}) set(OPERATION WRITE) foreach(root ${kconfig_board_root}) file(${OPERATION} ${KCONFIG_BINARY_DIR}/Kconfig.shield.defconfig "osource \"${root}/boards/shields/*/Kconfig.defconfig\"\n" ) file(${OPERATION} ${KCONFIG_BINARY_DIR}/Kconfig.shield "osource \"${root}/boards/shields/*/Kconfig.shield\"\n" ) set(OPERATION APPEND) endforeach() if(KCONFIG_ROOT) # Perform any variable substitutions if they are present string(CONFIGURE "${KCONFIG_ROOT}" KCONFIG_ROOT) zephyr_file(APPLICATION_ROOT KCONFIG_ROOT) # KCONFIG_ROOT has either been specified as a CMake variable or is # already in the CMakeCache.txt. This has precedence. elseif(EXISTS ${APPLICATION_SOURCE_DIR}/Kconfig) set(KCONFIG_ROOT ${APPLICATION_SOURCE_DIR}/Kconfig) else() set(KCONFIG_ROOT ${ZEPHYR_BASE}/Kconfig) endif() if(NOT DEFINED BOARD_DEFCONFIG) zephyr_file(CONF_FILES ${BOARD_DIR} DEFCONFIG BOARD_DEFCONFIG) endif() if(DEFINED BOARD_REVISION) zephyr_build_string(config_board_string BOARD ${BOARD} BOARD_QUALIFIERS ${BOARD_QUALIFIERS} BOARD_REVISION ${BOARD_REVISION} ) set(board_rev_file ${config_board_string}) if(EXISTS ${BOARD_DIR}/${board_rev_file}.conf) message(DEPRECATION "Use of '${board_rev_file}.conf' is deprecated, please switch to '${board_rev_file}_defconfig'") set_ifndef(BOARD_REVISION_CONFIG ${BOARD_DIR}/${board_rev_file}.conf) endif() endif() set(DOTCONFIG ${PROJECT_BINARY_DIR}/.config) set(PARSED_KCONFIG_SOURCES_TXT ${PROJECT_BINARY_DIR}/kconfig/sources.txt) if(CONF_FILE) string(CONFIGURE "${CONF_FILE}" CONF_FILE_EXPANDED) string(REPLACE " " ";" CONF_FILE_AS_LIST "${CONF_FILE_EXPANDED}") endif() if(EXTRA_CONF_FILE) string(CONFIGURE "${EXTRA_CONF_FILE}" EXTRA_CONF_FILE_EXPANDED) string(REPLACE " " ";" EXTRA_CONF_FILE_AS_LIST "${EXTRA_CONF_FILE_EXPANDED}") endif() zephyr_file(CONF_FILES ${BOARD_EXTENSION_DIRS} KCONF board_extension_conf_files SUFFIX ${FILE_SUFFIX}) # DTS_ROOT_BINDINGS is a semicolon separated list, this causes # problems when invoking kconfig_target since semicolon is a special # character in the C shell, so we make it into a question-mark # separated list instead. string(REPLACE ";" "?" DTS_ROOT_BINDINGS "${DTS_ROOT_BINDINGS}") # Export each `ZEPHYR_<module>_MODULE_DIR` to Kconfig. # This allows Kconfig files to refer relative from a modules root as: # source "$(ZEPHYR_FOO_MODULE_DIR)/Kconfig" foreach(module_name ${ZEPHYR_MODULE_NAMES}) zephyr_string(SANITIZE TOUPPER MODULE_NAME_UPPER ${module_name}) list(APPEND ZEPHYR_KCONFIG_MODULES_DIR "ZEPHYR_${MODULE_NAME_UPPER}_MODULE_DIR=${ZEPHYR_${MODULE_NAME_UPPER}_MODULE_DIR}" ) if(ZEPHYR_${MODULE_NAME_UPPER}_KCONFIG) list(APPEND ZEPHYR_KCONFIG_MODULES_DIR "ZEPHYR_${MODULE_NAME_UPPER}_KCONFIG=${ZEPHYR_${MODULE_NAME_UPPER}_KCONFIG}" ) endif() endforeach() # A list of common environment settings used when invoking Kconfig during CMake # configure time or menuconfig and related build target. string(REPLACE ";" "\\\;" SHIELD_AS_LIST_ESCAPED "${SHIELD_AS_LIST}") # cmake commands are escaped differently string(REPLACE ";" "\\;" SHIELD_AS_LIST_ESCAPED_COMMAND "${SHIELD_AS_LIST}") if(TOOLCHAIN_HAS_NEWLIB) set(_local_TOOLCHAIN_HAS_NEWLIB y) else() set(_local_TOOLCHAIN_HAS_NEWLIB n) endif() if(TOOLCHAIN_HAS_PICOLIBC) set(_local_TOOLCHAIN_HAS_PICOLIBC y) else() set(_local_TOOLCHAIN_HAS_PICOLIBC n) endif() set(COMMON_KCONFIG_ENV_SETTINGS PYTHON_EXECUTABLE=${PYTHON_EXECUTABLE} srctree=${ZEPHYR_BASE} KERNELVERSION=${KERNELVERSION} APPVERSION=${APP_VERSION_STRING} APP_VERSION_EXTENDED_STRING=${APP_VERSION_EXTENDED_STRING} APP_VERSION_TWEAK_STRING=${APP_VERSION_TWEAK_STRING} CONFIG_=${KCONFIG_NAMESPACE}_ KCONFIG_CONFIG=${DOTCONFIG} BOARD_DIR=${BOARD_DIR} BOARD=${BOARD} BOARD_REVISION=${BOARD_REVISION} BOARD_QUALIFIERS=${BOARD_QUALIFIERS} HWM_SCHEME=${HWM} KCONFIG_BINARY_DIR=${KCONFIG_BINARY_DIR} APPLICATION_SOURCE_DIR=${APPLICATION_SOURCE_DIR} ZEPHYR_TOOLCHAIN_VARIANT=${ZEPHYR_TOOLCHAIN_VARIANT} TOOLCHAIN_KCONFIG_DIR=${TOOLCHAIN_KCONFIG_DIR} TOOLCHAIN_HAS_NEWLIB=${_local_TOOLCHAIN_HAS_NEWLIB} TOOLCHAIN_HAS_PICOLIBC=${_local_TOOLCHAIN_HAS_PICOLIBC} EDT_PICKLE=${EDT_PICKLE} # Export all Zephyr modules to Kconfig ${ZEPHYR_KCONFIG_MODULES_DIR} ) if(HWMv1) list(APPEND COMMON_KCONFIG_ENV_SETTINGS ARCH=${ARCH} ARCH_DIR=${ARCH_DIR} ) else() # For HWMv2 we should in future generate a Kconfig.arch.v2 which instead # glob-sources all arch roots, but for Zephyr itself, the current approach is # sufficient. list(APPEND COMMON_KCONFIG_ENV_SETTINGS ARCH=* ARCH_DIR=${ZEPHYR_BASE}/arch ) endif() # Allow out-of-tree users to add their own Kconfig python frontend # targets by appending targets to the CMake list # 'EXTRA_KCONFIG_TARGETS' and setting variables named # 'EXTRA_KCONFIG_TARGET_COMMAND_FOR_<target>' # # e.g. # cmake -DEXTRA_KCONFIG_TARGETS=cli # -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_cli=cli_kconfig_frontend.py set(EXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig ${ZEPHYR_BASE}/scripts/kconfig/menuconfig.py ) set(EXTRA_KCONFIG_TARGET_COMMAND_FOR_guiconfig ${ZEPHYR_BASE}/scripts/kconfig/guiconfig.py ) set(EXTRA_KCONFIG_TARGET_COMMAND_FOR_hardenconfig ${ZEPHYR_BASE}/scripts/kconfig/hardenconfig.py ) set_ifndef(KCONFIG_TARGETS menuconfig guiconfig hardenconfig) foreach(kconfig_target ${KCONFIG_TARGETS} ${EXTRA_KCONFIG_TARGETS} ) add_custom_target( ${kconfig_target} ${CMAKE_COMMAND} -E env ZEPHYR_BASE=${ZEPHYR_BASE} ${COMMON_KCONFIG_ENV_SETTINGS} "SHIELD_AS_LIST=${SHIELD_AS_LIST_ESCAPED}" DTS_POST_CPP=${DTS_POST_CPP} DTS_ROOT_BINDINGS=${DTS_ROOT_BINDINGS} ${PYTHON_EXECUTABLE} ${EXTRA_KCONFIG_TARGET_COMMAND_FOR_${kconfig_target}} ${KCONFIG_ROOT} WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/kconfig USES_TERMINAL COMMAND_EXPAND_LISTS ) endforeach() # Support assigning Kconfig symbols on the command-line with CMake # cache variables prefixed according to the Kconfig namespace. # This feature is experimental and undocumented until it has undergone more # user-testing. unset(EXTRA_KCONFIG_OPTIONS) if(SYSBUILD) get_property(sysbuild_variable_names TARGET sysbuild_cache PROPERTY "SYSBUILD_CACHE:VARIABLES") zephyr_get(SYSBUILD_MAIN_APP) zephyr_get(SYSBUILD_NAME) foreach (name ${sysbuild_variable_names}) if("${name}" MATCHES "^${SYSBUILD_NAME}_${KCONFIG_NAMESPACE}_") string(REGEX REPLACE "^${SYSBUILD_NAME}_" "" org_name ${name}) get_property(${org_name} TARGET sysbuild_cache PROPERTY ${name}) list(APPEND cache_variable_names ${org_name}) elseif(SYSBUILD_MAIN_APP AND "${name}" MATCHES "^${KCONFIG_NAMESPACE}_") get_property(${name} TARGET sysbuild_cache PROPERTY ${name}) list(APPEND cache_variable_names ${name}) endif() endforeach() else() get_cmake_property(cache_variable_names CACHE_VARIABLES) list(FILTER cache_variable_names INCLUDE REGEX "^(CLI_)?${KCONFIG_NAMESPACE}_") list(TRANSFORM cache_variable_names REPLACE "^CLI_" "") list(REMOVE_DUPLICATES cache_variable_names) endif() # Sorting the variable names will make checksum calculation more stable. list(SORT cache_variable_names) foreach (name ${cache_variable_names}) if(DEFINED ${name}) # When a cache variable starts with the 'KCONFIG_NAMESPACE' value, it is # assumed to be a Kconfig symbol assignment from the CMake command line. set(EXTRA_KCONFIG_OPTIONS "${EXTRA_KCONFIG_OPTIONS}\n${name}=${${name}}" ) set(CLI_${name} "${${name}}") list(APPEND cli_config_list ${name}) elseif(DEFINED CLI_${name}) # An additional 'CLI_' prefix means that the value was set by the user in # an earlier invocation. Append it to extra config only if no new value was # assigned above. set(EXTRA_KCONFIG_OPTIONS "${EXTRA_KCONFIG_OPTIONS}\n${name}=${CLI_${name}}" ) endif() endforeach() if(EXTRA_KCONFIG_OPTIONS) set(EXTRA_KCONFIG_OPTIONS_FILE ${PROJECT_BINARY_DIR}/misc/generated/extra_kconfig_options.conf) file(WRITE ${EXTRA_KCONFIG_OPTIONS_FILE} ${EXTRA_KCONFIG_OPTIONS} ) endif() # Bring in extra configuration files dropped in by the user or anyone else; # make sure they are set at the end so we can override any other setting file(GLOB config_files ${APPLICATION_BINARY_DIR}/*.conf) list(SORT config_files) set( merge_config_files ${BOARD_DEFCONFIG} ${BOARD_REVISION_CONFIG} ${board_extension_conf_files} ${CONF_FILE_AS_LIST} ${shield_conf_files} ${EXTRA_CONF_FILE_AS_LIST} ${EXTRA_KCONFIG_OPTIONS_FILE} ${config_files} ) # Create a list of absolute paths to the .config sources from # merge_config_files, which is a mix of absolute and relative paths. set(merge_config_files_with_absolute_paths "") foreach(f ${merge_config_files}) if(IS_ABSOLUTE ${f}) set(path ${f}) else() set(path ${APPLICATION_CONFIG_DIR}/${f}) endif() list(APPEND merge_config_files_with_absolute_paths ${path}) endforeach() set(merge_config_files ${merge_config_files_with_absolute_paths}) foreach(f ${merge_config_files}) if(NOT EXISTS ${f} OR IS_DIRECTORY ${f}) message(FATAL_ERROR "File not found: ${f}") endif() endforeach() # Calculate a checksum of merge_config_files to determine if we need # to re-generate .config set(merge_config_files_checksum "") foreach(f ${merge_config_files}) file(MD5 ${f} checksum) set(merge_config_files_checksum "${merge_config_files_checksum}${checksum}") endforeach() # Create a new .config if it does not exists, or if the checksum of # the dependencies has changed set(merge_config_files_checksum_file ${PROJECT_BINARY_DIR}/.cmake.dotconfig.checksum) set(CREATE_NEW_DOTCONFIG 1) # Check if the checksum file exists too before trying to open it, though it # should under normal circumstances if(EXISTS ${DOTCONFIG} AND EXISTS ${merge_config_files_checksum_file}) # Read out what the checksum was previously file(READ ${merge_config_files_checksum_file} merge_config_files_checksum_prev ) if( ${merge_config_files_checksum} STREQUAL ${merge_config_files_checksum_prev} ) # Checksum is the same as before set(CREATE_NEW_DOTCONFIG 0) endif() endif() if(CREATE_NEW_DOTCONFIG) set(input_configs_flags --handwritten-input-configs) set(input_configs ${merge_config_files} ${FORCED_CONF_FILE}) else() set(input_configs ${DOTCONFIG} ${FORCED_CONF_FILE}) endif() if(DEFINED FORCED_CONF_FILE) list(APPEND input_configs_flags --forced-input-configs) endif() cmake_path(GET AUTOCONF_H PARENT_PATH autoconf_h_path) if(NOT EXISTS ${autoconf_h_path}) file(MAKE_DIRECTORY ${autoconf_h_path}) endif() execute_process( COMMAND ${CMAKE_COMMAND} -E env ${COMMON_KCONFIG_ENV_SETTINGS} SHIELD_AS_LIST=${SHIELD_AS_LIST_ESCAPED_COMMAND} ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/kconfig/kconfig.py --zephyr-base=${ZEPHYR_BASE} ${input_configs_flags} ${KCONFIG_ROOT} ${DOTCONFIG} ${AUTOCONF_H} ${PARSED_KCONFIG_SOURCES_TXT} ${input_configs} WORKING_DIRECTORY ${APPLICATION_SOURCE_DIR} # The working directory is set to the app dir such that the user # can use relative paths in CONF_FILE, e.g. CONF_FILE=nrf5.conf RESULT_VARIABLE ret ) if(NOT "${ret}" STREQUAL "0") message(FATAL_ERROR "command failed with return code: ${ret}") endif() if(CREATE_NEW_DOTCONFIG) # Write the new configuration fragment checksum. Only do this if kconfig.py # succeeds, to avoid marking zephyr/.config as up-to-date when it hasn't been # regenerated. file(WRITE ${merge_config_files_checksum_file} ${merge_config_files_checksum}) endif() # Read out the list of 'Kconfig' sources that were used by the engine. file(STRINGS ${PARSED_KCONFIG_SOURCES_TXT} PARSED_KCONFIG_SOURCES_LIST ENCODING UTF-8) # Force CMAKE configure when the Kconfig sources or configuration files changes. foreach(kconfig_input ${merge_config_files} ${DOTCONFIG} ${PARSED_KCONFIG_SOURCES_LIST} ) set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS ${kconfig_input}) endforeach() add_custom_target(config-twister DEPENDS ${DOTCONFIG}) # Remove the CLI Kconfig symbols from the namespace and # CMakeCache.txt. If the symbols end up in DOTCONFIG they will be # re-introduced to the namespace through 'import_kconfig'. foreach (name ${cli_config_list}) unset(${name}) unset(${name} CACHE) endforeach() # Before importing the symbol values from DOTCONFIG, process the CLI values by # re-importing them from EXTRA_KCONFIG_OPTIONS_FILE. Later, we want to compare # the values from both files, and 'import_kconfig' will make this easier. if(EXTRA_KCONFIG_OPTIONS_FILE) import_kconfig(${KCONFIG_NAMESPACE} ${EXTRA_KCONFIG_OPTIONS_FILE}) foreach (name ${cache_variable_names}) if(DEFINED ${name}) set(temp_${name} "${${name}}") unset(${name}) endif() endforeach() endif() # Import the .config file and make all settings available in CMake processing. import_kconfig(${KCONFIG_NAMESPACE} ${DOTCONFIG}) # Cache the CLI Kconfig symbols that survived through Kconfig, prefixed with CLI_. # Remove those who might have changed compared to earlier runs, if they no longer appears. foreach (name ${cache_variable_names}) # Note: "${CLI_${name}}" is the verbatim value of ${name} from command-line, # while "${temp_${name}}" is the same value processed by 'import_kconfig'. if(((NOT DEFINED ${name}) AND (NOT DEFINED temp_${name})) OR ((DEFINED ${name}) AND (DEFINED temp_${name}) AND (${name} STREQUAL temp_${name}))) set(CLI_${name} ${CLI_${name}} CACHE INTERNAL "") else() unset(CLI_${name} CACHE) endif() unset(temp_${name}) endforeach() ```
Niels Birbaumer (born 11 May 1945) is an Austrian academic who served as a professor at the University of Tübingen until 2019. Research career In 2017, Birbaumer's study claimed that a brain-computer interface (BCI) device, applied via an electrode cap, enabled four ALS patients to communicate binary responses. This drew considerable attention due to its implications for quality of life. However, the study's replicability was questioned, leading to a German Research Foundation (DFG) investigation, which found the research data incomplete and the results flawed. As a result, Birbaumer's work was retracted, his funding revoked, and he was dismissed from the university. He relocated to Italy. Despite the controversy, Birbaumer and his colleague Chaudhary received public support from several scientists. Notably, the BCI technology, which was first demonstrated successfully in a tetraplegic patient in 2006, was applied in Birbaumer's research to a patient without any voluntary muscle control for the first time. The BCI was implanted in 2019 into the brain of a 34-year-old man with locked-in syndrome. After several trials, researchers decoded "yes" or "no" signals into sentences. The study, which spanned 462 days, was meticulously documented. Seward Rutkove, Chair of Neurology at Beth Israel Deaconess Medical Center, affirmed the BCI's efficacy but questioned its practicality due to cost and limited applicability. In March 2022, Birbaumer published a new study in Nature Communications that builds on his prior work. Birbaumer and Chaudhary also claimed to have won lawsuits supporting the integrity of their PLOS report, showcasing the use of a BCI in a patient devoid of voluntary muscle control. In April 2022, DFG and Birbaumer settled the legal dispute. References 1945 births Living people Austrian academics
```php <?php namespace Psalm\Issue; final class MismatchingDocblockReturnType extends CodeIssue { public const ERROR_LEVEL = 4; public const SHORTCODE = 142; } ```
```objective-c /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4: #ident "$Id$" /* COPYING CONDITIONS NOTICE: This program is free software; you can redistribute it and/or modify published by the Free Software Foundation, and provided that the following conditions are met: * Redistributions of source code must retain this COPYING CONDITIONS NOTICE, the COPYRIGHT NOTICE (below), the DISCLAIMER (below), the UNIVERSITY PATENT NOTICE (below), the PATENT MARKING NOTICE (below), and the PATENT RIGHTS GRANT (below). * Redistributions in binary form must reproduce this COPYING CONDITIONS NOTICE, the COPYRIGHT NOTICE (below), the DISCLAIMER (below), the UNIVERSITY PATENT NOTICE (below), the PATENT MARKING NOTICE (below), and the PATENT RIGHTS GRANT (below) in the documentation and/or other materials provided with the distribution. along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. COPYRIGHT NOTICE: TokuFT, Tokutek Fractal Tree Indexing Library. DISCLAIMER: This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU UNIVERSITY PATENT NOTICE: The technology is licensed by the Massachusetts Institute of Technology, Rutgers State University of New Jersey, and the Research Foundation of State University of New York at Stony Brook under United States of America Serial No. 11/760379 and to the patents and/or patent applications resulting from it. PATENT MARKING NOTICE: This software is covered by US Patent No. 8,185,551. This software is covered by US Patent No. 8,489,638. PATENT RIGHTS GRANT: "THIS IMPLEMENTATION" means the copyrightable works distributed by Tokutek as part of the Fractal Tree project. "PATENT CLAIMS" means the claims of patents that are owned or licensable by Tokutek, both currently or in the future; and that in the absence of this license would be infringed by THIS IMPLEMENTATION or by using or running THIS IMPLEMENTATION. "PATENT CHALLENGE" shall mean a challenge to the validity, patentability, enforceability and/or non-infringement of any of the PATENT CLAIMS or otherwise opposing any of the PATENT CLAIMS. Tokutek hereby grants to you, for the term and geographical scope of the PATENT CLAIMS, a 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, transfer, and otherwise run, modify, and propagate the contents of THIS IMPLEMENTATION, where such license applies only to the PATENT CLAIMS. This grant does not include claims that would be infringed only as a consequence of further modifications of THIS IMPLEMENTATION. If you or your agent or licensee institute or order or agree to the institution of patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that THIS IMPLEMENTATION constitutes direct or contributory patent infringement, or inducement of patent infringement, then any rights such litigation is filed. If you or your agent or exclusive licensee institute or order or agree to the institution of a PATENT CHALLENGE, then Tokutek may terminate any rights granted to you */ #pragma once #include <toku_htod.h> #include <arpa/inet.h> static inline uint32_t toku_htonl(uint32_t i) { return htonl(i); } static inline uint32_t toku_ntohl(uint32_t i) { return ntohl(i); } ```
```javascript /* see path_to_url path_to_url There are three tests: 1. csshyphens - tests hyphens:auto actually adds hyphens to text 2. softhyphens - tests that &shy; does its job 3. softhyphensfind - tests that in-browser Find functionality still works correctly with &shy; These tests currently require document.body to be present Hyphenation is language specific, sometimes. See for more details: path_to_url#sc_svn975_313 If loading Hyphenator.js via Modernizr.load, be cautious of issue 158: path_to_url More details at path_to_url */ (function() { if (!document.body){ window.console && console.warn('document.body doesn\'t exist. Modernizr hyphens test needs it.'); return; } // functional test of adding hyphens:auto function test_hyphens_css() { try { /* create a div container and a span within that * these have to be appended to document.body, otherwise some browsers can give false negative */ var div = document.createElement('div'), span = document.createElement('span'), divStyle = div.style, spanHeight = 0, spanWidth = 0, result = false, firstChild = document.body.firstElementChild || document.body.firstChild; div.appendChild(span); span.innerHTML = 'Bacon ipsum dolor sit amet jerky velit in culpa hamburger et. Laborum dolor proident, enim dolore duis commodo et strip steak. Salami anim et, veniam consectetur dolore qui tenderloin jowl velit sirloin. Et ad culpa, fatback cillum jowl ball tip ham hock nulla short ribs pariatur aute. Pig pancetta ham bresaola, ut boudin nostrud commodo flank esse cow tongue culpa. Pork belly bresaola enim pig, ea consectetur nisi. Fugiat officia turkey, ea cow jowl pariatur ullamco proident do laborum velit sausage. Magna biltong sint tri-tip commodo sed bacon, esse proident aliquip. Ullamco ham sint fugiat, velit in enim sed mollit nulla cow ut adipisicing nostrud consectetur. Proident dolore beef ribs, laborum nostrud meatball ea laboris rump cupidatat labore culpa. Shankle minim beef, velit sint cupidatat fugiat tenderloin pig et ball tip. Ut cow fatback salami, bacon ball tip et in shank strip steak bresaola. In ut pork belly sed mollit tri-tip magna culpa veniam, short ribs qui in andouille ham consequat. Dolore bacon t-bone, velit short ribs enim strip steak nulla. Voluptate labore ut, biltong swine irure jerky. Cupidatat excepteur aliquip salami dolore. Ball tip strip steak in pork dolor. Ad in esse biltong. Dolore tenderloin exercitation ad pork loin t-bone, dolore in chicken ball tip qui pig. Ut culpa tongue, sint ribeye dolore ex shank voluptate hamburger. Jowl et tempor, boudin pork chop labore ham hock drumstick consectetur tri-tip elit swine meatball chicken ground round. Proident shankle mollit dolore. Shoulder ut duis t-bone quis reprehenderit. Meatloaf dolore minim strip steak, laboris ea aute bacon beef ribs elit shank in veniam drumstick qui. Ex laboris meatball cow tongue pork belly. Ea ball tip reprehenderit pig, sed fatback boudin dolore flank aliquip laboris eu quis. Beef ribs duis beef, cow corned beef adipisicing commodo nisi deserunt exercitation. Cillum dolor t-bone spare ribs, ham hock est sirloin. Brisket irure meatloaf in, boudin pork belly sirloin ball tip. Sirloin sint irure nisi nostrud aliqua. Nostrud nulla aute, enim officia culpa ham hock. Aliqua reprehenderit dolore sunt nostrud sausage, ea boudin pork loin ut t-bone ham tempor. Tri-tip et pancetta drumstick laborum. Ham hock magna do nostrud in proident. Ex ground round fatback, venison non ribeye in.'; document.body.insertBefore(div, firstChild); /* get size of unhyphenated text */ divStyle.cssText = 'position:absolute;top:0;left:0;width:5em;text-align:justify;text-justification:newspaper;'; spanHeight = span.offsetHeight; spanWidth = span.offsetWidth; /* compare size with hyphenated text */ divStyle.cssText = 'position:absolute;top:0;left:0;width:5em;text-align:justify;'+ 'text-justification:newspaper;'+ Modernizr._prefixes.join('hyphens:auto; '); result = (span.offsetHeight != spanHeight || span.offsetWidth != spanWidth); /* results and cleanup */ document.body.removeChild(div); div.removeChild(span); return result; } catch(e) { return false; } } // for the softhyphens test function test_hyphens(delimiter, testWidth) { try { /* create a div container and a span within that * these have to be appended to document.body, otherwise some browsers can give false negative */ var div = document.createElement('div'), span = document.createElement('span'), divStyle = div.style, spanSize = 0, result = false, result1 = false, result2 = false, firstChild = document.body.firstElementChild || document.body.firstChild; divStyle.cssText = 'position:absolute;top:0;left:0;overflow:visible;width:1.25em;'; div.appendChild(span); document.body.insertBefore(div, firstChild); /* get height of unwrapped text */ span.innerHTML = 'mm'; spanSize = span.offsetHeight; /* compare height w/ delimiter, to see if it wraps to new line */ span.innerHTML = 'm' + delimiter + 'm'; result1 = (span.offsetHeight > spanSize); /* if we're testing the width too (i.e. for soft-hyphen, not zws), * this is because tested Blackberry devices will wrap the text but not display the hyphen */ if (testWidth) { /* get width of wrapped, non-hyphenated text */ span.innerHTML = 'm<br />m'; spanSize = span.offsetWidth; /* compare width w/ wrapped w/ delimiter to see if hyphen is present */ span.innerHTML = 'm' + delimiter + 'm'; result2 = (span.offsetWidth > spanSize); } else { result2 = true; } /* results and cleanup */ if (result1 === true && result2 === true) { result = true; } document.body.removeChild(div); div.removeChild(span); return result; } catch(e) { return false; } } // testing if in-browser Find functionality will work on hyphenated text function test_hyphens_find(delimiter) { try { /* create a dummy input for resetting selection location, and a div container * these have to be appended to document.body, otherwise some browsers can give false negative * div container gets the doubled testword, separated by the delimiter * Note: giving a width to div gives false positive in iOS Safari */ var dummy = document.createElement('input'), div = document.createElement('div'), testword = 'lebowski', result = false, textrange, firstChild = document.body.firstElementChild || document.body.firstChild; div.innerHTML = testword + delimiter + testword; document.body.insertBefore(div, firstChild); document.body.insertBefore(dummy, div); /* reset the selection to the dummy input element, i.e. BEFORE the div container * stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area */ if (dummy.setSelectionRange) { dummy.focus(); dummy.setSelectionRange(0,0); } else if (dummy.createTextRange) { textrange = dummy.createTextRange(); textrange.collapse(true); textrange.moveEnd('character', 0); textrange.moveStart('character', 0); textrange.select(); } /* try to find the doubled testword, without the delimiter */ if (window.find) { result = window.find(testword + testword); } else { try { textrange = window.self.document.body.createTextRange(); result = textrange.findText(testword + testword); } catch(e) { result = false; } } document.body.removeChild(div); document.body.removeChild(dummy); return result; } catch(e) { return false; } } Modernizr.addTest("csshyphens", function() { if (!Modernizr.testAllProps('hyphens')) return false; /* Chrome lies about its hyphens support so we need a more robust test crbug.com/107111 */ try { return test_hyphens_css(); } catch(e) { return false; } }); Modernizr.addTest("softhyphens", function() { try { // use numeric entity instead of &shy; in case it's XHTML return test_hyphens('&#173;', true) && test_hyphens('&#8203;', false); } catch(e) { return false; } }); Modernizr.addTest("softhyphensfind", function() { try { return test_hyphens_find('&#173;') && test_hyphens_find('&#8203;'); } catch(e) { return false; } }); })(); ```
Events from the year 1997 in Iran. Incumbents Supreme Leader: Ali Khamenei President: Akbar Hashemi Rafsanjani (until August 2), Mohammad Khatami (starting August 2) Vice President: Hassan Habibi Chief Justice: Mohammad Yazdii Events Iranian presidential election, 1997. 28 February – The 6.1 Ardabil earthquake affected northern Iran with a maximum Mercalli intensity of VIII (Severe), killing 1,100, injuring 2,600, and leaving 36,000 homeless. 10 May – The 7.3 Qayen earthquake affected eastern Iran with a maximum Mercalli intensity of X (Extreme). At least 1,567 were killed and 2,300 were injured. 2 August – Mohammad Khatami became president of Iran. See also Years in Iraq Years in Afghanistan References Iran Years of the 20th century in Iran 1990s in Iran Iran
Ex parte Levitt, 302 U.S. 633 (1937), is a United States Supreme Court case that dismissed objections to the appointment of Justice Hugo Black for lack of standing. Background In March 1937, Congress passed an act that increased the pension paid to a Supreme Court justice who retired when 70 years or older. Hugo Black was a member of the Senate when the legislation was enacted. The ineligibility clause of the U.S. Constitution bars members of the Senate and House from being "[a]ppointed to any civil Office under the Authority of the United States, which shall have been created, or the Emoluments whereof shall have been increased during such time..." In August 1937, President Franklin D. Roosevelt nominated Black to the Supreme Court, and the U.S. Senate confirmed Black's appointment. On Black’s first day on the court, October 4, 1937, Albert Levitt, a former U.S. assistant attorney general, rose and addressed Chief Justice Charles Evans Hughes. He said he wanted to file a brief asking the Court to order Black to show cause why he should be allowed to take the seat of an Associate Justice. Hughes told Levitt to do so in writing, and Levitt then filed a pro se motion in the Supreme Court requesting leave to petition for an order requiring Black to show cause why he should be permitted to serve as an associate justice of the Supreme Court. Opinion of the Court In a brief per curiam opinion, the court dismissed the case for want of standing: The grounds of this motion are that the appointment of Mr. Justice Black by the President and the confirmation thereof by the Senate of the United States were null and void by reason of his ineligibility under Article I, Section 6, Clause 2, of the Constitution of the United States, and because there was no vacancy for which the appointment could lawfully be made. The motion papers disclose no interest upon the part of the petitioner other than that of a citizen and a member of the bar of this Court. That is insufficient. It is an established principle that to entitle a private individual to invoke the judicial power to determine the validity of executive or legislative action he must show that he has sustained or is immediately in danger of sustaining a direct injury as the result of that action and it is not sufficient that he has merely a general interest common to all members of the public. Tyler v. Judges, 179 U.S. 405, 406; Southern Ry. Co. v. King, 217 U.S. 524, 534; Newman v. Frizzell, 238 U.S. 537, 549, 550; Fairchild v. Hughes, 258 U.S. 126, 129; Massachusetts v. Mellon, 262 U.S. 447, 488. The motion is denied. See also Saxbe fix Schlesinger v. Reservists Comm. to Stop the War, 418 U.S. 208, 219 (1974) References United States Constitution Article One case law United States Constitution Article Three case law United States Supreme Court cases United States Supreme Court cases of the Hughes Court 1937 in United States case law Presidency of Franklin D. Roosevelt Conflict of interest mitigation History of the Supreme Court of the United States
Violent Cop may refer to: Violent Cop (1989 film) Violent Cop (2000 Steve Cheng film)
Baron was a Japanese bureaucrat, statesman and cabinet minister, active in Meiji period Empire of Japan. Biography Utsumi was born to a samurai family in Chōshū Domain, in what is now part of the city of Yamaguchi, Yamaguchi Prefecture). As a youth, he participated in the Kinmon Incident in Kyoto, where pro-sonnō Jōi Chōshū forces sought to seize control of the Emperor to overthrow the Tokugawa shogunate. After the Meiji Restoration, he went to Tokyo and entered into service of the new Meiji government, and was selected as a member of the 1871 Iwakura Mission, visiting the United States, Great Britain and other European countries. After his return to Japan, he was appointed governor of Nagasaki Prefecture (1877–1883), Mie Prefecture (1884–1885), Hyōgo Prefecture (1885–1889), Nagano Prefecture (1889–1891), Kanagawa Prefecture (1891–1893), Osaka Prefecture (1895–1897), and Kyoto Prefecture (1897–1900). He then served as chairman of the Board of Audit from 1900 to 1901. While Utsumi was Governor of Nagasaki, he hosted former United States President Ulysses S. Grant on his visit to Japan. Utsumi was ennobled with the kazoku peerage title danshaku (baron) in 1887. He also served as a member of the House of Peers from its inception in 1890. Utsumi was selected to become Home Minister in the cabinet of the 1st administration of Prime Minister Katsura Tarō in 1901. References Keene, Donald. Emperor Of Japan: Meiji And His World, 1852–1912. Columbia University Press (2005). Fredrick, Louis. Japan Encyclopedia. Harvard University Press (2005). Sims, Richard. Japanese Political History Since the Meiji Renovation 1868-2000. Palgrave Macmillan. 1843 births 1905 deaths Samurai People from Chōshū Domain Government ministers of Japan Kazoku People of Meiji-period Japan Ministers of Home Affairs of Japan Members of the House of Peers (Japan) Governors of Nagano Governors of Kyoto Governors of Osaka Governors of Kanagawa Prefecture Members of the Iwakura Mission
The Cruickshank Botanic Gardens in Aberdeen, Scotland, were built on land presented to the University of Aberdeen in 1898 by Miss Anne Cruickshank to commemorate her brother Dr. Alexander Cruickshank. The 11 acre (45,000 m2) garden is located in a low-lying and fairly sheltered area of Aberdeen, less than from the North Sea. The Cruickshank Botanic Garden is partly owned and financed by the university and partly by the Cruickshank Botanic Gardens Trust. The Friends of the Cruickshank Botanic Garden actively promote and support the garden. Each summer vacation the Friends provide a bursary to allow an undergraduate student interested in botany to gain work experience in the gardens. Although open to the public, the gardens are extensively used for both teaching and research purposes. The Natural History Centre regularly guides school parties round the Garden, and the School of Biological Sciences of the University of Aberdeen holds a reception for graduands and their guests here each July. See also Green spaces and walkways in Aberdeen References External links Extract taken from the University of Aberdeen webpage University of Aberdeen Botanical gardens in Scotland Gardens in Aberdeen 1898 establishments in Scotland
The 2005–06 All-Ireland Intermediate Club Hurling Championship was the second staging of the All-Ireland Intermediate Club Hurling Championship since its establishment by the Gaelic Athletic Association in 2004. The All-Ireland final was played on 12 February 2006 at Croke Park in Dublin, between Dicksboro from Kilkenny and Ballinhassig from Cork, in what was their first ever meeting in the final. Dicksboro won the match by 2-13 to 1-13 to claim their first All-Ireland title. Leinster Intermediate Club Hurling Championship Leinster final Munster Intermediate Club Hurling Championship Munster quarter-final Munster semi-finals Munster final All-Ireland Intermediate Club Hurling Championship All-Ireland quarter-finals All-Ireland semi-finals All-Ireland final References All-Ireland Intermediate Club Hurling Championship All-Ireland Intermediate Club Hurling Championship All-Ireland Intermediate Club Hurling Championship
```objective-c /* * This file is part of the SDWebImage package. * (c) Olivier Poitrey <rs@dailymotion.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ #import "SDImageCoder.h" SDImageCoderOption const SDImageCoderDecodeFirstFrameOnly = @"decodeFirstFrameOnly"; SDImageCoderOption const SDImageCoderDecodeScaleFactor = @"decodeScaleFactor"; SDImageCoderOption const SDImageCoderDecodePreserveAspectRatio = @"decodePreserveAspectRatio"; SDImageCoderOption const SDImageCoderDecodeThumbnailPixelSize = @"decodeThumbnailPixelSize"; SDImageCoderOption const SDImageCoderEncodeFirstFrameOnly = @"encodeFirstFrameOnly"; SDImageCoderOption const SDImageCoderEncodeCompressionQuality = @"encodeCompressionQuality"; SDImageCoderOption const SDImageCoderEncodeBackgroundColor = @"encodeBackgroundColor"; SDImageCoderOption const SDImageCoderEncodeMaxPixelSize = @"encodeMaxPixelSize"; SDImageCoderOption const SDImageCoderEncodeMaxFileSize = @"encodeMaxFileSize"; SDImageCoderOption const SDImageCoderEncodeEmbedThumbnail = @"encodeEmbedThumbnail"; SDImageCoderOption const SDImageCoderWebImageContext = @"webImageContext"; ```
```javascript 'use strict' const { readFile } = require('fs/promises') const { resolve } = require('path') const test = require('ava') const metascraper = require('../../..')([ require('metascraper-author')(), require('metascraper-date')(), require('metascraper-description')(), require('metascraper-audio')(), require('metascraper-video')(), require('metascraper-image')(), require('metascraper-lang')(), require('metascraper-logo')(), require('metascraper-logo-favicon')(), require('metascraper-manifest')(), require('metascraper-publisher')(), require('metascraper-title')(), require('metascraper-url')(), require('metascraper-readability')() ]) const url = 'path_to_url test('mashable', async t => { const html = await readFile(resolve(__dirname, 'input.html')) const metadata = await metascraper({ html, url }) t.snapshot(metadata) }) ```
```xml <resources> <!-- Base application theme. --> <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <!-- Customize your theme here. --> <item name="colorPrimary">@color/primary</item> <item name="colorPrimaryDark">@color/primary_dark</item> <item name="colorAccent">@color/accent</item> </style> <style name="AppTheme.NoActionBar"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> </style> <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" /> <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" /> </resources> ```
Sasamorpha is a genus of East Asian bamboo in the grass family. Species Sasamorpha borealis (Hack.) Nakai – Korea, Japan, Sakhalin Sasamorpha hubeiensis C.H.Hu – Hubei, Jiangxi Sasamorpha oshidensis (Makino & Uchida) Nakai – Japan Sasamorpha qingyuanensis C.H.Hu – Zhejiang Sasamorpha sinica (Keng) Koidz. – Anhui, Zhejiang Formerly included several species now considered better suited to other genera: Indocalamus, Sasa. References Bambusoideae Bambusoideae genera
"The Cuckoo" (Roud 413) is a traditional English folk song, also sung in the United States, Canada, Scotland and Ireland. The song is known by many names, including "The Coo-Coo", "The Coo-Coo Bird", "The Cuckoo Bird", "The Cuckoo Is a Pretty Bird", "The Evening Meeting", "The Unconstant Lover", "Bunclody" and "Going to Georgia". Lyrics usually include the line (or a slight variation): "The cuckoo is a pretty bird, she sings as she flies; she brings us glad tidings, and she tells us no lies." According to Thomas Goldsmith of The Raleigh News & Observer, "The Cuckoo" is an interior monologue where the singer "relates his desires — to gamble, to win, to regain love's affection." The song is featured in the E.L. Doctorow book The March. A soldier suffering from a metal spike stuck in his head sings verses from the song. Synopsis Usually, but not always, the song begins with a verse about the cuckoo, for example: The cuckoo is a fine bird he sings as he flies,He brings us good tidings and tells us no lies.He sucks the sweet flowers to make his voice clear,And the more he cries cuckoo, the summer is nigh. (In many American versions, the cuckoo patriotically "never sings 'cuckoo' till the fourth of July". In some ornithologically observant English versions "she sucks little birds' eggs to make her voice clear.") A young woman (usually - sometimes a young man) complains of the inconstancy of young men (or women) and the pain of losing in love. The song often consists mainly of "floating" verses (verses found in more than one song expressing common experiences and emotions), and apart from the constant cuckoo verse, usually sung at the beginning, there is no fixed order, though sometimes a verse sounds as if it is going to be the start of a story: A-walking, a-talking, a-walking was I,To meet my true lover, he'll come by and by,To meet him in the meadows is all my delight,A-walking and talking from morning till night. but then: O, meeting is a pleasure and parting is a grief,An unconstant lover is worse than a thief,A thief can but rob you and take all you have,An unconstant lover will bring you to the grave. Often there is a cautionary moral: Come all pretty maidens wherever you be,Don't trust in young soldiers to any degree,They will kiss you and court you, poor girls to deceive,There's not one in twenty poor girls can believe. Or a more symbolic warning, here in a Mississippi version: Come all you fair maidens take warning of me,Don't place your affections on a sycamore tree,For the top it will wither, and the roots they will die,And if I'm forsaken, I know not for why. Bunclody An Irish song, this uses a similar tune and starts with verses extolling the beauty of Bunclody, a town in Co. Wexford. The third verse is the standard "Cuckoo is a pretty bird" and after an adapted floating verse: If I were a clerkAnd I could write a good handI would write to my true loveSo that she'd understandThat I am a young fellowWho is wounded in loveOnce I lived in BuncloudyBut now must remove. The song ends in a sad verse about emigration. There is a fine recording of this song from Luke Kelly of The Dubliners. Note on the Cuckoo The cuckoo (Cuculus canorus) was until recent times a common visitor to the English countryside in spring and early summer, and its distinctive call was considered the first sign of spring. It is a nest parasite, and the female really does eat an egg of the host species when she lays her own egg in the nest. It is an important bird in folklore. The cuckoo has traditionally been associated with sexual incontinence and infidelity. An old name for the cuckoo was "cuckold's chorister", and old broadsides played on the idea that the cuckoo's call was a reproach to husbands whose wives were unfaithful: The smith that on his anvill the iron hard doth ding:He cannot heare the cuckoo though he loud doth singIn poynting of plow harnesse, he labours till he sweat,While another in his forge at home may steale a private heat.– From The Cuckowes Comendation: / Or, the Cuckolds Credit: Being a merry Maying Song in Praise of the Cuckow., c.1625 History Early printed versions "The Cuckoo" was published as a broadside by London and provincial printers, but does not seem to have been common. Broadsides are not precisely dated, but the earliest in the Bodleian Ballad Collection was published between 1780 and 1812 CE, the latest before 1845. The broadside texts are similar, of five verses starting with a "Come all ye" warning about courting sailors and with the cuckoo appearing in the second verse. Collecting The Roud Folk Song Index lists about 149 collected or recorded versions performed by traditional singers - 49 from England, 4 from Scotland, 2 from Ireland, 4 from Canada and 88 from the USA. At least one collected version was published in the Folk Songs from the Kentucky Mountains (1917). Field recordings Alan Lomax recorded Hobart Smith from Saltville, Virginia performing Cuckoo Bird in 1942, and he claimed to have learned it from a man named John Greer in the early 1910s. He also recorded Jean Ritchie from Viper, Kentucky singing The Cuckoo is a Pretty Bird in New York in 1949. Hamish Henderson recorded Willie Mathieson from Ellon, Aberdeenshire, singing The Evening Meeting in 1952. Max Hunter recorded Mrs Norma Kisner of Springdale Arkansas, singing a fragment of Unconstant Lover in 1960. Max Hunter recorded Olivia Hauser of Fayetteville, Arkansas, singing False Hearted Lover in 1961. Performers The first known recording was made by Kelly Harrell for Victor in 1926. The song has been covered by many musicians in several different styles. In North America, an early notable recorded version was performed in 1929 by Appalachian folk musician Clarence Ashley with an unusual banjo tuning. Notable artists who have recorded "The Cuckoo" include: See also Folk songs with shared motifs and floating verses include: Come All You Fair and Tender Ladies Jack of Diamonds (song) On Top of Old Smoky Notes and references English folk songs American folk songs Bob Dylan songs Peter, Paul and Mary songs Jean Ritchie songs Year of song unknown Songwriter unknown
```xml <UserControl x:Class="ResXManager.VSIX.Visuals.ShowErrorsConfigurationView" xmlns="path_to_url" xmlns:x="path_to_url" xmlns:mc="path_to_url" xmlns:d="path_to_url" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300" xmlns:local="clr-namespace:ResXManager.VSIX.Visuals" xmlns:shell="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.15.0" xmlns:toms="urn:TomsToolbox" xmlns:properties="clr-namespace:ResXManager.VSIX.Properties" xmlns:styles="urn:TomsToolbox.Wpf.Styles" d:DataContext="{d:DesignInstance local:ShowErrorsConfigurationViewModel}"> <StackPanel> <CheckBox Content="{x:Static properties:Resources.ShowErrorsConfiguration_SwitchHeader}" IsChecked="{Binding Configuration.ShowErrorsInErrorList}" Style="{DynamicResource {x:Static styles:ResourceKeys.CheckBoxStyle}}"/> <Decorator Height="10" /> <DockPanel> <TextBlock Text="{x:Static properties:Resources.ShowErrorsConfiguration_ShowAs}" DockPanel.Dock="Left" VerticalAlignment="Center" /> <Decorator Width="8" DockPanel.Dock="Left" /> <ComboBox ItemsSource="{Binding Source={x:Type shell:TaskErrorCategory}, Converter={x:Static toms:EnumToValuesConverter.Default}}" SelectedItem="{Binding Configuration.TaskErrorCategory}" Width="200" HorizontalAlignment="Left" Style="{DynamicResource {x:Static styles:ResourceKeys.ComboBoxStyle}}"/> </DockPanel> </StackPanel> </UserControl> ```
```go // _ _ // __ _____ __ ___ ___ __ _| |_ ___ // \ \ /\ / / _ \/ _` \ \ / / |/ _` | __/ _ \ // \ V V / __/ (_| |\ V /| | (_| | || __/ // \_/\_/ \___|\__,_| \_/ |_|\__,_|\__\___| // // // CONTACT: hello@weaviate.io // // Code generated by go-swagger; DO NOT EDIT. package models // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "context" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // BatchStats The summary of a nodes batch queue congestion status. // // swagger:model BatchStats type BatchStats struct { // How many objects are currently in the batch queue. QueueLength *int64 `json:"queueLength,omitempty"` // How many objects are approximately processed from the batch queue per second. RatePerSecond int64 `json:"ratePerSecond"` } // Validate validates this batch stats func (m *BatchStats) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this batch stats based on context it is used func (m *BatchStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *BatchStats) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *BatchStats) UnmarshalBinary(b []byte) error { var res BatchStats if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil } ```
The University of Bristol Society of Change Ringers (UBSCR) is a change ringing society. UBSCR is associated with the University of Bristol and is affiliated to Bristol SU. UBSCR was established in 1943 and has rung bells at St Michael on the Mount Without since 1944. Since 1950 there have been over 700 peals rung for the society. UBSCR is also affiliated to the Central Council of Church Bell Ringers and sends two representatives to its AGM. History UBSCR was founded in the Autumn Term of 1943 by Monica Richardson. Since then generations of student ringers have come and gone, contributing on the way to the development of the Society and its traditions. The Society's first practice was held on 6 November 1943 at Long Ashton. In 1944 UBSCR moved to St Michael on the Mount, Without. The Society's first peal (5040 of Grandsire Triples) was rung on 17 May 1947. Since then UBSCR has grown. Students and former students from the Bristol area are active members. The society home tower was St Michael on the mount, without from 1944 until 2012 when safety concerns limited the amount of ringing at St Michaels. The home tower is now St Matthews, Kingsdown. Ringing continued, albeit sporadically, at St Michaels until October 2016 when the church suffered a major fire. Activities UBSCR holds and participates in many events throughout the course of each academic year, including the meetings of the Southern Universities Association and the Northern Universities Association, a Summer Tour, Cupid Tour (organised by the current master) and a Christmas Party, as well as a cheese and port evening and pudding party. The Annual Dinner is held on the 4th Saturday of January each year and is celebrated with the ringing of peals. The University Centenary In 2009 the University of Bristol celebrated the centenary of being granted its Royal Charter. In celebration, Great George was rung for two minutes, and the bells of Bristol 'followed' Great George by ringing quarter peals and general change ringing. The UBSCR played a part in the celebrations of this event by ringing Great George and by helping with the other ringing. Great George The hour bell in the Wills Memorial Building is rung, by members and friends of UBSCR to mark events and days of national importance or significance. Examples of this include Queen Elizabeth II's 90th birthday and VE day. Recent Masters 2023 - present - Thomas Sherwood 2022 - 2023 Josephine Leggett 2021 - 2022 William Stafford 2020 - 2021 Anna Sherwood 2019 - 2020 Matthew Jerome 2018 - 2019 Eleanor Talbot 2017 - 2018 Julian Howes 2016 - 2017 Jed Roughley 2015 - 2016 Robert Beavis 2014 - 2015 Alex Tatlow 2013 - 2014 Edward Mack 2012 - 2013 Richard Webster 2011 - 2012 Richard Barclay 2010 - 2011 Jack Aylward 2009 - 2010 Edward Marchbank 2008 - 2009 Alan Reading 2007 - 2008 David Richards 2006 - 2007 Edward Colliss 2005 - 2006 Katherine Fulcher 2004 - 2005 Gaby Cowcill See also University of Bristol University of Bristol Union References External links The Central Council of Church Bell Ringers Official UBSCR Website University of Bristol Website University of Bristol Union Website Bell ringing societies in England University of Bristol 1943 establishments in England Organizations established in 1943
```c++ /* * * 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. */ #include "config.h" #include "core/svg/SVGAnimatedLength.h" #include "core/svg/SVGElement.h" namespace blink { void SVGAnimatedLength::setDefaultValueAsString(const String& value) { baseValue()->setValueAsString(value, ASSERT_NO_EXCEPTION); } void SVGAnimatedLength::setBaseValueAsString(const String& value, SVGParsingError& parseError) { TrackExceptionState es; baseValue()->setValueAsString(value, es); if (es.hadException()) { parseError = ParsingAttributeFailedError; baseValue()->newValueSpecifiedUnits(LengthTypeNumber, 0); } else if (m_negativeValuesMode == ForbidNegativeLengths && baseValue()->valueInSpecifiedUnits() < 0) { parseError = NegativeValueForbiddenError; } } } ```
The alt attribute is the HTML attribute used in HTML and XHTML documents to specify alternative text (alt text) that is to be displayed in place of an element that cannot be rendered. The alt attribute is used for short descriptions, with longer descriptions using the longdesc attribute. The standards organization for the World Wide Web, the World Wide Web Consortium (W3C), recommends that every image displayed through HTML have an alt attribute, though the alt attribute does not need to contain text. The lack of proper alt attributes on website images has led to several accessibility-related lawsuits. The alt attribute is used to increase accessibility and user friendliness, including for blind internet users who rely on special software for web browsing. The use of the alt attribute for images displayed within HTML is part of W3C's Web Content Accessibility Guidelines (WCAG). Screen readers and text-based web browsers read the alt attribute in place of the image. The text within the alt attribute substitutes the image when copy-pasted as text and makes images more machine-readable, which improves search engine optimization (SEO). History The attribute was first introduced in the HTML 1.2 draft in 1993 to provide support for text-based browsers. In HTML 4.01, which was released in 1999, the attribute was made to be a requirement for the img and area tags. It is optional for the input tag and the deprecated applet tag. Internet Explorer 7 and earlier render text in alt attributes as tooltip text, which is not compliant with the World Wide Web Consortium (W3C)'s HTML standards. This behavior led many web developers to misuse the alt attribute when they wished to display tooltips containing additional information about images, instead of using the title attribute that was intended for that use. As of Internet Explorer 8, released in 2009, alt attributes no longer render as tooltips on Internet Explorer. Usage The text in the alt attribute is used to replace the image when the image cannot be loaded, without changing the intended meaning of the page's contents. The W3C's web content accessibility guidelines state that the alt attribute is used to convey the meaning and intent of the image, rather than being a literal description of the image itself. For example, an alt attribute for an image of an institution's logo should convey that it is the institution's logo rather than describing details of what the logo looks like. The alt attribute is intended to be used for short and concise descriptions of the image. Longer descriptions can be given using the longdesc attribute, which provides more detailed information and complements but does not replace the alt attribute. A screen reader such as Orca will read out the alt text in place of the image. A text-based web browser such as Lynx will display the alt text instead of the image (or will display the value attribute if the image is a clickable button). A graphical browser typically will display only the image, and will display the alt text only if the user views the image's properties, or has configured the browser not to display images, or if the browser was unable to retrieve or to decode the image. The use of descriptions in the alt attribute improves search engine optimization and allows image-specific search engines, such as Google Images, to search for and display relevant images that are used on websites in search results. For non-image search results, the text within the alt attribute is read by search engines the same way that regular text on the page is read. The W3C recommends that images that convey no information, but are purely decorative, be specified in CSS rather than in the HTML markup. If decorative images are rendered using HTML that do not add to the content and provide no additional information, then the W3C recommends that a blank alt attribute be included in the form of alt="". This makes the page more navigable for users of screen readers or non-graphical browsers by skipping over images that do not convey any meaning. If no alt attribute has been supplied, then browsers that cannot display the image will not overlook the image but instead will read or display the URL or another identifying marker. This creates ambiguity since the user is generally unable to determine from a bare reading of a URL if the image is relevant to the text or if it is a purely decorative element of the webpage. A 2021 Google Lighthouse audit showed that 27% of alt text attributes audited were empty, despite the fact that the majority of those images were non-decorative informational images. Lawsuits There have been many lawsuits over website accessibility and the lack of proper alt attributes on websites. Maguire v Sydney Organising Committee for the Olympic Games was a 2000 lawsuit in which a blind man in Australia sued the Sydney Organising Committee for the Olympic Games because their website www.olympics.com was not accessible to him because of the lack of alt attributes on images. The Australian Human Rights Commission ruled that the website had discriminated against him for failing to conform to accessibility standards that enable blind individuals to navigate websites. During the lawsuit, the Australian commonwealth, state and territory governments issued a joint statement through the Department of Broadband, Communications and the Digital Economy that they were adopting the W3C's accessibility guidelines for all .gov.au websites. In the United States, there have been several high-profile lawsuits involving the lack of alt attributes on images that cite a violation of the Americans with Disabilities Act (ADA). The United States Department of Justice gives the lack of alt attributes as an example of a barrier to website accessibility. National Federation of the Blind v. Target Corp. was a 2006 class-action lawsuit that alleged that Target.com violated the ADA because the images did not use alt attributes. This lawsuit set a legal precedent in the United States for website accessibility and compliance with the ADA. References External links Appropriate Use of Alternative Text from WebAIM Mini-FAQ about the alternate text of images by Ian Hickson HTML Computer-related introductions in 1995 Web accessibility
Busch Gardens Williamsburg (formerly known as Busch Gardens Europe and Busch Gardens: The Old Country) is a amusement park in James City County near Williamsburg, Virginia, United States. Located approximately northwest of Virginia Beach, the park was developed by Anheuser-Busch (A-B) and is owned by SeaWorld Parks & Entertainment. It opened on May 16, 1975, adjacent to Anheuser-Busch's brewery and near its other developments, including the Kingsmill Resort complex. The park is themed to various European country themes and was initially named Busch Gardens: The Old Country. In 1993, the park was renamed Busch Gardens Williamsburg and briefly named Busch Gardens Europe from 2006 to 2008. In 2015, an estimated 2.78 million people attended the park, ranking it twentieth in overall attendance among amusement parks in North America. It also has roller coasters, including Griffon, Verbolten, Pantheon, Alpengeist, and Apollo's Chariot (which was ranked as the fourth-best steel coaster in the annual Golden Ticket Awards publication from Amusement Today in 2012.) History Beginning in the early 1970s, the Busch Gardens theme park was developed by Anheuser-Busch (A-B) as a portion of the company's development investment in the Williamsburg area, which grew to include a brewery, the Kingsmill Resort, and residential and office properties. It opened in 1975 as Busch Gardens: The Old Country. The St. Louis-based brewer invested in the area following negotiations held between August Busch, II and Winthrop Rockefeller, who was the governor of Arkansas and the chairman of Colonial Williamsburg in the 1960s and 1970s. (Water Country USA, a local water park, was acquired by A-B in the 1990s, and added to the company's theme park activities, which include a number of SeaWorld properties in other states as well.) In 2008 A-B was acquired by Belgium-based InBev. The newer owners announced plans to sell off the portions of A-B activities that were not part of the core beverage business. The Blackstone Group was selected in late 2009 to acquire and operate the 10 former A-B theme parks, including two in the Williamsburg area. In July 2010, the adjacent Kingsmill Resort was scheduled to be acquired by Xanterra Parks and Resorts, a company owned by Denver-based Phillip Anschutz. By mid-March 2020, the COVID-19 pandemic delayed the opening of the park for the 2020 season. The park remained closed until August 6, 2020, when they reopened with Coasters and Craft Brews. It featured limited capacity, required advanced reservations and temperature screening of guests upon arrival, and select villages ofwithinhe park. It also hosted Taste of Busch Gardens Williamsburg, Halloween Harvest (in place of Howl-O-Scream), Christmas Celebration (in place of Christmas Town), Winter Weekends, and Mardi Gras. Beginning in January 2021, the park began its year-round operation. The previous operating season of Busch Gardens Williamsburg was late March through early January. The Winter Weekends and Mardi Gras limited-capacity events are the first time that the park has ever been open during the winter months. Overview of features The park features a combination of roller coasters and Broadway-style shows. The park is broken into "countries", each having its unique style of food and music. The rides in the sections of the park are also themed to the country that they are located in. Conservation Jack Hanna's Wild Reserve houses a variety of wild species including gray wolves and bald eagles. Busch Gardens is partnered with SeaWorld (also owned by SeaWorld Parks & Entertainment) in the SeaWorld & Busch Gardens Conservation Fund, which offers guests the opportunity to contribute to wildlife conservation. The Rhine River Cruise's boats are battery-powered to cut back on power generation and prevent water pollution. In addition, Busch Gardens and Water Country USA both use insects rather than pesticides in the parks' commitment to organic gardening. All brochures, maps, show guides and paper products are made from recycled material. Howl-O-Scream Howl-O-Scream, the park's signature Halloween event, began in 1999 and offers more than a dozen (12) attractions featuring vampires, zombies, clowns, witches, and skeletons. St. Patrick's Day Starting in 2021, Busch Gardens Williamsburg celebrated their first St. Patrick's Day celebration. This event celebrates Irish culture in all ten hamlets, and spans across the month of March. The event features Irish-themed cuisine, music, live entertainment, and special events, as well as having the park's various rides in operation. Those attending Das Festhaus will be able to view the various Irish stepdance performances that have been shown in the park over the years, including the award-winning Celtic Fyre. Appearances from Virginia's Irish Dance Schools can also be seen in the San Marco Theatre. For the children attending, there is a scavenger hunt hosted by Busch Garden's leprechaun, Clancy, who is also available throughout the day for photos. For the adults, there is a variety of brews available throughout the park, various Guinness products, and green beer. There will also be an exclusive day for Busch Gardens Williamsburg members during the event. Night of Oktoberfest Night of Oktoberfest is an annual event that started in 1976 and is a 21 and up event hosted in the Oktoberfest part of the Germany. This event includes German inspired food, alcoholic drinks, a DJ, games, raffles, and use of some select ride attractions in the Germany hamlet of the park. Christmas Town Christmas Town is the park's Christmas event that began during the 2009 season. Several Christmas and winter holiday-themed attractions and shows are showcased, including a Christmas tree called "O Tannenbaum" that lights up in sync to Christmas music in the Oktoberfest hamlet of the park. Each of the show venues from the summer season has a holiday-themed show during Christmas Town, ranging from reinterpretations of classic Christmas stories (Scrooge No More) to ice skating (Twas That Night on Ice), to a cappella performances (Gift of Harmony). Many of the flat rides are in operation as well as the park's train, skyride, and (weather permitting) a few roller coasters, which have traditionally been Verbolten, InvadR and Pantheon since their 2012, 2017, and 2022 opening seasons, respectively, and recently Apollo's Chariot, though previous Christmas town seasons saw Tempesto, Griffon, and Alpengeist also operate. During the celebration, the park is decorated with millions of lights and dozens of real Christmas trees. Shopping and dining are also a prominent part of Christmas Town, with many of the park's restaurants offering food and drinks catered to the season and colder weather. The event usually starts the weekend before Thanksgiving and continues every weekend until the week before Christmas, where it stays open for the rest of December until a few days after New Year's Day. Hamlets The park is separated into 10 different hamlets themed to European villages from England, France, Germany, Italy, Scotland and Ireland. Busch Gardens Williamsburg features two main transportation attractions that provide convenient access to different areas of the park. The first is the Aeronaut Skyride, a gondola lift that allows guests to travel between the Sesame Street Forest of Fun, Aquitaine, and Rhine Feld hamlets. The second is the Busch Gardens Railway, which is a replica steam train that transports guests between the Heatherdowns, Festa Italia, and New France hamlets. The train is not only a practical mode of transportation but also serves as a thematic element that enhances the park's "Old Country" atmosphere. Families with young children can especially benefit from using the train as a means of traveling together and enjoying the park's various hamlets. Banbury Cross (England) Banbury Cross is fashioned after England, with phone booths and classic English architecture. Guest Services windows are located next to the turnstiles of the Main gate. A simulacrum of the famous Elizabeth Tower (Big Ben) is the central element of this area. Banbury Cross also includes The Squire's Grill, serving breakfast and lunch, as well as a funnel cake shop, ice cream shop and candy store. The Globe Theatre, a double-sized replica of William Shakespeare's Globe Theatre, is the most prominent attraction in the area. In 2014, the theatre was renovated for the purpose of once again holding live performances. For many years preceding 2014, the Globe Theatre's entertainment lineup consisted of 4-D films, including Haunts of the Old Country, Pirates 4-D and R.L. Stine's Haunted Lighthouse. Prior to the 4-D films, the theater hosted a variety of live shows including Mark Wilson's World's Greatest Illusions, America on Ice, Hot Ice, Celebrate America and the People's Choice. It currently features an American music show, “American Jukebox: Summer Remix”, showcasing American hits through the decades. Heatherdowns (Scotland) Heatherdowns is a Scottish hamlet situated at the top of the hill on the path leading from Banbury Cross (the park's English hamlet). Tweedside Train Station offers a 20-minute ride through the park with additional stops in Festa Italia and at Caribou Station, in New France. Tweedside Gifts is located adjacent to the train station. Heatherdowns is also home to the Highland Stables featuring Scottish Blackface sheep, Border Collies and Clydesdales. Guests can interact with the animals and see them in action as they demonstrate their skills during daily demonstrations. Guests can also have pictures with the Clydesdales. Prior to 2010, the stables were home to several of the Anheuser-Busch Clydesdales until the theme park unit of Anheuser-Busch was sold in 2009. Other points of interest include seasonal kiosks for the park's Food and Wine Festival (in late spring) and the Summer Nights festival. Loch Ness Monster – A looping Arrow Development roller coaster. It was the first and the only remaining roller coaster in the world to feature interlocking loops. Sesame Street Forest of Fun Opened on April 3, 2009, Sesame Street Forest of Fun features four new children and family rides and attractions themed to Sesame Street, including a Zierer junior roller coaster named Grover's Alpine Express, Bert and Ernie's Loch Adventure flume ride, Oscar's Whirly Worms rock-n-tug-type ride, Prince Elmo's Spire shot-n-drop ride a small drop tower and wet and dry play areas. The area also features a stage for the main show "Sunny Days Celebration" and a gift shop. The hamlet also contains the Skyride station nearest to the Main Gate. The Aeronaut (first leg) of the Skyride departs to Aquitaine, France, while the Zeppelin (third leg) Skyride arrives from Rhinefeld, Germany. Bert and Ernie's Loch Adventure – A flat flume ride with water effects Oscar's Whirly Worms – A rocking, spinning Rockin' Tug ride Prince Elmo's Spire – A family-friendly shot-n-drop drop tower ride from Zamperla Grover's Alpine Express – A Zierer family-friendly roller coaster standing 24 feet tall Killarney (Ireland) Formerly known as Hastings, England, this section of the park was re-themed in 2001 as Ireland, the newest country in over 20 years. With the addition of this country, the park's attendance was boosted by 17% in 2001 after the grand opening and was awarded a top prize by the Themed Entertainment Association. This area features Celtic Fyre, at the Abbey Stone Theatre, a celebration of Irish dance. In 2021, Celtic Fyre was named the number one Best Amusement Park Entertainment by USA Today, adding to the collection of awards and praise already collected by Busch Gardens Williamsburg over the years. Previously, the theatre housing Celtic Fyre was named the Magic Lantern Theatre and housed some of the best theme park musical revue in the United States. Shows such as Kaleidoscope, Hats Off to Hollywood, Journey into Music, Stage Struck, Totally Television and Rockin the Boat are some of the names of these productions. Grogan's Grill offers Irish cuisine in this area. Outside the gateway next to Castle O'Sullivan, the walkway makes a sharp left turn and begins a long, moderately steep climb toward Aquitaine, France. Several animal sanctuaries and two animal performance theaters are situated along this path. Originally named Jack Hanna's Wild Reserve when it opened in 2000, the animal sanctuary was considered its own section of the park, but in 2017 the Wild Reserve was merged with Killarney and renamed the Jack Hanna Trail. Finnegan's Flyer – S&S Screamin' Swing opened in the spring of 2019. The ride swings guests at 100 feet at 45 mph. Eagle Ridge & Wolf Valley – Animal exhibits located just outside the village. Pet Shenanigans Theater – An outdoor venue that previously hosted the More Pet Shenanigans show. Lorikeet Glen – A covered bird sanctuary for Lorikeets and other brightly colored birds. Guests can enter and the birds will approach and land on them. San Marco (Italy) When Italy/San Marco was opened, it completed the outer circle walkway around Busch Gardens. Part of the park's expansion included a high pedestrian bridge across the Rhine River into Oktoberfest, Germany. San Marco is based upon Renaissance era Italy. A prominent feature within San Marco is Da Vinci's Garden of Inventions. This garden features Italian statues and flowers set amid rides based on sketches by Leonardo da Vinci. Also in the area is Ristorante Della Piazza, featuring Italian cuisine and allowing guests to watch "Mix It Up." During the summer until 2008, sounds of the Starlight Orchestra could be heard while dining. Escape from Pompeii – A shoot-the-chutes boat ride featuring an extensive indoor portion within the city of Pompeii, featuring fire and water effects as well as falling statues to simulate the destruction of the city. Little Gliders & Little Balloons – Kiddie-sized carnival rides themed to Da Vinci's inventions. The Battering Ram – A high-capacity, high-thrill swinging ship. This does not go upside down. The Flying Machine – A lightly themed Tivoli manufactured orbiter ride that spins riders. Festa Italia (Italy) Festa Italia is themed around a fair celebrating Marco Polo's return to Italy from his famous visit to China. It contains many of the park's midway games, all with a festival theme. Its attractions are themed around Roman mythology. Apollo's Chariot – A Bolliger & Mabillard Hyper Coaster featuring dives towards and around ponds and hills. Apollo's Chariot also features a deep purple and gold color scheme which is easily visible from the park entrance and surrounding parking lots. Roman Rapids – A circular-raft rapids ride among Roman ruins, which is deliberately designed to drench guests. Tradewinds – A permanent-placement music express ride. Elephant Run – Another child-friendly music express ride. Turkish Delight – A variation of a teacups ride. Tempesto – A Premier Rides steel roller coaster featuring three launches, a heartline roll, and going about 60 mph backward and forwards. Pantheon – An Intamin multi-launch coaster. Festa Italia also includes the Festa Train Station of the Busch Gardens Railway. Rhinefeld (Rhineland Germany) This section is based on the country of Germany. It is largely themed to a runaway ski resort in the German Alps. The third leg of Busch Gardens' Skyride arrives and departs from this section. Also, in Rhinefeld is Land of the Dragons, a large children's play area featuring a playground, five rides, and seasonal shows can be found. Alpengeist – A Bolliger & Mabillard inverted roller coaster, Alpengeist is themed to a ski-lift taken over by a local legend, the Alpengeist (Ghost of the Alps). In addition to its green and white Alpine color scheme, the station of Alpengeist features ski gear and other decorations to simulate a ski lodge in the Alps. This ride inverts riders six times. Kinder Karussel – The park's antique Herschell Carousel. Land of the Dragons – Interactive children's play area featuring a treehouse, children's rides and previously a Ferris wheel. Land of the Dragons When it opened in 1994 (replacing the former Grimms Hollow children's area), Land of the Dragons was the main kiddie area at Busch Gardens. It is home to Dumpherey the Dragon, the area's mascot. Other major notes taken to Land of the Dragons includes its dragon-themed 3-story tree house, a wet play area with waterfalls, squirting geysers, and a serpent that inhabits the area. There are also smaller play zones, smaller wet play areas and (formerly) a gift shop called Dragon Digs. Flutter Splutter – A flying dragon ride Chug-A-Tug – A boat ride Bug-A-Dug – A music express-like ride with ladybug cars that are red and yellow Dragon-themed Treehouse Brook – A wet play area As of the 2012 season, the Lost Children building has been relocated from its former building, dubbed Wild Moose Lodge, in New France, to what was formerly the Dragon Digs gift shop. Oktoberfest (Bavaria, Germany) Like Rhinefeld, this section is based on Germany during the annual celebration of Oktoberfest. Oktoberfest features many of the park's flat rides. It is also home to a large assortment of carnival-style games. Das Festhaus is a large, air-conditioned eating facility where guests can purchase German food or American classics. While eating in Das Festhaus, guests can experience shows that rotate throughout the year. This section of the park formerly hosted The Big Bad Wolf, a suspended roller coaster. The Big Bad Wolf was closed on September 7, 2009. On September 18, 2010, it was announced that in 2011, Oktoberfest would be renovated with new shops and sights, including a new beer garden and pretzel shop known as Beste Brezeln und Bier with a Bavarian maypole occupying the flower garden in front of Das Festhaus, and a drop tower called Mäch Tower. Also announced was a new "multi-launch" roller coaster that opened in the spring of 2012 on the former site of the Big Bad Wolf. In September 2011 it was announced that the new coaster would be called Verbolten. On May 18, 2012, Verbolten officially opened to the general public. The area also hosts a large part of the annual BierFest festival, which features a large number of beers from around the world, with at least 22 different beers on tap throughout the whole area. German-themed food and non-alcoholic beverages are also sold during the festival. The area also contained the trackless dark ride Curse of DarKastle. The attraction opened on May 1, 2005, and closed on September 4, 2017, to make way for a temporary Howl-O-Scream maze, Frostbite. On January 23, 2018, it was announced that Curse of DarKastle would not reopen for the 2018 season and would be officially closing for being a burden with maintenance costs. The building that harbored the dark ride was used as event space, such as Santa's workshop for Christmas Town and a walkthrough maze for the 2021 Halloween event Howl-O-Scream. On September 6, 2022, it was announced that a new indoor launch coaster named DarKoaster: Escape The Storm would open in the space during Spring 2023. DarKoaster opened to the public on May 19, 2023, as North America’s first all-indoor straddle coaster. Der Autobahn – (Bumper Cars) Der Autobahn Jr. – (Kiddie Bumper Cars) Der Roto Baron – (Red Baron) Der Wirbelwind (Waveswinger) – classic yo-yo swings ride DarKoaster: Escape The Storm — (Indoor Straddle Coaster) Verbolten – Brave The Black Forest – A family-style, Black Forest themed launched roller coaster with a top speed of 53 mph. It also has a free fall when the track drops vertically while staying on a horizontal plane. Aquitaine (France) This section, centered on the village of Aquitaine, is based on Belle Époque France. It is home to many boutiques and one of the park's Skyride stations, where the first leg of the Skyride arrives from England and the second leg departs for Rhinefeld, Germany. The Royal Palace Theatre in France hosts numerous shows throughout the season. Griffon – A dive roller coaster, named after the legendary creature, the griffin; contains a ninety-degree drop from 205 feet, 2 Immelmann loops, and a "splashdown" finale; the brother ride of Busch Gardens Tampa Bay's SheiKra. Year Opened: 2007 New France (French Colonial Canada) New France presents a unique shopping experience that showcases the French colonial influence in Canada, featuring a range of stores with merchandise that complements the overall colonial theme. Rides in New France include the Busch Gardens Railway departing from Caribou Station and the Le Scoot Log Flume, featuring a plunge through a sawmill. A predominant feature in this area is the Trappers Smokehouse, which has an outdoor grill centrally located. Trappers Smokehouse offers grilled and smoked items such as chicken, turkey legs, ribs, and beef brisket. Le Scoot Log Flume – A traditional high-in-the-sky theme park log flume Le Catapult – a basic carnival scrambler InvadR – a Great Coasters International wooden roller coaster opened in 2017. InvadR is themed around the Viking invasion of New France. It has 9 airtime hills, a 74-foot drop and goes up to 48 mph. Roller coasters Existing (listed by first year) Defunct Defunct rides and attractions Animal attractions Jack Hanna's Wild Reserve Jack Hanna's Wild Reserve includes bald eagles and wolves. Eagle Ridge is a 3,000+ foot area set aside for housing and rehabilitating bald eagles and providing education to visitors. Wolf Haven is a viewing area where guests may observe one of Busch Garden's pairs of wolves. One pair is on exhibition at a time. Busch Gardens also provides Wolf Valley for those wolves not on display. Over of natural habitat is intended to ensure the animals' health and well-being. It also contains an aviary named Lorikeet Glen, which displays Rainbow lorikeets, and other birds. The wild reserve is located in the Ireland section of the park. In recent years, animal attractions at the park have been extensively removed, though the staple attractions remain. Highland Stables Busch Gardens' Highland Stables features Scottish Blackface sheep, Border Collies, black Clydesdales and Highland cattle. Guests can interact with the animals during daily demonstrations. It is located between the England and Scotland sections. Parking and transportation At the park, special parking areas are provided for persons with disabilities, recreational vehicles and groups arriving by buses and motorcoaches. Trams provide shuttle service to and from entrance gates from outlying parking areas. Within the park itself, three steam locomotive powered trains operate on the narrow gauge Busch Gardens Railway, a loop of track, providing transportation between the Heatherdowns, Festa Italia and New France themed areas. Additionally, a skyride provides transportation between the Banbury Cross, Aquitaine and Rhinefeld themed areas. Awards and recognition In 2021, the park was also nominated by USA Today to be the fourth best amusement park in the country. Attendance (rounded) Gallery References Sources Busch Gardens Williamsburg expansion announcement page Busch Gardens Williamsburg official website Busch Gardens Williamsburg Howl-o-Scream official website Busch Gardens Williamsburg Christmas Town official website External links 1975 establishments in Virginia Amusement parks in Virginia Buildings and structures in James City County, Virginia Landmarks in Virginia SeaWorld Parks & Entertainment Tourist attractions in James City County, Virginia Amusement parks opened in 1975
John Sanders (1768-1826) was an architect and the first pupil of Sir John Soane taken on 1 September 1784. Sanders was born on 12 April 1768, the son of Thomas Sanders, a tallow-chandler of the parish of St Dunstan-in-the-East, London. He died at Reigate, Surrey early in 1826. Sanders' principal buildings are the Royal Military Asylum at Chelsea (1801–03) and the Royal Military College Sandhurst (1808–12). Sanders was the first president of the Architects' and Antiquaries' Club. References Sources and further reading 19th-century English architects 1768 births 1826 deaths Architects from London
Submarine Squadron 4 (also known as SUBRON 4 or CSS-4) was raised by the United States Navy in 1930. Since 9 July 1997, the squadron has been based at the Naval Submarine Base New London, Groton, Connecticut, United States of America. Composition The current submarines assigned to the squadron include: Los Angeles-class submarines USS Hartford (SSN-768) Virginia-class submarines USS California (SSN-781) USS North Dakota (SSN-784) USS Colorado (SSN-788) USS Indiana (SSN-789) USS South Dakota (SSN-790) USS Delaware (SSN-791) – Commissioned 4 April 2020 USS Vermont (SSN-792) – Commissioned 18 April 2020 USS Oregon (SSN-793) – Commissioned 28 May 2022 Pearl Harbor 1930 to 1945 In 1930, the squadron was raised at the Pearl Harbor submarine base. Its commanding officers to 1945 included the following captains: W. K. Wortman (1930 - 1932), H. W. Osterhas (1932 - 1934), R. A. Kock (1934 - 1936), R. S. Culp (1936 - 1938), Francis W. Scanland (1938 - November 1940), Worrall R. Carter (November 1940 - 7 December 1941), Freeland A. Daubin (7 December 1941 - 6 February 1942), Robert H. English (19 March 1942 - 10 May 1942), John M. Haines (18 May 1942 - 24 June 1942), John H. Brown Jr. (14 July 1942 - 4 November 1943), Charles D. Edmunds (12 May 1943 - 31 August 1943), Leon J. Huffman (11 September 1943 - 27 September 1943), Charles B. Momsen (12 November 1943 - 2 July 1944), Clarence E. Aldrich (1 December 1943 - 27 December 1943), Charles F. Erck (July 1944 - 12 October 1944) William V. O'Regan (15 October 1944 - 24 May 1945) It was Captain Freeland Allan Daubin who was in command during the Japanese attack on Pearl Harbor on 7 December 1941. While stationed there, the squadron comprised Submarine Squadron 4 Headquarters, at Pear Harbour Submarine Base USS Litchfield (DD-336), underway south of Oahu – Tactical Flagship USS Widgeon (ASR-1) Submarine Division 41, at Naval Base San Diego, commanded by Commander Forrest Marmaduke O'Leary USS S-18 (SS-123) (F) USS S-23 (SS-128) USS S-27 (SS-132), being overhauled at Mare Island Naval Shipyard USS S-28 (SS-133), being overhauled at Mare Island Naval Shipyard USS S-34 (SS-139) USS S-35 (SS-140) Submarine Division 42, at Pear Harbour Submarine Base, commanded by Commander Clifford Harris Roper USS Argonaut (SM-1) (F), on patrol in the vicinity of Midway Atoll USS Narwhal (SS-167) (F) USS Nautilus (SS-168), at Mare Island Naval Shipyard USS Dolphin (SS-169) USS Cachalot (SS-170) USS Cuttlefish (SS-171), being overhauled at Mare Island Naval Shipyard Submarine Division 43, at Pear Harbour Submarine Base, commanded by Commander Norman Seaton Ives USS Plunger (SS-179) (F), underway en-route from Mare Island Naval Shipyard USS Pollack (SS-180), underway en-route from Mare Island Naval Shipyard USS Pompano (SS-181), underway en-route from Mare Island Naval Shipyard On 13 January 1943, the command of Submarine Base Pearl Harbor and Submarine Squadron 4 were separated, due to the demands on each command by war time operations. As a result, Captain C. D. Edmunds relieved Captain J. H. Brown, Jr., as commanding officer of the submarine base. Captain Brown retained the command of the squadron. The commanding officer of the submarine base continued under the squadron commander until October 1945. At that time, the submarine force was reorganised and the base commander came directly under command of the Submarine Force, U.S. Pacific Fleet. Key West 1945 to 1959 In about August 1945, the squadron began operations from Key West, Florida, as part of the U.S. Atlantic Fleet. Commanding officers at Key West were Captains Edward S. Hutchinson (October 1945 to 12 March 1947) and Lawrence Randall Daspit (12 March 1947 to 1949). In December 1947, during Daspit's command, President Harry Truman visited the base. While at Key West, the squadron included USS Howard W. Gilmore (AS-16), and USS Petrel (ASR-14). Submarines assigned to the squadron included the USS Clamagore (SS-343) which was the squadron flagship from January 1946 to 1 August 1959. The USS Sea Poacher (SS-406) was with the squadron from 1 June 1949 to 20 October 1969. The USS Thornback (SS-418) joined the squadron on 2 October 1953. She remained until she was reassigned to the Charleston Naval Base in 1959. Other submarines were the USS Quillback (SS-424); USS Trumpetfish (SS-425) (1953); USS Medregal (SS-480), which joined after the end of World War II; the USS Requin (SS-481) (joined 6 January 1946); USS Irex (SS-482) (1945 to 1947); USS Odax (SS-484); and USS Amberjack (SS-522). The Amberjack arrived in January 1948, and operated along the East Coast and in the West Indies for 11 years. On 23 April 1947, the former German USS U-3008 reported for duty at Key West with Submarine Squadron 4 and began working with the Operational Development Force. That duty involved the development of submarine and antisubmarine tactics and lasted until October 1947 when she returned to New London. Charleston 1959 to 1995 In 1959, the squadron was moved to the Charleston Naval Shipyard, South Carolina. Its new home port was Pier Mike. The move was part of a plan to disperse the Atlantic Fleet so it would be less vulnerable to nuclear attack. The squadron soon came to be known as the Swamp Fox squadron. This was in reference to Francis Marion, an American Revolutionary War general nicknamed the Swamp Fox. The squadron commanders at Charleston included: Richard C. Latham (August 1959 - 27 October 1960) Morton H. Lytle (27 October 1960 - TBD) Phillip A. Beshany (TBD - 10 August 1962) Murray F. Frazee, Jr. (10 August 1962 - July 1963) Raymond W. Alexander (July 1963 - TBD) George F. Morin (TBD - 5 July 1966) Henry Hanssen (5 July 1966 - TBD) R. G. Black (TBD - 11 October 1966) Max C. Duncan (11 October 1966 - TBD) William R. Banks (TBD - 11 October 1970) John A Walsh (11 October 1970 - 1972) Stan Anderson (1972 - 1974) Al Baciocco (1974 - 1976) Larry Burkhart (1976 - 1978) Claude C. Cross (TBD-1980) Thomas C. Maloney (TBD - 1980s) James E. Collins (July 1982 - 8 August 1984) William A. Owens (8 August 1984 - TBD) Mario P. Fiori (July 1986 - June 1987) John Jordan (June 1987 - August 1989) Dennis Napior (July 1991 - July 1993) Stanley R. Szemborski (July 1993 - Late 1995). Squadron tenders while at Charleston included USS Howard W. Gilmore (AS-16), USS Orion (AS-18), USS Frank Cable (AS-40), USS Canopus (AS-34), USS Ortolan (ASR-22), and USS Petrel (ASR-14). Submarines included USS Woodrow Wilson (SSN-624), USS Tecumseh (SSBN-628), USS Sturgeon (SSN-637), USS Grayling (SSN-646), USS Ray (SSN-653), USS Sand Lance (SSN-660), USS Sea Devil (SSN-664), USS Seahorse (SSN-669), USS Narwhal (SSN-671), USS Bluefish (SSN-675), USS Billfish (SSN-676), USS Batfish (SSN-681), USS L. Mendel Rivers (SSN-686), USS Sunfish (SSN-649), and the Barbel-class submarine USS Bonefish (SS-582). The Base Realignment and Closure Commission announced on 26 February 1993 that the Charleston Naval Shipyard would be closed. The squadron was deactivated in late 1995 just prior to the official closure of Charleston Naval Shipyard on 1 April 1996. Reactivation at Groton, Connecticut On 9 July 1997, the squadron was reactivated at Naval Submarine Base Groton in Connecticut. From July 1997, commanders included: Carl V. Mauney (9 July 1997 - 16 April 1999) Melvin G. Williams, Jr. (16 April 1999 - 8 September 2000) George E. Manaskie (8 September 2000 - 26 July 2002) David E. Eyler (26 July 2002 - 29 April 2004) Robert H. Perry (29 April 2004 – July 2006) Richard P. Breckenridge (July 2006 - 27 June 2008) Robert E. Clark II (27 June 2008 - 9 April 2010) Mike Bernacchi (9 April 2010 - 13 January 2012) Michael Holland (13 January 2012 - 30 August 2013) Jim Waters (30 August 2013 - 31 July 2015) John McGunnigle (31 July 2015 - June 2021) John Stafford (June 2021 - Present) From 1997, boats assigned to the squadron included USS Trepang (SSN-674), USS Billfish (SSN-676), USS City of Corpus Christi (SSN-705), USS Providence (SSN-719), USS Miami (SSN-755), USS Annapolis (SSN-760), USS Springfield (SSN-761), USS Hartford (SSN-768), USS New Hampshire (SSN-778), USS New Mexico (SSN-779), USS Missouri (SSN-780), and the USS Mississippi (SSN-782). References External links Submarine Squadron Four official homepage. United States Navy. Undersea Warfare magazine archive (1998-2010). United States Navy. All Hands magazine archive (1922-2013). Submarine squadrons of the United States Navy Military units and formations established in 1930
The Casio AZ-1 is a polyphonic MIDI keyboard in the form factor of a keytar. It has a distinctive white body with a long neck, with detailing in a pale blue. This instrument is designed to be played, with the aid of a shoulder strap, in an approximation of an electric guitar. As were many keytars, it was geared towards keyboardists who wanted greater freedom of movement during performances. Features The AZ-1 features 2 switches, 2 wheels, and 1 slider that transmit assignable MIDI continuous controller data as the user deems fit. It has a pitch wheel for shifting the sound up or down fractions of a note. Other non-definable controllers include Solo, Sustain, Portamento and a three position octave slider. The AZ-1 has one MIDI output, and can simultaneously transmit on two selectable midi channels. It can send midi program change commands from dedicated program select buttons. Furthermore, its feature set includes both velocity sensitivity as well as true aftertouch. This is something of a rarity amongst keytars, and all but the highest end keyboards, as many only have velocity sensitivity. The AZ-1 is powered by either 6 AA batteries (1.5v each) or by external power supply (negative center pin, positive ring.) History 1980s–1990s The keyboard featured in the music video "House Arrest" by Krush. In 1996, it was used by Dean Bright (from Dead or Alive) in all tours, like in London Europride '96. 2000s–present Today, the AZ-1 is used by groups such as Redgreenblue, Dangerous!, The Brockville Country Club, Fun!Yeah!, Comtron, Papanegro, and Starman: The David Bowie Tribute. Furthermore, this model was prominently featured in the music video for Snoop Dogg's "Sensual Seduction". References Keytars Casio musical instruments
One of the Thimble Islands, High Island once served as a hideout for famed pirate Captain Kidd. Kidd's Harbor on the island, as well as nearby Kidd's Island, were named for him. Money Island was named for the legend that he allegedly buried a portion of his treasure here. References Wealthy Widow Buying Up Thimbles, "New Haven Register", January 22, 2006, page A1 Half a Mile Off the Coast; Stacey Stowe; "In the Region/Connecticut", New York Times, July 30, 2006; Real Estate page 10. Thimble Islands
```java /* * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package org.apache.shardingsphere.test.e2e.transaction.cases.nested; import org.apache.shardingsphere.driver.jdbc.core.connection.ShardingSphereConnection; import org.apache.shardingsphere.test.e2e.transaction.cases.base.BaseTransactionTestCase; import org.apache.shardingsphere.test.e2e.transaction.engine.base.TransactionContainerComposer; import org.apache.shardingsphere.test.e2e.transaction.engine.base.TransactionTestCase; import org.apache.shardingsphere.test.e2e.transaction.engine.constants.TransactionTestConstants; import org.apache.shardingsphere.transaction.api.TransactionType; import java.sql.SQLException; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; /** * Nested transaction test case. */ @TransactionTestCase(transactionTypes = TransactionType.LOCAL, adapters = TransactionTestConstants.JDBC) public final class NestedTransactionTestCase extends BaseTransactionTestCase { public NestedTransactionTestCase(final TransactionTestCaseParameter testCaseParam) { super(testCaseParam); } @Override protected void executeTest(final TransactionContainerComposer containerComposer) throws SQLException { try (ShardingSphereConnection connection = (ShardingSphereConnection) getDataSource().getConnection()) { assertFalse(connection.getDatabaseConnectionManager().getConnectionTransaction().isHoldTransaction(connection.getAutoCommit())); connection.setAutoCommit(false); assertTrue(connection.getDatabaseConnectionManager().getConnectionTransaction().isHoldTransaction(connection.getAutoCommit())); requiresNewTransaction(); assertTrue(connection.getDatabaseConnectionManager().getConnectionTransaction().isHoldTransaction(connection.getAutoCommit())); connection.commit(); } } private void requiresNewTransaction() throws SQLException { try (ShardingSphereConnection connection = (ShardingSphereConnection) getDataSource().getConnection()) { assertFalse(connection.getDatabaseConnectionManager().getConnectionTransaction().isHoldTransaction(connection.getAutoCommit())); connection.setAutoCommit(false); assertTrue(connection.getDatabaseConnectionManager().getConnectionTransaction().isHoldTransaction(connection.getAutoCommit())); connection.commit(); } } } ```
The TS Royalist is a sail training ship launched in 2014 as a replacement for a previous ship of the same name, TS Royalist (1971). She entered service with The Marine Society and Sea Cadets in 2015. Construction Royalist is long, with a beam of . Her draught is . The ship's hull is of high tensile steel, with her superstructure of glass reinforced plastic. She is rigged as a brig, with a sail area of . Royalist has a permanent crew of eight, plus up to 24 Cadets and 2 adult trainees. Twelve passengers can also be carried. History Royalist was built by Astilleros Gondán S.A., Spain. She was launched on 19 December 2014. She cost £4,800,000. Replacing the previous , she is designed to be easier to sail than her predecessor, and also faster. Royalist entered service in 2015. References External links Sea Cadets website Square Rigger Club Charity (support organization for TS "Royalist") 2014 ships Ships built in Spain Brigs Individual sailing vessels Tall ships of the United Kingdom Merchant ships of the United Kingdom Training ships of the United Kingdom Sail training ships
```xml <?xml version="1.0" encoding="UTF-8"?> <!-- You may freely edit this file. See harness/README in the NetBeans platform --> <!-- for some information on what you could do (e.g. targets to override). --> <!-- If you delete this file and reopen the project it will be recreated. --> <project name="org.graalvm.visualvm.modules.oqlsyntax" default="netbeans" basedir="."> <description>Builds, tests, and runs the project org.graalvm.visualvm.modules.oqlsyntax.</description> <import file="nbproject/build-impl.xml"/> </project> ```
The Noah grape is a cultivar derived from the grape species Vitis labrusca or 'fox grape' which is used for table, juice and wine production. Noah has berries of a light green/yellow and has medium-sized, cylindrical-conical, well formed fruit clusters with thick bloom similar to those of Elvira. Although popularly classified as Vitis labrusca, Noah is the result of a 50/50 cross between Taylor (Vitis riparia) and an unknown Vitis labrusca with other reports claiming the labrusca to be Hartford. The vines are moderately vigorous and moderately cold hardy. It buds late with secondary buds being fruitful and ripens approximately at the same time as Concord. Noah is very disease resistant and shows resistance to mildew, black rot and phylloxera – it is used as a rootstock. Use It is a slip skin variety, meaning that the skin separates easily from the fruit. The grapes are used to make wine, most notably Uhudler and to a lesser extent Fragolino. Noah being Vitis x labruscana imparts a 'foxiness' to the wine and because of this is thought to be objectionable, therefore it is not seen as a grape capable of making wines of good quality though does have its admirers. Noah is not a commercially important grape variety with small plantations in United States, France, Romania, Croatia, Serbia and Italy. The grapes do not keep well and thus do not transport well therefore they can only be found within close distance of the source. Synonyms Noah has a number of aliases including: Belo Otelo, Charvat, Hondarrabi Zuri, and Tatar Rizling. References External links White wine grape varieties Table grape varieties
The Great Kei River is a river in the Eastern Cape province of South Africa. It is formed by the confluence of the Black Kei River and White Kei River, northeast of Cathcart. It flows for and ends in the Great Kei Estuary at the Indian Ocean with the small town Kei Mouth on the west bank. Historically the Great Kei River formed the southwestern border of the Transkei region as was formerly known as the Nciba River. Course The Great Kei River is a meandering river course and is formed by the convergence of the Black Kei River and the White Kei River in Enoch Mgijima Local Municipality, north-east of Cathcart and southeast of Queenstown. The Great Kei river flows from the junction of the Black and White Kei rivers for approximately 225 kilometers (140 miles) southeastwards along winding courses to the Indian Ocean. It terminates at the Great Kei estuary by Kei Mouth, a coastal resort town. Its longest tributary is the Tsomo in the north. The name has it origins as far back as 1752 and is based on a Khoisan word for the river meaning 'sand'. The Great Kei previously formed the southwestern border of the Transkei region which can be accessed via the 'Pont', one of only two car-transporting river ferries in South Africa. The pont is currently operational and motorists are frequently ferried from the southwestern bank to the northeastern bank into the Wild Coast. Climate The estuaries from the Great Kei river to southern Mozambique are classified as subtropical. These systems are characterized by warm waters of more than 16 degrees Celsius. The climate is warm and humid almost year-round as a result. Minimum winter temperatures range from 12- 14 degrees Celsius and the area receives rainfall throughout the year. Ecology The inland sections of the Great Kei River flow through Albany thickets and Forest biomes, terminating in Indian coastal thicket at its mouth. The Kei river mouth hosts the southernmost naturally occurring mangrove forests in Southern Africa. Swamp forests occur north of the Mngazana estuary, and salt marshes are found south of the Great Kei estuary. The Great Kei river mouth is popular with anglers due its variety of estuarine fish species. However, some species such as the South African Cob and White steenbras are critically endangered. Many coastal bird species are found in the area such as the near-threatened African oystercatcher, sandpipers, and kingfishers. Rail Bridge Attempts to build a bridge over the Kei river started in 1877 when building materials were shipped into East London from Britain by ox wagon and rail. Work on the bridge was interrupted multiple times due to conflicts in the area including the 9th Frontier War where Newey and his team were forced to retreat to the Royal Hotel in Komga as Gcaleka warriors began crossing the Kei for battle. A few British soldiers were killed by Xhosa warriors at Moordenaarskop (Murderers’ Hill), a hill close to the old bridge. From 1907 to 1917, a railway line was carried on a timber bridge downstream of the Great Kei. The timber bridge was destroyed after a flood and the railway line was relocated over to a new adjacent road bridge. The bridge was again dismantled in 1946 and re-erected again in 1947. It took two and a half years to complete the building of the bridge. At the end of the conflicts, the bridge was completed and is still in use by locals and farmers. The Great Kei Bridge is next to the Kei Bridge and is located in Amathole District Municipality. The Great Kei Bridge has a length of about 0.46 kilometers. Dams in the Great Kei basin Xonxa Dam in the White Kei River (Wit-Kei River). Wriggleswade Dam on the Kubusi River Bongolo Dam, in the Komani River, a tributary of the Klaas Smits River, itself a tributary of the Black Kei River Great Kei Pass The N2 road passes through Komga and Butterworth in an area is known as the Great Kei Pass or Kei Cuttings. It is a known for its high prevalence of accidents due to mist and wandering cattle. This section of the N2 passes across the Great Kei River. The Kei Cuttings lie inland from the Kei Mouth, Morgans Bay and Chintsa West. See also List of rivers of South Africa List of estuaries of South Africa References External links Mizimbuvu to Keiskamma WMA 12 Towns of historical interest in the 'kei http://www.dwa.gov.za/iwqs/rhp/state_of_rivers/ecape_04/Kei_summer.pdf https://municipalities.co.za/overview/1005/great-kei-local-municipality British military personnel of the 9th Cape Frontier War Political history of South Africa Rivers of the Eastern Cape Internal borders of South Africa
```c /* packet-dcerpc-pn-io.c * Routines for PROFINET IO dissection. * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * * This program is free software; you can redistribute it and/or * as published by the Free Software Foundation; either version 2 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ /* * The PN-IO protocol is a field bus protocol related to decentralized * periphery and is developed by the PROFIBUS Nutzerorganisation e.V. (PNO), * see: www.profibus.com * * * PN-IO is based on the common DCE-RPC and the "lightweight" PN-RT * (ethernet type 0x8892) protocols. * * The context manager (CM) part is handling context information * (like establishing, ...) and is using DCE-RPC as its underlying * protocol. * * The actual cyclic data transfer and acyclic notification uses the * "lightweight" PN-RT protocol. * * There are some other related PROFINET protocols (e.g. PN-DCP, which is * handling addressing topics). * * Please note: the PROFINET CBA protocol is independent of the PN-IO protocol! */ /* * Cyclic PNIO RTC1 Data Dissection: * * To dissect cyclic PNIO RTC1 frames, this plug-in has to collect important module * information out of "Ident OK", "Connect Request" and "Write Response" * frames first. This information will be used within "packet-pn-rtc-one.c" to * dissect PNIO and PROFIsafe RTC1 frames. * * The data of Stationname-, -type and -id will be gained out of * packet-pn-dcp.c. The header packet-pn.h will save those data. * * Overview for cyclic PNIO RTC1 data dissection functions: * -> dissect_IOCRBlockReq_block (Save amount of IODataObjects, IOCS) * -> dissect_DataDescription (Save important values for cyclic data) * -> dissect_ExpectedSubmoduleBlockReq_block (Get GSD information) * -> dissect_ModuleDiffBlock_block (Module has different ID) * -> dissect_ProfiSafeParameterRequest (Save PROFIsafe parameters) * -> dissect_RecordDataWrite (Call ProfiSafeParameterRequest) * -> pnio_rtc1_cleanup (Reset routine of saved RTC1 information) */ #include "config.h" #include <string.h> #include <glib.h> #include <epan/packet.h> #include <epan/to_str.h> #include <epan/wmem/wmem.h> #include <epan/dissectors/packet-dcerpc.h> #include <epan/expert.h> #include <epan/dissector_filters.h> #include <epan/proto_data.h> #include <wsutil/file_util.h> #include <epan/prefs.h> #include "packet-pn.h" #include <stdio.h> #include <stdlib.h> void proto_register_pn_io(void); void proto_reg_handoff_pn_io(void); #define MAX_NAMELENGTH 200 /* max. length of the given paths */ #define MAX_LINE_LENGTH 1024 /* used for fgets() */ #define F_MESSAGE_TRAILER_4BYTE 4 /* PROFIsafe: Defines the Amount of Bytes for CRC and Status-/Controlbyte */ #define PN_INPUT_CR 1 /* PROFINET Input Connect Request value */ #define PN_INPUT_DATADESCRITPION 1 /* PROFINET Input Data Description value */ static int proto_pn_io = -1; static int proto_pn_io_controller = -1; static int proto_pn_io_supervisor = -1; static int proto_pn_io_parameterserver = -1; static int hf_pn_io_opnum = -1; static int hf_pn_io_reserved16 = -1; static int hf_pn_io_array = -1; static int hf_pn_io_status = -1; static int hf_pn_io_args_max = -1; static int hf_pn_io_args_len = -1; static int hf_pn_io_array_max_count = -1; static int hf_pn_io_array_offset = -1; static int hf_pn_io_array_act_count = -1; static int hf_pn_io_ar_type = -1; static int hf_pn_io_artype_req = -1; static int hf_pn_io_cminitiator_macadd = -1; static int hf_pn_io_cminitiator_objectuuid = -1; static int hf_pn_io_parameter_server_objectuuid = -1; static int hf_pn_io_ar_data = -1; static int hf_pn_io_ar_properties = -1; static int hf_pn_io_ar_properties_state = -1; static int hf_pn_io_ar_properties_supervisor_takeover_allowed = -1; static int hf_pn_io_ar_properties_parametrization_server = -1; /* removed within 2.3 static int hf_pn_io_ar_properties_data_rate = -1; */ static int hf_pn_io_ar_properties_reserved_1 = -1; static int hf_pn_io_ar_properties_device_access = -1; static int hf_pn_io_ar_properties_companion_ar = -1; static int hf_pn_io_ar_properties_achnowledge_companion_ar = -1; static int hf_pn_io_ar_properties_reserved = -1; static int your_sha256_hashrtupmode = -1; static int your_sha256_hashtartupmode = -1; static int hf_pn_io_ar_properties_pull_module_alarm_allowed = -1; static int hf_pn_RedundancyInfo = -1; static int hf_pn_RedundancyInfo_reserved = -1; static int hf_pn_io_number_of_ARDATAInfo = -1; static int hf_pn_io_cminitiator_activitytimeoutfactor = -1; static int hf_pn_io_cminitiator_udprtport = -1; static int hf_pn_io_station_name_length = -1; static int hf_pn_io_cminitiator_station_name = -1; /* static int hf_pn_io_responder_station_name = -1; */ static int hf_pn_io_arproperties_StartupMode = -1; static int hf_pn_io_parameter_server_station_name = -1; static int hf_pn_io_cmresponder_macadd = -1; static int hf_pn_io_cmresponder_udprtport = -1; static int hf_pn_io_number_of_iocrs = -1; static int hf_pn_io_iocr_tree = -1; static int hf_pn_io_iocr_type = -1; static int hf_pn_io_iocr_reference = -1; static int hf_pn_io_iocr_SubframeOffset = -1; static int hf_pn_io_iocr_SubframeData =-1; /* static int hf_pn_io_iocr_txports_port = -1; */ /* static int hf_pn_io_iocr_txports_redundantport = -1; */ static int hf_pn_io_sr_properties_Reserved_1 = -1; static int hf_pn_io_sr_properties_Reserved_2 = -1; static int hf_pn_io_RedundancyDataHoldFactor = -1; static int hf_pn_io_sr_properties = -1; static int hf_pn_io_sr_properties_InputValidOnBackupAR = -1; static int hf_pn_io_sr_properties_ActivateRedundancyAlarm = -1; static int hf_pn_io_arvendor_strucidentifier_if0_low = -1; static int hf_pn_io_arvendor_strucidentifier_if0_high = -1; static int hf_pn_io_arvendor_strucidentifier_if0_is8000= -1; static int hf_pn_io_arvendor_strucidentifier_not0 = -1; static int hf_pn_io_lt = -1; static int hf_pn_io_iocr_properties = -1; static int hf_pn_io_iocr_properties_rtclass = -1; static int hf_pn_io_iocr_properties_reserved_1 = -1; static int hf_pn_io_iocr_properties_media_redundancy = -1; static int hf_pn_io_iocr_properties_reserved_2 = -1; static int hf_pn_io_iocr_properties_reserved_3 = -1; static int hf_pn_io_iocr_properties_fast_forwarding_mac_adr = -1; static int hf_pn_io_iocr_properties_distributed_subframe_watchdog = -1; static int hf_pn_io_iocr_properties_full_subframe_structure = -1; static int hf_pn_io_data_length = -1; static int hf_pn_io_ir_frame_data = -1; static int hf_pn_io_frame_id = -1; static int hf_pn_io_send_clock_factor = -1; static int hf_pn_io_reduction_ratio = -1; static int hf_pn_io_phase = -1; static int hf_pn_io_sequence = -1; static int hf_pn_io_frame_send_offset = -1; static int hf_pn_io_frame_data_properties = -1; static int hf_pn_io_frame_data_properties_forwarding_Mode = -1; static int hf_pn_io_frame_data_properties_FastForwardingMulticastMACAdd = -1; static int hf_pn_io_frame_data_properties_FragmentMode = -1; static int hf_pn_io_frame_data_properties_reserved_1 = -1; static int hf_pn_io_frame_data_properties_reserved_2 = -1; static int hf_pn_io_watchdog_factor = -1; static int hf_pn_io_data_hold_factor = -1; static int hf_pn_io_iocr_tag_header = -1; static int hf_pn_io_iocr_multicast_mac_add = -1; static int hf_pn_io_number_of_apis = -1; static int hf_pn_io_number_of_io_data_objects = -1; static int hf_pn_io_io_data_object_frame_offset = -1; static int hf_pn_io_number_of_iocs = -1; static int hf_pn_io_iocs_frame_offset = -1; static int hf_pn_io_SFIOCRProperties = -1; static int hf_pn_io_DistributedWatchDogFactor = -1; static int hf_pn_io_RestartFactorForDistributedWD = -1; static int hf_pn_io_SFIOCRProperties_DFPmode = -1; static int hf_pn_io_SFIOCRProperties_reserved_1 = -1; static int hf_pn_io_SFIOCRProperties_reserved_2 = -1; static int hf_pn_io_SFIOCRProperties_DFPType =-1; static int hf_pn_io_SFIOCRProperties_DFPRedundantPathLayout = -1; static int hf_pn_io_SFIOCRProperties_SFCRC16 = -1; static int hf_pn_io_subframe_data = -1; static int hf_pn_io_subframe_data_reserved1 = -1; static int hf_pn_io_subframe_data_reserved2 = -1; static int hf_pn_io_subframe_data_position = -1; static int hf_pn_io_subframe_reserved1 = -1; static int hf_pn_io_subframe_data_length = -1; static int hf_pn_io_subframe_reserved2 = -1; static int hf_pn_io_alarmcr_type = -1; static int hf_pn_io_alarmcr_properties = -1; static int hf_pn_io_alarmcr_properties_priority = -1; static int hf_pn_io_alarmcr_properties_transport = -1; static int hf_pn_io_alarmcr_properties_reserved = -1; static int hf_pn_io_rta_timeoutfactor = -1; static int hf_pn_io_rta_retries = -1; static int hf_pn_io_localalarmref = -1; static int hf_pn_io_remotealarmref = -1; static int hf_pn_io_maxalarmdatalength = -1; static int hf_pn_io_alarmcr_tagheaderhigh = -1; static int hf_pn_io_alarmcr_tagheaderlow = -1; static int hf_pn_io_IRData_uuid = -1; static int hf_pn_io_ar_uuid = -1; static int hf_pn_io_target_ar_uuid = -1; static int hf_pn_io_api_tree = -1; static int hf_pn_io_module_tree = -1; static int hf_pn_io_submodule_tree = -1; static int hf_pn_io_io_data_object = -1; /* General module information */ static int hf_pn_io_io_cs = -1; static int hf_pn_io_substitutionmode = -1; static int hf_pn_io_api = -1; static int hf_pn_io_slot_nr = -1; static int hf_pn_io_subslot_nr = -1; static int hf_pn_io_index = -1; static int hf_pn_io_seq_number = -1; static int hf_pn_io_record_data_length = -1; static int hf_pn_io_add_val1 = -1; static int hf_pn_io_add_val2 = -1; static int hf_pn_io_block = -1; static int hf_pn_io_block_header = -1; static int hf_pn_io_block_type = -1; static int hf_pn_io_block_length = -1; static int hf_pn_io_block_version_high = -1; static int hf_pn_io_block_version_low = -1; static int hf_pn_io_sessionkey = -1; static int hf_pn_io_control_command = -1; static int hf_pn_io_control_command_prmend = -1; static int hf_pn_io_control_command_applready = -1; static int hf_pn_io_control_command_release = -1; static int hf_pn_io_control_command_done = -1; static int hf_pn_io_control_command_ready_for_companion = -1; static int hf_pn_io_control_command_ready_for_rt_class3 = -1; static int hf_pn_io_control_command_prmbegin = -1; static int hf_pn_io_control_command_reserved_7_15 = -1; static int hf_pn_io_control_block_properties = -1; static int hf_pn_io_control_block_properties_applready = -1; static int hf_pn_io_control_block_properties_applready0 = -1; /* static int hf_pn_io_AlarmSequenceNumber = -1; */ static int hf_pn_io_control_command_reserved = -1; static int hf_pn_io_SubmoduleListEntries = -1; static int hf_pn_io_error_code = -1; static int hf_pn_io_error_decode = -1; static int hf_pn_io_error_code1 = -1; static int hf_pn_io_error_code1_pniorw = -1; static int hf_pn_io_error_code1_pnio = -1; static int hf_pn_io_error_code2 = -1; static int hf_pn_io_error_code2_pniorw = -1; static int hf_pn_io_error_code2_pnio_1 = -1; static int hf_pn_io_error_code2_pnio_2 = -1; static int hf_pn_io_error_code2_pnio_3 = -1; static int hf_pn_io_error_code2_pnio_4 = -1; static int hf_pn_io_error_code2_pnio_5 = -1; static int hf_pn_io_error_code2_pnio_6 = -1; static int hf_pn_io_error_code2_pnio_7 = -1; static int hf_pn_io_error_code2_pnio_8 = -1; static int hf_pn_io_error_code2_pnio_20 = -1; static int hf_pn_io_error_code2_pnio_21 = -1; static int hf_pn_io_error_code2_pnio_22 = -1; static int hf_pn_io_error_code2_pnio_23 = -1; static int hf_pn_io_error_code2_pnio_40 = -1; static int hf_pn_io_error_code2_pnio_61 = -1; static int hf_pn_io_error_code2_pnio_62 = -1; static int hf_pn_io_error_code2_pnio_63 = -1; static int hf_pn_io_error_code2_pnio_64 = -1; static int hf_pn_io_error_code2_pnio_65 = -1; static int hf_pn_io_error_code2_pnio_66 = -1; static int hf_pn_io_error_code2_pnio_70 = -1; static int hf_pn_io_error_code2_pnio_71 = -1; static int hf_pn_io_error_code2_pnio_72 = -1; static int hf_pn_io_error_code2_pnio_73 = -1; static int hf_pn_io_error_code2_pnio_74 = -1; static int hf_pn_io_error_code2_pnio_75 = -1; static int hf_pn_io_error_code2_pnio_76 = -1; static int hf_pn_io_error_code2_pnio_77 = -1; static int hf_pn_io_error_code2_pnio_253 = -1; static int hf_pn_io_error_code2_pnio_255 = -1; static int hf_pn_io_alarm_type = -1; static int hf_pn_io_alarm_specifier = -1; static int hf_pn_io_alarm_specifier_sequence = -1; static int hf_pn_io_alarm_specifier_channel = -1; static int hf_pn_io_alarm_specifier_manufacturer = -1; static int hf_pn_io_alarm_specifier_submodule = -1; static int hf_pn_io_alarm_specifier_ardiagnosis = -1; static int hf_pn_io_alarm_dst_endpoint = -1; static int hf_pn_io_alarm_src_endpoint = -1; static int hf_pn_io_pdu_type = -1; static int hf_pn_io_pdu_type_type = -1; static int hf_pn_io_pdu_type_version = -1; static int hf_pn_io_add_flags = -1; static int hf_pn_io_window_size = -1; static int hf_pn_io_tack = -1; static int hf_pn_io_send_seq_num = -1; static int hf_pn_io_ack_seq_num = -1; static int hf_pn_io_var_part_len = -1; static int hf_pn_io_number_of_modules = -1; static int hf_pn_io_module_ident_number = -1; static int hf_pn_io_module_properties = -1; static int hf_pn_io_module_state = -1; static int hf_pn_io_number_of_submodules = -1; static int hf_pn_io_submodule_ident_number = -1; static int hf_pn_io_submodule_properties = -1; static int hf_pn_io_submodule_properties_type = -1; static int hf_pn_io_submodule_properties_shared_input = -1; static int your_sha256_hash = -1; static int your_sha256_hashh = -1; static int hf_pn_io_submodule_properties_discard_ioxs = -1; static int hf_pn_io_submodule_properties_reserved = -1; static int hf_pn_io_submodule_state = -1; static int hf_pn_io_submodule_state_format_indicator = -1; static int hf_pn_io_submodule_state_add_info = -1; static int hf_pn_io_submodule_state_qualified_info = -1; static int hf_pn_io_submodule_state_maintenance_required = -1; static int hf_pn_io_submodule_state_maintenance_demanded = -1; static int hf_pn_io_submodule_state_diag_info = -1; static int hf_pn_io_submodule_state_ar_info = -1; static int hf_pn_io_submodule_state_ident_info = -1; static int hf_pn_io_submodule_state_detail = -1; static int hf_pn_io_data_description_tree = -1; static int hf_pn_io_data_description = -1; static int hf_pn_io_submodule_data_length = -1; static int hf_pn_io_length_iocs = -1; static int hf_pn_io_length_iops = -1; static int hf_pn_io_iocs = -1; static int hf_pn_io_iops = -1; static int hf_pn_io_ioxs_extension = -1; static int hf_pn_io_ioxs_res14 = -1; static int hf_pn_io_ioxs_instance = -1; static int hf_pn_io_ioxs_datastate = -1; static int hf_pn_io_address_resolution_properties = -1; static int hf_pn_io_mci_timeout_factor = -1; static int hf_pn_io_provider_station_name = -1; static int hf_pn_io_user_structure_identifier = -1; static int hf_pn_io_user_structure_identifier_manf = -1; static int hf_pn_io_channel_number = -1; static int hf_pn_io_channel_properties = -1; static int hf_pn_io_channel_properties_type = -1; static int hf_pn_io_channel_properties_accumulative = -1; static int hf_pn_io_channel_properties_maintenance = -1; static int hf_pn_io_NumberOfSubframeBlocks = -1; static int hf_pn_io_channel_properties_specifier = -1; static int hf_pn_io_channel_properties_direction = -1; static int hf_pn_io_channel_error_type = -1; static int hf_pn_io_ext_channel_error_type0 = -1; static int hf_pn_io_ext_channel_error_type0x8000 = -1; static int hf_pn_io_ext_channel_error_type0x8001 = -1; static int hf_pn_io_ext_channel_error_type0x8002 = -1; static int hf_pn_io_ext_channel_error_type0x8003 = -1; static int hf_pn_io_ext_channel_error_type0x8004 = -1; static int hf_pn_io_ext_channel_error_type0x8005 = -1; static int hf_pn_io_ext_channel_error_type0x8007 = -1; static int hf_pn_io_ext_channel_error_type0x8008 = -1; static int hf_pn_io_ext_channel_error_type0x800A = -1; static int hf_pn_io_ext_channel_error_type0x800B = -1; static int hf_pn_io_ext_channel_error_type0x800C = -1; static int hf_pn_io_ext_channel_error_type = -1; static int hf_pn_io_ext_channel_add_value = -1; static int hf_pn_io_ptcp_subdomain_id = -1; static int hf_pn_io_ir_data_id = -1; static int hf_pn_io_max_bridge_delay = -1; static int hf_pn_io_number_of_ports = -1; static int hf_pn_io_max_port_tx_delay = -1; static int hf_pn_io_max_port_rx_delay = -1; static int hf_pn_io_max_line_rx_delay = -1; static int hf_pn_io_yellowtime = -1; static int hf_pn_io_reserved_interval_begin = -1; static int hf_pn_io_reserved_interval_end = -1; static int hf_pn_io_pllwindow = -1; static int hf_pn_io_sync_send_factor = -1; static int hf_pn_io_sync_properties = -1; static int hf_pn_io_sync_frame_address = -1; static int hf_pn_io_ptcp_timeout_factor = -1; static int hf_pn_io_ptcp_takeover_timeout_factor = -1; static int hf_pn_io_ptcp_master_startup_time = -1; static int hf_pn_io_ptcp_master_priority_1 = -1; static int hf_pn_io_ptcp_master_priority_2 = -1; static int hf_pn_io_ptcp_length_subdomain_name = -1; static int hf_pn_io_ptcp_subdomain_name = -1; static int hf_pn_io_MultipleInterfaceMode_NameOfDevice = -1; static int hf_pn_io_MultipleInterfaceMode_reserved_1 = -1; static int hf_pn_io_MultipleInterfaceMode_reserved_2 = -1; /* added Portstatistics */ static int hf_pn_io_pdportstatistic_ifInOctets = -1; static int hf_pn_io_pdportstatistic_ifOutOctets = -1; static int hf_pn_io_pdportstatistic_ifInDiscards = -1; static int hf_pn_io_pdportstatistic_ifOutDiscards = -1; static int hf_pn_io_pdportstatistic_ifInErrors = -1; static int hf_pn_io_pdportstatistic_ifOutErrors = -1; /* end of port statistics */ static int hf_pn_io_domain_boundary = -1; static int hf_pn_io_domain_boundary_ingress = -1; static int hf_pn_io_domain_boundary_egress = -1; static int hf_pn_io_multicast_boundary = -1; static int hf_pn_io_adjust_properties = -1; static int hf_pn_io_PreambleLength = -1; static int hf_pn_io_mau_type = -1; static int hf_pn_io_mau_type_mode = -1; static int hf_pn_io_port_state = -1; static int hf_pn_io_line_delay = -1; static int hf_pn_io_number_of_peers = -1; static int hf_pn_io_length_peer_port_id = -1; static int hf_pn_io_peer_port_id = -1; static int hf_pn_io_length_peer_chassis_id = -1; static int hf_pn_io_peer_chassis_id = -1; static int hf_pn_io_length_own_port_id = -1; static int hf_pn_io_own_port_id = -1; static int hf_pn_io_peer_macadd = -1; static int hf_pn_io_media_type = -1; static int hf_pn_io_macadd = -1; static int hf_pn_io_length_own_chassis_id = -1; static int hf_pn_io_own_chassis_id = -1; static int hf_pn_io_ethertype = -1; static int hf_pn_io_rx_port = -1; static int hf_pn_io_frame_details = -1; static int hf_pn_io_frame_details_sync_frame = -1; static int hf_pn_io_frame_details_meaning_frame_send_offset = -1; static int hf_pn_io_frame_details_reserved = -1; static int hf_pn_io_nr_of_tx_port_groups = -1; static int hf_pn_io_TxPortGroupProperties = -1; static int hf_pn_io_TxPortGroupProperties_bit0 = -1; static int hf_pn_io_TxPortGroupProperties_bit1 = -1; static int hf_pn_io_TxPortGroupProperties_bit2 = -1; static int hf_pn_io_TxPortGroupProperties_bit3 = -1; static int hf_pn_io_TxPortGroupProperties_bit4 = -1; static int hf_pn_io_TxPortGroupProperties_bit5 = -1; static int hf_pn_io_TxPortGroupProperties_bit6 = -1; static int hf_pn_io_TxPortGroupProperties_bit7 = -1; static int hf_pn_io_start_of_red_frame_id = -1; static int hf_pn_io_end_of_red_frame_id = -1; static int hf_pn_io_ir_begin_end_port = -1; static int hf_pn_io_number_of_assignments = -1; static int hf_pn_io_number_of_phases = -1; static int hf_pn_io_red_orange_period_begin_tx = -1; static int hf_pn_io_orange_period_begin_tx = -1; static int hf_pn_io_green_period_begin_tx = -1; static int hf_pn_io_red_orange_period_begin_rx = -1; static int hf_pn_io_orange_period_begin_rx = -1; static int hf_pn_io_green_period_begin_rx = -1; /* static int hf_pn_io_tx_phase_assignment = -1; */ static int hf_pn_ir_tx_phase_assignment = -1; static int hf_pn_ir_rx_phase_assignment = -1; static int hf_pn_io_tx_phase_assignment_begin_value = -1; static int hf_pn_io_tx_phase_assignment_orange_begin = -1; static int hf_pn_io_tx_phase_assignment_end_reserved = -1; static int hf_pn_io_tx_phase_assignment_reserved = -1; /* static int hf_pn_io_rx_phase_assignment = -1; */ static int hf_pn_io_slot = -1; static int hf_pn_io_subslot = -1; static int hf_pn_io_number_of_slots = -1; static int hf_pn_io_number_of_subslots = -1; /* static int hf_pn_io_maintenance_required_drop_budget = -1; */ /* static int hf_pn_io_maintenance_demanded_drop_budget = -1; */ /* static int hf_pn_io_error_drop_budget = -1; */ static int hf_pn_io_maintenance_required_power_budget = -1; static int hf_pn_io_maintenance_demanded_power_budget = -1; static int hf_pn_io_error_power_budget = -1; static int hf_pn_io_fiber_optic_type = -1; static int hf_pn_io_fiber_optic_cable_type = -1; static int hf_pn_io_controller_appl_cycle_factor = -1; static int hf_pn_io_time_data_cycle = -1; static int hf_pn_io_time_io_input = -1; static int hf_pn_io_time_io_output = -1; static int hf_pn_io_time_io_input_valid = -1; static int hf_pn_io_time_io_output_valid = -1; static int hf_pn_io_maintenance_status = -1; static int hf_pn_io_maintenance_status_required = -1; static int hf_pn_io_maintenance_status_demanded = -1; static int hf_pn_io_vendor_id_high = -1; static int hf_pn_io_vendor_id_low = -1; static int hf_pn_io_vendor_block_type = -1; static int hf_pn_io_order_id = -1; static int hf_pn_io_im_serial_number = -1; static int hf_pn_io_im_hardware_revision = -1; static int hf_pn_io_im_revision_prefix = -1; static int hf_pn_io_im_sw_revision_functional_enhancement = -1; static int hf_pn_io_im_revision_bugfix = -1; static int hf_pn_io_im_sw_revision_internal_change = -1; static int hf_pn_io_im_revision_counter = -1; static int hf_pn_io_im_profile_id = -1; static int hf_pn_io_im_profile_specific_type = -1; static int hf_pn_io_im_version_major = -1; static int hf_pn_io_im_version_minor = -1; static int hf_pn_io_im_supported = -1; static int hf_pn_io_im_numberofentries = -1; static int hf_pn_io_im_annotation = -1; static int hf_pn_io_im_order_id = -1; static int hf_pn_io_number_of_ars = -1; static int hf_pn_io_cycle_counter = -1; static int hf_pn_io_data_status = -1; static int hf_pn_io_data_status_res67 = -1; static int hf_pn_io_data_status_ok = -1; static int hf_pn_io_data_status_operate = -1; static int hf_pn_io_data_status_res3 = -1; static int hf_pn_io_data_status_valid = -1; static int hf_pn_io_data_status_res1 = -1; static int hf_pn_io_data_status_primary = -1; static int hf_pn_io_transfer_status = -1; static int hf_pn_io_actual_local_time_stamp = -1; static int hf_pn_io_number_of_log_entries = -1; static int hf_pn_io_local_time_stamp = -1; static int hf_pn_io_entry_detail = -1; static int hf_pn_io_ip_address = -1; static int hf_pn_io_subnetmask = -1; static int hf_pn_io_standard_gateway = -1; static int hf_pn_io_mrp_domain_uuid = -1; static int hf_pn_io_mrp_role = -1; static int hf_pn_io_mrp_length_domain_name = -1; static int hf_pn_io_mrp_domain_name = -1; static int hf_pn_io_mrp_instances = -1; static int hf_pn_io_mrp_instance = -1; static int hf_pn_io_mrp_prio = -1; static int hf_pn_io_mrp_topchgt = -1; static int hf_pn_io_mrp_topnrmax = -1; static int hf_pn_io_mrp_tstshortt = -1; static int hf_pn_io_mrp_tstdefaultt = -1; static int hf_pn_io_mrp_tstnrmax = -1; static int hf_pn_io_mrp_check = -1; static int hf_pn_io_mrp_check_mrm = -1; static int hf_pn_io_mrp_check_mrpdomain = -1; static int hf_pn_io_mrp_check_reserved_1 = -1; static int hf_pn_io_mrp_check_reserved_2 = -1; static int hf_pn_io_mrp_rtmode = -1; static int hf_pn_io_mrp_rtmode_rtclass12 = -1; static int hf_pn_io_mrp_rtmode_rtclass3 = -1; static int hf_pn_io_mrp_rtmode_reserved1 = -1; static int hf_pn_io_mrp_rtmode_reserved2 = -1; static int hf_pn_io_mrp_lnkdownt = -1; static int hf_pn_io_mrp_lnkupt = -1; static int hf_pn_io_mrp_lnknrmax = -1; static int hf_pn_io_mrp_version = -1; static int hf_pn_io_substitute_active_flag = -1; static int hf_pn_io_length_data = -1; static int hf_pn_io_mrp_ring_state = -1; static int hf_pn_io_mrp_rt_state = -1; static int hf_pn_io_im_tag_function = -1; static int hf_pn_io_im_tag_location = -1; static int hf_pn_io_im_date = -1; static int hf_pn_io_im_descriptor = -1; static int hf_pn_io_fs_hello_mode = -1; static int hf_pn_io_fs_hello_interval = -1; static int hf_pn_io_fs_hello_retry = -1; static int hf_pn_io_fs_hello_delay = -1; static int hf_pn_io_fs_parameter_mode = -1; static int hf_pn_io_fs_parameter_uuid = -1; static int hf_pn_io_check_sync_mode = -1; static int hf_pn_io_check_sync_mode_reserved = -1; static int hf_pn_io_check_sync_mode_sync_master = -1; static int hf_pn_io_check_sync_mode_cable_delay = -1; /* PROFIsafe fParameters */ static int hf_pn_io_ps_f_prm_flag1 = -1; static int hf_pn_io_ps_f_prm_flag1_chck_seq = -1; static int hf_pn_io_ps_f_prm_flag1_chck_ipar = -1; static int hf_pn_io_ps_f_prm_flag1_sil = -1; static int hf_pn_io_ps_f_prm_flag1_crc_len = -1; static int hf_pn_io_ps_f_prm_flag1_crc_seed = -1; static int hf_pn_io_ps_f_prm_flag1_reserved = -1; static int hf_pn_io_ps_f_prm_flag2 = -1; static int hf_pn_io_ps_f_wd_time = -1; static int hf_pn_io_ps_f_ipar_crc = -1; static int hf_pn_io_ps_f_par_crc = -1; static int hf_pn_io_ps_f_src_adr = -1; static int hf_pn_io_ps_f_dest_adr = -1; static int hf_pn_io_ps_f_prm_flag2_reserved = -1; static int hf_pn_io_ps_f_prm_flag2_f_block_id = -1; static int hf_pn_io_ps_f_prm_flag2_f_par_version = -1; static int hf_pn_io_profidrive_request_reference = -1; static int hf_pn_io_profidrive_request_id = -1; static int hf_pn_io_profidrive_do_id = -1; static int hf_pn_io_profidrive_no_of_parameters = -1; static int hf_pn_io_profidrive_response_id = -1; static int hf_pn_io_profidrive_param_attribute = -1; static int hf_pn_io_profidrive_param_no_of_elems = -1; static int hf_pn_io_profidrive_param_number = -1; static int hf_pn_io_profidrive_param_subindex = -1; static int hf_pn_io_profidrive_param_format = -1; static int hf_pn_io_profidrive_param_no_of_values = -1; static int hf_pn_io_profidrive_param_value_byte = -1; static int hf_pn_io_profidrive_param_value_word = -1; static int hf_pn_io_profidrive_param_value_dword = -1; static int hf_pn_io_profidrive_param_value_float = -1; static int hf_pn_io_profidrive_param_value_string = -1; /* static int hf_pn_io_packedframe_SFCRC = -1; */ static gint ett_pn_io = -1; static gint ett_pn_io_block = -1; static gint ett_pn_io_block_header = -1; static gint ett_pn_io_status = -1; static gint ett_pn_io_rtc = -1; static gint ett_pn_io_rta = -1; static gint ett_pn_io_pdu_type = -1; static gint ett_pn_io_add_flags = -1; static gint ett_pn_io_control_command = -1; static gint ett_pn_io_ioxs = -1; static gint ett_pn_io_api = -1; static gint ett_pn_io_data_description = -1; static gint ett_pn_io_module = -1; static gint ett_pn_io_submodule = -1; static gint ett_pn_io_io_data_object = -1; static gint ett_pn_io_io_cs = -1; static gint ett_pn_io_ar_properties = -1; static gint ett_pn_io_iocr_properties = -1; static gint ett_pn_io_submodule_properties = -1; static gint ett_pn_io_alarmcr_properties = -1; static gint ett_pn_io_submodule_state = -1; static gint ett_pn_io_channel_properties = -1; static gint ett_pn_io_slot = -1; static gint ett_pn_io_subslot = -1; static gint ett_pn_io_maintenance_status = -1; static gint ett_pn_io_data_status = -1; static gint ett_pn_io_iocr = -1; static gint ett_pn_io_mrp_rtmode = -1; static gint ett_pn_io_control_block_properties = -1; static gint ett_pn_io_check_sync_mode = -1; static gint ett_pn_io_ir_frame_data = -1; static gint ett_pn_FrameDataProperties = -1; static gint ett_pn_io_ar_info = -1; static gint ett_pn_io_ar_data = -1; static gint ett_pn_io_ir_begin_end_port = -1; static gint ett_pn_io_ir_tx_phase = -1; static gint ett_pn_io_ir_rx_phase = -1; static gint ett_pn_io_subframe_data =-1; static gint ett_pn_io_SFIOCRProperties = -1; static gint ett_pn_io_frame_defails = -1; static gint ett_pn_io_profisafe_f_parameter = -1; static gint ett_pn_io_profisafe_f_parameter_prm_flag1 = -1; static gint ett_pn_io_profisafe_f_parameter_prm_flag2 = -1; static gint ett_pn_io_profidrive_parameter_request = -1; static gint ett_pn_io_profidrive_parameter_response = -1; static gint ett_pn_io_profidrive_parameter_address = -1; static gint ett_pn_io_profidrive_parameter_value = -1; static gint ett_pn_io_GroupProperties = -1; #define PD_SUB_FRAME_BLOCK_FIOCR_PROPERTIES_LENGTH 4 #define PD_SUB_FRAME_BLOCK_FRAME_ID_LENGTH 2 #define PD_SUB_FRAME_BLOCK_SUB_FRAME_DATA_LENGTH 4 static expert_field ei_pn_io_block_version = EI_INIT; static expert_field ei_pn_io_block_length = EI_INIT; static expert_field ei_pn_io_unsupported = EI_INIT; static expert_field ei_pn_io_error_code1 = EI_INIT; static expert_field ei_pn_io_localalarmref = EI_INIT; static expert_field ei_pn_io_mrp_instances = EI_INIT; static expert_field ei_pn_io_error_code2 = EI_INIT; static expert_field ei_pn_io_ar_info_not_found = EI_INIT; static expert_field ei_pn_io_iocr_type = EI_INIT; static expert_field ei_pn_io_frame_id = EI_INIT; static expert_field ei_pn_io_nr_of_tx_port_groups = EI_INIT; static e_guid_t uuid_pn_io_device = { 0xDEA00001, 0x6C97, 0x11D1, { 0x82, 0x71, 0x00, 0xA0, 0x24, 0x42, 0xDF, 0x7D } }; static guint16 ver_pn_io_device = 1; static e_guid_t uuid_pn_io_controller = { 0xDEA00002, 0x6C97, 0x11D1, { 0x82, 0x71, 0x00, 0xA0, 0x24, 0x42, 0xDF, 0x7D } }; static guint16 ver_pn_io_controller = 1; static e_guid_t uuid_pn_io_supervisor = { 0xDEA00003, 0x6C97, 0x11D1, { 0x82, 0x71, 0x00, 0xA0, 0x24, 0x42, 0xDF, 0x7D } }; static guint16 ver_pn_io_supervisor = 1; static e_guid_t uuid_pn_io_parameterserver = { 0xDEA00004, 0x6C97, 0x11D1, { 0x82, 0x71, 0x00, 0xA0, 0x24, 0x42, 0xDF, 0x7D } }; static guint16 ver_pn_io_parameterserver = 1; /* PNIO Preference Variables */ gboolean pnio_ps_selection = TRUE; static const char *pnio_ps_networkpath = ""; /* Allow heuristic dissection */ static heur_dissector_list_t heur_pn_subdissector_list; static const value_string pn_io_block_type[] = { { 0x0000, "Reserved" }, { 0x0001, "Alarm Notification High"}, { 0x0002, "Alarm Notification Low"}, { 0x0008, "IODWriteReqHeader"}, { 0x8008, "IODWriteResHeader"}, { 0x0009, "IODReadReqHeader"}, { 0x8009, "IODReadResHeader"}, { 0x0010, "DiagnosisData"}, { 0x0011, "Reserved"}, { 0x0012, "ExpectedIdentificationData"}, { 0x0013, "RealIdentificationData"}, { 0x0014, "SubstituteValue"}, { 0x0015, "RecordInputDataObjectElement"}, { 0x0016, "RecordOutputDataObjectElement"}, { 0x0017, "reserved"}, { 0x0018, "ARData"}, { 0x0019, "LogData"}, { 0x001A, "APIData"}, { 0x001b, "SRLData"}, { 0x0020, "I&M0"}, { 0x0021, "I&M1"}, { 0x0022, "I&M2"}, { 0x0023, "I&M3"}, { 0x0024, "I&M4"}, { 0x0025, "I&M5"}, { 0x0026, "I&M6"}, { 0x0027, "I&M7"}, { 0x0028, "I&M8"}, { 0x0029, "I&M9"}, { 0x002A, "I&M10"}, { 0x002B, "I&M11"}, { 0x002C, "I&M12"}, { 0x002D, "I&M13"}, { 0x002E, "I&M14"}, { 0x002F, "I&M15"}, { 0x0030, "I&M0FilterDataSubmodul"}, { 0x0031, "I&M0FilterDataModul"}, { 0x0032, "I&M0FilterDataDevice"}, { 0x0033, "I&M5Data"}, { 0x8001, "Alarm Ack High"}, { 0x8002, "Alarm Ack Low"}, { 0x0101, "ARBlockReq"}, { 0x8101, "ARBlockRes"}, { 0x0102, "IOCRBlockReq"}, { 0x8102, "IOCRBlockRes"}, { 0x0103, "AlarmCRBlockReq"}, { 0x8103, "AlarmCRBlockRes"}, { 0x0104, "ExpectedSubmoduleBlockReq"}, { 0x8104, "ModuleDiffBlock"}, { 0x0105, "PrmServerBlockReq"}, { 0x8105, "PrmServerBlockRes"}, { 0x0106, "MCRBlockReq"}, { 0x8106, "ARServerBlock"}, { 0x0107, "SubFrameBlock"}, { 0x0108, "ARVendorBlockReq"}, { 0x8108, "ARVendorBlockRes"}, { 0x0109, "IRInfoBlock"}, { 0x010A, "SRInfoBlock"}, { 0x010B, "ARFSUBlock"}, { 0x0110, "IODControlReq Prm End.req"}, { 0x8110, "IODControlRes Prm End.rsp"}, { 0x0111, "IODControlReq Prm End.req"}, { 0x8111, "IODControlRes Prm End.rsp"}, { 0x0112, "IOXBlockReq Application Ready.req"}, { 0x8112, "IOXBlockRes Application Ready.rsp"}, { 0x0113, "IOXBlockReq Application Ready.req"}, { 0x8113, "IOXBlockRes Application Ready.rsp"}, { 0x0114, "IODReleaseReq"}, { 0x8114, "IODReleaseRes"}, { 0x0115, "ARRPCServerBlockReq"}, { 0x8115, "ARRPCServerBlockRes"}, { 0x0116, "IOXControlReq Ready for Companion.req"}, { 0x8116, "IOXControlRes Ready for Companion.rsp"}, { 0x0117, "IOXControlReq Ready for RT_CLASS_3.req"}, { 0x8117, "IOXControlRes Ready for RT_CLASS_3.rsp"}, { 0x0118, "ControlBlockPrmBegin"}, { 0x0119, "SubmoduleListBlock"}, { 0x8118, "ControlBlockPrmBeginRes"}, { 0x0200, "PDPortDataCheck"}, { 0x0201, "PDevData"}, { 0x0202, "PDPortDataAdjust"}, { 0x0203, "PDSyncData"}, { 0x0204, "IsochronousModeData"}, { 0x0205, "PDIRData"}, { 0x0206, "PDIRGlobalData"}, { 0x0207, "PDIRFrameData"}, { 0x0208, "PDIRBeginEndData"}, { 0x0209, "AdjustDomainBoundary"}, { 0x020A, "CheckPeers"}, { 0x020B, "CheckLineDelay"}, { 0x020C, "Checking MAUType"}, { 0x020E, "Adjusting MAUType"}, { 0x020F, "PDPortDataReal"}, { 0x0210, "AdjustMulticastBoundary"}, { 0x0211, "PDInterfaceMrpDataAdjust"}, { 0x0212, "PDInterfaceMrpDataReal"}, { 0x0213, "PDInterfaceMrpDataCheck"}, { 0x0214, "PDPortMrpDataAdjust"}, { 0x0215, "PDPortMrpDataReal"}, { 0x0216, "Media redundancy manager parameters"}, { 0x0217, "Media redundancy client parameters"}, { 0x0218, "Media redundancy RT mode for manager"}, { 0x0219, "Media redundancy ring state data"}, { 0x021A, "Media redundancy RT ring state data"}, { 0x021B, "Adjust LinkState"}, { 0x021C, "Checking LinkState"}, { 0x021D, "Media redundancy RT mode for clients"}, { 0x021E, "CheckSyncDifference"}, { 0x021F, "CheckMAUTypeDifference"}, { 0x0220, "PDPortFODataReal"}, { 0x0221, "Reading real fiber optic manufacturerspecific data"}, { 0x0222, "PDPortFODataAdjust"}, { 0x0223, "PDPortFODataCheck"}, { 0x0224, "Adjust PeerToPeerBoundary"}, { 0x0225, "Adjust DCPBoundary"}, { 0x0226, "Adjust PreambleLength"}, { 0x0227, "Adjust FastForwardingBoundary"}, { 0x0228, "Reading real fiber optic diagnosis data"}, { 0x022A, "PDIRSubframeData"}, { 0x022B, "SubframeBlock"}, { 0x0230, "PDNCDataCheck"}, { 0x0231, "MrpInstanceDataAdjust"}, { 0x0232, "MrpInstanceDataReal"}, { 0x0233, "MrpInstanceDataCheck"}, { 0x0240, "PDInterfaceDataReal"}, { 0x0250, "PDInterfaceAdjust"}, { 0x0251, "PDPortStatistic"}, { 0x0400, "MultipleBlockHeader"}, { 0x0401, "COContainerContent"}, { 0x0500, "RecordDataReadQuery"}, { 0x0600, "FSHello"}, { 0x0601, "FSParameterBlock"}, { 0x0608, "PDInterfaceFSUDataAdjust"}, { 0x0609, "ARFSUDataAdjust"}, { 0x0700, "AutoConfiguration"}, { 0x0701, "AutoConfiguration Communication"}, { 0x0702, "AutoConfiguration Configuration"}, { 0xB050, "Ext-PLL Control / RTC+RTA SyncID 0 (EDD)" }, { 0xB051, "Ext-PLL Control / RTA SyncID 1 (GSY)" }, { 0xB060, "EDD Trace Unit (EDD)" }, { 0xB061, "EDD Trace Unit (EDD)" }, { 0xB070, "OHA Info (OHA)" }, { 0x0F00, "MaintenanceItem"}, { 0x0F01, "Upload selected Records within Upload&RetrievalItem"}, { 0x0F02, "iParameterItem"}, { 0x0F03, "Retrieve selected Records within Upload&RetrievalItem"}, { 0x0F04, "Retrieve all Records within Upload&RetrievalItem"}, { 0, NULL } }; static const value_string pn_io_alarm_type[] = { { 0x0000, "Reserved" }, { 0x0001, "Diagnosis" }, { 0x0002, "Process" }, { 0x0003, "Pull" }, { 0x0004, "Plug" }, { 0x0005, "Status" }, { 0x0006, "Update" }, { 0x0007, "Redundancy" }, { 0x0008, "Controlled by supervisor" }, { 0x0009, "Released" }, { 0x000A, "Plug wrong submodule" }, { 0x000B, "Return of submodule" }, { 0x000C, "Diagnosis disappears" }, { 0x000D, "Multicast communication mismatch notification" }, { 0x000E, "Port data change notification" }, { 0x000F, "Sync data changed notification" }, { 0x0010, "Isochronous mode problem notification" }, { 0x0011, "Network component problem notification" }, { 0x0012, "Time data changed notification" }, { 0x0013, "Dynamic Frame Packing problem notification" }, /*0x0014 - 0x001D reserved */ { 0x001E, "Upload and retrieval notification" }, { 0x001F, "Pull module" }, /*0x0020 - 0x007F manufacturer specific */ /*0x0080 - 0x00FF reserved for profiles */ /*0x0100 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_pdu_type[] = { { 0x01, "Data-RTA-PDU" }, { 0x02, "NACK-RTA-PDU" }, { 0x03, "ACK-RTA-PDU" }, { 0x04, "ERR-RTA-PDU" }, { 0, NULL } }; static const value_string hf_pn_io_frame_data_properties_forwardingMode[] = { { 0x00, "absolute mode" }, { 0x01, "relative mode"}, { 0, NULL } }; static const value_string hf_pn_io_frame_data_properties_FFMulticastMACAdd[] = { { 0x00, "Use interface MAC destination unicast address" }, { 0x01, "Use RT_CLASS_3 destination multicast address"}, { 0x02, "Use FastForwardingMulticastMACAdd"}, { 0x03, "reserved"}, { 0, NULL }}; static const value_string hf_pn_io_frame_data_properties_FragMode[] = { { 0x00, "No fragmentation" }, { 0x01, "Fragmentation enabled maximum size for static fragmentation 128 bytes"}, { 0x02, "Fragmentation enabled maximum size for static fragmentation 256 bytes"}, { 0x03, "reserved"}, { 0, NULL }}; static const value_string pn_io_SFIOCRProperties_DFPType_vals[] = { { 0x00, "DFP_INBOUND" }, { 0x01, "DFP_OUTBOUND" }, { 0, NULL } }; static const value_string pn_io_DFPRedundantPathLayout_decode[] = { { 0x00, "The Frame for the redundant path contains the ordering shown by SubframeData" }, { 0x01, "The Frame for the redundant path contains the inverse ordering shown by SubframeData" }, { 0, NULL } }; static const value_string pn_io_SFCRC16_Decode[] = { { 0x00, "SFCRC16 and SFCycleCounter shall be created or set to zero by the sender and not checked by the receiver" }, { 0x01, "SFCRC16 and SFCycleCounter shall be created by the sender and checked by the receiver." }, { 0, NULL } }; static const value_string pn_io_txgroup_state[] = { { 0x00, "Transmission off" }, { 0x01, "Transmission on " }, { 0, NULL } }; static const value_string pn_io_error_code[] = { { 0x00, "OK" }, { 0x81, "PNIO" }, { 0xCF, "RTA error" }, { 0xDA, "AlarmAck" }, { 0xDB, "IODConnectRes" }, { 0xDC, "IODReleaseRes" }, { 0xDD, "IODControlRes" }, { 0xDE, "IODReadRes" }, { 0xDF, "IODWriteRes" }, { 0, NULL } }; static const value_string pn_io_error_decode[] = { { 0x00, "OK" }, { 0x80, "PNIORW" }, { 0x81, "PNIO" }, { 0, NULL } }; /* dummy for unknown decode */ static const value_string pn_io_error_code1[] = { { 0x00, "OK" }, { 0, NULL } }; /* dummy for unknown decode/code1 combination */ static const value_string pn_io_error_code2[] = { { 0x00, "OK" }, { 0, NULL } }; static const value_string pn_io_error_code1_pniorw[] = { /* high nibble 0-9 not specified -> legacy codes */ { 0xa0, "application: read error" }, { 0xa1, "application: write error" }, { 0xa2, "application: module failure" }, { 0xa3, "application: not specified" }, { 0xa4, "application: not specified" }, { 0xa5, "application: not specified" }, { 0xa6, "application: not specified" }, { 0xa7, "application: busy" }, { 0xa8, "application: version conflict" }, { 0xa9, "application: feature not supported" }, { 0xaa, "application: User specific 1" }, { 0xab, "application: User specific 2" }, { 0xac, "application: User specific 3" }, { 0xad, "application: User specific 4" }, { 0xae, "application: User specific 5" }, { 0xaf, "application: User specific 6" }, { 0xb0, "access: invalid index" }, { 0xb1, "access: write length error" }, { 0xb2, "access: invalid slot/subslot" }, { 0xb3, "access: type conflict" }, { 0xb4, "access: invalid area" }, { 0xb5, "access: state conflict" }, { 0xb6, "access: access denied" }, { 0xb7, "access: invalid range" }, { 0xb8, "access: invalid parameter" }, { 0xb9, "access: invalid type" }, { 0xba, "access: backup" }, { 0xbb, "access: User specific 7" }, { 0xbc, "access: User specific 8" }, { 0xbd, "access: User specific 9" }, { 0xbe, "access: User specific 10" }, { 0xbf, "access: User specific 11" }, { 0xc0, "resource: read constrain conflict" }, { 0xc1, "resource: write constrain conflict" }, { 0xc2, "resource: resource busy" }, { 0xc3, "resource: resource unavailable" }, { 0xc4, "resource: not specified" }, { 0xc5, "resource: not specified" }, { 0xc6, "resource: not specified" }, { 0xc7, "resource: not specified" }, { 0xc8, "resource: User specific 12" }, { 0xc9, "resource: User specific 13" }, { 0xca, "resource: User specific 14" }, { 0xcb, "resource: User specific 15" }, { 0xcc, "resource: User specific 16" }, { 0xcd, "resource: User specific 17" }, { 0xce, "resource: User specific 18" }, { 0xcf, "resource: User specific 19" }, /* high nibble d-f user specific */ { 0, NULL } }; static const value_string pn_io_error_code2_pniorw[] = { /* all values are user specified */ { 0, NULL } }; static const value_string pn_io_error_code1_pnio[] = { { 0x00 /* 0*/, "Reserved" }, { 0x01 /* 1*/, "Connect: Faulty ARBlockReq" }, { 0x02 /* 2*/, "Connect: Faulty IOCRBlockReq" }, { 0x03 /* 3*/, "Connect: Faulty ExpectedSubmoduleBlockReq" }, { 0x04 /* 4*/, "Connect: Faulty AlarmCRBlockReq" }, { 0x05 /* 5*/, "Connect: Faulty PrmServerBlockReq" }, { 0x06 /* 6*/, "Connect: Faulty MCRBlockReq" }, { 0x07 /* 7*/, "Connect: Faulty ARRPCBlockReq" }, { 0x08 /* 8*/, "Read/Write Record: Faulty Record" }, { 0x09 /* 9*/, "Connect: Faulty SubFrameBlock" }, { 0x0A /* 10*/, "Connect: Faulty IRTFrameBlock" }, { 0x14 /* 20*/, "IODControl: Faulty ControlBlockConnect" }, { 0x15 /* 21*/, "IODControl: Faulty ControlBlockPlug" }, { 0x16 /* 22*/, "IOXControl: Faulty ControlBlock after a connect est." }, { 0x17 /* 23*/, "IOXControl: Faulty ControlBlock a plug alarm" }, { 0x28 /* 40*/, "Release: Faulty ReleaseBlock" }, { 0x32 /* 50*/, "Response: Faulty ARBlockRes" }, { 0x33 /* 51*/, "Response: Faulty IOCRBlockRes" }, { 0x34 /* 52*/, "Response: Faulty AlarmCRBlockRes" }, { 0x35 /* 53*/, "Response: Faulty ModuleDifflock" }, { 0x36 /* 54*/, "Response: Faulty ARRPCBlockRes" }, { 0x3c /* 60*/, "AlarmAck Error Codes" }, { 0x3d /* 61*/, "CMDEV" }, { 0x3e /* 62*/, "CMCTL" }, { 0x3f /* 63*/, "NRPM" }, { 0x40 /* 64*/, "RMPM" }, { 0x41 /* 65*/, "ALPMI" }, { 0x42 /* 66*/, "ALPMR" }, { 0x43 /* 67*/, "LMPM" }, { 0x44 /* 68*/, "MMAC" }, { 0x45 /* 69*/, "RPC" }, { 0x46 /* 70*/, "APMR" }, { 0x47 /* 71*/, "APMS" }, { 0x48 /* 72*/, "CPM" }, { 0x49 /* 73*/, "PPM" }, { 0x4a /* 74*/, "DCPUCS" }, { 0x4b /* 75*/, "DCPUCR" }, { 0x4c /* 76*/, "DCPMCS" }, { 0x4d /* 77*/, "DCPMCR" }, { 0x4e /* 78*/, "FSPM" }, { 0xfd /*253*/, "RTA_ERR_CLS_PROTOCOL" }, { 0xff /*255*/, "User specific" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_1[] = { /* CheckingRules for ARBlockReq */ { 0, "Error in Parameter BlockType" }, { 1, "Error in Parameter BlockLength" }, { 2, "Error in Parameter BlockVersionHigh" }, { 3, "Error in Parameter BlockVersionLow" }, { 4, "Error in Parameter ARType" }, { 5, "Error in Parameter ARUUID" }, { 7, "Error in Parameter CMInitiatorMACAddress" }, { 8, "Error in Parameter CMInitiatorObjectUUID" }, { 9, "Error in Parameter ARProperties" }, { 10, "Error in Parameter CMInitiatorActivityTimeoutFactor" }, { 11, "Error in Parameter InitiatorUDPRTPort" }, { 12, "Error in Parameter StationNameLength" }, { 13, "Error in Parameter CMInitiatorStationName" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_2[] = { /* CheckingRules for IOCRBlockReq */ { 0, "Error in Parameter BlockType" }, { 1, "Error in Parameter BlockLength" }, { 2, "Error in Parameter BlockVersionHigh" }, { 3, "Error in Parameter BlockVersionLow" }, { 4, "Error in Parameter IOCRType" }, { 5, "Error in Parameter IOCRReference" }, { 6, "Error in Parameter LT" }, { 7, "Error in Parameter IOCRProperties" }, { 8, "Error in Parameter DataLength" }, { 9, "Error in Parameter FrameID" }, { 10, "Error in Parameter SendClockFactor" }, { 11, "Error in Parameter ReductionRatio" }, { 12, "Error in Parameter Phase" }, { 14, "Error in Parameter FrameSendOffset" }, { 15, "Error in Parameter WatchdogFactor" }, { 16, "Error in Parameter DataHoldFactor" }, { 17, "Error in Parameter IOCRTagHeader" }, { 18, "Error in Parameter IOCRMulticastMacAddress" }, { 19, "Error in Parameter NumberOfAPI" }, { 20, "Error in Parameter API" }, { 21, "Error in Parameter NumberOfIODataObjects" }, { 22, "Error in Parameter SlotNumber" }, { 23, "Error in Parameter SubslotNumber" }, { 24, "Error in Parameter IODataObjectFrameOffset" }, { 25, "Error in Parameter NumberOfIOCS" }, { 26, "Error in Parameter SlotNumber" }, { 27, "Error in Parameter SubslotNumber" }, { 28, "Error in Parameter IOCSFrameOffset" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_3[] = { /* CheckingRules for ExpectedSubmoduleBlockReq */ { 0, "Error in Parameter BlockType" }, { 1, "Error in Parameter BlockLength" }, { 2, "Error in Parameter BlockVersionHigh" }, { 3, "Error in Parameter BlockVersionLow" }, { 4, "Error in Parameter NumberOfAPI" }, { 5, "Error in Parameter API" }, { 6, "Error in Parameter SlotNumber" }, { 7, "Error in Parameter ModuleIdentNumber" }, { 8, "Error in Parameter ModuleProperties" }, { 9, "Error in Parameter NumberOfSubmodules" }, { 10, "Error in Parameter SubslotNumber" }, { 12, "Error in Parameter SubmoduleProperties" }, { 13, "Error in Parameter DataDescription" }, { 14, "Error in Parameter SubmoduleDataLength" }, { 15, "Error in Parameter LengthIOPS" }, { 16, "Error in Parameter LengthIOCS" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_4[] = { /* CheckingRules for AlarmCRBlockReq */ { 0, "Error in Parameter BlockType" }, { 1, "Error in Parameter BlockLength" }, { 2, "Error in Parameter BlockVersionHigh" }, { 3, "Error in Parameter BlockVersionLow" }, { 4, "Error in Parameter AlarmCRType" }, { 5, "Error in Parameter LT" }, { 6, "Error in Parameter AlarmCRProperties" }, { 7, "Error in Parameter RTATimeoutFactor" }, { 8, "Error in Parameter RTARetries" }, { 10, "Error in Parameter MaxAlarmDataLength" }, { 11, "Error in Parameter AlarmCRTagHeaderHigh" }, { 12, "Error in Parameter AlarmCRTagHeaderLow" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_5[] = { /* CheckingRules for PrmServerBlockReq */ { 0, "Error in Parameter BlockType" }, { 1, "Error in Parameter BlockLength" }, { 2, "Error in Parameter BlockVersionHigh" }, { 3, "Error in Parameter BlockVersionLow" }, { 6, "Error in Parameter CMInitiatorActivityTimeoutFactor" }, { 7, "Error in Parameter StationNameLength" }, { 8, "Error in Parameter ParameterServerStationName" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_6[] = { /* CheckingRules for MCRBlockReq */ { 0, "Error in Parameter BlockType" }, { 1, "Error in Parameter BlockLength" }, { 2, "Error in Parameter BlockVersionHigh" }, { 3, "Error in Parameter BlockVersionLow" }, { 4, "Error in Parameter IOCRReference" }, { 5, "Error in Parameter AddressResolutionProperties" }, { 6, "Error in Parameter MCITimeoutFactor" }, { 7, "Error in Parameter StationNameLength" }, { 8, "Error in Parameter ProviderStationName" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_7[] = { /* CheckingRules for MCRBlockReq */ { 0, "Error in Parameter BlockType" }, { 1, "Error in Parameter BlockLength" }, { 2, "Error in Parameter BlockVersionHigh" }, { 3, "Error in Parameter BlockVersionLow" }, { 4, "Error in Parameter InitiatorRPCServerPort" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_8[] = { /* CheckingRules for Read/Write ParameterReqHeader */ { 0, "Error in Parameter BlockType" }, { 1, "Error in Parameter BlockLength" }, { 2, "Error in Parameter BlockVersionHigh" }, { 3, "Error in Parameter BlockVersionLow" }, { 5, "Error in Parameter ARUUID" }, { 6, "Error in Parameter API" }, { 7, "Error in Parameter SlotNumber" }, { 8, "Error in Parameter SubslotNumber" }, { 9, "Error in Parameter Padding" }, { 10, "Error in Parameter Index" }, { 11, "Error in Parameter RecordDataLength" }, { 12, "Error in Parameter TargetARUUID" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_20[] = { /* CheckingRules for ControlBlockConnect */ { 0, "Error in Parameter BlockType" }, { 1, "Error in Parameter BlockLength" }, { 2, "Error in Parameter BlockVersionHigh" }, { 3, "Error in Parameter BlockVersionLow" }, { 4, "Error in Parameter Padding" }, { 6, "Error in Parameter SessionKey" }, { 7, "Error in Parameter Padding" }, { 8, "Error in Parameter ControlCommand" }, { 9, "Error in Parameter ControlBlockProperties" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_21[] = { /* CheckingRules for ControlBlockPlug */ { 0, "Error in Parameter BlockType" }, { 1, "Error in Parameter BlockLength" }, { 2, "Error in Parameter BlockVersionHigh" }, { 3, "Error in Parameter BlockVersionLow" }, { 4, "Error in Parameter Padding" }, { 6, "Error in Parameter SessionKey" }, { 7, "Error in Parameter AlarmSequenceNumber" }, { 8, "Error in Parameter ControlCommand" }, { 9, "Error in Parameter ControlBlockProperties" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_22[] = { /* CheckingRule for ControlBlockConnect */ { 0, "Error in Parameter BlockType" }, { 1, "Error in Parameter BlockLength" }, { 2, "Error in Parameter BlockVersionHigh" }, { 3, "Error in Parameter BlockVersionLow" }, { 4, "Error in Parameter Padding" }, { 6, "Error in Parameter SessionKey" }, { 7, "Error in Parameter Padding" }, { 8, "Error in Parameter ControlCommand" }, { 9, "Error in Parameter ControlBlockProperties" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_23[] = { /* CheckingRules for ControlBlockPlug */ { 0, "Error in Parameter BlockType" }, { 1, "Error in Parameter BlockLength" }, { 2, "Error in Parameter BlockVersionHigh" }, { 3, "Error in Parameter BlockVersionLow" }, { 4, "Error in Parameter Padding" }, { 6, "Error in Parameter SessionKey" }, { 7, "Error in Parameter AlarmSequenceNumber" }, { 8, "Error in Parameter ControlCommand" }, { 9, "Error in Parameter ControlBlockProperties" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_40[] = { /* CheckingRules for ReleaseBlock */ { 0, "Error in Parameter BlockType" }, { 1, "Error in Parameter BlockLength" }, { 2, "Error in Parameter BlockVersionHigh" }, { 3, "Error in Parameter BlockVersionLow" }, { 4, "Error in Parameter Padding" }, { 6, "Error in Parameter SessionKey" }, { 7, "Error in Parameter Padding" }, { 8, "Error in Parameter ControlCommand" }, { 9, "Error in Parameter ControlBlockProperties" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_61[] = { /* CMDEV */ { 0, "State Conflict" }, { 1, "Resources" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_62[] = { /* CMCTL */ { 0, "State Conflict" }, { 1, "Timeout" }, { 2, "No data send" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_63[] = { /* NRPM */ { 0, "No DCP active" }, { 1, "DNS Unknown_RealStationName" }, { 2, "DCP No_RealStationName" }, { 3, "DCP Multiple_RealStationName" }, { 4, "DCP No_StationName" }, { 5, "No_IP_Addr" }, { 6, "DCP_Set_Error" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_64[] = { /* RMPM */ { 0, "ArgsLength invalid" }, { 1, "Unknown Blocks" }, { 2, "IOCR Missing" }, { 3, "Wrong AlarmCRBlock count" }, { 4, "Out of AR Resources" }, { 5, "AR UUID unknown" }, { 6, "State conflict" }, { 7, "Out of Provider, Consumer or Alarm Resources" }, { 8, "Out of Memory" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_65[] = { /* ALPMI */ { 0, "Invalid State" }, { 1, "Wrong ACK-PDU" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_66[] = { /* ALPMR */ { 0, "Invalid State" }, { 1, "Wrong Notification PDU" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_70[] = { /* APMR */ { 0, "Invalid State" }, { 1, "LMPM signaled error" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_71[] = { /* APMS */ { 0, "Invalid State" }, { 1, "LMPM signaled error" }, { 2, "Timeout" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_72[] = { /* CPM */ { 1, "Invalid State" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_73[] = { /* PPM */ { 1, "Invalid State" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_74[] = { /* DCPUCS */ { 0, "Invalid State" }, { 1, "LMPM signaled an error" }, { 2, "Timeout" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_75[] = { /* DCPUCR */ { 0, "Invalid State" }, { 1, "LMPM signaled an error" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_76[] = { /* DCPMCS */ { 0, "Invalid State" }, { 1, "LMPM signaled an error" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_77[] = { /* DCPMCR */ { 0, "Invalid State" }, { 1, "LMPM signaled an error" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_253[] = { { 0, "reserved" }, { 1, "Error within the coordination of sequence numbers (RTA_ERR_CODE_SEQ) error" }, { 2, "Instance closed (RTA_ERR_ABORT)" }, { 3, "AR out of memory (RTA_ERR_ABORT)" }, { 4, "AR add provider or consumer failed (RTA_ERR_ABORT)" }, { 5, "AR consumer DHT/WDT expired (RTA_ERR_ABORT)" }, { 6, "AR cmi timeout (RTA_ERR_ABORT)" }, { 7, "AR alarm-open failed (RTA_ERR_ABORT)" }, { 8, "AR alarm-send.cnf(-) (RTA_ERR_ABORT)" }, { 9, "AR alarm-ack-send.cnf(-) (RTA_ERR_ABORT)" }, { 10, "AR alarm data too long (RTA_ERR_ABORT)" }, { 11, "AR alarm.ind(err) (RTA_ERR_ABORT)" }, { 12, "AR rpc-client call.cnf(-) (RTA_ERR_ABORT)" }, { 13, "AR abort.req (RTA_ERR_ABORT)" }, { 14, "AR re-run aborts existing (RTA_ERR_ABORT)" }, { 15, "AR release.ind received (RTA_ERR_ABORT)" }, { 16, "AR device deactivated (RTA_ERR_ABORT)" }, { 17, "AR removed (RTA_ERR_ABORT)" }, { 18, "AR protocol violation (RTA_ERR_ABORT)" }, { 19, "AR name resolution error (RTA_ERR_ABORT)" }, { 20, "AR RPC-Bind error (RTA_ERR_ABORT)" }, { 21, "AR RPC-Connect error (RTA_ERR_ABORT)" }, { 22, "AR RPC-Read error (RTA_ERR_ABORT)" }, { 23, "AR RPC-Write error (RTA_ERR_ABORT)" }, { 24, "AR RPC-Control error (RTA_ERR_ABORT)" }, { 25, "AR forbidden pull or plug after check.rsp and before in-data.ind (RTA_ERR_ABORT)" }, { 26, "AR AP removed (RTA_ERR_ABORT)" }, { 27, "AR link down (RTA_ERR_ABORT)" }, { 28, "AR could not register multicast-mac address (RTA_ERR_ABORT)" }, { 29, "not synchronized (cannot start companion-ar) (RTA_ERR_ABORT)" }, { 30, "wrong topology (cannot start companion-ar) (RTA_ERR_ABORT)" }, { 31, "dcp, station-name changed (RTA_ERR_ABORT)" }, { 32, "dcp, reset to factory-settings (RTA_ERR_ABORT)" }, { 33, "cannot start companion-AR because a 0x8ipp submodule in the first AR... (RTA_ERR_ABORT)" }, { 34, "no irdata record yet (RTA_ERR_ABORT)" }, { 35, "PDEV (RTA_ERROR_ABORT)" }, { 36, "PDEV, no port offers required speed/duplexity (RTA_ERROR_ABORT)" }, { 37, "IP-Suite [of the IOC] changed by means of DCP_Set(IPParameter) or local engineering (RTA_ERROR_ABORT)" }, { 0, NULL } }; static const value_string pn_io_error_code2_pnio_255[] = { /* User specific */ { 255, "User abort" }, { 0, NULL } }; static const value_string pn_io_ioxs[] = { { 0x00 /* 0*/, "detected by subslot" }, { 0x01 /* 1*/, "detected by slot" }, { 0x02 /* 2*/, "detected by IO device" }, { 0x03 /* 3*/, "detected by IO controller" }, { 0, NULL } }; static const value_string pn_io_ar_type[] = { { 0x0000, "reserved" }, { 0x0001, "IO Controller AR"}, { 0x0002, "reserved" }, { 0x0003, "IOCARCIR" }, { 0x0004, "reserved" }, { 0x0005, "reserved" }, { 0x0006, "IO Supervisor AR / DeviceAccess AR" }, /*0x0007 - 0x000F reserved */ { 0x0010, "IO Controller AR (RT_CLASS_3)" }, /*0x0011 - 0x001F reserved */ { 0x0020, "IO Controller AR (sysred/CiR)" }, /*0x0007 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_iocr_type[] = { { 0x0000, "reserved" }, { 0x0001, "Input CR" }, { 0x0002, "Output CR" }, { 0x0003, "Multicast Provider CR" }, { 0x0004, "Multicast Consumer CR" }, /*0x0005 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_data_description[] = { { 0x0000, "reserved" }, { 0x0001, "Input" }, { 0x0002, "Output" }, { 0x0003, "reserved" }, /*0x0004 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_module_state[] = { { 0x0000, "no module" }, { 0x0001, "wrong module" }, { 0x0002, "proper module" }, { 0x0003, "substitute" }, /*0x0004 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_arproperties_state[] = { { 0x00000000, "Reserved" }, { 0x00000001, "Active" }, { 0x00000002, "reserved" }, { 0x00000003, "reserved" }, { 0x00000004, "reserved" }, { 0x00000005, "reserved" }, { 0x00000006, "reserved" }, { 0x00000007, "reserved" }, { 0, NULL } }; static const value_string pn_io_arproperties_supervisor_takeover_allowed[] = { { 0x00000000, "not allowed" }, { 0x00000001, "allowed" }, { 0, NULL } }; static const value_string pn_io_arproperties_parametrization_server[] = { { 0x00000000, "External PrmServer" }, { 0x00000001, "CM Initiator" }, { 0, NULL } }; /* BIT 8 */ static const value_string pn_io_arproperties_DeviceAccess[] = { { 0x00000000, "Only the submodules from the ExpectedSubmoduleBlock are accessible" }, { 0x00000001, "Submodule access is controlled by IO device application" }, { 0, NULL } }; /* Bit 9 - 10 */ static const value_string pn_io_arproperties_companion_ar[] = { { 0x00000000, "Single AR" }, { 0x00000001, "First AR of a companion pair and a companion AR shall follow" }, { 0x00000002, "Companion AR" }, { 0x00000003, "Reserved" }, { 0, NULL } }; /* REMOVED with 2.3 static const value_string pn_io_arproperties_data_rate[] = { { 0x00000000, "at least 100 MB/s or more" }, { 0x00000001, "100 MB/s" }, { 0x00000002, "1 GB/s" }, { 0x00000003, "10 GB/s" }, { 0, NULL } }; */ /* BIT 11 */ static const value_string pn_io_arproperties_acknowldege_companion_ar[] = { { 0x00000000, "No companion AR or no acknowledge for the companion AR required" }, { 0x00000001, "Companion AR with acknowledge" }, { 0, NULL } }; /* bit 29 for legacy startup mode*/ static const value_string your_sha256_hashmode[] = { { 0x00000000, "CombinedObjectContainer not used" }, { 0x00000001, "Reserved" }, { 0, NULL } }; /* bit 29 for advanced statup mode*/ static const value_string your_sha256_hashupmode[] = { { 0x00000000, "CombinedObjectContainer not used" }, { 0x00000001, "Usage of CombinedObjectContainer required" }, { 0, NULL } }; /* bit 30 */ static const value_string pn_io_arpropertiesStartupMode[] = { { 0x00000000, "Legacy" }, { 0x00000001, "Advanced" }, { 0, NULL } }; /* bit 31 */ static const value_string pn_io_arproperties_pull_module_alarm_allowed[] = { { 0x00000000, "AlarmType(=Pull) shall signal pulling of submodule and module" }, { 0x00000001, "AlarmType(=Pull) shall signal pulling of submodule" }, { 0, NULL } }; static const value_string pn_io_RedundancyInfo[] = { { 0x00000000, "Reserved" }, { 0x00000001, "The delivering node is the left or below one" }, { 0x00000002, "The delivering node is the right or above one" }, { 0x00000003, "Reserved" }, { 0, NULL } }; static const value_string pn_io_iocr_properties_rtclass[] = { { 0x00000000, "reserved" }, { 0x00000001, "RT_CLASS_1" }, { 0x00000002, "RT_CLASS_2" }, { 0x00000003, "RT_CLASS_3" }, { 0x00000004, "RT_CLASS_UDP" }, /*0x00000005 - 0x00000007 reserved */ { 0, NULL } }; static const value_string pn_io_MultipleInterfaceMode_NameOfDevice[] = { { 0x00000000, "PortID of LLDP contains name of port (Default)" }, { 0x00000001, "PortID of LLDP contains name of port and NameOfStation" }, { 0, NULL } }; static const value_string pn_io_sr_properties_BackupAR[] = { { 0x00000000, "The device may deliver valid input data" }, { 0x00000001, "The device shall deliver valid input data" }, { 0, NULL } }; static const value_string pn_io_sr_properties_ActivateRedundancyAlarm[] = { { 0x00000000, "The device shall not send Redundancy alarm" }, { 0x00000001, "The device shall send Redundancy alarm" }, { 0, NULL } }; static const value_string pn_io_iocr_properties_media_redundancy[] = { { 0x00000000, "No media redundant frame transfer" }, { 0x00000001, "Media redundant frame transfer" }, { 0, NULL } }; static const value_string pn_io_submodule_properties_type[] = { { 0x0000, "no input and no output data" }, { 0x0001, "input data" }, { 0x0002, "output data" }, { 0x0003, "input and output data" }, { 0, NULL } }; static const value_string pn_io_submodule_properties_shared_input[] = { { 0x0000, "IO controller" }, { 0x0001, "IO controller shared" }, { 0, NULL } }; static const value_string pn_io_submodule_properties_reduce_input_submodule_data_length[] = { { 0x0000, "Expected" }, { 0x0001, "Zero" }, { 0, NULL } }; static const value_string pn_io_submodule_properties_reduce_output_submodule_data_length[] = { { 0x0000, "Expected" }, { 0x0001, "Zero" }, { 0, NULL } }; static const value_string pn_io_submodule_properties_discard_ioxs[] = { { 0x0000, "Expected" }, { 0x0001, "Zero" }, { 0, NULL } }; static const value_string pn_io_alarmcr_properties_priority[] = { { 0x0000, "user priority (default)" }, { 0x0001, "use only low priority" }, { 0, NULL } }; static const value_string pn_io_alarmcr_properties_transport[] = { { 0x0000, "RTA_CLASS_1" }, { 0x0001, "RTA_CLASS_UDP" }, { 0, NULL } }; static const value_string pn_io_submodule_state_format_indicator[] = { { 0x0000, "Coding uses Detail" }, { 0x0001, "Coding uses .IdentInfo, ..." }, { 0, NULL } }; static const value_string pn_io_submodule_state_add_info[] = { { 0x0000, "None" }, { 0x0001, "Takeover not allowed" }, /*0x0002 - 0x0007 reserved */ { 0, NULL } }; static const value_string pn_io_submodule_state_qualified_info[] = { { 0x0000, "No QualifiedInfo available" }, { 0x0001, "QualifiedInfo available" }, { 0, NULL } }; static const value_string pn_io_submodule_state_maintenance_required[] = { { 0x0000, "No MaintenanceRequired available" }, { 0x0001, "MaintenanceRequired available" }, { 0, NULL } }; static const value_string pn_io_submodule_state_maintenance_demanded[] = { { 0x0000, "No MaintenanceDemanded available" }, { 0x0001, "MaintenanceDemanded available" }, { 0, NULL } }; static const value_string pn_io_submodule_state_diag_info[] = { { 0x0000, "No DiagnosisData available" }, { 0x0001, "DiagnosisData available" }, { 0, NULL } }; static const value_string pn_io_submodule_state_ar_info[] = { { 0x0000, "Own" }, { 0x0001, "ApplicationReadyPending (ARP)" }, { 0x0002, "Superordinated Locked (SO)" }, { 0x0003, "Locked By IO Controller (IOC)" }, { 0x0004, "Locked By IO Supervisor (IOS)" }, /*0x0005 - 0x000F reserved */ { 0, NULL } }; static const value_string pn_io_submodule_state_ident_info[] = { { 0x0000, "OK" }, { 0x0001, "Substitute (SU)" }, { 0x0002, "Wrong (WR)" }, { 0x0003, "NoSubmodule (NO)" }, /*0x0004 - 0x000F reserved */ { 0, NULL } }; static const value_string pn_io_submodule_state_detail[] = { { 0x0000, "no submodule" }, { 0x0001, "wrong submodule" }, { 0x0002, "locked by IO controller" }, { 0x0003, "reserved" }, { 0x0004, "application ready pending" }, { 0x0005, "reserved" }, { 0x0006, "reserved" }, { 0x0007, "Substitute" }, /*0x0008 - 0x7FFF reserved */ { 0, NULL } }; static const value_string pn_io_substitutionmode[] = { { 0x0000, "ZERO" }, { 0x0001, "Last value" }, { 0x0002, "Replacement value" }, /*0x0003 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_index[] = { /*0x0008 - 0x7FFF user specific */ /* PROFISafe */ { 0x0100, "PROFISafe" }, /* subslot specific */ { 0x8000, "ExpectedIdentificationData for one subslot" }, { 0x8001, "RealIdentificationData for one subslot" }, /*0x8002 - 0x8009 reserved */ { 0x800A, "Diagnosis in channel coding for one subslot" }, { 0x800B, "Diagnosis in all codings for one subslot" }, { 0x800C, "Diagnosis, Maintenance, Qualified and Status for one subslot" }, /*0x800D - 0x800F reserved */ { 0x8010, "Maintenance required in channel coding for one subslot" }, { 0x8011, "Maintenance demanded in channel coding for one subslot" }, { 0x8012, "Maintenance required in all codings for one subslot" }, { 0x8013, "Maintenance demanded in all codings for one subslot" }, /*0x8014 - 0x801D reserved */ { 0x801E, "SubstituteValues for one subslot" }, /*0x801F - 0x8027 reserved */ { 0x8028, "RecordInputDataObjectElement for one subslot" }, { 0x8029, "RecordOutputDataObjectElement for one subslot" }, { 0x802A, "PDPortDataReal for one subslot" }, { 0x802B, "PDPortDataCheck for one subslot" }, { 0x802C, "PDIRData for one subslot" }, { 0x802D, "Expected PDSyncData for one subslot with SyncID value 0" }, /*0x802E reserved */ { 0x802F, "PDPortDataAdjust for one subslot" }, { 0x8030, "IsochronousModeData for one subslot" }, { 0x8031, "Expected PDSyncData for one subslot with SyncID value 1" }, { 0x8032, "Expected PDSyncData for one subslot with SyncID value 2" }, { 0x8033, "Expected PDSyncData for one subslot with SyncID value 3" }, { 0x8034, "Expected PDSyncData for one subslot with SyncID value 4" }, { 0x8035, "Expected PDSyncData for one subslot with SyncID value 5" }, { 0x8036, "Expected PDSyncData for one subslot with SyncID value 6" }, { 0x8037, "Expected PDSyncData for one subslot with SyncID value 7" }, { 0x8038, "Expected PDSyncData for one subslot with SyncID value 8" }, { 0x8039, "Expected PDSyncData for one subslot with SyncID value 9" }, { 0x803A, "Expected PDSyncData for one subslot with SyncID value 10" }, { 0x803B, "Expected PDSyncData for one subslot with SyncID value 11" }, { 0x803C, "Expected PDSyncData for one subslot with SyncID value 12" }, { 0x803D, "Expected PDSyncData for one subslot with SyncID value 13" }, { 0x803E, "Expected PDSyncData for one subslot with SyncID value 14" }, { 0x803F, "Expected PDSyncData for one subslot with SyncID value 15" }, { 0x8040, "Expected PDSyncData for one subslot with SyncID value 16" }, { 0x8041, "Expected PDSyncData for one subslot with SyncID value 17" }, { 0x8042, "Expected PDSyncData for one subslot with SyncID value 18" }, { 0x8043, "Expected PDSyncData for one subslot with SyncID value 19" }, { 0x8044, "Expected PDSyncData for one subslot with SyncID value 20" }, { 0x8045, "Expected PDSyncData for one subslot with SyncID value 21" }, { 0x8046, "Expected PDSyncData for one subslot with SyncID value 22" }, { 0x8047, "Expected PDSyncData for one subslot with SyncID value 23" }, { 0x8048, "Expected PDSyncData for one subslot with SyncID value 24" }, { 0x8049, "Expected PDSyncData for one subslot with SyncID value 25" }, { 0x804A, "Expected PDSyncData for one subslot with SyncID value 26" }, { 0x804B, "Expected PDSyncData for one subslot with SyncID value 27" }, { 0x804C, "Expected PDSyncData for one subslot with SyncID value 28" }, { 0x804D, "Expected PDSyncData for one subslot with SyncID value 29" }, { 0x804E, "Expected PDSyncData for one subslot with SyncID value 30" }, { 0x804F, "Expected PDSyncData for one subslot with SyncID value 31" }, { 0x8050, "PDInterfaceMrpDataReal for one subslot" }, { 0x8051, "PDInterfaceMrpDataCheck for one subslot" }, { 0x8052, "PDInterfaceMrpDataAdjust for one subslot" }, { 0x8053, "PDPortMrpDataAdjust for one subslot" }, { 0x8054, "PDPortMrpDataReal for one subslot" }, /*0x8055 - 0x805F reserved */ { 0x8060, "PDPortFODataReal for one subslot" }, { 0x8061, "PDPortFODataCheck for one subslot" }, { 0x8062, "PDPortFODataAdjust for one subslot" }, /*0x8063 - 0x806F reserved */ { 0x8070, "PDNCDataCheck for one subslot" }, { 0x8071, "PDInterfaceAdjust for one subslot" }, { 0x8072, "PDPortStatistic for one subslot" }, /*0x8071 - 0x807F reserved */ { 0x8080, "PDInterfaceDataReal" }, /*0x8081 - 0x808F reserved */ { 0x8090, "Expected PDInterfaceFSUDataAdjust" }, /*0x8091 - 0xAFEF reserved except 0x80B0*/ { 0x80B0, "CombinedObjectContainer" }, { 0xAFF0, "I&M0" }, { 0xAFF1, "I&M1" }, { 0xAFF2, "I&M2" }, { 0xAFF3, "I&M3" }, { 0xAFF4, "I&M4" }, { 0xAFF5, "I&M5" }, { 0xAFF6, "I&M6" }, { 0xAFF7, "I&M7" }, { 0xAFF8, "I&M8" }, { 0xAFF9, "I&M9" }, { 0xAFFA, "I&M10" }, { 0xAFFB, "I&M11" }, { 0xAFFC, "I&M12" }, { 0xAFFD, "I&M13" }, { 0xAFFE, "I&M14" }, { 0xAFFF, "I&M15" }, /*0xB000 - 0xB02D reserved for profiles */ { 0xB000, "Sync-Log / RTA SyncID 0 (GSY)" }, { 0xB001, "Sync-Log / RTA SyncID 1 (GSY)" }, { 0xB002, "reserved for profiles" }, { 0xB003, "reserved for profiles" }, { 0xB004, "reserved for profiles" }, { 0xB005, "reserved for profiles" }, { 0xB006, "reserved for profiles" }, { 0xB007, "reserved for profiles" }, { 0xB008, "reserved for profiles" }, { 0xB009, "reserved for profiles" }, { 0xB00A, "reserved for profiles" }, { 0xB00B, "reserved for profiles" }, { 0xB00C, "reserved for profiles" }, { 0xB00D, "reserved for profiles" }, { 0xB00E, "reserved for profiles" }, { 0xB00F, "reserved for profiles" }, { 0xB010, "reserved for profiles" }, { 0xB011, "reserved for profiles" }, { 0xB012, "reserved for profiles" }, { 0xB013, "reserved for profiles" }, { 0xB014, "reserved for profiles" }, { 0xB015, "reserved for profiles" }, { 0xB016, "reserved for profiles" }, { 0xB017, "reserved for profiles" }, { 0xB018, "reserved for profiles" }, { 0xB019, "reserved for profiles" }, { 0xB01A, "reserved for profiles" }, { 0xB01B, "reserved for profiles" }, { 0xB01C, "reserved for profiles" }, { 0xB01D, "reserved for profiles" }, { 0xB01E, "reserved for profiles" }, { 0xB01F, "reserved for profiles" }, { 0xB020, "reserved for profiles" }, { 0xB001, "reserved for profiles" }, { 0xB022, "reserved for profiles" }, { 0xB023, "reserved for profiles" }, { 0xB024, "reserved for profiles" }, { 0xB025, "reserved for profiles" }, { 0xB026, "reserved for profiles" }, { 0xB027, "reserved for profiles" }, { 0xB028, "reserved for profiles" }, { 0xB029, "reserved for profiles" }, { 0xB02A, "reserved for profiles" }, { 0xB02B, "reserved for profiles" }, { 0xB02C, "reserved for profiles" }, { 0xB02D, "reserved for profiles" }, /* PROFIDrive */ { 0xB02E, "PROFIDrive Parameter Access - Local"}, { 0xB02F, "PROFIDrive Parameter Access - Global"}, /*0xB030 - 0xBFFF reserved for profiles */ { 0xB050, "Ext-PLL Control / RTC+RTA SyncID 0 (EDD)" }, { 0xB051, "Ext-PLL Control / RTA SyncID 1 (GSY)" }, { 0xB060, "EDD Trace Unit (EDD" }, { 0xB061, "EDD Trace Unit (EDD" }, { 0xB070, "OHA Info (OHA)" }, /* slot specific */ { 0xC000, "ExpectedIdentificationData for one slot" }, { 0xC001, "RealIdentificationData for one slot" }, /*0xC002 - 0xC009 reserved */ { 0xC00A, "Diagnosis in channel coding for one slot" }, { 0xC00B, "Diagnosis in all codings for one slot" }, { 0xC00C, "Diagnosis, Maintenance, Qualified and Status for one slot" }, /*0xC00D - 0xC00F reserved */ { 0xC010, "Maintenance required in channel coding for one slot" }, { 0xC011, "Maintenance demanded in channel coding for one slot" }, { 0xC012, "Maintenance required in all codings for one slot" }, { 0xC013, "Maintenance demanded in all codings for one slot" }, /*0xC014 - 0xCFFF reserved */ /*0xD000 - 0xDFFF reserved for profiles */ /* AR specific */ { 0xE000, "ExpectedIdentificationData for one AR" }, { 0xE001, "RealIdentificationData for one AR" }, { 0xE002, "ModuleDiffBlock for one AR" }, /*0xE003 - 0xE009 reserved */ { 0xE00A, "Diagnosis in channel coding for one AR" }, { 0xE00B, "Diagnosis in all codings for one AR" }, { 0xE00C, "Diagnosis, Maintenance, Qualified and Status for one AR" }, /*0xE00D - 0xE00F reserved */ { 0xE010, "Maintenance required in channel coding for one AR" }, { 0xE011, "Maintenance demanded in channel coding for one AR" }, { 0xE012, "Maintenance required in all codings for one AR" }, { 0xE013, "Maintenance demanded in all codings for one AR" }, /*0xE014 - 0xE02F reserved */ { 0xE030, "IsochronousModeData for one AR" }, /*0xE031 - 0xE03F reserved */ { 0xE040, "MultipleWrite" }, /*0xE041 - 0xE04F reserved */ { 0xE050, "ARFSUDataAdjust data for one AR" }, /*0xE051 - 0xE05F reserved */ /*0xEC00 - 0xEFFF reserved */ /* API specific */ { 0xF000, "RealIdentificationData for one API" }, /*0xF001 - 0xF009 reserved */ { 0xF00A, "Diagnosis in channel coding for one API" }, { 0xF00B, "Diagnosis in all codings for one API" }, { 0xF00C, "Diagnosis, Maintenance, Qualified and Status for one API" }, /*0xF00D - 0xF00F reserved */ { 0xF010, "Maintenance required in channel coding for one API" }, { 0xF011, "Maintenance demanded in channel coding for one API" }, { 0xF012, "Maintenance required in all codings for one API" }, { 0xF013, "Maintenance demanded in all codings for one API" }, /*0xF014 - 0xF01F reserved */ { 0xF020, "ARData for one API" }, /*0xF021 - 0xF3FF reserved */ /*0xF400 - 0xF7FF reserved */ /* device specific */ /*0xF800 - 0xF80B reserved */ { 0xF80C, "Diagnosis, Maintenance, Qualified and Status for one device" }, /*0xF80D - 0xF81F reserved */ { 0xF820, "ARData" }, { 0xF821, "APIData" }, /*0xF822 - 0xF82F reserved */ { 0xF830, "LogData" }, { 0xF831, "PDevData" }, /*0xF832 - 0xF83F reserved */ { 0xF840, "I&M0FilterData" }, { 0xF841, "PDRealData" }, { 0xF842, "PDExpectedData" }, /*0xF843 - 0xF84F reserved */ { 0xF850, "AutoConfigurarion" }, /*0xF851 - 0xFBFF reserved */ /*0xFC00 - 0xFFFF reserved for profiles */ { 0, NULL } }; static const value_string pn_io_user_structure_identifier[] = { /*0x0000 - 0x7FFF manufacturer specific */ { 0x8000, "ChannelDiagnosis" }, { 0x8001, "Multiple" }, { 0x8002, "ExtChannelDiagnosis" }, { 0x8003, "QualifiedChannelDiagnosis" }, /*0x8004 - 0x80FF reserved */ { 0x8100, "Maintenance" }, /*0x8101 - 0x8FFF reserved */ /*0x9000 - 0x9FFF reserved for profiles */ /*0xA000 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_channel_error_type[] = { { 0x0000, "reserved" }, { 0x0001, "short circuit" }, { 0x0002, "Undervoltage" }, { 0x0003, "Overvoltage" }, { 0x0004, "Overload" }, { 0x0005, "Overtemperature" }, { 0x0006, "line break" }, { 0x0007, "upper limit value exceeded" }, { 0x0008, "lower limit value exceeded" }, { 0x0009, "Error" }, /*0x000A - 0x000F reserved */ { 0x0010, "parametrization fault" }, { 0x0011, "power supply fault" }, { 0x0012, "fuse blown / open" }, { 0x0013, "Manufacturer specific" }, { 0x0014, "ground fault" }, { 0x0015, "reference point lost" }, { 0x0016, "process event lost / sampling error" }, { 0x0017, "threshold warning" }, { 0x0018, "output disabled" }, { 0x0019, "safety event" }, { 0x001A, "external fault" }, /*0x001B - 0x001F manufacturer specific */ /*0x0020 - 0x00FF reserved for common profiles */ /*0x0100 - 0x7FFF manufacturer specific */ { 0x8000, "Data transmission impossible" }, { 0x8001, "Remote mismatch" }, { 0x8002, "Media redundancy mismatch" }, { 0x8003, "Sync mismatch" }, { 0x8004, "IsochronousMode mismatch" }, { 0x8005, "Multicast CR mismatch" }, { 0x8006, "reserved" }, { 0x8007, "Fiber optic mismatch" }, { 0x8008, "Network component function mismatch" }, { 0x8009, "Time mismatch" }, /* added values for IEC version 2.3: */ { 0x800A, "Dynamic frame packing function mismatch" }, { 0x800B, "Media redundancy with planned duplication mismatch"}, { 0x800C, "System redundancy mismatch"}, /* ends */ /*0x800D - 0x8FFF reserved */ /*0x9000 - 0x9FFF reserved for profile */ /*0xA000 - 0xFFFF reserved */ { 0, NULL } }; /* ExtChannelErrorType for ChannelErrorType 0 - 0x7FFF */ static const value_string pn_io_ext_channel_error_type0[] = { /* 0x0000 Reserved */ /* 0x0001 - 0x7FFF Manufacturer specific */ { 0x8000, "Accumulative Info"}, /* 0x8001 - 0x8FFF Reserved */ /* 0x9000 - 0x9FFF Reserved for profiles */ /* 0xA000 - 0xFFFF Reserved */ { 0, NULL } }; /* ExtChannelErrorType for ChannelErrorType "Data transmission impossible" */ static const value_string pn_io_ext_channel_error_type0x8000[] = { /* 0x0000 Reserved */ /* 0x0001 - 0x7FFF Manufacturer specific */ { 0x8000, "Link State mismatch - Link down"}, { 0x8001, "MAUType mismatch"}, { 0x8002, "Line Delay mismatch"}, /* 0x8003 - 0x8FFF Reserved */ /* 0x9000 - 0x9FFF Reserved for profiles */ /* 0xA000 - 0xFFFF Reserved */ { 0, NULL } }; /* ExtChannelErrorType for ChannelErrorType "Remote mismatch" */ static const value_string pn_io_ext_channel_error_type0x8001[] = { /* 0x0000 Reserved */ /* 0x0001 - 0x7FFF Manufacturer specific */ { 0x8000, "Peer Chassis ID mismatch"}, { 0x8001, "Peer Port ID mismatch"}, { 0x8002, "Peer RT_CLASS_3 mismatch a"}, { 0x8003, "Peer MAUType mismatch"}, { 0x8004, "Peer MRP domain mismatch"}, { 0x8005, "No peer detected"}, { 0x8006, "Reserved"}, { 0x8007, "Peer Line Delay mismatch"}, { 0x8008, "Peer PTCP mismatch b"}, { 0x8009, "Peer Preamble Length mismatch"}, { 0x800A, "Peer Fragmentation mismatch"}, /* 0x800B - 0x8FFF Reserved */ /* 0x9000 - 0x9FFF Reserved for profiles */ /* 0xA000 - 0xFFFF Reserved */ { 0, NULL } }; /* ExtChannelErrorType for ChannelErrorType "Media redundancy mismatch" 0x8002 */ static const value_string pn_io_ext_channel_error_type0x8002[] = { /* 0x0000 Reserved */ /* 0x0001 - 0x7FFF Manufacturer specific */ { 0x8000, "Manager role fail MRP-instance 1"}, { 0x8001, "MRP-instance 1 ring open"}, { 0x8002, "Reserved"}, { 0x8003, "Multiple manager MRP-instance 1"}, { 0x8010, "Manager role fail MRP-instance 2"}, { 0x8011, "MRP-instance 2 ring open"}, { 0x8012, "Reserved"}, { 0x8013, "Multiple manager MRP-instance 2"}, { 0x8020, "Manager role fail MRP-instance 3"}, { 0x8021, "MRP-instance 3 ring open"}, { 0x8023, "Multiple manager MRP-instance 3"}, { 0x8030, "Manager role fail MRP-instance 4"}, { 0x8031, "MRP-instance 4 ring open"}, { 0x8033, "Multiple manager MRP-instance 4"}, { 0x8040, "Manager role fail MRP-instance 5"}, { 0x8041, "MRP-instance 5 ring open"}, { 0x8043, "Multiple manager MRP-instance 5"}, { 0x8050, "Manager role fail MRP-instance 6"}, { 0x8051, "MRP-instance 6 ring open"}, { 0x8053, "Multiple manager MRP-instance 6"}, { 0x8060, "Manager role fail MRP-instance 7"}, { 0x8061, "MRP-instance 7 ring open"}, { 0x8063, "Multiple manager MRP-instance 7"}, { 0x8070, "Manager role fail MRP-instance 8"}, { 0x8071, "MRP-instance 8 ring open"}, { 0x8073, "Multiple manager MRP-instance 8"}, { 0x8080, "Manager role fail MRP-instance 9"}, { 0x8081, "MRP-instance 9 ring open"}, { 0x8083, "Multiple manager MRP-instance 9"}, { 0x8090, "Manager role fail MRP-instance 10"}, { 0x8091, "MRP-instance 10 ring open"}, { 0x8093, "Multiple manager MRP-instance 10"}, { 0x80A0, "Manager role fail MRP-instance 11"}, { 0x80A1, "MRP-instance 11 ring open"}, { 0x80A3, "Multiple manager MRP-instance 11"}, { 0x80B0, "Manager role fail MRP-instance 12"}, { 0x80B1, "MRP-instance 12 ring open"}, { 0x80B3, "Multiple manager MRP-instance 12"}, { 0x80C0, "Manager role fail MRP-instance 13"}, { 0x80C1, "MRP-instance 13 ring open"}, { 0x80C3, "Multiple manager MRP-instance 13"}, { 0x80D0, "Manager role fail MRP-instance 14"}, { 0x80D1, "MRP-instance 14 ring open"}, { 0x80D3, "Multiple manager MRP-instance 14"}, { 0x80E0, "Manager role fail MRP-instance 15"}, { 0x80E1, "MRP-instance 15 ring open"}, { 0x80E3, "Multiple manager MRP-instance 15"}, { 0x80F0, "Manager role fail MRP-instance 16"}, { 0x80F1, "MRP-instance 16 ring open"}, { 0x80F3, "Multiple manager MRP-instance 16"}, /* 0x8004 - 0x8FFF Reserved */ /* 0x9000 - 0x9FFF Reserved for profiles */ /* 0xA000 - 0xFFFF Reserved */ { 0, NULL } }; /* ExtChannelErrorType for ChannelErrorType "Sync mismatch" and for ChannelErrorType "Time mismatch" 0x8003 and 0x8009*/ static const value_string pn_io_ext_channel_error_type0x8003[] = { /* 0x0000 Reserved */ /* 0x0001 - 0x7FFF Manufacturer specific */ { 0x8000, "No sync message received"}, { 0x8001, "- 0x8002 Reserved"}, { 0x8003, "Jitter out of boundary"}, /* 0x8004 - 0x8FFF Reserved */ /* 0x9000 - 0x9FFF Reserved for profiles */ /* 0xA000 - 0xFFFF Reserved */ { 0, NULL } }; /*ExtChannelErrorType for ChannelErrorType "Isochronous mode mismatch" 0x8004 */ static const value_string pn_io_ext_channel_error_type0x8004[] = { /* 0x0000 Reserved */ /* 0x0001 - 0x7FFF Manufacturer specific */ { 0x8000, "Output Time Failure - Output update missing or out of order"}, { 0x8001, "Input Time Failure"}, { 0x8002, "Master Life Sign Failure - Error in MLS update detected"}, /* 0x8003 - 0x8FFF Reserved */ /* 0x9000 - 0x9FFF Reserved for profiles */ /* 0xA000 - 0xFFFF Reserved */ { 0, NULL } }; /* ExtChannelErrorType for ChannelErrorType "Multicast CR mismatch" 0x8005 */ static const value_string pn_io_ext_channel_error_type0x8005[] = { /* 0x0000 Reserved */ /* 0x0001 - 0x7FFF Manufacturer specific */ { 0x8000, "Multicast Consumer CR timed out"}, { 0x8001, "Address resolution failed"}, /* 0x8002 - 0x8FFF Reserved */ /* 0x9000 - 0x9FFF Reserved for profiles */ /* 0xA000 - 0xFFFF Reserved */ { 0, NULL } }; /* ExtChannelErrorType for ChannelErrorType "Fiber optic mismatch" 0x8007*/ static const value_string pn_io_ext_channel_error_type0x8007[] = { /* 0x0000 Reserved */ /* 0x0001 - 0x7FFF Manufacturer specific */ { 0x8000, "Power Budget"}, /* 0x8001 - 0x8FFF Reserved */ /* 0x9000 - 0x9FFF Reserved for profiles */ /* 0xA000 - 0xFFFF Reserved */ { 0, NULL } }; /* ExtChannelErrorType for ChannelErrorType "Network component function mismatch" 0x8008 */ static const value_string pn_io_ext_channel_error_type0x8008[] = { /* 0x0000 Reserved */ /* 0x0001 - 0x7FFF Manufacturer specific */ { 0x8000, "Frame dropped - no resource"}, /* 0x8001 - 0x8FFF Reserved */ /* 0x9000 - 0x9FFF Reserved for profiles */ /* 0xA000 - 0xFFFF Reserved */ { 0, NULL } }; /* ExtChannelErrorType for ChannelErrorType "Dynamic Frame Packing function mismatch" 0x800A */ static const value_string pn_io_ext_channel_error_type0x800A[] = { /* 0x0000 Reserved */ /* 0x0001 - 0x7FFF Manufacturer specific */ /* 0x8000 - 0x80FF Reserved */ { 0x8100, "Frame late error for FrameID (0x0100)"}, /* 0x8101 + 0x8FFE See Equation (56) */ { 0x8FFF, "Frame late error for FrameID (0x0FFF)"}, /* 0x8001 - 0x8FFF Reserved */ /* 0x9000 - 0x9FFF Reserved for profiles */ /* 0xA000 - 0xFFFF Reserved */ { 0, NULL } }; /* ExtChannelErrorType for ChannelErrorType "Media redundancy with planned duplication mismatch" 0x800B */ static const value_string pn_io_ext_channel_error_type0x800B[] = { /* 0x0000 Reserved */ /* 0x0001 - 0x7FFF Manufacturer specific */ /* 0x8000 - 0x86FF Reserved */ { 0x8700, "MRPD duplication void for FrameID (0x0700)"}, /* 0x8701 + 0x8FFE See Equation (57) */ { 0x8FFF, "MRPD duplication void for FrameID (0x0FFF)"}, /* 0x9000 - 0x9FFF Reserved for profiles */ /* 0xA000 - 0xFFFF Reserved */ { 0, NULL } }; /* ExtChannelErrorType for ChannelErrorType "System redundancy mismatch" 0x800C */ static const value_string pn_io_ext_channel_error_type0x800C[] = { /* 0x0000 Reserved */ /* 0x0001 - 0x7FFF Manufacturer specific */ { 0x8000, "System redundancy event"}, /* 0x8001 - 0x8FFF Reserved */ /* 0x9000 - 0x9FFF Reserved for profiles */ /* 0xA000 - 0xFFFF Reserved */ { 0, NULL } }; static const value_string pn_io_channel_properties_type[] = { { 0x0000, "submodule or unspecified" }, { 0x0001, "1 Bit" }, { 0x0002, "2 Bit" }, { 0x0003, "4 Bit" }, { 0x0004, "8 Bit" }, { 0x0005, "16 Bit" }, { 0x0006, "32 Bit" }, { 0x0007, "64 Bit" }, /*0x0008 - 0x00FF reserved */ { 0, NULL } }; static const value_string pn_io_channel_properties_accumulative_vals[] = { { 0x0000, "Channel" }, { 0x0001, "ChannelGroup" }, { 0, NULL } }; /* We are reading this as a two bit value, but the spec specifies each bit * separately. Beware endianness when reading spec */ static const value_string pn_io_channel_properties_maintenance[] = { { 0x0000, "Failure" }, { 0x0001, "Maintenance required" }, { 0x0002, "Maintenance demanded" }, { 0x0003, "see QualifiedChannelQualifier" }, { 0, NULL } }; static const value_string pn_io_channel_properties_specifier[] = { { 0x0000, "All subsequent disappears" }, { 0x0001, "Appears" }, { 0x0002, "Disappears" }, { 0x0003, "Disappears but others remain" }, { 0, NULL } }; static const value_string pn_io_channel_properties_direction[] = { { 0x0000, "Manufacturer-specific" }, { 0x0001, "Input" }, { 0x0002, "Output" }, { 0x0003, "Input/Output" }, /*0x0004 - 0x0007 reserved */ { 0, NULL } }; static const value_string pn_io_alarmcr_type[] = { { 0x0000, "reserved" }, { 0x0001, "Alarm CR" }, /*0x0002 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_mau_type[] = { /*0x0000 - 0x0004 reserved */ { 0x0005, "10BASET" }, /*0x0006 - 0x0009 reserved */ { 0x000A, "10BASETXHD" }, { 0x000B, "10BASETXFD" }, { 0x000C, "10BASEFLHD" }, { 0x000D, "10BASEFLFD" }, { 0x000F, "100BASETXHD" }, { 0x0010, "100BASETXFD" }, { 0x0011, "100BASEFXHD" }, { 0x0012, "100BASEFXFD" }, /*0x0013 - 0x0014 reserved */ { 0x0015, "1000BASEXHD" }, { 0x0016, "1000BASEXFD" }, { 0x0017, "1000BASELXHD" }, { 0x0018, "1000BASELXFD" }, { 0x0019, "1000BASESXHD" }, { 0x001A, "1000BASESXFD" }, /*0x001B - 0x001C reserved */ { 0x001D, "1000BASETHD" }, { 0x001E, "1000BASETFD" }, { 0x001F, "10GigBASEFX" }, /*0x0020 - 0x002D reserved */ { 0x002E, "100BASELX10" }, /*0x002F - 0x0035 reserved */ { 0x0036, "100BASEPXFD" }, /*0x0037 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_preamble_length[] = { { 0x0000, "Seven octets Preamble shall be used" }, { 0x0001, "One octet Preamble shall be used" }, /*0x0002 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_mau_type_mode[] = { { 0x0000, "OFF" }, { 0x0001, "ON" }, /*0x0002 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_port_state[] = { { 0x0000, "reserved" }, { 0x0001, "up" }, { 0x0002, "down" }, { 0x0003, "testing" }, { 0x0004, "unknown" }, /*0x0005 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_media_type[] = { { 0x0000, "Unknown" }, { 0x0001, "Copper cable" }, { 0x0002, "Fiber optic cable" }, { 0x0003, "Radio communication" }, /*0x0004 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_fiber_optic_type[] = { { 0x0000, "No fiber type adjusted" }, { 0x0001, "9 um single mode fiber" }, { 0x0002, "50 um multi mode fiber" }, { 0x0003, "62,5 um multi mode fiber" }, { 0x0004, "SI-POF, NA=0.5" }, { 0x0005, "SI-PCF, NA=0.36" }, { 0x0006, "LowNA-POF, NA=0.3" }, { 0x0007, "GI-POF" }, /*0x0008 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_fiber_optic_cable_type[] = { { 0x0000, "No cable specified" }, { 0x0001, "Inside/outside cable, fixed installation" }, { 0x0002, "Inside/outside cable, flexible installation" }, { 0x0003, "Outdoor cable, fixed installation" }, /*0x0004 - 0xFFFF reserved */ { 0, NULL } }; static const value_string pn_io_im_revision_prefix_vals[] = { { 'V', "V - Officially released version" }, { 'R', "R - Revision" }, { 'P', "P - Prototype" }, { 'U', "U - Under Test (Field Test)" }, { 'T', "T - Test Device" }, /*all others reserved */ { 0, NULL } }; static const value_string pn_io_mrp_role_vals[] = { { 0x0000, "Media Redundancy disabled" }, { 0x0001, "Media Redundancy Client" }, { 0x0002, "Media Redundancy Manager" }, /*all others reserved */ { 0, NULL } }; static const value_string pn_io_mrp_instance_no[] = { { 0x0000, "MRP_Instance 1" }, { 0x0001, "MRP_Instance 2" }, { 0x0002, "MRP_Instance 3" }, { 0x0003, "MRP_Instance 4" }, { 0x0004, "MRP_Instance 5" }, { 0x0005, "MRP_Instance 6" }, { 0x0006, "MRP_Instance 7" }, { 0x0007, "MRP_Instance 8" }, { 0x0008, "MRP_Instance 9" }, { 0x0009, "MRP_Instance 10" }, { 0x000A, "MRP_Instance 11" }, { 0x000B, "MRP_Instance 12" }, { 0x000C, "MRP_Instance 13" }, { 0x000D, "MRP_Instance 14" }, { 0x000E, "MRP_Instance 15" }, { 0x000F, "MRP_Instance 16" }, /*all others reserved */ { 0, NULL } }; static const value_string pn_io_mrp_mrm_on[] = { { 0x0000, "Disable MediaRedundancyManager diagnosis" }, { 0x0001, "Enable MediaRedundancyManager diagnosis"}, { 0, NULL } }; static const value_string pn_io_mrp_checkUUID[] = { { 0x0000, "Disable the check of the MRP_DomainUUID" }, { 0x0001, "Enable the check of the MRP_DomainUUID"}, { 0, NULL } }; static const value_string pn_io_mrp_prio_vals[] = { { 0x0000, "Highest priority redundancy manager" }, /* 0x1000 - 0x7000 High priorities */ { 0x8000, "Default priority for redundancy manager" }, /* 0x9000 - 0xE000 Low priorities */ { 0xF000, "Lowest priority redundancy manager" }, /*all others reserved */ { 0, NULL } }; static const value_string pn_io_mrp_rtmode_rtclass12_vals[] = { { 0x0000, "RT_CLASS_1 and RT_CLASS_2 redundancy mode deactivated" }, { 0x0001, "RT_CLASS_1 and RT_CLASS_2 redundancy mode activated" }, { 0, NULL } }; static const value_string pn_io_mrp_rtmode_rtclass3_vals[] = { { 0x0000, "RT_CLASS_3 redundancy mode deactivated" }, { 0x0001, "RT_CLASS_3 redundancy mode activated" }, { 0, NULL } }; static const value_string pn_io_mrp_ring_state_vals[] = { { 0x0000, "Ring open" }, { 0x0001, "Ring closed" }, { 0, NULL } }; static const value_string pn_io_mrp_rt_state_vals[] = { { 0x0000, "RT media redundancy lost" }, { 0x0001, "RT media redundancy available" }, { 0, NULL } }; static const value_string pn_io_control_properties_vals[] = { { 0x0000, "Reserved" }, { 0, NULL } }; static const value_string pn_io_control_properties_prmbegin_vals[] = { { 0x0000, "No PrmBegin" }, { 0x0001, "The IO controller starts the transmisson of the stored start-up parameter" }, { 0, NULL } }; static const value_string pn_io_control_properties_application_ready_vals[] = { { 0x0000, "Wait for explicit ControlCommand.ReadyForCompanion" }, { 0x0001, "Implicit ControlCommand.ReadyForCompanion" }, { 0, NULL } }; static const value_string pn_io_fs_hello_mode_vals[] = { { 0x0000, "OFF" }, { 0x0001, "Send req on LinkUp" }, { 0x0002, "Send req on LinkUp after HelloDelay" }, { 0, NULL } }; static const value_string pn_io_fs_parameter_mode_vals[] = { { 0x0000, "OFF" }, { 0x0001, "ON" }, { 0x0002, "Reserved" }, { 0x0003, "Reserved" }, { 0, NULL } }; static const value_string pn_io_frame_details_sync_master_vals[] = { { 0x0000, "No Sync Frame" }, { 0x0001, "Primary sync frame" }, { 0x0002, "Secondary sync frame" }, { 0x0003, "Reserved" }, { 0, NULL } }; static const value_string pn_io_frame_details_meaning_frame_send_offset_vals[] = { { 0x0000, "Field FrameSendOffset specifies the point of time for receiving or transmitting a frame " }, { 0x0001, "Field FrameSendOffset specifies the beginning of the RT_CLASS_3 interval within a phase" }, { 0x0002, "Field FrameSendOffset specifies the ending of the RT_CLASS_3 interval within a phase" }, { 0x0003, "Reserved" }, { 0, NULL } }; static const value_string pn_io_f_check_seqnr[] = { { 0x00, "consecutive number not included in crc" }, { 0x01, "consecutive number included in crc" }, { 0, NULL } }; static const value_string pn_io_f_check_ipar[] = { { 0x00, "no check" }, { 0x01, "check" }, { 0, NULL } }; static const value_string pn_io_f_sil[] = { { 0x00, "SIL1" }, { 0x01, "SIL2" }, { 0x02, "SIL3" }, { 0x03, "NoSIL" }, { 0, NULL } }; static const value_string pn_io_f_crc_len[] = { { 0x00, "3 octet CRC" }, { 0x01, "2 octet CRC" }, { 0x02, "4 octet CRC" }, { 0x03, "reserved" }, { 0, NULL } }; static const value_string pn_io_f_crc_seed[] = { { 0x00, "CRC-FP as seed value and counter" }, { 0x01, "'1' as seed value and CRC-FP+/MNR" }, { 0, NULL } }; /* F_Block_ID dissection due to ver2.6 specifikation of PI */ static const value_string pn_io_f_block_id[] = { { 0x00, "No F_WD_Time_2, no F_iPar_CRC" }, { 0x01, "No F_WD_Time_2, F_iPar_CRC" }, { 0x02, "F_WD_Time_2, no F_iPar_CRC" }, { 0x03, "F_WD_Time_2, F_iPar_CRC" }, /* 0x04..0x07 reserved */ /* { 0x00, "Parameter set for F-Host/F-Device relationship" }, */ /* { 0x01, "Additional F_Address parameter block" }, */ /* 0x02..0x07 reserved */ { 0, NULL } }; static const value_string pn_io_f_par_version[] = { { 0x00, "Valid for V1-mode" }, { 0x01, "Valid for V2-mode" }, /* 0x02..0x03 reserved */ { 0, NULL } }; static const value_string pn_io_profidrive_request_id_vals[] = { { 0x00, "Reserved" }, { 0x01, "Read request" }, { 0x02, "Change request" }, { 0, NULL } }; static const value_string pn_io_profidrive_response_id_vals[] = { { 0x00, "Reserved" }, { 0x01, "Positive read response" }, { 0x02, "Positive change response" }, { 0x81, "Negative read response" }, { 0x82, "Negative change response" }, { 0, NULL } }; static const value_string pn_io_profidrive_attribute_vals[] = { { 0x00, "Reserved" }, { 0x10, "Value" }, { 0x20, "Description" }, { 0x30, "Text" }, { 0, NULL } }; static const value_string pn_io_profidrive_format_vals[] = { {0x01, "Boolean" }, {0x02, "Integer8" }, {0x03, "Integer16" }, {0x04, "Integer32" }, {0x05, "Unsigned8" }, {0x06, "Unsigned16" }, {0x07, "Unsigned32" }, {0x08, "Float32" }, {0x09, "VisibleString" }, {0x0A, "OctetString" }, {0x0C, "TimeOfDay" }, {0x0D, "TimeDifference" }, {0x32, "Date" }, {0x34, "TimeOfDay" }, {0x35, "TimeDifference" }, {0x36, "TimeDifference" }, { 0, NULL } }; static int dissect_profidrive_value(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, guint8 format_val) { guint32 value32; guint16 value16; guint8 value8; switch(format_val) { case 1: case 2: case 5: offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_profidrive_param_value_byte, &value8); break; case 3: case 6: offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_profidrive_param_value_word, &value16); break; case 4: case 7: offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_profidrive_param_value_dword, &value32); break; case 8: offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_profidrive_param_value_float, &value32); break; case 9: case 0x0A: { gint sLen; sLen = (gint)tvb_strnlen( tvb, offset, -1); proto_tree_add_item(tree, hf_pn_io_profidrive_param_value_string, tvb, offset, sLen, ENC_ASCII|ENC_NA); offset = (offset + sLen); break; } default: offset = offset + 1; expert_add_info_format(pinfo, tree, &ei_pn_io_unsupported, "Not supported or invalid format %u!", format_val); break; } return(offset); } static GList *pnio_ars; typedef struct pnio_ar_s { /* generic */ e_guid_t aruuid; guint16 inputframeid; guint16 outputframeid; /* controller only */ /*const char controllername[33];*/ const guint8 controllermac[6]; guint16 controlleralarmref; /* device only */ const guint8 devicemac[6]; guint16 devicealarmref; guint16 arType; } pnio_ar_t; static void pnio_ar_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, pnio_ar_t *ar) { p_add_proto_data(wmem_file_scope(), pinfo, proto_pn_io, 0, ar ); p_add_proto_data(pinfo->pool, pinfo, proto_pn_io, 0, GUINT_TO_POINTER(10)); if (tree) { proto_item *item; proto_item *sub_item; proto_tree *sub_tree; address controllermac_addr, devicemac_addr; set_address(&controllermac_addr, AT_ETHER, 6, ar->controllermac); set_address(&devicemac_addr, AT_ETHER, 6, ar->devicemac); sub_tree = proto_tree_add_subtree_format(tree, tvb, 0, 0, ett_pn_io_ar_info, &sub_item, "ARUUID:%s ContrMAC:%s ContrAlRef:0x%x DevMAC:%s DevAlRef:0x%x InCR:0x%x OutCR=0x%x", guid_to_str(wmem_packet_scope(), (const e_guid_t*) &ar->aruuid), address_to_str(wmem_packet_scope(), &controllermac_addr), ar->controlleralarmref, address_to_str(wmem_packet_scope(), &devicemac_addr), ar->devicealarmref, ar->inputframeid, ar->outputframeid); PROTO_ITEM_SET_GENERATED(sub_item); item = proto_tree_add_guid(sub_tree, hf_pn_io_ar_uuid, tvb, 0, 0, (e_guid_t *) &ar->aruuid); PROTO_ITEM_SET_GENERATED(item); item = proto_tree_add_ether(sub_tree, hf_pn_io_cminitiator_macadd, tvb, 0, 0, ar->controllermac); PROTO_ITEM_SET_GENERATED(item); item = proto_tree_add_uint(sub_tree, hf_pn_io_localalarmref, tvb, 0, 0, ar->controlleralarmref); PROTO_ITEM_SET_GENERATED(item); item = proto_tree_add_ether(sub_tree, hf_pn_io_cmresponder_macadd, tvb, 0, 0, ar->devicemac); PROTO_ITEM_SET_GENERATED(item); item = proto_tree_add_uint(sub_tree, hf_pn_io_localalarmref, tvb, 0, 0, ar->devicealarmref); PROTO_ITEM_SET_GENERATED(item); item = proto_tree_add_uint(sub_tree, hf_pn_io_frame_id, tvb, 0, 0, ar->inputframeid); PROTO_ITEM_SET_GENERATED(item); item = proto_tree_add_uint(sub_tree, hf_pn_io_frame_id, tvb, 0, 0, ar->outputframeid); PROTO_ITEM_SET_GENERATED(item); } } static int dissect_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, guint16 *u16Index, guint32 *u32RecDataLen, pnio_ar_t **ar); static int dissect_a_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep); static int dissect_blocks(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep); static int dissect_PNIO_IOxS(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, int hfindex); static pnio_ar_t * pnio_ar_find_by_aruuid(packet_info *pinfo _U_, e_guid_t *aruuid) { GList *ars; pnio_ar_t *ar; /* find pdev */ for(ars = pnio_ars; ars != NULL; ars = g_list_next(ars)) { ar = (pnio_ar_t *)ars->data; if (memcmp(&ar->aruuid, aruuid, sizeof(e_guid_t)) == 0) { return ar; } } return NULL; } static pnio_ar_t * pnio_ar_new(e_guid_t *aruuid) { pnio_ar_t *ar; ar = (pnio_ar_t *)wmem_alloc0(wmem_file_scope(), sizeof(pnio_ar_t)); memcpy(&ar->aruuid, aruuid, sizeof(e_guid_t)); ar->controlleralarmref = 0xffff; ar->devicealarmref = 0xffff; pnio_ars = g_list_append(pnio_ars, ar); return ar; } /* dissect the four status (error) fields */ static int dissect_PNIO_status(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep) { guint8 u8ErrorCode; guint8 u8ErrorDecode; guint8 u8ErrorCode1; guint8 u8ErrorCode2; proto_item *sub_item; proto_tree *sub_tree; guint32 u32SubStart; int bytemask = (drep[0] & DREP_LITTLE_ENDIAN) ? 3 : 0; const value_string *error_code1_vals; const value_string *error_code2_vals = pn_io_error_code2; /* defaults */ /* status */ sub_item = proto_tree_add_item(tree, hf_pn_io_status, tvb, offset, 0, ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_status); u32SubStart = offset; /* the PNIOStatus field is existing in both the RPC and the application data, * depending on the current PDU. * As the byte representation of these layers are different, this has to be handled * in a somewhat different way than elsewhere. */ dissect_dcerpc_uint8(tvb, offset+(0^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code, &u8ErrorCode); dissect_dcerpc_uint8(tvb, offset+(1^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_decode, &u8ErrorDecode); switch (u8ErrorDecode) { case(0x80): /* PNIORW */ dissect_dcerpc_uint8(tvb, offset+(2^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code1_pniorw, &u8ErrorCode1); error_code1_vals = pn_io_error_code1_pniorw; /* u8ErrorCode2 for PNIORW is always user specific */ dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pniorw, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pniorw; break; case(0x81): /* PNIO */ dissect_dcerpc_uint8(tvb, offset+(2^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code1_pnio, &u8ErrorCode1); error_code1_vals = pn_io_error_code1_pnio; switch (u8ErrorCode1) { case(1): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_1, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_1; break; case(2): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_2, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_2; break; case(3): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_3, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_3; break; case(4): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_4, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_4; break; case(5): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_5, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_5; break; case(6): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_6, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_6; break; case(7): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_7, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_7; break; case(8): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_8, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_8; break; case(20): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_20, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_20; break; case(21): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_21, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_21; break; case(22): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_22, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_22; break; case(23): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_23, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_23; break; case(40): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_40, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_40; break; case(61): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_61, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_61; break; case(62): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_62, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_62; break; case(63): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_63, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_63; break; case(64): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_64, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_64; break; case(65): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_65, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_65; break; case(66): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_66, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_66; break; case(70): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_70, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_70; break; case(71): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_71, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_71; break; case(72): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_72, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_72; break; case(73): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_73, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_73; break; case(74): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_74, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_74; break; case(75): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_75, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_75; break; case(76): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_76, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_76; break; case(77): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_77, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_77; break; case(253): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_253, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_253; break; case(255): dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2_pnio_255, &u8ErrorCode2); error_code2_vals = pn_io_error_code2_pnio_255; break; default: /* don't know this u8ErrorCode1 for PNIO, use defaults */ dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2, &u8ErrorCode2); expert_add_info_format(pinfo, sub_item, &ei_pn_io_error_code1, "Unknown ErrorCode1 0x%x (for ErrorDecode==PNIO)", u8ErrorCode1); break; } break; default: dissect_dcerpc_uint8(tvb, offset+(2^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code1, &u8ErrorCode1); if (u8ErrorDecode!=0) { expert_add_info_format(pinfo, sub_item, &ei_pn_io_error_code1, "Unknown ErrorDecode 0x%x", u8ErrorDecode); } error_code1_vals = pn_io_error_code1; /* don't know this u8ErrorDecode, use defaults */ dissect_dcerpc_uint8(tvb, offset+(3^bytemask), pinfo, sub_tree, drep, hf_pn_io_error_code2, &u8ErrorCode2); if (u8ErrorDecode != 0) { expert_add_info_format(pinfo, sub_item, &ei_pn_io_error_code2, "Unknown ErrorDecode 0x%x", u8ErrorDecode); } } offset += 4; if ((u8ErrorCode == 0) && (u8ErrorDecode == 0) && (u8ErrorCode1 == 0) && (u8ErrorCode2 == 0)) { proto_item_append_text(sub_item, ": OK"); col_append_str(pinfo->cinfo, COL_INFO, ", OK"); } else { proto_item_append_text(sub_item, ": Error: \"%s\", \"%s\", \"%s\", \"%s\"", val_to_str(u8ErrorCode, pn_io_error_code, "(0x%x)"), val_to_str(u8ErrorDecode, pn_io_error_decode, "(0x%x)"), val_to_str(u8ErrorCode1, error_code1_vals, "(0x%x)"), val_to_str(u8ErrorCode2, error_code2_vals, "(0x%x)")); col_append_fstr(pinfo->cinfo, COL_INFO, ", Error: \"%s\", \"%s\", \"%s\", \"%s\"", val_to_str(u8ErrorCode, pn_io_error_code, "(0x%x)"), val_to_str(u8ErrorDecode, pn_io_error_decode, "(0x%x)"), val_to_str(u8ErrorCode1, error_code1_vals, "(0x%x)"), val_to_str(u8ErrorCode2, error_code2_vals, "(0x%x)")); } proto_item_set_len(sub_item, offset - u32SubStart); return offset; } /* dissect the alarm specifier */ static int dissect_Alarm_specifier(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep) { guint16 u16AlarmSpecifierSequence; guint16 u16AlarmSpecifierChannel; guint16 u16AlarmSpecifierManufacturer; guint16 u16AlarmSpecifierSubmodule; guint16 u16AlarmSpecifierAR; proto_item *sub_item; proto_tree *sub_tree; /* alarm specifier */ sub_item = proto_tree_add_item(tree, hf_pn_io_alarm_specifier, tvb, offset, 2, ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_pdu_type); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_alarm_specifier_sequence, &u16AlarmSpecifierSequence); u16AlarmSpecifierSequence &= 0x07FF; dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_alarm_specifier_channel, &u16AlarmSpecifierChannel); u16AlarmSpecifierChannel = (u16AlarmSpecifierChannel &0x0800) >> 11; dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_alarm_specifier_manufacturer, &u16AlarmSpecifierManufacturer); u16AlarmSpecifierManufacturer = (u16AlarmSpecifierManufacturer &0x1000) >> 12; dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_alarm_specifier_submodule, &u16AlarmSpecifierSubmodule); u16AlarmSpecifierSubmodule = (u16AlarmSpecifierSubmodule & 0x2000) >> 13; offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_alarm_specifier_ardiagnosis, &u16AlarmSpecifierAR); u16AlarmSpecifierAR = (u16AlarmSpecifierAR & 0x8000) >> 15; proto_item_append_text(sub_item, ", Sequence: %u, Channel: %u, Manuf: %u, Submodule: %u AR: %u", u16AlarmSpecifierSequence, u16AlarmSpecifierChannel, u16AlarmSpecifierManufacturer, u16AlarmSpecifierSubmodule, u16AlarmSpecifierAR); return offset; } /* dissect the alarm header */ static int dissect_Alarm_header(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep) { guint16 u16AlarmType; guint32 u32Api; guint16 u16SlotNr; guint16 u16SubslotNr; offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_alarm_type, &u16AlarmType); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_api, &u32Api); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_slot_nr, &u16SlotNr); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); proto_item_append_text(item, ", %s, API:%u, Slot:0x%x/0x%x", val_to_str(u16AlarmType, pn_io_alarm_type, "(0x%x)"), u32Api, u16SlotNr, u16SubslotNr); col_append_fstr(pinfo->cinfo, COL_INFO, ", %s, Slot: 0x%x/0x%x", val_to_str(u16AlarmType, pn_io_alarm_type, "(0x%x)"), u16SlotNr, u16SubslotNr); return offset; } static int dissect_ChannelProperties(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep) { proto_item *sub_item; proto_tree *sub_tree; guint16 u16ChannelProperties; sub_item = proto_tree_add_item(tree, hf_pn_io_channel_properties, tvb, offset, 2, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_channel_properties); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_channel_properties_direction, &u16ChannelProperties); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_channel_properties_specifier, &u16ChannelProperties); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_channel_properties_maintenance, &u16ChannelProperties); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_channel_properties_accumulative, &u16ChannelProperties); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_channel_properties_type, &u16ChannelProperties); return offset; } static int dissect_AlarmUserStructure(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint16 *body_length, guint16 u16UserStructureIdentifier) { guint16 u16ChannelNumber; guint16 u16ChannelErrorType; guint16 u16ExtChannelErrorType; guint32 u32ExtChannelAddValue; guint16 u16Index = 0; guint32 u32RecDataLen; pnio_ar_t *ar = NULL; switch (u16UserStructureIdentifier) { case(0x8000): /* ChannelDiagnosisData */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_channel_number, &u16ChannelNumber); offset = dissect_ChannelProperties(tvb, offset, pinfo, tree, item, drep); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_channel_error_type, &u16ChannelErrorType); *body_length -= 6; break; case(0x8002): /* ExtChannelDiagnosisData */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_channel_number, &u16ChannelNumber); offset = dissect_ChannelProperties(tvb, offset, pinfo, tree, item, drep); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_channel_error_type, &u16ChannelErrorType); if (u16ChannelErrorType < 0x7fff) { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ext_channel_error_type0, &u16ExtChannelErrorType); } else if (u16ChannelErrorType == 0x8000) { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ext_channel_error_type0x8000, &u16ExtChannelErrorType); } else if (u16ChannelErrorType == 0x8001) { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ext_channel_error_type0x8001, &u16ExtChannelErrorType); } else if (u16ChannelErrorType == 0x8002) { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ext_channel_error_type0x8002, &u16ExtChannelErrorType); } else if ((u16ChannelErrorType == 0x8003)||(u16ChannelErrorType == 0x8009)) { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ext_channel_error_type0x8003, &u16ExtChannelErrorType); } else if (u16ChannelErrorType == 0x8004) { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ext_channel_error_type0x8004, &u16ExtChannelErrorType); } else if (u16ChannelErrorType == 0x8005) { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ext_channel_error_type0x8005, &u16ExtChannelErrorType); } else if (u16ChannelErrorType == 0x8007) { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ext_channel_error_type0x8007, &u16ExtChannelErrorType); } else if (u16ChannelErrorType == 0x8008) { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ext_channel_error_type0x8008, &u16ExtChannelErrorType); } else if (u16ChannelErrorType == 0x800A) { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ext_channel_error_type0x800A, &u16ExtChannelErrorType); } else if (u16ChannelErrorType == 0x800B) { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ext_channel_error_type0x800B, &u16ExtChannelErrorType); } else if (u16ChannelErrorType == 0x800C) { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ext_channel_error_type0x800C, &u16ExtChannelErrorType); } else { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ext_channel_error_type, &u16ExtChannelErrorType); } offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_ext_channel_add_value, &u32ExtChannelAddValue); *body_length -= 12; break; case(0x8100): /* MaintenanceItem */ offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); *body_length -= 12; break; /* XXX - dissect remaining user structures of [AlarmItem] */ case(0x8001): /* DiagnosisData */ case(0x8003): /* QualifiedChannelDiagnosisData */ default: if (u16UserStructureIdentifier >= 0x8000) { offset = dissect_pn_undecoded(tvb, offset, pinfo, tree, *body_length); } else { offset = dissect_pn_user_data(tvb, offset, pinfo, tree, *body_length, "UserData"); } *body_length = 0; } return offset; } /* dissect the alarm notification block */ static int dissect_AlarmNotification_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 body_length) { guint32 u32ModuleIdentNumber; guint32 u32SubmoduleIdentNumber; guint16 u16UserStructureIdentifier; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_Alarm_header(tvb, offset, pinfo, tree, item, drep); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_module_ident_number, &u32ModuleIdentNumber); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_submodule_ident_number, &u32SubmoduleIdentNumber); offset = dissect_Alarm_specifier(tvb, offset, pinfo, tree, drep); proto_item_append_text(item, ", Ident:0x%x, SubIdent:0x%x", u32ModuleIdentNumber, u32SubmoduleIdentNumber); body_length -= 20; /* the rest of the block contains optional: [MaintenanceItem] and/or [AlarmItem] */ while (body_length) { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_user_structure_identifier, &u16UserStructureIdentifier); proto_item_append_text(item, ", USI:0x%x", u16UserStructureIdentifier); body_length -= 2; offset = dissect_AlarmUserStructure(tvb, offset, pinfo, tree, item, drep, &body_length, u16UserStructureIdentifier); } return offset; } static int dissect_IandM0_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint8 u8VendorIDHigh; guint8 u8VendorIDLow; char *pOrderID; char *pIMSerialNumber; guint16 u16IMHardwareRevision; guint8 u8SWRevisionPrefix; guint8 u8IMSWRevisionFunctionalEnhancement; guint8 u8IMSWRevisionBugFix; guint8 u8IMSWRevisionInternalChange; guint16 u16IMRevisionCounter; guint16 u16IMProfileID; guint16 u16IMProfileSpecificType; guint8 u8IMVersionMajor; guint8 u8IMVersionMinor; guint16 u16IMSupported; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* x8 VendorIDHigh */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_vendor_id_high, &u8VendorIDHigh); /* x8 VendorIDLow */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_vendor_id_low, &u8VendorIDLow); /* c8[20] OrderID */ pOrderID = (char *)wmem_alloc(wmem_packet_scope(), 20+1); tvb_memcpy(tvb, (guint8 *) pOrderID, offset, 20); pOrderID[20] = '\0'; proto_tree_add_string (tree, hf_pn_io_order_id, tvb, offset, 20, pOrderID); offset += 20; /* c8[16] IM_Serial_Number */ pIMSerialNumber = (char *)wmem_alloc(wmem_packet_scope(), 16+1); tvb_memcpy(tvb, (guint8 *) pIMSerialNumber, offset, 16); pIMSerialNumber[16] = '\0'; proto_tree_add_string (tree, hf_pn_io_im_serial_number, tvb, offset, 16, pIMSerialNumber); offset += 16; /* x16 IM_Hardware_Revision */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_im_hardware_revision, &u16IMHardwareRevision); /* c8 SWRevisionPrefix */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_im_revision_prefix, &u8SWRevisionPrefix); /* x8 IM_SWRevision_Functional_Enhancement */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_im_sw_revision_functional_enhancement, &u8IMSWRevisionFunctionalEnhancement); /* x8 IM_SWRevision_Bug_Fix */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_im_revision_bugfix, &u8IMSWRevisionBugFix); /* x8 IM_SWRevision_Internal_Change */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_im_sw_revision_internal_change, &u8IMSWRevisionInternalChange); /* x16 IM_Revision_Counter */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_im_revision_counter, &u16IMRevisionCounter); /* x16 IM_Profile_ID */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_im_profile_id, &u16IMProfileID); /* x16 IM_Profile_Specific_Type */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_im_profile_specific_type, &u16IMProfileSpecificType); /* x8 IM_Version_Major (values) */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_im_version_major, &u8IMVersionMajor); /* x8 IM_Version_Minor (values) */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_im_version_minor, &u8IMVersionMinor); /* x16 IM_Supported (bitfield) */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_im_supported, &u16IMSupported); return offset; } static int dissect_IandM1_block(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, proto_item *item, guint8 *drep _U_, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { char *pTagFunction; char *pTagLocation; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* IM_Tag_Function [32] */ pTagFunction = (char *)wmem_alloc(wmem_packet_scope(), 32+1); tvb_memcpy(tvb, (guint8 *) pTagFunction, offset, 32); pTagFunction[32] = '\0'; proto_tree_add_string (tree, hf_pn_io_im_tag_function, tvb, offset, 32, pTagFunction); offset += 32; /* IM_Tag_Location [22] */ pTagLocation = (char *)wmem_alloc(wmem_packet_scope(), 22+1); tvb_memcpy(tvb, (guint8 *) pTagLocation, offset, 22); pTagLocation[22] = '\0'; proto_tree_add_string (tree, hf_pn_io_im_tag_location, tvb, offset, 22, pTagLocation); offset += 22; proto_item_append_text(item, ": TagFunction:\"%s\", TagLocation:\"%s\"", pTagFunction, pTagLocation); return offset; } static int dissect_IandM2_block(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, proto_item *item, guint8 *drep _U_, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { char *pDate; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* IM_Date [16] */ pDate = (char *)wmem_alloc(wmem_packet_scope(), 16+1); tvb_memcpy(tvb, (guint8 *) pDate, offset, 16); pDate[16] = '\0'; proto_tree_add_string (tree, hf_pn_io_im_date, tvb, offset, 16, pDate); offset += 16; proto_item_append_text(item, ": Date:\"%s\"", pDate); return offset; } static int dissect_IandM3_block(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, proto_item *item, guint8 *drep _U_, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { char *pDescriptor; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* IM_Descriptor [54] */ pDescriptor = (char *)wmem_alloc(wmem_packet_scope(), 54+1); tvb_memcpy(tvb, (guint8 *) pDescriptor, offset, 54); pDescriptor[54] = '\0'; proto_tree_add_string (tree, hf_pn_io_im_descriptor, tvb, offset, 54, pDescriptor); offset += 54; proto_item_append_text(item, ": Descriptor:\"%s\"", pDescriptor); return offset; } static int dissect_IandM4_block(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, guint8 *drep _U_, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } dissect_pn_user_data(tvb, offset, pinfo, tree, 54, "IM Signature"); return offset; } static int dissect_IandM5_block(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, guint8 *drep _U_, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16NumberofEntries; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_im_numberofentries, &u16NumberofEntries); while(u16NumberofEntries > 0) { offset = dissect_a_block(tvb, offset, pinfo, tree, drep); u16NumberofEntries--; } return offset; } static int dissect_IandM0FilterData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16NumberOfAPIs; guint32 u32Api; guint16 u16NumberOfModules; guint16 u16SlotNr; guint32 u32ModuleIdentNumber; guint16 u16NumberOfSubmodules; guint16 u16SubslotNr; guint32 u32SubmoduleIdentNumber; proto_item *subslot_item; proto_tree *subslot_tree; proto_item *module_item; proto_tree *module_tree; guint32 u32ModuleStart; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* NumberOfAPIs */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_apis, &u16NumberOfAPIs); while (u16NumberOfAPIs--) { /* API */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_api, &u32Api); /* NumberOfModules */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_modules, &u16NumberOfModules); while (u16NumberOfModules--) { module_item = proto_tree_add_item(tree, hf_pn_io_subslot, tvb, offset, 6, ENC_NA); module_tree = proto_item_add_subtree(module_item, ett_pn_io_module); u32ModuleStart = offset; /* SlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, module_tree, drep, hf_pn_io_slot_nr, &u16SlotNr); /* ModuleIdentNumber */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, module_tree, drep, hf_pn_io_module_ident_number, &u32ModuleIdentNumber); /* NumberOfSubmodules */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, module_tree, drep, hf_pn_io_number_of_submodules, &u16NumberOfSubmodules); proto_item_append_text(module_item, ": Slot:%u, Ident:0x%x Submodules:%u", u16SlotNr, u32ModuleIdentNumber, u16NumberOfSubmodules); while (u16NumberOfSubmodules--) { subslot_item = proto_tree_add_item(module_tree, hf_pn_io_subslot, tvb, offset, 6, ENC_NA); subslot_tree = proto_item_add_subtree(subslot_item, ett_pn_io_subslot); /* SubslotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, subslot_tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); /* SubmoduleIdentNumber */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, subslot_tree, drep, hf_pn_io_submodule_ident_number, &u32SubmoduleIdentNumber); proto_item_append_text(subslot_item, ": Number:0x%x, Ident:0x%x", u16SubslotNr, u32SubmoduleIdentNumber); } proto_item_set_len(module_item, offset-u32ModuleStart); } } return offset; } static int dissect_IandM5Data_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep) { char *pIMAnnotation; char *pIMOrderID; guint8 u8VendorIDHigh; guint8 u8VendorIDLow; char *pIMSerialNumber; guint16 u16IMHardwareRevision; guint8 u8SWRevisionPrefix; guint8 u8IMSWRevisionFunctionalEnhancement; guint8 u8IMSWRevisionBugFix; guint8 u8IMSWRevisionInternalChange; /* c8[64] IM Annotation */ pIMAnnotation = (char *)wmem_alloc(wmem_packet_scope(), 64+1); tvb_memcpy(tvb, (guint8 *) pIMAnnotation, offset, 64); pIMAnnotation[64] = '\0'; proto_tree_add_string(tree, hf_pn_io_im_annotation, tvb, offset, 64, pIMAnnotation); offset += 64; /* c8[64] IM Order ID */ pIMOrderID = (char *)wmem_alloc(wmem_packet_scope(), 64+1); tvb_memcpy(tvb, (guint8 *) pIMOrderID, offset, 64); pIMOrderID[64] = '\0'; proto_tree_add_string(tree, hf_pn_io_im_order_id, tvb, offset, 64, pIMOrderID); offset += 64; /* x8 VendorIDHigh */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_vendor_id_high, &u8VendorIDHigh); /* x8 VendorIDLow */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_vendor_id_low, &u8VendorIDLow); /* c8[16] IM Serial Number */ pIMSerialNumber = (char *)wmem_alloc(wmem_packet_scope(), 16+1); tvb_memcpy(tvb, (guint8 *) pIMSerialNumber, offset, 16); pIMSerialNumber[16] = '\0'; proto_tree_add_string(tree, hf_pn_io_im_serial_number, tvb, offset, 16, pIMSerialNumber); offset += 16; /* x16 IM_Hardware_Revision */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_im_hardware_revision, &u16IMHardwareRevision); /* c8 SWRevisionPrefix */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_im_revision_prefix, &u8SWRevisionPrefix); /* x8 IM_SWRevision_Functional_Enhancement */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_im_sw_revision_functional_enhancement, &u8IMSWRevisionFunctionalEnhancement); /* x8 IM_SWRevision_Bug_Fix */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_im_revision_bugfix, &u8IMSWRevisionBugFix); /* x8 IM_SWRevision_Internal_Change */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_im_sw_revision_internal_change, &u8IMSWRevisionInternalChange); return offset; } /* dissect the IdentificationData block */ static int dissect_IdentificationData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16NumberOfAPIs = 1; guint32 u32Api; guint16 u16NumberOfSlots; guint16 u16SlotNr; guint32 u32ModuleIdentNumber; guint16 u16NumberOfSubslots; guint32 u32SubmoduleIdentNumber; guint16 u16SubslotNr; proto_item *slot_item; proto_tree *slot_tree; guint32 u32SlotStart; proto_item *subslot_item; proto_tree *subslot_tree; if (u8BlockVersionHigh != 1 || (u8BlockVersionLow != 0 && u8BlockVersionLow != 1)) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } if (u8BlockVersionLow == 1) { /* NumberOfAPIs */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_apis, &u16NumberOfAPIs); } proto_item_append_text(item, ": APIs:%u", u16NumberOfAPIs); while (u16NumberOfAPIs--) { if (u8BlockVersionLow == 1) { /* API */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_api, &u32Api); } /* NumberOfSlots */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_slots, &u16NumberOfSlots); proto_item_append_text(item, ", Slots:%u", u16NumberOfSlots); while (u16NumberOfSlots--) { slot_item = proto_tree_add_item(tree, hf_pn_io_slot, tvb, offset, 0, ENC_NA); slot_tree = proto_item_add_subtree(slot_item, ett_pn_io_slot); u32SlotStart = offset; /* SlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, slot_tree, drep, hf_pn_io_slot_nr, &u16SlotNr); /* ModuleIdentNumber */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, slot_tree, drep, hf_pn_io_module_ident_number, &u32ModuleIdentNumber); /* NumberOfSubslots */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, slot_tree, drep, hf_pn_io_number_of_subslots, &u16NumberOfSubslots); proto_item_append_text(slot_item, ": SlotNr:%u Ident:0x%x Subslots:%u", u16SlotNr, u32ModuleIdentNumber, u16NumberOfSubslots); while (u16NumberOfSubslots--) { subslot_item = proto_tree_add_item(slot_tree, hf_pn_io_subslot, tvb, offset, 6, ENC_NA); subslot_tree = proto_item_add_subtree(subslot_item, ett_pn_io_subslot); /* SubslotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, subslot_tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); /* SubmoduleIdentNumber */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, subslot_tree, drep, hf_pn_io_submodule_ident_number, &u32SubmoduleIdentNumber); proto_item_append_text(subslot_item, ": Number:0x%x, Ident:0x%x", u16SubslotNr, u32SubmoduleIdentNumber); } proto_item_set_len(slot_item, offset-u32SlotStart); } } return offset; } /* dissect the substitute value block */ static int dissect_SubstituteValue_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { guint16 u16SubstitutionMode; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* SubstitutionMode */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_substitutionmode, &u16SubstitutionMode); /* SubstituteDataItem */ /* IOCS */ offset = dissect_PNIO_IOxS(tvb, offset, pinfo, tree, drep, hf_pn_io_iocs); u16BodyLength -= 3; /* SubstituteDataObjectElement */ dissect_pn_user_data_bytes(tvb, offset, pinfo, tree, u16BodyLength, SUBST_DATA); return offset; } /* dissect the RecordInputDataObjectElement block */ static int dissect_RecordInputDataObjectElement_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint8 u8LengthIOCS; guint8 u8LengthIOPS; guint16 u16LengthData; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* LengthIOCS */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_length_iocs, &u8LengthIOCS); /* IOCS */ offset = dissect_PNIO_IOxS(tvb, offset, pinfo, tree, drep, hf_pn_io_iocs); /* LengthIOPS */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_length_iops, &u8LengthIOPS); /* IOPS */ offset = dissect_PNIO_IOxS(tvb, offset, pinfo, tree, drep, hf_pn_io_iops); /* LengthData */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_length_data, &u16LengthData); /* Data */ offset = dissect_pn_user_data(tvb, offset, pinfo, tree, u16LengthData, "Data"); return offset; } /* dissect the RecordOutputDataObjectElement block */ static int dissect_RecordOutputDataObjectElement_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16SubstituteActiveFlag; guint8 u8LengthIOCS; guint8 u8LengthIOPS; guint16 u16LengthData; guint16 u16Index = 0; guint32 u32RecDataLen; pnio_ar_t *ar = NULL; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* SubstituteActiveFlag */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_substitute_active_flag, &u16SubstituteActiveFlag); /* LengthIOCS */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_length_iocs, &u8LengthIOCS); /* LengthIOPS */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_length_iops, &u8LengthIOPS); /* LengthData */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_length_data, &u16LengthData); /* DataItem (IOCS, Data, IOPS) */ offset = dissect_PNIO_IOxS(tvb, offset, pinfo, tree, drep, hf_pn_io_iocs); offset = dissect_pn_user_data(tvb, offset, pinfo, tree, u16LengthData, "Data"); offset = dissect_PNIO_IOxS(tvb, offset, pinfo, tree, drep, hf_pn_io_iops); /* SubstituteValue */ offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); return offset; } /* dissect the alarm acknowledge block */ static int dissect_Alarm_ack_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } col_append_str(pinfo->cinfo, COL_INFO, ", Alarm Ack"); offset = dissect_Alarm_header(tvb, offset, pinfo, tree, item, drep); offset = dissect_Alarm_specifier(tvb, offset, pinfo, tree, drep); offset = dissect_PNIO_status(tvb, offset, pinfo, tree, drep); return offset; } /* dissect the maintenance block */ static int dissect_Maintenance_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { proto_item *sub_item; proto_tree *sub_tree; guint32 u32MaintenanceStatus; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); sub_item = proto_tree_add_item(tree, hf_pn_io_maintenance_status, tvb, offset, 4, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_maintenance_status); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_maintenance_status_demanded, &u32MaintenanceStatus); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_maintenance_status_required, &u32MaintenanceStatus); if (u32MaintenanceStatus & 0x0002) { proto_item_append_text(item, ", Demanded"); proto_item_append_text(sub_item, ", Demanded"); } if (u32MaintenanceStatus & 0x0001) { proto_item_append_text(item, ", Required"); proto_item_append_text(sub_item, ", Required"); } return offset; } /* dissect the read/write header */ static int dissect_ReadWrite_header(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint16 *u16Index, e_guid_t *aruuid) { guint32 u32Api; guint16 u16SlotNr; guint16 u16SubslotNr; guint16 u16SeqNr; offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_seq_number, &u16SeqNr); offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_ar_uuid, aruuid); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_api, &u32Api); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_slot_nr, &u16SlotNr); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); /* padding doesn't match offset required for align4 */ offset = dissect_pn_padding(tvb, offset, pinfo, tree, 2); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_index, u16Index); proto_item_append_text(item, ": Seq:%u, Api:0x%x, Slot:0x%x/0x%x", u16SeqNr, u32Api, u16SlotNr, u16SubslotNr); col_append_fstr(pinfo->cinfo, COL_INFO, ", Api:0x%x, Slot:0x%x/0x%x, Index:%s", u32Api, u16SlotNr, u16SubslotNr, val_to_str(*u16Index, pn_io_index, "(0x%x)")); return offset; } /* dissect the write request block */ static int dissect_IODWriteReqHeader_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 *u16Index, guint32 *u32RecDataLen, pnio_ar_t ** ar) { e_guid_t aruuid; e_guid_t null_uuid; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_ReadWrite_header(tvb, offset, pinfo, tree, item, drep, u16Index, &aruuid); *ar = pnio_ar_find_by_aruuid(pinfo, &aruuid); if (*ar == NULL) { expert_add_info_format(pinfo, item, &ei_pn_io_ar_info_not_found, "IODWriteReq: AR information not found!"); } offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_record_data_length, u32RecDataLen); memset(&null_uuid, 0, sizeof(e_guid_t)); if (memcmp(&aruuid, &null_uuid, sizeof (e_guid_t)) == 0) { offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_target_ar_uuid, &aruuid); } offset = dissect_pn_padding(tvb, offset, pinfo, tree, 24); proto_item_append_text(item, ", Len:%u", *u32RecDataLen); if (*u32RecDataLen != 0) col_append_fstr(pinfo->cinfo, COL_INFO, ", %u bytes", *u32RecDataLen); return offset; } /* dissect the read request block */ static int dissect_IODReadReqHeader_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 *u16Index, guint32 *u32RecDataLen, pnio_ar_t **ar) { e_guid_t aruuid; e_guid_t null_uuid; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_ReadWrite_header(tvb, offset, pinfo, tree, item, drep, u16Index, &aruuid); *ar = pnio_ar_find_by_aruuid(pinfo, &aruuid); if (*ar == NULL) { expert_add_info_format(pinfo, item, &ei_pn_io_ar_info_not_found, "IODReadReq: AR information not found!"); } offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_record_data_length, u32RecDataLen); memset(&null_uuid, 0, sizeof(e_guid_t)); if (memcmp(&aruuid, &null_uuid, sizeof (e_guid_t)) == 0) { offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_target_ar_uuid, &aruuid); offset = dissect_pn_padding(tvb, offset, pinfo, tree, 8); } else { offset = dissect_pn_padding(tvb, offset, pinfo, tree, 24); } proto_item_append_text(item, ", Len:%u", *u32RecDataLen); if (*u32RecDataLen != 0) col_append_fstr(pinfo->cinfo, COL_INFO, ", %u bytes", *u32RecDataLen); return offset; } /* dissect the write response block */ static int dissect_IODWriteResHeader_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 *u16Index, guint32 *u32RecDataLen, pnio_ar_t **ar) { e_guid_t aruuid; guint16 u16AddVal1; guint16 u16AddVal2; guint32 u32Status; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_ReadWrite_header(tvb, offset, pinfo, tree, item, drep, u16Index, &aruuid); *ar = pnio_ar_find_by_aruuid(pinfo, &aruuid); if (*ar == NULL) { expert_add_info_format(pinfo, item, &ei_pn_io_ar_info_not_found, "IODWriteRes: AR information not found!"); } offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_record_data_length, u32RecDataLen); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_add_val1, &u16AddVal1); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_add_val2, &u16AddVal2); u32Status = ((drep[0] & DREP_LITTLE_ENDIAN) ? tvb_get_letohl (tvb, offset) : tvb_get_ntohl (tvb, offset)); offset = dissect_PNIO_status(tvb, offset, pinfo, tree, drep); offset = dissect_pn_padding(tvb, offset, pinfo, tree, 16); proto_item_append_text(item, ", Len:%u, Index:0x%x, Status:0x%x, Val1:%u, Val2:%u", *u32RecDataLen, *u16Index, u32Status, u16AddVal1, u16AddVal2); if (*u32RecDataLen != 0) col_append_fstr(pinfo->cinfo, COL_INFO, ", %u bytes", *u32RecDataLen); return offset; } /* dissect the read response block */ static int dissect_IODReadResHeader_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 *u16Index, guint32 *u32RecDataLen, pnio_ar_t **ar) { e_guid_t aruuid; guint16 u16AddVal1; guint16 u16AddVal2; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_ReadWrite_header(tvb, offset, pinfo, tree, item, drep, u16Index, &aruuid); *ar = pnio_ar_find_by_aruuid(pinfo, &aruuid); if (*ar == NULL) { expert_add_info_format(pinfo, item, &ei_pn_io_ar_info_not_found, "IODReadRes: AR information not found!"); } offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_record_data_length, u32RecDataLen); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_add_val1, &u16AddVal1); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_add_val2, &u16AddVal2); offset = dissect_pn_padding(tvb, offset, pinfo, tree, 20); proto_item_append_text(item, ", Len:%u, AddVal1:%u, AddVal2:%u", *u32RecDataLen, u16AddVal1, u16AddVal2); if (*u32RecDataLen != 0) col_append_fstr(pinfo->cinfo, COL_INFO, ", %u bytes", *u32RecDataLen); return offset; } /* dissect the control/connect block */ static int dissect_ControlConnect_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, pnio_ar_t **ar) { e_guid_t ar_uuid; guint16 u16SessionKey; proto_item *sub_item; proto_tree *sub_tree; guint16 u16Command; guint16 u16Properties; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_reserved16, NULL); offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_ar_uuid, &ar_uuid); *ar = pnio_ar_find_by_aruuid(pinfo, &ar_uuid); if (*ar == NULL) { expert_add_info_format(pinfo, item, &ei_pn_io_ar_info_not_found, "ControlConnect: AR information not found!"); } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_sessionkey, &u16SessionKey); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_reserved16, NULL); sub_item = proto_tree_add_item(tree, hf_pn_io_control_command, tvb, offset, 2, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_control_command); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_prmend, &u16Command); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_applready, &u16Command); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_release, &u16Command); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_done, &u16Command); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_ready_for_companion, &u16Command); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_ready_for_rt_class3, &u16Command); /* Prm.Begin */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_prmbegin, &u16Command); if (u16Command & 0x0002) { /* ApplicationReady: special decode */ sub_item = proto_tree_add_item(tree, hf_pn_io_control_block_properties_applready, tvb, offset, 2, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_control_block_properties); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_block_properties_applready0, &u16Properties); } else { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_control_block_properties, &u16Properties); } proto_item_append_text(item, ": Session:%u, Command:", u16SessionKey); if (u16Command & 0x0001) { proto_item_append_text(sub_item, ", ParameterEnd"); proto_item_append_text(item, " ParameterEnd"); col_append_str(pinfo->cinfo, COL_INFO, ", Command: ParameterEnd"); } if (u16Command & 0x0002) { proto_item_append_text(sub_item, ", ApplicationReady"); proto_item_append_text(item, " ApplicationReady"); col_append_str(pinfo->cinfo, COL_INFO, ", Command: ApplicationReady"); } if (u16Command & 0x0004) { proto_item_append_text(sub_item, ", Release"); proto_item_append_text(item, " Release"); col_append_str(pinfo->cinfo, COL_INFO, ", Command: Release"); } if (u16Command & 0x0008) { proto_item_append_text(sub_item, ", Done"); proto_item_append_text(item, ", Done"); col_append_str(pinfo->cinfo, COL_INFO, ", Command: Done"); } proto_item_append_text(item, ", Properties:0x%x", u16Properties); return offset; } /* dissect the ControlBlockPrmBegin block */ static int dissect_ControlBlockPrmBegin(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint32 u32RecDataLen, pnio_ar_t **ar) { e_guid_t ar_uuid; guint16 u16SessionKey; guint16 u16Command; proto_item *sub_item; proto_tree *sub_tree; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } if (u32RecDataLen != 28-2) /* must be 28 see specification (version already dissected) */ { expert_add_info_format(pinfo, item, &ei_pn_io_block_length, "Block length of %u is invalid!", u32RecDataLen); return offset; } offset = dissect_pn_padding(tvb, offset, pinfo, tree, 2); /* ARUUID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_ar_uuid, &ar_uuid); *ar = pnio_ar_find_by_aruuid(pinfo, &ar_uuid); if (*ar == NULL) { expert_add_info_format(pinfo, item, &ei_pn_io_ar_info_not_found, "ControlBlockPrmBegin: AR information not found! (partial capture?)"); } /* SessionKey */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_sessionkey, &u16SessionKey); offset = dissect_pn_padding(tvb, offset, pinfo, tree, 2); /* ControlCommand */ sub_item = proto_tree_add_item(tree, hf_pn_io_control_command, tvb, offset, 2, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_control_command); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_prmend, &u16Command); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_applready, &u16Command); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_release, &u16Command); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_done, &u16Command); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_ready_for_companion, &u16Command); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_ready_for_rt_class3, &u16Command); /* Prm.Begin */ dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_prmbegin, &u16Command); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_control_command_reserved_7_15, &u16Command); /* ControlBlockProperties.reserved */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_control_command_reserved, NULL); return offset; } /* dissect the SubmoduleListBlock block */ static int dissect_SubmoduleListBlock(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint32 u32RecDataLen _U_, pnio_ar_t **ar _U_) { guint16 u16Entries; guint32 u32API; guint16 u16SlotNumber; guint16 u16SubSlotNumber; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_SubmoduleListEntries, &u16Entries); while (u16Entries --) { /*API */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_api, &u32API); /*SlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_slot_nr, &u16SlotNumber); /* SubSlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_subslot_nr, &u16SubSlotNumber); } return offset; } /* dissect the PDevData block */ static int dissect_PDevData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); offset = dissect_blocks(tvb, offset, pinfo, tree, drep); return offset; } /* dissect the AdjustPreambleLength block */ static int dissect_AdjustPreambleLength_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16AdjustProperties; guint16 u16PreambleLength; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* PreambleLength */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_PreambleLength, &u16PreambleLength); /* AdjustProperties */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_adjust_properties, &u16AdjustProperties); return offset; } /* dissect the PDPortDataAdjust block */ static int dissect_PDPortData_Adjust_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { guint16 u16SlotNr; guint16 u16SubslotNr; tvbuff_t *new_tvb; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* SlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_slot_nr, &u16SlotNr); /* Subslotnumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); proto_item_append_text(item, ": Slot:0x%x/0x%x", u16SlotNr, u16SubslotNr); u16BodyLength -= 6; new_tvb = tvb_new_subset_length(tvb, offset, u16BodyLength); dissect_blocks(new_tvb, 0, pinfo, tree, drep); offset += u16BodyLength; /* XXX - do we have to free the new_tvb somehow? */ return offset; } /* dissect the PDPortDataCheck blocks */ static int dissect_PDPortData_Check_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { guint16 u16SlotNr; guint16 u16SubslotNr; tvbuff_t *new_tvb; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* SlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_slot_nr, &u16SlotNr); /* Subslotnumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); proto_item_append_text(item, ": Slot:0x%x/0x%x", u16SlotNr, u16SubslotNr); u16BodyLength -= 6; new_tvb = tvb_new_subset_length(tvb, offset, u16BodyLength); dissect_blocks(new_tvb, 0, pinfo, tree, drep); offset += u16BodyLength; /* XXX - do we have to free the new_tvb somehow? */ return offset; } /* dissect the PDPortDataReal blocks */ static int dissect_PDPortDataReal_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16SlotNr; guint16 u16SubslotNr; guint8 u8LengthOwnPortID; char *pOwnPortID; guint8 u8NumberOfPeers; guint8 u8I; guint8 u8LengthPeerPortID; char *pPeerPortID; guint8 u8LengthPeerChassisID; char *pPeerChassisID; guint32 u32LineDelay; guint8 mac[6]; guint16 u16MAUType; guint32 u32DomainBoundary; guint32 u32MulticastBoundary; guint16 u16PortState; guint32 u32MediaType; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* SlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_slot_nr, &u16SlotNr); /* Subslotnumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); /* LengthOwnPortID */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_length_own_port_id, &u8LengthOwnPortID); /* OwnPortID */ pOwnPortID = (char *)wmem_alloc(wmem_packet_scope(), u8LengthOwnPortID+1); tvb_memcpy(tvb, (guint8 *) pOwnPortID, offset, u8LengthOwnPortID); pOwnPortID[u8LengthOwnPortID] = '\0'; proto_tree_add_string (tree, hf_pn_io_own_port_id, tvb, offset, u8LengthOwnPortID, pOwnPortID); offset += u8LengthOwnPortID; /* NumberOfPeers */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_peers, &u8NumberOfPeers); /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); u8I = u8NumberOfPeers; while (u8I--) { /* LengthPeerPortID */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_length_peer_port_id, &u8LengthPeerPortID); /* PeerPortID */ pPeerPortID = (char *)wmem_alloc(wmem_packet_scope(), u8LengthPeerPortID+1); tvb_memcpy(tvb, (guint8 *) pPeerPortID, offset, u8LengthPeerPortID); pPeerPortID[u8LengthPeerPortID] = '\0'; proto_tree_add_string (tree, hf_pn_io_peer_port_id, tvb, offset, u8LengthPeerPortID, pPeerPortID); offset += u8LengthPeerPortID; /* LengthPeerChassisID */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_length_peer_chassis_id, &u8LengthPeerChassisID); /* PeerChassisID */ pPeerChassisID = (char *)wmem_alloc(wmem_packet_scope(), u8LengthPeerChassisID+1); tvb_memcpy(tvb, (guint8 *) pPeerChassisID, offset, u8LengthPeerChassisID); pPeerChassisID[u8LengthPeerChassisID] = '\0'; proto_tree_add_string (tree, hf_pn_io_peer_chassis_id, tvb, offset, u8LengthPeerChassisID, pPeerChassisID); offset += u8LengthPeerChassisID; /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* LineDelay */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_line_delay, &u32LineDelay); /* PeerMACAddress */ offset = dissect_pn_mac(tvb, offset, pinfo, tree, hf_pn_io_peer_macadd, mac); /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); } /* MAUType */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mau_type, &u16MAUType); /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* DomainBoundary */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_domain_boundary, &u32DomainBoundary); /* MulticastBoundary */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_multicast_boundary, &u32MulticastBoundary); /* PortState */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_port_state, &u16PortState); /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* MediaType */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_media_type, &u32MediaType); proto_item_append_text(item, ": Slot:0x%x/0x%x, OwnPortID:%s, Peers:%u PortState:%s MediaType:%s", u16SlotNr, u16SubslotNr, pOwnPortID, u8NumberOfPeers, val_to_str(u16PortState, pn_io_port_state, "0x%x"), val_to_str(u32MediaType, pn_io_media_type, "0x%x")); return offset; } static int dissect_PDInterfaceMrpDataAdjust_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { e_guid_t uuid; guint16 u16Role; guint8 u8LengthDomainName; guint8 u8NumberOfMrpInstances; char *pDomainName; int iStartOffset = offset; if (u8BlockVersionHigh != 1 || u8BlockVersionLow > 1) { /* added low version == 1 */ expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } if (u8BlockVersionLow == 0) /*dissect LowVersion == 0 */ { offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* MRP_DomainUUID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_domain_uuid, &uuid); /* MRP_Role */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_role, &u16Role); /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* MRP_LengthDomainName */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_length_domain_name, &u8LengthDomainName); /* MRP_DomainName */ pDomainName = (char *)wmem_alloc(wmem_packet_scope(), u8LengthDomainName+1); tvb_memcpy(tvb, (guint8 *) pDomainName, offset, u8LengthDomainName); pDomainName[u8LengthDomainName] = '\0'; proto_tree_add_string (tree, hf_pn_io_mrp_domain_name, tvb, offset, u8LengthDomainName, pDomainName); offset += u8LengthDomainName; /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); if ((offset - iStartOffset) < u16BodyLength) { offset = dissect_blocks(tvb, offset, pinfo, tree, drep); } } else if (u8BlockVersionLow == 1) /*dissect LowVersion == 1 */ { /* Padding one byte */ offset = dissect_pn_padding(tvb, offset, pinfo, tree, 1); /* Number of Mrp Instances */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_instances, &u8NumberOfMrpInstances); if (u8NumberOfMrpInstances > 0xf) { expert_add_info_format(pinfo, item, &ei_pn_io_mrp_instances, "Number of MrpInstances greater 0x0f is (0x%x)", u8NumberOfMrpInstances); return offset; } while(u8NumberOfMrpInstances > 0) { offset = dissect_a_block(tvb, offset, pinfo, tree, drep); u8NumberOfMrpInstances--; } } return offset; } static int dissect_PDInterfaceMrpDataReal_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { e_guid_t uuid; guint16 u16Role; guint16 u16Version; guint8 u8LengthDomainName; guint8 u8NumberOfMrpInstances; char *pDomainName; int endoffset = offset + u16BodyLength; /* added blockversion 1 */ if (u8BlockVersionHigh != 1 || u8BlockVersionLow > 2) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } if (u8BlockVersionLow < 2) /* dissect low versions 0 and 1 */ { /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* MRP_DomainUUID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_domain_uuid, &uuid); /* MRP_Role */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_role, &u16Role); if (u8BlockVersionLow == 1) { /* MRP_Version */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_version, &u16Version); } /* MRP_LengthDomainName */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_length_domain_name, &u8LengthDomainName); /* MRP_DomainName */ pDomainName = (char *)wmem_alloc(wmem_packet_scope(), u8LengthDomainName+1); tvb_memcpy(tvb, (guint8 *) pDomainName, offset, u8LengthDomainName); pDomainName[u8LengthDomainName] = '\0'; proto_tree_add_string (tree, hf_pn_io_mrp_domain_name, tvb, offset, u8LengthDomainName, pDomainName); offset += u8LengthDomainName; if (u8BlockVersionLow == 0) { /* MRP_Version */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_version, &u16Version); } /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); while(endoffset > offset) { offset = dissect_a_block(tvb, offset, pinfo, tree, drep); } } else if (u8BlockVersionLow == 2) { /* Padding one byte */ offset = dissect_pn_padding(tvb, offset, pinfo, tree, 1); /* Number of Mrp Instances */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_instances, &u8NumberOfMrpInstances); if (u8NumberOfMrpInstances > 0xf) { expert_add_info_format(pinfo, item, &ei_pn_io_mrp_instances, "Number of MrpInstances greater 0x0f is (0x%x)", u8NumberOfMrpInstances); return offset; } while(u8NumberOfMrpInstances > 0) { offset = dissect_a_block(tvb, offset, pinfo, tree, drep); u8NumberOfMrpInstances--; } } return offset; } static int dissect_PDInterfaceMrpDataCheck_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { e_guid_t uuid; guint32 u32Check; guint8 u8NumberOfMrpInstances; /* BlockVersionLow == 1 added */ if (u8BlockVersionHigh != 1 || u8BlockVersionLow > 1) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } if (u8BlockVersionLow == 0) { offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* MRP_DomainUUID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_domain_uuid, &uuid); /* MRP_Check */ dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_check, &u32Check); dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_check_mrm, &u32Check); dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_check_mrpdomain, &u32Check); dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_check_reserved_1, &u32Check); dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_check_reserved_2, &u32Check); offset +=4; /* MRP_Check (32 bit) done */ } else if (u8BlockVersionLow == 1) { /* Padding one byte */ offset = dissect_pn_padding(tvb, offset, pinfo, tree, 1); /* Number of Mrp Instances */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_instances, &u8NumberOfMrpInstances); if (u8NumberOfMrpInstances > 0xf) { expert_add_info_format(pinfo, item, &ei_pn_io_mrp_instances, "Number of MrpInstances greater 0x0f is (0x%x)", u8NumberOfMrpInstances); return offset; } while(u8NumberOfMrpInstances > 0) { offset = dissect_a_block(tvb, offset, pinfo, tree, drep); u8NumberOfMrpInstances--; } } return offset; } static int dissect_PDPortMrpData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { e_guid_t uuid; guint8 u8MrpInstance; /* added BlockVersionLow == 1 */ if (u8BlockVersionHigh != 1 || u8BlockVersionLow > 1) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } if (u8BlockVersionLow == 0) { offset = dissect_pn_align4(tvb, offset, pinfo, tree); } else /*if (u8BlockVersionLow == 1) */ { /* Padding one byte */ offset = dissect_pn_padding(tvb, offset, pinfo, tree, 1); /* Mrp Instance */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_instance, &u8MrpInstance); } /* MRP_DomainUUID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_domain_uuid, &uuid); return offset; } static int dissect_MrpManagerParams_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16Prio; guint16 u16TOPchgT; guint16 u16TOPNRmax; guint16 u16TSTshortT; guint16 u16TSTdefaultT; guint16 u16TSTNRmax; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* MRP_Prio */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_prio, &u16Prio); /* MRP_TOPchgT */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_topchgt, &u16TOPchgT); /* MRP_TOPNRmax */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_topnrmax, &u16TOPNRmax); /* MRP_TSTshortT */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_tstshortt, &u16TSTshortT); /* MRP_TSTdefaultT */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_tstdefaultt, &u16TSTdefaultT); /* MSP_TSTNRmax */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_tstnrmax, &u16TSTNRmax); /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); return offset; } static int dissect_MrpRTMode(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep) { proto_item *sub_item; proto_tree *sub_tree; guint32 u32RTMode; /* MRP_RTMode */ sub_item = proto_tree_add_item(tree, hf_pn_io_mrp_rtmode, tvb, offset, 4, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_mrp_rtmode); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_mrp_rtmode_reserved2, &u32RTMode); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_mrp_rtmode_reserved1, &u32RTMode); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_mrp_rtmode_rtclass3, &u32RTMode); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_mrp_rtmode_rtclass12, &u32RTMode); return offset; } static int dissect_MrpRTModeManagerData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16TSTNRmax; guint16 u16TSTdefaultT; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* MSP_TSTNRmax */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_tstnrmax, &u16TSTNRmax); /* MRP_TSTdefaultT */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_tstdefaultt, &u16TSTdefaultT); /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* MRP_RTMode */ offset = dissect_MrpRTMode(tvb, offset, pinfo, tree, item, drep); return offset; } static int dissect_MrpRingStateData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16RingState; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* MRP_RingState */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_ring_state, &u16RingState); return offset; } static int dissect_MrpRTStateData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16RTState; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* MRP_RTState */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_rt_state, &u16RTState); return offset; } static int dissect_MrpClientParams_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16MRP_LNKdownT; guint16 u16MRP_LNKupT; guint16 u16MRP_LNKNRmax; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* MRP_LNKdownT */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_lnkdownt, &u16MRP_LNKdownT); /* MRP_LNKupT */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_lnkupt, &u16MRP_LNKupT); /* MRP_LNKNRmax u16 */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_lnknrmax, &u16MRP_LNKNRmax); return offset; } static int dissect_MrpRTModeClientData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { offset = dissect_pn_align4(tvb, offset, pinfo, tree); if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* MRP_RTMode */ offset = dissect_MrpRTMode(tvb, offset, pinfo, tree, item, drep); return offset; } static int dissect_CheckSyncDifference_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { proto_item *sub_item; proto_tree *sub_tree; guint16 u16CheckSyncMode; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } sub_item = proto_tree_add_item(tree, hf_pn_io_check_sync_mode, tvb, offset, 2, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_check_sync_mode); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_check_sync_mode_reserved, &u16CheckSyncMode); dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_check_sync_mode_sync_master, &u16CheckSyncMode); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_check_sync_mode_cable_delay, &u16CheckSyncMode); proto_item_append_text(sub_item, "CheckSyncMode: SyncMaster:%d, CableDelay:%d", (u16CheckSyncMode >> 1) & 1, u16CheckSyncMode & 1); proto_item_append_text(item, " : SyncMaster:%d, CableDelay:%d", (u16CheckSyncMode >> 1) & 1, u16CheckSyncMode & 1); return offset; } static int dissect_CheckMAUTypeDifference_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16MAUTypeMode; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mau_type_mode, &u16MAUTypeMode); proto_item_append_text(item, ": MAUTypeMode:%s", val_to_str(u16MAUTypeMode, pn_io_mau_type_mode, "0x%x")); return offset; } /* dissect the AdjustDomainBoundary blocks */ static int dissect_AdjustDomainBoundary_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint32 u32DomainBoundary; guint32 u32DomainBoundaryIngress; guint32 u32DomainBoundaryEgress; guint16 u16AdjustProperties; if (u8BlockVersionHigh != 1 || (u8BlockVersionLow != 0 && u8BlockVersionLow != 1)) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); switch (u8BlockVersionLow) { case(0): /* DomainBoundary */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_domain_boundary, &u32DomainBoundary); /* AdjustProperties */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_adjust_properties, &u16AdjustProperties); /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); proto_item_append_text(item, ": Boundary:0x%x, Properties:0x%x", u32DomainBoundary, u16AdjustProperties); break; case(1): /* DomainBoundaryIngress */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_domain_boundary_ingress, &u32DomainBoundaryIngress); /* DomainBoundaryEgress */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_domain_boundary_egress, &u32DomainBoundaryEgress); /* AdjustProperties */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_adjust_properties, &u16AdjustProperties); /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); proto_item_append_text(item, ": BoundaryIngress:0x%x, BoundaryEgress:0x%x, Properties:0x%x", u32DomainBoundaryIngress, u32DomainBoundaryEgress, u16AdjustProperties); break; default: expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } return offset; } /* dissect the AdjustMulticastBoundary blocks */ static int dissect_AdjustMulticastBoundary_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint32 u32MulticastBoundary; guint16 u16AdjustProperties; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* Boundary */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_multicast_boundary, &u32MulticastBoundary); /* AdjustProperties */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_adjust_properties, &u16AdjustProperties); proto_item_append_text(item, ": Boundary:0x%x, Properties:0x%x", u32MulticastBoundary, u16AdjustProperties); return offset; } /* dissect the AdjustMAUType block */ static int dissect_AdjustMAUType_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16MAUType; guint16 u16AdjustProperties; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* MAUType */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mau_type, &u16MAUType); /* AdjustProperties */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_adjust_properties, &u16AdjustProperties); proto_item_append_text(item, ": MAUType:%s, Properties:0x%x", val_to_str(u16MAUType, pn_io_mau_type, "0x%x"), u16AdjustProperties); return offset; } /* dissect the CheckMAUType block */ static int dissect_CheckMAUType_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16MAUType; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* MAUType */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mau_type, &u16MAUType); proto_item_append_text(item, ": MAUType:%s", val_to_str(u16MAUType, pn_io_mau_type, "0x%x")); return offset; } /* dissect the CheckLineDelay block */ static int dissect_CheckLineDelay_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint32 u32LineDelay; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* LineDelay */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_line_delay, &u32LineDelay); proto_item_append_text(item, ": LineDelay:%uns", u32LineDelay); return offset; } /* dissect the CheckPeers block */ static int dissect_CheckPeers_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint8 u8NumberOfPeers; guint8 u8I; guint8 u8LengthPeerPortID; char *pPeerPortID; guint8 u8LengthPeerChassisID; char *pPeerChassisID; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* NumberOfPeers */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_peers, &u8NumberOfPeers); u8I = u8NumberOfPeers; while (u8I--) { /* LengthPeerPortID */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_length_peer_port_id, &u8LengthPeerPortID); /* PeerPortID */ pPeerPortID = (char *)wmem_alloc(wmem_packet_scope(), u8LengthPeerPortID+1); tvb_memcpy(tvb, (guint8 *) pPeerPortID, offset, u8LengthPeerPortID); pPeerPortID[u8LengthPeerPortID] = '\0'; proto_tree_add_string (tree, hf_pn_io_peer_port_id, tvb, offset, u8LengthPeerPortID, pPeerPortID); offset += u8LengthPeerPortID; /* LengthPeerChassisID */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_length_peer_chassis_id, &u8LengthPeerChassisID); /* PeerChassisID */ pPeerChassisID = (char *)wmem_alloc(wmem_packet_scope(), u8LengthPeerChassisID+1); tvb_memcpy(tvb, (guint8 *) pPeerChassisID, offset, u8LengthPeerChassisID); pPeerChassisID[u8LengthPeerChassisID] = '\0'; proto_tree_add_string (tree, hf_pn_io_peer_chassis_id, tvb, offset, u8LengthPeerChassisID, pPeerChassisID); offset += u8LengthPeerChassisID; } proto_item_append_text(item, ": NumberOfPeers:%u", u8NumberOfPeers); return offset; } /* dissect the AdjustPortState block */ static int dissect_AdjustPortState_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16PortState; guint16 u16AdjustProperties; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* PortState */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_port_state, &u16PortState); /* AdjustProperties */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_adjust_properties, &u16AdjustProperties); proto_item_append_text(item, ": PortState:%s, Properties:0x%x", val_to_str(u16PortState, pn_io_port_state, "0x%x"), u16AdjustProperties); return offset; } /* dissect the CheckPortState block */ static int dissect_CheckPortState_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16PortState; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* PortState */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_port_state, &u16PortState); proto_item_append_text(item, ": %s", val_to_str(u16PortState, pn_io_port_state, "0x%x")); return offset; } /* dissect the PDPortFODataReal block */ static int dissect_PDPortFODataReal_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { guint32 u32FiberOpticType; guint32 u32FiberOpticCableType; guint16 u16Index = 0; guint32 u32RecDataLen; pnio_ar_t *ar = NULL; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* FiberOpticType */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_fiber_optic_type, &u32FiberOpticType); /* FiberOpticCableType */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_fiber_optic_cable_type, &u32FiberOpticCableType); /* optional: FiberOpticManufacturerSpecific */ if (u16BodyLength != 10) { dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); } return offset; } /* dissect the FiberOpticManufacturerSpecific block */ static int dissect_FiberOpticManufacturerSpecific_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { guint8 u8VendorIDHigh; guint8 u8VendorIDLow; guint16 u16VendorBlockType; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* x8 VendorIDHigh */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_vendor_id_high, &u8VendorIDHigh); /* x8 VendorIDLow */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_vendor_id_low, &u8VendorIDLow); /* VendorBlockType */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_vendor_block_type, &u16VendorBlockType); /* Data */ offset = dissect_pn_user_data(tvb, offset, pinfo, tree, u16BodyLength-4, "Data"); return offset; } /* dissect the FiberOpticDiagnosisInfo block */ static int dissect_FiberOpticDiagnosisInfo_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint32 u32FiberOpticPowerBudget; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_padding(tvb, offset, pinfo, tree, 2); /* decode the u32FiberOpticPowerBudget better */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_maintenance_required_power_budget, &u32FiberOpticPowerBudget); return offset; } /* dissect the PDPortFODataAdjust block */ static int dissect_PDPortFODataAdjust_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint32 u32FiberOpticType; guint32 u32FiberOpticCableType; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* FiberOpticType */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_fiber_optic_type, &u32FiberOpticType); /* FiberOpticCableType */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_fiber_optic_cable_type, &u32FiberOpticCableType); /* proto_item_append_text(item, ": %s", val_to_str(u16PortState, pn_io_port_state, "0x%x"));*/ return offset; } /* dissect the PDPortFODataCheck block */ static int dissect_PDPortFODataCheck_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint32 u32FiberOpticPowerBudget; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* MaintenanceRequiredPowerBudget */ /* XXX - decode the u32FiberOpticPowerBudget better */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_maintenance_required_power_budget, &u32FiberOpticPowerBudget); /* MaintenanceDemandedPowerBudget */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_maintenance_demanded_power_budget, &u32FiberOpticPowerBudget); /* ErrorPowerBudget */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_error_power_budget, &u32FiberOpticPowerBudget); /* proto_item_append_text(item, ": %s", val_to_str(u16PortState, pn_io_port_state, "0x%x"));*/ return offset; } static int dissect_MrpInstanceDataAdjust_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { guint8 u8MrpInstance; e_guid_t uuid; guint16 u16Role; guint8 u8LengthDomainName; char* pDomainName; int endoffset = offset + u16BodyLength; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* Padding one byte */ offset = dissect_pn_padding(tvb, offset, pinfo, tree, 1); /* Mrp Instance */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_instance, &u8MrpInstance); /* MRP_DomainUUID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_domain_uuid, &uuid); /* MRP_Role */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_role, &u16Role); /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* MRP_LengthDomainName */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_length_domain_name, &u8LengthDomainName); /* MRP_DomainName */ pDomainName = (char *)wmem_alloc(wmem_packet_scope(), u8LengthDomainName+1); tvb_memcpy(tvb, (guint8 *) pDomainName, offset, u8LengthDomainName); pDomainName[u8LengthDomainName] = '\0'; proto_tree_add_string (tree, hf_pn_io_mrp_domain_name, tvb, offset, u8LengthDomainName, pDomainName); offset += u8LengthDomainName; /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); while(endoffset > offset) { offset = dissect_a_block(tvb, offset, pinfo, tree, drep); } return offset; } static int dissect_MrpInstanceDataReal_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { guint8 u8MrpInstance; e_guid_t uuid; guint16 u16Role; guint16 u16Version; guint8 u8LengthDomainName; char* pDomainName; int endoffset = offset + u16BodyLength; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* Padding one byte */ offset = dissect_pn_padding(tvb, offset, pinfo, tree, 1); /* Mrp Instance */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_instance, &u8MrpInstance); /* MRP_DomainUUID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_domain_uuid, &uuid); /* MRP_Role */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_role, &u16Role); /* MRP_Version */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_version, &u16Version); /* MRP_LengthDomainName */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_length_domain_name, &u8LengthDomainName); /* MRP_DomainName */ pDomainName = (char *)wmem_alloc(wmem_packet_scope(), u8LengthDomainName+1); tvb_memcpy(tvb, (guint8 *) pDomainName, offset, u8LengthDomainName); pDomainName[u8LengthDomainName] = '\0'; proto_tree_add_string (tree, hf_pn_io_mrp_domain_name, tvb, offset, u8LengthDomainName, pDomainName); offset += u8LengthDomainName; /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); while(endoffset > offset) { offset = dissect_a_block(tvb, offset, pinfo, tree, drep); } return offset; } static int dissect_MrpInstanceDataCheck_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength _U_) { guint8 u8MrpInstance; guint32 u32Check; e_guid_t uuid; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* Padding one byte */ offset = dissect_pn_padding(tvb, offset, pinfo, tree, 1); /* Mrp Instance */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_instance, &u8MrpInstance); /* MRP_DomainUUID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_domain_uuid, &uuid); /* MRP_Check */ dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_check, &u32Check); dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_check_mrm, &u32Check); dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_check_mrpdomain, &u32Check); dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_check_reserved_1, &u32Check); dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_mrp_check_reserved_2, &u32Check); offset +=4; /* MRP_Check (32 bit) done */ return offset; } /* PDInterfaceAdjust */ static int dissect_PDInterfaceAdjust_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint32 u32SMultipleInterfaceMode; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* MultipleInterfaceMode */ dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_MultipleInterfaceMode_NameOfDevice, &u32SMultipleInterfaceMode); dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_MultipleInterfaceMode_reserved_1, &u32SMultipleInterfaceMode); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_MultipleInterfaceMode_reserved_2, &u32SMultipleInterfaceMode); return offset; } /* PDPortStatistic for one subslot */ static int dissect_PDPortStatistic_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint32 u32StatValue; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_pdportstatistic_ifInOctets, &u32StatValue); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_pdportstatistic_ifOutOctets, &u32StatValue); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_pdportstatistic_ifInDiscards, &u32StatValue); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_pdportstatistic_ifOutDiscards, &u32StatValue); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_pdportstatistic_ifInErrors, &u32StatValue); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_pdportstatistic_ifOutErrors, &u32StatValue); return offset; } /* dissect the PDInterfaceDataReal block */ static int dissect_PDInterfaceDataReal_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint8 u8LengthOwnChassisID; char *pOwnChassisID; guint8 mac[6]; guint32 ip; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* LengthOwnChassisID */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_length_own_chassis_id, &u8LengthOwnChassisID); /* OwnChassisID */ pOwnChassisID = (char *)wmem_alloc(wmem_packet_scope(), u8LengthOwnChassisID+1); tvb_memcpy(tvb, (guint8 *) pOwnChassisID, offset, u8LengthOwnChassisID); pOwnChassisID[u8LengthOwnChassisID] = '\0'; proto_tree_add_string (tree, hf_pn_io_own_chassis_id, tvb, offset, u8LengthOwnChassisID, pOwnChassisID); offset += u8LengthOwnChassisID; /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* MACAddressValue */ offset = dissect_pn_mac(tvb, offset, pinfo, tree, hf_pn_io_macadd, mac); /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* IPAddress */ offset = dissect_pn_ipv4(tvb, offset, pinfo, tree, hf_pn_io_ip_address, &ip); /*proto_item_append_text(block_item, ", IP: %s", ip_to_str((guint8*)&ip));*/ /* Subnetmask */ offset = dissect_pn_ipv4(tvb, offset, pinfo, tree, hf_pn_io_subnetmask, &ip); /*proto_item_append_text(block_item, ", Subnet: %s", ip_to_str((guint8*)&ip));*/ /* StandardGateway */ offset = dissect_pn_ipv4(tvb, offset, pinfo, tree, hf_pn_io_standard_gateway, &ip); /*proto_item_append_text(block_item, ", Router: %s", ip_to_str((guint8*)&ip));*/ return offset; } /* dissect the PDSyncData block */ static int dissect_PDSyncData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16SlotNr; guint16 u16SubslotNr; e_guid_t uuid; guint32 u32ReservedIntervalBegin; guint32 u32ReservedIntervalEnd; guint32 u32PLLWindow; guint32 u32SyncSendFactor; guint16 u16SendClockFactor; guint16 u16SyncProperties; guint16 u16SyncFrameAddress; guint16 u16PTCPTimeoutFactor; guint16 u16PTCPTakeoverTimeoutFactor; guint16 u16PTCPMasterStartupTime; guint8 u8MasterPriority1; guint8 u8MasterPriority2; guint8 u8LengthSubdomainName; char *pSubdomainName; if (u8BlockVersionHigh != 1) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); switch (u8BlockVersionLow) { case(0): /* SlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_slot_nr, &u16SlotNr); /* Subslotnumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); /* PTCPSubdomainID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_ptcp_subdomain_id, &uuid); /* IRDataID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_ir_data_id, &uuid); /* ReservedIntervalBegin */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_reserved_interval_begin, &u32ReservedIntervalBegin); /* ReservedIntervalEnd */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_reserved_interval_end, &u32ReservedIntervalEnd); /* PLLWindow enum */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_pllwindow, &u32PLLWindow); /* SyncSendFactor 32 enum */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_sync_send_factor, &u32SyncSendFactor); /* SendClockFactor 16 */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_send_clock_factor, &u16SendClockFactor); /* SyncProperties 16 bitfield */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_sync_properties, &u16SyncProperties); /* SyncFrameAddress 16 bitfield */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_sync_frame_address, &u16SyncFrameAddress); /* PTCPTimeoutFactor 16 enum */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ptcp_timeout_factor, &u16PTCPTimeoutFactor); proto_item_append_text(item, ": Slot:0x%x/0x%x, Interval:%u-%u, PLLWin:%u, Send:%u, Clock:%u", u16SlotNr, u16SubslotNr, u32ReservedIntervalBegin, u32ReservedIntervalEnd, u32PLLWindow, u32SyncSendFactor, u16SendClockFactor); break; case(2): /* PTCPSubdomainID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_ptcp_subdomain_id, &uuid); /* ReservedIntervalBegin */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_reserved_interval_begin, &u32ReservedIntervalBegin); /* ReservedIntervalEnd */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_reserved_interval_end, &u32ReservedIntervalEnd); /* PLLWindow enum */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_pllwindow, &u32PLLWindow); /* SyncSendFactor 32 enum */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_sync_send_factor, &u32SyncSendFactor); /* SendClockFactor 16 */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_send_clock_factor, &u16SendClockFactor); /* PTCPTimeoutFactor 16 enum */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ptcp_timeout_factor, &u16PTCPTimeoutFactor); /* PTCPTakeoverTimeoutFactor 16 */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ptcp_takeover_timeout_factor, &u16PTCPTakeoverTimeoutFactor); /* PTCPMasterStartupTime 16 */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ptcp_master_startup_time, &u16PTCPMasterStartupTime); /* SyncProperties 16 bitfield */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_sync_properties, &u16SyncProperties); /* PTCP_MasterPriority1 */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_ptcp_master_priority_1, &u8MasterPriority1); /* PTCP_MasterPriority2 */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_ptcp_master_priority_2, &u8MasterPriority2); /* PTCPLengthSubdomainName */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, tree, drep, hf_pn_io_ptcp_length_subdomain_name, &u8LengthSubdomainName); /* PTCPSubdomainName */ pSubdomainName = (char *)wmem_alloc(wmem_packet_scope(), u8LengthSubdomainName+1); tvb_memcpy(tvb, (guint8 *) pSubdomainName, offset, u8LengthSubdomainName); pSubdomainName[u8LengthSubdomainName] = '\0'; proto_tree_add_string (tree, hf_pn_io_ptcp_subdomain_name, tvb, offset, u8LengthSubdomainName, pSubdomainName); offset += u8LengthSubdomainName; /* Padding */ offset = dissect_pn_align4(tvb, offset, pinfo, tree); proto_item_append_text(item, ": Interval:%u-%u, PLLWin:%u, Send:%u, Clock:%u", u32ReservedIntervalBegin, u32ReservedIntervalEnd, u32PLLWindow, u32SyncSendFactor, u16SendClockFactor); break; default: expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); } return offset; } /* dissect the PDIRData block */ static int dissect_PDIRData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16SlotNr; guint16 u16SubslotNr; guint16 u16Index = 0; guint32 u32RecDataLen; pnio_ar_t *ar = NULL; /* versions decoded are High: 1 and LOW 0..2 */ if (u8BlockVersionHigh != 1 || (u8BlockVersionLow > 2 ) ) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* SlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_slot_nr, &u16SlotNr); /* Subslotnumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); proto_item_append_text(item, ": Slot:0x%x/0x%x", u16SlotNr, u16SubslotNr); /* PDIRGlobalData */ offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); if (u8BlockVersionLow == 0) { /* PDIRFrameData */ offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); } else if (u8BlockVersionLow == 1) { /* [PDIRFrameData] */ offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); /* PDIRBeginEndData */ offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); }else if (u8BlockVersionLow == 2) { /* [PDIRFrameData] */ offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); /* PDIRBeginEndData */ offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); } return offset; } /* dissect the PDIRGlobalData block */ static int dissect_PDIRGlobalData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { e_guid_t uuid; guint32 u32MaxBridgeDelay; guint32 u32NumberOfPorts; guint32 u32MaxPortTxDelay; guint32 u32MaxPortRxDelay; guint32 u32MaxLineRxDelay; guint32 u32YellowTime; guint32 u32Tmp; /* added blockversion 2 */ if (u8BlockVersionHigh != 1 || (u8BlockVersionLow > 2)) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* IRDataID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_ir_data_id, &uuid); if (u8BlockVersionLow <= 2) { /* MaxBridgeDelay */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_max_bridge_delay, &u32MaxBridgeDelay); /* NumberOfPorts */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_ports, &u32NumberOfPorts); u32Tmp = u32NumberOfPorts; while (u32Tmp--) { /* MaxPortTxDelay */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_max_port_tx_delay, &u32MaxPortTxDelay); /* MaxPortRxDelay */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_max_port_rx_delay, &u32MaxPortRxDelay); if (u8BlockVersionLow >= 2) { /* MaxLineRxDelay */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_max_line_rx_delay, &u32MaxLineRxDelay); /* YellowTime */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_yellowtime, &u32YellowTime); } } proto_item_append_text(item, ": MaxBridgeDelay:%u, NumberOfPorts:%u", u32MaxBridgeDelay, u32NumberOfPorts); } return offset; } /* dissect the PDIRFrameData block */ static int dissect_PDIRFrameData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { guint32 u32FrameSendOffset; guint32 u32FrameDataProperties; guint16 u16DataLength; guint16 u16ReductionRatio; guint16 u16Phase; guint16 u16FrameID; guint16 u16Ethertype; guint8 u8RXPort; guint8 u8FrameDetails; guint8 u8NumberOfTxPortGroups; guint8 u8TxPortGroupArray; guint16 u16TxPortGroupArraySize; guint16 u16EndOffset; guint16 n = 0; proto_item *sub_item; proto_tree *sub_tree; /* added low version 1 */ if (u8BlockVersionHigh != 1 || u8BlockVersionLow > 1) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); u16EndOffset = offset + u16BodyLength -2; if (u8BlockVersionLow > 0) { /* for low version 1 FrameDataProperties is added */ sub_item = proto_tree_add_item(tree, hf_pn_io_frame_data_properties, tvb, offset, 4, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_FrameDataProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_frame_data_properties_forwarding_Mode, &u32FrameDataProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_frame_data_properties_FastForwardingMulticastMACAdd, &u32FrameDataProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_frame_data_properties_FragmentMode, &u32FrameDataProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_frame_data_properties_reserved_1, &u32FrameDataProperties); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_frame_data_properties_reserved_2, &u32FrameDataProperties); } /* dissect all IR frame data */ while (offset < u16EndOffset) { proto_item *ir_frame_data_sub_item; proto_tree *ir_frame_data_tree; n++; /* new subtree for each IR frame */ ir_frame_data_sub_item = proto_tree_add_item(tree, hf_pn_io_ir_frame_data, tvb, offset, 17, ENC_NA); ir_frame_data_tree = proto_item_add_subtree(ir_frame_data_sub_item, ett_pn_io_ir_frame_data); /* FrameSendOffset */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, ir_frame_data_tree, drep, hf_pn_io_frame_send_offset, &u32FrameSendOffset); /* DataLength */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ir_frame_data_tree, drep, hf_pn_io_data_length, &u16DataLength); /* ReductionRatio */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ir_frame_data_tree, drep, hf_pn_io_reduction_ratio, &u16ReductionRatio); /* Phase */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ir_frame_data_tree, drep, hf_pn_io_phase, &u16Phase); /* FrameID */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ir_frame_data_tree, drep, hf_pn_io_frame_id, &u16FrameID); /* Ethertype */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ir_frame_data_tree, drep, hf_pn_io_ethertype, &u16Ethertype); /* RxPort */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, ir_frame_data_tree, drep, hf_pn_io_rx_port, &u8RXPort); /* FrameDetails */ sub_item = proto_tree_add_item(ir_frame_data_tree, hf_pn_io_frame_details, tvb, offset, 1, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_frame_defails); dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_frame_details_sync_frame, &u8FrameDetails); dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_frame_details_meaning_frame_send_offset, &u8FrameDetails); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_frame_details_reserved, &u8FrameDetails); /* TxPortGroup */ u8NumberOfTxPortGroups = tvb_get_guint8(tvb, offset); sub_item = proto_tree_add_uint(ir_frame_data_tree, hf_pn_io_nr_of_tx_port_groups, tvb, offset, 1, u8NumberOfTxPortGroups); offset++; if ((u8NumberOfTxPortGroups > 21) || ((u8NumberOfTxPortGroups & 0x1) !=1)) { expert_add_info(pinfo, sub_item, &ei_pn_io_nr_of_tx_port_groups); } /* TxPortArray */ u16TxPortGroupArraySize = (u8NumberOfTxPortGroups + 7 / 8); sub_item = proto_tree_add_item(ir_frame_data_tree, hf_pn_io_TxPortGroupProperties, tvb, offset, u16TxPortGroupArraySize, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_GroupProperties); while (u16TxPortGroupArraySize > 0) { dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_TxPortGroupProperties_bit0, &u8TxPortGroupArray); dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_TxPortGroupProperties_bit1, &u8TxPortGroupArray); dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_TxPortGroupProperties_bit2, &u8TxPortGroupArray); dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_TxPortGroupProperties_bit3, &u8TxPortGroupArray); dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_TxPortGroupProperties_bit4, &u8TxPortGroupArray); dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_TxPortGroupProperties_bit5, &u8TxPortGroupArray); dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_TxPortGroupProperties_bit6, &u8TxPortGroupArray); dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_TxPortGroupProperties_bit7, &u8TxPortGroupArray); offset+=1; u16TxPortGroupArraySize --; } /* align to next dataset */ offset = dissect_pn_align4(tvb, offset, pinfo, ir_frame_data_tree); proto_item_append_text(ir_frame_data_tree, ": Offset:%u, Len:%u, Ratio:%u, Phase:%u, FrameID:0x%04x", u32FrameSendOffset, u16DataLength, u16ReductionRatio, u16Phase, u16FrameID); } proto_item_append_text(item, ": Frames:%u", n); return offset; } static int dissect_PDIRBeginEndData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { guint16 u16StartOfRedFrameID; guint16 u16EndOfRedFrameID; guint32 u32NumberOfPorts; guint32 u32NumberOfAssignments; guint32 u32NumberOfPhases; guint32 u32RedOrangePeriodBegin; guint32 u32OrangePeriodBegin; guint32 u32GreenPeriodBegin; guint16 u16TXPhaseAssignment; guint16 u16RXPhaseAssignment; guint32 u32SubStart; guint32 u32Tmp; guint32 u32Tmp2; guint32 u32TxRedOrangePeriodBegin[0x11] = {0}; guint32 u32TxOrangePeriodBegin [0x11] = {0}; guint32 u32TxGreenPeriodBegin [0x11] = {0}; guint32 u32RxRedOrangePeriodBegin[0x11] = {0}; guint32 u32RxOrangePeriodBegin [0x11] = {0}; guint32 u32RxGreenPeriodBegin [0x11] = {0}; guint32 u32PortIndex; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_start_of_red_frame_id, &u16StartOfRedFrameID); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_end_of_red_frame_id, &u16EndOfRedFrameID); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_ports, &u32NumberOfPorts); u32Tmp2 = u32NumberOfPorts; while (u32Tmp2--) { proto_item *ir_begin_end_port_sub_item; proto_tree *ir_begin_end_port_tree; /* new subtree for each Port */ ir_begin_end_port_sub_item = proto_tree_add_item(tree, hf_pn_io_ir_begin_end_port, tvb, offset, 0, ENC_NA); ir_begin_end_port_tree = proto_item_add_subtree(ir_begin_end_port_sub_item, ett_pn_io_ir_begin_end_port); u32SubStart = offset; offset = dissect_dcerpc_uint32(tvb, offset, pinfo, ir_begin_end_port_tree, drep, hf_pn_io_number_of_assignments, &u32NumberOfAssignments); u32Tmp = u32NumberOfAssignments; u32PortIndex = 0; if (u32Tmp <= 0x10) { while (u32Tmp--) { /* TXBeginEndAssignment */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, ir_begin_end_port_tree, drep, hf_pn_io_red_orange_period_begin_tx, &u32RedOrangePeriodBegin); u32TxRedOrangePeriodBegin[u32PortIndex] = u32RedOrangePeriodBegin; offset = dissect_dcerpc_uint32(tvb, offset, pinfo, ir_begin_end_port_tree, drep, hf_pn_io_orange_period_begin_tx, &u32OrangePeriodBegin); u32TxOrangePeriodBegin[u32PortIndex]= u32OrangePeriodBegin; offset = dissect_dcerpc_uint32(tvb, offset, pinfo, ir_begin_end_port_tree, drep, hf_pn_io_green_period_begin_tx, &u32GreenPeriodBegin); u32TxGreenPeriodBegin[u32PortIndex] = u32GreenPeriodBegin; /* RXBeginEndAssignment */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, ir_begin_end_port_tree, drep, hf_pn_io_red_orange_period_begin_rx, &u32RedOrangePeriodBegin); u32RxRedOrangePeriodBegin[u32PortIndex] = u32RedOrangePeriodBegin; offset = dissect_dcerpc_uint32(tvb, offset, pinfo, ir_begin_end_port_tree, drep, hf_pn_io_orange_period_begin_rx, &u32OrangePeriodBegin); u32RxOrangePeriodBegin[u32PortIndex]= u32OrangePeriodBegin; offset = dissect_dcerpc_uint32(tvb, offset, pinfo, ir_begin_end_port_tree, drep, hf_pn_io_green_period_begin_rx, &u32GreenPeriodBegin); u32RxGreenPeriodBegin[u32PortIndex] = u32GreenPeriodBegin; u32PortIndex++; } } offset = dissect_dcerpc_uint32(tvb, offset, pinfo, ir_begin_end_port_tree, drep, hf_pn_io_number_of_phases, &u32NumberOfPhases); u32Tmp = u32NumberOfPhases; if (u32Tmp <= 0x10) { while (u32Tmp--) { proto_item *ir_begin_tx_phase_sub_item; proto_tree *ir_begin_tx_phase_tree; /* new subtree for TXPhaseAssignment */ ir_begin_tx_phase_sub_item = proto_tree_add_item(ir_begin_end_port_tree, hf_pn_ir_tx_phase_assignment, tvb, offset, 0, ENC_NA); ir_begin_tx_phase_tree = proto_item_add_subtree(ir_begin_tx_phase_sub_item, ett_pn_io_ir_tx_phase); /* bit 0..3 */ dissect_dcerpc_uint16(tvb, offset, pinfo, ir_begin_tx_phase_tree, drep, hf_pn_io_tx_phase_assignment_begin_value, &u16TXPhaseAssignment); /* bit 4..7 */ dissect_dcerpc_uint16(tvb, offset, pinfo, ir_begin_tx_phase_tree, drep, hf_pn_io_tx_phase_assignment_orange_begin, &u16TXPhaseAssignment); /* bit 8..11 */ dissect_dcerpc_uint16(tvb, offset, pinfo, ir_begin_tx_phase_tree, drep, hf_pn_io_tx_phase_assignment_end_reserved, &u16TXPhaseAssignment); /* bit 12..15 */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ir_begin_tx_phase_tree, drep, hf_pn_io_tx_phase_assignment_reserved, &u16TXPhaseAssignment); proto_item_append_text(ir_begin_tx_phase_sub_item, ": 0x%x, RedOrangePeriodBegin: %d, OrangePeriodBegin: %d, GreenPeriodBegin: %d", u16TXPhaseAssignment, u32TxRedOrangePeriodBegin[u16TXPhaseAssignment & 0x0F], u32TxOrangePeriodBegin[(u16TXPhaseAssignment & 0x0F0) >> 4], u32TxGreenPeriodBegin[(u16TXPhaseAssignment & 0x0F00)>> 8]); /* new subtree for RXPhaseAssignment */ ir_begin_tx_phase_sub_item = proto_tree_add_item(ir_begin_end_port_tree, hf_pn_ir_rx_phase_assignment, tvb, offset, 0, ENC_NA); ir_begin_tx_phase_tree = proto_item_add_subtree(ir_begin_tx_phase_sub_item, ett_pn_io_ir_rx_phase); /* bit 0..3 */ dissect_dcerpc_uint16(tvb, offset, pinfo, ir_begin_tx_phase_tree, drep, hf_pn_io_tx_phase_assignment_begin_value, &u16RXPhaseAssignment); /* bit 4..7 */ dissect_dcerpc_uint16(tvb, offset, pinfo, ir_begin_tx_phase_tree, drep, hf_pn_io_tx_phase_assignment_orange_begin, &u16RXPhaseAssignment); /* bit 8..11 */ dissect_dcerpc_uint16(tvb, offset, pinfo, ir_begin_tx_phase_tree, drep, hf_pn_io_tx_phase_assignment_end_reserved, &u16RXPhaseAssignment); /* bit 12..15 */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ir_begin_tx_phase_tree, drep, hf_pn_io_tx_phase_assignment_reserved, &u16RXPhaseAssignment); proto_item_append_text(ir_begin_tx_phase_sub_item, ": 0x%x, RedOrangePeriodBegin: %d, OrangePeriodBegin: %d, GreenPeriodBegin: %d", u16RXPhaseAssignment, u32RxRedOrangePeriodBegin[u16RXPhaseAssignment & 0x0F], u32RxOrangePeriodBegin[(u16RXPhaseAssignment & 0x0F0) >> 4], u32RxGreenPeriodBegin[(u16RXPhaseAssignment & 0x0F00)>> 8]); } } proto_item_append_text(ir_begin_end_port_sub_item, ": Assignments:%u, Phases:%u", u32NumberOfAssignments, u32NumberOfPhases); proto_item_set_len(ir_begin_end_port_sub_item, offset - u32SubStart); } proto_item_append_text(item, ": StartOfRedFrameID: 0x%x, EndOfRedFrameID: 0x%x, Ports: %u", u16StartOfRedFrameID, u16EndOfRedFrameID, u32NumberOfPorts); return offset+u16BodyLength; } /* dissect the DiagnosisData block */ static int dissect_DiagnosisData_block(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, guint8 *drep _U_, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 body_length) { guint32 u32Api; guint16 u16SlotNr; guint16 u16SubslotNr; guint16 u16ChannelNumber; guint16 u16UserStructureIdentifier; proto_item *sub_item; if (u8BlockVersionHigh != 1 || (u8BlockVersionLow != 0 && u8BlockVersionLow != 1)) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } if (u8BlockVersionLow == 1) { /* API */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_api, &u32Api); body_length-=4; } /* SlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_slot_nr, &u16SlotNr); /* Subslotnumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); /* ChannelNumber got new ranges: 0..0x7FFF the source is a channel as specified by the manufacturer */ /* fetch u16ChannelNumber */ u16ChannelNumber = ((drep[0] & DREP_LITTLE_ENDIAN) ? tvb_get_letohs(tvb, offset) : tvb_get_ntohs(tvb, offset)); if (tree) { sub_item = proto_tree_add_item(tree,hf_pn_io_channel_number, tvb, offset, 2, DREP_ENC_INTEGER(drep)); if (u16ChannelNumber < 0x8000){ /* 0..0x7FFF the source is a channel as specified by the manufacturer */ proto_item_append_text(sub_item, " channel number of the diagnosis source"); } else if (u16ChannelNumber == 0x8000) /* 0x8000 the whole submodule is the source, */ proto_item_append_text(sub_item, " (whole) Submodule"); else proto_item_append_text(sub_item, " reserved"); } offset = offset +2; /* Advance behind ChannelNumber */ /* ChannelProperties */ offset = dissect_ChannelProperties(tvb, offset, pinfo, tree, item, drep); body_length-=8; /* UserStructureIdentifier */ u16UserStructureIdentifier = ((drep[0] & DREP_LITTLE_ENDIAN) ? tvb_get_letohs(tvb, offset) : tvb_get_ntohs(tvb, offset)); if (u16UserStructureIdentifier > 0x7FFF){ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_user_structure_identifier, &u16UserStructureIdentifier); } else { /* range 0x0 to 0x7fff is manufacturer specific */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_user_structure_identifier_manf, &u16UserStructureIdentifier); } proto_item_append_text(item, ", USI:0x%x", u16UserStructureIdentifier); body_length-=2; /* the rest of the block contains optional: [MaintenanceItem] and/or [AlarmItem] */ while (body_length) { offset = dissect_AlarmUserStructure(tvb, offset, pinfo, tree, item, drep, &body_length, u16UserStructureIdentifier); } return offset; } static int dissect_ARProperties(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, guint8 *drep _U_) { proto_item *sub_item; proto_tree *sub_tree; guint32 u32ARProperties; guint8 startupMode; sub_item = proto_tree_add_item(tree, hf_pn_io_ar_properties, tvb, offset, 4, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_ar_properties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_ar_properties_pull_module_alarm_allowed, &u32ARProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_arproperties_StartupMode, &u32ARProperties); startupMode = (guint8)((u32ARProperties >> 30) & 0x01); /* Advanced startup mode */ if (startupMode) { dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, your_sha256_hashtartupmode, &u32ARProperties); } /* Legacy startup mode */ else { dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, your_sha256_hashrtupmode, &u32ARProperties); } dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_ar_properties_reserved, &u32ARProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_ar_properties_achnowledge_companion_ar, &u32ARProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_ar_properties_companion_ar, &u32ARProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_ar_properties_device_access, &u32ARProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_ar_properties_reserved_1, &u32ARProperties); /* removed within 2.3 dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_ar_properties_data_rate, &u32ARProperties); */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_ar_properties_parametrization_server, &u32ARProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_ar_properties_supervisor_takeover_allowed, &u32ARProperties); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_ar_properties_state, &u32ARProperties); return offset; } /* dissect the IOCRProperties */ static int dissect_IOCRProperties(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep) { proto_item *sub_item; proto_tree *sub_tree; guint32 u32IOCRProperties; sub_item = proto_tree_add_item(tree, hf_pn_io_iocr_properties, tvb, offset, 4, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_iocr_properties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_iocr_properties_full_subframe_structure, &u32IOCRProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_iocr_properties_distributed_subframe_watchdog, &u32IOCRProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_iocr_properties_fast_forwarding_mac_adr, &u32IOCRProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_iocr_properties_reserved_3, &u32IOCRProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_iocr_properties_reserved_2, &u32IOCRProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_iocr_properties_media_redundancy, &u32IOCRProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_iocr_properties_reserved_1, &u32IOCRProperties); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_iocr_properties_rtclass, &u32IOCRProperties); return offset; } /* dissect the ARData block */ static int dissect_ARData_block(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, guint8 *drep _U_, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BlockLength) { guint16 u16NumberOfARs; guint16 u16NumberofEntries; e_guid_t aruuid; e_guid_t uuid; guint16 u16ARType; char *pStationName; guint16 u16NameLength; guint16 u16NumberOfIOCRs; guint16 u16IOCRType; guint16 u16FrameID; guint16 u16CycleCounter; guint8 u8DataStatus; guint8 u8TransferStatus; proto_item *ds_item; proto_tree *ds_tree; guint16 u16UDPRTPort; guint16 u16AlarmCRType; guint16 u16LocalAlarmReference; guint16 u16RemoteAlarmReference; guint16 u16NumberOfAPIs; guint32 u32Api; proto_item *iocr_item; proto_tree *iocr_tree; proto_item *ar_item; proto_tree *ar_tree; guint32 u32IOCRStart; gint32 i32EndOffset; guint32 u32ARDataStart; /* added BlockversionLow == 1 */ if (u8BlockVersionHigh != 1 || u8BlockVersionLow > 1) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } i32EndOffset = offset + u16BlockLength; offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_ars, &u16NumberOfARs); /* BlockversionLow: 0 */ if (u8BlockVersionLow == 0) { while (u16NumberOfARs--) { ar_item = proto_tree_add_item(tree, hf_pn_io_ar_data, tvb, offset, 0, ENC_NA); ar_tree = proto_item_add_subtree(ar_item, ett_pn_io_ar_data); u32ARDataStart = offset; offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_ar_uuid, &aruuid); proto_item_append_text(ar_item, "ARUUID:%s", guid_to_str(wmem_packet_scope(), (const e_guid_t*) &aruuid)); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_ar_type, &u16ARType); offset = dissect_ARProperties(tvb, offset, pinfo, ar_tree, item, drep); offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_cminitiator_objectuuid, &uuid); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_station_name_length, &u16NameLength); pStationName = (char *)wmem_alloc(wmem_packet_scope(), u16NameLength+1); tvb_memcpy(tvb, (guint8 *) pStationName, offset, u16NameLength); pStationName[u16NameLength] = '\0'; proto_tree_add_string (ar_tree, hf_pn_io_cminitiator_station_name, tvb, offset, u16NameLength, pStationName); offset += u16NameLength; offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_number_of_iocrs, &u16NumberOfIOCRs); while (u16NumberOfIOCRs--) { iocr_item = proto_tree_add_item(ar_tree, hf_pn_io_iocr_tree, tvb, offset, 0, ENC_NA); iocr_tree = proto_item_add_subtree(iocr_item, ett_pn_io_iocr); u32IOCRStart = offset; offset = dissect_dcerpc_uint16(tvb, offset, pinfo, iocr_tree, drep, hf_pn_io_iocr_type, &u16IOCRType); offset = dissect_IOCRProperties(tvb, offset, pinfo, iocr_tree, drep); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, iocr_tree, drep, hf_pn_io_frame_id, &u16FrameID); proto_item_append_text(iocr_item, ": FrameID:0x%x", u16FrameID); /* add cycle counter */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, iocr_tree, drep, hf_pn_io_cycle_counter, &u16CycleCounter); u8DataStatus = tvb_get_guint8(tvb, offset); u8TransferStatus = tvb_get_guint8(tvb, offset+1); /* add data status subtree */ ds_item = proto_tree_add_uint_format(iocr_tree, hf_pn_io_data_status, tvb, offset, 1, u8DataStatus, "DataStatus: 0x%02x (Frame: %s and %s, Provider: %s and %s)", u8DataStatus, (u8DataStatus & 0x04) ? "Valid" : "Invalid", (u8DataStatus & 0x01) ? "Primary" : "Backup", (u8DataStatus & 0x20) ? "Ok" : "Problem", (u8DataStatus & 0x10) ? "Run" : "Stop"); ds_tree = proto_item_add_subtree(ds_item, ett_pn_io_data_status); proto_tree_add_uint(ds_tree, hf_pn_io_data_status_res67, tvb, offset, 1, u8DataStatus); proto_tree_add_uint(ds_tree, hf_pn_io_data_status_ok, tvb, offset, 1, u8DataStatus); proto_tree_add_uint(ds_tree, hf_pn_io_data_status_operate, tvb, offset, 1, u8DataStatus); proto_tree_add_uint(ds_tree, hf_pn_io_data_status_res3, tvb, offset, 1, u8DataStatus); proto_tree_add_uint(ds_tree, hf_pn_io_data_status_valid, tvb, offset, 1, u8DataStatus); proto_tree_add_uint(ds_tree, hf_pn_io_data_status_res1, tvb, offset, 1, u8DataStatus); proto_tree_add_uint(ds_tree, hf_pn_io_data_status_primary, tvb, offset, 1, u8DataStatus); offset++; /* add transfer status */ if (u8TransferStatus) { proto_tree_add_uint_format(iocr_tree, hf_pn_io_transfer_status, tvb, offset, 1, u8TransferStatus, "TransferStatus: 0x%02x (ignore this frame)", u8TransferStatus); } else { proto_tree_add_uint_format(iocr_tree, hf_pn_io_transfer_status, tvb, offset, 1, u8TransferStatus, "TransferStatus: 0x%02x (OK)", u8TransferStatus); } offset++; offset = dissect_dcerpc_uint16(tvb, offset, pinfo, iocr_tree, drep, hf_pn_io_cminitiator_udprtport, &u16UDPRTPort); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, iocr_tree, drep, hf_pn_io_cmresponder_udprtport, &u16UDPRTPort); proto_item_set_len(iocr_item, offset - u32IOCRStart); } /* AlarmCRType */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_alarmcr_type, &u16AlarmCRType); /* LocalAlarmReference */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_localalarmref, &u16LocalAlarmReference); /* RemoteAlarmReference */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_remotealarmref, &u16RemoteAlarmReference); /* ParameterServerObjectUUID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_parameter_server_objectuuid, &uuid); /* StationNameLength */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_station_name_length, &u16NameLength); /* ParameterServerStationName */ pStationName = (char *)wmem_alloc(wmem_packet_scope(), u16NameLength+1); tvb_memcpy(tvb, (guint8 *) pStationName, offset, u16NameLength); pStationName[u16NameLength] = '\0'; proto_tree_add_string (ar_tree, hf_pn_io_parameter_server_station_name, tvb, offset, u16NameLength, pStationName); offset += u16NameLength; /* NumberOfAPIs */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_number_of_apis, &u16NumberOfAPIs); /* API */ if (u16NumberOfAPIs > 0) { offset = dissect_dcerpc_uint32(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_api, &u32Api); } proto_item_set_len(ar_item, offset - u32ARDataStart); } } else { /* BlockversionLow == 1 */ while (u16NumberOfARs--) { ar_item = proto_tree_add_item(tree, hf_pn_io_ar_data, tvb, offset, 0, ENC_NA); ar_tree = proto_item_add_subtree(ar_item, ett_pn_io_ar_data); u32ARDataStart = offset; /*ARUUID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_ar_uuid, &aruuid); proto_item_append_text(ar_item, "ARUUID:%s", guid_to_str(wmem_packet_scope(), (const e_guid_t*) &aruuid)); /* CMInitiatorObjectUUID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_cminitiator_objectuuid, &uuid); /* ParameterServerObjectUUID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_parameter_server_objectuuid, &uuid); /* ARProperties*/ offset = dissect_ARProperties(tvb, offset, pinfo, ar_tree, item, drep); /* ARType*/ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_ar_type, &u16ARType); /* AlarmCRType */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_alarmcr_type, &u16AlarmCRType); /* LocalAlarmReference */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_localalarmref, &u16LocalAlarmReference); /* RemoteAlarmReference */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_remotealarmref, &u16RemoteAlarmReference); /* InitiatorUDPRTPort*/ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_cminitiator_udprtport, &u16UDPRTPort); /* ResponderUDPRTPort*/ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_cmresponder_udprtport, &u16UDPRTPort); /* CMInitiatorStationName*/ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_station_name_length, &u16NameLength); pStationName = (char *)wmem_alloc(wmem_packet_scope(), u16NameLength+1); tvb_memcpy(tvb, (guint8 *) pStationName, offset, u16NameLength); pStationName[u16NameLength] = '\0'; proto_tree_add_string (ar_tree, hf_pn_io_cminitiator_station_name, tvb, offset, u16NameLength, pStationName); offset += u16NameLength; /** align padding! **/ offset = dissect_pn_align4(tvb, offset, pinfo, ar_tree); /* StationNameLength */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_station_name_length, &u16NameLength); if (u16NameLength != 0) { /* ParameterServerStationName */ pStationName = (char *)wmem_alloc(wmem_packet_scope(), u16NameLength+1); tvb_memcpy(tvb, (guint8 *) pStationName, offset, u16NameLength); pStationName[u16NameLength] = '\0'; proto_tree_add_string (ar_tree, hf_pn_io_parameter_server_station_name, tvb, offset, u16NameLength, pStationName); offset += u16NameLength; } else { /* display no name present */ proto_tree_add_string (ar_tree, hf_pn_io_parameter_server_station_name, tvb, offset, u16NameLength, " <no ParameterServerStationName present>"); } /** align padding! **/ offset = dissect_pn_align4(tvb, offset, pinfo, ar_tree); /* NumberOfIOCRs*/ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_number_of_iocrs, &u16NumberOfIOCRs); /* align to next 32 bit */ offset = dissect_pn_padding(tvb, offset, pinfo, ar_tree, 2); while (u16NumberOfIOCRs--) { iocr_item = proto_tree_add_item(ar_tree, hf_pn_io_iocr_tree, tvb, offset, 0, ENC_NA); iocr_tree = proto_item_add_subtree(iocr_item, ett_pn_io_iocr); u32IOCRStart = offset; /* IOCRProperties*/ offset = dissect_IOCRProperties(tvb, offset, pinfo, iocr_tree, drep); /* IOCRType*/ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, iocr_tree, drep, hf_pn_io_iocr_type, &u16IOCRType); /* FrameID*/ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, iocr_tree, drep, hf_pn_io_frame_id, &u16FrameID); proto_item_append_text(iocr_item, ": FrameID:0x%x", u16FrameID); /* add cycle counter */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, iocr_tree, drep, hf_pn_io_cycle_counter, &u16CycleCounter); u8DataStatus = tvb_get_guint8(tvb, offset); u8TransferStatus = tvb_get_guint8(tvb, offset+1); /* add data status subtree */ ds_item = proto_tree_add_uint_format(iocr_tree, hf_pn_io_data_status, tvb, offset, 1, u8DataStatus, "DataStatus: 0x%02x (Frame: %s and %s, Provider: %s and %s)", u8DataStatus, (u8DataStatus & 0x04) ? "Valid" : "Invalid", (u8DataStatus & 0x01) ? "Primary" : "Backup", (u8DataStatus & 0x20) ? "Ok" : "Problem", (u8DataStatus & 0x10) ? "Run" : "Stop"); ds_tree = proto_item_add_subtree(ds_item, ett_pn_io_data_status); proto_tree_add_uint(ds_tree, hf_pn_io_data_status_res67, tvb, offset, 1, u8DataStatus); proto_tree_add_uint(ds_tree, hf_pn_io_data_status_ok, tvb, offset, 1, u8DataStatus); proto_tree_add_uint(ds_tree, hf_pn_io_data_status_operate, tvb, offset, 1, u8DataStatus); proto_tree_add_uint(ds_tree, hf_pn_io_data_status_res3, tvb, offset, 1, u8DataStatus); proto_tree_add_uint(ds_tree, hf_pn_io_data_status_valid, tvb, offset, 1, u8DataStatus); proto_tree_add_uint(ds_tree, hf_pn_io_data_status_res1, tvb, offset, 1, u8DataStatus); proto_tree_add_uint(ds_tree, hf_pn_io_data_status_primary, tvb, offset, 1, u8DataStatus); offset++; /* add transfer status */ if (u8TransferStatus) { proto_tree_add_uint_format(iocr_tree, hf_pn_io_transfer_status, tvb, offset, 1, u8TransferStatus, "TransferStatus: 0x%02x (ignore this frame)", u8TransferStatus); } else { proto_tree_add_uint_format(iocr_tree, hf_pn_io_transfer_status, tvb, offset, 1, u8TransferStatus, "TransferStatus: 0x%02x (OK)", u8TransferStatus); } offset++; proto_item_set_len(iocr_item, offset - u32IOCRStart); } /* NumberOfAPIs */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_number_of_apis, &u16NumberOfAPIs); /* align to next 32 bit */ offset = dissect_pn_padding(tvb, offset, pinfo, ar_tree, 2); /* API */ if (u16NumberOfAPIs > 0) { offset = dissect_dcerpc_uint32(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_api, &u32Api); } /* get the number of subblocks an dissect them */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, ar_tree, drep, hf_pn_io_number_of_ARDATAInfo, &u16NumberofEntries); offset = dissect_pn_padding(tvb, offset, pinfo, ar_tree, 2); while ((offset < i32EndOffset) && (u16NumberofEntries > 0)) { offset = dissect_a_block(tvb, offset, pinfo, ar_tree, drep); u16NumberofEntries--; } proto_item_set_len(ar_item, offset - u32ARDataStart); } } return offset; } /* dissect the APIData block */ static int dissect_APIData_block(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, guint8 *drep _U_, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16NumberOfAPIs; guint32 u32Api; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* NumberOfAPIs */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_apis, &u16NumberOfAPIs); while (u16NumberOfAPIs--) { /* API */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_api, &u32Api); } return offset; } /* dissect the SLRData block */ static int dissect_SRLData_block(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, guint8 *drep _U_, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 RedundancyInfo; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* bit 0 ..1 EndPoint1 and EndPoint2*/ dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_RedundancyInfo, &RedundancyInfo); /* bit 2 .. 15 reserved */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_RedundancyInfo_reserved, &RedundancyInfo); offset = dissect_pn_padding(tvb, offset, pinfo, tree, 2); return offset; } /* dissect the LogData block */ static int dissect_LogData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint64 u64ActualLocaltimeStamp; guint16 u16NumberOfLogEntries; guint64 u64LocaltimeStamp; e_guid_t aruuid; guint32 u32EntryDetail; dcerpc_info di; /* fake dcerpc_info struct */ dcerpc_call_value call_data; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } di.conformant_run = 0; /* we need di->call_data->flags.NDR64 == 0 */ call_data.flags = 0; di.call_data = &call_data; di.dcerpc_procedure_name = ""; /* ActualLocalTimeStamp */ offset = dissect_dcerpc_uint64(tvb, offset, pinfo, tree, &di, drep, hf_pn_io_actual_local_time_stamp, &u64ActualLocaltimeStamp); /* NumberOfLogEntries */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_log_entries, &u16NumberOfLogEntries); while (u16NumberOfLogEntries--) { /* LocalTimeStamp */ offset = dissect_dcerpc_uint64(tvb, offset, pinfo, tree, &di, drep, hf_pn_io_local_time_stamp, &u64LocaltimeStamp); /* ARUUID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_ar_uuid, &aruuid); /* PNIOStatus */ offset = dissect_PNIO_status(tvb, offset, pinfo, tree, drep); /* EntryDetail */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_entry_detail, &u32EntryDetail); } return offset; } /* dissect the FS Hello block */ static int dissect_FSHello_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint32 u32FSHelloMode; guint32 u32FSHelloInterval; guint32 u32FSHelloRetry; guint32 u32FSHelloDelay; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* FSHelloMode */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_fs_hello_mode, &u32FSHelloMode); /* FSHelloInterval */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_fs_hello_interval, &u32FSHelloInterval); /* FSHelloRetry */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_fs_hello_retry, &u32FSHelloRetry); /* FSHelloDelay */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_fs_hello_delay, &u32FSHelloDelay); proto_item_append_text(item, ": Mode:%s, Interval:%ums, Retry:%u, Delay:%ums", val_to_str(u32FSHelloMode, pn_io_fs_hello_mode_vals, "0x%x"), u32FSHelloInterval, u32FSHelloRetry, u32FSHelloDelay); return offset; } /* dissect the FS Parameter block */ static int dissect_FSParameter_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint32 u32FSParameterMode; e_guid_t FSParameterUUID; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* FSParameterMode */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_fs_parameter_mode, &u32FSParameterMode); /* FSParameterUUID */ offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_fs_parameter_uuid, &FSParameterUUID); proto_item_append_text(item, ": Mode:%s", val_to_str(u32FSParameterMode, pn_io_fs_parameter_mode_vals, "0x%x")); return offset; } /* dissect the FSUDataAdjust block */ static int dissect_PDInterfaceFSUDataAdjust_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { tvbuff_t *new_tvb; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* Padding */ offset = dissect_pn_padding(tvb, offset, pinfo, tree, 2); u16BodyLength -= 2; /* sub blocks */ new_tvb = tvb_new_subset_length(tvb, offset, u16BodyLength); dissect_blocks(new_tvb, 0, pinfo, tree, drep); offset += u16BodyLength; return offset; } /* dissect the ARFSUDataAdjust block */ static int dissect_ARFSUDataAdjust_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { tvbuff_t *new_tvb; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* Padding */ offset = dissect_pn_padding(tvb, offset, pinfo, tree, 2); u16BodyLength -= 2; /* sub blocks */ new_tvb = tvb_new_subset_length(tvb, offset, u16BodyLength); dissect_blocks(new_tvb, 0, pinfo, tree, drep); offset += u16BodyLength; return offset; } static const char * decode_ARType_spezial(guint16 ARType, guint16 ARAccess) { if (ARType == 0x0001) return ("IO Controller AR"); else if (ARType == 0x0003) return("IO Controller AR"); else if (ARType == 0x0010) return("IO Controller AR (RT_CLASS_3)"); else if (ARType == 0x0020) return("IO Controller AR (sysred/CiR)"); else if (ARType == 0x0006) { if (ARAccess) /*TRUE */ return("DeviceAccess AR"); else return("IO Supervisor AR"); } else return("reserved"); } /* dissect the ARBlockReq */ static int dissect_ARBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, pnio_ar_t ** ar) { guint16 u16ARType; guint32 u32ARProperties; e_guid_t aruuid; e_guid_t uuid; guint16 u16SessionKey; guint8 mac[6]; guint16 u16TimeoutFactor; guint16 u16UDPRTPort; guint16 u16NameLength; char *pStationName; pnio_ar_t *par; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } u32ARProperties = ((drep[0] & DREP_LITTLE_ENDIAN) ? tvb_get_letohl (tvb, offset + 2 + 16 +2 + 6 +12) : tvb_get_ntohl (tvb, offset + 2 + 16 +2 + 6 +12)); u16ARType = ((drep[0] & DREP_LITTLE_ENDIAN) ? tvb_get_letohs (tvb, offset) : tvb_get_ntohs (tvb, offset)); if (tree) { proto_tree_add_string_format(tree, hf_pn_io_artype_req, tvb, offset, 2, "ARType", "ARType: (0x%04x) %s ", u16ARType, decode_ARType_spezial(u16ARType, u32ARProperties)); } offset = offset + 2; offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_ar_uuid, &aruuid); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_sessionkey, &u16SessionKey); offset = dissect_pn_mac(tvb, offset, pinfo, tree, hf_pn_io_cminitiator_macadd, mac); offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_cminitiator_objectuuid, &uuid); offset = dissect_ARProperties(tvb, offset, pinfo, tree, item, drep); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_cminitiator_activitytimeoutfactor, &u16TimeoutFactor); /* XXX - special values */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_cminitiator_udprtport, &u16UDPRTPort); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_station_name_length, &u16NameLength); pStationName = (char *)wmem_alloc(wmem_packet_scope(), u16NameLength+1); tvb_memcpy(tvb, (guint8 *) pStationName, offset, u16NameLength); pStationName[u16NameLength] = '\0'; proto_tree_add_string (tree, hf_pn_io_cminitiator_station_name, tvb, offset, u16NameLength, pStationName); offset += u16NameLength; proto_item_append_text(item, ": %s, Session:%u, MAC:%02x:%02x:%02x:%02x:%02x:%02x, Port:0x%x, Station:%s", decode_ARType_spezial(u16ARType, u32ARProperties), u16SessionKey, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], u16UDPRTPort, pStationName); par = pnio_ar_find_by_aruuid(pinfo, &aruuid); if (par == NULL) { par = pnio_ar_new(&aruuid); memcpy( (void *) (&par->controllermac), mac, sizeof(par->controllermac)); par->arType = u16ARType; /* store AR-type for filter generation */ /*strncpy( (char *) (&par->controllername), pStationName, sizeof(par->controllername));*/ } else { /*expert_add_info_format(pinfo, item, PI_UNDECODED, PI_WARN, "ARBlockReq: AR already existing!");*/ } *ar = par; return offset; } /* dissect the ARBlockRes */ static int dissect_ARBlockRes_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, pnio_ar_t **ar) { guint16 u16ARType; e_guid_t uuid; guint16 u16SessionKey; guint8 mac[6]; guint16 u16UDPRTPort; pnio_ar_t *par; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_ar_type, &u16ARType); offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_ar_uuid, &uuid); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_sessionkey, &u16SessionKey); offset = dissect_pn_mac(tvb, offset, pinfo, tree, hf_pn_io_cmresponder_macadd, mac); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_cmresponder_udprtport, &u16UDPRTPort); proto_item_append_text(item, ": %s, Session:%u, MAC:%02x:%02x:%02x:%02x:%02x:%02x, Port:0x%x", val_to_str(u16ARType, pn_io_ar_type, "0x%x"), u16SessionKey, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], u16UDPRTPort); par = pnio_ar_find_by_aruuid(pinfo, &uuid); if (par == NULL) { expert_add_info_format(pinfo, item, &ei_pn_io_ar_info_not_found, "ARBlockRes: AR information not found!"); } else { memcpy( (void *) (&par->devicemac), mac, sizeof(par->controllermac)); } *ar = par; return offset; } /* dissect the IOCRBlockReq */ static int dissect_IOCRBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, pnio_ar_t *ar) { guint16 u16IOCRType; guint16 u16IOCRReference; guint16 u16LT; guint16 u16DataLength; guint16 u16FrameID; guint16 u16SendClockFactor; guint16 u16ReductionRatio; guint16 u16Phase; guint16 u16Sequence; guint32 u32FrameSendOffset; guint16 u16WatchdogFactor; guint16 u16DataHoldFactor; guint16 u16IOCRTagHeader; guint8 mac[6]; guint16 u16NumberOfAPIs; guint32 u32Api; guint16 u16NumberOfIODataObjects; guint16 u16SlotNr; guint16 u16SubslotNr; guint16 u16IODataObjectFrameOffset; guint16 u16NumberOfIOCS; guint16 u16IOCSFrameOffset; proto_item *api_item; proto_tree *api_tree; guint32 u32ApiStart; guint16 u16Tmp; proto_item *sub_item; proto_tree *sub_tree; guint32 u32SubStart; conversation_t *conversation; stationInfo *station_info = NULL; iocsObject *iocs_object; iocsObject *cmp_iocs_object; ioDataObject *io_data_object; ioDataObject *cmp_io_data_object; wmem_list_frame_t *frame; wmem_list_t *iocs_list; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_iocr_type, &u16IOCRType); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_iocr_reference, &u16IOCRReference); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_lt, &u16LT); offset = dissect_IOCRProperties(tvb, offset, pinfo, tree, drep); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_data_length, &u16DataLength); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_frame_id, &u16FrameID); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_send_clock_factor, &u16SendClockFactor); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_reduction_ratio, &u16ReductionRatio); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_phase, &u16Phase); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_sequence, &u16Sequence); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_frame_send_offset, &u32FrameSendOffset); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_watchdog_factor, &u16WatchdogFactor); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_data_hold_factor, &u16DataHoldFactor); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_iocr_tag_header, &u16IOCRTagHeader); offset = dissect_pn_mac(tvb, offset, pinfo, tree, hf_pn_io_iocr_multicast_mac_add, mac); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_apis, &u16NumberOfAPIs); proto_item_append_text(item, ": %s, Ref:0x%x, Len:%u, FrameID:0x%x, Clock:%u, Ratio:%u, Phase:%u APIs:%u", val_to_str(u16IOCRType, pn_io_iocr_type, "0x%x"), u16IOCRReference, u16DataLength, u16FrameID, u16SendClockFactor, u16ReductionRatio, u16Phase, u16NumberOfAPIs); while (u16NumberOfAPIs--) { api_item = proto_tree_add_item(tree, hf_pn_io_api_tree, tvb, offset, 0, ENC_NA); api_tree = proto_item_add_subtree(api_item, ett_pn_io_api); u32ApiStart = offset; /* API */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, api_tree, drep, hf_pn_io_api, &u32Api); /* NumberOfIODataObjects */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, api_tree, drep, hf_pn_io_number_of_io_data_objects, &u16NumberOfIODataObjects); /* Set global Variant for Number of IO Data Objects */ /* Notice: Handle Input & Output seperate!!! */ if (!pinfo->fd->flags.visited) { /* Get current conversation endpoints using MAC addresses */ conversation = find_conversation(pinfo->num, &pinfo->dl_src, &pinfo->dl_dst, PT_NONE, 0, 0, 0); if (conversation == NULL) { /* Create new conversation, if no "Ident OK" frame as been dissected yet! * Need to switch dl_src & dl_dst, as Connect Request is sent by controller and not by device. * All conversations are based on Device MAC as addr1 */ conversation = conversation_new(pinfo->num, &pinfo->dl_dst, &pinfo->dl_src, PT_NONE, 0, 0, 0); } station_info = (stationInfo*)conversation_get_proto_data(conversation, proto_pn_dcp); if (station_info == NULL) { station_info = wmem_new0(wmem_file_scope(), stationInfo); init_pnio_rtc1_station(station_info); conversation_add_proto_data(conversation, proto_pn_dcp, station_info); } else { station_info->ioDataObjectNr = u16NumberOfIODataObjects; } } u16Tmp = u16NumberOfIODataObjects; while (u16Tmp--) { sub_item = proto_tree_add_item(api_tree, hf_pn_io_io_data_object, tvb, offset, 0, ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_io_data_object); u32SubStart = offset; /* SlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_slot_nr, &u16SlotNr); /* Subslotnumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); /* IODataObjectFrameOffset */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_io_data_object_frame_offset, &u16IODataObjectFrameOffset); proto_item_append_text(sub_item, ": Slot: 0x%x, Subslot: 0x%x FrameOffset: %u", u16SlotNr, u16SubslotNr, u16IODataObjectFrameOffset); proto_item_set_len(sub_item, offset - u32SubStart); if (!pinfo->fd->flags.visited && station_info != NULL) { io_data_object = wmem_new0(wmem_file_scope(), ioDataObject); io_data_object->slotNr = u16SlotNr; io_data_object->subSlotNr = u16SubslotNr; io_data_object->frameOffset = u16IODataObjectFrameOffset; /* initial - Will be added later with Write Request */ io_data_object->f_dest_adr = 0; io_data_object->f_par_crc1 = 0; io_data_object->f_src_adr = 0; io_data_object->f_crc_seed = FALSE; io_data_object->f_crc_len = 0; /* Reset as a PNIO Connect Request of a known module appears */ io_data_object->last_sb_cb = 0; io_data_object->lastToggleBit = 0; if (u16IOCRType == PN_INPUT_CR) { iocs_list = station_info->ioobject_data_in; } else { iocs_list = station_info->ioobject_data_out; } for (frame = wmem_list_head(iocs_list); frame != NULL; frame = wmem_list_frame_next(frame)) { cmp_io_data_object = (ioDataObject*)wmem_list_frame_data(frame); if (cmp_io_data_object->slotNr == u16SlotNr && cmp_io_data_object->subSlotNr == u16SubslotNr) { /* Found identical existing object */ break; } } if (frame == NULL) { /* new io_object data incoming */ wmem_list_append(iocs_list, io_data_object); } } } /* NumberOfIOCS */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, api_tree, drep, hf_pn_io_number_of_iocs, &u16NumberOfIOCS); /* Set global Vairant for NumberOfIOCS */ if (!pinfo->fd->flags.visited) { if (station_info != NULL) { station_info->iocsNr = u16NumberOfIOCS; } } u16Tmp = u16NumberOfIOCS; while (u16Tmp--) { sub_item = proto_tree_add_item(api_tree, hf_pn_io_io_cs, tvb, offset, 0, ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_io_cs); u32SubStart = offset; /* SlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_slot_nr, &u16SlotNr); /* Subslotnumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); /* IOCSFrameOffset */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_iocs_frame_offset, &u16IOCSFrameOffset); proto_item_append_text(sub_item, ": Slot: 0x%x, Subslot: 0x%x FrameOffset: %u", u16SlotNr, u16SubslotNr, u16IOCSFrameOffset); proto_item_set_len(sub_item, offset - u32SubStart); if (!pinfo->fd->flags.visited) { if (station_info != NULL) { if (u16IOCRType == PN_INPUT_CR) { iocs_list = station_info->iocs_data_in; } else { iocs_list = station_info->iocs_data_out; } for (frame = wmem_list_head(iocs_list); frame != NULL; frame = wmem_list_frame_next(frame)) { cmp_iocs_object = (iocsObject*)wmem_list_frame_data(frame); if (cmp_iocs_object->slotNr == u16SlotNr && cmp_iocs_object->subSlotNr == u16SubslotNr) { /* Found identical existing object */ break; } } if (frame == NULL) { /* new iocs_object data incoming */ iocs_object = wmem_new(wmem_file_scope(), iocsObject); iocs_object->slotNr = u16SlotNr; iocs_object->subSlotNr = u16SubslotNr; iocs_object->frameOffset = u16IOCSFrameOffset; wmem_list_append(iocs_list, iocs_object); } } } } proto_item_append_text(api_item, ": 0x%x, NumberOfIODataObjects: %u NumberOfIOCS: %u", u32Api, u16NumberOfIODataObjects, u16NumberOfIOCS); proto_item_set_len(api_item, offset - u32ApiStart); } if (ar != NULL) { switch (u16IOCRType) { case(1): /* Input CR */ if (ar->inputframeid != 0 && ar->inputframeid != u16FrameID) { expert_add_info_format(pinfo, item, &ei_pn_io_frame_id, "IOCRBlockReq: input frameID changed from %u to %u!", ar->inputframeid, u16FrameID); } ar->inputframeid = u16FrameID; break; case(2): /* Output CR */ #if 0 /* will usually contain 0xffff here because the correct framid will be given in the connect.Cnf */ if (ar->outputframeid != 0 && ar->outputframeid != u16FrameID) { expert_add_info_format(pinfo, item, &ei_pn_io_frame_id, "IOCRBlockReq: output frameID changed from %u to %u!", ar->outputframeid, u16FrameID); } ar->outputframeid = u16FrameID; #endif break; default: expert_add_info_format(pinfo, item, &ei_pn_io_iocr_type, "IOCRBlockReq: IOCRType %u undecoded!", u16IOCRType); } } else { expert_add_info_format(pinfo, item, &ei_pn_io_ar_info_not_found, "IOCRBlockReq: no corresponding AR found!"); } return offset; } /* dissect the AlarmCRBlockReq */ static int dissect_AlarmCRBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, pnio_ar_t *ar) { guint16 u16AlarmCRType; guint16 u16LT; guint32 u32AlarmCRProperties; guint16 u16RTATimeoutFactor; guint16 u16RTARetries; guint16 u16LocalAlarmReference; guint16 u16MaxAlarmDataLength; guint16 u16AlarmCRTagHeaderHigh; guint16 u16AlarmCRTagHeaderLow; proto_item *sub_item; proto_tree *sub_tree; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_alarmcr_type, &u16AlarmCRType); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_lt, &u16LT); sub_item = proto_tree_add_item(tree, hf_pn_io_alarmcr_properties, tvb, offset, 4, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_alarmcr_properties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_alarmcr_properties_reserved, &u32AlarmCRProperties); dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_alarmcr_properties_transport, &u32AlarmCRProperties); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_alarmcr_properties_priority, &u32AlarmCRProperties); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_rta_timeoutfactor, &u16RTATimeoutFactor); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_rta_retries, &u16RTARetries); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_localalarmref, &u16LocalAlarmReference); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_maxalarmdatalength, &u16MaxAlarmDataLength); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_alarmcr_tagheaderhigh, &u16AlarmCRTagHeaderHigh); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_alarmcr_tagheaderlow, &u16AlarmCRTagHeaderLow); proto_item_append_text(item, ": %s, LT:0x%x, TFactor:%u, Retries:%u, Ref:0x%x, Len:%u Tag:0x%x/0x%x", val_to_str(u16AlarmCRType, pn_io_alarmcr_type, "0x%x"), u16LT, u16RTATimeoutFactor, u16RTARetries, u16LocalAlarmReference, u16MaxAlarmDataLength, u16AlarmCRTagHeaderHigh, u16AlarmCRTagHeaderLow); if (ar != NULL) { if (ar->controlleralarmref != 0xffff && ar->controlleralarmref != u16LocalAlarmReference) { expert_add_info_format(pinfo, item, &ei_pn_io_localalarmref, "AlarmCRBlockReq: local alarm ref changed from %u to %u!", ar->controlleralarmref, u16LocalAlarmReference); } ar->controlleralarmref = u16LocalAlarmReference; } else { expert_add_info_format(pinfo, item, &ei_pn_io_ar_info_not_found, "AlarmCRBlockReq: no corresponding AR found!"); } return offset; } /* dissect the AlarmCRBlockRes */ static int dissect_AlarmCRBlockRes_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, pnio_ar_t *ar) { guint16 u16AlarmCRType; guint16 u16LocalAlarmReference; guint16 u16MaxAlarmDataLength; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_alarmcr_type, &u16AlarmCRType); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_localalarmref, &u16LocalAlarmReference); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_maxalarmdatalength, &u16MaxAlarmDataLength); proto_item_append_text(item, ": %s, Ref:0x%04x, MaxDataLen:%u", val_to_str(u16AlarmCRType, pn_io_alarmcr_type, "0x%x"), u16LocalAlarmReference, u16MaxAlarmDataLength); if (ar != NULL) { if (ar->devicealarmref != 0xffff && ar->devicealarmref != u16LocalAlarmReference) { expert_add_info_format(pinfo, item, &ei_pn_io_localalarmref, "AlarmCRBlockRes: local alarm ref changed from %u to %u!", ar->devicealarmref, u16LocalAlarmReference); } ar->devicealarmref = u16LocalAlarmReference; } else { expert_add_info_format(pinfo, item, &ei_pn_io_ar_info_not_found, "AlarmCRBlockRes: no corresponding AR found!"); } return offset; } /* dissect the ARServerBlock */ static int dissect_ARServerBlock(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { char *pStationName; guint16 u16NameLength, u16padding; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_station_name_length, &u16NameLength); pStationName = (char *)wmem_alloc(wmem_packet_scope(), u16NameLength+1); tvb_memcpy(tvb, (guint8 *) pStationName, offset, u16NameLength); pStationName[u16NameLength] = '\0'; proto_tree_add_string (tree, hf_pn_io_cminitiator_station_name, tvb, offset, u16NameLength, pStationName); offset += u16NameLength; /* Padding to next 4 byte allignment in this block */ u16padding = (u16NameLength-2) & 0x3; if (u16padding >0) offset = dissect_pn_padding(tvb, offset, pinfo, tree, u16padding); return offset; } /* dissect the IOCRBlockRes */ static int dissect_IOCRBlockRes_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, pnio_ar_t *ar) { guint16 u16IOCRType; guint16 u16IOCRReference; guint16 u16FrameID; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_iocr_type, &u16IOCRType); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_iocr_reference, &u16IOCRReference); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_frame_id, &u16FrameID); proto_item_append_text(item, ": %s, Ref:0x%04x, FrameID:0x%04x", val_to_str(u16IOCRType, pn_io_iocr_type, "0x%x"), u16IOCRReference, u16FrameID); if (ar != NULL) { switch (u16IOCRType) { case(1): /* Input CR */ if (ar->inputframeid != 0 && ar->inputframeid != u16FrameID) { expert_add_info_format(pinfo, item, &ei_pn_io_frame_id, "IOCRBlockRes: input frameID changed from %u to %u!", ar->inputframeid, u16FrameID); } ar->inputframeid = u16FrameID; break; case(2): /* Output CR */ if (ar->outputframeid != 0 && ar->outputframeid != u16FrameID) { expert_add_info_format(pinfo, item, &ei_pn_io_frame_id, "IOCRBlockRes: output frameID changed from %u to %u!", ar->outputframeid, u16FrameID); } ar->outputframeid = u16FrameID; break; default: expert_add_info_format(pinfo, item, &ei_pn_io_iocr_type, "IOCRBlockRes: IOCRType %u undecoded!", u16IOCRType); } } else { expert_add_info_format(pinfo, item, &ei_pn_io_ar_info_not_found, "IOCRBlockRes: no corresponding AR found!"); } return offset; } /* dissect the MCRBlockReq */ static int dissect_MCRBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16IOCRReference; guint32 u32AddressResolutionProperties; guint16 u16MCITimeoutFactor; guint16 u16NameLength; char *pStationName; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_iocr_reference, &u16IOCRReference); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_address_resolution_properties, &u32AddressResolutionProperties); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_mci_timeout_factor, &u16MCITimeoutFactor); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_station_name_length, &u16NameLength); pStationName = (char *)wmem_alloc(wmem_packet_scope(), u16NameLength+1); tvb_memcpy(tvb, (guint8 *) pStationName, offset, u16NameLength); pStationName[u16NameLength] = '\0'; proto_tree_add_string (tree, hf_pn_io_provider_station_name, tvb, offset, u16NameLength, pStationName); offset += u16NameLength; proto_item_append_text(item, ", CRRef:%u, Properties:0x%x, TFactor:%u, Station:%s", u16IOCRReference, u32AddressResolutionProperties, u16MCITimeoutFactor, pStationName); return offset; } /* dissect the SubFrameBlock */ static int dissect_SubFrameBlock_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { guint16 u16IOCRReference; guint8 mac[6]; guint32 u32SubFrameData; guint16 u16Tmp; proto_item *sub_item; proto_tree *sub_tree; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_padding(tvb, offset, pinfo, tree, 2); /* IOCRReference */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_iocr_reference, &u16IOCRReference); /* CMInitiatorMACAdd */ offset = dissect_pn_mac(tvb, offset, pinfo, tree, hf_pn_io_cminitiator_macadd, mac); /* SubFrameData n*32 */ u16BodyLength -= 10; u16Tmp = u16BodyLength; do { sub_item = proto_tree_add_item(tree, hf_pn_io_subframe_data, tvb, offset, 4, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_subframe_data); /* 31-16 reserved_2 */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_subframe_data_reserved2, &u32SubFrameData); /* 15- 8 DataLength */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_subframe_data_length, &u32SubFrameData); /* 7 reserved_1 */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_subframe_data_reserved1, &u32SubFrameData); /* 6-0 Position */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_subframe_data_position, &u32SubFrameData); proto_item_append_text(sub_item, ", Length:%u, Pos:%u", (u32SubFrameData & 0x0000FF00) >> 8, u32SubFrameData & 0x0000007F); } while (u16Tmp -= 4); proto_item_append_text(item, ", CRRef:%u, %u*Data", u16IOCRReference, u16BodyLength/4); return offset; } /* dissect the (PD)SubFrameBlock 0x022B */ static int dissect_PDSubFrameBlock_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { guint32 u32SFIOCRProperties; guint32 u32SubFrameData; guint16 u16FrameID; proto_item *sub_item; proto_tree *sub_tree; guint16 u16RemainingLength; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* FrameID */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_frame_id, &u16FrameID); /* SFIOCRProperties */ sub_item = proto_tree_add_item(tree, hf_pn_io_SFIOCRProperties, tvb, offset, PD_SUB_FRAME_BLOCK_FIOCR_PROPERTIES_LENGTH, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_SFIOCRProperties); /* dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_SFIOCRProperties, &u32SFIOCRProperties); */ /* Bit 31: SFIOCRProperties.SFCRC16 */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_SFIOCRProperties_SFCRC16, &u32SFIOCRProperties); /* Bit 30: SFIOCRProperties.DFPRedundantPathLayout */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_SFIOCRProperties_DFPRedundantPathLayout, &u32SFIOCRProperties); /* Bit 29: SFIOCRProperties.DFPRedundantPathLayout */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_SFIOCRProperties_DFPType, &u32SFIOCRProperties); /* Bit 28 - 29: SFIOCRProperties.reserved_2 */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_SFIOCRProperties_reserved_2, &u32SFIOCRProperties); /* Bit 24 - 27: SFIOCRProperties.reserved_1 */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_SFIOCRProperties_reserved_1, &u32SFIOCRProperties); /* Bit 16 - 23: SFIOCRProperties.DFPmode */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_SFIOCRProperties_DFPmode, &u32SFIOCRProperties); /* Bit 8 - 15: SFIOCRProperties.RestartFactorForDistributedWD */ /* 0x00 Mandatory No restart delay necessary 0x01 - 0x09 Optional Less than 1 s restart delay 0x0A - 0x50 Mandatory 1 s to 8 s restart delay 0x51 - 0xFF Optional More than 8 s restart delay */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_RestartFactorForDistributedWD, &u32SFIOCRProperties); /* bit 0..7 SFIOCRProperties.DistributedWatchDogFactor */ offset = /* it is the last one, so advance! */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_DistributedWatchDogFactor, &u32SFIOCRProperties); /* SubframeData */ u16RemainingLength = u16BodyLength - PD_SUB_FRAME_BLOCK_FIOCR_PROPERTIES_LENGTH - PD_SUB_FRAME_BLOCK_FRAME_ID_LENGTH; while (u16RemainingLength >= PD_SUB_FRAME_BLOCK_SUB_FRAME_DATA_LENGTH) { guint8 Position, DataLength; sub_item = proto_tree_add_item(tree, hf_pn_io_subframe_data, tvb, offset, 4, ENC_BIG_ENDIAN); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_subframe_data); /* Bit 0 - 6: SubframeData.Position */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_subframe_data_position, &u32SubFrameData); /* Bit 7: SubframeData.reserved_1 */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_subframe_reserved1, &u32SubFrameData); /* Bit 8 - 15: SubframeData.dataLength */ dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_subframe_data_length, &u32SubFrameData); /* Bit 16 - 31: SubframeData.reserved_2 */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_subframe_reserved2, &u32SubFrameData); Position = (guint8) (u32SubFrameData & 0x7F); /* the lower 6 bits */ DataLength =(guint8) ((u32SubFrameData >>8) & 0x0ff); /* bit 8 to 15 */ proto_item_append_text(sub_item, ", Length:%u (0x%x), Pos:%u", DataLength,DataLength, Position); u16RemainingLength = u16RemainingLength - 4; } return offset; } /* dissect the IRInfoBlock */ static int dissect_IRInfoBlock_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength _U_) { guint16 u16NumberOfIOCR; guint16 u16SubframeOffset; guint32 u32SubframeData; guint16 u16IOCRReference; e_guid_t IRDataUUID; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_padding(tvb, offset, pinfo, tree, 2); offset = dissect_dcerpc_uuid_t(tvb, offset, pinfo, tree, drep, hf_pn_io_IRData_uuid, &IRDataUUID); offset = dissect_pn_padding(tvb, offset, pinfo, tree, 2); /* Numbers of IOCRs */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_iocrs, &u16NumberOfIOCR); while (u16NumberOfIOCR--) { /* IOCRReference */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_iocr_reference, &u16IOCRReference); /* SubframeOffset 16 */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_iocr_SubframeOffset, &u16SubframeOffset); /* SubframeData 32 */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_iocr_SubframeData, &u32SubframeData); } return offset; } /* dissect the SRInfoBlock */ static int dissect_SRInfoBlock_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength _U_) { guint16 u16RedundancyDataHoldFactor; guint32 u32sr_properties; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_RedundancyDataHoldFactor, &u16RedundancyDataHoldFactor); dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_sr_properties, &u32sr_properties); dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_sr_properties_InputValidOnBackupAR, &u32sr_properties); dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_sr_properties_ActivateRedundancyAlarm, &u32sr_properties); dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_sr_properties_Reserved_1, &u32sr_properties); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_sr_properties_Reserved_2, &u32sr_properties); return offset; } /* dissect the PDIRSubframeData block 0x022a */ static int dissect_PDIRSubframeData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16NumberOfSubframeBlocks; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_NumberOfSubframeBlocks, &u16NumberOfSubframeBlocks); while (u16NumberOfSubframeBlocks --) { /* dissect the Subframe Block */ offset = dissect_a_block(tvb, offset, pinfo, /*sub_*/tree, drep); } return offset; } static int dissect_ARVendorBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength _U_) { guint16 APStructureIdentifier; guint32 gu32API; guint32 guDataBytes; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } APStructureIdentifier = ((drep[0] & DREP_LITTLE_ENDIAN) ? tvb_get_letohs(tvb, offset) : tvb_get_ntohs(tvb, offset)); gu32API = ((drep[0] & DREP_LITTLE_ENDIAN) ? tvb_get_letohl(tvb, offset + 2) : tvb_get_ntohl (tvb, offset + 2)); if (tree) { if (gu32API == 0) { if (APStructureIdentifier <0x8000) { proto_tree_add_item(tree, hf_pn_io_arvendor_strucidentifier_if0_low, tvb, offset, 2, DREP_ENC_INTEGER(drep)); } else { if (APStructureIdentifier > 0x8000) { proto_tree_add_item(tree, hf_pn_io_arvendor_strucidentifier_if0_high, tvb, offset, 2, DREP_ENC_INTEGER(drep)); } else /* APStructureIdentifier == 0x8000 */ { proto_tree_add_item(tree, hf_pn_io_arvendor_strucidentifier_if0_is8000, tvb, offset, 2, DREP_ENC_INTEGER(drep)); } } } else { proto_tree_add_item(tree, hf_pn_io_arvendor_strucidentifier_not0, tvb, offset, 2, DREP_ENC_INTEGER(drep)); } /* API */ proto_tree_add_item(tree, hf_pn_io_api, tvb, offset + 2, 4, DREP_ENC_INTEGER(drep)); } offset += 6; if (u16BodyLength < 6 ) return offset; /* there are no user bytes! */ guDataBytes = u16BodyLength - 6; dissect_pn_user_data(tvb, offset, pinfo, tree, guDataBytes, "Data "); return offset; } /* dissect the DataDescription */ static int dissect_DataDescription(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, ioDataObject *tmp_io_data_object) { guint16 u16DataDescription; guint16 u16SubmoduleDataLength; guint8 u8LengthIOCS; guint8 u8LengthIOPS; proto_item *sub_item; proto_tree *sub_tree; guint32 u32SubStart; conversation_t *conversation; stationInfo *station_info = NULL; ioDataObject *io_data_object; wmem_list_frame_t *frame; wmem_list_t *ioobject_list; sub_item = proto_tree_add_item(tree, hf_pn_io_data_description_tree, tvb, offset, 0, ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_data_description); u32SubStart = offset; /* DataDescription */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_data_description, &u16DataDescription); /* SubmoduleDataLength */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_submodule_data_length, &u16SubmoduleDataLength); /* LengthIOCS */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_length_iocs, &u8LengthIOCS); /* LengthIOPS */ offset = dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_length_iops, &u8LengthIOPS); proto_item_append_text(sub_item, ": %s, SubmoduleDataLength: %u, LengthIOCS: %u, u8LengthIOPS: %u", val_to_str(u16DataDescription, pn_io_data_description, "(0x%x)"), u16SubmoduleDataLength, u8LengthIOCS, u8LengthIOPS); proto_item_set_len(sub_item, offset - u32SubStart); /* Save new data for IO Data Objects */ if (!pinfo->fd->flags.visited) { /* Get current conversation endpoints using MAC addresses */ conversation = find_conversation(pinfo->num, &pinfo->dl_src, &pinfo->dl_dst, PT_NONE, 0, 0, 0); if (conversation == NULL) { conversation = conversation_new(pinfo->num, &pinfo->dl_src, &pinfo->dl_dst, PT_NONE, 0, 0, 0); } station_info = (stationInfo*)conversation_get_proto_data(conversation, proto_pn_dcp); if (station_info != NULL) { if (u16DataDescription == PN_INPUT_DATADESCRITPION) { /* INPUT HANDLING */ ioobject_list = station_info->ioobject_data_in; } else { /* OUTPUT HANDLING */ ioobject_list = station_info->ioobject_data_out; } for (frame = wmem_list_head(ioobject_list); frame != NULL; frame = wmem_list_frame_next(frame)) { io_data_object = (ioDataObject*)wmem_list_frame_data(frame); if (io_data_object->slotNr == tmp_io_data_object->slotNr && io_data_object->subSlotNr == tmp_io_data_object->subSlotNr) { /* Write additional data from dissect_ExpectedSubmoduleBlockReq_block() to corresponding io_data_object */ io_data_object->moduleIdentNr = tmp_io_data_object->moduleIdentNr; io_data_object->subModuleIdentNr = tmp_io_data_object->subModuleIdentNr; io_data_object->length = u16SubmoduleDataLength; io_data_object->moduleNameStr = wmem_strdup(wmem_file_scope(), tmp_io_data_object->moduleNameStr); io_data_object->profisafeSupported = tmp_io_data_object->profisafeSupported; io_data_object->discardIOXS = tmp_io_data_object->discardIOXS; io_data_object->amountInGSDML = tmp_io_data_object->amountInGSDML; io_data_object->fParameterIndexNr = tmp_io_data_object->fParameterIndexNr; break; } } } } return offset; } /* dissect the ExpectedSubmoduleBlockReq */ static int dissect_ExpectedSubmoduleBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16NumberOfAPIs; guint32 u32Api; guint16 u16SlotNr; guint32 u32ModuleIdentNumber; guint16 u16ModuleProperties; guint16 u16NumberOfSubmodules; guint16 u16SubslotNr; guint32 u32SubmoduleIdentNumber; guint16 u16SubmoduleProperties; proto_item *api_item; proto_tree *api_tree; guint32 u32ApiStart; proto_item *sub_item; proto_tree *sub_tree; proto_item *submodule_item; proto_tree *submodule_tree; guint32 u32SubStart; /* Variable for the search of gsd file */ const char vendorIdStr[] = "VendorID=\""; const char deviceIdStr[] = "DeviceID=\""; const char moduleStr[] = "ModuleIdentNumber=\""; const char subModuleStr[] = "SubmoduleIdentNumber=\""; const char profisafeStr[] = "PROFIsafeSupported=\"true\""; const char fParameterStr[] = "<F_ParameterRecordDataItem"; const char fParameterIndexStr[] = "Index="; const char moduleNameInfo[] = "<Name"; const char moduleValueInfo[] = "Value=\""; guint16 searchVendorID = 0; guint16 searchDeviceID = 0; gboolean vendorMatch; gboolean deviceMatch; conversation_t *conversation; stationInfo *station_info = NULL; ioDataObject *io_data_object = NULL; /* Used to transfer data to fct. "dissect_DataDescription()" */ /* Variable for the search of GSD-file */ guint32 read_vendor_id; guint32 read_device_id; guint32 read_module_id; guint32 read_submodule_id; gboolean gsdmlFoundFlag; gchar tmp_moduletext[MAX_NAMELENGTH]; gchar *convertStr; /* GSD-file search */ gchar *pch; /* helppointer, to save temp. the found Networkpath of GSD-file */ gchar *puffer; /* used for fgets() during GSD-file search */ gchar *temp; /* used for fgets() during GSD-file search */ gchar *diropen = NULL; /* saves the final networkpath to open for GSD-files */ GDir *dir; FILE *fp = NULL; /* filepointer */ const gchar *filename; /* saves the found GSD-file name */ /* Helppointer initial */ convertStr = (gchar*)wmem_alloc(wmem_packet_scope(), MAX_NAMELENGTH); convertStr[0] = '\0'; pch = (gchar*)wmem_alloc(wmem_packet_scope(), MAX_LINE_LENGTH); pch[0] = '\0'; puffer = (gchar*)wmem_alloc(wmem_packet_scope(), MAX_LINE_LENGTH); puffer[0] = '\0'; temp = (gchar*)wmem_alloc(wmem_packet_scope(), MAX_LINE_LENGTH); temp[0] = '\0'; /* Initial */ io_data_object = wmem_new0(wmem_file_scope(), ioDataObject); io_data_object->profisafeSupported = FALSE; io_data_object->moduleNameStr = wmem_strdup(wmem_file_scope(), "Unknown"); vendorMatch = FALSE; deviceMatch = FALSE; gsdmlFoundFlag = FALSE; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_apis, &u16NumberOfAPIs); proto_item_append_text(item, ": APIs:%u", u16NumberOfAPIs); /* Get current conversation endpoints using MAC addresses */ conversation = find_conversation(pinfo->num, &pinfo->dl_src, &pinfo->dl_dst, PT_NONE, 0, 0, 0); if (conversation == NULL) { conversation = conversation_new(pinfo->num, &pinfo->dl_src, &pinfo->dl_dst, PT_NONE, 0, 0, 0); } station_info = (stationInfo*)conversation_get_proto_data(conversation, proto_pn_dcp); if (station_info != NULL) { station_info->gsdFound = FALSE; station_info->gsdPathLength = FALSE; /* Set searchVendorID and searchDeviceID for GSDfile search */ searchVendorID = station_info->u16Vendor_id; searchDeviceID = station_info->u16Device_id; /* Use the given GSD-file networkpath of the PNIO-Preference */ if(pnio_ps_networkpath[0] != '\0') { /* check the length of the given networkpath (array overflow protection) */ station_info->gsdPathLength = TRUE; if ((dir = g_dir_open(pnio_ps_networkpath, 0, NULL)) != NULL) { /* Find all GSD-files within directory */ while ((filename = g_dir_read_name(dir)) != NULL) { /* ---- complete the path to open a GSD-file ---- */ diropen = wmem_strdup_printf(wmem_packet_scope(), "%s" G_DIR_SEPARATOR_S "%s", pnio_ps_networkpath, filename); /* ---- Open the found GSD-file ---- */ fp = ws_fopen(diropen, "r"); if(fp != NULL) { /* ---- Get VendorID & DeviceID ---- */ while(fgets(puffer, MAX_LINE_LENGTH, fp) != NULL) { /* ----- VendorID ------ */ if((strstr(puffer, vendorIdStr)) != NULL) { memset (convertStr, 0, sizeof(*convertStr)); pch = strstr(puffer, vendorIdStr); if (sscanf(pch, "VendorID=\"%[^\"]", convertStr) == 1) { read_vendor_id = (guint32) strtoul (convertStr, NULL, 0); if(read_vendor_id == searchVendorID) { vendorMatch = TRUE; /* found correct VendorID */ } } } /* ----- DeviceID ------ */ if((strstr(puffer, deviceIdStr)) != NULL) { memset(convertStr, 0, sizeof(*convertStr)); pch = strstr(puffer, deviceIdStr); if (sscanf(pch, "DeviceID=\"%[^\"]", convertStr) == 1) { read_device_id = (guint32)strtoul(convertStr, NULL, 0); if(read_device_id == searchDeviceID) { deviceMatch = TRUE; /* found correct DeviceID */ } } } } fclose(fp); fp = NULL; if(vendorMatch && deviceMatch) { break; /* Found correct GSD-file! -> Break the searchloop */ } else { /* Couldn't find the correct GSD-file to the corresponding device */ vendorMatch = FALSE; deviceMatch = FALSE; gsdmlFoundFlag = FALSE; diropen = ""; /* reset array for next search */ } } } g_dir_close(dir); } /* ---- Found the correct GSD-file -> set Flag and save the completed path ---- */ if(vendorMatch && deviceMatch) { gsdmlFoundFlag = TRUE; station_info->gsdFound = TRUE; station_info->gsdLocation = wmem_strdup(wmem_file_scope(), diropen); } else { /* Copy searchpath to array for a detailed output message in cyclic data dissection */ station_info->gsdLocation = wmem_strdup_printf(wmem_file_scope(), "%s" G_DIR_SEPARATOR_S "*.xml", pnio_ps_networkpath); } } else { /* will be used later on in cyclic RTC1 data dissection for detailed output message */ station_info->gsdPathLength = FALSE; } } while (u16NumberOfAPIs--) { api_item = proto_tree_add_item(tree, hf_pn_io_api_tree, tvb, offset, 0, ENC_NA); api_tree = proto_item_add_subtree(api_item, ett_pn_io_api); u32ApiStart = offset; /* API */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, api_tree, drep, hf_pn_io_api, &u32Api); /* SlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, api_tree, drep, hf_pn_io_slot_nr, &u16SlotNr); /* ModuleIdentNumber */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, api_tree, drep, hf_pn_io_module_ident_number, &u32ModuleIdentNumber); /* ModuleProperties */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, api_tree, drep, hf_pn_io_module_properties, &u16ModuleProperties); /* NumberOfSubmodules */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, api_tree, drep, hf_pn_io_number_of_submodules, &u16NumberOfSubmodules); proto_item_append_text(api_item, ": %u, Slot:0x%x, IdentNumber:0x%x Properties:0x%x Submodules:%u", u32Api, u16SlotNr, u32ModuleIdentNumber, u16ModuleProperties, u16NumberOfSubmodules); proto_item_append_text(item, ", Submodules:%u", u16NumberOfSubmodules); while (u16NumberOfSubmodules--) { sub_item = proto_tree_add_item(api_tree, hf_pn_io_submodule_tree, tvb, offset, 0, ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_submodule); u32SubStart = offset; /* Subslotnumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); /* SubmoduleIdentNumber */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_submodule_ident_number, &u32SubmoduleIdentNumber); /* SubmoduleProperties */ submodule_item = proto_tree_add_item(sub_tree, hf_pn_io_submodule_properties, tvb, offset, 2, ENC_BIG_ENDIAN); submodule_tree = proto_item_add_subtree(submodule_item, ett_pn_io_submodule_properties); dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, hf_pn_io_submodule_properties_reserved, &u16SubmoduleProperties); dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, hf_pn_io_submodule_properties_discard_ioxs, &u16SubmoduleProperties); dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, your_sha256_hashh, &u16SubmoduleProperties); dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, your_sha256_hash, &u16SubmoduleProperties); dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, hf_pn_io_submodule_properties_shared_input, &u16SubmoduleProperties); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, hf_pn_io_submodule_properties_type, &u16SubmoduleProperties); io_data_object->slotNr = u16SlotNr; io_data_object->subSlotNr = u16SubslotNr; io_data_object->moduleIdentNr = u32ModuleIdentNumber; io_data_object->subModuleIdentNr = u32SubmoduleIdentNumber; io_data_object->discardIOXS = u16SubmoduleProperties & 0x0020; /* Search the moduleID and subModuleID, find if PROFIsafe and also search for F-Par. Indexnumber * your_sha256_hash----------------------------- * Speical case: Module has several ModuleIdentNr. in one GSD-file * Also with the given parameters of wireshark, some modules were completely equal. For this * special case a compromise for this problem has been made, to set the module name will * be more generally displayed. * Also this searchloop will find the F-Parameter Indexnumber, so that Wireshark is able to * dissect those F-Parameters correctly, as this index can change between the vendors. */ io_data_object->amountInGSDML = 0; io_data_object->fParameterIndexNr = 0; io_data_object->profisafeSupported = FALSE; if (diropen != NULL) { fp = ws_fopen(diropen, "r"); } if(gsdmlFoundFlag && fp != NULL) { fseek(fp, 0, SEEK_SET); /* Find Indexnumber for fParameter */ while(fgets(temp, MAX_LINE_LENGTH, fp) != NULL) { if((strstr(temp, fParameterStr)) != NULL) { memset (convertStr, 0, sizeof(*convertStr)); pch = strstr(temp, fParameterIndexStr); if (sscanf(pch, "Index=\"%[^\"]", convertStr) == 1) { io_data_object->fParameterIndexNr = (guint32)strtoul(convertStr, NULL, 0); } break; /* found Indexnumber -> break search loop */ } } memset (temp, 0, sizeof(*temp)); fseek(fp, 0, SEEK_SET); /* Set filepointer to the beginning */ while(fgets(temp, MAX_LINE_LENGTH, fp) != NULL) { if((strstr(temp, moduleStr)) != NULL) { /* find the String "ModuleIdentNumber=" */ memset (convertStr, 0, sizeof(*convertStr)); pch = strstr(temp, moduleStr); /* search for "ModuleIdentNumber=\"" within GSD-file */ if (sscanf(pch, "ModuleIdentNumber=\"%[^\"]", convertStr) == 1) { /* Change format of Value string-->numeric string */ read_module_id = (guint32)strtoul(convertStr, NULL, 0); /* Change numeric string --> unsigned long; read_module_id contains the Value of the ModuleIdentNumber */ /* If the found ModuleID matches with the wanted ModuleID, search for the Submodule and break */ if (read_module_id == io_data_object->moduleIdentNr) { ++io_data_object->amountInGSDML; /* Save the amount of same (!) Module- & SubmoduleIdentNr in one GSD-file */ while(fgets(temp, MAX_LINE_LENGTH, fp) != NULL) { if((strstr(temp, moduleNameInfo)) != NULL) { /* find the String "<Name" for the TextID */ long filePosRecord; if (sscanf(temp, "%*s TextId=\"%[^\"]", tmp_moduletext) != 1) /* saves the correct TextId for the next searchloop */ break; filePosRecord = ftell(fp); /* save the current position of the filepointer (Offset) */ /* ftell() may return -1 for error, don't move fp in this case */ if (filePosRecord >= 0) { while (fgets(temp, MAX_LINE_LENGTH, fp) != NULL && io_data_object->amountInGSDML == 1) { /* Find a String with the saved TextID and with a fitting value for it in the same line. This value is the name of the Module! */ if(((strstr(temp, tmp_moduletext)) != NULL) && ((strstr(temp, moduleValueInfo)) != NULL)) { pch = strstr(temp, moduleValueInfo); if (sscanf(pch, "Value=\"%[^\"]", io_data_object->moduleNameStr) == 1) break; /* Found the name of the module */ } } fseek(fp, filePosRecord, SEEK_SET); /* set filepointer to the correct TextID */ } } /* Search for Submoduleidentnumber in GSD-file */ if((strstr(temp, subModuleStr)) != NULL) { memset (convertStr, 0, sizeof(*convertStr)); pch = strstr(temp, subModuleStr); if (sscanf(pch, "SubmoduleIdentNumber=\"%[^\"]", convertStr) == 1) { read_submodule_id = (guint32) strtoul (convertStr, NULL, 0); /* read_submodule_id contains the Value of the SubModuleIdentNumber */ /* Find "PROFIsafeSupported" flag of the module in GSD-file */ if(read_submodule_id == io_data_object->subModuleIdentNr) { if((strstr(temp, profisafeStr)) != NULL) { io_data_object->profisafeSupported = TRUE; /* flag is in the same line as SubmoduleIdentNr */ break; } else { /* flag is not in the same line as Submoduleidentnumber -> search for it */ while(fgets(temp, MAX_LINE_LENGTH, fp) != NULL) { if((strstr(temp, profisafeStr)) != NULL) { io_data_object->profisafeSupported = TRUE; break; /* Found the PROFIsafeSupported flag of the module */ } else if((strstr(temp, ">")) != NULL) { break; } } } } break; /* Found the PROFIsafe Module */ } } } } } } } fclose(fp); fp = NULL; } switch (u16SubmoduleProperties & 0x03) { case(0x00): /* no input and no output data (one Input DataDescription Block follows) */ offset = dissect_DataDescription(tvb, offset, pinfo, sub_tree, drep, io_data_object); break; case(0x01): /* input data (one Input DataDescription Block follows) */ offset = dissect_DataDescription(tvb, offset, pinfo, sub_tree, drep, io_data_object); break; case(0x02): /* output data (one Output DataDescription Block follows) */ offset = dissect_DataDescription(tvb, offset, pinfo, sub_tree, drep, io_data_object); break; case(0x03): /* input and output data (one Input and one Output DataDescription Block follows) */ offset = dissect_DataDescription(tvb, offset, pinfo, sub_tree, drep, io_data_object); offset = dissect_DataDescription(tvb, offset, pinfo, sub_tree, drep, io_data_object); break; } proto_item_append_text(sub_item, ": Subslot:0x%x, Ident:0x%x Properties:0x%x", u16SubslotNr, u32SubmoduleIdentNumber, u16SubmoduleProperties); proto_item_set_len(sub_item, offset - u32SubStart); } proto_item_set_len(api_item, offset - u32ApiStart); } return offset; } /* dissect the ModuleDiffBlock */ static int dissect_ModuleDiffBlock_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16NumberOfAPIs; guint32 u32Api; guint16 u16NumberOfModules; guint16 u16SlotNr; guint32 u32ModuleIdentNumber; guint16 u16ModuleState; guint16 u16NumberOfSubmodules; guint16 u16SubslotNr; guint32 u32SubmoduleIdentNumber; guint16 u16SubmoduleState; proto_item *api_item; proto_tree *api_tree; guint32 u32ApiStart; proto_item *module_item; proto_tree *module_tree; guint32 u32ModuleStart; proto_item *sub_item; proto_tree *sub_tree; proto_item *submodule_item; proto_tree *submodule_tree; guint32 u32SubStart; conversation_t *conversation; stationInfo *station_info; wmem_list_frame_t *frame; moduleDiffInfo *module_diff_info; moduleDiffInfo *cmp_module_diff_info; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* NumberOfAPIs */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_number_of_apis, &u16NumberOfAPIs); proto_item_append_text(item, ": APIs:%u", u16NumberOfAPIs); while (u16NumberOfAPIs--) { api_item = proto_tree_add_item(tree, hf_pn_io_api_tree, tvb, offset, 0, ENC_NA); api_tree = proto_item_add_subtree(api_item, ett_pn_io_api); u32ApiStart = offset; /* API */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, api_tree, drep, hf_pn_io_api, &u32Api); /* NumberOfModules */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, api_tree, drep, hf_pn_io_number_of_modules, &u16NumberOfModules); proto_item_append_text(api_item, ": %u, Modules: %u", u32Api, u16NumberOfModules); proto_item_append_text(item, ", Modules:%u", u16NumberOfModules); while (u16NumberOfModules--) { module_item = proto_tree_add_item(api_tree, hf_pn_io_module_tree, tvb, offset, 0, ENC_NA); module_tree = proto_item_add_subtree(module_item, ett_pn_io_module); u32ModuleStart = offset; /* SlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, module_tree, drep, hf_pn_io_slot_nr, &u16SlotNr); /* ModuleIdentNumber */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, module_tree, drep, hf_pn_io_module_ident_number, &u32ModuleIdentNumber); /* ModuleState */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, module_tree, drep, hf_pn_io_module_state, &u16ModuleState); /* NumberOfSubmodules */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, module_tree, drep, hf_pn_io_number_of_submodules, &u16NumberOfSubmodules); proto_item_append_text(module_item, ": Slot 0x%x, Ident: 0x%x State: %s Submodules: %u", u16SlotNr, u32ModuleIdentNumber, val_to_str(u16ModuleState, pn_io_module_state, "(0x%x)"), u16NumberOfSubmodules); if (!pinfo->fd->flags.visited) { /* Get current conversation endpoints using MAC addresses */ conversation = find_conversation(pinfo->num, &pinfo->dl_src, &pinfo->dl_dst, PT_NONE, 0, 0, 0); if (conversation == NULL) { conversation = conversation_new(pinfo->num, &pinfo->dl_src, &pinfo->dl_dst, PT_NONE, 0, 0, 0); } station_info = (stationInfo*)conversation_get_proto_data(conversation, proto_pn_dcp); if (station_info != NULL) { for (frame = wmem_list_head(station_info->diff_module); frame != NULL; frame = wmem_list_frame_next(frame)) { cmp_module_diff_info = (moduleDiffInfo*)wmem_list_frame_data(frame); if (cmp_module_diff_info->slotNr == u16SlotNr) { /* Found identical existing object */ break; } } if (frame == NULL) { /* new diffModuleInfo data incoming */ module_diff_info = wmem_new(wmem_file_scope(), moduleDiffInfo); module_diff_info->slotNr = u16SlotNr; module_diff_info->modulID = u32ModuleIdentNumber; wmem_list_append(station_info->diff_module, module_diff_info); } } } proto_item_append_text(item, ", Submodules:%u", u16NumberOfSubmodules); while (u16NumberOfSubmodules--) { sub_item = proto_tree_add_item(module_tree, hf_pn_io_submodule_tree, tvb, offset, 0, ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_submodule); u32SubStart = offset; /* Subslotnumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); /* SubmoduleIdentNumber */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_submodule_ident_number, &u32SubmoduleIdentNumber); /* SubmoduleState */ submodule_item = proto_tree_add_item(sub_tree, hf_pn_io_submodule_state, tvb, offset, 2, ENC_BIG_ENDIAN); submodule_tree = proto_item_add_subtree(submodule_item, ett_pn_io_submodule_state); dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, hf_pn_io_submodule_state_format_indicator, &u16SubmoduleState); if (u16SubmoduleState & 0x8000) { dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, hf_pn_io_submodule_state_ident_info, &u16SubmoduleState); dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, hf_pn_io_submodule_state_ar_info, &u16SubmoduleState); dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, hf_pn_io_submodule_state_diag_info, &u16SubmoduleState); dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, hf_pn_io_submodule_state_maintenance_demanded, &u16SubmoduleState); dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, hf_pn_io_submodule_state_maintenance_required, &u16SubmoduleState); dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, hf_pn_io_submodule_state_qualified_info, &u16SubmoduleState); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, hf_pn_io_submodule_state_add_info, &u16SubmoduleState); } else { offset = dissect_dcerpc_uint16(tvb, offset, pinfo, submodule_tree, drep, hf_pn_io_submodule_state_detail, &u16SubmoduleState); } proto_item_append_text(sub_item, ": Subslot 0x%x, IdentNumber: 0x%x, State: 0x%x", u16SubslotNr, u32SubmoduleIdentNumber, u16SubmoduleState); proto_item_set_len(sub_item, offset - u32SubStart); } /* NumberOfSubmodules */ proto_item_set_len(module_item, offset - u32ModuleStart); } proto_item_set_len(api_item, offset - u32ApiStart); } return offset; } /* dissect the IsochronousModeData block */ static int dissect_IsochronousModeData_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item _U_, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow) { guint16 u16SlotNr; guint16 u16SubslotNr; guint16 u16ControllerApplicationCycleFactor; guint16 u16TimeDataCycle; guint32 u32TimeIOInput; guint32 u32TimeIOOutput; guint32 u32TimeIOInputValid; guint32 u32TimeIOOutputValid; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); /* SlotNumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_slot_nr, &u16SlotNr); /* Subslotnumber */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); /* ControllerApplicationCycleFactor */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_controller_appl_cycle_factor, &u16ControllerApplicationCycleFactor); /* TimeDataCycle */ offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_time_data_cycle, &u16TimeDataCycle); /* TimeIOInput (ns) */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_time_io_input, &u32TimeIOInput); /* TimeIOOutput (ns) */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_time_io_output, &u32TimeIOOutput); /* TimeIOInputValid (ns) */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_time_io_input_valid, &u32TimeIOInputValid); /* TimeIOOutputValid (ns) */ offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_time_io_output_valid, &u32TimeIOOutputValid); return offset+1; } /* dissect the MultipleBlockHeader block */ static int dissect_MultipleBlockHeader_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16BodyLength) { guint32 u32Api; guint16 u16SlotNr; guint16 u16SubslotNr; tvbuff_t *new_tvb; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_align4(tvb, offset, pinfo, tree); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_api, &u32Api); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_slot_nr, &u16SlotNr); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); proto_item_append_text(item, ": Api:0x%x Slot:%u Subslot:0x%x", u32Api, u16SlotNr, u16SubslotNr); new_tvb = tvb_new_subset_length(tvb, offset, u16BodyLength-10); offset = dissect_blocks(new_tvb, 0, pinfo, tree, drep); /*offset += u16BodyLength;*/ return offset; } /* dissect Combined Object Container Content block */ static int dissect_COContainerContent_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16Index, guint32 *u32RecDataLen, pnio_ar_t **ar) { guint32 u32Api; guint16 u16SlotNr; guint16 u16SubslotNr; if(u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } offset = dissect_pn_padding(tvb, offset, pinfo, tree, 2); offset = dissect_dcerpc_uint32(tvb, offset, pinfo, tree, drep, hf_pn_io_api, &u32Api); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_slot_nr, &u16SlotNr); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_subslot_nr, &u16SubslotNr); offset = dissect_pn_padding(tvb, offset, pinfo, tree, 2); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, tree, drep, hf_pn_io_index, &u16Index); proto_item_append_text(item, ": Api:0x%x Slot:%u Subslot:0x%x Index:0x%x", u32Api, u16SlotNr, u16SubslotNr, u16Index); if(u16Index != 0x80B0) { offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, u32RecDataLen, ar); } return offset; } static const gchar * indexReservedForProfiles(guint16 u16Index) { /* "reserved for profiles" */ if (u16Index >= 0xb000 && u16Index <= 0xbfff) { return "Reserved for Profiles (subslot specific)"; } if (u16Index >= 0xd000 && u16Index <= 0xdfff) { return "Reserved for Profiles (slot specific)"; } if (u16Index >= 0xec00 && u16Index <= 0xefff) { return "Reserved for Profiles (AR specific)"; } if (u16Index >= 0xf400 && u16Index <= 0xf7ff) { return "Reserved for Profiles (API specific)"; } if (u16Index >= 0xfc00 /* up to 0xffff */) { return "Reserved for Profiles (device specific)"; } return NULL; } /* dissect the RecordDataReadQuery block */ static int dissect_RecordDataReadQuery_block(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, guint8 *drep _U_, guint8 u8BlockVersionHigh, guint8 u8BlockVersionLow, guint16 u16Index, guint16 u16BodyLength) { const gchar *userProfile; if (u8BlockVersionHigh != 1 || u8BlockVersionLow != 0) { expert_add_info_format(pinfo, item, &ei_pn_io_block_version, "Block version %u.%u not implemented yet!", u8BlockVersionHigh, u8BlockVersionLow); return offset; } /* user specified format? */ if (u16Index < 0x8000) { offset = dissect_pn_user_data(tvb, offset, pinfo, tree, u16BodyLength, "User Specified Data"); return offset; } /* "reserved for profiles"? */ userProfile = indexReservedForProfiles(u16Index); if (userProfile != NULL) { offset = dissect_pn_user_data(tvb, offset, pinfo, tree, u16BodyLength, userProfile); return offset; } return dissect_pn_undecoded(tvb, offset, pinfo, tree, u16BodyLength); } /* dissect one PN-IO block (depending on the block type) */ static int dissect_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, guint16 *u16Index, guint32 *u32RecDataLen, pnio_ar_t **ar) { guint16 u16BlockType; guint16 u16BlockLength; guint8 u8BlockVersionHigh; guint8 u8BlockVersionLow; proto_item *sub_item; proto_tree *sub_tree; guint32 u32SubStart; guint16 u16BodyLength; proto_item *header_item; proto_tree *header_tree; gint remainingBytes; /* from here, we only have big endian (network byte ordering)!!! */ drep[0] &= ~DREP_LITTLE_ENDIAN; sub_item = proto_tree_add_item(tree, hf_pn_io_block, tvb, offset, 0, ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_block); u32SubStart = offset; header_item = proto_tree_add_item(sub_tree, hf_pn_io_block_header, tvb, offset, 6, ENC_NA); header_tree = proto_item_add_subtree(header_item, ett_pn_io_block_header); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, header_tree, drep, hf_pn_io_block_type, &u16BlockType); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, header_tree, drep, hf_pn_io_block_length, &u16BlockLength); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, header_tree, drep, hf_pn_io_block_version_high, &u8BlockVersionHigh); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, header_tree, drep, hf_pn_io_block_version_low, &u8BlockVersionLow); proto_item_append_text(header_item, ": Type=%s, Length=%u(+4), Version=%u.%u", val_to_str(u16BlockType, pn_io_block_type, "Unknown (0x%04x)"), u16BlockLength, u8BlockVersionHigh, u8BlockVersionLow); proto_item_set_text(sub_item, "%s", val_to_str(u16BlockType, pn_io_block_type, "Unknown (0x%04x)")); col_append_fstr(pinfo->cinfo, COL_INFO, ", %s", val_to_str(u16BlockType, pn_io_block_type, "Unknown")); /* block length is without type and length fields, but with version field */ /* as it's already dissected, remove it */ u16BodyLength = u16BlockLength - 2; remainingBytes = tvb_reported_length_remaining(tvb, offset); if (remainingBytes < 0) remainingBytes = 0; if (remainingBytes +2 < u16BodyLength) { proto_item_append_text(sub_item, " Block_Length: %d greater than remaining Bytes, trying with Blocklen = remaining (%d)", u16BodyLength, remainingBytes); u16BodyLength = remainingBytes; } switch (u16BlockType) { case(0x0001): case(0x0002): dissect_AlarmNotification_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0008): dissect_IODWriteReqHeader_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16Index, u32RecDataLen, ar); break; case(0x0009): dissect_IODReadReqHeader_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16Index, u32RecDataLen, ar); break; case(0x0010): dissect_DiagnosisData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0012): /* ExpectedIdentificationData */ case(0x0013): /* RealIdentificationData */ dissect_IdentificationData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0014): dissect_SubstituteValue_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0015): dissect_RecordInputDataObjectElement_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0016): dissect_RecordOutputDataObjectElement_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; /* 0x0017 reserved */ case(0x0018): dissect_ARData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0019): dissect_LogData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x001A): dissect_APIData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x001B): dissect_SRLData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0020): dissect_IandM0_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0021): dissect_IandM1_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0022): dissect_IandM2_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0023): dissect_IandM3_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0024): dissect_IandM4_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0025): dissect_IandM5_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh,u8BlockVersionLow); break; case(0x0030): dissect_IandM0FilterData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0031): dissect_IandM0FilterData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0032): dissect_IandM0FilterData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0033): dissect_IandM5Data_block(tvb, offset, pinfo, sub_tree, sub_item, drep); break; case(0x0101): dissect_ARBlockReq_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, ar); break; case(0x0102): dissect_IOCRBlockReq_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, *ar); break; case(0x0103): dissect_AlarmCRBlockReq_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, *ar); break; case(0x0104): dissect_ExpectedSubmoduleBlockReq_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0106): dissect_MCRBlockReq_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0107): dissect_SubFrameBlock_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0108): case(0x8108): dissect_ARVendorBlockReq_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0109): dissect_IRInfoBlock_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x010A): dissect_SRInfoBlock_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0110): case(0x0111): case(0x0112): case(0x0113): case(0x0114): case(0x0116): case(0x0117): dissect_ControlConnect_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, ar); break; case(0x0118): dissect_ControlBlockPrmBegin(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength, ar); break; case(0x0119): dissect_SubmoduleListBlock(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength, ar); break; case(0x0200): /* PDPortDataCheck */ dissect_PDPortData_Check_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0201): dissect_PDevData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0202): /*dissect_PDPortData_Adjust_block */ dissect_PDPortData_Adjust_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0203): dissect_PDSyncData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0204): dissect_IsochronousModeData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0205): dissect_PDIRData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0206): dissect_PDIRGlobalData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0207): dissect_PDIRFrameData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0208): dissect_PDIRBeginEndData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0209): dissect_AdjustDomainBoundary_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x020A): dissect_CheckPeers_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x020B): dissect_CheckLineDelay_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x020C): dissect_CheckMAUType_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x020E): dissect_AdjustMAUType_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x020F): dissect_PDPortDataReal_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0210): dissect_AdjustMulticastBoundary_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0211): dissect_PDInterfaceMrpDataAdjust_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0212): dissect_PDInterfaceMrpDataReal_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0213): dissect_PDInterfaceMrpDataCheck_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0214): case(0x0215): dissect_PDPortMrpData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0216): dissect_MrpManagerParams_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0217): dissect_MrpClientParams_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0218): dissect_MrpRTModeManagerData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0219): dissect_MrpRingStateData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x021A): dissect_MrpRTStateData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x021B): dissect_AdjustPortState_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x021C): dissect_CheckPortState_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x021D): dissect_MrpRTModeClientData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x021E): dissect_CheckSyncDifference_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x021F): dissect_CheckMAUTypeDifference_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0220): dissect_PDPortFODataReal_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0221): dissect_FiberOpticManufacturerSpecific_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0222): dissect_PDPortFODataAdjust_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0223): dissect_PDPortFODataCheck_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0226): dissect_AdjustPreambleLength_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0228): dissect_FiberOpticDiagnosisInfo_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x022A): dissect_PDIRSubframeData_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x022B): dissect_PDSubFrameBlock_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0230): dissect_PDPortFODataCheck_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0231): dissect_MrpInstanceDataAdjust_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0232): dissect_MrpInstanceDataReal_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0233): dissect_MrpInstanceDataCheck_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0240): dissect_PDInterfaceDataReal_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0250): dissect_PDInterfaceAdjust_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0251): dissect_PDPortStatistic_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0400): dissect_MultipleBlockHeader_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0401): dissect_COContainerContent_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, *u16Index, u32RecDataLen, ar); break; case(0x0500): dissect_RecordDataReadQuery_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, *u16Index, u16BodyLength); break; case(0x0600): dissect_FSHello_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0601): dissect_FSParameter_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x0608): dissect_PDInterfaceFSUDataAdjust_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x010B): case(0x0609): dissect_ARFSUDataAdjust_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16BodyLength); break; case(0x0f00): dissect_Maintenance_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x8001): case(0x8002): dissect_Alarm_ack_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x8008): dissect_IODWriteResHeader_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16Index, u32RecDataLen, ar); break; case(0x8009): dissect_IODReadResHeader_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, u16Index, u32RecDataLen, ar); break; case(0x8101): dissect_ARBlockRes_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, ar); break; case(0x8102): dissect_IOCRBlockRes_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, *ar); break; case(0x8103): dissect_AlarmCRBlockRes_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, *ar); break; case(0x8104): dissect_ModuleDiffBlock_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x8106): dissect_ARServerBlock(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow); break; case(0x8110): case(0x8111): case(0x8112): case(0x8113): case(0x8114): case(0x8116): case(0x8117): case(0x8118): dissect_ControlConnect_block(tvb, offset, pinfo, sub_tree, sub_item, drep, u8BlockVersionHigh, u8BlockVersionLow, ar); break; default: dissect_pn_undecoded(tvb, offset, pinfo, sub_tree, u16BodyLength); } offset += u16BodyLength; proto_item_set_len(sub_item, offset - u32SubStart); return offset; } /* dissect any PN-IO block */ static int dissect_a_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep) { guint16 u16Index = 0; guint32 u32RecDataLen; pnio_ar_t *ar = NULL; offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); if (ar != NULL) { pnio_ar_info(tvb, pinfo, tree, ar); } return offset; } /* dissect any number of PN-IO blocks */ static int dissect_blocks(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep) { guint16 u16Index = 0; guint32 u32RecDataLen; pnio_ar_t *ar = NULL; while (tvb_captured_length(tvb) > (guint) offset) { offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); u16Index++; } if (ar != NULL) { pnio_ar_info(tvb, pinfo, tree, ar); } return offset; } /* dissect a PN-IO (DCE-RPC) request header */ static int dissect_IPNIO_rqst_header(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { guint32 u32ArgsMax; guint32 u32ArgsLen; guint32 u32MaxCount; guint32 u32Offset; guint32 u32ArraySize; proto_item *sub_item; proto_tree *sub_tree; guint32 u32SubStart; col_set_str(pinfo->cinfo, COL_PROTOCOL, "PNIO-CM"); /* args_max */ offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep, hf_pn_io_args_max, &u32ArgsMax); /* args_len */ offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep, hf_pn_io_args_len, &u32ArgsLen); sub_item = proto_tree_add_item(tree, hf_pn_io_array, tvb, offset, 0, ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io); u32SubStart = offset; /* RPC array header */ offset = dissect_ndr_uint32(tvb, offset, pinfo, sub_tree, di, drep, hf_pn_io_array_max_count, &u32MaxCount); offset = dissect_ndr_uint32(tvb, offset, pinfo, sub_tree, di, drep, hf_pn_io_array_offset, &u32Offset); offset = dissect_ndr_uint32(tvb, offset, pinfo, sub_tree, di, drep, hf_pn_io_array_act_count, &u32ArraySize); proto_item_append_text(sub_item, ": Max: %u, Offset: %u, Size: %u", u32MaxCount, u32Offset, u32ArraySize); proto_item_set_len(sub_item, offset - u32SubStart); return offset; } /* dissect a PN-IO (DCE-RPC) response header */ static int dissect_IPNIO_resp_header(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { guint32 u32ArgsLen; guint32 u32MaxCount; guint32 u32Offset; guint32 u32ArraySize; proto_item *sub_item; proto_tree *sub_tree; guint32 u32SubStart; col_set_str(pinfo->cinfo, COL_PROTOCOL, "PNIO-CM"); offset = dissect_PNIO_status(tvb, offset, pinfo, tree, drep); /* args_len */ offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep, hf_pn_io_args_len, &u32ArgsLen); sub_item = proto_tree_add_item(tree, hf_pn_io_array, tvb, offset, 0, ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io); u32SubStart = offset; /* RPC array header */ offset = dissect_ndr_uint32(tvb, offset, pinfo, sub_tree, di, drep, hf_pn_io_array_max_count, &u32MaxCount); offset = dissect_ndr_uint32(tvb, offset, pinfo, sub_tree, di, drep, hf_pn_io_array_offset, &u32Offset); offset = dissect_ndr_uint32(tvb, offset, pinfo, sub_tree, di, drep, hf_pn_io_array_act_count, &u32ArraySize); proto_item_append_text(sub_item, ": Max: %u, Offset: %u, Size: %u", u32MaxCount, u32Offset, u32ArraySize); proto_item_set_len(sub_item, offset - u32SubStart); return offset; } /* dissect a PN-IO request */ static int dissect_IPNIO_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { offset = dissect_IPNIO_rqst_header(tvb, offset, pinfo, tree, di, drep); offset = dissect_blocks(tvb, offset, pinfo, tree, drep); return offset; } /* dissect a PN-IO response */ static int dissect_IPNIO_resp(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { offset = dissect_IPNIO_resp_header(tvb, offset, pinfo, tree, di, drep); offset = dissect_blocks(tvb, offset, pinfo, tree, drep); return offset; } /* dissect a PROFIDrive parameter request */ static int dissect_ProfiDriveParameterRequest(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep) { guint8 request_reference; guint8 request_id; guint8 do_id; guint8 no_of_parameters; guint8 addr_idx; proto_item *profidrive_item; proto_tree *profidrive_tree; profidrive_item = proto_tree_add_item(tree, hf_pn_io_block, tvb, offset, 0, ENC_NA); profidrive_tree = proto_item_add_subtree(profidrive_item, ett_pn_io_profidrive_parameter_request); proto_item_set_text(profidrive_item, "PROFIDrive Parameter Request: "); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, profidrive_tree, drep, hf_pn_io_profidrive_request_reference, &request_reference); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, profidrive_tree, drep, hf_pn_io_profidrive_request_id, &request_id); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, profidrive_tree, drep, hf_pn_io_profidrive_do_id, &do_id); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, profidrive_tree, drep, hf_pn_io_profidrive_no_of_parameters, &no_of_parameters); proto_item_append_text(profidrive_item, "ReqRef:0x%02x, ReqId:%s, DO:%u, NoOfParameters:%u", request_reference, val_to_str(request_id, pn_io_profidrive_request_id_vals, "Unknown"), do_id, no_of_parameters); col_add_fstr(pinfo->cinfo, COL_INFO, "PROFIDrive Write Request, ReqRef:0x%02x, %s DO:%u", request_reference, request_id==0x01 ? "Read" : request_id==0x02 ? "Change" : "", do_id); /* Parameter address list */ for(addr_idx=0; addr_idx<no_of_parameters; addr_idx++) { guint8 attribute; guint8 no_of_elems; guint16 parameter; guint16 idx; proto_item *sub_item; proto_tree *sub_tree; sub_item = proto_tree_add_item(profidrive_tree, hf_pn_io_block, tvb, offset, 0, ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_profidrive_parameter_address); proto_item_set_text(sub_item, "Parameter Address %u: ", addr_idx+1); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_profidrive_param_attribute, &attribute); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_profidrive_param_no_of_elems, &no_of_elems); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_profidrive_param_number, &parameter); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_profidrive_param_subindex, &idx); proto_item_append_text(sub_item, "Attr:%s, Elems:%u, Parameter:%u, Index:%u", val_to_str(attribute, pn_io_profidrive_attribute_vals, "Unknown"), no_of_elems, parameter, idx); if (no_of_elems>1) { col_append_fstr(pinfo->cinfo, COL_INFO, ", P%d[%d..%d]", parameter, idx, idx+no_of_elems-1); } else { col_append_fstr(pinfo->cinfo, COL_INFO, ", P%d[%d]", parameter, idx); } } /* in case of change request parameter value list */ if (request_id == 0x02) { for(addr_idx=0; addr_idx<no_of_parameters; addr_idx++) { guint8 format; guint8 no_of_vals; proto_item *sub_item; proto_tree *sub_tree; sub_item = proto_tree_add_item(profidrive_tree, hf_pn_io_block, tvb, offset, 0, ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_profidrive_parameter_value); proto_item_set_text(sub_item, "Parameter Value %u: ", addr_idx+1); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_profidrive_param_format, &format); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_profidrive_param_no_of_values, &no_of_vals); proto_item_append_text(sub_item, "Format:%s, NoOfVals:%u", val_to_str(format, pn_io_profidrive_format_vals, "Unknown"), no_of_vals); while (no_of_vals--) { offset = dissect_profidrive_value(tvb, offset, pinfo, sub_tree, drep, format); } } } return offset; } static int dissect_ProfiDriveParameterResponse(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep) { guint8 request_reference; guint8 response_id; guint8 do_id; guint8 no_of_parameters; proto_item *profidrive_item; proto_tree *profidrive_tree; profidrive_item = proto_tree_add_item(tree, hf_pn_io_block, tvb, offset, 0, ENC_NA); profidrive_tree = proto_item_add_subtree(profidrive_item, ett_pn_io_profidrive_parameter_response); proto_item_set_text(profidrive_item, "PROFIDrive Parameter Response: "); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, profidrive_tree, drep, hf_pn_io_profidrive_request_reference, &request_reference); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, profidrive_tree, drep, hf_pn_io_profidrive_response_id, &response_id); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, profidrive_tree, drep, hf_pn_io_profidrive_do_id, &do_id); offset = dissect_dcerpc_uint8(tvb, offset, pinfo, profidrive_tree, drep, hf_pn_io_profidrive_no_of_parameters, &no_of_parameters); proto_item_append_text(profidrive_item, "ReqRef:0x%02x, RspId:%s, DO:%u, NoOfParameters:%u", request_reference, val_to_str(response_id, pn_io_profidrive_response_id_vals, "Unknown"), do_id, no_of_parameters); col_add_fstr(pinfo->cinfo, COL_INFO, "PROFIDrive Read Response, ReqRef:0x%02x, RspId:%s", request_reference, val_to_str(response_id, pn_io_profidrive_response_id_vals, "Unknown response")); return offset; } static int dissect_RecordDataRead(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, guint16 u16Index, guint32 u32RecDataLen) { const gchar *userProfile; pnio_ar_t *ar = NULL; /* user specified format? */ if (u16Index < 0x8000) { offset = dissect_pn_user_data(tvb, offset, pinfo, tree, u32RecDataLen, "User Specified Data"); return offset; } /* profidrive parameter access response */ if (u16Index == 0xb02e || u16Index == 0xb02f) { return dissect_ProfiDriveParameterResponse(tvb, offset, pinfo, tree, drep); } /* "reserved for profiles"? */ userProfile = indexReservedForProfiles(u16Index); if (userProfile != NULL) { offset = dissect_pn_user_data(tvb, offset, pinfo, tree, u32RecDataLen, userProfile); return offset; } /* see: pn_io_index */ /* single block only */ switch (u16Index) { case(0x8010): /* Maintenance required in channel coding for one subslot */ case(0x8011): /* Maintenance demanded in channel coding for one subslot */ case(0x8012): /* Maintenance required in all codings for one subslot */ case(0x8013): /* Maintenance demanded in all codings for one subslot */ case(0x801e): /* SubstituteValues for one subslot */ case(0x8028): /* RecordInputDataObjectElement for one subslot */ case(0x8029): /* RecordOutputDataObjectElement for one subslot */ case(0x8050): /* PDInterfaceMrpDataReal for one subslot */ case(0x8051): /* PDInterfaceMrpDataCheck for one subslot */ case(0x8052): /* PDInterfaceMrpDataAdjust for one subslot */ case(0x8053): /* PDPortMrpDataAdjust for one subslot */ case(0x8054): /* PDPortMrpDataReal for one subslot */ case(0x8060): /* PDPortFODataReal for one subslot */ case(0x8061): /* PDPortFODataCheck for one subslot */ case(0x8062): /* PDPortFODataAdjust for one subslot */ case(0x8070): /* PDNCDataCheck for one subslot */ case(0x8071): /* PDPortStatistic for one subslot */ case(0x8080): /* PDInterfaceDataReal */ case(0x8090): /* PDInterfaceFSUDataAdjust */ case(0xaff0): /* I&M0 */ case(0xaff1): /* I&M1 */ case(0xaff2): /* I&M2 */ case(0xaff3): /* I&M3 */ case(0xaff4): /* I&M4 */ case(0xaff5): /* I&M5 */ case(0xaff6): /* I&M6 */ case(0xaff7): /* I&M7 */ case(0xaff8): /* I&M8 */ case(0xaff9): /* I&M9 */ case(0xaffa): /* I&M10 */ case(0xaffb): /* I&M11 */ case(0xaffc): /* I&M12 */ case(0xaffd): /* I&M13 */ case(0xaffe): /* I&M14 */ case(0xafff): /* I&M15 */ case(0xc010): /* Maintenance required in channel coding for one slot */ case(0xc011): /* Maintenance demanded in channel coding for one slot */ case(0xc012): /* Maintenance required in all codings for one slot */ case(0xc013): /* Maintenance demanded in all codings for one slot */ case(0xe002): /* ModuleDiffBlock for one AR */ case(0xe010): /* Maintenance required in channel coding for one AR */ case(0xe011): /* Maintenance demanded in channel coding for one AR */ case(0xe012): /* Maintenance required in all codings for one AR */ case(0xe013): /* Maintenance demanded in all codings for one AR */ case(0xf010): /* Maintenance required in channel coding for one API */ case(0xf011): /* Maintenance demanded in channel coding for one API */ case(0xf012): /* Maintenance required in all codings for one API */ case(0xf013): /* Maintenance demanded in all codings for one API */ case(0xf020): /* ARData for one API */ case(0xf820): /* ARData */ case(0xf821): /* APIData */ case(0xf830): /* LogData */ case(0xf831): /* PDevData */ offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); break; case(0xf840): /* I&M0FilterData */ { int end_offset = offset + u32RecDataLen; offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); if (end_offset > offset) offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); if (end_offset > offset) offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); } break; case(0xB050): case(0xB051): case(0xB060): case(0xB061): offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); break; /*** multiple blocks possible ***/ case(0x8000): /* ExpectedIdentificationData for one subslot */ case(0x8001): /* RealIdentificationData for one subslot */ case(0x800a): /* Diagnosis in channel decoding for one subslot */ case(0x800b): /* Diagnosis in all codings for one subslot */ case(0x800c): /* Diagnosis, Maintenance, Qualified and Status for one subslot */ case(0x802a): /* PDPortDataReal */ case(0x802b): /* PDPortDataCheck */ case(0x802d): /* Expected PDSyncData for one subslot with SyncID value 0 for PTCPoverRTA */ case(0x802e): /* Expected PDSyncData for one subslot with SyncID value 0 for PTCPoverRTC */ case(0x802f): /* PDPortDataAdjust */ case(0x8030): /* IsochronousModeData for one subslot */ case(0x8031): /* Expected PDSyncData for one subslot with SyncID value 1 */ case(0x8032): case(0x8033): case(0x8034): case(0x8035): case(0x8036): case(0x8037): case(0x8038): case(0x8039): case(0x803a): case(0x803b): case(0x803c): case(0x803d): case(0x803e): case(0x803f): case(0x8040): /* Expected PDSyncData for one subslot with SyncID value 2 ... 30 */ case(0x8041): case(0x8042): case(0x8043): case(0x8044): case(0x8045): case(0x8046): case(0x8047): case(0x8048): case(0x8049): case(0x804a): case(0x804b): case(0x804c): case(0x804d): case(0x804e): case(0x804f): /* Expected PDSyncData for one subslot with SyncID value 31 */ case(0x8072): /* PDPortStatistic for one subslot */ case(0xc000): /* ExpectedIdentificationData for one slot */ case(0xc001): /* RealIdentificationData for one slot */ case(0xc00a): /* Diagnosis in channel coding for one slot */ case(0xc00b): /* Diagnosis in all codings for one slot */ case(0xc00c): /* Diagnosis, Maintenance, Qualified and Status for one slot */ case(0xe000): /* ExpectedIdentificationData for one AR */ case(0xe001): /* RealIdentificationData for one AR */ case(0xe00a): /* Diagnosis in channel decoding for one AR */ case(0xe00b): /* Diagnosis in all codings for one AR */ case(0xe00c): /* Diagnosis, Maintenance, Qualified and Status for one AR */ case(0xe030): /* IsochronousModeData for one AR */ case(0xf000): /* RealIdentificationData for one API */ case(0xf00a): /* Diagnosis in channel decoding for one API */ case(0xf00b): /* Diagnosis in all codings for one API */ case(0xf00c): /* Diagnosis, Maintenance, Qualified and Status for one API */ case(0xf80c): /* Diagnosis, Maintenance, Qualified and Status for one device */ case(0xf841): /* PDRealData */ case(0xf842): /* PDExpectedData */ offset = dissect_blocks(tvb, offset, pinfo, tree, drep); break; default: offset = dissect_pn_undecoded(tvb, offset, pinfo, tree, u32RecDataLen); } return offset; } /* dissect a PN-IO read response */ static int dissect_IPNIO_Read_resp(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { guint16 u16Index = 0; guint32 u32RecDataLen = 0; pnio_ar_t *ar = NULL; offset = dissect_IPNIO_resp_header(tvb, offset, pinfo, tree, di, drep); /* IODReadHeader */ offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); /* RecordDataRead */ if (u32RecDataLen != 0) { offset = dissect_RecordDataRead(tvb, offset, pinfo, tree, drep, u16Index, u32RecDataLen); } if (ar != NULL) { pnio_ar_info(tvb, pinfo, tree, ar); } return offset; } /* F-Parameter record data object */ static int dissect_ProfiSafeParameterRequest(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, guint16 u16Index, wmem_list_frame_t *frame) { proto_item *f_item; proto_tree *f_tree; proto_item *flags1_item; proto_tree *flags1_tree; proto_item *flags2_item; proto_tree *flags2_tree; guint16 src_addr; guint16 dst_addr; guint16 wd_time; guint16 par_crc; guint32 ipar_crc; guint8 prm_flag1; guint8 prm_flag1_chck_seq; guint8 prm_flag1_chck_ipar; guint8 prm_flag1_sil; guint8 prm_flag1_crc_len; guint8 prm_flag1_crc_seed; guint8 prm_flag1_reserved; guint8 prm_flag2; guint8 prm_flag2_reserved; guint8 prm_flag2_f_block_id; guint8 prm_flag2_f_par_version; conversation_t *conversation; stationInfo *station_info; ioDataObject *io_data_object; wmem_list_frame_t *frame_out; f_item = proto_tree_add_item(tree, hf_pn_io_block, tvb, offset, 0, ENC_NA); f_tree = proto_item_add_subtree(f_item, ett_pn_io_profisafe_f_parameter); proto_item_set_text(f_item, "F-Parameter: "); flags1_item = proto_tree_add_item(f_tree, hf_pn_io_ps_f_prm_flag1, tvb, offset, 1, ENC_BIG_ENDIAN); flags1_tree = proto_item_add_subtree(flags1_item, ett_pn_io_profisafe_f_parameter_prm_flag1); /* dissection of F_Prm_Flag1 */ dissect_dcerpc_uint8(tvb, offset, pinfo, flags1_tree, drep, hf_pn_io_ps_f_prm_flag1_chck_seq, &prm_flag1_chck_seq); dissect_dcerpc_uint8(tvb, offset, pinfo, flags1_tree, drep, hf_pn_io_ps_f_prm_flag1_chck_ipar, &prm_flag1_chck_ipar); dissect_dcerpc_uint8(tvb, offset, pinfo, flags1_tree, drep, hf_pn_io_ps_f_prm_flag1_sil, &prm_flag1_sil); dissect_dcerpc_uint8(tvb, offset, pinfo, flags1_tree, drep, hf_pn_io_ps_f_prm_flag1_crc_len, &prm_flag1_crc_len); dissect_dcerpc_uint8(tvb, offset, pinfo, flags1_tree, drep, hf_pn_io_ps_f_prm_flag1_crc_seed, &prm_flag1_crc_seed); dissect_dcerpc_uint8(tvb, offset, pinfo, flags1_tree, drep, hf_pn_io_ps_f_prm_flag1_reserved, &prm_flag1_reserved); prm_flag1 = prm_flag1_chck_seq|prm_flag1_chck_ipar|prm_flag1_sil|prm_flag1_crc_len|prm_flag1_crc_seed|prm_flag1_reserved; offset++; flags2_item = proto_tree_add_item(f_tree, hf_pn_io_ps_f_prm_flag2, tvb, offset, 1, ENC_BIG_ENDIAN); flags2_tree = proto_item_add_subtree(flags2_item, ett_pn_io_profisafe_f_parameter_prm_flag2); /* dissection of F_Prm_Flag2 */ dissect_dcerpc_uint8(tvb, offset, pinfo, flags2_tree, drep, hf_pn_io_ps_f_prm_flag2_reserved, &prm_flag2_reserved); dissect_dcerpc_uint8(tvb, offset, pinfo, flags2_tree, drep, hf_pn_io_ps_f_prm_flag2_f_block_id, &prm_flag2_f_block_id); dissect_dcerpc_uint8(tvb, offset, pinfo, flags2_tree, drep, hf_pn_io_ps_f_prm_flag2_f_par_version, &prm_flag2_f_par_version); prm_flag2 = prm_flag2_reserved|prm_flag2_f_block_id|prm_flag2_f_par_version; offset++; offset = dissect_dcerpc_uint16(tvb, offset, pinfo, f_item, drep, hf_pn_io_ps_f_src_adr, &src_addr); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, f_item, drep, hf_pn_io_ps_f_dest_adr, &dst_addr); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, f_item, drep, hf_pn_io_ps_f_wd_time, &wd_time); /* Dissection for F_iPar_CRC: see F_Prm_Flag2 -> F_Block_ID */ if( (prm_flag2_f_block_id & 0x08) && !(prm_flag2_f_block_id & 0x20) ) { offset = dissect_dcerpc_uint32(tvb, offset, pinfo, f_item, drep, hf_pn_io_ps_f_ipar_crc, &ipar_crc); } offset = dissect_dcerpc_uint16(tvb, offset, pinfo, f_item, drep, hf_pn_io_ps_f_par_crc, &par_crc); /* Differniate between ipar_crc and no_ipar_crc */ if( (prm_flag2_f_block_id & 0x08) && !(prm_flag2_f_block_id & 0x20) ) { /* include ipar_crc display */ col_append_fstr(pinfo->cinfo, COL_INFO, ", F-Parameter record, prm_flag1:0x%02x, prm_flag2:0x%02x, src:0x%04x," " dst:0x%04x, wd_time:%d, ipar_crc:0x%04x, crc:0x%04x", prm_flag1, prm_flag2, src_addr, dst_addr, wd_time, ipar_crc, par_crc); proto_item_append_text(f_item, "prm_flag1:0x%02x, prm_flag2:0x%02x, src:0x%04x, dst:0x%04x, wd_time:%d, ipar_crc:0x%04x, par_crc:0x%04x", prm_flag1, prm_flag2, src_addr, dst_addr, wd_time, ipar_crc, par_crc); } else { /* exclude ipar_crc display */ col_append_fstr(pinfo->cinfo, COL_INFO, ", F-Parameter record, prm_flag1:0x%02x, prm_flag2:0x%02x, src:0x%04x," " dst:0x%04x, wd_time:%d, crc:0x%04x", prm_flag1, prm_flag2, src_addr, dst_addr, wd_time, par_crc); proto_item_append_text(f_item, "prm_flag1:0x%02x, prm_flag2:0x%02x, src:0x%04x, dst:0x%04x, wd_time:%d, par_crc:0x%04x", prm_flag1, prm_flag2, src_addr, dst_addr, wd_time, par_crc); } if (!pinfo->fd->flags.visited) { /* Get current conversation endpoints using MAC addresses */ conversation = find_conversation(pinfo->num, &pinfo->dl_src, &pinfo->dl_dst, PT_NONE, 0, 0, 0); if (conversation == NULL) { conversation = conversation_new(pinfo->num, &pinfo->dl_src, &pinfo->dl_dst, PT_NONE, 0, 0, 0); } station_info = (stationInfo*)conversation_get_proto_data(conversation, proto_pn_dcp); if (station_info != NULL) { if (frame != NULL) { io_data_object = (ioDataObject*)wmem_list_frame_data(frame); io_data_object->f_par_crc1 = par_crc; io_data_object->f_src_adr = src_addr; io_data_object->f_dest_adr = dst_addr; io_data_object->f_crc_seed = prm_flag1 & 0x40; if (!(prm_flag1 & 0x10)) { if (prm_flag1 & 0x20) { io_data_object->f_crc_len = 4; } else { io_data_object->f_crc_len = 3; } } } /* Find same module within output data to saved data */ for (frame_out = wmem_list_head(station_info->ioobject_data_out); frame_out != NULL; frame_out = wmem_list_frame_next(frame_out)) { io_data_object = (ioDataObject*)wmem_list_frame_data(frame_out); if (u16Index == io_data_object->fParameterIndexNr && /* Check F-Parameter Indexnumber */ io_data_object->profisafeSupported && /* Arrayelement has to be PS-Module */ io_data_object->f_par_crc1 == 0) { /* Find following object with no f_par_crc1 */ io_data_object->f_par_crc1 = par_crc; io_data_object->f_src_adr = src_addr; io_data_object->f_dest_adr = dst_addr; io_data_object->f_crc_seed = prm_flag1 & 0x40; if (!(prm_flag1 & 0x10)) { if (prm_flag1 & 0x20) { io_data_object->f_crc_len = 4; } else { io_data_object->f_crc_len = 3; } } break; } } } } return offset; } static int dissect_RecordDataWrite(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, guint16 u16Index, guint32 u32RecDataLen) { conversation_t *conversation; stationInfo *station_info; wmem_list_frame_t *frame; ioDataObject *io_data_object; const gchar *userProfile; pnio_ar_t *ar = NULL; /* PROFISafe */ /* Get current conversation endpoints using MAC addresses */ conversation = find_conversation(pinfo->num, &pinfo->dl_src, &pinfo->dl_dst, PT_NONE, 0, 0, 0); if (conversation == NULL) { conversation = conversation_new(pinfo->num, &pinfo->dl_src, &pinfo->dl_dst, PT_NONE, 0, 0, 0); } station_info = (stationInfo*)conversation_get_proto_data(conversation, proto_pn_dcp); if (station_info != NULL) { if (!pinfo->fd->flags.visited) { /* Search within the entire existing list for current input object data */ for (frame = wmem_list_head(station_info->ioobject_data_in); frame != NULL; frame = wmem_list_frame_next(frame)) { io_data_object = (ioDataObject*)wmem_list_frame_data(frame); if (u16Index == io_data_object->fParameterIndexNr && /* Check F-Parameter Indexnumber */ io_data_object->profisafeSupported && /* Arrayelement has to be PS-Module */ io_data_object->f_par_crc1 == 0) { /* Find following object with no f_par_crc1 */ return dissect_ProfiSafeParameterRequest(tvb, offset, pinfo, tree, drep, u16Index, frame); } } } else { /* User clicked another time the frame to see the data -> PROFIsafe data has already been saved * Check whether the device contains an PROFIsafe supported submodule. */ for (frame = wmem_list_head(station_info->ioobject_data_in); frame != NULL; frame = wmem_list_frame_next(frame)) { io_data_object = (ioDataObject*)wmem_list_frame_data(frame); if (u16Index == io_data_object->fParameterIndexNr && /* Check F-Parameter Indexnumber */ io_data_object->profisafeSupported) { /* Arrayelement has to be PS-Module */ return dissect_ProfiSafeParameterRequest(tvb, offset, pinfo, tree, drep, u16Index, frame); } } for (frame = wmem_list_head(station_info->ioobject_data_out); frame != NULL; frame = wmem_list_frame_next(frame)) { io_data_object = (ioDataObject*)wmem_list_frame_data(frame); if (u16Index == io_data_object->fParameterIndexNr && /* Check F-Parameter Indexnumber */ io_data_object->profisafeSupported) { /* Arrayelement has to be PS-Module */ return dissect_ProfiSafeParameterRequest(tvb, offset, pinfo, tree, drep, u16Index, frame); } } } } /* user specified format? */ if (u16Index < 0x8000) { return dissect_pn_user_data(tvb, offset, pinfo, tree, u32RecDataLen, "User Specified Data"); } /* profidrive parameter request */ if (u16Index == 0xb02e || u16Index == 0xb02f) { return dissect_ProfiDriveParameterRequest(tvb, offset, pinfo, tree, drep); } /* "reserved for profiles"? */ userProfile = indexReservedForProfiles(u16Index); if (userProfile != NULL) { offset = dissect_pn_user_data(tvb, offset, pinfo, tree, u32RecDataLen, userProfile); return offset; } /* see: pn_io_index */ switch (u16Index) { case(0x8020): /* PDIRSubframeData */ case(0x801e): /* SubstituteValues for one subslot */ case(0x802b): /* PDPortDataCheck for one subslot */ case(0x802c): /* PDirData for one subslot */ case(0x802d): /* Expected PDSyncData for one subslot with SyncID value 0 for PTCPoverRTA */ case(0x802e): /* Expected PDSyncData for one subslot with SyncID value 0 for PTCPoverRTC */ case(0x802f): /* PDPortDataAdjust for one subslot */ case(0x8030): /* IsochronousModeData for one subslot */ case(0x8051): /* PDInterfaceMrpDataCheck for one subslot */ case(0x8052): /* PDInterfaceMrpDataAdjust for one subslot */ case(0x8053): /* PDPortMrpDataAdjust for one subslot */ case(0x8061): /* PDPortFODataCheck for one subslot */ case(0x8062): /* PDPortFODataAdjust for one subslot */ case(0x8070): /* PDNCDataCheck for one subslot */ case(0x8071): /* PDInterfaceAdjust */ case(0x8090): /* PDInterfaceFSUDataAdjust */ case(0x80B0): /* CombinedObjectContainer*/ case(0xe030): /* IsochronousModeData for one AR */ case(0xe050): /* FastStartUp data for one AR */ offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); break; default: offset = dissect_pn_undecoded(tvb, offset, pinfo, tree, u32RecDataLen); } return offset; } static int dissect_IODWriteReq(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, pnio_ar_t **ar) { guint16 u16Index = 0; guint32 u32RecDataLen = 0; /* IODWriteHeader */ offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, ar); /* IODWriteMultipleReq? */ if (u16Index == 0xe040) { while (tvb_captured_length_remaining(tvb, offset) > 0) { offset = dissect_IODWriteReq(tvb, offset, pinfo, tree, drep, ar); } } else { tvbuff_t *new_tvb = tvb_new_subset_length(tvb, offset, u32RecDataLen); /* RecordDataWrite */ offset += dissect_RecordDataWrite(new_tvb, 0, pinfo, tree, drep, u16Index, u32RecDataLen); /* Padding */ switch (offset % 4) { case(3): offset += 1; break; case(2): offset += 2; break; case(1): offset += 3; break; } } return offset; } /* dissect a PN-IO write request */ static int dissect_IPNIO_Write_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { pnio_ar_t *ar = NULL; offset = dissect_IPNIO_rqst_header(tvb, offset, pinfo, tree, di, drep); offset = dissect_IODWriteReq(tvb, offset, pinfo, tree, drep, &ar); if (ar != NULL) { pnio_ar_info(tvb, pinfo, tree, ar); } return offset; } static int dissect_IODWriteRes(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep) { guint16 u16Index = 0; guint32 u32RecDataLen; pnio_ar_t *ar = NULL; /* IODWriteResHeader */ offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); /* IODWriteMultipleRes? */ if (u16Index == 0xe040) { while (tvb_captured_length_remaining(tvb, offset) > 0) { offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, &ar); } } if (ar != NULL) { pnio_ar_info(tvb, pinfo, tree, ar); } return offset; } /* dissect a PN-IO write response */ static int dissect_IPNIO_Write_resp(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { offset = dissect_IPNIO_resp_header(tvb, offset, pinfo, tree, di, drep); offset = dissect_IODWriteRes(tvb, offset, pinfo, tree, drep); return offset; } /* dissect the IOxS (IOCS, IOPS) field */ static int dissect_PNIO_IOxS(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, guint8 *drep _U_, int hfindex) { if (tree) { guint8 u8IOxS; proto_item *ioxs_item; proto_tree *ioxs_tree; u8IOxS = tvb_get_guint8(tvb, offset); /* add ioxs subtree */ ioxs_item = proto_tree_add_uint(tree, hfindex, tvb, offset, 1, u8IOxS); proto_item_append_text(ioxs_item, " (%s%s)", (u8IOxS & 0x01) ? "another IOxS follows " : "", (u8IOxS & 0x80) ? "good" : "bad"); ioxs_tree = proto_item_add_subtree(ioxs_item, ett_pn_io_ioxs); proto_tree_add_uint(ioxs_tree, hf_pn_io_ioxs_datastate, tvb, offset, 1, u8IOxS); proto_tree_add_uint(ioxs_tree, hf_pn_io_ioxs_instance, tvb, offset, 1, u8IOxS); proto_tree_add_uint(ioxs_tree, hf_pn_io_ioxs_res14, tvb, offset, 1, u8IOxS); proto_tree_add_uint(ioxs_tree, hf_pn_io_ioxs_extension, tvb, offset, 1, u8IOxS); } return offset + 1; } /* dissect a PN-IO Cyclic Service Data Unit (on top of PN-RT protocol) */ static int dissect_PNIO_C_SDU(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep _U_) { proto_tree *data_tree = NULL; /* gint iTotalLen = 0; */ /* gint iSubFrameLen = 0; */ col_set_str(pinfo->cinfo, COL_PROTOCOL, "PNIO"); if (tree) { proto_item *data_item; data_item = proto_tree_add_protocol_format(tree, proto_pn_io, tvb, offset, tvb_captured_length(tvb), "PROFINET IO Cyclic Service Data Unit: %u bytes", tvb_captured_length(tvb)); data_tree = proto_item_add_subtree(data_item, ett_pn_io_rtc); } /*dissect_dcerpc_uint16(tvb, offset, pinfo, data_tree, drep, hf_pn_io_packedframe_SFCRC, &u16SFCRC);*/ if (dissect_CSF_SDU_heur(tvb, pinfo, data_tree, NULL)) return(tvb_captured_length(tvb)); /* XXX - dissect the remaining data */ /* this will be one or more DataItems followed by an optional GAP and RTCPadding */ /* as we don't have the required context information to dissect the specific DataItems, */ /* this will be tricky :-( */ /* actual: there may be an IOxS but most case there isn't so better display a data-stream */ /* offset = dissect_PNIO_IOxS(tvb, offset, pinfo, data_tree, drep, hf_pn_io_ioxs); */ offset = dissect_pn_user_data(tvb, offset, pinfo, tree, tvb_captured_length_remaining(tvb, offset), "User Data (including GAP and RTCPadding)"); return offset; } /* dissect a PN-IO RTA PDU (on top of PN-RT protocol) */ static int dissect_PNIO_RTA(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep) { guint16 u16AlarmDstEndpoint; guint16 u16AlarmSrcEndpoint; guint8 u8PDUType; guint8 u8PDUVersion; guint8 u8WindowSize; guint8 u8Tack; guint16 u16SendSeqNum; guint16 u16AckSeqNum; guint16 u16VarPartLen; int start_offset = offset; guint16 u16Index = 0; guint32 u32RecDataLen; pnio_ar_t *ar = NULL; proto_item *rta_item; proto_tree *rta_tree; proto_item *sub_item; proto_tree *sub_tree; col_set_str(pinfo->cinfo, COL_PROTOCOL, "PNIO-AL"); rta_item = proto_tree_add_protocol_format(tree, proto_pn_io, tvb, offset, tvb_captured_length(tvb), "PROFINET IO Alarm"); rta_tree = proto_item_add_subtree(rta_item, ett_pn_io_rta); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, rta_tree, drep, hf_pn_io_alarm_dst_endpoint, &u16AlarmDstEndpoint); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, rta_tree, drep, hf_pn_io_alarm_src_endpoint, &u16AlarmSrcEndpoint); col_append_fstr(pinfo->cinfo, COL_INFO, ", Src: 0x%x, Dst: 0x%x", u16AlarmSrcEndpoint, u16AlarmDstEndpoint); /* PDU type */ sub_item = proto_tree_add_item(rta_tree, hf_pn_io_pdu_type, tvb, offset, 1, ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_pdu_type); dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_pdu_type_type, &u8PDUType); u8PDUType &= 0x0F; offset = dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_pdu_type_version, &u8PDUVersion); u8PDUVersion >>= 4; proto_item_append_text(sub_item, ", Type: %s, Version: %u", val_to_str(u8PDUType, pn_io_pdu_type, "Unknown"), u8PDUVersion); /* additional flags */ sub_item = proto_tree_add_item(rta_tree, hf_pn_io_add_flags, tvb, offset, 1, ENC_NA); sub_tree = proto_item_add_subtree(sub_item, ett_pn_io_add_flags); dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_window_size, &u8WindowSize); u8WindowSize &= 0x0F; offset = dissect_dcerpc_uint8(tvb, offset, pinfo, sub_tree, drep, hf_pn_io_tack, &u8Tack); u8Tack >>= 4; proto_item_append_text(sub_item, ", Window Size: %u, Tack: %u", u8WindowSize, u8Tack); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, rta_tree, drep, hf_pn_io_send_seq_num, &u16SendSeqNum); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, rta_tree, drep, hf_pn_io_ack_seq_num, &u16AckSeqNum); offset = dissect_dcerpc_uint16(tvb, offset, pinfo, rta_tree, drep, hf_pn_io_var_part_len, &u16VarPartLen); switch ( u8PDUType & 0x0F) { case(1): /* Data-RTA */ col_append_str(pinfo->cinfo, COL_INFO, ", Data-RTA"); offset = dissect_block(tvb, offset, pinfo, rta_tree, drep, &u16Index, &u32RecDataLen, &ar); break; case(2): /* NACK-RTA */ col_append_str(pinfo->cinfo, COL_INFO, ", NACK-RTA"); /* no additional data */ break; case(3): /* ACK-RTA */ col_append_str(pinfo->cinfo, COL_INFO, ", ACK-RTA"); /* no additional data */ break; case(4): /* ERR-RTA */ col_append_str(pinfo->cinfo, COL_INFO, ", ERR-RTA"); offset = dissect_PNIO_status(tvb, offset, pinfo, rta_tree, drep); break; default: offset = dissect_pn_undecoded(tvb, offset, pinfo, tree, tvb_captured_length(tvb)); } proto_item_set_len(rta_item, offset - start_offset); return offset; } /* possibly dissect a PN-IO related PN-RT packet */ static gboolean dissect_PNIO_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { guint8 drep_data = 0; guint8 *drep = &drep_data; guint8 u8CBAVersion; /* the sub tvb will NOT contain the frame_id here! */ guint16 u16FrameID = GPOINTER_TO_UINT(data); heur_dtbl_entry_t *hdtbl_entry; /* * In case the packet is a protocol encoded in the basic PNIO transport stream, * give that protocol a chance to make a heuristic dissection, before we continue * to dissect it as a normal PNIO packet. */ if (dissector_try_heuristic(heur_pn_subdissector_list, tvb, pinfo, tree, &hdtbl_entry, NULL)) return TRUE; u8CBAVersion = tvb_get_guint8 (tvb, 0); /* is this a (none DFP) PNIO class 3 data packet? */ /* frame id must be in valid range (cyclic Real-Time, class=3) */ if ((u16FrameID >= 0x0100 && u16FrameID <= 0x06FF) || /* RTC3 non redundant */ (u16FrameID >= 0x700 && u16FrameID <= 0x0fff)) { /* RTC3 redundant */ dissect_PNIO_C_SDU(tvb, 0, pinfo, tree, drep); return TRUE; } /* The following range is reserved for following developments */ /* frame id must be in valid range (Reserved) and * first byte (CBA version field) has to be != 0x11 */ if (u16FrameID >= 0x1000 && u16FrameID <= 0x7fff && u8CBAVersion != 0x11) { dissect_PNIO_C_SDU(tvb, 0, pinfo, tree, drep); return TRUE; } /* is this a PNIO class 1 data packet? */ /* frame id must be in valid range (cyclic Real-Time, class=1) and * first byte (CBA version field) has to be != 0x11 */ if (u16FrameID >= 0x8000 && u16FrameID < 0xbfff && u8CBAVersion != 0x11) { dissect_PNIO_C_SDU_RTC1(tvb, 0, pinfo, tree, drep); return TRUE; } /* is this a PNIO class 1 (legacy) data packet? */ /* frame id must be in valid range (cyclic Real-Time, class=1, legacy) and * first byte (CBA version field) has to be != 0x11 */ if (u16FrameID >= 0xc000 && u16FrameID < 0xfbff && u8CBAVersion != 0x11) { dissect_PNIO_C_SDU_RTC1(tvb, 0, pinfo, tree, drep); return TRUE; } /* is this a PNIO high priority alarm packet? */ if (u16FrameID == 0xfc01) { col_set_str(pinfo->cinfo, COL_INFO, "Alarm High"); dissect_PNIO_RTA(tvb, 0, pinfo, tree, drep); return TRUE; } /* is this a PNIO low priority alarm packet? */ if (u16FrameID == 0xfe01) { col_set_str(pinfo->cinfo, COL_INFO, "Alarm Low"); dissect_PNIO_RTA(tvb, 0, pinfo, tree, drep); return TRUE; } /* this PN-RT packet doesn't seem to be PNIO specific */ return FALSE; } static gboolean pn_io_ar_conv_valid(packet_info *pinfo) { void* profinet_type = p_get_proto_data(pinfo->pool, pinfo, proto_pn_io, 0); return ((profinet_type != NULL) && (GPOINTER_TO_UINT(profinet_type) == 10)); } static gchar * pn_io_ar_conv_filter(packet_info *pinfo) { pnio_ar_t *ar = (pnio_ar_t *)p_get_proto_data(wmem_file_scope(), pinfo, proto_pn_io, 0); void* profinet_type = p_get_proto_data(pinfo->pool, pinfo, proto_pn_io, 0); char *buf; address controllermac_addr, devicemac_addr; if ((profinet_type == NULL) || (GPOINTER_TO_UINT(profinet_type) != 10) || (ar == NULL)) { return NULL; } set_address(&controllermac_addr, AT_ETHER, 6, ar->controllermac); set_address(&devicemac_addr, AT_ETHER, 6, ar->devicemac); buf = g_strdup_printf( "pn_io.ar_uuid == %s || " /* ARUUID */ "(pn_io.alarm_src_endpoint == 0x%x && eth.src == %s) || " /* Alarm CR (contr -> dev) */ "(pn_io.alarm_src_endpoint == 0x%x && eth.src == %s)", /* Alarm CR (dev -> contr) */ guid_to_str(pinfo->pool, (const e_guid_t*) &ar->aruuid), ar->controlleralarmref, address_to_str(pinfo->pool, &controllermac_addr), ar->devicealarmref, address_to_str(pinfo->pool, &devicemac_addr)); return buf; } static gchar * pn_io_ar_conv_data_filter(packet_info *pinfo) { pnio_ar_t *ar = (pnio_ar_t *)p_get_proto_data(wmem_file_scope(), pinfo, proto_pn_io, 0); void* profinet_type = p_get_proto_data(pinfo->pool, pinfo, proto_pn_io, 0); char *buf, *controllermac_str, *devicemac_str, *guid_str; address controllermac_addr, devicemac_addr; if ((profinet_type == NULL) || (GPOINTER_TO_UINT(profinet_type) != 10) || (ar == NULL)) { return NULL; } set_address(&controllermac_addr, AT_ETHER, 6, ar->controllermac); set_address(&devicemac_addr, AT_ETHER, 6, ar->devicemac); controllermac_str = address_to_str(pinfo->pool, &controllermac_addr); devicemac_str = address_to_str(pinfo->pool, &devicemac_addr); guid_str = guid_to_str(pinfo->pool, (const e_guid_t*) &ar->aruuid); if (ar->arType == 0x0010) /* IOCARSingle using RT_CLASS_3 */ { buf = g_strdup_printf( "pn_io.ar_uuid == %s || " /* ARUUID */ "(pn_rt.frame_id == 0x%x) || (pn_rt.frame_id == 0x%x) || " "(pn_io.alarm_src_endpoint == 0x%x && eth.src == %s) || " /* Alarm CR (contr -> dev) */ "(pn_io.alarm_src_endpoint == 0x%x && eth.src == %s)", /* Alarm CR (dev -> contr) */ guid_str, ar->inputframeid, ar->outputframeid, ar->controlleralarmref, controllermac_str, ar->devicealarmref, devicemac_str); } else { buf = g_strdup_printf( "pn_io.ar_uuid == %s || " /* ARUUID */ "(pn_rt.frame_id == 0x%x && eth.src == %s && eth.dst == %s) || " /* Input CR && dev MAC -> contr MAC */ "(pn_rt.frame_id == 0x%x && eth.src == %s && eth.dst == %s) || " /* Output CR && contr MAC -> dev MAC */ "(pn_io.alarm_src_endpoint == 0x%x && eth.src == %s) || " /* Alarm CR (contr -> dev) */ "(pn_io.alarm_src_endpoint == 0x%x && eth.src == %s)", /* Alarm CR (dev -> contr) */ guid_str, ar->inputframeid, devicemac_str, controllermac_str, ar->outputframeid, controllermac_str, devicemac_str, ar->controlleralarmref, controllermac_str, ar->devicealarmref, devicemac_str); } return buf; } /* the PNIO dcerpc interface table */ static dcerpc_sub_dissector pn_io_dissectors[] = { { 0, "Connect", dissect_IPNIO_rqst, dissect_IPNIO_resp }, { 1, "Release", dissect_IPNIO_rqst, dissect_IPNIO_resp }, { 2, "Read", dissect_IPNIO_rqst, dissect_IPNIO_Read_resp }, { 3, "Write", dissect_IPNIO_Write_rqst, dissect_IPNIO_Write_resp }, { 4, "Control", dissect_IPNIO_rqst, dissect_IPNIO_resp }, { 5, "Read Implicit", dissect_IPNIO_rqst, dissect_IPNIO_Read_resp }, { 0, NULL, NULL, NULL } }; static void pnio_cleanup(void) { g_list_free(pnio_ars); pnio_ars = NULL; } void proto_register_pn_io (void) { static hf_register_info hf[] = { { &hf_pn_io_opnum, { "Operation", "pn_io.opnum", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_reserved16, { "Reserved", "pn_io.reserved16", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_array, { "Array", "pn_io.array", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_status, { "Status", "pn_io.status", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_args_max, { "ArgsMaximum", "pn_io.args_max", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_args_len, { "ArgsLength", "pn_io.args_len", FT_UINT32, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_array_max_count, { "MaximumCount", "pn_io.array_max_count", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_array_offset, { "Offset", "pn_io.array_offset", FT_UINT32, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_array_act_count, { "ActualCount", "pn_io.array_act_count", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ar_data, { "ARDATA for AR:", "pn_io.ar_data", FT_NONE, BASE_NONE, 0x0, 0x0, NULL, HFILL } }, { &hf_pn_io_ar_type, { "ARType", "pn_io.ar_type", FT_UINT16, BASE_HEX, VALS(pn_io_ar_type), 0x0, NULL, HFILL } }, { &hf_pn_io_cminitiator_macadd, { "CMInitiatorMacAdd", "pn_io.cminitiator_mac_add", FT_ETHER, BASE_NONE, 0x0, 0x0, NULL, HFILL } }, { &hf_pn_io_cminitiator_objectuuid, { "CMInitiatorObjectUUID", "pn_io.cminitiator_uuid", FT_GUID, BASE_NONE, 0x0, 0x0, NULL, HFILL } }, { &hf_pn_io_parameter_server_objectuuid, { "ParameterServerObjectUUID", "pn_io.parameter_server_objectuuid", FT_GUID, BASE_NONE, 0x0, 0x0, NULL, HFILL } }, { &hf_pn_io_ar_properties, { "ARProperties", "pn_io.ar_properties", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ar_properties_state, { "State", "pn_io.ar_properties.state", FT_UINT32, BASE_HEX, VALS(pn_io_arproperties_state), 0x00000007, NULL, HFILL } }, { &hf_pn_io_ar_properties_supervisor_takeover_allowed, { "SupervisorTakeoverAllowed", "pn_io.ar_properties.supervisor_takeover_allowed", FT_UINT32, BASE_HEX, VALS(pn_io_arproperties_supervisor_takeover_allowed), 0x00000008, NULL, HFILL } }, { &hf_pn_io_ar_properties_parametrization_server, { "ParametrizationServer", "pn_io.ar_properties.parametrization_server", FT_UINT32, BASE_HEX, VALS(pn_io_arproperties_parametrization_server), 0x00000010, NULL, HFILL } }, { &hf_pn_io_artype_req, { "ARType", "pn_io.artype_req", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL }}, { &hf_pn_io_ar_properties_companion_ar, { "CompanionAR", "pn_io.ar_properties.companion_ar", FT_UINT32, BASE_HEX, VALS(pn_io_arproperties_companion_ar), 0x00000600, NULL, HFILL } }, { &hf_pn_io_ar_properties_achnowledge_companion_ar, { "AcknowledgeCompanionAR", "pn_io.ar_properties.acknowledge_companion_ar", FT_UINT32, BASE_HEX, VALS(pn_io_arproperties_acknowldege_companion_ar), 0x00000800, NULL, HFILL } }, { &hf_pn_io_ar_properties_reserved, { "Reserved", "pn_io.ar_properties.reserved", FT_UINT32, BASE_HEX, NULL, 0x1FFFF000, NULL, HFILL } }, { &your_sha256_hashrtupmode, { "CombinedObjectContainer", "pn_io.ar_properties.combined_object_container", FT_UINT32, BASE_HEX, VALS(your_sha256_hashmode), 0x20000000, NULL, HFILL } }, { &your_sha256_hashtartupmode, { "CombinedObjectContainer", "pn_io.ar_properties.combined_object_container", FT_UINT32, BASE_HEX, VALS(your_sha256_hashupmode), 0x20000000, NULL, HFILL } }, { &hf_pn_io_arproperties_StartupMode, { "StartupMode", "pn_io.ar_properties.StartupMode", FT_UINT32, BASE_HEX, VALS(pn_io_arpropertiesStartupMode), 0x40000000, NULL, HFILL } }, { &hf_pn_io_ar_properties_pull_module_alarm_allowed, { "PullModuleAlarmAllowed", "pn_io.ar_properties.pull_module_alarm_allowed", FT_UINT32, BASE_HEX, VALS(pn_io_arproperties_pull_module_alarm_allowed), 0x80000000, NULL, HFILL } }, { &hf_pn_RedundancyInfo, { "RedundancyInfo.EndPoint", "pn_io.srl_data.redundancyInfo", FT_UINT16, BASE_HEX, VALS(pn_io_RedundancyInfo), 0x0000003, NULL, HFILL } }, { &hf_pn_RedundancyInfo_reserved, { "RedundancyInfo.reserved", "pn_io.srl_data.redundancyInfoReserved", FT_UINT16, BASE_HEX, NULL, 0xFFFFFFFC, NULL, HFILL } }, { &hf_pn_io_number_of_ARDATAInfo, { "ARDataInfo.NumberOfEntries", "pn_io.number_of_ARDATAInfo", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_cminitiator_activitytimeoutfactor, { "CMInitiatorActivityTimeoutFactor", "pn_io.cminitiator_activitytimeoutfactor", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, /* XXX - special values */ { &hf_pn_io_cminitiator_udprtport, { "CMInitiatorUDPRTPort", "pn_io.cminitiator_udprtport", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, /* XXX - special values */ { &hf_pn_io_station_name_length, { "StationNameLength", "pn_io.station_name_length", FT_UINT16, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_cminitiator_station_name, { "CMInitiatorStationName", "pn_io.cminitiator_station_name", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_parameter_server_station_name, { "ParameterServerStationName", "pn_io.parameter_server_station_name", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_cmresponder_macadd, { "CMResponderMacAdd", "pn_io.cmresponder_macadd", FT_ETHER, BASE_NONE, 0x0, 0x0, NULL, HFILL } }, { &hf_pn_io_cmresponder_udprtport, { "CMResponderUDPRTPort", "pn_io.cmresponder_udprtport", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, /* XXX - special values */ { &hf_pn_io_number_of_iocrs, { "NumberOfIOCRs", "pn_io.number_of_iocrs", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_iocr_tree, { "IOCR", "pn_io.iocr_tree", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_iocr_type, { "IOCRType", "pn_io.iocr_type", FT_UINT16, BASE_HEX, VALS(pn_io_iocr_type), 0x0, NULL, HFILL } }, { &hf_pn_io_iocr_reference, { "IOCRReference", "pn_io.iocr_reference", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_iocr_SubframeOffset, { "-> SubframeOffset", "pn_io.subframe_offset", FT_UINT8, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_iocr_SubframeData, { "SubframeData", "pn_io.subframe_data", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_RedundancyDataHoldFactor, { "RedundancyDataHoldFactor", "pn_io.RedundancyDataHoldFactor", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_sr_properties, { "SRProperties", "pn_io.sr_properties", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_sr_properties_InputValidOnBackupAR, { "InputValidOnBackupAR", "pn_io.sr_properties.InputValidOnBackupAR", FT_UINT32, BASE_HEX, VALS(pn_io_sr_properties_BackupAR), 0x01, NULL, HFILL } }, { &hf_pn_io_sr_properties_ActivateRedundancyAlarm, { "ActivateRedundancyAlarm", "pn_io.sr_properties.ActivateRedundancyAlarm", FT_UINT32, BASE_HEX, VALS(pn_io_sr_properties_ActivateRedundancyAlarm), 0x02, NULL, HFILL } }, { &hf_pn_io_sr_properties_Reserved_1, { "Reserved_1", "pn_io.sr_properties.Reserved_1", FT_UINT32, BASE_HEX, NULL, 0x0FFFC, NULL, HFILL } }, { &hf_pn_io_sr_properties_Reserved_2, { "Reserved_2", "pn_io.sr_properties.Reserved_2", FT_UINT32, BASE_HEX, NULL, 0x0FFFF0000, NULL, HFILL } }, { &hf_pn_io_arvendor_strucidentifier_if0_low, { "APStructureIdentifier: Vendor specific", "pn_io.structidentifier_api_0_low", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_arvendor_strucidentifier_if0_high, { "APStructureIdentifier: Administrative number for common profiles", "pn_io.structidentifier_api_0_high", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_arvendor_strucidentifier_if0_is8000, { "APStructureIdentifier: Extended identification rules", "pn_io.tructidentifier_api_0_is8000", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_arvendor_strucidentifier_not0, { "APStructureIdentifier: Administrative number for application profiles", "pn_io.tructidentifier_api_not_0", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_lt, { "LT", "pn_io.lt", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_iocr_properties, { "IOCRProperties", "pn_io.iocr_properties", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_iocr_properties_rtclass, { "RTClass", "pn_io.iocr_properties.rtclass", FT_UINT32, BASE_HEX, VALS(pn_io_iocr_properties_rtclass), 0x0000000F, NULL, HFILL } }, { &hf_pn_io_iocr_properties_reserved_1, { "Reserved1", "pn_io.iocr_properties.reserved1", FT_UINT32, BASE_HEX, NULL, 0x00000FF0, NULL, HFILL } }, { &hf_pn_io_iocr_properties_media_redundancy, { "MediaRedundancy", "pn_io.iocr_properties.media_redundancy", FT_UINT32, BASE_HEX, VALS(pn_io_iocr_properties_media_redundancy), 0x00000800, NULL, HFILL } }, { &hf_pn_io_iocr_properties_reserved_2, { "Reserved2", "pn_io.iocr_properties.reserved2", FT_UINT32, BASE_HEX, NULL, 0x00FFF000, NULL, HFILL } }, { &hf_pn_io_iocr_properties_reserved_3, { "Reserved3", "pn_io.iocr_properties.reserved3", FT_UINT32, BASE_HEX, NULL, 0xF000000, NULL, HFILL } }, { &hf_pn_io_iocr_properties_fast_forwarding_mac_adr, { "FastForwardingMACAdr", "pn_io.iocr_properties.fast_forwarding_mac_adr", FT_UINT32, BASE_HEX, NULL, 0x20000000, NULL, HFILL } }, { &hf_pn_io_iocr_properties_distributed_subframe_watchdog, { "DistributedSubFrameWatchDog", "pn_io.iocr_properties.distributed_subframe_watchdog", FT_UINT32, BASE_HEX, NULL, 0x40000000, NULL, HFILL } }, { &hf_pn_io_iocr_properties_full_subframe_structure, { "FullSubFrameStructure", "pn_io.iocr_properties.full_subframe_structure", FT_UINT32, BASE_HEX, NULL, 0x80000000, NULL, HFILL } }, { &hf_pn_io_SFIOCRProperties, { "SFIOCRProperties", "pn_io.SFIOCRProperties", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_DistributedWatchDogFactor, { "SFIOCRProperties.DistributedWatchDogFactor", "pn_io.SFIOCRProperties.DistributedWatchDogFactor", FT_UINT32, BASE_HEX, NULL, 0x0FF, NULL, HFILL } }, { &hf_pn_io_RestartFactorForDistributedWD, { "SFIOCRProperties.RestartFactorForDistributedWD", "pn_io.SFIOCRProperties.RestartFactorForDistributedWD", FT_UINT32, BASE_HEX, NULL, 0xff00, NULL, HFILL } }, { &hf_pn_io_SFIOCRProperties_DFPmode, { "SFIOCRProperties.DFPmode", "pn_io.SFIOCRProperties.DFPmode", FT_UINT32, BASE_HEX, NULL, 0xFF0000, NULL, HFILL } }, { &hf_pn_io_SFIOCRProperties_reserved_1, { "SFIOCRProperties.reserved_1", "pn_io.SFIOCRProperties.reserved_1", FT_UINT32, BASE_HEX, NULL, 0x0F000000, NULL, HFILL } }, { &hf_pn_io_SFIOCRProperties_reserved_2, { "SFIOCRProperties.reserved_2", "pn_io.SFIOCRProperties.reserved_2", FT_UINT32, BASE_HEX, NULL, 0x010000000, NULL, HFILL } }, { &hf_pn_io_SFIOCRProperties_DFPType, { "SFIOCRProperties.DFPType", "pn_io.SFIOCRProperties.DFPType", FT_UINT32, BASE_HEX, VALS(pn_io_SFIOCRProperties_DFPType_vals), 0x020000000, NULL, HFILL } }, { &hf_pn_io_SFIOCRProperties_DFPRedundantPathLayout, { "SFIOCRProperties.DFPRedundantPathLayout", "pn_io.SFIOCRProperties.DFPRedundantPathLayout", FT_UINT32, BASE_HEX, VALS(pn_io_DFPRedundantPathLayout_decode), 0x040000000, NULL, HFILL } }, { &hf_pn_io_SFIOCRProperties_SFCRC16, { "SFIOCRProperties.SFCRC16", "pn_io.SFIOCRProperties.SFCRC16", FT_UINT32, BASE_HEX, VALS(pn_io_SFCRC16_Decode), 0x080000000, NULL, HFILL } }, { &hf_pn_io_data_length, { "DataLength", "pn_io.data_length", FT_UINT16, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ir_frame_data, { "Frame data", "pn_io.ir_frame_data", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_frame_id, { "FrameID", "pn_io.frame_id", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_send_clock_factor, { "SendClockFactor", "pn_io.send_clock_factor", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, /* XXX - special values */ { &hf_pn_io_reduction_ratio, { "ReductionRatio", "pn_io.reduction_ratio", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, /* XXX - special values */ { &hf_pn_io_phase, { "Phase", "pn_io.phase", FT_UINT16, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_sequence, { "Sequence", "pn_io.sequence", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_frame_send_offset, { "FrameSendOffset", "pn_io.frame_send_offset", FT_UINT32, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_frame_data_properties, { "FrameDataProperties", "pn_io.frame_data_properties", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_frame_data_properties_forwarding_Mode, { "ForwardingMode", "pn_io.frame_data_properties_forwardingMode", FT_UINT32, BASE_HEX, VALS(hf_pn_io_frame_data_properties_forwardingMode), 0x01, NULL, HFILL } }, { &hf_pn_io_frame_data_properties_FastForwardingMulticastMACAdd, { "FastForwardingMulticastMACAdd", "pn_io.frame_data_properties_MulticastMACAdd", FT_UINT32, BASE_HEX, VALS(hf_pn_io_frame_data_properties_FFMulticastMACAdd), 0x06, NULL, HFILL } }, { &hf_pn_io_frame_data_properties_FragmentMode, { "FragmentationMode", "pn_io.frame_data_properties_FragMode", FT_UINT32, BASE_HEX, VALS(hf_pn_io_frame_data_properties_FragMode), 0x18, NULL, HFILL } }, { &hf_pn_io_frame_data_properties_reserved_1, { "Reserved_1", "pn_io.frame_data.reserved_1", FT_UINT32, BASE_HEX, NULL, 0x0000FFE0, NULL, HFILL } }, { &hf_pn_io_frame_data_properties_reserved_2, { "Reserved_2", "pn_io.frame_data.reserved_2", FT_UINT32, BASE_HEX, NULL, 0xFFFF0000, NULL, HFILL } }, { &hf_pn_io_watchdog_factor, { "WatchdogFactor", "pn_io.watchdog_factor", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_data_hold_factor, { "DataHoldFactor", "pn_io.data_hold_factor", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_iocr_tag_header, { "IOCRTagHeader", "pn_io.iocr_tag_header", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_iocr_multicast_mac_add, { "IOCRMulticastMACAdd", "pn_io.iocr_multicast_mac_add", FT_ETHER, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_number_of_apis, { "NumberOfAPIs", "pn_io.number_of_apis", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_number_of_io_data_objects, { "NumberOfIODataObjects", "pn_io.number_of_io_data_objects", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_number_of_iocs, { "NumberOfIOCS", "pn_io.number_of_iocs", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_iocs_frame_offset, { "IOCSFrameOffset", "pn_io.iocs_frame_offset", FT_UINT16, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_alarmcr_type, { "AlarmCRType", "pn_io.alarmcr_type", FT_UINT16, BASE_HEX, VALS(pn_io_alarmcr_type), 0x0, NULL, HFILL } }, { &hf_pn_io_alarmcr_properties, { "AlarmCRProperties", "pn_io.alarmcr_properties", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_alarmcr_properties_priority, { "priority", "pn_io.alarmcr_properties.priority", FT_UINT32, BASE_HEX, VALS(pn_io_alarmcr_properties_priority), 0x00000001, NULL, HFILL } }, { &hf_pn_io_alarmcr_properties_transport, { "Transport", "pn_io.alarmcr_properties.transport", FT_UINT32, BASE_HEX, VALS(pn_io_alarmcr_properties_transport), 0x00000002, NULL, HFILL } }, { &hf_pn_io_alarmcr_properties_reserved, { "Reserved", "pn_io.alarmcr_properties.reserved", FT_UINT32, BASE_HEX, NULL, 0xFFFFFFFC, NULL, HFILL } }, { &hf_pn_io_rta_timeoutfactor, { "RTATimeoutFactor", "pn_io.rta_timeoutfactor", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, /* XXX - special values */ { &hf_pn_io_rta_retries, { "RTARetries", "pn_io.rta_retries", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, /* XXX - only values 3 - 15 allowed */ { &hf_pn_io_localalarmref, { "LocalAlarmReference", "pn_io.localalarmref", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, /* XXX - special values */ { &hf_pn_io_remotealarmref, { "RemoteAlarmReference", "pn_io.remotealarmref", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, /* XXX - special values */ { &hf_pn_io_maxalarmdatalength, { "MaxAlarmDataLength", "pn_io.maxalarmdatalength", FT_UINT16, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, /* XXX - only values 200 - 1432 allowed */ { &hf_pn_io_alarmcr_tagheaderhigh, { "AlarmCRTagHeaderHigh", "pn_io.alarmcr_tagheaderhigh", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, /* XXX - 16 bitfield! */ { &hf_pn_io_alarmcr_tagheaderlow, { "AlarmCRTagHeaderLow", "pn_io.alarmcr_tagheaderlow", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, /* XXX - 16 bitfield!*/ { &hf_pn_io_api_tree, { "API", "pn_io.api_tree", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_module_tree, { "Module", "pn_io.module_tree", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_submodule_tree, { "Submodule", "pn_io.submodule_tree", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_io_data_object, { "IODataObject", "pn_io.io_data_object", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_io_data_object_frame_offset, { "IODataObjectFrameOffset", "pn_io.io_data_object.frame_offset", FT_UINT16, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_io_cs, { "IOCS", "pn_io.io_cs", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_substitutionmode, { "Substitutionmode", "pn_io.substitutionmode", FT_UINT16, BASE_HEX, VALS(pn_io_substitutionmode), 0x0, NULL, HFILL } }, { &hf_pn_io_IRData_uuid, { "IRDataUUID", "pn_io.IRData_uuid", FT_GUID, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ar_uuid, { "ARUUID", "pn_io.ar_uuid", FT_GUID, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_target_ar_uuid, { "TargetARUUID", "pn_io.target_ar_uuid", FT_GUID, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_api, { "API", "pn_io.api", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_slot_nr, { "SlotNumber", "pn_io.slot_nr", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_subslot_nr, { "SubslotNumber", "pn_io.subslot_nr", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_index, { "Index", "pn_io.index", FT_UINT16, BASE_HEX, VALS(pn_io_index), 0x0, NULL, HFILL } }, { &hf_pn_io_seq_number, { "SeqNumber", "pn_io.seq_number", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_record_data_length, { "RecordDataLength", "pn_io.record_data_length", FT_UINT32, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_add_val1, { "AdditionalValue1", "pn_io.add_val1", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_add_val2, { "AdditionalValue2", "pn_io.add_val2", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_block_header, { "BlockHeader", "pn_io.block_header", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_block_type, { "BlockType", "pn_io.block_type", FT_UINT16, BASE_HEX, VALS(pn_io_block_type), 0x0, NULL, HFILL } }, { &hf_pn_io_block_length, { "BlockLength", "pn_io.block_length", FT_UINT16, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_block_version_high, { "BlockVersionHigh", "pn_io.block_version_high", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_block_version_low, { "BlockVersionLow", "pn_io.block_version_low", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_sessionkey, { "SessionKey", "pn_io.session_key", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_control_command, { "ControlCommand", "pn_io.control_command", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_control_command_reserved, { "ControlBlockProperties.reserved", "pn_io.control_properties_reserved", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_control_command_prmend, { "PrmEnd", "pn_io.control_command.prmend", FT_UINT16, BASE_DEC, NULL, 0x0001, NULL, HFILL } }, { &hf_pn_io_control_command_applready, { "ApplicationReady", "pn_io.control_command.applready", FT_UINT16, BASE_DEC, NULL, 0x0002, NULL, HFILL } }, { &hf_pn_io_control_command_release, { "Release", "pn_io.control_command.release", FT_UINT16, BASE_DEC, NULL, 0x0004, NULL, HFILL } }, { &hf_pn_io_control_command_done, { "Done", "pn_io.control_command.done", FT_UINT16, BASE_DEC, NULL, 0x0008, NULL, HFILL } }, { &hf_pn_io_control_command_ready_for_companion, { "ReadyForCompanion", "pn_io.control_command.ready_for_companion", FT_UINT16, BASE_DEC, NULL, 0x0010, NULL, HFILL } }, { &hf_pn_io_control_command_ready_for_rt_class3, { "ReadyForRT Class 3", "pn_io.control_command.ready_for_rt_class3", FT_UINT16, BASE_DEC, NULL, 0x0020, NULL, HFILL } }, { &hf_pn_io_control_command_prmbegin, { "PrmBegin", "pn_io.control_command.prmbegin", FT_UINT16, BASE_DEC, VALS(pn_io_control_properties_prmbegin_vals), 0x0040, NULL, HFILL } }, { &hf_pn_io_control_command_reserved_7_15, { "ControlBlockProperties.reserved", "pn_io.control_properties_reserved_7_15", FT_UINT16, BASE_HEX, NULL, 0x0FF80, NULL, HFILL } }, { &hf_pn_io_control_block_properties, { "ControlBlockProperties", "pn_io.control_block_properties", FT_UINT16, BASE_HEX, VALS(pn_io_control_properties_vals), 0x0, NULL, HFILL } }, { &hf_pn_io_control_block_properties_applready, { "ControlBlockProperties", "pn_io.control_block_properties.appl_ready", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_control_block_properties_applready0, { "ApplicationReady", "pn_io.control_block_properties.appl_ready0", FT_UINT16, BASE_HEX, VALS(pn_io_control_properties_application_ready_vals), 0x0001, NULL, HFILL } }, { &hf_pn_io_SubmoduleListEntries, { "NumberOfEntries", "pn_io.SubmoduleListEntries", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_error_code, { "ErrorCode", "pn_io.error_code", FT_UINT8, BASE_HEX, VALS(pn_io_error_code), 0x0, NULL, HFILL } }, { &hf_pn_io_error_decode, { "ErrorDecode", "pn_io.error_decode", FT_UINT8, BASE_HEX, VALS(pn_io_error_decode), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code1, { "ErrorCode1", "pn_io.error_code1", FT_UINT8, BASE_DEC, VALS(pn_io_error_code1), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code1_pniorw, { "ErrorCode1", "pn_io.error_code1", FT_UINT8, BASE_DEC, VALS(pn_io_error_code1_pniorw), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pniorw, { "ErrorCode2 for PNIORW is user specified!", "pn_io.error_code2", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_error_code1_pnio, { "ErrorCode1", "pn_io.error_code1", FT_UINT8, BASE_DEC, VALS(pn_io_error_code1_pnio), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_1, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_1), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_2, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_2), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_3, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_3), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_4, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_4), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_5, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_5), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_6, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_6), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_7, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_7), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_8, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_8), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_20, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_20), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_21, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_21), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_22, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_22), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_23, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_23), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_40, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_40), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_61, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_61), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_62, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_62), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_63, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_63), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_64, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_64), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_65, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_65), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_66, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_66), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_70, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_70), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_71, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_71), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_72, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_72), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_73, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_73), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_74, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_74), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_75, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_75), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_76, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_76), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_77, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_77), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_253, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_253), 0x0, NULL, HFILL } }, { &hf_pn_io_error_code2_pnio_255, { "ErrorCode2", "pn_io.error_code2", FT_UINT8, BASE_DEC, VALS(pn_io_error_code2_pnio_255), 0x0, NULL, HFILL } }, { &hf_pn_io_block, { "Block", "pn_io.block", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_alarm_type, { "AlarmType", "pn_io.alarm_type", FT_UINT16, BASE_HEX, VALS(pn_io_alarm_type), 0x0, NULL, HFILL } }, { &hf_pn_io_alarm_specifier, { "AlarmSpecifier", "pn_io.alarm_specifier", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_alarm_specifier_sequence, { "SequenceNumber", "pn_io.alarm_specifier.sequence", FT_UINT16, BASE_HEX, NULL, 0x07FF, NULL, HFILL } }, { &hf_pn_io_alarm_specifier_channel, { "ChannelDiagnosis", "pn_io.alarm_specifier.channel", FT_UINT16, BASE_HEX, NULL, 0x0800, NULL, HFILL } }, { &hf_pn_io_alarm_specifier_manufacturer, { "ManufacturerSpecificDiagnosis", "pn_io.alarm_specifier.manufacturer", FT_UINT16, BASE_HEX, NULL, 0x1000, NULL, HFILL } }, { &hf_pn_io_alarm_specifier_submodule, { "SubmoduleDiagnosisState", "pn_io.alarm_specifier.submodule", FT_UINT16, BASE_HEX, NULL, 0x2000, NULL, HFILL } }, { &hf_pn_io_alarm_specifier_ardiagnosis, { "ARDiagnosisState", "pn_io.alarm_specifier.ardiagnosis", FT_UINT16, BASE_HEX, NULL, 0x8000, NULL, HFILL } }, { &hf_pn_io_alarm_dst_endpoint, { "AlarmDstEndpoint", "pn_io.alarm_dst_endpoint", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_alarm_src_endpoint, { "AlarmSrcEndpoint", "pn_io.alarm_src_endpoint", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_pdu_type, { "PDUType", "pn_io.pdu_type", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_pdu_type_type, { "Type", "pn_io.pdu_type.type", FT_UINT8, BASE_HEX, VALS(pn_io_pdu_type), 0x0F, NULL, HFILL } }, { &hf_pn_io_pdu_type_version, { "Version", "pn_io.pdu_type.version", FT_UINT8, BASE_HEX, NULL, 0xF0, NULL, HFILL } }, { &hf_pn_io_add_flags, { "AddFlags", "pn_io.add_flags", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_window_size, { "WindowSize", "pn_io.window_size", FT_UINT8, BASE_DEC, NULL, 0x0F, NULL, HFILL } }, { &hf_pn_io_tack, { "TACK", "pn_io.tack", FT_UINT8, BASE_HEX, NULL, 0xF0, NULL, HFILL } }, { &hf_pn_io_send_seq_num, { "SendSeqNum", "pn_io.send_seq_num", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ack_seq_num, { "AckSeqNum", "pn_io.ack_seq_num", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_var_part_len, { "VarPartLen", "pn_io.var_part_len", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_module_ident_number, { "ModuleIdentNumber", "pn_io.module_ident_number", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_submodule_ident_number, { "SubmoduleIdentNumber", "pn_io.submodule_ident_number", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_number_of_modules, { "NumberOfModules", "pn_io.number_of_modules", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_module_properties, { "ModuleProperties", "pn_io.module_properties", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_module_state, { "ModuleState", "pn_io.module_state", FT_UINT16, BASE_HEX, VALS(pn_io_module_state), 0x0, NULL, HFILL } }, { &hf_pn_io_number_of_submodules, { "NumberOfSubmodules", "pn_io.number_of_submodules", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_submodule_properties, { "SubmoduleProperties", "pn_io.submodule_properties", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_submodule_properties_type, { "Type", "pn_io.submodule_properties.type", FT_UINT16, BASE_HEX, VALS(pn_io_submodule_properties_type), 0x0003, NULL, HFILL } }, { &hf_pn_io_submodule_properties_shared_input, { "SharedInput", "pn_io.submodule_properties.shared_input", FT_UINT16, BASE_HEX, VALS(pn_io_submodule_properties_shared_input), 0x0004, NULL, HFILL } }, { &your_sha256_hash, { "ReduceInputSubmoduleDataLength", "pn_io.submodule_properties.reduce_input_submodule_data_length", FT_UINT16, BASE_HEX, VALS(pn_io_submodule_properties_reduce_input_submodule_data_length), 0x0008, NULL, HFILL } }, { &your_sha256_hashh, { "ReduceOutputSubmoduleDataLength", "pn_io.submodule_properties.reduce_output_submodule_data_length", FT_UINT16, BASE_HEX, VALS(pn_io_submodule_properties_reduce_output_submodule_data_length), 0x0010, NULL, HFILL } }, { &hf_pn_io_submodule_properties_discard_ioxs, { "DiscardIOXS", "pn_io.submodule_properties.discard_ioxs", FT_UINT16, BASE_HEX, VALS(pn_io_submodule_properties_discard_ioxs), 0x0020, NULL, HFILL } }, { &hf_pn_io_submodule_properties_reserved, { "Reserved", "pn_io.submodule_properties.reserved", FT_UINT16, BASE_HEX, NULL, 0xFFC0, NULL, HFILL } }, { &hf_pn_io_submodule_state, { "SubmoduleState", "pn_io.submodule_state", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_submodule_state_format_indicator, { "FormatIndicator", "pn_io.submodule_state.format_indicator", FT_UINT16, BASE_HEX, VALS(pn_io_submodule_state_format_indicator), 0x8000, NULL, HFILL } }, { &hf_pn_io_submodule_state_add_info, { "AddInfo", "pn_io.submodule_state.add_info", FT_UINT16, BASE_HEX, VALS(pn_io_submodule_state_add_info), 0x0007, NULL, HFILL } }, { &hf_pn_io_submodule_state_qualified_info, { "QualifiedInfo", "pn_io.submodule_state.qualified_info", FT_UINT16, BASE_HEX, VALS(pn_io_submodule_state_qualified_info), 0x0008, NULL, HFILL } }, { &hf_pn_io_submodule_state_maintenance_required, { "MaintenanceRequired", "pn_io.submodule_state.maintenance_required", FT_UINT16, BASE_HEX, VALS(pn_io_submodule_state_maintenance_required), 0x0010, NULL, HFILL } }, { &hf_pn_io_submodule_state_maintenance_demanded, { "MaintenanceDemanded", "pn_io.submodule_state.maintenance_demanded", FT_UINT16, BASE_HEX, VALS(pn_io_submodule_state_maintenance_demanded), 0x0020, NULL, HFILL } }, { &hf_pn_io_submodule_state_diag_info, { "DiagInfo", "pn_io.submodule_state.diag_info", FT_UINT16, BASE_HEX, VALS(pn_io_submodule_state_diag_info), 0x0040, NULL, HFILL } }, { &hf_pn_io_submodule_state_ar_info, { "ARInfo", "pn_io.submodule_state.ar_info", FT_UINT16, BASE_HEX, VALS(pn_io_submodule_state_ar_info), 0x0780, NULL, HFILL } }, { &hf_pn_io_submodule_state_ident_info, { "IdentInfo", "pn_io.submodule_state.ident_info", FT_UINT16, BASE_HEX, VALS(pn_io_submodule_state_ident_info), 0x7800, NULL, HFILL } }, { &hf_pn_io_submodule_state_detail, { "Detail", "pn_io.submodule_state.detail", FT_UINT16, BASE_HEX, VALS(pn_io_submodule_state_detail), 0x7FFF, NULL, HFILL } }, { &hf_pn_io_data_description_tree, { "DataDescription", "pn_io.data_description_tree", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_data_description, { "DataDescription", "pn_io.data_description", FT_UINT16, BASE_HEX, VALS(pn_io_data_description), 0x0, NULL, HFILL } }, { &hf_pn_io_submodule_data_length, { "SubmoduleDataLength", "pn_io.submodule_data_length", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_length_iocs, { "LengthIOCS", "pn_io.length_iocs", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_length_iops, { "LengthIOPS", "pn_io.length_iops", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_iocs, { "IOCS", "pn_io.ioxs", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_iops, { "IOPS", "pn_io.ioxs", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ioxs_extension, { "Extension (1:another IOxS follows/0:no IOxS follows)", "pn_io.ioxs.extension", FT_UINT8, BASE_HEX, NULL, 0x01, NULL, HFILL } }, { &hf_pn_io_ioxs_res14, { "Reserved (should be zero)", "pn_io.ioxs.res14", FT_UINT8, BASE_HEX, NULL, 0x1E, NULL, HFILL } }, { &hf_pn_io_ioxs_instance, { "Instance (only valid, if DataState is bad)", "pn_io.ioxs.instance", FT_UINT8, BASE_HEX, VALS(pn_io_ioxs), 0x60, NULL, HFILL } }, { &hf_pn_io_ioxs_datastate, { "DataState (1:good/0:bad)", "pn_io.ioxs.datastate", FT_UINT8, BASE_HEX, NULL, 0x80, NULL, HFILL } }, { &hf_pn_io_address_resolution_properties, { "AddressResolutionProperties", "pn_io.address_resolution_properties", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_mci_timeout_factor, { "MCITimeoutFactor", "pn_io.mci_timeout_factor", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_provider_station_name, { "ProviderStationName", "pn_io.provider_station_name", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_user_structure_identifier, { "UserStructureIdentifier", "pn_io.user_structure_identifier", FT_UINT16, BASE_HEX, VALS(pn_io_user_structure_identifier), 0x0, NULL, HFILL } }, { &hf_pn_io_user_structure_identifier_manf, { "UserStructureIdentifier manufacturer specific", "pn_io.user_structure_identifier_manf", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ar_properties_reserved_1, { "Reserved_1", "pn_io.ar_properties.reserved_1", FT_UINT32, BASE_HEX, NULL, 0x000000E0, NULL, HFILL }}, { &hf_pn_io_ar_properties_device_access, { "DeviceAccess", "pn_io.ar_properties.device_access", FT_UINT32, BASE_HEX, VALS(pn_io_arproperties_DeviceAccess), 0x00000100, NULL, HFILL }}, { &hf_pn_io_subframe_data, { "SubFrameData", "pn_io.subframe_data", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_subframe_reserved2, { "Reserved1", "pn_io.subframe_data.reserved2", FT_UINT32, BASE_HEX, NULL, 0xFFFF0000, NULL, HFILL } }, { &hf_pn_io_subframe_data_length, { "DataLength", "pn_io.subframe_data.data_length", FT_UINT32, BASE_HEX, NULL, 0x0000FF00, NULL, HFILL } }, { &hf_pn_io_subframe_reserved1, { "Reserved1", "pn_io.subframe_data.reserved1", FT_UINT32, BASE_HEX, NULL, 0x00000080, NULL, HFILL } }, { &hf_pn_io_subframe_data_position, { "DataPosition", "pn_io.subframe_data.position", FT_UINT32, BASE_HEX, NULL, 0x0000007F, NULL, HFILL } }, { &hf_pn_io_subframe_data_reserved1, { "Reserved1", "pn_io.subframe_data.reserved_1", FT_UINT32, BASE_HEX, NULL, 0x00000080, NULL, HFILL } }, { &hf_pn_io_subframe_data_reserved2, { "Reserved1", "pn_io.subframe_data.reserved_2", FT_UINT32, BASE_HEX, NULL, 0xFFFF0000, NULL, HFILL } }, { &hf_pn_io_channel_number, { "ChannelNumber", "pn_io.channel_number", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_channel_properties, { "ChannelProperties", "pn_io.channel_properties", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_channel_properties_type, { "Type", "pn_io.channel_properties.type", FT_UINT16, BASE_HEX, VALS(pn_io_channel_properties_type), 0x00FF, NULL, HFILL } }, { &hf_pn_io_channel_properties_accumulative, { "Accumulative", "pn_io.channel_properties.accumulative", FT_UINT16, BASE_HEX, VALS(pn_io_channel_properties_accumulative_vals), 0x0100, NULL, HFILL } }, { &hf_pn_io_NumberOfSubframeBlocks, { "NumberOfSubframeBlocks", "pn_io.NumberOfSubframeBlocks", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_channel_properties_maintenance, { "Maintenance (Severity)", "pn_io.channel_properties.maintenance", FT_UINT16, BASE_HEX, VALS(pn_io_channel_properties_maintenance), 0x0600, NULL, HFILL } }, { &hf_pn_io_channel_properties_specifier, { "Specifier", "pn_io.channel_properties.specifier", FT_UINT16, BASE_HEX, VALS(pn_io_channel_properties_specifier), 0x1800, NULL, HFILL } }, { &hf_pn_io_channel_properties_direction, { "Direction", "pn_io.channel_properties.direction", FT_UINT16, BASE_HEX, VALS(pn_io_channel_properties_direction), 0xE000, NULL, HFILL } }, { &hf_pn_io_channel_error_type, { "ChannelErrorType", "pn_io.channel_error_type", FT_UINT16, BASE_HEX, VALS(pn_io_channel_error_type), 0x0, NULL, HFILL } }, { &hf_pn_io_ext_channel_error_type0, { "ExtChannelErrorType", "pn_io.ext_channel_error_type0", FT_UINT16, BASE_HEX, VALS(pn_io_ext_channel_error_type0), 0x0, NULL, HFILL } }, { &hf_pn_io_ext_channel_error_type0x8000, { "ExtChannelErrorType", "pn_io.ext_channel_error_type0800", FT_UINT16, BASE_HEX, VALS(pn_io_ext_channel_error_type0x8000), 0x0, NULL, HFILL } }, { &hf_pn_io_ext_channel_error_type0x8001, { "ExtChannelErrorType", "pn_io.ext_channel_error_type8001", FT_UINT16, BASE_HEX, VALS(pn_io_ext_channel_error_type0x8001), 0x0, NULL, HFILL } }, { &hf_pn_io_ext_channel_error_type0x8002, { "ExtChannelErrorType", "pn_io.ext_channel_error_type8002", FT_UINT16, BASE_HEX, VALS(pn_io_ext_channel_error_type0x8002), 0x0, NULL, HFILL } }, { &hf_pn_io_ext_channel_error_type0x8003, { "ExtChannelErrorType", "pn_io.ext_channel_error_type8003", FT_UINT16, BASE_HEX, VALS(pn_io_ext_channel_error_type0x8003), 0x0, NULL, HFILL } }, { &hf_pn_io_ext_channel_error_type0x8004, { "ExtChannelErrorType", "pn_io.ext_channel_error_type8004", FT_UINT16, BASE_HEX, VALS(pn_io_ext_channel_error_type0x8004), 0x0, NULL, HFILL } }, { &hf_pn_io_ext_channel_error_type0x8005, { "ExtChannelErrorType", "pn_io.ext_channel_error_type8005", FT_UINT16, BASE_HEX, VALS(pn_io_ext_channel_error_type0x8005), 0x0, NULL, HFILL } }, { &hf_pn_io_ext_channel_error_type0x8007, { "ExtChannelErrorType", "pn_io.ext_channel_error_type8007", FT_UINT16, BASE_HEX, VALS(pn_io_ext_channel_error_type0x8007), 0x0, NULL, HFILL } }, { &hf_pn_io_ext_channel_error_type0x8008, { "ExtChannelErrorType", "pn_io.ext_channel_error_type8008", FT_UINT16, BASE_HEX, VALS(pn_io_ext_channel_error_type0x8008), 0x0, NULL, HFILL } }, { &hf_pn_io_ext_channel_error_type0x800A, { "ExtChannelErrorType", "pn_io.ext_channel_error_type800A", FT_UINT16, BASE_HEX, VALS(pn_io_ext_channel_error_type0x800A), 0x0, NULL, HFILL } }, { &hf_pn_io_ext_channel_error_type0x800B, { "ExtChannelErrorType", "pn_io.ext_channel_error_type800B", FT_UINT16, BASE_HEX, VALS(pn_io_ext_channel_error_type0x800B), 0x0, NULL, HFILL } }, { &hf_pn_io_ext_channel_error_type0x800C, { "ExtChannelErrorType", "pn_io.ext_channel_error_type800C", FT_UINT16, BASE_HEX, VALS(pn_io_ext_channel_error_type0x800C), 0x0, NULL, HFILL } }, { &hf_pn_io_ext_channel_error_type, { "ExtChannelErrorType", "pn_io.ext_channel_error_type", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ext_channel_add_value, { "ExtChannelAddValue", "pn_io.ext_channel_add_value", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ptcp_subdomain_id, { "PTCPSubdomainID", "pn_io.ptcp_subdomain_id", FT_GUID, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ir_data_id, { "IRDataID", "pn_io.ir_data_id", FT_GUID, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_max_bridge_delay, { "MaxBridgeDelay", "pn_io.max_bridge_delay", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_number_of_ports, { "NumberOfPorts", "pn_io.number_of_ports", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_max_port_tx_delay, { "MaxPortTxDelay", "pn_io.max_port_tx_delay", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_max_port_rx_delay, { "MaxPortRxDelay", "pn_io.max_port_rx_delay", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_max_line_rx_delay, { "MaxLineRxDelay", "pn_io.max_line_rx_delay", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_yellowtime, { "YellowTime", "pn_io.yellowtime", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_reserved_interval_begin, { "ReservedIntervalBegin", "pn_io.reserved_interval_begin", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_reserved_interval_end, { "ReservedIntervalEnd", "pn_io.reserved_interval_end", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_pllwindow, { "PLLWindow", "pn_io.pllwindow", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_sync_send_factor, { "SyncSendFactor", "pn_io.sync_send_factor", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_sync_properties, { "SyncProperties", "pn_io.sync_properties", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_sync_frame_address, { "SyncFrameAddress", "pn_io.sync_frame_address", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ptcp_timeout_factor, { "PTCPTimeoutFactor", "pn_io.ptcp_timeout_factor", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ptcp_takeover_timeout_factor, { "PTCPTakeoverTimeoutFactor", "pn_io.ptcp_takeover_timeout_factor", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ptcp_master_startup_time, { "PTCPMasterStartupTime", "pn_io.ptcp_master_startup_time", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ptcp_master_priority_1, { "PTCP_MasterPriority1", "pn_io.ptcp_master_priority_1", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ptcp_master_priority_2, { "PTCP_MasterPriority2", "pn_io.ptcp_master_priority_2", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ptcp_length_subdomain_name, { "PTCPLengthSubdomainName", "pn_io.ptcp_length_subdomain_name", FT_UINT8, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ptcp_subdomain_name, { "PTCPSubdomainName", "pn_io.ptcp_subdomain_name", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_MultipleInterfaceMode_NameOfDevice, { "MultipleInterfaceMode.NameOfDevice", "pn_io.MultipleInterfaceMode_NameOfDevice", FT_UINT32, BASE_HEX, VALS(pn_io_MultipleInterfaceMode_NameOfDevice), 0x01, NULL, HFILL }}, { &hf_pn_io_MultipleInterfaceMode_reserved_1, { "MultipleInterfaceMode.Reserved_1", "pn_io.MultipleInterfaceMode_reserved_1", FT_UINT32, BASE_HEX, NULL, 0xFFFE, NULL, HFILL }}, { &hf_pn_io_MultipleInterfaceMode_reserved_2, { "MultipleInterfaceMode.Reserved_2", "pn_io.MultipleInterfaceMode_reserved_2", FT_UINT32, BASE_HEX, NULL, 0xFFFF0000, NULL, HFILL }}, { &hf_pn_io_pdportstatistic_ifInOctets, { "ifInOctets", "pn_io.ifInOctets", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_pdportstatistic_ifOutOctets, { "ifOutOctets", "pn_io.ifOutOctets", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_pdportstatistic_ifInDiscards, { "ifInDiscards", "pn_io.ifInDiscards", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_pdportstatistic_ifOutDiscards, { "ifOutDiscards", "pn_io.ifOutDiscards", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_pdportstatistic_ifInErrors, { "ifInErrors", "pn_io.ifInErrors", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_pdportstatistic_ifOutErrors, { "ifOutErrors", "pn_io.ifOutErrors", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_domain_boundary, { "DomainBoundary", "pn_io.domain_boundary", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_domain_boundary_ingress, { "DomainBoundaryIngress", "pn_io.domain_boundary.ingress", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_domain_boundary_egress, { "DomainBoundaryEgress", "pn_io.domain_boundary.egress", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_multicast_boundary, { "MulticastBoundary", "pn_io.multicast_boundary", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_adjust_properties, { "AdjustProperties", "pn_io.adjust_properties", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_PreambleLength, { "Preamble Length", "pn_io.preamble_length", FT_UINT16, BASE_DEC_HEX, VALS(pn_io_preamble_length), 0x0, NULL, HFILL } }, { &hf_pn_io_mau_type, { "MAUType", "pn_io.mau_type", FT_UINT16, BASE_HEX, VALS(pn_io_mau_type), 0x0, NULL, HFILL } }, { &hf_pn_io_mau_type_mode, { "MAUTypeMode", "pn_io.mau_type_mode", FT_UINT16, BASE_HEX, VALS(pn_io_mau_type_mode), 0x0, NULL, HFILL } }, { &hf_pn_io_port_state, { "PortState", "pn_io.port_state", FT_UINT16, BASE_HEX, VALS(pn_io_port_state), 0x0, NULL, HFILL } }, { &hf_pn_io_line_delay, { "LineDelay", "pn_io.line_delay", FT_UINT32, BASE_DEC, NULL, 0x0, "LineDelay in nanoseconds", HFILL } }, { &hf_pn_io_number_of_peers, { "NumberOfPeers", "pn_io.number_of_peers", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_length_peer_port_id, { "LengthPeerPortID", "pn_io.length_peer_port_id", FT_UINT8, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_peer_port_id, { "PeerPortID", "pn_io.peer_port_id", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_length_peer_chassis_id, { "LengthPeerChassisID", "pn_io.length_peer_chassis_id", FT_UINT8, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_peer_chassis_id, { "PeerChassisID", "pn_io.peer_chassis_id", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_length_own_chassis_id, { "LengthOwnChassisID", "pn_io.length_own_chassis_id", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_own_chassis_id, { "OwnChassisID", "pn_io.own_chassis_id", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_length_own_port_id, { "LengthOwnPortID", "pn_io.length_own_port_id", FT_UINT8, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_own_port_id, { "OwnPortID", "pn_io.own_port_id", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_peer_macadd, { "PeerMACAddress", "pn_io.peer_macadd", FT_ETHER, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_macadd, { "MACAddress", "pn_io.macadd", FT_ETHER, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_media_type, { "MediaType", "pn_io.media_type", FT_UINT32, BASE_HEX, VALS(pn_io_media_type), 0x0, NULL, HFILL } }, { &hf_pn_io_ethertype, { "Ethertype", "pn_io.ethertype", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_rx_port, { "RXPort", "pn_io.rx_port", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_frame_details, { "FrameDetails", "pn_io.frame_details", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_frame_details_sync_frame, { "SyncFrame", "pn_io.frame_details.sync_frame", FT_UINT8, BASE_HEX, VALS(pn_io_frame_details_sync_master_vals), 0x03, NULL, HFILL } }, { &hf_pn_io_frame_details_meaning_frame_send_offset, { "Meaning", "pn_io.frame_details.meaning_frame_send_offset", FT_UINT8, BASE_HEX, VALS(pn_io_frame_details_meaning_frame_send_offset_vals), 0x0C, NULL, HFILL } }, { &hf_pn_io_frame_details_reserved, { "Reserved", "pn_io.frame_details.reserved", FT_UINT8, BASE_HEX, NULL, 0xF0, NULL, HFILL } }, { &hf_pn_io_nr_of_tx_port_groups, { "NumberOfTxPortGroups", "pn_io.nr_of_tx_port_groups", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_TxPortGroupProperties, { "TxPortGroupProperties", "pn_io.tx_port_properties", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_TxPortGroupProperties_bit0, { "TxPortLocal", "pn_io.tx_port_properties_bit_0", FT_UINT8, BASE_HEX, VALS(pn_io_txgroup_state), 0x01, NULL, HFILL } }, { &hf_pn_io_TxPortGroupProperties_bit1, { "TxPort_1", "pn_io.tx_port_properties_bit_1", FT_UINT8, BASE_HEX, VALS(pn_io_txgroup_state), 0x02, NULL, HFILL } }, { &hf_pn_io_TxPortGroupProperties_bit2, { "TxPort_2", "pn_io.tx_port_properties_bit_2", FT_UINT8, BASE_HEX, VALS(pn_io_txgroup_state), 0x04, NULL, HFILL } }, { &hf_pn_io_TxPortGroupProperties_bit3, { "TxPort_3", "pn_io.tx_port_properties_bit_3", FT_UINT8, BASE_HEX, VALS(pn_io_txgroup_state), 0x08, NULL, HFILL } }, { &hf_pn_io_TxPortGroupProperties_bit4, { "TxPort_4", "pn_io.tx_port_properties_bit_4", FT_UINT8, BASE_HEX, VALS(pn_io_txgroup_state), 0x10, NULL, HFILL } }, { &hf_pn_io_TxPortGroupProperties_bit5, { "TxPort_5", "pn_io.tx_port_properties_bit_5", FT_UINT8, BASE_HEX, VALS(pn_io_txgroup_state), 0x20, NULL, HFILL } }, { &hf_pn_io_TxPortGroupProperties_bit6, { "TxPort_6", "pn_io.tx_port_properties_bit_6", FT_UINT8, BASE_HEX, VALS(pn_io_txgroup_state), 0x40, NULL, HFILL } }, { &hf_pn_io_TxPortGroupProperties_bit7, { "TxPort_7", "pn_io.tx_port_properties_bit_7", FT_UINT8, BASE_HEX, VALS(pn_io_txgroup_state), 0x80, NULL, HFILL } }, { &hf_pn_io_start_of_red_frame_id, { "StartOfRedFrameID", "pn_io.start_of_red_frame_id", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_end_of_red_frame_id, { "EndOfRedFrameID", "pn_io.end_of_red_frame_id", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ir_begin_end_port, { "Port", "pn_io.ir_begin_end_port", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_number_of_assignments, { "NumberOfAssignments", "pn_io.number_of_assignments", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_number_of_phases, { "NumberOfPhases", "pn_io.number_of_phases", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_red_orange_period_begin_tx, { "RedOrangePeriodBegin [TX]", "pn_io.red_orange_period_begin_tx", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_orange_period_begin_tx, { "OrangePeriodBegin [TX]", "pn_io.orange_period_begin_tx", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_green_period_begin_tx, { "GreenPeriodBegin [TX]", "pn_io.green_period_begin_tx", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_red_orange_period_begin_rx, { "RedOrangePeriodBegin [RX]", "pn_io.red_orange_period_begin_rx", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_orange_period_begin_rx, { "OrangePeriodBegin [RX]", "pn_io.orange_period_begin_rx", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_green_period_begin_rx, { "GreenPeriodBegin [RX]", "pn_io.green_period_begin_rx", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_ir_tx_phase_assignment, { "TXPhaseAssignment", "pn_io.tx_phase_assignment_sub", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_tx_phase_assignment_begin_value, { "AssignedValueForReservedBegin", "pn_io.tx_phase_assignment_begin_value", FT_UINT16, BASE_DEC, NULL, 0x0F, NULL, HFILL } }, { &hf_pn_io_tx_phase_assignment_orange_begin, { "AssignedValueForOrangeBegin", "pn_io.tx_phase_assignment_orange_begin", FT_UINT16, BASE_DEC, NULL, 0x0F0, NULL, HFILL } }, { &hf_pn_io_tx_phase_assignment_end_reserved, { "AssignedValueForReservedEnd", "pn_io.tx_phase_assignment_end_reserved", FT_UINT16, BASE_DEC, NULL, 0x0F00, NULL, HFILL } }, { &hf_pn_io_tx_phase_assignment_reserved, { "Reserved should be 0", "pn_io.tx_phase_assignment_reserved", FT_UINT16, BASE_DEC, NULL, 0x0F000, NULL, HFILL } }, { &hf_pn_ir_rx_phase_assignment, { "RXPhaseAssignment", "pn_io.rx_phase_assignment_sub", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_slot, { "Slot", "pn_io.slot", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_subslot, { "Subslot", "pn_io.subslot", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_number_of_slots, { "NumberOfSlots", "pn_io.number_of_slots", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_number_of_subslots, { "NumberOfSubslots", "pn_io.number_of_subslots", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_maintenance_required_power_budget, { "MaintenanceRequiredPowerBudget", "pn_io.maintenance_required_power_budget", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_maintenance_demanded_power_budget, { "MaintenanceDemandedPowerBudget", "pn_io.maintenance_demanded_power_budget", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_error_power_budget, { "ErrorPowerBudget", "pn_io.error_power_budget", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_fiber_optic_type, { "FiberOpticType", "pn_io.fiber_optic_type", FT_UINT32, BASE_HEX, VALS(pn_io_fiber_optic_type), 0x0, NULL, HFILL } }, { &hf_pn_io_fiber_optic_cable_type, { "FiberOpticCableType", "pn_io.fiber_optic_cable_type", FT_UINT32, BASE_HEX, VALS(pn_io_fiber_optic_cable_type), 0x0, NULL, HFILL } }, { &hf_pn_io_controller_appl_cycle_factor, { "ControllerApplicationCycleFactor", "pn_io.controller_appl_cycle_factor", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_time_data_cycle, { "TimeDataCycle", "pn_io.time_data_cycle", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_time_io_input, { "TimeIOInput", "pn_io.time_io_input", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_time_io_output, { "TimeIOOutput", "pn_io.time_io_output", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_time_io_input_valid, { "TimeIOInputValid", "pn_io.time_io_input_valid", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_time_io_output_valid, { "TimeIOOutputValid", "pn_io.time_io_output_valid", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_maintenance_status, { "MaintenanceStatus", "pn_io.maintenance_status", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_maintenance_status_required, { "Required", "pn_io.maintenance_status_required", FT_UINT32, BASE_HEX, NULL, 0x0001, NULL, HFILL } }, { &hf_pn_io_maintenance_status_demanded, { "Demanded", "pn_io.maintenance_status_demanded", FT_UINT32, BASE_HEX, NULL, 0x0002, NULL, HFILL } }, { &hf_pn_io_vendor_id_high, { "VendorIDHigh", "pn_io.vendor_id_high", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_vendor_id_low, { "VendorIDLow", "pn_io.vendor_id_low", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_vendor_block_type, { "VendorBlockType", "pn_io.vendor_block_type", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_order_id, { "OrderID", "pn_io.order_id", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_serial_number, { "IMSerialNumber", "pn_io.im_serial_number", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_hardware_revision, { "IMHardwareRevision", "pn_io.im_hardware_revision", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, /* XXX - better use a simple char here -> vals */ { &hf_pn_io_im_revision_prefix, { "IMRevisionPrefix", "pn_io.im_revision_prefix", FT_UINT8, BASE_HEX, VALS(pn_io_im_revision_prefix_vals), 0x0, NULL, HFILL } }, { &hf_pn_io_im_sw_revision_functional_enhancement, { "IMSWRevisionFunctionalEnhancement", "pn_io.im_sw_revision_functional_enhancement", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_revision_bugfix, { "IM_SWRevisionBugFix", "pn_io.im_revision_bugfix", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_sw_revision_internal_change, { "IMSWRevisionInternalChange", "pn_io.im_sw_revision_internal_change", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_revision_counter, { "IMRevisionCounter", "pn_io.im_revision_counter", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_profile_id, { "IMProfileID", "pn_io.im_profile_id", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_profile_specific_type, { "IMProfileSpecificType", "pn_io.im_profile_specific_type", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_version_major, { "IMVersionMajor", "pn_io.im_version_major", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_version_minor, { "IMVersionMinor", "pn_io.im_version_minor", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_supported, { "IM_Supported", "pn_io.im_supported", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_numberofentries, { "NumberOfEntries", "pn_io.im_numberofentries", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_annotation, { "IM Annotation", "pn_io.im_annotation", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_order_id, { "IM Order ID", "pn_io.im_order_id", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_number_of_ars, { "NumberOfARs", "pn_io.number_of_ars", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_cycle_counter, { "CycleCounter", "pn_io.cycle_counter", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_data_status, { "DataStatus", "pn_io.ds", FT_UINT8, BASE_HEX, 0, 0x0, NULL, HFILL } }, { &hf_pn_io_data_status_res67, { "Reserved (should be zero)", "pn_io.ds_res67", FT_UINT8, BASE_HEX, 0, 0xc0, NULL, HFILL } }, { &hf_pn_io_data_status_ok, { "StationProblemIndicator (1:Ok/0:Problem)", "pn_io.ds_ok", FT_UINT8, BASE_HEX, 0, 0x20, NULL, HFILL } }, { &hf_pn_io_data_status_operate, { "ProviderState (1:Run/0:Stop)", "pn_io.ds_operate", FT_UINT8, BASE_HEX, 0, 0x10, NULL, HFILL } }, { &hf_pn_io_data_status_res3, { "Reserved (should be zero)", "pn_io.ds_res3", FT_UINT8, BASE_HEX, 0, 0x08, NULL, HFILL } }, { &hf_pn_io_data_status_valid, { "DataValid (1:Valid/0:Invalid)", "pn_io.ds_valid", FT_UINT8, BASE_HEX, 0, 0x04, NULL, HFILL } }, { &hf_pn_io_data_status_res1, { "primary AR of a given AR-set is present (0:One/ 1:None)", "pn_io.ds_res1", FT_UINT8, BASE_HEX, 0, 0x02, NULL, HFILL } }, { &hf_pn_io_data_status_primary, { "State (1:Primary/0:Backup)", "pn_io.ds_primary", FT_UINT8, BASE_HEX, 0, 0x01, NULL, HFILL } }, { &hf_pn_io_transfer_status, { "TransferStatus", "pn_io.transfer_status", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_actual_local_time_stamp, { "ActualLocalTimeStamp", "pn_io.actual_local_time_stamp", FT_UINT64, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_local_time_stamp, { "LocalTimeStamp", "pn_io.local_time_stamp", FT_UINT64, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_number_of_log_entries, { "NumberOfLogEntries", "pn_io.number_of_log_entries", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_entry_detail, { "EntryDetail", "pn_io.entry_detail", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ip_address, { "IPAddress", "pn_io.ip_address", FT_IPv4, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_subnetmask, { "Subnetmask", "pn_io.subnetmask", FT_IPv4, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_standard_gateway, { "StandardGateway", "pn_io.standard_gateway", FT_IPv4, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_mrp_domain_uuid, { "MRP_DomainUUID", "pn_io.mrp_domain_uuid", FT_GUID, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_mrp_role, { "MRP_Role", "pn_io.mrp_role", FT_UINT16, BASE_HEX, VALS(pn_io_mrp_role_vals), 0x0, NULL, HFILL } }, { &hf_pn_io_mrp_length_domain_name, { "MRP_LengthDomainName", "pn_io.mrp_length_domain_name", FT_UINT16, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_mrp_domain_name, { "MRP_DomainName", "pn_io.mrp_domain_name", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_mrp_instances, { "NumberOfMrpInstances", "pn_io.mrp_Number_MrpInstances", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_mrp_instance, { "Mrp_Instance", "pn_io.mrp_MrpInstance", FT_UINT8, BASE_DEC, VALS(pn_io_mrp_instance_no), 0x0, NULL, HFILL } }, { &hf_pn_io_mrp_prio, { "MRP_Prio", "pn_io.mrp_prio", FT_UINT16, BASE_HEX, VALS(pn_io_mrp_prio_vals), 0x0, NULL, HFILL } }, { &hf_pn_io_mrp_topchgt, { "MRP_TOPchgT", "pn_io.mrp_topchgt", FT_UINT16, BASE_DEC, NULL, 0x0, "time base 10ms", HFILL } }, { &hf_pn_io_mrp_topnrmax, { "MRP_TOPNRmax", "pn_io.mrp_topnrmax", FT_UINT16, BASE_DEC, NULL, 0x0, "number of iterations", HFILL } }, { &hf_pn_io_mrp_tstshortt, { "MRP_TSTshortT", "pn_io.mrp_tstshortt", FT_UINT16, BASE_DEC, NULL, 0x0, "time base 1 ms", HFILL } }, { &hf_pn_io_mrp_tstdefaultt, { "MRP_TSTdefaultT", "pn_io.mrp_tstdefaultt", FT_UINT16, BASE_DEC, NULL, 0x0, "time base 1ms", HFILL } }, { &hf_pn_io_mrp_tstnrmax, { "MRP_TSTNRmax", "pn_io.mrp_tstnrmax", FT_UINT16, BASE_DEC, NULL, 0x0, "number of outstanding test indications causes ring failure", HFILL } }, { &hf_pn_io_mrp_check, { "MRP_Check", "pn_io.mrp_check", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_mrp_check_mrm, { "MRP_Check.MediaRedundancyManager", "pn_io.mrp_check.mrm", FT_UINT32, BASE_HEX, VALS(pn_io_mrp_mrm_on), 0x01, NULL, HFILL } }, { &hf_pn_io_mrp_check_mrpdomain, { "MRP_Check.MRP_DomainUUID", "pn_io.mrp_check.domainUUID", FT_UINT32, BASE_HEX, VALS(pn_io_mrp_checkUUID), 0x02, NULL, HFILL } }, { &hf_pn_io_mrp_check_reserved_1, { "MRP_Check.reserved_1", "pn_io.mrp_check_reserved_1", FT_UINT32, BASE_HEX, NULL, 0x0FFFFFC, NULL, HFILL } }, { &hf_pn_io_mrp_check_reserved_2, { "MRP_Check.reserved_2", "pn_io.mrp_check_reserved_2", FT_UINT32, BASE_HEX, NULL, 0x0FF000000, NULL, HFILL } }, { &hf_pn_io_mrp_rtmode, { "MRP_RTMode", "pn_io.mrp_rtmode", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_mrp_rtmode_rtclass12, { "RTClass1_2", "pn_io.mrp_rtmode.class1_2", FT_UINT32, BASE_HEX, VALS(pn_io_mrp_rtmode_rtclass12_vals), 0x00000001, NULL, HFILL } }, { &hf_pn_io_mrp_rtmode_rtclass3, { "RTClass1_3", "pn_io.mrp_rtmode.class3", FT_UINT32, BASE_HEX, VALS(pn_io_mrp_rtmode_rtclass3_vals), 0x00000002, NULL, HFILL } }, { &hf_pn_io_mrp_rtmode_reserved1, { "Reserved_1", "pn_io.mrp_rtmode.reserved_1", FT_UINT32, BASE_HEX, NULL, 0x00fffffc, NULL, HFILL } }, { &hf_pn_io_mrp_rtmode_reserved2, { "Reserved_2", "pn_io.mrp_rtmode.reserved_2", FT_UINT32, BASE_HEX, NULL, 0xff000000, NULL, HFILL } }, { &hf_pn_io_mrp_lnkdownt, { "MRP_LNKdownT", "pn_io.mrp_lnkdownt", FT_UINT16, BASE_HEX, NULL, 0x0, "Link down Interval in ms", HFILL } }, { &hf_pn_io_mrp_lnkupt, { "MRP_LNKupT", "pn_io.mrp_lnkupt", FT_UINT16, BASE_HEX, NULL, 0x0, "Link up Interval in ms", HFILL } }, { &hf_pn_io_mrp_lnknrmax, { "MRP_LNKNRmax", "pn_io.mrp_lnknrmax", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_mrp_version, { "MRP_Version", "pn_io.mrp_version", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_substitute_active_flag, { "SubstituteActiveFlag", "pn_io.substitute_active_flag", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_length_data, { "LengthData", "pn_io.length_data", FT_UINT16, BASE_DEC_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_mrp_ring_state, { "MRP_RingState", "pn_io.mrp_ring_state", FT_UINT16, BASE_HEX, VALS(pn_io_mrp_ring_state_vals), 0x0, NULL, HFILL } }, { &hf_pn_io_mrp_rt_state, { "MRP_RTState", "pn_io.mrp_rt_state", FT_UINT16, BASE_HEX, VALS(pn_io_mrp_rt_state_vals), 0x0, NULL, HFILL } }, { &hf_pn_io_im_tag_function, { "IM_Tag_Function", "pn_io.im_tag_function", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_tag_location, { "IM_Tag_Location", "pn_io.im_tag_location", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_date, { "IM_Date", "pn_io.im_date", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_im_descriptor, { "IM_Descriptor", "pn_io.im_descriptor", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_fs_hello_mode, { "FSHelloMode", "pn_io.fs_hello_mode", FT_UINT32, BASE_HEX, VALS(pn_io_fs_hello_mode_vals), 0x0, NULL, HFILL } }, { &hf_pn_io_fs_hello_interval, { "FSHelloInterval", "pn_io.fs_hello_interval", FT_UINT32, BASE_DEC, NULL, 0x0, "ms before conveying a second DCP_Hello.req", HFILL } }, { &hf_pn_io_fs_hello_retry, { "FSHelloRetry", "pn_io.fs_hello_retry", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_fs_hello_delay, { "FSHelloDelay", "pn_io.fs_hello_delay", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_fs_parameter_mode, { "FSParameterMode", "pn_io.fs_parameter_mode", FT_UINT32, BASE_HEX, VALS(pn_io_fs_parameter_mode_vals), 0x0, NULL, HFILL } }, { &hf_pn_io_fs_parameter_uuid, { "FSParameterUUID", "pn_io.fs_parameter_uuid", FT_GUID, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_check_sync_mode, { "CheckSyncMode", "pn_io.check_sync_mode", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_check_sync_mode_reserved, { "Reserved", "pn_io.check_sync_mode.reserved", FT_UINT16, BASE_HEX, NULL, 0xFFFC, NULL, HFILL } }, { &hf_pn_io_check_sync_mode_sync_master, { "SyncMaster", "pn_io.check_sync_mode.sync_master", FT_UINT16, BASE_HEX, NULL, 0x0002, NULL, HFILL } }, { &hf_pn_io_check_sync_mode_cable_delay, { "CableDelay", "pn_io.check_sync_mode.cable_delay", FT_UINT16, BASE_HEX, NULL, 0x0001, NULL, HFILL } }, /* PROFIsafe F-Parameter */ { &hf_pn_io_ps_f_prm_flag1, { "F_Prm_Flag1", "pn_io.ps.f_prm_flag1", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ps_f_prm_flag1_chck_seq, { "F_Check_SeqNr", "pn_io.ps.f_prm_flag1.f_check_seqnr", FT_UINT8, BASE_HEX, VALS(pn_io_f_check_seqnr), 0x01, NULL, HFILL } }, { &hf_pn_io_ps_f_prm_flag1_chck_ipar, { "F_Check_iPar", "pn_io.ps.f_prm_flag1.f_check_ipar", FT_UINT8, BASE_HEX, VALS(pn_io_f_check_ipar), 0x02, NULL, HFILL } }, { &hf_pn_io_ps_f_prm_flag1_sil, { "F_SIL", "pn_io.ps.f_prm_flag1.f_sil", FT_UINT8, BASE_HEX, VALS(pn_io_f_sil), 0xc, NULL, HFILL } }, { &hf_pn_io_ps_f_prm_flag1_crc_len, { "F_CRC_Length", "pn_io.ps.f_prm_flag1.f_crc_len", FT_UINT8, BASE_HEX, VALS(pn_io_f_crc_len), 0x30, NULL, HFILL } }, { &hf_pn_io_ps_f_prm_flag1_crc_seed, { "F_CRC_Seed", "pn_io.ps.f_prm_flag1.f_crc_seed", FT_UINT8, BASE_HEX, VALS(pn_io_f_crc_seed), 0x40, NULL, HFILL } }, { &hf_pn_io_ps_f_prm_flag1_reserved, { "Reserved", "pn_io.ps.f_prm_flag1.reserved", FT_UINT8, BASE_HEX, NULL, 0x80, NULL, HFILL } }, { &hf_pn_io_ps_f_prm_flag2, { "F_Prm_Flag2", "pn_io.ps.f_prm_flag2", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ps_f_prm_flag2_reserved, { "Reserved", "pn_io.ps.f_prm_flag2.reserved", FT_UINT8, BASE_HEX, NULL, 0x07, NULL, HFILL } }, { &hf_pn_io_ps_f_prm_flag2_f_block_id, { "F_Block_ID", "pn_io.ps.f_prm_flag2.f_block_id", FT_UINT8, BASE_HEX, VALS(pn_io_f_block_id), 0x38, NULL, HFILL } }, { &hf_pn_io_ps_f_prm_flag2_f_par_version, { "F_Par_Version", "pn_io.ps.f_prm_flag2.f_par_version", FT_UINT8, BASE_HEX, VALS(pn_io_f_par_version), 0xC0, NULL, HFILL } }, { &hf_pn_io_ps_f_wd_time, { "F_WD_Time", "pn_io.ps.f_wd_time", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ps_f_ipar_crc, { "F_iPar_CRC", "pn_io.ps.f_ipar_crc", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ps_f_par_crc, { "F_Par_CRC", "pn_io.ps.f_par_crc", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ps_f_dest_adr, { "F_Dest_Add", "pn_io.ps.f_dest_add", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_ps_f_src_adr, { "F_Source_Add", "pn_io.ps.f_source_add", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, /* profidrive parameter access */ { &hf_pn_io_profidrive_request_reference, { "RequestReference", "pn_io.profidrive.parameter.request_reference", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_request_id, { "RequestID", "pn_io.profidrive.parameter.request_id", FT_UINT8, BASE_HEX, VALS(pn_io_profidrive_request_id_vals), 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_do_id, { "DO", "pn_io.profidrive.parameter.do", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_no_of_parameters, { "NoOfParameters", "pn_io.profidrive.parameter.no_of_parameters", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_param_attribute, { "Attribute", "pn_io.profidrive.parameter.attribute", FT_UINT8, BASE_HEX, VALS(pn_io_profidrive_attribute_vals), 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_param_no_of_elems, { "NoOfElements", "pn_io.profidrive.parameter.no_of_elems", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_param_number, { "Parameter", "pn_io.profidrive.parameter.number", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_param_subindex, { "Index", "pn_io.profidrive.parameter.index", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_response_id, { "ResponseID", "pn_io.profidrive.parameter.response_id", FT_UINT8, BASE_HEX, VALS(pn_io_profidrive_response_id_vals), 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_param_format, { "Format", "pn_io.profidrive.parameter.format", FT_UINT8, BASE_HEX, VALS(pn_io_profidrive_format_vals), 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_param_no_of_values, { "NoOfValues", "pn_io.profidrive.parameter.no_of_values", FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_param_value_byte, { "Value", "pn_io.profidrive.parameter.value_b", FT_UINT8, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_param_value_word, { "Value", "pn_io.profidrive.parameter.value_w", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_param_value_dword, { "Value", "pn_io.profidrive.parameter.value_dw", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_param_value_float, { "Value", "pn_io.profidrive.parameter.value_float", FT_FLOAT, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_profidrive_param_value_string, { "Value", "pn_io.profidrive.parameter.value_str", FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, }; static gint *ett[] = { &ett_pn_io, &ett_pn_io_block, &ett_pn_io_block_header, &ett_pn_io_status, &ett_pn_io_rtc, &ett_pn_io_rta, &ett_pn_io_pdu_type, &ett_pn_io_add_flags, &ett_pn_io_control_command, &ett_pn_io_ioxs, &ett_pn_io_api, &ett_pn_io_data_description, &ett_pn_io_module, &ett_pn_io_submodule, &ett_pn_io_io_data_object, &ett_pn_io_io_cs, &ett_pn_io_ar_properties, &ett_pn_io_iocr_properties, &ett_pn_io_submodule_properties, &ett_pn_io_alarmcr_properties, &ett_pn_io_submodule_state, &ett_pn_io_channel_properties, &ett_pn_io_slot, &ett_pn_io_subslot, &ett_pn_io_maintenance_status, &ett_pn_io_data_status, &ett_pn_io_iocr, &ett_pn_io_mrp_rtmode, &ett_pn_io_control_block_properties, &ett_pn_io_check_sync_mode, &ett_pn_io_ir_frame_data, &ett_pn_FrameDataProperties, &ett_pn_io_ar_info, &ett_pn_io_ar_data, &ett_pn_io_ir_begin_end_port, &ett_pn_io_ir_tx_phase, &ett_pn_io_ir_rx_phase, &ett_pn_io_subframe_data, &ett_pn_io_SFIOCRProperties, &ett_pn_io_frame_defails, &ett_pn_io_profisafe_f_parameter, &ett_pn_io_profisafe_f_parameter_prm_flag1, &ett_pn_io_profisafe_f_parameter_prm_flag2, &ett_pn_io_profidrive_parameter_request, &ett_pn_io_profidrive_parameter_response, &ett_pn_io_profidrive_parameter_address, &ett_pn_io_profidrive_parameter_value, &ett_pn_io_GroupProperties }; static ei_register_info ei[] = { { &ei_pn_io_block_version, { "pn_io.block_version.not_implemented", PI_UNDECODED, PI_WARN, "Block version not implemented yet!", EXPFILL }}, { &ei_pn_io_error_code1, { "pn_io.error_code1.expert", PI_UNDECODED, PI_WARN, "Unknown ErrorCode1", EXPFILL }}, { &ei_pn_io_error_code2, { "pn_io.error_code2.expert", PI_UNDECODED, PI_WARN, "Unknown ErrorDecode", EXPFILL }}, { &ei_pn_io_ar_info_not_found, { "pn_io.ar_info_not_found", PI_UNDECODED, PI_NOTE, "IODWriteReq: AR information not found!", EXPFILL }}, { &ei_pn_io_block_length, { "pn_io.block_length.invalid", PI_UNDECODED, PI_WARN, "Block length invalid!", EXPFILL }}, { &ei_pn_io_unsupported, { "pn_io.profidrive.parameter.format.invalid", PI_UNDECODED, PI_WARN, "Unknown Fomatvalue", EXPFILL }}, { &ei_pn_io_mrp_instances, { "pn_io.mrp_Number_MrpInstances.invalid", PI_UNDECODED, PI_WARN, "Number of MrpInstances invalid", EXPFILL }}, { &ei_pn_io_frame_id, { "pn_io.frame_id.changed", PI_UNDECODED, PI_WARN, "FrameID changed", EXPFILL }}, { &ei_pn_io_iocr_type, { "pn_io.iocr_type.unknown", PI_UNDECODED, PI_WARN, "IOCRType undecoded!", EXPFILL }}, { &ei_pn_io_localalarmref, { "pn_io.localalarmref.changed", PI_UNDECODED, PI_WARN, "AlarmCRBlockReq: local alarm ref changed", EXPFILL }}, { &ei_pn_io_nr_of_tx_port_groups, { "pn_io.nr_of_tx_port_groups.not_allowed", PI_PROTOCOL, PI_WARN, "Not allowed value of NumberOfTxPortGroups", EXPFILL }}, }; module_t *pnio_module; expert_module_t* expert_pn_io; proto_pn_io = proto_register_protocol ("PROFINET IO", "PNIO", "pn_io"); /* Register by name */ register_dissector("pnio", dissect_PNIO_heur, proto_pn_io); /* Created to remove Decode As confusion */ proto_pn_io_controller = proto_register_protocol ("PROFINET IO (Controller)", "PNIO (Controller)", "pn_io_controller"); proto_pn_io_supervisor = proto_register_protocol ("PROFINET IO (Supervisor)", "PNIO (Supervisor)", "pn_io_supervisor"); proto_pn_io_parameterserver = proto_register_protocol ("PROFINET IO (Parameter Server)", "PNIO (Parameter Server)", "pn_io_parameterserver"); proto_register_field_array (proto_pn_io, hf, array_length (hf)); proto_register_subtree_array (ett, array_length (ett)); expert_pn_io = expert_register_protocol(proto_pn_io); expert_register_field_array(expert_pn_io, ei, array_length(ei)); /* Register preferences */ pnio_module = prefs_register_protocol(proto_pn_io, NULL); prefs_register_bool_preference(pnio_module, "pnio_ps_selection", "Enable detailed PROFIsafe dissection", "Whether the PNIO dissector is allowed to use detailed PROFIsafe dissection of cyclic data frames", &pnio_ps_selection); prefs_register_directory_preference(pnio_module, "pnio_ps_networkpath", "Configuration GSD-File Networkpath", /* Title */ "Select your Networkpath to your GSD-Files.", /* Descreption */ &pnio_ps_networkpath); /* Variable to save the GSD-File networkpath */ /* subdissector code */ register_dissector("pn_io", dissect_PNIO_heur, proto_pn_io); heur_pn_subdissector_list = register_heur_dissector_list("pn_io", proto_pn_io); /* Initialise RTC1 dissection */ init_pn_io_rtc1(proto_pn_io); /* Cleanup functions of PNIO protocol */ register_cleanup_routine(pnio_cleanup); register_conversation_filter("pn_io", "PN-IO AR", pn_io_ar_conv_valid, pn_io_ar_conv_filter); register_conversation_filter("pn_io", "PN-IO AR (with data)", pn_io_ar_conv_valid, pn_io_ar_conv_data_filter); } void proto_reg_handoff_pn_io (void) { /* Register the protocols as dcerpc */ dcerpc_init_uuid (proto_pn_io, ett_pn_io, &uuid_pn_io_device, ver_pn_io_device, pn_io_dissectors, hf_pn_io_opnum); dcerpc_init_uuid (proto_pn_io_controller, ett_pn_io, &uuid_pn_io_controller, ver_pn_io_controller, pn_io_dissectors, hf_pn_io_opnum); dcerpc_init_uuid (proto_pn_io_supervisor, ett_pn_io, &uuid_pn_io_supervisor, ver_pn_io_supervisor, pn_io_dissectors, hf_pn_io_opnum); dcerpc_init_uuid (proto_pn_io_parameterserver, ett_pn_io, &uuid_pn_io_parameterserver, ver_pn_io_parameterserver, pn_io_dissectors, hf_pn_io_opnum); heur_dissector_add("pn_rt", dissect_PNIO_heur, "PROFINET IO", "pn_io_pn_rt", proto_pn_io, HEURISTIC_ENABLE); } /* * Editor modelines * * Local Variables: * c-basic-offset: 4 * tab-width: 8 * indent-tabs-mode: nil * End: * * ex: set shiftwidth=4 tabstop=8 expandtab: * :indentSize=4:tabSize=8:noTabs=true: */ ```
Christopher T. Bayley served as the King County prosecuting attorney from 1971 to 1979. He remains active in the political, business, and legal communities of Washington state. Early life and military service Bayley received his Bachelor of Arts in history from Harvard College (1960) and his Juris Doctor from Harvard Law School (1966). He also served three years as an active-duty officer in the United States Navy. After his active-duty service, Bayley joined the United States Navy Reserve and served until 1985, retiring as a Captain (O-6). Legal and political career Bayley began his legal career in 1966 as an associate at Lane Powell. He then served as a Deputy Attorney General and Chief of the Consumer Protection and Antitrust Division under Washington State Attorney General Slade Gorton. In 1971, he was elected as the King County Prosecuting Attorney. In 1971, he led a grand jury investigation with Judge Stanley C. Soderland and attorney Evan Schwab into police payoffs. Bayley served two terms and was succeeded by Norm Maleng in 1979. He then became Partner in Charge of Public Finance at Perkins Coie. Bayley continued to remain active in Republican politics in the state of Washington. In 1998, he ran unsuccessfully for the United States Senate, losing to Linda Smith in the Republican primaries. Business career Bayley has been involved in a number of business ventures. In 1982, he became Senior Vice President at Burlington Northern Resources. In 1985, he became President of Glacier Park Company (a real estate subsidiary of Burlington Northern Resources). In 1992, he left Burlington Northern Resources and became Chairman of New Pacific Partners. In 1998, Bayley formed the Resource Action Council (renamed to Stewardship Partners in 2002. Since 1999 Bayley has been Chair and Principal of Dylan Bay Consulting. Clients include law firms, companies and individual who need help with environmental or political strategy before the Washington legislature or local governments Recent projects include sale of 50,000 acres in the Teanaway Valley to the state for environmental protection and passage of the Washington Law on International Arbitration in the 2015 legislative session . Bayley has served as a member of the Harvard Board of Overseers, and the national boards of The Nature Conservancy, Discovery Institute, Scenic America and The National Organization for Olmsted Parks. As of February 2021, Bayley is the acting president of the Classical KING FM Board of Directors. References Further reading Christopher T. Bayley, Seattle Justice: The Rise and Fall of the Police Payoff System in Seattle (2015), Sasquatch Books. . External links https://web.archive.org/web/20130510023629/http://www.stewardshippartners.org/about-us/board-of-directors/ Stewardship Partners Biography http://www.sabre.org/about/bios/OD_bio_C_Bayley.php Sabre Foundation Biography https://web.archive.org/web/20130514184243/http://www.olmsted.org/naop-about/naop-board-of-trustees/biographies/269 Olmsted Parks Biography Bloomberg Businessweek Biography Christopher T. Bayley, "How the Killings of Four Black Men by Police Changed Seattle. And Didn’t", Seattle Weekly, 2015-10-20 Living people Harvard Law School alumni United States Navy reservists Washington (state) lawyers Place of birth missing (living people) Year of birth missing (living people) Harvard College alumni Washington (state) Republicans People associated with Perkins Coie
Hesar-e Kazimabad (, also Romanized as Ḩeşār-e Kāẓimābād) is a village in Milanlu Rural District, in the Central District of Esfarayen County, North Khorasan Province, Iran. At the 2006 census, its population was 28, in 7 families. References Populated places in Esfarayen County
```javascript /** * Mocking client-server processing */ const _products = [ {"id": 1, "title": "iPad 4 Mini", "price": 500.01, "inventory": 2}, {"id": 2, "title": "H&M T-Shirt White", "price": 10.99, "inventory": 10}, {"id": 3, "title": "Charli XCX - Sucker CD", "price": 19.99, "inventory": 5} ] export default { getProducts (cb) { setTimeout(() => cb(_products), 100) }, buyProducts (products, cb, errorCb) { setTimeout(() => { // simulate random checkout failure. (Math.random() > 0.5 || navigator.userAgent.indexOf('PhantomJS') > -1) ? cb() : errorCb() }, 100) } } ```
Pizza II: Villa is a 2013 Indian Tamil-language horror thriller film written and directed by debutant Deepan Chakravarthy. It is the second installment in the Pizza (film series). The film stars Ashok Selvan and Sanchita Shetty in lead roles, while Nassar and Vegan Rajesh appear in other pivotal roles The music for the film was composed by Santhosh Narayanan, while cinematography was handled by Deepak Kumar Padhy and Leo John Paul has done the editing. Produced jointly by Thirukumaran Entertainment and Studio Green, Pizza II: Villa is a spiritual successor to Pizza (2012). The filming commenced on 17 April and was completed in May 2013. The film released in November 2013 to positive reviews from the critics and audience. Plot A debutant English crime novel writer Jebin M. Jose discovers that his deceased father had run bankrupt with an unlisted property in Pondicherry. To pay off the debts, he makes a visit to the villa for valuation. But after seeing framed paintings by his father, he calls his girlfriend Aarthi, who is an art student, to accompany him to the villa. She immediately likes both the villa and the mysterious paintings. She particularly shows interest in one dual faced painting. Aarthi urges Jebin not to sell the villa. Within a few days time, Jebin's career gets a new break when an established publisher comes forward to buy rights for his first novel Maybe, Maybe Not!. He also gets advance in a two-book contract. Seeing this as a sign, Jebin continues to stay at the villa in hopes it will bring him good luck while starting to work on his second novel The Director. Meanwhile, Aarthi returns to Chennai to seek permission from her father for their marriage, leaving Jebin alone in the villa. One night, an ecstatic Jebin plays the Victorian piano. The strings get jammed abruptly. He opens the lid and finds a secret key underneath. Jebin also gets curious on the remarkable geometry of one of the paintings which appears to be more like a map than a work of art. He notices that it is similar to the floor plan of the villa given to him by his lawyer. As he probes each room in the villa, he stumbles upon a secret door behind a wardrobe. He uses the secret key to open the lock and discovers plenty of paintings rolled up inside a trunk. Many scenes appear to have come straight out of his own life, like his mother's death by car accident. Jebin slowly realises that his father had precognition skills and concludes that his paintings may predict future events. Not too long after that, Jebin wins a prestigious literary award and critical acclaim for his debut novel, as depicted in one of his father's paintings. However, he gets overwhelmed by this unexplained occurrence and tries to sell off the villa. During the process, the estate agent gets injured in a freak accident by the cast-iron gate, scaring away potential buyers who view this as a bad omen. Frustrated, Jebin furiously tries to complete his second novel. When Aarthi returns from Chennai, Jebin tells her about his discovery. They decide to burn all the paintings in the secret room. But almost instinctively, the secret room defends itself by toppling furniture and fittings to block their entry. Jebin's best friend advises him to consult a renowned parapsychologist, Devanesan to find a solution. Devanesan conjectures that the villa may have the left-over negative energy of prior owners as symptoms manifest psychic phenomena. Jebin also finds the identities and whereabouts of prior owners. But all report similar grim events in their lives like infanticide, lunacy, fratricide, disease, insolvency, death, et al. Devanesan also suggests that Jebin's father may have found an outlet, in his passion for paintings, to survive this negative energy which can neither be created nor destroyed but only transferred. He then begins to conduct more experiments using a tuning fork within the villa compound. But all hell break loose midway and apparitions begin to appear. In the chaos, Jebin's best friend loses his legs. Jebin even finds some paintings depicting a man and a woman getting married, and the man eventually killing the woman. Assuming that his father predicted that he would end up killing Aarthi, Jebin sets fire to himself and the villa to prevent him from harming the girl he loves. When Aarthi sees that Jebin has taken his own life before legally marrying her, she realises she has no claim over his estate. It is then revealed that Aarthi's true intentions were indicated by the dual faced painting she liked when she visited the villa. She had hoped to secure the money Jebin would gain from his book sale and selling the villa. With Jebin dead, Aarthi quickly seduces and marries an up-and-coming movie director. However, it is revealed that Aarthi's killer in the painting that Jebin assumed was him is actually Aarthi's new husband, the movie director. Thus, it can be understood that Jebin did not realise that he too inherited his father's gift, with his second novel depicting that a "director" character would soon appear in the prophecy. Cast Production After Pizza became successful, young software professional and short filmmaker Deepan Chakravarthy came up with the idea of making a sequel. He wrote the script in three weeks and submitted it to the producer, who thought of building it up as a franchise. Thirukumaran Entertainment who produced Pizza produce the sequel too. In March 2013, Studio Green secured the film and co-produced it. Abinesh Elangovan of Abi & Abi Pictures bought the theatrical rights of the movie. Vaibhav Reddy and Sanchita Shetty were cast as the lead pair at first. Later it was said that K.E. Gnanavel Raja of Studio Green, chose to remove Vaibhav and Sanchita from the cast to replace them with bigger names. But Sanchita was retained and Vaibhav only was replaced by Ashok Selvan, who were both part of the hit film Soodhu Kavvum. Deepan said that most of the actors of Pizza are part of Villa as well, but were playing different characters. Ashok Selvan plays a 30-year-old writer in the film, and Sanchitha plays lover of the hero in the film. S. J. Suryah was also added to the cast, but his role was not disclosed to the public. Nevertheless, Suryah played guest appearance in the film. A song sequence, a romantic number at that, called Aayiram Enngal was filmed at Luz Church, Mylapore. Pizza II : Villa will have Dolby Atmos sound. Soundtrack The soundtrack album was composed by Santhosh Narayanan, with lyrics penned by GKB and Arunraja Kamaraj. The album was released at the Suryan FM Radio Station, Chennai on 2 September 2013. Think Music purchased the audio rights for the album. Reception S Saraswathi of Rediff.com wrote, "The film is deliberately slow-paced, unfolding gradually with nothing too creepy--no gory death scenes or disgusting supernatural creatures" and its only flaw was "the excessive scientific explanations provided to justify the supernatural happenings". Sequel A sequel titled Pizza 3: The Mummy, was released in 2023. References External links 2010s Tamil-language films 2013 directorial debut films 2013 films 2013 horror thriller films Films shot in Chennai Indian horror thriller films Indian sequel films
Dr. Ketan R. Patel (also known as Dr. Ketan Rajnibhai Patel) is an Indian pharmacist, Innovator, and serves as the Chairman & Managing Director of Troikaa Pharmaceuticals Ltd., a pharmaceutical company headquartered in Gujarat, India. Education & career Dr. Patel is a distinguished achiever and earned Gold Medals during both his Bachelor of Pharmacy and Master of Pharmacy programs from L. M. College of Pharmacy, Ahmedabad. His academic journey also includes a Ph.D. in Pharmaceutical Technology, which he obtained from Dharamsinh Desai University, Gujarat. Dr. Patel has made significant contributions by establishing the "Rajnibhai.V. Patel Pharmlnnova Award" under the aegis of the Department of Science and Technology (India). Details of his innovative journey are documented in the book titled 'THE INNOVATORS,' published by the Department of Science and Technology (India) Government of India. Membership and Boards Dr Ketan Patel held the esteemed position of Chairman of the Board of Governors at NIPER, Ahmedabad and also served as a member of the Board of Governors for Gujarat Technological University. He is also a member of the Academic Council at National Forensic Sciences University, Ahmadabad (Also known as Gujarat Forensic Sciences University). He also serves as a member of the Board of Directors at i-HUB, one of the biggest startup institute established by the Government of Gujarat. Patel is the Chairman of the Board of Governors at National Institute of Pharmaceutical Education & Research (NIPER), Gandhinagar. Invention Dr. Patel is the primary inventor and patent holder of a painless diclofenac injection marketed under the brand name 'DYNAPAR-AQ' by Troikaa Pharmaceuticals Ltd. His groundbreaking innovation earned recognition from the Government of India’s Department of Science & Industrial Research, which honored him with the National Award in 2008. In 2008, he invented a quick, powerful & long-lasting penetrating solution of Diclofenac designed for Topical administration known as “Dynapar QPS”, for which he was conferred with prestigious National Award in 2015 from the Department of Science & Technology, Govt of India. In 2019, he introduced another groundbreaking solution for Vitamin B12 deficiency. NasoB12, the world's first globally approved nasal drug delivery system, utilizes Methylcobalamin, the biologically active form of Vitamin B12, to effectively address Vitamin B12 deficiency, which has high prevalence in India and developing nations. NASO B12 was honored with the "India Star Award" for outstanding packaging design. This award was provided by the Indian Institute of Packaging, an autonomous body operating under the aegis of the Ministry of Commerce and Industry, Government of India. In 2023, Xykaa IM, world’s first 500mg Paracetamol/2ml injection was introduced by Ketan Patel and Milan Patel. This is a vital medicine for rapid control of high fever. It provides quick potent fever relief with 72% higher bio availability than oral Paracetamol. Publications PENETRATION OF DICLOFENAC FROM NOVEL QUICK PENETRATING SOLUTION. A COMPARATIVE SCINTIGRAPHY STUDY WITH GEL, Sanjaykumar H. Maroo, Ketan R. Patel and Aseem Bhatnagar, International Journal of Pharma & Science Res.2013;5(4):175-178 A Comparative Dermal Microdialysis Study of Diclofenac QPS versus Conventional 1% Diclofenac Gel , Sanjay Kumar H. Maroo1*, Ketan R. Patel, Vipul Prajapati, Rajen Shah, Milind Bagul, ISSN 0975-248X, 2013, vol5, issue4 Comparison of Heparin Quick Penetrating Solution and Diclofenac Quick Penetrating Solution for the Prevention of Superficial Thrombophlebitis Caused by Peripheral Venous Cannulation: A Randomized Double-Blind Study, Akhileshwar and Swati Singh, doi: 10.4103/aer.AER_189_18, 2019 Jan-Mar; 13(1): 155–157, Evaluation of Skin Penetration of Diclofenac from a Novel Topical Non Aqueous Solution: A Comparative Bioavailability Study, Manish Nivsarkar, Sanjaykumar Maroo, Ketan R Patel, Dixit D Patel, ISSN: 0975-8232, 2017 References Living people Indian scientists Pharmacists Indian businesspeople Dharamsinh Desai University alumni Year of birth missing (living people)
Tyson Clabo (born October 17, 1981) is a former American football offensive tackle. He was signed by the Denver Broncos as an undrafted free agent in 2004. He played college football at Wake Forest. Clabo is the nephew of retired NFL punter Neil Clabo He was also a member of the New York Giants, San Diego Chargers, Atlanta Falcons, Miami Dolphins, and Houston Texans. Early years Clabo attended Farragut High School in Farragut, Tennessee and lettered in football and basketball. In football, he was a two-time All-Conference selection, and as a senior, he was also named as an All-Region selection, an All-east Tennessee selection, and as an All-State selection. College career Clabo played football at Wake Forest. Clabo started all 11 games at left tackle as a sophomore, and he was the only underclassman to start every contest that year. Clabo started all 13 games as a junior and moved to left guard after playing tackle in 2001, helping the Deacon ground game lead the ACC in rushing for the second-straight year. He started the final 36 games of his college career and a total of 37 contests of 47 games played at Wake Forest. Clabo earned first-team All-Atlantic Conference honors as a senior. In 2018 he was inducted into the Wake Forest Sports Hall of Fame. Professional career Denver Broncos Clabo originally signed with Denver Broncos as an undrafted rookie free agent and was waived by the Broncos during the 2004-05 offseason. New York Giants He signed with the New York Giants as a practice squad member. San Diego Chargers He then signed with the San Diego Chargers as a practice squad member. Atlanta Falcons Clabo eventually was signed to the Falcons practice squad in September 2005 and re-signed by the Falcons team in January 2006. Clabo started all 16 games and was a 2010 Pro Bowl selection. On July 29, 2011, Clabo signed a five-year contract with the Atlanta Falcons. He started in all 16 games in the 2011 season. In 2012, Clabo started every regular season game at right tackle for the fifth consecutive year including the two playoff games against Seattle and San Francisco. At the end of the season, Clabo received two all-pro votes for his play. On April 4, 2013, Clabo was released by the Falcons. Clabo ended his career with the Falcons after 7 years and 101 starts, currently putting him 58th in franchise history. Between 2008 and 2012, Clabo started every single game and anchored an offensive line for 4 playoff teams. In July 2020, Clabo was named to the Atlanta Falcons all-decade team alongside longtime left tackle Jake Matthews. Miami Dolphins On May 5, 2013, Clabo signed with the Miami Dolphins. He appeared in and started 15 games in the 2013 season. Houston Texans On July 23, 2014, Clabo signed with the Houston Texans. He appeared in all 16 games for the Texans in the 2014 season. A majority of his offensive line snaps came in Week 16 against the Baltimore Ravens. References External links 1981 births Living people American football offensive guards American football offensive tackles Atlanta Falcons players Denver Broncos players Farragut High School alumni Hamburg Sea Devils players Houston Texans players Miami Dolphins players New York Giants players San Diego Chargers players Wake Forest Demon Deacons football players Players of American football from Knoxville, Tennessee People from Farragut, Tennessee
Victoria Tagoe was a Ghanaian politician and member of the second Parliament of the 1st Republic of Ghana. Tagoe served as the member of parliament for the Birimagya constituency in the Eastern Region of Ghana. She remained in this position from 1965 until 24 February 1966 when the Nkrumah government was overthrown. References Ghanaian MPs 1965–1966 Women members of the Parliament of Ghana 20th-century Ghanaian politicians 20th-century Ghanaian women politicians
```java package com.beloo.widget.chipslayoutmanager.layouter; import android.support.annotation.IntRange; import java.util.Iterator; public abstract class AbstractPositionIterator implements Iterator<Integer> { int pos; int itemCount; AbstractPositionIterator(@IntRange(from = 0) int itemCount) { if (itemCount < 0) throw new IllegalArgumentException("item count couldn't be negative"); this.itemCount = itemCount; } public void move(@IntRange(from = 0) int pos) { if (pos >= itemCount) throw new IllegalArgumentException("you can't move above of maxItemCount"); if (pos < 0) throw new IllegalArgumentException("can't move to negative position"); this.pos = pos; } @Override public void remove() { throw new UnsupportedOperationException("removing not supported in position iterator"); } } ```
"River Song" is a song written by Dennis Wilson and his younger brother Carl Wilson. It served as the opening track for Dennis Wilson's 1977 debut solo album Pacific Ocean Blue. The song was released as a single in Europe with the B-side being "Farewell My Friend". The single however, failed to chart. The track, as with the rest of the album, was credited as being produced by Dennis and his close friend Gregg Jakobson. Dennis Wilson sings the lead vocals on this and every other track on the album. Recording All the keyboards featured in the song were provided by Dennis Wilson. The opening piano part of the song had origins seven years earlier during recording sessions held in 1970. The piano riff represents the flowing of a river. In an interview, Dennis explained that he was "in the High Sierras walking by this river that was very small and it kept getting bigger and bigger", and he explains that this is the purpose — to represent the river — of "the guitar sound on the track" The music, according to Dennis, "came from the river". The Beach Boys version The Beach Boys performed the song live in the early 1970s and had attempted to record the song, but their version was left unfinished. The band then used Dennis Wilson's solo version for their 1981 two-disc greatest hits collection, Ten Years of Harmony. Personnel Credits from Craig Slowinski. Dennis Wilson – lead vocals, harmony and backing vocals, bass vocals, piano, Minimoog synthesizer, producer, arrangements, choral vocal arrangements Carl Wilson – harmony and backing vocals, lead/rhythm guitar Billy Hinsche – harmony and backing vocals, bass vocals, lead/rhythm guitar Ed Carter – bass Ricky Fataar – drums Ed Tuleja – bass vocals Gregg Jakobson – bass vocals, producer The Double Rock Baptist Church Voices of Inspiration Choir – choral vocals Alexander Hamilton – bass vocals, choral vocal arrangements, choir conductor References Songs about rivers 1977 singles Dennis Wilson songs Songs written by Carl Wilson Songs written by Dennis Wilson Song recordings produced by Dennis Wilson 1970 songs
```javascript // // This software (Documize Community Edition) is licensed under // GNU AGPL v3 path_to_url // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a commercial license // by contacting <sales@documize.com>. // // path_to_url import { computed } from '@ember/object'; import Component from '@ember/component'; export default Component.extend({ tagName: 'i', classNames: [''], classNameBindings: ['calcClass'], icon: null, calcClass: computed(function() { let icon = this.icon; let constants = this.get('constants'); if (_.isNull(icon)) { return ''; } if (_.isEmpty(icon)) { icon = constants.IconMeta.Apps; } return 'dmeta ' + icon; }) }); ```
The rate of return on a portfolio is the ratio of the net gain or loss (which is the total of net income, foreign currency appreciation and capital gain, whether realized or not) which a portfolio generates, relative to the size of the portfolio. It is measured over a period of time, commonly a year. Calculation The rate of return on a portfolio can be calculated either directly or indirectly, depending the particular type of data available. Direct historical measurement Direct historical measurement of the rate of return on a portfolio applies one of several alternative methods, such as for example the time-weighted return or the modified Dietz method. It requires knowledge of the value of the portfolio at the start and end of the period of time under measurement, together with the external flows of value into and out of the portfolio at various times within the time period. For the time-weighted method, it is also necessary to know the value of the portfolio when these flows occur (i.e. either immediately after, or immediately before). Indirect calculation The rate of return on a portfolio can be calculated indirectly as the weighted average rate of return on the various assets within the portfolio. The weights are proportional to the value of the assets within the portfolio, to take into account what portion of the portfolio each individual return represents in calculating the contribution of that asset to the return on the portfolio. This method is particularly useful for projecting into the future the rate of return on a portfolio, given projections of the rates of return on the constituents of the portfolio. The indirect calculation of the rate of return on a portfolio can be expressed by the formula: which is the sum of the contributions , where: equals the rate of return on the portfolio, equals the weight of asset i in the portfolio, and equals the rate of return on asset i in the portfolio. Example Rate of return rm on a mining stock equals 10% Rate of return rc on a child care centre equals 8% Rate of return rf on a fishing company equals 12% Now suppose that 40% of the portfolio is in the mining stock (weighting for this stock Am = 40%), 40% is in the child care centre (weighting for this stock Ac = 40%) and the remaining 20% is in the fishing company (weighting for this stock Af = 20%). To determine the rate of return on this portfolio, first calculate the contribution of each asset to the return on the portfolio, by multiplying the weighting of each asset by its rate of return, and then add these contributions together: For the mining stock, its weighting is 40% and its rate of return is 10% so its contribution equals 40% x 10% = .04 = 4% For the child care centre, its weighting is 40% and its rate of return is 8% so its contribution equals 40% x 8% = .032 = 3.2% For the fishing company, its weighting is 20% and its rate of return is 12% so its contribution equals 20% x 12% = .024 = 2.4% Adding together these percentage contributions gives 4% + 3.2% + 2.4% = 9.6%, resulting in a rate of return on this portfolio of 9.6%. Negative weights The weight of a particular asset in a portfolio can be negative, as in the case of a liability such as a loan or a short position, inside a portfolio with positive overall value. In such a case, the contribution to the portfolio return will have the opposite sign to the return. Example A portfolio contains a cash account holding US$2,000 at the beginning of the period. The same portfolio also contains a US$1,000 loan at the start of the period. The net value of the portfolio at the beginning of the period is 2,000 - 1,000 = US$1,000. At the end of the period, 1 percent interest has accrued on the cash account, and 5 percent has accrued on the loan. There have been no transactions over the period. The weight of the cash account in the portfolio is 200 percent, and the weight of the loan is -100 percent. The contribution from the cash account is therefore 2 × 1 percent, and the contribution from the loan is -1 × 5 percent. Although the loan liability has grown, so it has a positive return, its contribution is negative. The total portfolio return is 2 - 5 = -3 percent. Negative net assets In cases where the overall net value of the portfolio is greater than zero, then the weight of a liability within the portfolio, such as a borrowing or a short position, is negative. Conversely, in cases where the overall net asset value of the portfolio is less than zero, i.e. the liabilities outweigh the assets, the weights are turned on their heads, and the weights of the liabilities are positive, and the weights of the assets are negative. Example The owner of an investment portfolio borrows US$200,000 from the bank to invest in securities. The portfolio suffers losses, and the owner sells all its holdings. These trades, plus interest paid on the loan, leave US$100,000 cash. The net asset value of the portfolio is 100,000 - 200,000 = -100,000 USD. Going forward into the next period, the weight of the loan is -200,000/-100,000 = +200 percent, and the weight of the cash remaining is +100,000/-100,000 = -100 percent. Returns in the case of negative net assets If a portfolio has negative net assets, i.e. it is a net liability, then a positive return on the portfolio net assets indicates the growth of the net liability, i.e. a further loss. Example US$10,000 interest is accrued on a US$200,000 loan borrowed from a bank. The liability has grown 10,000/200,000 = 5 percent. The return is positive, even though the borrower has lost US$10,000, instead of gained. Contributions in the case of negative net assets A positive contribution to return on negative net assets indicates a loss. It will be associated either with a positive weight combined with a positive return, indicating a loss on a liability, or a negative weight combined with a negative return, indicating a loss on an asset. Discrepancies If there are any external flows or other transactions on the assets in the portfolio during the period of measurement, and also depending on the methodology used for calculating the returns and weights, discrepancies may arise between the direct measurement of the rate of return on a portfolio, and indirect measurement (described above). See also Investment management Modified Dietz method Profit (accounting) Return on capital Risk-adjusted return on capital Time-weighted return References Financial ratios Investment Mathematical finance
Blind Terror is a 2001 thriller film directed by Giles Walker and starring Nastassja Kinski, Stewart Bick and Gordon Pinsent. It was written by Douglas Soesbe. Premise Kinski plays a wealthy, talented young widow who remarries in haste. Suddenly her world is shattered by a series of threatening calls from her new husband's ex-wife. When efforts to stop the woman's assault of terror fails, Kinski is forced to act on her own, uncovering a secret. Cast External links 2000s mystery thriller films 2001 films Canadian mystery thriller films English-language Canadian films Films directed by Giles Walker 2000s English-language films 2000s Canadian films
```java /* * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ package io.ballerina.runtime.internal.types; import io.ballerina.runtime.api.Module; import io.ballerina.runtime.api.flags.SymbolFlags; import io.ballerina.runtime.api.types.MethodType; import io.ballerina.runtime.api.types.NetworkObjectType; import io.ballerina.runtime.api.types.RemoteMethodType; import io.ballerina.runtime.api.types.ResourceMethodType; import java.util.ArrayList; /** * {@code BNetworkObjectType} represents a network object in Ballerina. * * @since 2201.2.0 */ public class BNetworkObjectType extends BObjectType implements NetworkObjectType { private ResourceMethodType[] resourceMethods; private volatile RemoteMethodType[] remoteMethods; public BNetworkObjectType(String typeName, Module pkg, long flags) { super(typeName, pkg, flags); } public void setResourceMethods(ResourceMethodType[] resourceMethods) { this.resourceMethods = resourceMethods; } /** * Gen an array of remote functions defined in the network object. * * @return array of remote functions */ @Override public RemoteMethodType[] getRemoteMethods() { if (remoteMethods == null) { RemoteMethodType[] funcs = getRemoteMethods(getMethods()); synchronized (this) { if (remoteMethods == null) { remoteMethods = funcs; } } } return remoteMethods; } private RemoteMethodType[] getRemoteMethods(MethodType[] methodTypes) { ArrayList<MethodType> functions = new ArrayList<>(); for (MethodType funcType : methodTypes) { if (SymbolFlags.isFlagOn(((BMethodType) funcType).flags, SymbolFlags.REMOTE)) { functions.add(funcType); } } return functions.toArray(new RemoteMethodType[]{}); } /** * Get array containing resource functions defined in network object. * * @return resource functions */ @Override public ResourceMethodType[] getResourceMethods() { return resourceMethods; } } ```
The 1999 Grand National (known as the Martell Grand National for sponsorship reasons) was the 152nd official renewal of the world-famous Grand National steeplechase that took place at Aintree near Liverpool, England, on 10 April 1999. The race was won in a time of nine minutes and 14.1 seconds and by a distance of ten lengths by 10/1 shot Bobbyjo, ridden by jockey Paul Carberry. The winner was trained by Tommy Carberry in Ratoath, Ireland, and ran in the colours of London-based Irish businessman Bobby Bourke. 32 runners took part and 18 completed the course without mishap, but Eudipe suffered a fatal fall at Becher's Brook. Rule changes 1999 saw the conditions of the race change with the introduction of new rules for the 48-hour declaration stage. This brought in a system where horses numbered 41-43 were made reserves for the race and allowed to get into the final 40 should any runner withdraw by noon on the eve of the race. The rule was not required this year as less than 40 declared to run. A ruling was also introduced banning the practice of running a horse in the Grand National and any other race in the three-day meeting. This brought to an end the practice of horses running over the National course on the Thursday or Friday before running in the National on Saturday, although by 1999 such instances had become very rare. Leading contenders Fiddling The Facts was made the 6/1 favourite on the day of the race after a series of impressive, albeit not victorious, runs during the season. The mare had been third in the Hennessy Gold Cup at Newbury the previous November and followed that by finishing second in the Welsh National, Singer & Friedlander Grand National Trial and Greenalls Grand National Trial in the build-up to the National itself. The horse was partnered by 1996 winning rider Mick Fitzgerald, and moved into the leading half-dozen as the field approached the racecourse for the end of the first circuit. They remained prominent until falling at Becher's Brook on the second circuit when lying seventh. Call It A Day had won the Whitbread Gold Cup at Sandown the previous April and prepared for the National by finishing second in the Midlands Grand National three weeks before Aintree. Richard Dunwoody took the ride and as the most experienced rider in the race the two-time former winner joined a group of eleven men to have weighed out for fourteen Nationals. Call It A day was sent off at 7/1 and moved into contention on the second circuit to form part of a group of eight with a chance turning for home and took the final flight half a length down in second place. Within strides he had been passed by the eventual winner and although he rallied on the run-in he finished ten lengths and a neck down in third place. 1999 was Dunwoody's last National as he later retired on medical grounds when advised he stood an increasing risk of serious neck injury if he suffered many more riding falls. Double Thriller was a hunter chaser who had run impressively to finish fourth in the previous month's Cheltenham Gold Cup, being installed as favourite for the National in the process. His restrictive odds on raceday led most in attendance on course on race day to oppose him with the result he drifted to 7/1 joint-second favourite at the off. Joe Tizzard took the ride but their partnership came to an end at the first fence. When the racecourse commentator called the horse's exit it was unusually met with a huge cheer from the crowd who had backed against him. Addington Boy had been one place behind Double Thriller in the Gold Cup, having earlier finished third in the Irish Hennessy Cognac Gold Cup at Leopardstown in February. Adrian Maguire took the ride on the 10/1 shot who was among the leading eight turning for home but was unable to quicken into the last fence, finishing over 17 lengths behind the winner in fourth. Bobbyjo had won the 1998 Irish Grand National and was the believed to be the best contender to halt a 24-year drought for Irish-trained runners in the National. The horse was unusually prepped in a minor hurdles race and remained freely available at odds as long as 40/1 until race day when his priced was slashed down to 10/1 at the off. Paul Carberry took the ride and steered the horse wide of his rivals at the final flight to lead up the run-in and score by 10 lengths. Eudipe had finished second in the 1998 Scottish Grand National and fourth in the Welsh National but it was his win in the Anthony Mildmay and Peter Cazelet Memorial Chase at Sandown in January that attracted the attention of punters. His 10/1 starting price also had a lot to do with him being partnered by champion jockey Tony McCoy, which countered the negatives of the horse being a seven-year-old and French-bred(no horse of his age or nationality had won the race for over 40 years). He was travelling well, at the rear of a leading group of 12 runners when he fell heavily and fatally at Becher's Brook on the second circuit. Other popular fancies in the market were 1998 Scottish National winner Baronet, 1997 and 1998 Grand National runner-up Suny Bay, 1996 Sun Alliance Chase winner Nahthen Lad, 1998 Grand National winner Earth Summit, and the Peter Marsh Chase winner General Wolfe. The six riders making their debut in the race all predictably found themselves as outsiders. Brian Harding fared best, finishing fifth, while Barry Fenton, Garrett Cotter and Steve Wynne, the latter in his only attempt at the National, also completed the course. Robert Widger failed to get round as he attempted to emulate his great-uncle who rode the winner in 1895, while Adie Smith also failed to complete. Finishing order Non-finishers Media coverage and aftermath The BBC retained the rights to broadcast the entire meeting live on BBC One for the 40th consecutive year, culminating with a Grandstand Grand National special on the Saturday, hosted for the final time by Des Lynam, who moved to rival broadcaster ITV later that year. The commentary team for the second consecutive year consisted of John Hanmer, Tony O'Hehir and lead commentator Jim McGrath the latter of whom was calling home the winner for the second time. Racing UK broadcast the race into betting shops and sports social clubs across the country with commentary taken from the racecourse itself. Graham Goode called the winner home. Television pictures were broadcast from fixed cameras situated at Becher's Brook, the Canal Turn, Anchor Bridge crossing and the grandstand, as well as a tracking cam fixed to the roof of a car travelling alongside the runners. Additional cameras also covered the race from a helicopter, inside fences and from the perspective of the riders through cameras in the caps of Brian Harding and Stephen Wynne. These additional pictures were not used in the original broadcast of the race but were used during a detailed replay of the race where Richard Pitman, Peter Scudamore and Jamie Osborne talked viewers through the race. Winning jockey Paul Carberry said after the race: "I thought he had a good chance when the ground dried up. I got a good start and was handy the whole way. I was able to get a breather into him whenever I wanted. He jumped very well and I sat as long as I could. Going towards the second-last Adrian [Maguire, on Addington Boy] came in a bit, so I switched to the outside. I knew he would quicken and quicken. I got a great jump at the last, and from the elbow I didn't look back. I knew that he would keep going and nothing would get to him. It's a great feeling, but it'll take a while to sink in." Second-placed jockey Lorcan Wyer said: "Down at the start he [Blue Charm] was whipping round a bit, and I thought we might even fall at the first. He gave me a tremendous ride but didn't quite see it out at the end." Tony McCoy suffered bruised ribs during the race but none of the riders required hospital treatment. References 1999 Grand National, 1999 Grand National 20th century in Merseyside April 1999 sports events in the United Kingdom
Bishop John Quinlan (October 19, 1826, Cloyne, County Cork, Ireland – March 9, 1883, Alabama) was a Catholic bishop and the second Bishop of Mobile. Biography Early life John Quinlan was born on 19 October 1826 in Cloyne, Ireland, and immigrated to the United States when he was 18, in 1844. He was accepted as a seminarian for the Archdiocese of Cincinnati by John Baptist Purcell, and sent to Mount St. Mary's University for studies. On August 30, 1852, he was ordained a priest by bishop Purcell. Priesthood Quinlan's first assignment as a priest was in Piqua, Ohio, before serving as curate for future Archbishop of Philadelphia James Wood at St. Patrick's Church in Cincinnati. Following this, he served as rector of Mount Saint Marys of the West before being appointed the second bishop of the Diocese of Mobile on August 19, 1859, and consecrated a bishop by Antoine Blanc on December 4 of that same year. Episcopacy In his diocese he found twelve churches and fourteen schools for which he had only eight secular priests and he therefore brought from Ireland eleven young candidates for the priesthood. Bishop Quinlan's administration fell upon the storm days of the American Civil War. After the battle of Shiloh, he hastened on a special train to the blood-stained battle-ground and ministered to the temporal and spiritual wants of North and South. After the war diocesan activities were crippled. Nevertheless, besides repairing ruined churches, Bishop Quinlan built the portico of the Mobile cathedral, founded St. Patrick's and St. Mary's churches in the same city, and established churches in Huntsville, Decatur, Tuscumbia, Florence, Cullman, Birmingham, Eufaula, Whistler, and Toulminville. In April 1876, Bishop Quinlan invited the Benedictines from St. Vincent's Abbey, Pennsylvania to the diocese, and they settled at Cullman, Alabama. He died March 9, 1883, and is entombed under the portico of the Cathedral Basilica of the Immaculate Conception in Mobile, Alabama. Quinlan Hall, on the campus of Spring Hill College, is named in his honor. References External links Catholic Encyclopedia bio Episcopal succession Roman Catholic bishops of Mobile Irish emigrants to the United States Roman Catholic Archdiocese of Cincinnati 19th-century Roman Catholic bishops in the United States 1826 births 1883 deaths Place of death missing Christian clergy from County Cork People from Cloyne
Hugh Glass (The Bear Attack Survivor) ( 1783 – 1833) was an American frontiersman, fur trapper, trader, hunter and explorer. He is best known for his story of survival and forgiveness after being left for dead by companions when he was mauled by a grizzly bear. No records exist regarding his origins but he is widely said to have been born in Pennsylvania to Scots-Irish parents. Glass became an explorer of the watershed of the Upper Missouri River, in present-day Montana, the Dakotas, and the Platte River area of Nebraska. His life story has been the basis of two feature-length films: Man in the Wilderness (1971) and The Revenant (2015). They both portray the survival struggle of Glass, who (in the best historical accounts) crawled and stumbled to Fort Kiowa, South Dakota, after being abandoned without supplies or weapons by fellow explorers and fur traders during General Ashley's expedition of 1823. Another version of the story was told in a 1966 episode of the TV series Death Valley Days, titled "Hugh Glass Meets the Bear". Despite the story's popularity, its accuracy has been disputed. It was first recorded in 1825 in The Port Folio, a Philadelphia literary journal, as a literary piece and later picked up by various newspapers. Although originally published anonymously, it was later revealed to be the work of James Hall, brother of The Port Folios editor. There is no writing from Hugh Glass himself to corroborate the veracity of it. Also, it is likely to have been embellished over the years as a legend. Early life Glass was born in Pennsylvania, to Irish parents who had emigrated from present day Northern Ireland. His life before the famous bear attack is largely unverifiable, and his frontier story contained numerous embellishments. He was reported to have been captured by pirates under the command of Gulf of Mexico chief Jean Lafitte off the coast of Texas in 1816, and was forced to become a pirate for up to two years. Glass allegedly escaped by swimming to shore near what is present-day Galveston, Texas. He was later rumored to have been captured by the Pawnee tribe, with whom he lived for several years. Glass traveled to St. Louis, Missouri in 1821, accompanying several Pawnee delegates invited to meet with U.S. authorities. General Ashley's 1823 expedition In 1822, many men responded to an advertisement in the Missouri Gazette and Public Advertiser placed by General William Henry Ashley, which called for a corps of 100 men to "ascend the river Missouri" as part of a fur-trading venture. Many of them, who later earned reputations as famous mountain men, joined the enterprise, including James Beckwourth, David Jackson, William Sublette, Jim Bridger, John S. Fitzgerald, James Clyman and Jedediah Smith. These men and others would later be known as "Ashley's Hundred". Glass, however, did not join Ashley's company until the next year, when he ascended the Missouri River with Ashley. In June 1823, they met up with many of the men that had joined in 1822, and were attacked by Arikara warriors. Glass was apparently shot in the leg and the survivors retreated downstream and sent for help. Glass wrote a letter to the parents of John S. Gardner, killed on June 2, 1823: Grizzly bear mauling Glass and the rest of the Ashley Party eventually returned to Fort Kiowa to regroup for the trip west. Andrew Henry, Ashley's partner, had joined the group, and he along with Glass and several others set out overland to the Yellowstone River. Near the forks of the Grand River, near present-day Shadehill Reservoir, Perkins County, South Dakota, while scouting for game for the expedition larder, Glass surprised and disturbed a mother grizzly bear with two cubs. The bear charged, picked him up, bit, slashed and lacerated his flesh, severely wounded him, and forced him to the ground. Hearing Glass’ screams for help, several of the party made their way to Glass and killed the bear. In words attributed to another trapper, Hiram Allen, who was at the scene: "the monster had torn the flesh from the lower part of the body, and from the lower limbs. He also had his neck shockingly torn, even to the degree that an aperture appeared to have been made into the windpipe, and his breath to exude at the side of is neck. Blood flowed freely, but fortunately no bone was broken, and his hands and arms were not disabled." The men were convinced Glass would not survive his injuries; nevertheless, they carried Glass on a litter for two days, but doing so greatly slowed the pace of the group's travel. Henry asked for two volunteers to stay with Glass until he died and then bury him. John S. Fitzgerald and a man later identified as "Bridges" stepped forward, and as the rest of the party moved on, began digging his grave. Later, claiming that they were interrupted by attacking Arikara, the pair grabbed the rifle, knife, and other equipment belonging to Glass and took flight. Fitzgerald and "Bridges" later caught up with the party and incorrectly reported to Ashley that Glass had died. There is a debate whether Bridges was actually famed mountain man Jim Bridger. Despite his injuries, Glass regained consciousness, but found himself abandoned without weapons or equipment. He had festering wounds, a broken leg, and deep cuts on his back that exposed his bare ribs. Glass lay mutilated and alone, more than from the nearest American settlement at Fort Kiowa, on the Missouri River. Glass set the bone of his own leg, wrapped himself in the bear hide his companions had placed over him as a shroud, and began crawling back to Fort Kiowa. To prevent gangrene, Glass allowed maggots to eat the dead infected flesh in his wounds. Using Thunder Butte as a navigational landmark, Glass crawled overland south toward the Cheyenne River where he fashioned a crude raft and floated downstream to Fort Kiowa. The journey took him six weeks. He survived mostly on wild berries and roots. Pursuit of Fitzgerald and Bridges After recovering from his wounds, Glass set out again to find Fitzgerald and "Bridges". He eventually traveled to Fort Henry on the Yellowstone River but found it deserted. A note indicated that Andrew Henry and company had relocated to a new camp at the mouth of the Bighorn River. Arriving there, Glass found "Bridges", but apparently forgave him because of his youth, and then re-enlisted with Ashley's company. Glass later learned that Fitzgerald had joined the army and was stationed at Fort Atkinson in present-day Nebraska. Glass reportedly spared Fitzgerald's life because he would be killed by the army captain for killing a soldier of the United States Army. However, the captain asked Fitzgerald to return the stolen rifle to Glass, and before departing Glass warned Fitzgerald never to leave the army, or he would still kill him. According to Yount's story, Glass also obtained $300 as compensation. Further explorations for General Ashley in 1824 In the period intervening, between finding "Bridges" and finding Fitzgerald, Glass and four others were dispatched in February 1824 with mail for Fort Atkinson. They traveled up the Powder River, then across to the Platte River. There they constructed bull skin boats and traveled down the Platte River to the lower end of the Black Hills. Glass and his party discovered a settlement of 38 lodges of Arikara. Their leader, who was known by Glass, declared the tribe to be friendly and invited them in so the men went ashore. While smoking with him in his lodge, Glass noticed their equipment being taken by the residents and realized it was a trap. The men quickly fled but two were killed by the pursuing war party. Glass managed to hide behind some rocks until the Arikara gave up their search but was separated from the two other survivors. He was relieved to find his knife and flint in his shot pouch and traveled to Fort Kiowa, surviving off the land. Glass returned to the frontier as a trapper and fur trader. He was later employed as a hunter for the U.S. Army garrison at Fort Union, near Williston, North Dakota. Death Glass was killed along with two of his fellow trappers (Edward Rose and Hilain Menard) in early 1833 on the Yellowstone River in an attack by the Arikara. A monument to Glass was placed near the site of his mauling on the southern shore of the present-day Shadehill Reservoir in Perkins County, South Dakota, at the forks of the Grand River. The nearby Hugh Glass Lakeside Use Area is a free state-managed campground and picnic area. In popular culture Glass' life has been recounted in numerous books and dramas. "The Song of Hugh Glass" (1915) is the second part of the sequence of epic poems, Cycle of the West, by John G. Neihardt. Lord Grizzly (1954) is an account of Glass' ordeal, by Frederick Manfred. In the 1966 episode "Hugh Glass Meets the Bear" of the syndicated television series, Death Valley Days, the British actor John Alderson played the part of Glass. Morgan Woodward was cast as trapper Thomas Fitzpatrick, Victor French as Louis Baptiste, and Tris Coffin as Major Andrew Henry. The film Man in the Wilderness (1971) is loosely based on Glass. It stars Richard Harris as Zachary Bass and John Huston as Captain Henry. Dewitt Lee played Sam Glass in a film called Apache Blood (1975), a story loosely based on that of Glass. Author John Myers Myers wrote The Saga of Hugh Glass: Pirate, Pawnee, and Mountain Man, a historical account published by the University of Nebraska Press in 1976. Roger Zelazny and Gerald Hausman meshed the stories of John Colter and Glass in the 1994 novel Wilderness. Hugh Glass, Jim Bridger and Thomas Fitzpatrick appear in The Wandering Hill: Volume 2 of the Berrybender Narratives by Larry McMurtry (New York, Simon & Schuster, 2003). The novel begins with the return of Glass from his bear mauling and his attempt to settle the score with Fitzpatrick and Bridger. The song "Six Weeks" by Of Monsters and Men is "inspired by the true tale of American frontiersman Hugh Glass, seemingly left for dead after killing a bear that attacked him." Michael Punke's 2002 novel, The Revenant, is a fictional retelling of Glass's encounter with the bear and search for revenge. A 2014 episode of podcast The Dollop features Glass as its main subject of discussion. The May 27, 2015, episode of the History Channel's Monument Guys, "Tesla and the Unbreakable Glass," features the construction of sculpture of Glass and a bear. Sculptor John Lopez unveils a life-size welded sculpture of Hugh Glass being attacked by a Grizzly at the inaugural "Hugh Glass Rendezvous" held on the site that the actual mauling took place in 1823. The sculpture is permanently on display at the Grand River Museum in Lemmon, SD. Leonardo DiCaprio played a largely fictionalized version of Glass in the 2015 film The Revenant, directed by Alejandro González Iñárritu. The film is based in part on Punke's novel and was met with critical acclaim. It earned 12 Academy Award nominations and won three. For his portrayal of Glass, DiCaprio won his first Academy Award for Best Actor. Hugh Glass appears in World of Warcraft as a deranged merchant in Grizzly Hills alongside his "pet" bear Griselda. The book "Cowboys, Mountain Men, & Grizzly Bears: Fifty of the Grittiest Moments in the History of the Wild West" by Matthew P. Mayo has a chapter about Hugh Glass. References Further reading Jon T. Coleman. Here Lies Hugh Glass: A Mountain Man, a Bear, and the Rise of the American Nation (2013) Hugh Glass, Bruce Bradley (1999) Lord Grizzly, Fredrick Manfred (1954) Saga of Hugh Glass: Pirate, Pawnee and Mountain Man, John Myers Myers (1976) Hugh Glass, Mountain Man, Robert M. McClung (1990) "The Song of Hugh Glass" (part of "A Cycle of the West"), John G. Neihardt (1915) External links "Hugh Glass: The Irishman who inspired the Revenant", Irish Examiner newspaper Map covering the area of the Hugh Glass monument in Perkins County, SD. Take Forest Service Road 5622, marked by the road sign as "Hugh Glass Road." 1780s births 1833 deaths 1833 murders in the United States 18th-century American people 19th-century American people American explorers American fur traders American murder victims American people of Scotch-Irish descent Mountain men People from Pennsylvania Place of birth missing Bear attack victims American frontier Male murder victims People captured by pirates
Janis Louise Kelly (born March 20, 1971 in Winnipeg, Manitoba) is a retired volleyball player from Canada. She competed for her native country at the 1996 Summer Olympics in Atlanta, Georgia. There she finished in 10th place with the Women's National Team. She competed at the 2002 FIVB Volleyball Women's World Championship in Germany. References Canadian Olympic Committee Specific External links 1971 births Living people Black Canadian sportswomen Canadian women's volleyball players Olympic volleyball players for Canada Volleyball players from Winnipeg Volleyball players at the 1996 Summer Olympics Pan American Games bronze medalists for Canada Pan American Games medalists in volleyball Volleyball players at the 1995 Pan American Games Medalists at the 1995 Pan American Games
```python # # # path_to_url # # Unless required by applicable law or agreed to in writing, software # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # ============================================================================== """Tests for eval_coco_format script.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os from absl import flags from absl.testing import absltest import evaluation as panopticapi_eval from deeplab.evaluation import eval_coco_format _TEST_DIR = 'deeplab/evaluation/testdata' FLAGS = flags.FLAGS class EvalCocoFormatTest(absltest.TestCase): def test_compare_pq_with_reference_eval(self): sample_data_dir = os.path.join(_TEST_DIR) gt_json_file = os.path.join(sample_data_dir, 'coco_gt.json') gt_folder = os.path.join(sample_data_dir, 'coco_gt') pred_json_file = os.path.join(sample_data_dir, 'coco_pred.json') pred_folder = os.path.join(sample_data_dir, 'coco_pred') panopticapi_results = panopticapi_eval.pq_compute( gt_json_file, pred_json_file, gt_folder, pred_folder) deeplab_results = eval_coco_format.eval_coco_format( gt_json_file, pred_json_file, gt_folder, pred_folder, metric='pq', num_categories=7, ignored_label=0, max_instances_per_category=256, intersection_offset=(256 * 256)) self.assertCountEqual(deeplab_results.keys(), ['All', 'Things', 'Stuff']) for cat_group in ['All', 'Things', 'Stuff']: self.assertCountEqual(deeplab_results[cat_group], ['pq', 'sq', 'rq', 'n']) for metric in ['pq', 'sq', 'rq', 'n']: self.assertAlmostEqual(deeplab_results[cat_group][metric], panopticapi_results[cat_group][metric]) def test_compare_pc_with_golden_value(self): sample_data_dir = os.path.join(_TEST_DIR) gt_json_file = os.path.join(sample_data_dir, 'coco_gt.json') gt_folder = os.path.join(sample_data_dir, 'coco_gt') pred_json_file = os.path.join(sample_data_dir, 'coco_pred.json') pred_folder = os.path.join(sample_data_dir, 'coco_pred') deeplab_results = eval_coco_format.eval_coco_format( gt_json_file, pred_json_file, gt_folder, pred_folder, metric='pc', num_categories=7, ignored_label=0, max_instances_per_category=256, intersection_offset=(256 * 256), normalize_by_image_size=False) self.assertCountEqual(deeplab_results.keys(), ['All', 'Things', 'Stuff']) for cat_group in ['All', 'Things', 'Stuff']: self.assertCountEqual(deeplab_results[cat_group], ['pc', 'n']) self.assertAlmostEqual(deeplab_results['All']['pc'], 0.68210561) self.assertEqual(deeplab_results['All']['n'], 6) self.assertAlmostEqual(deeplab_results['Things']['pc'], 0.5890529) self.assertEqual(deeplab_results['Things']['n'], 4) self.assertAlmostEqual(deeplab_results['Stuff']['pc'], 0.86821097) self.assertEqual(deeplab_results['Stuff']['n'], 2) def test_compare_pc_with_golden_value_normalize_by_size(self): sample_data_dir = os.path.join(_TEST_DIR) gt_json_file = os.path.join(sample_data_dir, 'coco_gt.json') gt_folder = os.path.join(sample_data_dir, 'coco_gt') pred_json_file = os.path.join(sample_data_dir, 'coco_pred.json') pred_folder = os.path.join(sample_data_dir, 'coco_pred') deeplab_results = eval_coco_format.eval_coco_format( gt_json_file, pred_json_file, gt_folder, pred_folder, metric='pc', num_categories=7, ignored_label=0, max_instances_per_category=256, intersection_offset=(256 * 256), normalize_by_image_size=True) self.assertCountEqual(deeplab_results.keys(), ['All', 'Things', 'Stuff']) self.assertAlmostEqual(deeplab_results['All']['pc'], 0.68214908840) def test_pc_with_multiple_workers(self): sample_data_dir = os.path.join(_TEST_DIR) gt_json_file = os.path.join(sample_data_dir, 'coco_gt.json') gt_folder = os.path.join(sample_data_dir, 'coco_gt') pred_json_file = os.path.join(sample_data_dir, 'coco_pred.json') pred_folder = os.path.join(sample_data_dir, 'coco_pred') deeplab_results = eval_coco_format.eval_coco_format( gt_json_file, pred_json_file, gt_folder, pred_folder, metric='pc', num_categories=7, ignored_label=0, max_instances_per_category=256, intersection_offset=(256 * 256), num_workers=3, normalize_by_image_size=False) self.assertCountEqual(deeplab_results.keys(), ['All', 'Things', 'Stuff']) self.assertAlmostEqual(deeplab_results['All']['pc'], 0.68210561668) if __name__ == '__main__': absltest.main() ```
Onoba paucicarinata is a species of minute sea snail, a marine gastropod mollusk or micromollusk in the family Rissoidae. Description Distribution References Rissoidae Gastropods described in 1983
Buladó is a 2020 Curaçaoan drama film directed by Eché Janga. The film premiered at Netherlands Film Festival on the 2 October 2020. The film won the Golden Calf for Best Feature Film award. It was selected as the Dutch entry for the Best International Feature Film at the 93rd Academy Awards, but it was not nominated. The story, laced with magic realism, follows headstrong 11-year-old girl Kenza who is determined to find her own path into adulthood, as she mourns her mom. She is torn between her agnostic father Ouira and her spiritual grandfather Weljo. The film is produced by Derk-Jan Warrink and Koji Nelissen of Amsterdam-based Keplerfilm whose producing credits include The Lobster, Bullhead, Blind and Monos. Plot Kenza lives with her father Ouira and grandfather Weljo on a car wrecking yard in the countryside of Curaçao. The two men are opposites that don’t particularly attract: Ouira is a determined and rational police officer, while Weljo identifies with the original inhabitants and spirituality of the island. As Weljo wishes to prepare for his passing to the world of spirits, the relationship between Ouira and Weljo starts to escalate and Kenza searches for her own path in-between the two extremes. The down-to-earth and avoidant mentality of Ouira no longer offers her all that she needs and slowly she opens up to the more mystical and comforting traditions of her grandfather. Cast Tiara Richards as Kenza Everon Jackson Hooi as Ouira Felix de Rooy as Weljo Production Principal photography began on 1 October 2019, and concluded on 16 November 2019. Filming took place in Band'abou, Klein Curacao Curaçao. See also List of submissions to the 93rd Academy Awards for Best International Feature Film List of Dutch submissions for the Academy Award for Best International Feature Film References https://variety.com/2020/film/awards/bulado-oscar-picture-tree-international-afm-1234821159/ External links 2020 films 2020 drama films Dutch drama films
Joseph Somes (1819 – 29 May 1871) was a British Conservative Party politician. He was elected MP for Kingston upon Hull at a by-election in 1859 but lost the seat at the next election in 1865. References External links Conservative Party (UK) MPs for English constituencies UK MPs 1859–1865 1819 births 1871 deaths
Montgomery Township may refer to: Arkansas Montgomery Township, Hot Spring County, Arkansas, in Hot Spring County, Arkansas Illinois Montgomery Township, Crawford County, Illinois Montgomery Township, Woodford County, Illinois Indiana Montgomery Township, Gibson County, Indiana Montgomery Township, Jennings County, Indiana Montgomery Township, Owen County, Indiana Minnesota Montgomery Township, Le Sueur County, Minnesota Missouri Montgomery Township, Hickory County, Missouri, in Hickory County, Missouri Montgomery Township, Montgomery County, Missouri Montgomery Township, Wright County, Missouri New Jersey Montgomery Township, New Jersey Ohio Montgomery Township, Ashland County, Ohio Montgomery Township, Franklin County, Ohio, now part of the city of Columbus Montgomery Township, Marion County, Ohio Montgomery Township, Wood County, Ohio Pennsylvania Montgomery Township, Franklin County, Pennsylvania Montgomery Township, Indiana County, Pennsylvania Montgomery Township, Montgomery County, Pennsylvania Township name disambiguation pages
```python import structlog from raiden.constants import ( BLOCK_ID_LATEST, DAI_TOKEN_ADDRESS, WETH_TOKEN_ADDRESS, DeviceIDs, Environment, RoutingMode, ) from raiden.messages.monitoring_service import RequestMonitoring from raiden.messages.path_finding_service import PFSCapacityUpdate, PFSFeeUpdate from raiden.settings import ( MIN_MONITORING_AMOUNT_DAI, MIN_MONITORING_AMOUNT_WETH, MONITORING_REWARD, ) from raiden.transfer import views from raiden.transfer.architecture import BalanceProofSignedState from raiden.transfer.channel import get_balance from raiden.transfer.identifiers import CanonicalIdentifier from raiden.transfer.state import ChainState from raiden.utils.formatting import to_checksum_address from raiden.utils.transfers import to_rdn from raiden.utils.typing import TYPE_CHECKING, Address if TYPE_CHECKING: from raiden.raiden_service import RaidenService log = structlog.get_logger(__name__) def send_pfs_update( raiden: "RaidenService", canonical_identifier: CanonicalIdentifier, update_fee_schedule: bool = False, ) -> None: if raiden.routing_mode == RoutingMode.PRIVATE: return channel_state = views.get_channelstate_by_canonical_identifier( chain_state=views.state_from_raiden(raiden), canonical_identifier=canonical_identifier ) if channel_state is None: return capacity_msg = PFSCapacityUpdate.from_channel_state(channel_state) capacity_msg.sign(raiden.signer) raiden.transport.broadcast(capacity_msg, device_id=DeviceIDs.PFS) log.debug( "Sent a PFS Capacity Update", node=to_checksum_address(raiden.address), message=capacity_msg, channel_state=channel_state, ) if update_fee_schedule: fee_msg = PFSFeeUpdate.from_channel_state(channel_state) fee_msg.sign(raiden.signer) raiden.transport.broadcast(fee_msg, device_id=DeviceIDs.PFS) log.debug( "Sent a PFS Fee Update", node=to_checksum_address(raiden.address), message=fee_msg, channel_state=channel_state, ) def update_monitoring_service_from_balance_proof( raiden: "RaidenService", chain_state: ChainState, new_balance_proof: BalanceProofSignedState, non_closing_participant: Address, ) -> None: if raiden.config.services.monitoring_enabled is False: return msg = "Monitoring is enabled but the default monitoring service address is None." assert raiden.default_msc_address is not None, msg channel_state = views.get_channelstate_by_canonical_identifier( chain_state=chain_state, canonical_identifier=new_balance_proof.canonical_identifier ) msg = ( f"Failed to update monitoring service due to inability to find " f"channel: {new_balance_proof.channel_identifier} " f"token_network_address: {to_checksum_address(new_balance_proof.token_network_address)}." ) assert channel_state, msg msg = "Monitoring is enabled but the `UserDeposit` contract is None." assert raiden.default_user_deposit is not None, msg rei_balance = raiden.default_user_deposit.effective_balance(raiden.address, BLOCK_ID_LATEST) if rei_balance < MONITORING_REWARD: rdn_balance = to_rdn(rei_balance) rdn_reward = to_rdn(MONITORING_REWARD) log.warning( f"Skipping update to Monitoring service. " f"Your deposit balance {rdn_balance} is less than " f"the required monitoring service reward of {rdn_reward}" ) return # In production there should be no MonitoringRequest if # channel balance is below a certain threshold. This is # a naive approach that needs to be worked on in the future if raiden.config.environment_type == Environment.PRODUCTION: message = ( "Skipping update to Monitoring service. " "Your channel balance {channel_balance} is less than " "the required minimum balance of {min_balance} " ) dai_token_network_address = views.get_token_network_address_by_token_address( chain_state=chain_state, token_network_registry_address=raiden.default_registry.address, token_address=DAI_TOKEN_ADDRESS, ) weth_token_network_address = views.get_token_network_address_by_token_address( chain_state=chain_state, token_network_registry_address=raiden.default_registry.address, token_address=WETH_TOKEN_ADDRESS, ) channel_balance = get_balance( sender=channel_state.our_state, receiver=channel_state.partner_state, ) if channel_state.canonical_identifier.token_network_address == dai_token_network_address: if channel_balance < MIN_MONITORING_AMOUNT_DAI: data = dict( channel_balance=channel_balance, min_balance=MIN_MONITORING_AMOUNT_DAI, channel_id=channel_state.canonical_identifier.channel_identifier, token_address=to_checksum_address(DAI_TOKEN_ADDRESS), ) log.warning(message.format(**data), **data) return if channel_state.canonical_identifier.token_network_address == weth_token_network_address: if channel_balance < MIN_MONITORING_AMOUNT_WETH: data = dict( channel_balance=channel_balance, min_balance=MIN_MONITORING_AMOUNT_WETH, channel_id=channel_state.canonical_identifier.channel_identifier, token_address=to_checksum_address(WETH_TOKEN_ADDRESS), ) log.warning(message.format(**data), **data) return log.info( "Received new balance proof, creating message for Monitoring Service.", node=to_checksum_address(raiden.address), balance_proof=new_balance_proof, ) monitoring_message = RequestMonitoring.from_balance_proof_signed_state( balance_proof=new_balance_proof, non_closing_participant=non_closing_participant, reward_amount=MONITORING_REWARD, monitoring_service_contract_address=raiden.default_msc_address, ) monitoring_message.sign(raiden.signer) raiden.transport.broadcast(monitoring_message, device_id=DeviceIDs.MS) ```
Possessed is an Inverted Impulse launched roller coaster located at Dorney Park & Wildwater Kingdom in Allentown, Pennsylvania. Manufactured by Intamin and designed by Werner Stengel, the roller coaster originally debuted at Six Flags Ohio amusement park as Superman: Ultimate Escape on May 5, 2000. After Cedar Fair purchased the park and renamed it back to Geauga Lake in early 2004, the coaster was immediately renamed Steel Venom. The ride closed in 2006 and was moved to Dorney Park. It reopened in 2008 briefly under the name Voodoo, and was renamed Possessed for the 2009 season. The model is identical to five other impulse coaster installations at other amusement parks. A larger version called Wicked Twister was located at Cedar Point until its closure in September 2021. History Geauga Lake era (2000–2006) The ride opened on May 5, 2000 at Six Flags Ohio as Superman: Ultimate Escape. It was based on the DC Comics character Superman. Following Cedar Fair's acquisition of the park in 2004, in which the original Geauga Lake name was reinstituted to the park, all Looney Tunes and DC Comics branding owned by Six Flags was removed. In the process, the coaster was renamed Steel Venom, while receiving a new logo with a black background featuring a silver and purple snake. Even though Cedar Fair removed any mentions of Superman from the ride, the original blue, red, and yellow color scheme remained intact. The coaster was dismantled after the 2006 season and put into storage. At the end of the 2007 season, Cedar Fair announced the amusement park section of the park would close and the park would operate exclusively as Wildwater Kingdom. Many rides at the park were relocated to other parks in the Cedar Fair chain. Dorney Park era (2007–present) Steel Venom was relocated to Dorney Park, where it reopened as Voodoo several weeks into the 2008 season on May 17, 2008. Prior to opening at Dorney Park, it was repainted to its current color scheme, as shown in the picture above, the supports were repainted teal and the track was repainted yellow. In 2009, the name was changed to Possessed after Six Flags expressed concerns over the name Voodoo, which it had recently trademarked for another ride. Instead of challenging, Cedar Fair opted to appease Six Flags and rename the coaster. Cedar Fair turned the incident into a marketing opportunity, which focused on a story that the ride was overtaken by evil spirits, fitting in line with the ride's original theme. Possessed was closed for the entire 2020 season due to the COVID-19 pandemic. It reopened in 2021. Design The coaster's layout consists of two vertical spikes, one twisted and the other straight vertical with a holding brake, connected by a launch and station tract to form a basic "U" layout. The original ride began with riders being launched forward by the use of linear induction motors. After the initial launch, the train heads up the twisted vertical spike that twists the train 180 degrees. The train then falls and is launched backwards up the vertical spike. It shuttles back and forth three times. During the ride's initial years, the holding brake at the top of the vertical rear spike would engage on the final launch, locking the train in place for a very brief moment. This holding brake is no longer operational. Valleyfair's Steel Venom is currently the only Intamin impulse coaster in the United States still operating with its holding brake. The maximum G-force of the ride is 3.7 Gs, expectantly low for a twisted impulse coaster. Gallery References External links Possessed official page Video of Possessed Roller coasters in Pennsylvania Roller coasters introduced in 2000 Roller coasters introduced in 2008 Roller coasters operated by Cedar Fair Amusement rides that closed in 2006
Abdelhak Benaniba (born 10 June 1995) is a French footballer who plays as a midfielder for Sainte-Geneviève. References 1995 births Living people Men's association football midfielders French men's footballers Ligue 2 players US Créteil-Lusitanos players US Biskra players US Ivry players FC Versailles 78 players Sainte-Geneviève Sports players
Bakuchiol is a meroterpene (a chemical compound having a partial terpenoid structure) in the class terpenophenol. It was first isolated in 1966 by Mehta et al. from Psoralea corylifolia seed and was called Bakuchiol based on the Sanskrit name of the plant, Bakuchi. Bakuchiol is a meroterpene phenol abundant in and mainly obtained from the seeds of the Psoralea corylifolia plant, which is widely used in Indian as well as in Traditional Chinese medicine to treat a variety of diseases. It has also been isolated from other plants, such as P. grandulosa, P. drupaceae, Ulmus davidiana, Otholobium pubescens, Piper longum and Aerva sangulnolenta Blum. Even though the first complete synthesis of Bakuchiol was described in 1973, its first commercial use in topical applications did not occur until 2007 when it was introduced to the market under the trade name Sytenol A by Sytheon Ltd. It has been reported to have anticancer activity in preclinical models, possibly due to its structural similarity with resveratrol. One study in rats suggested that Bakuchiol and ethanol extracts of the Chinese medicinal plant Psoralea corylifolia could protect against bone loss. Bakuchiol possesses antioxidant, anti-inflammatory, and antibacterial properties. Bakuchiol isolated from P. corylifolia has shown activity against numerous Gram-positive and Gram-negative oral pathogens. It was able to inhibit the growth of Streptococcus mutans under a range of sucrose concentrations, pH values and in the presence of organic acids in a temperature-dependent manner and also inhibited the growth of cells adhered to a glass surface. Despite having no structural resemblance to retinol, Bakuchiol was found to have retinol functionality through retinol-like regulation of gene expression. In 2018, a randomized, double-blind, 12-week clinical study with 44 volunteers demonstrated that Bakuchiol is comparable with retinol in its ability to improve photoaging (wrinkles, hyperpigmentation) but has a better skin tolerance. Bakuchiol has been found to possess antiandrogenic activity in prostate cancer cells, which inhibited cell proliferation. See also Drupanol References External links bakuchiol Nonsteroidal antiandrogens Terpeno-phenolic compounds
Alexander Craig may refer to: Alexander Craig (poet) (1567?–1627), Scottish poet Alexander Kerr Craig (1828–1892), American politician Alexander J. Craig (1823–1870), American educator and politician from Wisconsin Alex Craig (footballer) (1886–?), Irish footballer Alex Craig (rugby union) (born 1998), Scottish rugby union player Alexander George Craig (1897–1973), author and poet See also
```c /***************************************************************************** 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 Intel Corporation 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. ***************************************************************************** * Contents: Native high-level C interface to LAPACK function ctrexc * Author: Intel Corporation *****************************************************************************/ #include "lapacke_utils.h" lapack_int API_SUFFIX(LAPACKE_ctrexc)( int matrix_layout, char compq, lapack_int n, lapack_complex_float* t, lapack_int ldt, lapack_complex_float* q, lapack_int ldq, lapack_int ifst, lapack_int ilst ) { if( matrix_layout != LAPACK_COL_MAJOR && matrix_layout != LAPACK_ROW_MAJOR ) { API_SUFFIX(LAPACKE_xerbla)( "LAPACKE_ctrexc", -1 ); return -1; } #ifndef LAPACK_DISABLE_NAN_CHECK if( LAPACKE_get_nancheck() ) { /* Optionally check input matrices for NaNs */ if( API_SUFFIX(LAPACKE_lsame)( compq, 'v' ) ) { if( API_SUFFIX(LAPACKE_cge_nancheck)( matrix_layout, n, n, q, ldq ) ) { return -6; } } if( API_SUFFIX(LAPACKE_cge_nancheck)( matrix_layout, n, n, t, ldt ) ) { return -4; } } #endif return API_SUFFIX(LAPACKE_ctrexc_work)( matrix_layout, compq, n, t, ldt, q, ldq, ifst, ilst ); } ```
Pyapun is an Afro-Asiatic language spoken in Plateau State, Nigeria. It is spoken in about 10 villages east of the Panyam-Shendam road. Further reading A Sociolinguistic Profile of the Piapung (Pyapun) [pcw] Language of Plateau State, Nigeria Notes Languages of Nigeria West Chadic languages
Saint-Oyens is a municipality in the Swiss canton of Vaud located at the foot of the Jura mountains. It lies in the district of Morges. History Saint-Oyens is first mentioned in 1139 as Sancto Eugendo. By the 13th Century the church of Saint Oyens was first mentioned and it was totally rebuilt during 1877-78. Some farmhouses in the municipality are from the 18th and 19th Centuries. Geography Saint-Oyens has an area, , of . Of this area, or 56.4% is used for agricultural purposes, while or 38.4% is forested. Of the rest of the land, or 4.9% is settled (buildings or roads). Of the built up area, housing and buildings made up 2.6% and transportation infrastructure made up 1.0%. Power and water infrastructure as well as other special developed areas made up 1.3% of the area Out of the forested land, 36.7% of the total land area is heavily forested and 1.6% is covered with orchards or small clusters of trees. Of the agricultural land, 43.9% is used for growing crops and 11.8% is pastures. The municipality was part of the Aubonne District until it was dissolved on 31 August 2006, and Saint-Oyens became part of the new district of Morges. The municipality is located between the vineyards of La Côte and the Jura Mountains. Coat of arms The blazon of the municipal coat of arms is Gules, in Chief Or an Eagle Sable. Demographics Saint-Oyens has a population () of . , 16.1% of the population are resident foreign nationals. Over the last 10 years (1999–2009 ) the population has changed at a rate of 26.1%. It has changed at a rate of 26.5% due to migration and at a rate of -1.2% due to births and deaths. Most of the population () speaks French (214 or 90.3%), with German being second most common (9 or 3.8%) and English being third (8 or 3.4%). There is 1 person who speaks Italian. Of the population in the municipality 84 or about 35.4% were born in Saint-Oyens and lived there in 2000. There were 61 or 25.7% who were born in the same canton, while 53 or 22.4% were born somewhere else in Switzerland, and 33 or 13.9% were born outside of Switzerland. In there was 1 live birth to Swiss citizens and 1 death of a Swiss citizen. Ignoring immigration and emigration, the population of Swiss citizens remained the same while the foreign population remained the same. There was 1 Swiss woman who emigrated from Switzerland. At the same time, there were 4 non-Swiss men and 3 non-Swiss women who immigrated from another country to Switzerland. The total Swiss population change in 2008 (from all sources, including moves across municipal borders) was a decrease of 4 and the non-Swiss population increased by 9 people. This represents a population growth rate of 1.7%. The age distribution, , in Saint-Oyens is; 36 children or 11.7% of the population are between 0 and 9 years old and 42 teenagers or 13.6% are between 10 and 19. Of the adult population, 35 people or 11.4% of the population are between 20 and 29 years old. 30 people or 9.7% are between 30 and 39, 53 people or 17.2% are between 40 and 49, and 53 people or 17.2% are between 50 and 59. The senior population distribution is 34 people or 11.0% of the population are between 60 and 69 years old, 12 people or 3.9% are between 70 and 79, there are 7 people or 2.3% who are between 80 and 89, and there are 6 people or 1.9% who are 90 and older. , there were 88 people who were single and never married in the municipality. There were 129 married individuals, 11 widows or widowers and 9 individuals who are divorced. , there were 93 private households in the municipality, and an average of 2.5 persons per household. There were 25 households that consist of only one person and 8 households with five or more people. Out of a total of 95 households that answered this question, 26.3% were households made up of just one person. Of the rest of the households, there are 27 married couples without children, 36 married couples with children There were 4 single parents with a child or children. There was 1 household that was made up of unrelated people and 2 households that were made up of some sort of institution or another collective housing. there were 48 single family homes (or 57.1% of the total) out of a total of 84 inhabited buildings. There were 5 multi-family buildings (6.0%), along with 22 multi-purpose buildings that were mostly used for housing (26.2%) and 9 other use buildings (commercial or industrial) that also had some housing (10.7%). Of the single family homes 2 were built before 1919, while 17 were built between 1990 and 2000. The greatest number of single family homes (18) were built between 1971 and 1980. The most multi-family homes (2) were built between 1981 and 1990 and the next most (1) were built before 1919. There was 1 multi-family house built between 1996 and 2000. there were 103 apartments in the municipality. The most common apartment size was 4 rooms of which there were 31. There were 4 single room apartments and 43 apartments with five or more rooms. Of these apartments, a total of 93 apartments (90.3% of the total) were permanently occupied, while 6 apartments (5.8%) were seasonally occupied and 4 apartments (3.9%) were empty. , the construction rate of new housing units was 0 new units per 1000 residents. The vacancy rate for the municipality, , was 0%. The historical population is given in the following chart: Politics In the 2007 federal election the most popular party was the SVP which received 38.69% of the vote. The next three most popular parties were the Green Party (16.8%), the FDP (11.96%) and the LPS Party (11.89%). In the federal election, a total of 96 votes were cast, and the voter turnout was 50.8%. Economy , Saint-Oyens had an unemployment rate of 7.8%. , there were 20 people employed in the primary economic sector and about 11 businesses involved in this sector. 12 people were employed in the secondary sector and there were 4 businesses in this sector. 19 people were employed in the tertiary sector, with 7 businesses in this sector. There were 124 residents of the municipality who were employed in some capacity, of which females made up 41.9% of the workforce. the total number of full-time equivalent jobs was 37. The number of jobs in the primary sector was 12, all of which were in agriculture. The number of jobs in the secondary sector was 11 of which 8 or (72.7%) were in manufacturing and 3 (27.3%) were in construction. The number of jobs in the tertiary sector was 14. In the tertiary sector; 4 or 28.6% were in wholesale or retail sales or the repair of motor vehicles, 4 or 28.6% were in a hotel or restaurant, 3 or 21.4% were technical professionals or scientists, 2 or 14.3% were in education. , there were 10 workers who commuted into the municipality and 91 workers who commuted away. The municipality is a net exporter of workers, with about 9.1 workers leaving the municipality for every one entering. Of the working population, 8.9% used public transportation to get to work, and 70.2% used a private car. Religion From the , 25 or 10.5% were Roman Catholic, while 164 or 69.2% belonged to the Swiss Reformed Church. Of the rest of the population, there were 5 members of an Orthodox church (or about 2.11% of the population). There were 6 (or about 2.53% of the population) who were Islamic. 30 (or about 12.66% of the population) belonged to no church, are agnostic or atheist, and 7 individuals (or about 2.95% of the population) did not answer the question. Education In Saint-Oyens about 95 or (40.1%) of the population have completed non-mandatory upper secondary education, and 19 or (8.0%) have completed additional higher education (either university or a Fachhochschule). Of the 19 who completed tertiary schooling, 31.6% were Swiss men, 31.6% were Swiss women. In the 2009/2010 school year there were a total of 44 students in the Saint-Oyens school district. In the Vaud cantonal school system, two years of non-obligatory pre-school are provided by the political districts. During the school year, the political district provided pre-school care for a total of 631 children of which 203 children (32.2%) received subsidized pre-school care. The canton's primary school program requires students to attend for four years. There were 24 students in the municipal primary school program. The obligatory lower secondary school program lasts for six years and there were 20 students in those schools. , there were 13 students in Saint-Oyens who came from another municipality, while 44 residents attended schools outside the municipality. References External links Site of the commune of Saint-Oyens
Viktor Stretti, born Vítězslav Otakar Stretti (7 April 1878 in Plasy – 3 March 1957 in Dobříš) was a well known Czech etcher and lithographer. His brother was the etcher Jaromír Stretti-Zamponi. External links http://www.galerie-vysocina.com/obraz.php?idautor=115 http://www.batz-hausen.de/dvstret.htm http://www.kdykde.cz/vystavy/obrazy/praha/4361___viktor-stretti---vyber-25-grafickych-lisu-z-ranneho-obdobi 1878 births 1957 deaths Czech etchers Czech lithographers 20th-century Czech painters Czech male painters Czech people of Italian descent People from Plasy 20th-century Czech male artists 20th-century lithographers
Lu is a young adult novel by Jason Reynolds, published October 23, 2018, by Atheneum. It is the fourth book in Reynold's Track series, preceded by Ghost (2016), Patina (2017), and Sunny (2018). Reception Lu received starred reviews from Booklist, as well as positive reviews from School Library Journal and Kirkus. Booklist's Becca Worthington noted, "Virtually every subplot is a moving moral lesson on integrity, humility, or reconciliation." Kirkus echoed the sentiment, saying, "emphasizes the triumph of healing and unity" and "showcas[es] children’s power to effect true communal change." Lu is a Junior Library Guild book. References Atheneum Books books 2018 children's books Books by Jason Reynolds
This is a list of bicycle parking stations in the United States. A bicycle parking station or bike station is a building or structure designed for bicycle commuters that typically requires users to join as members in order to use secure bike parking, and sometimes showers or lockers. Some bike stations are staffed and offer free valet parking during certain hours. Arizona Tempe Transportation Center in Tempe - Bicycle Cellar - Located at the Tempe Transportation Center and the light rail station. California Long Beach - Bike station near the Metro Blue Line 1st Street station. Downtown Berkeley BART Station in Berkeley - Operated by Alameda Bicycle. video of this facility from Streetfilms Embarcadero BART Station in San Francisco - Inside the Embarcadero BART station operated by Alameda Bicycle. Fruitvale BART Station in Oakland - Operated by Alameda Bicycle at the Fruitvale (BART) station. Palo Alto (Caltrain station) in Palo Alto - Bikestation-branded operated by Palo Alto Bicycles. Not staffed. More information on Bikestation's website. Santa Barbara - Located inside the Granada Garage (auto parking) across from the Santa Barbara County Courthouse. More information on Bikestation's website. Illinois McDonald's Cycle Center in Chicago - Located at the north end of Millennium Park across from the Illinois Center, a collection of office buildings north of Randolph Street between Michigan Avenue and Columbus Drive. Missouri St. Louis - Downtown Bicycle Station located at 10th & Locust. Operated by Trailnet and Urban Shark Bicycle Company. Offers showers, lockers, secure bike storage, rentals and repairs. Pennsylvania Pittsburgh - Bicycle Commuter Center - Inside two used shipping container are 26 securely accessed bicycle parking spaces at the Century Building at 130 7th Street. Texas Austin - Mellow Johnny's, owned by Lance Armstrong, and near the Austin Music Hall, has Commuter Hub offering free showers, lockers (bring your own lock), and parking. More information. Washington Seattle - Bikestation-branded facility operated by Bicycle Alliance of Washington. Washington, D.C. - Bikestation-branded facility at Union Station operated by Bike and Roll DC aka Unlimited Biking. Designed by KGP Design Studio, the facility offers non-member access during the day, 24/7 access to members, and bike rentals. References United States bike stations
Kengkou () is a station on the Taoyuan Airport MRT located in Luzhu District, Taoyuan City, Taiwan. The station opened for commercial service on 2 March 2017. Station overview This elevated station has two island platforms and four tracks, although Express trains do not currently stop at this station. The station is long and wide. It opened for trial service on 2 February 2017, and for commercial service 2 March 2017. It will be a future transfer station with the Green line (G32) of Taoyuan Metro. History 2017-03-02: The station opened for commercial service with the opening of the Taipei-Huanbei section of the Airport MRT. Station overview Around the station Kengkou Painted Village (坑口彩繪村) (about 850 meters north of the station) Exits Exit 1: Southwest of Kengguo Rd. See also Taoyuan Metro References Taoyuan Airport MRT stations Railway stations in Taiwan opened in 2017
The Eternal derby of Bulgarian football or simply The Eternal derby () is the name of the local derby football match between the two most popular and successful football clubs in Sofia and Bulgaria: Levski Sofia and CSKA Sofia. The dominant forces in Bulgarian football have won 26 and 31 national championship titles and 26 and 21 Bulgarian Cup titles, involved into 13 and 11 Doubles, respectively. The rivalry was chosen by COPA90 as the 2nd Maddest Derby in Eastern Europe. History The rivalry started in the late 1940s when the newly founded club of CSKA became a champion in their first year in competitive football in 1948. Both the 1948–49 and 1950 seasons ended with the two teams facing each other in Soviet Army Cup finals with Levski Sofia winning on both occasions after extra time of the second final replay, as the previous two final matches had finished as draws. During the years, as the two teams became more and more successful, they gained large supporter bases. The confrontations between the clubs and their fans became commonplace and often resulted in tense encounters on the pitch and hooligan clashes between the fans off the pitch. The hostility reached its climax on 19 June 1985 during the Bulgarian Cup final held at Vasil Levski National Stadium when, after many disputable referee decisions, both teams demonstrated poor sportsmanship which resulted in regular fights between them on the pitch. On 21 June, the Central Committee of the Bulgarian Communist Party issued a decree that disbanded both teams. CSKA Septemvriysko zname had to be re-founded as Sredets and Levski-Spartak as Vitosha. Six players (including Hristo Stoichkov and Borislav Mihaylov) were banned for life from playing competitive football; many other players and staff members were banned for three months to one year. A year later, the decision was abolished and the players continued their sport careers. Although both Levski and CSKA are still regarded as the two most popular and supported teams in Bulgaria, neither of the two sides have been crowned champion after 2009. This has been mostly because of the rise of other clubs in the country, such as Litex Lovech and Ludogorets Razgrad. Litex won two consecutive titles between 2009 and 2011, while Ludogorets is currently on a streak of 12 consecutive titles since 2012. Despite this, the Eternal derby games are still usually the most attended ones in the league. In the 2010s, both CSKA and Levski experienced financial instability, with CSKA even being relegated to the third level of Bulgarian football after the 2014–15 season, while Levski has been in serious financial problems in the last couple of years, with multiple ownership changes. Venues During the years, all the matches between Levski and CSKA were held at a neutral venue, in most cases at the Vasil Levski National Stadium. During the 2000s the clubs started to play their eternal derby matches at their own stadiums Georgi Asparuhov and Balgarska Armia but soon they decided to move the matches between them back to the National Stadium because of its higher capacity and the damages done on club stadiums by the visiting supporters. Only once in the history of the Eternal derby it was held outside Sofia – in 1991, Levski won the Bulgarian Cup quarter-final 2–0 in a match that was played at Tundzha Stadium in Yambol. Summary of results Note: All matches that have finished with a win after extra time are represented as a win for the respective club. All matches that have finished with a penalty shoot-out are represented as draws with the final score after 120 minutes. As of 7 October 2023. Matches list A PFG / First League (1948–49 – present) Bulgarian Cup and other Trophies Head-to-head ranking in First League (1948–2023) • Total: CSKA with 45 higher finishes, Levski with 30 higher finishes (as of the end of the 2022–23 season). Statistics Biggest wins Levski wins 7–1 – 23 September 1994, A PFG 7–2 – 17 November 1968, A PFG 5–0 – 13 May 1998, Bulgarian Cup final 4–0 – 16 June 1982, Bulgarian Cup final CSKA wins 5–0 – 23 September 1953, A PFG; 1 October 1989, A PFG 4–0 – 14 April 1957, A PFG Most appearances 35 – Manol Manolov (CSKA) 32 – Stefan Bozhkov (CSKA) 31 – Emil Spasov (Levski) Most goals 15 – Georgi Ivanov (Levski) 14 – Nasko Sirakov (Levski) 12 – Pavel Panov (Levski) 11 – Dimitar Milanov (CSKA) Most goals in one match 9 – Levski 6–3 CSKA (15 July 1962, A PFG); CSKA 2–7 Levski (17 November 1968, A PFG) Most red cards 3 – Vladimir Gadzhev (Levski) Most yellow cards 11 – Todor Yanchev (CSKA) Record attendances Highest attendance: 70,000 – 11 March 1967, Vasil Levski National Stadium (final score Levski 1–1 CSKA) and 31 May 1969, Vasil Levski National Stadium (final score Levski 1–3 CSKA) Lowest attendance: 8,000 – 18 November 1995, Vasil Levski National Stadium (final score Levski 3–1 CSKA) and 26 May 2002, Balgarska Armiya Stadium (final score CSKA 1–0 Levski) Notes and references Football derbies in Bulgaria PFC Levski Sofia PFC CSKA Sofia 1948 establishments in Bulgaria
The Prinzregentenstraße (, Prince-Regent Street) in Munich is one of four royal avenues and runs parallel to Maximilianstraße and begins at Prinz-Carl-Palais, in the northeastern part of the Old Town. The avenue was constructed from 1891 onwards as a prime address for the middle-class during the reign of Luitpold, Prince Regent of Bavaria and is named in his honour. The square in the eastern part of the street is named Prinzregentenplatz. Architecture In contrast to Ludwigstraße, the big boulevard of his father Ludwig I and to Maximilianstraße, the boulevard of his brother Maximilian II, Prinzregentenstraße was not planned as an administrative centre with a specially developed style; it was projected as a noble middle-class avenue. Thereby it reflects not only middle-class ideals, but was an expression of the good relation between the citizens, above all of the bourgeoisie and the educated classes, and the house of Wittelsbach. At the same time Prinzregentenstraße demonstrates the prosperity about 1900. Many museums can be found along the avenue, such as the Bayerisches Nationalmuseum (Bavarian National Museum, by Gabriel von Seidl 1894-1900), the Schackgalerie (by Max Littmann, 1907) and the Villa Stuck (1898) of Franz von Stuck which is already situated on the eastern side of the Isar river. The avenue crosses the river and circles the Friedensengel (Angel of Peace), a monument commemorating the 25 years of peace following the Franco-Prussian War in 1871. In 1891 the steel bridge was built as part of the Prinzregentenstraße after a draft of the architect Friedrich von Thiersch, which was financed by the Prince Regent and named after him. It was decorated by four stone sculptures which symbolized Bavaria, Swabia, Franconia and the Palatinate. In the winter the Prinzregentstadion on the eastern side serves for ice skating, for the rest of the year the stadium is transformed into an open-air swimming pool. The Prinzregententheater (by Max Littmann, 1901), an important theatre of the city, is at Prinzregentenplatz further to the east. In the easternmost part of the Prinzregentenstraße the church St. Gabriel was built in 1925–1926 by Otho Orlando Kurz and Eduard Herbert. Third Reich Starting with the Haus der Kunst ("House of Art"", 1933-1937 by Paul Ludwig Troost) the Prinzregentenstraße was altered by the Nazi Party, same as they did with the Brienner Straße and the Ludwigstraße to transform the royal avenues according to their ideas of a boulevard, which was always an expression of power and political significance for them. The former Luftgaukommando South opposite to the National Museum was built 1937/38 during the Third Reich and designed by German Bestelmeyer. The three-storey central building (250 meters long) is set back from the street and today serves as Bavarian Ministry of Economy. In the east it is flanked by a five-story tower, to the west by a four-storey front building. The tower-like, elongated bunker close to St. Gabriel also belongs to the Third Reich constructions in Munich. Today it serves as Kunstbunker Tumulka. Adolf Hitler's private apartment in Munich was located at 16 Prinzregentenplatz. It was his official private address and, beginning in 1929, the address in which he lived with his niece, Geli Raubal, who later committed suicide. Today, Hitler's second-floor apartment houses the Munich Financing Office for the state of Bavaria and Hitler's room is currently used for storage and not open to the public. References See also Prinzregentenplatz (Munich U-Bahn) Streets in Munich Tourist attractions in Munich
Rupert Bergmann (born 14 June 1965) is an Austrian opera singer (bass-baritone). He works mainly on contemporary music theatre as well as operetta and musical. In 2011 he presented Vogel Herzog Idiot, three "Mini-Mono-Operas" written for him by three different composers (in collaboration with Theater an der Wien). Discography As Maliniak in by Johannes Kalitzke, CD of the production at Theater an der Wien 2010/2012 References External links Soloist at Theater an der Wien 2012, with photo (German) Biography at Sirene Operntheater Vienna (German) Rupert Bergmann at Operabase Austrian operatic baritones Operatic bass-baritones Musicians from Graz Living people 1965 births 20th-century Austrian male opera singers 21st-century Austrian male opera singers University of Music and Performing Arts Graz alumni
Miguel Juan Balaguer de Camarasa also known as Miguel Balaguer or Michele Balaguer (1597 – 5 December 1663) was a Spanish Roman Catholic prelate who served as Bishop of Malta from 1635 to 1663. Biography Miguel Juan Balaguer Camarasa was born in Camarasa, in Spain. Upon the death of Bishop Baldassare Cagliares, Grandmaster Antoine de Paule and the council recommended that Balaguer be appointed bishop of Malta. Pope Urban VIII accepted Balaguer's nomination and formally appointed him to the see of Malta on February 12, 1635. He was ordained bishop on February 18, 1635 and installed as Bishop of Malta on March 25, 1635. During his episcopacy Balaguer donated a wooden crucifix by Innocenzo da Petralia Soprano (1592-1648), a Franciscan friar from Sicily which today is found in the Chapel of the Holy Crucifix in St. Paul's Cathedral, Mdina. Also Bishop Balaguer consecrated the oldest bell in Malta dating from Medieval times. The bell, christened Petronilla was, reconsecrated on August 7, 1645 and installed in its place in the cathedral's belfry. His episcopacy is characterised with accusations and conflict with lay persons, the Inquisitors and the knights. There were numerous occasions where Bishop Balaguer was about to resign though at the same time he was needed to reform the much slacking diocese. He had a rather long episcopacy of 28 years. He died as a result of a stroke on December 5, 1663 at the age of 66. References Bonnici, Alexander. I vescovi di Malta Baldassare Cagliares (1615-1633) e Michele Balaguer (1635-1663). Melita Historica, 5(2), 114–157. Malta Historical Society, 1969. L-Università ta'Malta, . 1597 births 1663 deaths 17th-century Spanish people 17th-century Roman Catholic bishops in Malta Spanish Roman Catholic bishops Bishops of Malta
Gahar Zagros Novin Dorood Football Club is an Iranian football club based in Dorud, Iran. They currently compete in the 2011–12 Hazfi Cup. Season-by-Season The table below shows the achievements of the club in various competitions. See also 2011–12 Hazfi Cup Gahar Zagros Football clubs in Iran Association football clubs established in 2010 2010 establishments in Iran
```python import json import os import pytest from localstack.services.iam.provider import SERVICE_LINKED_ROLE_PATH_PREFIX from localstack.testing.pytest import markers from localstack.utils.common import short_uid @markers.aws.validated def test_delete_role_detaches_role_policy(deploy_cfn_template, aws_client): role_name = f"LsRole{short_uid()}" stack = deploy_cfn_template( template_path=os.path.join( os.path.dirname(__file__), "../../../../templates/iam_role_policy.yaml" ), parameters={"RoleName": role_name}, ) attached_policies = aws_client.iam.list_attached_role_policies(RoleName=role_name)[ "AttachedPolicies" ] assert len(attached_policies) > 0 deploy_cfn_template( is_update=True, stack_name=stack.stack_name, template_path=os.path.join( os.path.dirname(__file__), "../../../../templates/iam_role_policy.yaml" ), parameters={"RoleName": f"role-{short_uid()}"}, ) with pytest.raises(Exception) as e: aws_client.iam.list_attached_role_policies(RoleName=role_name) assert e.value.response.get("Error").get("Code") == "NoSuchEntity" @markers.aws.validated def test_policy_attachments(deploy_cfn_template, aws_client): role_name = f"role-{short_uid()}" group_name = f"group-{short_uid()}" user_name = f"user-{short_uid()}" policy_name = f"policy-{short_uid()}" linked_role_id = short_uid() deploy_cfn_template( template_path=os.path.join( os.path.dirname(__file__), "../../../../templates/iam_policy_attachments.yaml" ), template_mapping={ "role_name": role_name, "policy_name": policy_name, "user_name": user_name, "group_name": group_name, "service_linked_role_id": linked_role_id, }, ) # check inline policies role_inline_policies = aws_client.iam.list_role_policies(RoleName=role_name) user_inline_policies = aws_client.iam.list_user_policies(UserName=user_name) group_inline_policies = aws_client.iam.list_group_policies(GroupName=group_name) assert len(role_inline_policies["PolicyNames"]) == 2 assert len(user_inline_policies["PolicyNames"]) == 1 assert len(group_inline_policies["PolicyNames"]) == 1 # check managed/attached policies role_attached_policies = aws_client.iam.list_attached_role_policies(RoleName=role_name) user_attached_policies = aws_client.iam.list_attached_user_policies(UserName=user_name) group_attached_policies = aws_client.iam.list_attached_group_policies(GroupName=group_name) assert len(role_attached_policies["AttachedPolicies"]) == 1 assert len(user_attached_policies["AttachedPolicies"]) == 1 assert len(group_attached_policies["AttachedPolicies"]) == 1 # check service linked roles roles = aws_client.iam.list_roles(PathPrefix=SERVICE_LINKED_ROLE_PATH_PREFIX)["Roles"] matching = [r for r in roles if r.get("Description") == f"service linked role {linked_role_id}"] assert matching policy = matching[0]["AssumeRolePolicyDocument"] policy = json.loads(policy) if isinstance(policy, str) else policy assert policy["Statement"][0]["Principal"] == {"Service": "elasticbeanstalk.amazonaws.com"} @markers.aws.validated @markers.snapshot.skip_snapshot_verify(paths=["$..User.Tags"]) def test_iam_username_defaultname(deploy_cfn_template, snapshot, aws_client): snapshot.add_transformer(snapshot.transform.iam_api()) snapshot.add_transformer(snapshot.transform.cloudformation_api()) template = json.dumps( { "Resources": { "DefaultNameUser": { "Type": "AWS::IAM::User", } }, "Outputs": {"DefaultNameUserOutput": {"Value": {"Ref": "DefaultNameUser"}}}, } ) stack = deploy_cfn_template(template=template) user_name = stack.outputs["DefaultNameUserOutput"] assert user_name get_iam_user = aws_client.iam.get_user(UserName=user_name) snapshot.match("get_iam_user", get_iam_user) @markers.aws.validated def test_iam_user_access_key(deploy_cfn_template, snapshot, aws_client): snapshot.add_transformers_list( [ snapshot.transform.key_value("AccessKeyId", "key-id"), snapshot.transform.key_value("UserName", "user-name"), snapshot.transform.key_value("SecretAccessKey", "secret-access-key"), ] ) user_name = f"user-{short_uid()}" stack = deploy_cfn_template( template_path=os.path.join( os.path.dirname(__file__), "../../../../templates/iam_access_key.yaml" ), parameters={"UserName": user_name}, ) snapshot.match("key_outputs", stack.outputs) key = aws_client.iam.list_access_keys(UserName=user_name)["AccessKeyMetadata"][0] snapshot.match("access_key", key) # Update Status stack2 = deploy_cfn_template( stack_name=stack.stack_name, is_update=True, template_path=os.path.join( os.path.dirname(__file__), "../../../../templates/iam_access_key.yaml" ), parameters={"UserName": user_name, "Status": "Inactive", "Serial": "2"}, ) keys = aws_client.iam.list_access_keys(UserName=user_name)["AccessKeyMetadata"] updated_key = [k for k in keys if k["AccessKeyId"] == stack2.outputs["AccessKeyId"]][0] # IAM just being IAM. First key takes a bit to delete and in the meantime might still be visible here snapshot.match("access_key_updated", updated_key) assert stack2.outputs["AccessKeyId"] != stack.outputs["AccessKeyId"] assert stack2.outputs["SecretAccessKey"] != stack.outputs["SecretAccessKey"] @markers.aws.validated def test_update_inline_policy(deploy_cfn_template, snapshot, aws_client): snapshot.add_transformer(snapshot.transform.iam_api()) snapshot.add_transformer(snapshot.transform.key_value("PolicyName", "policy-name")) snapshot.add_transformer(snapshot.transform.key_value("RoleName", "role-name")) snapshot.add_transformer(snapshot.transform.key_value("UserName", "user-name")) policy_name = f"policy-{short_uid()}" user_name = f"user-{short_uid()}" role_name = f"role-{short_uid()}" stack = deploy_cfn_template( template_path=os.path.join( os.path.dirname(__file__), "../../../../templates/iam_policy_role.yaml" ), parameters={ "PolicyName": policy_name, "UserName": user_name, "RoleName": role_name, }, ) user_inline_policy_response = aws_client.iam.get_user_policy( UserName=user_name, PolicyName=policy_name ) role_inline_policy_resource = aws_client.iam.get_role_policy( RoleName=role_name, PolicyName=policy_name ) snapshot.match("user_inline_policy", user_inline_policy_response) snapshot.match("role_inline_policy", role_inline_policy_resource) deploy_cfn_template( template_path=os.path.join( os.path.dirname(__file__), "../../../../templates/iam_policy_role_updated.yaml" ), parameters={ "PolicyName": policy_name, "UserName": user_name, "RoleName": role_name, }, stack_name=stack.stack_name, is_update=True, ) user_updated_inline_policy_response = aws_client.iam.get_user_policy( UserName=user_name, PolicyName=policy_name ) role_updated_inline_policy_resource = aws_client.iam.get_role_policy( RoleName=role_name, PolicyName=policy_name ) snapshot.match("user_updated_inline_policy", user_updated_inline_policy_response) snapshot.match("role_updated_inline_policy", role_updated_inline_policy_resource) @markers.aws.validated @markers.snapshot.skip_snapshot_verify( paths=[ "$..Policy.Description", "$..Policy.IsAttachable", "$..Policy.PermissionsBoundaryUsageCount", "$..Policy.Tags", ] ) def test_managed_policy_with_empty_resource(deploy_cfn_template, snapshot, aws_client): snapshot.add_transformer( snapshot.transform.iam_api(), ) snapshot.add_transformers_list( [snapshot.transform.resource_name(), snapshot.transform.key_value("PolicyId", "policy-id")] ) parameters = { "tableName": f"table-{short_uid()}", "policyName": f"managed-policy-{short_uid()}", } template_path = os.path.join( os.path.dirname(__file__), "../../../../templates/dynamodb_iam.yaml" ) stack = deploy_cfn_template(template_path=template_path, parameters=parameters) snapshot.match("outputs", stack.outputs) policy_arn = stack.outputs["PolicyArn"] policy = aws_client.iam.get_policy(PolicyArn=policy_arn) snapshot.match("managed_policy", policy) @markers.aws.validated @markers.snapshot.skip_snapshot_verify( paths=[ "$..ServerCertificate.Tags", ] ) def test_server_certificate(deploy_cfn_template, snapshot, aws_client): stack = deploy_cfn_template( template_path=os.path.join( os.path.dirname(__file__), "../../../../templates/iam_server_certificate.yaml" ), parameters={"certificateName": f"server-certificate-{short_uid()}"}, ) snapshot.match("outputs", stack.outputs) certificate = aws_client.iam.get_server_certificate( ServerCertificateName=stack.outputs["ServerCertificateName"] ) snapshot.match("certificate", certificate) stack.destroy() with pytest.raises(Exception) as e: aws_client.iam.get_server_certificate( ServerCertificateName=stack.outputs["ServerCertificateName"] ) snapshot.match("get_server_certificate_error", e.value.response) snapshot.add_transformer( snapshot.transform.key_value("ServerCertificateName", "server-certificate-name") ) snapshot.add_transformer( snapshot.transform.key_value("ServerCertificateId", "server-certificate-id") ) @markers.aws.validated def test_cfn_handle_iam_role_resource_no_role_name(deploy_cfn_template, aws_client): stack = deploy_cfn_template( template_path=os.path.join( os.path.dirname(__file__), "../../../../templates/iam_role_defaults.yml" ) ) role_path_prefix = "/test-role-prefix/" rs = aws_client.iam.list_roles(PathPrefix=role_path_prefix) assert len(rs["Roles"]) == 1 stack.destroy() rs = aws_client.iam.list_roles(PathPrefix=role_path_prefix) assert not rs["Roles"] @markers.aws.validated def test_updating_stack_with_iam_role(deploy_cfn_template, aws_client): lambda_role_name = f"lambda-role-{short_uid()}" lambda_function_name = f"lambda-function-{short_uid()}" # Create stack and wait for 'CREATE_COMPLETE' status of the stack stack = deploy_cfn_template( template_path=os.path.join( os.path.dirname(__file__), "../../../../templates/template7.json" ), parameters={ "LambdaRoleName": lambda_role_name, "LambdaFunctionName": lambda_function_name, }, ) function_description = aws_client.lambda_.get_function(FunctionName=lambda_function_name) assert stack.outputs["TestStackRoleName"] in function_description.get("Configuration").get( "Role" ) assert stack.outputs["TestStackRoleName"] == lambda_role_name # Generate new names for lambda and IAM Role lambda_role_name_new = f"lambda-role-new-{short_uid()}" lambda_function_name_new = f"lambda-function-new-{short_uid()}" # Update stack and wait for 'UPDATE_COMPLETE' status of the stack stack = deploy_cfn_template( is_update=True, template_path=os.path.join( os.path.dirname(__file__), "../../../../templates/template7.json" ), stack_name=stack.stack_name, parameters={ "LambdaRoleName": lambda_role_name_new, "LambdaFunctionName": lambda_function_name_new, }, ) function_description = aws_client.lambda_.get_function(FunctionName=lambda_function_name_new) assert stack.outputs["TestStackRoleName"] in function_description.get("Configuration").get( "Role" ) assert stack.outputs["TestStackRoleName"] == lambda_role_name_new ```
Zimni stadion: ; ; , romanized Zimniy stadion — in Slavic languages, an indoor sporting arena, usually (but not necessarily exclusively) used for sporting events. Literally meaning Winter Stadium, the name can be interpreted in two ways — as a venue for competitions in summer sports in winter, or as a venue for competitions and training in winter sports. Czech Republic Zimní stadion Havířov — in Havířov (opened in 1950) Zimní stadion Karlovy Vary — in Karlovy Vary (opened in 1947) Městský zimní stadion — in Kladno Zimní Stadion, or Metrostav Aréna — in Mladá Boleslav (opened in 1956) Zimní stadion Opava — in Opava (opened in 1953, roofed in 1956) Zimní stadion Přerov — in Přerov (opened in 1971) Třinecký Zimní Stadion, or Werk Arena — in Třinec (opened in 1967, roofed in 1976) Zimní stadion Na Lapači — in Vsetín (opened in 1966) Zimní stadion Luďka Čajky — in Zlín (opened in 1957) Slovakia Zimný štadión Liptovský Mikuláš — in Liptovský Mikuláš (opened in 1949) Russia Zimniy Stadion (Petersburg) — in Saint Petersburg (opened in 1949 in Leningrad)
Ladissa is a genus of ground spiders that was first described by Eugène Simon in 1907. Species it contains four species in India and Africa: Ladissa africana Simon, 1907 – Sierra Leone Ladissa inda (Simon, 1897) (type) – India Ladissa latecingulata Simon, 1907 – India Ladissa semirufa Simon, 1907 – Benin References Araneomorphae genera Gnaphosidae Spiders of Africa Spiders of the Indian subcontinent Taxa named by Eugène Simon
Phipps Bend Nuclear Plant was a planned nuclear power generation facility that was to be constructed and operated by the Tennessee Valley Authority (TVA) in unincorporated Hawkins County, Tennessee. Proposed to house two reactor units, the power plant was estimated to cost $1.6 billion when it was first planned in late 1977, provide a generating capacity of 2,600,000 kilowatts. Following negative public reactions towards nuclear energy following the Three Mile Island accident and a decreasing demand for power due to regional economic decline, the TVA's board of directors voted to defer further construction of the power plant. By 1981, the plant was 40% complete and an estimated $1.5 billion in planning, engineering, and construction costs had accumulated. Construction never resumed, and the project was canceled overall in 1982 due to lower load growth than forecast. By the project's cancellation, the TVA had amassed over $2.6 billion in spending for the incomplete nuclear facility. After being auctioned off by the TVA in 1987, the land acquired for the plant would be under the ownership of Hawkins County's industrial development board, who converted most of the site into an industrial park. A 1 MW solar farm was built at the site in 2017. Planning With the emergence of developing nuclear power technology by the 1950s-1960s, the TVA would initiate a nuclear development plan by the mid-1960s to plan and build seven nuclear power generation stations across the Tennessee Valley, Browns Ferry, Sequoyah, Watts Bar, Bellefonte, Hartsville, Yellow Creek, and Phipps Bend. This was a result of new interest regarding the environmental efficiency of nuclear power while having a baseload as powerful as the fossil fuel facilities the TVA had constructed the decades prior. In 1974, the TVA's first nuclear reactor would be operational at the Browns Ferry facility near Huntsville, Alabama. Interest for a nuclear power plant in Hawkins County was reported as early as 1972, when a community club expressed enthusiasm for a breeder reactor unit at the John Sevier Fossil Plant near the county seat of Rogersville. By 1974, the TVA announced plans for a two-unit nuclear power generation station in the Phipps Bend area of Hawkins County, citing the level acreage along the banks of the Holston River. The TVA would acquire over 1,400 acres of farmland on the northern shore of the Holston River through primarily eminent domain. Infrastructure upgrades both on-site and off-site were underway to prepare for the power plant, including the widening of U.S. Route 11W into a four-lane limited-access highway from Kingsport to Rogersville, and over $2 million in the construction of water and sewage systems to access the plant site from the public works department of Rogersville. The TVA provided funding for industrial access roads to Phipps Bend from US 11W. For the Phipps Bend reactor units, the TVA purchased two BWR-6 boiling water reactors supplied by General Electric. The Phipps Bend reactors had a net output of nearly 2600 MWe. Construction Construction on Phipps Bend began with the demolition of existing structures on the project in April 1977 and drilling for core samples at for geotechnical work. Value of the project increased an additional billion dollars following change orders and rising costs in construction materials. The project employed a peak construction workforce of over 2,500 workers. Unit 1 By the cancellation of the Phipps Bend project, the most near-complete portion of the overall project was the structure of the Unit 1 reactor. The reactor shell for Unit 1 was completed. The steel frame base for the cooling tower for Unit 1 was also complete by the project's cancellation. Overall, Phipps Bend Unit 1 was 29% complete by the project's cancellation. Unit 2 Phipps Bend Unit 2 was 5% complete overall by the project's cancellation. Cancellation and legacy In 1981, the TVA board of directors voted unanimously to defer further construction of the Phipps Bend nuclear project in a conference at the TVA's twin tower complex in downtown Knoxville. More than 100 individuals attended the conference to protest the deferment, with over 40 Hawkins County residents wearing yellow armbands signifying that they were "hostages" to the TVA. In 1987, the TVA auctioned off the Phipps Bend site and the incomplete nuclear facility to Phipps Bend Joint Venture LLC, an industrial development group consisting of Hawkins County and Kingsport officials. Charlotte, North Carolina based renewable energy firm Birdseye Renewable Energy announced in a partnership with Atlanta-based United Renewable Energy to construct a photovoltaic power station at the Phipps Bend site. The six-acre facility, consisting of more than 3,000 solar panels, was completed in 2017 at a cost of $1.8 million. Birdseye has contracted to sell its power to Holston Electric Cooperative, an electricity distributor based in Hawkins and Hamblen counties. The TVA assisted in the project with its Solar Solutions Initiative, which provides financial incentives for solar power projects in the Tennessee Valley. References External links Wikimapia Proposed nuclear power stations in the United States Nuclear power stations using pressurized water reactors Tennessee Valley Authority Unfinished nuclear reactors Buildings and structures in Hawkins County, Tennessee Protected areas of Hawkins County, Tennessee
Beth Campbell may refer to: Beth Campbell (artist) (born 1971), American artist Beth Campbell (musician) in Atlas (band) Beth Campbell (jurist), magistrate of the Australian Capital Territory Beth Newlands Campbell, president of Rexall Drugstore Beth Campbell Short (1908 – 1988), American journalist See also Bethany Campbell, writer Elizabeth Campbell (disambiguation)
```java /* * * * * path_to_url * * Unless required by applicable law or agreed to in writing, software * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * */ package com.netflix.metacat.connector.postgresql; import com.netflix.metacat.common.server.connectors.ConnectorFactory; import com.netflix.metacat.common.server.connectors.ConnectorPlugin; import com.netflix.metacat.common.server.connectors.ConnectorTypeConverter; import com.netflix.metacat.common.server.connectors.ConnectorContext; import lombok.NonNull; import javax.annotation.Nonnull; /** * Implementation of the ConnectorPlugin interface for PostgreSQL. * * @author tgianos * @since 1.0.0 */ public class PostgreSqlConnectorPlugin implements ConnectorPlugin { private static final String CONNECTOR_TYPE = "postgresql"; private static final PostgreSqlTypeConverter TYPE_CONVERTER = new PostgreSqlTypeConverter(); /** * {@inheritDoc} */ @Override public String getType() { return CONNECTOR_TYPE; } /** * {@inheritDoc} */ @Override public ConnectorFactory create(@Nonnull @NonNull final ConnectorContext connectorContext) { return new PostgreSqlConnectorFactory(connectorContext.getCatalogName(), connectorContext.getCatalogShardName(), connectorContext.getConfiguration()); } /** * {@inheritDoc} */ @Override public ConnectorTypeConverter getTypeConverter() { return TYPE_CONVERTER; } } ```
The following is a list of footballers who have represented Palau in senior international matches. Key Players List is incomplete as of 23 December 2022. References Association football player non-biographical articles Palau Footballers
Chapayevskoye () is a rural locality (a settlement) in Ertil, Ertilsky District, Voronezh Oblast, Russia. The population was 98 as of 2010. There are 2 streets. Geography Chapayevskoye is located 6 km west of Ertil (the district's administrative centre) by road. Ertil is the nearest rural locality. References Rural localities in Ertilsky District
```javascript /** * Created with JetBrains PhpStorm. * CustomUser: xuheng * Date: 12-8-8 * Time: 2:09 * To change this template use File | Settings | File Templates. */ (function () { var me = editor, preview = $G( "preview" ), preitem = $G( "preitem" ), tmps = templates, currentTmp; var initPre = function () { var str = ""; for ( var i = 0, tmp; tmp = tmps[i++]; ) { str += '<div class="preitem" onclick="pre(' + i + ')"><img src="' + "images/" + tmp.pre + '" ' + (tmp.title ? "alt=" + tmp.title + " title=" + tmp.title + "" : "") + '></div>'; } preitem.innerHTML = str; }; var pre = function ( n ) { var tmp = tmps[n - 1]; currentTmp = tmp; clearItem(); domUtils.setStyles( preitem.childNodes[n - 1], { "background-color":"lemonChiffon", "border":"#ccc 1px solid" } ); preview.innerHTML = tmp.preHtml ? tmp.preHtml : ""; }; var clearItem = function () { var items = preitem.children; for ( var i = 0, item; item = items[i++]; ) { domUtils.setStyles( item, { "background-color":"", "border":"white 1px solid" } ); } }; dialog.onok = function () { if ( !$G( "issave" ).checked ){ me.execCommand( "cleardoc" ); } var obj = { html:currentTmp && currentTmp.html }; me.execCommand( "template", obj ); }; initPre(); window.pre = pre; preitem.children[1].click(); })(); ```
Champions Professional Men 2003 NBA Finals: San Antonio Spurs over the New Jersey Nets 4-2. MVP: Tim Duncan (More information can be found at 2003-04 NBA season.) 2002-03 NBA season 2003 NBA Playoffs 2003 NBA draft 2003 NBA All-Star Game Eurobasket: Lithuania 93, Spain 84 Women WNBA Finals: Detroit Shock over Los Angeles Sparks 2-1. MVP: Ruth Riley 2003 WNBA season 2003 WNBA Playoffs 2003 WNBA draft 2003 WNBA All-Star Game Eurobasket Women: Russia def. Czech Republic College Men NCAA Division I: Syracuse University 81, University of Kansas 78 National Invitation Tournament: University of Michigan NCAA Division II: Northeastern State University 75, Kentucky Wesleyan College 64 NCAA Division III: Williams College 67, Gustavus Adolphus College 65 NAIA Division I Concordia 88, Mountain State 84 OT NAIA Division II Oregon Tech 81, Bellevue (Neb.) 70 Women NCAA Division I: University of Connecticut 73, University of Tennessee 68 Women's National Invitation Tournament: Auburn 64, Baylor 63 NCAA Division II: South Dakota State 65, Northern Kentucky University 60 NCAA Division III Trinity University (Tex.) 60, Eastern Connecticut State 58 NAIA Division I: Southern Nazarene (Okla.) 71, Oklahoma City University 70 NAIA Division II Hastings (Neb.) 59, Dakota Wesleyan (S.D.) 53 Awards and honors Naismith Memorial Basketball Hall of Fame Class of 2003: Leon Barmore Francis D. "Chick" Hearn Earl F. Lloyd Meadowlark Lemon Dino Meneghin Robert L. Parish James A. Worthy Women's Basketball Hall of Fame Class of 2003 Leon Barmore Tara Heiss Claude Hutcherson Patsy Neal Doris Rogers Marsha Sharp Professional Men NBA Most Valuable Player Award: Tim Duncan NBA Rookie of the Year Award: Amar'e Stoudemire NBA Defensive Player of the Year Award: Ben Wallace NBA Coach of the Year Award: Gregg Popovich, San Antonio Spurs Euroscar Award: Dirk Nowitzki, Dallas Mavericks and Mr. Europa: Šarūnas Jasikevičius, Maccabi Tel Aviv and (also FC Barcelona) Women WNBA Most Valuable Player Award: Lauren Jackson, Seattle Storm WNBA Defensive Player of the Year Award: Sheryl Swoopes, Houston Comets WNBA Rookie of the Year Award: Cheryl Ford, Detroit Shock WNBA Most Improved Player Award: Michelle Snow, Houston Comets Kim Perrot Sportsmanship Award: Edna Campbell, Sacramento Monarchs WNBA Coach of the Year Award: Bill Laimbeer, Detroit Shock WNBA Finals Most Valuable Player Award: Ruth Riley, Detroit Shock Collegiate Combined Legends of Coaching Award: Roy Williams, Kansas Men John R. Wooden Award: T. J. Ford, Texas Naismith College Coach of the Year: Tubby Smith, Kentucky Frances Pomeroy Naismith Award: Jason Gardner, Arizona Associated Press College Basketball Player of the Year: David West, Xavier NCAA basketball tournament Most Outstanding Player: Emeka Okafor, Connecticut USBWA National Freshman of the Year: Carmelo Anthony, Syracuse Associated Press College Basketball Coach of the Year: Tubby Smith, Kentucky Naismith Outstanding Contribution to Basketball: Charles “Lefty” Driesell Women Naismith College Player of the Year: Diana Taurasi, Connecticut Naismith College Coach of the Year: Gail Goestenkors, Duke Wade Trophy: Diana Taurasi, Connecticut Frances Pomeroy Naismith Award: Kara Lawson, Tennessee Associated Press Women's College Basketball Player of the Year: Diana Taurasi, Connecticut NCAA basketball tournament Most Outstanding Player: Diana Taurasi, UConn Basketball Academic All-America Team: Kristine Austgulen, VCU Carol Eckman Award: Marsha Sharp, Texas Tech University USBWA National Freshman of the Year: Seimone Augustus, LSU Associated Press College Basketball Coach of the Year: Geno Auriemma, Connecticut List of Senior CLASS Award women's basketball winners: LaToya Thomas, Mississippi State Nancy Lieberman Award: Diana Taurasi, Connecticut Naismith Outstanding Contribution to Basketball: Betty Jaynes Events Deaths January 20 — Dan King, American NBA player (Baltimore Bullets) (born 1931) January 29 — John Murphy, American BAA player (Philadelphia Warriors, New York Knicks) (born 1924) February 9 — John Hyder, American college coach (Georgia Tech) (born 1912) March 29 — Carl Ridd, Canadian Olympic player (1952) (born 1929) April 5 — Helgi Jóhannsson, Icelandic basketball player and coach (born 1929) April 16 — Jewell Young, All-American college player (Purdue), NBL player (Indianapolis Kautskys, Oshkosh All-Stars) (born 1913) May 14 — Dave DeBusschere, American Hall of Fame NBA player (New York Knicks, Detroit Pistons) (born 1940) May 14 — Al Fleming, American NBA player (Seattle SuperSonics) (born 1954) May 23 — Weenie Miller, American college coach (VMI) (born 1922) May 29 — Anthony Frederick, American NBA player (Indiana Pacers, Sacramento Kings, Charlotte Hornets) (born 1964) June 16 — David Polansky, American college coach (CCNY) (born 1919) June 22 — John Mandic, American NBA player (born 1919) September 20 — Ernie Calverley, All-American player and coach at Rhode Island (born 1924) October 16 — Chet Jaworski, All-American player (Rhode Island) (born 1916) October 23 — Kevin Magee, Former All-American at UC Irvine and Maccabi Tel Aviv player (born 1959) October 30 — Stan Szukala, American NBL player (Chicago Bruins, Chicago American Gears) (born 1918) November 21 — Bill Haarlow, American NBL player (Whiting Ciesar All-Americans) (born 1913) December 8 — Chuck Noe, American college coach (VMI, Virginia Tech, South Carolina, VCU) (born 1924) December 9 — Norm Sloan, College basketball coach of the 1974 national champion NC State Wolfpack (born 1926) December 26 — Gale Bishop, All-American college (Washington State) and BAA (Philadelphia Warriors) player (born 1922) See also Timeline of women's basketball References
John Lee Hubby (March 19, 1932 – March 28, 1996) was an American geneticist, pioneer of gel electrophoresis, and co-author, with Richard Lewontin, of foundational studies in the field of molecular evolution. After earning a PhD from the University of Texas at Austin in 1959, Hubby took a postdoctoral fellowship at the University of Chicago, followed by a faculty position there. In the early 1960s, he developed new applications for gel electrophoresis. He applied the technique to identify different versions of the same protein, reflecting different alleles for the same genetic locus, in fruit flies. Hubby collaborated with Lewontin to produce two breakthrough papers in 1966 that used electrophoresis to determine the level of genetic variation in natural populations of Drosophila pseudoobscura. Their studies revealed high levels of heterozygosity relative to the predictions of most evolutionary theorists, and pioneered the study of molecular evolution References External links Obituary, Chicago Chronicle Obituary, New York Times Obituary, Santa Fe New Mexican 1932 births 1996 deaths American geneticists University of Chicago faculty University of Texas at Austin alumni People from Santa Fe, New Mexico
Commons is a general term for shared resources, typically used in political economic theory. Commons may also refer to: Shared resources Common good (disambiguation) Common land, shared areas of land; has a specific legal meaning in the British Isles Global commons, term used for international commons in political economic theory Computing and Internet Apache Commons, repository of reusable Java programming language components Creative Commons, licensing system for creative works Digital commons (economics), a form of commons involving the distribution and communal ownership of informational resources and technology Digital Commons (Elsevier), a commercial, hosted institutional repository platform owned by RELX Group Wikimedia Commons, a project of the Wikimedia Foundation that serves as an online repository of images, sound, and other media files Places Electoral districts Commons (ward), Christchurch, England Northern Ireland townlands Commons, County Down, in the List of townlands in County Down Commons, County Fermanagh, in the List of townlands in County Fermanagh Commons, County Tyrone, in the List of townlands in County Tyrone Shopping centers Algonquin Commons, a large outdoor shopping center in Algonquin, Illinois, US, often referred to as "the Commons" Ithaca Commons, a shopping street in Ithaca, New York, US People John R. Commons (1862–1945), economist and labour historian Jamie N Commons (born 1988), British singer and songwriter Kim Commons (1951–2015), American chess master Kris Commons (born 1983), Scottish footballer Michael Commons (born 1939), American scientist Media Commons: Journal of Social Criticism, a left-wing Ukrainian magazine Commmons, a Japanese record label The Commons (TV series), a 2020 Australian series on Stan Political parties Commons (Chilean political party) Commons (Colombian political party) Other uses House of Commons, the elected lower houses of the parliaments of the United Kingdom and Canada, colloquially referred to as "the Commons" Commons, a concurrency road or other place where multiple roadways share pavement See also Common (disambiguation) Common good (disambiguation) Commoner (disambiguation) The Common (disambiguation) Commonlands, an area in the game EverQuest 1 and 2
Koloonella minutissima is a species of sea snail, a marine gastropod mollusk in the family Murchisonellidae, the pyrams and their allies. Distribution This marine species occurs off Eastern Australia and New South Wales. References Citations Sources Iredale, T. & McMichael, D.F. (1962). A reference list of the marine Mollusca of New South Wales. Memoirs of the Australian Museum. 11 : 1-109 External links To World Register of Marine Species Murchisonellidae Gastropods described in 1951
Than Thar Moe Theint (; born 7 March 1995) is a Burmese television and film actress. She is known for her roles in television series It was on Yesterday 2 (2018), I'm Mahaythi (2019) and A Chit Phwae Lay Nyin (2020). Early life and education Than Thar Moe Theint was born on March 7, 1995, in Yangon, Myanmar. She attended at Basic Education High School No. 1 Dagon. She graduated from Dagon University. Career She started her career from attending Star & Model In't in 2014. Then she won Best Costume Award in Oramin F High School Queen 2014 and performing as Academy Shwe Kyo (the person tasked with holding the tray of the Academy statue or Academy prize information paper at the Myanmar Academy Awards Ceremony) alongside Paing Takhon in Myanmar Motion Picture Academy Awards Ceremony 2013. In 2018, she starred in her debut MRTV-4 crime-action series It was on Yesterday 2 as the character Pan Thu alongside Aung Min Khant, Khar Ra, Tyron Bejay, Aye Myat Thu and Su Pan Htwar. In 2019, she starred in drama series Kya Ma Ka Mahaythi as the character Main Ma Chaw alongside Aung Yay Chan and Wint Yamone Naing. In 2020, she starred in drama series A Chit Phwae Lay Nyin as the character May Pyo Phyu alongside Kyaw Htet Zaw and Khant Thiri Zaw. Political activities Following the 2021 Myanmar coup d'état, Than Thar Moe Theint was active in the anti-coup movement both in person at rallies and through social media. On 5 April 2021, warrants for her arrest were issued under section 505 (a) of the Myanmar Penal Code by the State Administration Council for speaking out against the military coup. Along with several other celebrities, she was charged with calling for participation in the Civil Disobedience Movement (CDM) and damaging the state's ability to govern, with supporting the Committee Representing Pyidaungsu Hluttaw, and with generally inciting the people to disturb the peace and stability of the nation. Filmography Film (Cinema) Lay Par Kyawt Shein Warazain (2019) Television series It was on Yesterday 2 (2018) I'm Mahaythi (2019) A Chit Phwae Lay Nyin (2020) Kyaw Zaw Maw Zaw (2023) References External links Burmese female models 21st-century Burmese actresses Models from Yangon Actresses from Yangon Living people 1995 births
Baba Amr (/ALA-LC: Bâba ʿAmr) is a city district (hayy) in southwestern Homs in central Syria. In 2004, it had a population of 34,175 (the hayy of Sultaniya which abuts Baba Amr to the south was also counted in this figure). Abutting Baba Amr and Sultaniya from the north and south respectively are the city districts of Inshaat and the village of Jobar. To the west are the villages of Aysun, Shalluh and al-Mazra'a and to the east is Homs' Palestinian refugee camp. History Baba Amr was named after Amr ibn Abasah, who was buried in Homs. In the early 20th century, Baba Amr was a village in Orontes plain southwest of Homs. The modern district was formed largely as a result of Bedouin migration from the desert steppe east of Homs to the city's suburbs in the 1960s and 1970s. The Bedouin moved to the area due to land reforms by the Ba'athist government of leaders Salah Jadid and Hafez al-Assad which saw many semi-nomadic Bedouin settle in the suburbs of major cities. Most of Baba Amr's inhabitants self-identify as members of the Mawali and Bani Hassan tribal confederations. The inhabitants are predominantly Sunni Muslims. During the Syrian Civil War, Baba Amr was the epicentre of fighting in the 2012 Homs offensive. References Neighborhoods of Homs
Halcampidae is a family of sea anemones. Members of this family usually live with their column buried in sand or other soft substrates. Genera Genera in the family include: Acthelmis Lütken, 1875 Cactosoma Danielssen, 1890 Calamactinia Carlgren, 1949 Calamactis Carlgren, 1951 Halcampa Gosse, 1858 Halcampaster Halcampella Andres, 1883 Halcampoides Danielssen, 1890 Halianthella Kodioides Mena Metedwardsia Neohalcampa Parahalcampa Pentactinia Carlgren, 1900 Scytophorus Hertwig, 1882 Siphonactinopsis Carlgren, 1921 Characteristics Species of Halcampidae mostly have elongated columns which are sometimes differentiated into different regions. The base is usually rounded but in some species it is flattened. There is no sphincter. There are up to forty tentacles, all of equal length. There are up to twenty pairs of perfect mesenteries (internal partitions) with strong retractors. There are one or two siphonoglyphs (ciliated grooves). References Metridioidea Cnidarian families
Golbahar () may refer to: Afghanistan Gulbahar, Afghanistan Iran Shahr Jadid-e Golbahar, a city near Mashhad city (40 km far from Mashhad) Golbahar, Khuzestan Golbahar-e Atabaki, a village in Lorestan Province, Iran Golbahar-e Olya, a village in Lorestan Province, Iran Golbahar-e Sheykh Miri, a village in Lorestan Province, Iran Golbahar-e Sofla, a village in Lorestan Province, Iran Golbahar-e Yusefabad, a village in Lorestan Province, Iran Pakistan Gulbahar, a neighborhood of Karachi, Sindh, Pakistan
Peter Olcott (April 25, 1733 – September 12, 1808) was a Vermont public official and military officer who served as a brigadier general in the colonial militia, the sixth lieutenant governor of the Vermont Republic, and the first lieutenant governor of the state of Vermont. Early life Born in Bolton, Connecticut Colony, Olcott moved to Norwich, Province of New Hampshire in the early 1770s and served in numerous local offices, including Overseer of the Poor, Justice of the Peace and County Judge. Career Olcott was active during the American Revolution. He served as Sequestration Commissioner for Tory Property in 1777 and was a member of the Vermont House of Representatives in 1778. He was a colonel in the Vermont militia, and his regiment took part in the Battles of Bennington and Saratoga. From 1781 to 1788 Olcott was commander of the Vermont militia's Third Brigade with the rank of brigadier general. Olcott was a member of the Governor's Council in 1779, and again from 1781 to 1790. He served on the Vermont Supreme Court from 1782 to 1784. He was Vermont's lieutenant governor from 1790 to 1794, and served in the Vermont House again in 1801. Olcott was also a trustee of Dartmouth College from 1788 until his death. Death Olcott died in Hanover, Grafton County, New Hampshire, on September 12, 1808 (age 75 years, 140 days). He is interred at Meeting House Hill Cemetery, Norwich, Windsor County, Vermont. Family life Son of Deacon Titus Olcott, he married Sarah Mills on October 11, 1759, and they had nine children, Pelatiah, Peter, Timothy, Roswell, Sarah, Margaret, Margaret, Mills, and Martha. References External links 1733 births 1808 deaths People from Norwich, Vermont Lieutenant Governors of Vermont People of Vermont in the American Revolution Justices of the Vermont Supreme Court Vermont state court judges People of pre-statehood Vermont People from Bolton, Connecticut