Lines Matching defs:hb
5555 * set hb flag since we can use
5932 /* For data/asconf and hb set time */
8232 printf("net:%p is the hb winner -",
8253 struct sctp_heartbeat_chunk *hb;
8313 printf("Gak, can't get a chunk for hb\n");
8340 hb = mtod(chk->data, struct sctp_heartbeat_chunk *);
8343 hb->ch.chunk_type = SCTP_HEARTBEAT_REQUEST;
8344 hb->ch.chunk_flags = 0;
8345 hb->ch.chunk_length = htons(chk->send_size);
8346 /* Fill out hb parameter */
8347 hb->heartbeat.hb_info.ph.param_type = htons(SCTP_HEARTBEAT_INFO);
8348 hb->heartbeat.hb_info.ph.param_length = htons(sizeof(struct sctp_heartbeat_info_param));
8349 hb->heartbeat.hb_info.time_value_1 = now.tv_sec;
8350 hb->heartbeat.hb_info.time_value_2 = now.tv_usec;
8352 hb->heartbeat.hb_info.user_req = user_req;
8353 hb->heartbeat.hb_info.addr_family = sin->sin_family;
8354 hb->heartbeat.hb_info.addr_len = sin->sin_len;
8359 net->heartbeat_random1 = hb->heartbeat.hb_info.random_value1 = sctp_select_initial_TSN(&stcb->sctp_ep->sctp_ep);
8360 net->heartbeat_random2 = hb->heartbeat.hb_info.random_value2 = sctp_select_initial_TSN(&stcb->sctp_ep->sctp_ep);
8362 net->heartbeat_random1 = hb->heartbeat.hb_info.random_value1 = 0;
8363 net->heartbeat_random2 = hb->heartbeat.hb_info.random_value2 = 0;
8366 memcpy(hb->heartbeat.hb_info.address, &sin->sin_addr, sizeof(sin->sin_addr));
8370 memcpy(hb->heartbeat.hb_info.address, &sin6->sin6_addr, sizeof(sin6->sin6_addr));