Home
last modified time | relevance | path

Searched refs:hb_info (Results 1 – 3 of 3) sorted by relevance

/freebsd-9-stable/sys/netinet/
Dsctp_input.c583 switch (cp->heartbeat.hb_info.addr_family) { in sctp_handle_heartbeat_ack()
586 if (cp->heartbeat.hb_info.addr_len == sizeof(struct sockaddr_in)) { in sctp_handle_heartbeat_ack()
588 sin->sin_family = cp->heartbeat.hb_info.addr_family; in sctp_handle_heartbeat_ack()
589 sin->sin_len = cp->heartbeat.hb_info.addr_len; in sctp_handle_heartbeat_ack()
591 memcpy(&sin->sin_addr, cp->heartbeat.hb_info.address, in sctp_handle_heartbeat_ack()
600 if (cp->heartbeat.hb_info.addr_len == sizeof(struct sockaddr_in6)) { in sctp_handle_heartbeat_ack()
602 sin6->sin6_family = cp->heartbeat.hb_info.addr_family; in sctp_handle_heartbeat_ack()
603 sin6->sin6_len = cp->heartbeat.hb_info.addr_len; in sctp_handle_heartbeat_ack()
605 memcpy(&sin6->sin6_addr, cp->heartbeat.hb_info.address, in sctp_handle_heartbeat_ack()
621 (r_net->heartbeat_random1 == cp->heartbeat.hb_info.random_value1) && in sctp_handle_heartbeat_ack()
[all …]
Dsctp_header.h300 struct sctp_heartbeat_info_param hb_info; member
Dsctp_output.c11290 hb->heartbeat.hb_info.ph.param_type = htons(SCTP_HEARTBEAT_INFO); in sctp_send_hb()
11291 hb->heartbeat.hb_info.ph.param_length = htons(sizeof(struct sctp_heartbeat_info_param)); in sctp_send_hb()
11292 hb->heartbeat.hb_info.time_value_1 = now.tv_sec; in sctp_send_hb()
11293 hb->heartbeat.hb_info.time_value_2 = now.tv_usec; in sctp_send_hb()
11295 hb->heartbeat.hb_info.addr_family = net->ro._l_addr.sa.sa_family; in sctp_send_hb()
11296 hb->heartbeat.hb_info.addr_len = net->ro._l_addr.sa.sa_len; in sctp_send_hb()
11302 …net->heartbeat_random1 = hb->heartbeat.hb_info.random_value1 = sctp_select_initial_TSN(&stcb->sctp… in sctp_send_hb()
11303 …net->heartbeat_random2 = hb->heartbeat.hb_info.random_value2 = sctp_select_initial_TSN(&stcb->sctp… in sctp_send_hb()
11305 net->heartbeat_random1 = hb->heartbeat.hb_info.random_value1 = 0; in sctp_send_hb()
11306 net->heartbeat_random2 = hb->heartbeat.hb_info.random_value2 = 0; in sctp_send_hb()
[all …]