Skip to content

A violation regarding the specifications for the protocol identifier. #814

@ProtocolSpecCheck

Description

@ProtocolSpecCheck

Hi,

I noticed a violation regarding the specifications for the protocol identifier.

In the MODBUS MESSAGING ON TCP/IP IMPLEMENTATION GUIDE V1.0b there is one specification of the protocol identifier in the Page 24 and Page 29 :

Precondition - !(Protocol Identifier == 0x0000)

Postcondition - the request should be discarded(rejected)

Page 24

Image

Page 29

Image

However, there is no verification of the protocol identifier."

Steps to reproduce(after installation):

1)Terminal-1 (Server: bandwidth-server-many-up)
./libmodbus/tests/bandwidth-server-many-up

  1. Terminal-2 (Client: Send one invalid inputs with the protocol identifier set to 0xffff)
    b"\x00\x01\xff\xff\x00\x06\xff\x01\x00\x01\x00\x01"

  2. Observer the received response (still valid with no error):
    b"\x00\x01\x00\x00\x00\x04\xff\x01\x01\x00"

Thank you for your attention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions