diff options
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/netfilter/nf_conntrack_l3proto.h | 15 | ||||
| -rw-r--r-- | include/net/sctp/structs.h | 2 | ||||
| -rw-r--r-- | include/net/sock.h | 8 |
3 files changed, 14 insertions, 11 deletions
diff --git a/include/net/netfilter/nf_conntrack_l3proto.h b/include/net/netfilter/nf_conntrack_l3proto.h index 67856eb93b43..dac43b15a5b0 100644 --- a/include/net/netfilter/nf_conntrack_l3proto.h +++ b/include/net/netfilter/nf_conntrack_l3proto.h | |||
| @@ -88,12 +88,6 @@ extern struct nf_conntrack_l3proto *nf_ct_l3protos[AF_MAX]; | |||
| 88 | extern int nf_conntrack_l3proto_register(struct nf_conntrack_l3proto *proto); | 88 | extern int nf_conntrack_l3proto_register(struct nf_conntrack_l3proto *proto); |
| 89 | extern void nf_conntrack_l3proto_unregister(struct nf_conntrack_l3proto *proto); | 89 | extern void nf_conntrack_l3proto_unregister(struct nf_conntrack_l3proto *proto); |
| 90 | 90 | ||
| 91 | static inline struct nf_conntrack_l3proto * | ||
| 92 | __nf_ct_l3proto_find(u_int16_t l3proto) | ||
| 93 | { | ||
| 94 | return nf_ct_l3protos[l3proto]; | ||
| 95 | } | ||
| 96 | |||
| 97 | extern struct nf_conntrack_l3proto * | 91 | extern struct nf_conntrack_l3proto * |
| 98 | nf_ct_l3proto_find_get(u_int16_t l3proto); | 92 | nf_ct_l3proto_find_get(u_int16_t l3proto); |
| 99 | 93 | ||
| @@ -103,4 +97,13 @@ extern void nf_ct_l3proto_put(struct nf_conntrack_l3proto *p); | |||
| 103 | extern struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv4; | 97 | extern struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv4; |
| 104 | extern struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv6; | 98 | extern struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv6; |
| 105 | extern struct nf_conntrack_l3proto nf_conntrack_generic_l3proto; | 99 | extern struct nf_conntrack_l3proto nf_conntrack_generic_l3proto; |
| 100 | |||
| 101 | static inline struct nf_conntrack_l3proto * | ||
| 102 | __nf_ct_l3proto_find(u_int16_t l3proto) | ||
| 103 | { | ||
| 104 | if (unlikely(l3proto >= AF_MAX)) | ||
| 105 | return &nf_conntrack_generic_l3proto; | ||
| 106 | return nf_ct_l3protos[l3proto]; | ||
| 107 | } | ||
| 108 | |||
| 106 | #endif /*_NF_CONNTRACK_L3PROTO_H*/ | 109 | #endif /*_NF_CONNTRACK_L3PROTO_H*/ |
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 8c522ae031bb..072f407848a6 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
| @@ -700,7 +700,7 @@ struct sctp_chunk { | |||
| 700 | __u8 ecn_ce_done; /* Have we processed the ECN CE bit? */ | 700 | __u8 ecn_ce_done; /* Have we processed the ECN CE bit? */ |
| 701 | __u8 pdiscard; /* Discard the whole packet now? */ | 701 | __u8 pdiscard; /* Discard the whole packet now? */ |
| 702 | __u8 tsn_gap_acked; /* Is this chunk acked by a GAP ACK? */ | 702 | __u8 tsn_gap_acked; /* Is this chunk acked by a GAP ACK? */ |
| 703 | __u8 fast_retransmit; /* Is this chunk fast retransmitted? */ | 703 | __s8 fast_retransmit; /* Is this chunk fast retransmitted? */ |
| 704 | __u8 tsn_missing_report; /* Data chunk missing counter. */ | 704 | __u8 tsn_missing_report; /* Data chunk missing counter. */ |
| 705 | }; | 705 | }; |
| 706 | 706 | ||
diff --git a/include/net/sock.h b/include/net/sock.h index 1806e5b61419..30758035d616 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
| @@ -1354,12 +1354,12 @@ extern int sock_get_timestamp(struct sock *, struct timeval __user *); | |||
| 1354 | * Enable debug/info messages | 1354 | * Enable debug/info messages |
| 1355 | */ | 1355 | */ |
| 1356 | 1356 | ||
| 1357 | #if 0 | 1357 | #ifdef CONFIG_NETDEBUG |
| 1358 | #define NETDEBUG(fmt, args...) do { } while (0) | ||
| 1359 | #define LIMIT_NETDEBUG(fmt, args...) do { } while(0) | ||
| 1360 | #else | ||
| 1361 | #define NETDEBUG(fmt, args...) printk(fmt,##args) | 1358 | #define NETDEBUG(fmt, args...) printk(fmt,##args) |
| 1362 | #define LIMIT_NETDEBUG(fmt, args...) do { if (net_ratelimit()) printk(fmt,##args); } while(0) | 1359 | #define LIMIT_NETDEBUG(fmt, args...) do { if (net_ratelimit()) printk(fmt,##args); } while(0) |
| 1360 | #else | ||
| 1361 | #define NETDEBUG(fmt, args...) do { } while (0) | ||
| 1362 | #define LIMIT_NETDEBUG(fmt, args...) do { } while(0) | ||
| 1363 | #endif | 1363 | #endif |
| 1364 | 1364 | ||
| 1365 | /* | 1365 | /* |
