|
|
1.1 ! root 1: divert(10) ! 2: # ! 3: # Copyright (c) 1983 Eric P. Allman ! 4: # Copyright (c) 1988 The Regents of the University of California. ! 5: # All rights reserved. ! 6: # ! 7: # Redistribution and use in source and binary forms are permitted ! 8: # provided that the above copyright notice and this paragraph are ! 9: # duplicated in all such forms and that any documentation, ! 10: # advertising materials, and other materials related to such ! 11: # distribution and use acknowledge that the software was developed ! 12: # by the University of California, Berkeley. The name of the ! 13: # University may not be used to endorse or promote products derived ! 14: # from this software without specific prior written permission. ! 15: # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR ! 16: # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED ! 17: # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 18: # ! 19: # @(#)rule0.m4 1.11 (Berkeley) 2/15/89 ! 20: # ! 21: divert(0) ! 22: ############################################################ ! 23: ############################################################ ! 24: ##### ! 25: ##### RULESET ZERO PREAMBLE ! 26: ##### ! 27: ##### The beginning of ruleset zero is constant through all ! 28: ##### configurations. ! 29: ##### ! 30: ############################################################ ! 31: ############################################################ ! 32: ! 33: S0 ! 34: ! 35: # first make canonical ! 36: R$*<$*>$* $1$2$3 defocus ! 37: R$+ $:$>3$1 make canonical ! 38: ! 39: # handle special cases ! 40: R$*<@[$+]>$* $:$1<@$[[$2]$]>$3 numeric internet addr ! 41: R$*<@[$+]>$* $#tcp$@[$2]$:$1@[$2]$3 numeric internet spec ! 42: R$+ $:$>6$1 ! 43: R$-<@$w> $#local$:$1 ! 44: R@ $#error$:Invalid address handle <> form ! 45: ! 46: # canonicalize using the nameserver if not internal domain ! 47: R$*<@$*.$~I>$* $:$1<@$[$2.$3$]>$4 ! 48: R$*<@$->$* $:$1<@$[$2$]>$3 ! 49: R$*<@$->$* $:$1<@$2.$D>$3 if nameserver fails ! 50: ! 51: # now delete the local info ! 52: R<@$w>:$* $@$>0$1 @here:... -> ... ! 53: R$*<@$w> $@$>0$1 ...@here -> ... ! 54: ! 55: ################################## ! 56: # End of ruleset zero preamble # ! 57: ##################################
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.