Home | History | Annotate | Download | only in netinet

Lines Matching defs:dh

188 	struct dccphdr *dh;
227 M_REGION_GET(dh, struct dccphdr *, m, iphlen, sizeof(*dh));
228 if (dh == NULL) {
253 M_REGION_GET(dh, struct dccphdr *, m, iphlen, sizeof(*dh));
254 if (dh == NULL) {
259 dlh = (struct dccplhdr*)dh;
260 is_shortseq = !dh->dh_x;
270 dh->dh_cscov, dh->dh_off, dh->dh_type, dh->dh_res, ntohl(dh->dh_seq)));
302 if (dh->dh_cscov == 0) {
305 cslen = dh->dh_off * 4 + (dh->dh_cscov - 1) * 4;
325 dh->dh_sum = in4_cksum(m, IPPROTO_DCCP, off, cslen);
327 if (dh->dh_sum) {
341 dh->dh_sport, &ip6->ip6_dst, dh->dh_dport, 0, 0);
345 dh->dh_dport, 0);
351 dh->dh_sport, ip->ip_dst, dh->dh_dport, 0);
355 dh->dh_dport);
389 dbuf, ntohs(dh->dh_dport), sbuf,
390 ntohs(dh->dh_sport));
420 if (dh->dh_type != DCCP_TYPE_RESET)
448 inp->inp_lport = dh->dh_dport;
449 inp->inp_fport = dh->dh_sport;
457 inp->inp_lport = dh->dh_dport;
458 inp->inp_fport = dh->dh_sport;
487 seqnr = CONVERT_TO_LONGSEQ((ntohl(dh->dh_seq) >> 8), dp->ref_pseq);
489 ntohl(dh->dh_seq) >> 8, dp->ref_pseq.hi, dp->ref_pseq.lo));
495 dp->ccval = dh->dh_ccval;
521 optp = (u_char *)(dh + 1);
522 } else if (dh->dh_type == DCCP_TYPE_REQUEST) {
540 } else if (dh->dh_type == DCCP_TYPE_RESET) {
548 if (dh->dh_type == DCCP_TYPE_RESPONSE) {
569 dah = (struct dccp_ackhdr *)(dh + 1);
575 data_off = (dh->dh_off << 2);
579 dp->type_rcv = dh->dh_type;
605 DCCP_DEBUG((LOG_INFO, "BEFORE state check, Got a %u packet while in %u state, who = %u!\n", dh->dh_type, dp->state, dp->who));
608 switch (dh->dh_type) {
643 DCCP_DEBUG((LOG_INFO, "Got a %u packet while in listen stage!\n", dh->dh_type));
648 switch (dh->dh_type) {
678 DCCP_DEBUG((LOG_INFO, "Got a %u packet while in REQUEST stage!\n", dh->dh_type));
681 if (dh->dh_type == DCCP_TYPE_CLOSE) {
690 switch (dh->dh_type) {
719 if (dh->dh_type == DCCP_TYPE_DATAACK && dp->cc_in_use[1] > 0) {
737 DCCP_DEBUG((LOG_INFO, "Got a %u packet while in response stage!\n", dh->dh_type));
742 switch (dh->dh_type) {
819 DCCP_DEBUG((LOG_INFO, "Got a %u packet while in established stage!\n", dh->dh_type));
824 switch (dh->dh_type) {
839 DCCP_DEBUG((LOG_INFO, "Got a %u packet while in server_close stage!\n", dh->dh_type));
844 switch (dh->dh_type) {
861 DCCP_DEBUG((LOG_INFO, "Got a %u packet while in client_close stage!\n", dh->dh_type));
865 DCCP_DEBUG((LOG_INFO, "Got a %u packet while in %u state!\n", dh->dh_type, dp->state));
866 if (dh->dh_type != DCCP_TYPE_RESET) {
873 if (dh->dh_type == DCCP_TYPE_DATA ||
874 dh->dh_type == DCCP_TYPE_ACK ||
875 dh->dh_type == DCCP_TYPE_DATAACK) {
882 if (dh->dh_type == DCCP_TYPE_DATA || dh->dh_type == DCCP_TYPE_DATAACK) {
932 struct dccphdr *dh;
950 dh = (struct dccphdr *)((vaddr_t)ip + (ip->ip_hl << 2));
952 inpcb_notify(&dccpbtable, faddr, dh->dh_dport,
953 ip->ip_src, dh->dh_sport, inetctlerrmap[cmd], notify);
1116 struct dccphdr *dh;
1350 dh = (struct dccphdr *)(ip6 + 1);
1362 dh = (struct dccphdr *)(ip + 1);
1368 dlh = (struct dccplhdr *)dh;
1370 dh->dh_sport = inp->inp_lport;
1371 dh->dh_dport = inp->inp_fport;
1372 dh->dh_cscov = dp->cslen;
1373 dh->dh_ccval = dp->ccval;
1374 dh->dh_type = type;
1375 dh->dh_res = 0; /* Reserved field should be zero */
1378 dh->dh_off = 4 + (extrah_len / 4) + (optlen / 4);
1380 dh->dh_off = 3 + (extrah_len / 4) + (optlen / 4);
1388 dh->dh_seq = htonl(dp->seq_snd) >> 8;
1389 dh->dh_x = 0;
1395 DCCP_DEBUG((LOG_INFO, "Sending with seq %x, (dp->seq_snd = %llu)\n\n", dh->dh_seq, dp->seq_snd));
1398 if (dh->dh_type == DCCP_TYPE_REQUEST) {
1402 } else if (dh->dh_type == DCCP_TYPE_RESET) {
1426 if (dh->dh_type == DCCP_TYPE_RESPONSE) {
1435 dah = (struct dccp_ackhdr *)(dh + 1);
1450 if (dh->dh_cscov == 0) {
1460 cslen = dh->dh_off * 4 + (dh->dh_cscov - 1) * 4;
1480 dh->dh_sum = 0;
1483 dh->dh_sum = in6_cksum(m, IPPROTO_DCCP, sizeof(struct ip6_hdr),
1492 dh->dh_sum = in4_cksum(m, IPPROTO_DCCP, sizeof(struct ip),