/usr/src/sys/net/switchofp.c: In function 'swofp_ox_cmp_ether_addr':
/usr/src/sys/net/switchofp.c:1758: warning: integer constant is too large for
'long' type
/usr/src/sys/net/switchofp.c: In function 'swofp_ox_match_ether_addr':
/usr/src/sys/net/switchofp.c:2746: warning: integer constant is too large for
'long' type
*** Error 1 in /usr/src/sys/arch/i386/compile/GENERIC (Makefile:1034
'switchofp.o')
Index: switchofp.c
===================================================================
RCS file: /cvs/src/sys/net/switchofp.c,v
retrieving revision 1.14
diff -u -p -r1.14 switchofp.c
--- switchofp.c 19 Oct 2016 08:34:53 -0000 1.14
+++ switchofp.c 21 Oct 2016 11:52:51 -0000
@@ -1755,7 +1755,7 @@ swofp_ox_cmp_ether_addr(struct ofp_ox_ma
struct ofp_ox_match *key, int strict)
{
uint64_t tmth, tmask, kmth, kmask;
- uint64_t eth_mask = 0x0000FFFFFFFFFFFF;
+ uint64_t eth_mask = 0x0000FFFFFFFFFFFFULL;
if (OFP_OXM_GET_FIELD(target) != OFP_OXM_GET_FIELD(key))
@@ -2743,7 +2743,7 @@ int
swofp_ox_match_ether_addr(struct switch_flow_classify *swfcl,
struct ofp_ox_match *oxm)
{
- uint64_t eth_mask = 0x0000FFFFFFFFFFFF;
+ uint64_t eth_mask = 0x0000FFFFFFFFFFFFULL;
uint64_t in, mth, mask;
switch (OFP_OXM_GET_FIELD(oxm)) {