4,436
社区成员
发帖
与我相关
我的任务
分享
struct bcentry {
struct in6_addr our_addr; /* Address to which we got BU */
struct in6_addr peer_addr; /* MN home address */
struct in6_addr old_coa; /* Previous care-of address */
struct in6_addr coa; /* MN care-of address */
struct timespec add_time; /* When was the binding added or modified */
struct timespec lifetime; /* lifetime sent in this BU, in seconds */
uint16_t seqno; /* sequence number of the latest BU */
uint16_t flags; /* BU flags */
uint16_t nonce_coa;
uint16_t nonce_hoa;
int type; /* Entry type */
int unreach; /* ICMP dest unreach count */
int tunnel; /* Tunnel interface index */
int link; /* Home link interface index */
int id; /* For testing */
/* Following fields are for internal use only */
struct timespec br_lastsent; /* BR ratelimit */
int br_count; /* BR ratelimit */
pthread_rwlock_t lock; /* Protects the entry */
struct tq_elem tqe; /* Timer queue entry for expire */
void (*cleanup)(struct bcentry *bce); /* Clean up bce data */
};
error:syntax error before "pthread_rwlock_t"
warning:no semicolon at end of struct or union
error:syntax error before '}' token