git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
net
/
sctp
/
input.c
diff --git
a/net/sctp/input.c
b/net/sctp/input.c
index
d761fdd
..
0268f75
100644
(file)
--- a/
net/sctp/input.c
+++ b/
net/sctp/input.c
@@
-90,7
+90,7
@@
static inline int sctp_rcv_checksum(struct sk_buff *skb)
if (val != cmp) {
/* CRC failure, dump it. */
if (val != cmp) {
/* CRC failure, dump it. */
- SCTP_INC_STATS_BH(S
ctpChecksumErrors
);
+ SCTP_INC_STATS_BH(S
CTP_MIB_CHECKSUMERRORS
);
return -1;
}
return 0;
return -1;
}
return 0;
@@
-117,7
+117,7
@@
int sctp_rcv(struct sk_buff *skb)
if (skb->pkt_type!=PACKET_HOST)
goto discard_it;
if (skb->pkt_type!=PACKET_HOST)
goto discard_it;
- SCTP_INC_STATS_BH(S
ctpInSCTPPacks
);
+ SCTP_INC_STATS_BH(S
CTP_MIB_INSCTPPACKS
);
sh = (struct sctphdr *) skb->h.raw;
sh = (struct sctphdr *) skb->h.raw;
@@
-166,7
+166,7
@@
int sctp_rcv(struct sk_buff *skb)
if (!asoc) {
ep = __sctp_rcv_lookup_endpoint(&dest);
if (sctp_rcv_ootb(skb)) {
if (!asoc) {
ep = __sctp_rcv_lookup_endpoint(&dest);
if (sctp_rcv_ootb(skb)) {
- SCTP_INC_STATS_BH(S
ctpOutOfBlues
);
+ SCTP_INC_STATS_BH(S
CTP_MIB_OUTOFBLUES
);
goto discard_release;
}
}
goto discard_release;
}
}
@@
-327,7
+327,7
@@
struct sock *sctp_err_lookup(int family, struct sk_buff *skb,
if (asoc) {
if (ntohl(sctphdr->vtag) != asoc->c.peer_vtag) {
if (asoc) {
if (ntohl(sctphdr->vtag) != asoc->c.peer_vtag) {
- ICMP_INC_STATS_BH(I
cmpInErrors
);
+ ICMP_INC_STATS_BH(I
CMP_MIB_INERRORS
);
goto out;
}
sk = asoc->base.sk;
goto out;
}
sk = asoc->base.sk;
@@
-340,7
+340,7
@@
struct sock *sctp_err_lookup(int family, struct sk_buff *skb,
* servers this needs to be solved differently.
*/
if (sock_owned_by_user(sk))
* servers this needs to be solved differently.
*/
if (sock_owned_by_user(sk))
- NET_INC_STATS_BH(L
ockDroppedIcmps
);
+ NET_INC_STATS_BH(L
INUX_MIB_LOCKDROPPEDICMPS
);
*epp = ep;
*app = asoc;
*epp = ep;
*app = asoc;
@@
-398,7
+398,7
@@
void sctp_v4_err(struct sk_buff *skb, __u32 info)
int err;
if (skb->len < ((iph->ihl << 2) + 8)) {
int err;
if (skb->len < ((iph->ihl << 2) + 8)) {
- ICMP_INC_STATS_BH(I
cmpInErrors
);
+ ICMP_INC_STATS_BH(I
CMP_MIB_INERRORS
);
return;
}
return;
}
@@
-412,7
+412,7
@@
void sctp_v4_err(struct sk_buff *skb, __u32 info)
skb->nh.raw = saveip;
skb->h.raw = savesctp;
if (!sk) {
skb->nh.raw = saveip;
skb->h.raw = savesctp;
if (!sk) {
- ICMP_INC_STATS_BH(I
cmpInErrors
);
+ ICMP_INC_STATS_BH(I
CMP_MIB_INERRORS
);
return;
}
/* Warning: The sock lock is held. Remember to call
return;
}
/* Warning: The sock lock is held. Remember to call