“bf66ce04940477375d8d605dcd8ece45ae2a4b61”上不存在“tools/codestyle/clang_format.hook”
  1. 26 4月, 2007 4 次提交
    • T
      [NET] fib_rules: Mark rules detached from the device · 2b443683
      Thomas Graf 提交于
      Rules which match against device names in their selector can
      remain while the device itself disappears, in fact the device
      doesn't have to present when the rule is added in the first
      place. The device name is resolved by trying when the rule is
      added and later by listening to NETDEV_REGISTER/UNREGISTER
      notifications.
      
      This patch adds the flag FIB_RULE_DEV_DETACHED which is set
      towards userspace when a rule contains a device match which
      is unresolved at the moment. This eases spotting the reason
      why certain rules seem not to function properly.
      Signed-off-by: NThomas Graf <tgraf@suug.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2b443683
    • T
      [NET] fib_rules: goto rule action · 0947c9fe
      Thomas Graf 提交于
      This patch adds a new rule action FR_ACT_GOTO which allows
      to skip a set of rules by jumping to another rule. The rule
      to jump to is specified via the FRA_GOTO attribute which
      carries a rule preference.
      
      Referring to a rule which doesn't exists is explicitely allowed.
      Such goto rules are marked with the flag FIB_RULE_UNRESOLVED
      and will act like a rule with a non-matching selector. The rule
      will become functional as soon as its target is present.
      
      The goto action enables performance optimizations by reducing
      the average number of rules that have to be passed per lookup.
      
      Example:
      0:      from all lookup local
      40:     not from all to 192.168.23.128 goto 32766
      41:     from all fwmark 0xa blackhole
      42:     from all fwmark 0xff blackhole
      32766:  from all lookup main
      Signed-off-by: NThomas Graf <tgraf@suug.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0947c9fe
    • T
      [NET] rules: Unified rules dumping · c454673d
      Thomas Graf 提交于
      Implements a unified, protocol independant rules dumping function
      which is capable of both, dumping a specific protocol family or
      all of them. This speeds up dumping as less lookups are required.
      Signed-off-by: NThomas Graf <tgraf@suug.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c454673d
    • T
      [NET] rules: Use rtnl registration interface · 9d9e6a58
      Thomas Graf 提交于
      Signed-off-by: NThomas Graf <tgraf@suug.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9d9e6a58
  2. 03 4月, 2007 1 次提交
  3. 26 3月, 2007 1 次提交
    • T
      [NET]: Fix fib_rules compatibility breakage · e1701c68
      Thomas Graf 提交于
      Based upon a patch from Patrick McHardy.
      
      The fib_rules netlink attribute policy introduced in 2.6.19 broke
      userspace compatibilty. When specifying a rule with "from all"
      or "to all", iproute adds a zero byte long netlink attribute,
      but the policy requires all addresses to have a size equal to
      sizeof(struct in_addr)/sizeof(struct in6_addr), resulting in a
      validation error.
      
      Check attribute length of FRA_SRC/FRA_DST in the generic framework
      by letting the family specific rules implementation provide the
      length of an address. Report an error if address length is non
      zero but no address attribute is provided. Fix actual bug by
      checking address length for non-zero instead of relying on
      availability of attribute.
      Signed-off-by: NThomas Graf <tgraf@suug.ch>
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e1701c68
  4. 23 3月, 2007 1 次提交
  5. 09 2月, 2007 1 次提交
    • P
      [NETLINK]: Don't BUG on undersized allocations · 26932566
      Patrick McHardy 提交于
      Currently netlink users BUG when the allocated skb for an event
      notification is undersized. While this is certainly a kernel bug,
      its not critical and crashing the kernel is too drastic, especially
      when considering that these errors have appeared multiple times in
      the past and it BUGs even if no listeners are present.
      
      This patch replaces BUG by WARN_ON and changes the notification
      functions to inform potential listeners of undersized allocations
      using a unique error code (EMSGSIZE).
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      26932566
  6. 03 12月, 2006 3 次提交
  7. 04 10月, 2006 1 次提交
  8. 23 9月, 2006 4 次提交