Searched refs:rfilter (Results 1 – 2 of 2) sorted by relevance
57 qemu_can_filter *rfilter; member180 g_free(c->rfilter); in can_host_socketcan_disconnect()181 c->rfilter = NULL; in can_host_socketcan_disconnect()247 c->rfilter = g_new(struct qemu_can_filter, c->rfilter_num); in can_host_socketcan_connect()250 c->rfilter[0].can_id = 0; in can_host_socketcan_connect()251 c->rfilter[0].can_mask = 0; in can_host_socketcan_connect()252 c->rfilter[0].can_mask &= ~CAN_ERR_FLAG; in can_host_socketcan_connect()254 setsockopt(s, SOL_CAN_RAW, CAN_RAW_FILTER, c->rfilter, in can_host_socketcan_connect()270 g_free(c->rfilter); in can_host_socketcan_connect()271 c->rfilter = NULL; in can_host_socketcan_connect()
498 struct can_filter rfilter[2];500 rfilter[0].can_id = 0x123;501 rfilter[0].can_mask = CAN_SFF_MASK;502 rfilter[1].can_id = 0x200;503 rfilter[1].can_mask = 0x700;505 setsockopt(s, SOL_CAN_RAW, CAN_RAW_FILTER, &rfilter, sizeof(rfilter));539 rfilter[0].can_id = 0x123;540 rfilter[0].can_mask = CAN_SFF_MASK;549 struct can_filter rfilter[2];551 rfilter[0].can_id = 0x123;[all …]