Home
last modified time | relevance | path

Searched refs:can_id (Results 1 – 13 of 13) sorted by relevance

/external/iproute2/tc/
Dem_canid.c60 unsigned int can_id = 0; in canid_parse_rule() local
63 if (sscanf(a->data, "%"SCNx32 ":" "%"SCNx32, &can_id, &can_mask) != 2) { in canid_parse_rule()
64 if (sscanf(a->data, "%"SCNx32, &can_id) != 1) { in canid_parse_rule()
82 rules->rules_raw[rules->rules_cnt].can_id = in canid_parse_rule()
83 can_id | ((iseff) ? CAN_EFF_FLAG : 0); in canid_parse_rule()
160 if (pcfltr->can_id & CAN_EFF_FLAG) { in canid_print_eopt()
163 pcfltr->can_id & CAN_EFF_MASK); in canid_print_eopt()
166 pcfltr->can_id & CAN_EFF_MASK, in canid_print_eopt()
171 pcfltr->can_id & CAN_SFF_MASK); in canid_print_eopt()
174 pcfltr->can_id & CAN_SFF_MASK, in canid_print_eopt()
/external/ltp/testcases/network/can/filter-tests/
Dcan_filter.c144 rfilter.can_id = calc_id(testcase); in main()
150 "0x%08X\n", testcase, rfilter.can_id, rfilter.can_mask); in main()
157 frame.can_id = ID; in main()
162 frame.can_id = (ID | CAN_RTR_FLAG); in main()
167 frame.can_id = (ID | CAN_EFF_FLAG); in main()
172 frame.can_id = (ID | CAN_EFF_FLAG | CAN_RTR_FLAG); in main()
205 if ((frame.can_id & CAN_SFF_MASK) != ID) { in main()
217 rxbitval = 1 << ((frame.can_id & in main()
233 frame.can_id, rx, rxbits); in main()
Dcan_rcv_own_msgs.c68 struct rxs test_sockets(int s, int t, canid_t can_id) in test_sockets() argument
78 frame.can_id = can_id; in test_sockets()
110 if (frame.can_id != can_id) { in test_sockets()
125 if (frame.can_id != can_id) { in test_sockets()
/external/iproute2/include/uapi/linux/
Dcan.h105 canid_t can_id; /* 32 bit CAN_ID + EFF/RTR/ERR flags */ member
142 canid_t can_id; /* 32 bit CAN_ID + EFF/RTR/ERR flags */ member
195 canid_t can_id; member
/external/kernel-headers/original/uapi/linux/
Dcan.h105 canid_t can_id; /* 32 bit CAN_ID + EFF/RTR/ERR flags */ member
142 canid_t can_id; /* 32 bit CAN_ID + EFF/RTR/ERR flags */ member
195 canid_t can_id; member
/external/libpcap/
Dpcap-common.c1289 if (caplen < (u_int) sizeof(struct sll_header) + sizeof(chdr->can_id) || in swap_linux_sll_header()
1290 length < (u_int) sizeof(struct sll_header) + sizeof(chdr->can_id)) { in swap_linux_sll_header()
1294 chdr->can_id = SWAPLONG(chdr->can_id); in swap_linux_sll_header()
/external/syzkaller/sys/linux/
Dsocket_can.txt58 can_id canid_t
64 can_id canid_t
Dsocket_netlink_route_sched.txt1055 can_id int32
/external/libpcap/pcap/
Dcan_socketcan.h49 uint32_t can_id; member
/external/kernel-headers/original/uapi/linux/can/
Dbcm.h72 canid_t can_id; member
/external/python/cpython3/Lib/test/
Dtest_socket.py1833 can_id, can_mask = 0x200, 0x700
1834 can_filter = struct.pack("=II", can_id, can_mask)
1849 def build_can_frame(cls, can_id, data): argument
1853 return struct.pack(cls.can_frame_fmt, can_id, can_dlc, data)
1858 can_id, can_dlc, data = struct.unpack(cls.can_frame_fmt, frame)
1859 return (can_id, can_dlc, data[:can_dlc])
1898 can_id, can_dlc, data = self.dissect_can_frame(cf)
1899 self.assertEqual(self.can_id, can_id)
1908 self.can_id = 0x123
1910 self.cf = self.build_can_frame(self.can_id, self.data)
/external/python/cpython3/Doc/library/
Dsocket.rst1814 def build_can_frame(can_id, data):
1817 return struct.pack(can_frame_fmt, can_id, can_dlc, data)
1820 can_id, can_dlc, data = struct.unpack(can_frame_fmt, frame)
1821 return (can_id, can_dlc, data[:can_dlc])
1831 print('Received: can_id=%x, can_dlc=%x, data=%s' % dissect_can_frame(cf))
/external/python/cpython3/Doc/tools/
Dsusp-ignored.csv202 library/socket,,:can,"return (can_id, can_dlc, data[:can_dlc])"