summaryrefslogtreecommitdiffhomepage
path: root/gobmpd
diff options
context:
space:
mode:
authorIWASE Yusuke <iwase.yusuke0@gmail.com>2017-11-28 11:39:42 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-11-28 15:23:04 +0900
commit76c289ea3624502f12d03ee9a5a34340d571df88 (patch)
tree15120098ecd56f831b119edfb87503cd8b69c1bf /gobmpd
parent5440f32fcd85264b659d126573f447a80eb3db31 (diff)
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 <iwase.yusuke0@gmail.com>
Diffstat (limited to 'gobmpd')
0 files changed, 0 insertions, 0 deletions