Adjust MAC allocation algo to support layering
This commit is contained in:
parent
626ddc5125
commit
43a45064a0
@ -267,8 +267,15 @@ jib_addm()
|
|||||||
10) quad=a ;; 11) quad=b ;; 12) quad=c ;;
|
10) quad=a ;; 11) quad=b ;; 12) quad=c ;;
|
||||||
13) quad=d ;; 14) quad=e ;; 15) quad=f ;;
|
13) quad=d ;; 14) quad=e ;; 15) quad=f ;;
|
||||||
esac
|
esac
|
||||||
eiface_devid_a=2:$quad$eiface_devid_a
|
case "$iface_devid" in
|
||||||
eiface_devid_b=6:$quad$eiface_devid_b
|
?2:*|?6:*)
|
||||||
|
eiface_devid_a=a:$quad$eiface_devid_a
|
||||||
|
eiface_devid_b=e:$quad$eiface_devid_b
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
eiface_devid_a=2:$quad$eiface_devid_a
|
||||||
|
eiface_devid_b=6:$quad$eiface_devid_b
|
||||||
|
esac
|
||||||
num=$(( $num >> 4 ))
|
num=$(( $num >> 4 ))
|
||||||
quad=$(( $num & 15 ))
|
quad=$(( $num & 15 ))
|
||||||
case "$quad" in
|
case "$quad" in
|
||||||
|
@ -297,7 +297,10 @@ jng_bridge()
|
|||||||
10) quad=a ;; 11) quad=b ;; 12) quad=c ;;
|
10) quad=a ;; 11) quad=b ;; 12) quad=c ;;
|
||||||
13) quad=d ;; 14) quad=e ;; 15) quad=f ;;
|
13) quad=d ;; 14) quad=e ;; 15) quad=f ;;
|
||||||
esac
|
esac
|
||||||
eiface_devid=2:$quad$eiface_devid
|
case "$iface_devid" in
|
||||||
|
?2:*) eiface_devid=a:$quad$eiface_devid ;;
|
||||||
|
*) eiface_devid=2:$quad$eiface_devid
|
||||||
|
esac
|
||||||
num=$(( $num >> 4 ))
|
num=$(( $num >> 4 ))
|
||||||
quad=$(( $num & 15 ))
|
quad=$(( $num & 15 ))
|
||||||
case "$quad" in
|
case "$quad" in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user