raw socket parameters.to open or create raw socket this structure must be filled.
Data Fields | |
const char * | dev |
ethernet device name More... | |
uint16_t | proto |
protocol value like ETH_P_1588 More... | |
uint16_t | vlan_proto |
protocol value in VLAN tag, not used in non-tagged More... | |
int | priority |
PCP priority value in VLAN tag. More... | |
cb_rawsock_rw_t | rw_type |
one of RAWSOCK_WRONLY, RAWSOCK_RDONLY, RAWSOCK_RDWR More... | |
cb_sock_mode_t | sock_mode |
-1:raw socket over udp, 0:normal, More... | |
cb_rawsock_ovip_para_t * | ovipp |
over-udp mode parameter More... | |
uint16_t | vlanid |
vlan identifier More... | |
uint32_t | sndbuf |
socket send buffer size, set to 0 to use default value More... | |
uint32_t | rcvbuf |
socket receive buffer size, set to 0 to use default value More... | |
const char* cb_rawsock_paras_t::dev |
ethernet device name
uint16_t cb_rawsock_paras_t::proto |
protocol value like ETH_P_1588
uint16_t cb_rawsock_paras_t::vlan_proto |
protocol value in VLAN tag, not used in non-tagged
int cb_rawsock_paras_t::priority |
PCP priority value in VLAN tag.
cb_rawsock_rw_t cb_rawsock_paras_t::rw_type |
one of RAWSOCK_WRONLY, RAWSOCK_RDONLY, RAWSOCK_RDWR
cb_sock_mode_t cb_rawsock_paras_t::sock_mode |
-1:raw socket over udp, 0:normal,
cb_rawsock_ovip_para_t* cb_rawsock_paras_t::ovipp |
over-udp mode parameter
uint16_t cb_rawsock_paras_t::vlanid |
vlan identifier
uint32_t cb_rawsock_paras_t::sndbuf |
socket send buffer size, set to 0 to use default value
uint32_t cb_rawsock_paras_t::rcvbuf |
socket receive buffer size, set to 0 to use default value