Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 666448
Collapse All | Expand All

(-)a/src/expr/counter.c (-3 / +2 lines)
Lines 35-44 nftnl_expr_counter_set(struct nftnl_expr *e, uint16_t type, Link Here
35
35
36
	switch(type) {
36
	switch(type) {
37
	case NFTNL_EXPR_CTR_BYTES:
37
	case NFTNL_EXPR_CTR_BYTES:
38
		ctr->bytes = *((uint64_t *)data);
38
		memcpy(&ctr->bytes, data, sizeof(uint64_t));
39
		break;
39
		break;
40
	case NFTNL_EXPR_CTR_PACKETS:
40
	case NFTNL_EXPR_CTR_PACKETS:
41
		ctr->pkts = *((uint64_t *)data);
41
		memcpy(&ctr->pkts, data, sizeof(uint64_t));
42
		break;
42
		break;
43
	default:
43
	default:
44
		return -1;
44
		return -1;
45
- 

Return to bug 666448