AM64x MCU+ SDK  10.00.00
cb_rawsock_paras_t Struct Reference

Detailed Description

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_tovipp
 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...
 

Field Documentation

◆ dev

const char* cb_rawsock_paras_t::dev

ethernet device name

◆ proto

uint16_t cb_rawsock_paras_t::proto

protocol value like ETH_P_1588

◆ vlan_proto

uint16_t cb_rawsock_paras_t::vlan_proto

protocol value in VLAN tag, not used in non-tagged

◆ priority

int cb_rawsock_paras_t::priority

PCP priority value in VLAN tag.

◆ rw_type

cb_rawsock_rw_t cb_rawsock_paras_t::rw_type

one of RAWSOCK_WRONLY, RAWSOCK_RDONLY, RAWSOCK_RDWR

◆ sock_mode

cb_sock_mode_t cb_rawsock_paras_t::sock_mode

-1:raw socket over udp, 0:normal,

◆ ovipp

cb_rawsock_ovip_para_t* cb_rawsock_paras_t::ovipp

over-udp mode parameter

◆ vlanid

uint16_t cb_rawsock_paras_t::vlanid

vlan identifier

◆ sndbuf

uint32_t cb_rawsock_paras_t::sndbuf

socket send buffer size, set to 0 to use default value

◆ rcvbuf

uint32_t cb_rawsock_paras_t::rcvbuf

socket receive buffer size, set to 0 to use default value