View | Details | Raw Unified | Return to bug 254924
Collapse All | Expand All

(-)b/sys/net/bridgestp.c (+14 lines)
Lines 597-602 bstp_received_bpdu(struct bstp_state *bs, struct bstp_port *bp, Link Here
597
			return;
597
			return;
598
	}
598
	}
599
599
600
	/* range checks */
601
	if (cu->cu_message_age >= cu->cu_max_age) {
602
		return;
603
	}
604
	if ((cu->cu_max_age < (6 * 256)) || (cu->cu_max_age > (40 * 256))) {
605
		return;
606
	}
607
	if ((cu->cu_forward_delay < (4 * 256)) || (cu->cu_forward_delay > (30 * 256))) {
608
		return;
609
	}
610
	if ((cu->cu_hello_time < 256) || (cu->cu_hello_time> (2 * 256))) {
611
		return;
612
	}
613
600
	type = bstp_pdu_rcvtype(bp, cu);
614
	type = bstp_pdu_rcvtype(bp, cu);
601
615
602
	switch (type) {
616
	switch (type) {

Return to bug 254924