Lines Matching defs:dd_hdr
43 struct db_dscrp_hdr dd_hdr;
56 if (ibuf_add_zero(buf, sizeof(dd_hdr)) == -1)
120 dd_hdr.iface_mtu = htons(nbr->iface->mtu);
124 dd_hdr.iface_mtu = htons(nbr->iface->mtu);
132 dd_hdr.iface_mtu = 0;
139 dd_hdr.opts = area_ospf_options(nbr->iface->area) | OSPF_OPTION_O;
140 dd_hdr.bits = bits;
141 dd_hdr.dd_seq_num = htonl(nbr->dd_seq_num);
143 if (ibuf_set(buf, sizeof(struct ospf_hdr), &dd_hdr,
144 sizeof(dd_hdr)) == -1)
166 struct db_dscrp_hdr dd_hdr;
169 if (len < sizeof(dd_hdr)) {
174 memcpy(&dd_hdr, buf, sizeof(dd_hdr));
175 buf += sizeof(dd_hdr);
176 len -= sizeof(dd_hdr);
179 if (ntohs(dd_hdr.iface_mtu) > nbr->iface->mtu) {
182 nbr->iface->name, ntohs(dd_hdr.iface_mtu),
187 if (nbr->last_rx_options == dd_hdr.opts &&
188 nbr->last_rx_bits == dd_hdr.bits &&
189 ntohl(dd_hdr.dd_seq_num) == nbr->dd_seq_num - nbr->dd_master ?
216 nbr->capa_options = dd_hdr.opts;
226 if (dd_hdr.bits == (OSPF_DBD_I | OSPF_DBD_M | OSPF_DBD_MS)) {
232 nbr->dd_seq_num = ntohl(dd_hdr.dd_seq_num);
237 } else if (!(dd_hdr.bits & (OSPF_DBD_I | OSPF_DBD_MS))) {
239 if (ntohl(dd_hdr.dd_seq_num) != nbr->dd_seq_num) {
244 nbr->dd_seq_num, ntohl(dd_hdr.dd_seq_num));
269 if (dd_hdr.bits & OSPF_DBD_I ||
270 !(dd_hdr.bits & OSPF_DBD_MS) == !nbr->dd_master) {
278 if (nbr->last_rx_options != dd_hdr.opts) {
297 nbr->dd_seq_num, ntohl(dd_hdr.dd_seq_num));
305 if (ntohl(dd_hdr.dd_seq_num) != nbr->dd_seq_num) {
310 nbr->dd_seq_num, ntohl(dd_hdr.dd_seq_num));
317 if (ntohl(dd_hdr.dd_seq_num) != nbr->dd_seq_num + 1) {
322 nbr->dd_seq_num, ntohl(dd_hdr.dd_seq_num));
326 nbr->dd_seq_num = ntohl(dd_hdr.dd_seq_num);
340 if (!(dd_hdr.bits & OSPF_DBD_M) &&
349 nbr->last_rx_options = dd_hdr.opts;
350 nbr->last_rx_bits = dd_hdr.bits;