pysctp
pysctp copied to clipboard
Byte-ordering is incorrect when trying to use ppid attribute of sctp_send
When trying to use the ppid attribute, the integer value is sent over the wire with the byte order swapped from the correct value for the specified number.
For example, if I were to specify a PPID of 46 (the ppid of Diameter which in hex is 0x0000002e) in Python, the ppid that is sent over the wire is instead 771751936 (which in hex is 0x2e000000).
If I instead specified a ppid of 0x2e000000, the ppid sent over the wire is 46 (0x0000002e). This seems to indicate that a byte-ordering error is occurring between when the integer is specified in python and when it is sent over the wire.