FreeBSD Bugzilla – Attachment 251422 Details for
Bug 279662
net/bird2@netlink - broken multiple FIB support
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Regression test shell script
bird.bug.sh (text/plain), 672 bytes, created by
Olivier Cochard
on 2024-06-12 19:51:58 UTC
(
hide
)
Description:
Regression test shell script
Filename:
MIME Type:
Creator:
Olivier Cochard
Created:
2024-06-12 19:51:58 UTC
Size:
672 bytes
patch
obsolete
>#!/bin/sh >set -eu >if [ "$(sysctl -n net.fibs)" -lt 2 ]; then > echo "Need more than 1 fib (net.fibs="2" in /boot/loader.conf)" > exit 1 >fi >if ifconfig -l | ! grep -q lo999; then > ifconfig lo999 create > ifconfig lo999 inet 9.9.9.1/30 fib 1 up >fi >cat <<EOF >/tmp/bird.conf >log "/tmp/bird.log" all; >log stderr all; >router id 9.9.9.1; >protocol kernel kernel4{ > ipv4 { > export all; > }; > kernel table 1; >} >protocol static static4 { > ipv4; > route 8.8.8.0/30 via 9.9.9.2; >} >protocol device {}; >EOF >bird -P /tmp/bird.pid -c /tmp/bird.conf >sleep 1 >setfib 1 netstat -rn4 | grep -q '8.8.8.0/30.*lo999' && echo WORKING || echo BUG >pkill -F /tmp/bird.pid >ifconfig lo999 destroy
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 279662
: 251422