Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19705
b: refs/heads/master
c: 0dec456
h: refs/heads/master
i:
  19703: 151ea2a
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Feb 3, 2006
1 parent 3340d4b commit e1737b9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e2be3ea4fab4d1c02e369719311e8d7ae6cc7c1
refs/heads/master: 0dec456d1fe73e0539625f0973ee8ef8fb805943
8 changes: 4 additions & 4 deletions trunk/include/net/sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -1354,12 +1354,12 @@ extern int sock_get_timestamp(struct sock *, struct timeval __user *);
* Enable debug/info messages
*/

#if 0
#define NETDEBUG(fmt, args...) do { } while (0)
#define LIMIT_NETDEBUG(fmt, args...) do { } while(0)
#else
#ifdef CONFIG_NETDEBUG
#define NETDEBUG(fmt, args...) printk(fmt,##args)
#define LIMIT_NETDEBUG(fmt, args...) do { if (net_ratelimit()) printk(fmt,##args); } while(0)
#else
#define NETDEBUG(fmt, args...) do { } while (0)
#define LIMIT_NETDEBUG(fmt, args...) do { } while(0)
#endif

/*
Expand Down
7 changes: 7 additions & 0 deletions trunk/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ if NET

menu "Networking options"

config NETDEBUG
bool "Network packet debugging"
help
You can say Y here if you want to get additional messages useful in
debugging bad packets, but can overwhelm logs under denial of service
attacks.

source "net/packet/Kconfig"
source "net/unix/Kconfig"
source "net/xfrm/Kconfig"
Expand Down

0 comments on commit e1737b9

Please sign in to comment.