Merge branch 'master'
This commit is contained in:
@@ -88,12 +88,6 @@ extern struct nf_conntrack_l3proto *nf_ct_l3protos[AF_MAX];
|
||||
extern int nf_conntrack_l3proto_register(struct nf_conntrack_l3proto *proto);
|
||||
extern void nf_conntrack_l3proto_unregister(struct nf_conntrack_l3proto *proto);
|
||||
|
||||
static inline struct nf_conntrack_l3proto *
|
||||
__nf_ct_l3proto_find(u_int16_t l3proto)
|
||||
{
|
||||
return nf_ct_l3protos[l3proto];
|
||||
}
|
||||
|
||||
extern struct nf_conntrack_l3proto *
|
||||
nf_ct_l3proto_find_get(u_int16_t l3proto);
|
||||
|
||||
@@ -103,4 +97,13 @@ extern void nf_ct_l3proto_put(struct nf_conntrack_l3proto *p);
|
||||
extern struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv4;
|
||||
extern struct nf_conntrack_l3proto nf_conntrack_l3proto_ipv6;
|
||||
extern struct nf_conntrack_l3proto nf_conntrack_generic_l3proto;
|
||||
|
||||
static inline struct nf_conntrack_l3proto *
|
||||
__nf_ct_l3proto_find(u_int16_t l3proto)
|
||||
{
|
||||
if (unlikely(l3proto >= AF_MAX))
|
||||
return &nf_conntrack_generic_l3proto;
|
||||
return nf_ct_l3protos[l3proto];
|
||||
}
|
||||
|
||||
#endif /*_NF_CONNTRACK_L3PROTO_H*/
|
||||
|
@@ -170,8 +170,8 @@ static inline int ip_route_connect(struct rtable **rp, u32 dst,
|
||||
return ip_route_output_flow(rp, &fl, sk, 0);
|
||||
}
|
||||
|
||||
static inline int ip_route_newports(struct rtable **rp, u16 sport, u16 dport,
|
||||
struct sock *sk)
|
||||
static inline int ip_route_newports(struct rtable **rp, u8 protocol,
|
||||
u16 sport, u16 dport, struct sock *sk)
|
||||
{
|
||||
if (sport != (*rp)->fl.fl_ip_sport ||
|
||||
dport != (*rp)->fl.fl_ip_dport) {
|
||||
@@ -180,6 +180,7 @@ static inline int ip_route_newports(struct rtable **rp, u16 sport, u16 dport,
|
||||
memcpy(&fl, &(*rp)->fl, sizeof(fl));
|
||||
fl.fl_ip_sport = sport;
|
||||
fl.fl_ip_dport = dport;
|
||||
fl.proto = protocol;
|
||||
ip_rt_put(*rp);
|
||||
*rp = NULL;
|
||||
return ip_route_output_flow(rp, &fl, sk, 0);
|
||||
|
@@ -700,7 +700,7 @@ struct sctp_chunk {
|
||||
__u8 ecn_ce_done; /* Have we processed the ECN CE bit? */
|
||||
__u8 pdiscard; /* Discard the whole packet now? */
|
||||
__u8 tsn_gap_acked; /* Is this chunk acked by a GAP ACK? */
|
||||
__u8 fast_retransmit; /* Is this chunk fast retransmitted? */
|
||||
__s8 fast_retransmit; /* Is this chunk fast retransmitted? */
|
||||
__u8 tsn_missing_report; /* Data chunk missing counter. */
|
||||
};
|
||||
|
||||
|
@@ -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
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user