Files
osrg-gobgp/packet
IWASE YusukeandFUJITA Tomonori 76c289ea36 packet/bgp: Use fixed len types in FlowSpec components
Currently, the "FlowSpecComponentItem" uses int type for the "Op" and
"Value" fields, but Golang int type has 4 bytes length on the 32-bit
env and 8 bytes length on the 64-bit env.
For example, to support the SNAP (Type 20) rule, which has 5 bytes
value field, int type has not enough length on 32-bit env.

This patch fixes to use the fixed length integer types for the
FlowSpec components and avoid overflows of value range.

Signed-off-by: IWASE Yusuke <[email protected]>
2017-11-28 15:23:04 +09:00
..
2017-10-07 08:53:12 +02:00
2016-04-12 09:12:30 +09:00