First Match Wins

来源:互联网 发布:js 控制div 上下居中 编辑:程序博客网 时间:2024/05/21 22:45
As you may discover,this is a principle undergoes many order-dependent things in IT.
Such as,iptables,access list,route map,prefix list.If the first matches,then qiut out;else,continue the if-match process until one match occurs or no match occurs.If on match happens,then the default action is deny,so the sequence is important.But can you explain the principle,why it is?