MCPcopy Create free account
hub / github.com/F-Stack/f-stack / is_addr_different

Function is_addr_different

dpdk/app/test/test_cmdline_etheraddr.c:73–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71};
72
73static int
74is_addr_different(const struct rte_ether_addr addr, uint64_t num)
75{
76 int i;
77 for (i = 0; i < RTE_ETHER_ADDR_LEN; i++, num >>= 8)
78 if (addr.addr_bytes[i] != (num & 0xFF)) {
79 return 1;
80 }
81 return 0;
82}
83
84/* test invalid parameters */
85int

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected