BUG-1065: translation of Ipv6ExtHeader flags to int

- moved translation to separate method + test
- fixed the false part of ternary operator

Change-Id: I498dbf6c37f2d7348743d33bd49fe2ff46870621
Signed-off-by: Michal Rehak <mirehak@cisco.com>