|
|
| version 1.12, 2004/04/01 23:04:50 | version 1.13, 2004/04/03 22:17:59 |
|---|---|
| Line 99 ip_mport(struct mbuf *m) | Line 99 ip_mport(struct mbuf *m) |
| } | } |
| th = (struct tcphdr *)((caddr_t)ip + iphlen); | th = (struct tcphdr *)((caddr_t)ip + iphlen); |
| thoff = th->th_off << 2; | thoff = th->th_off << 2; |
| if (thoff < sizeof(struct tcphdr) || thoff > ip->ip_len) { | if (thoff < sizeof(struct tcphdr) || |
| thoff > ntohs(ip->ip_len)) { | |
| tcpstat.tcps_rcvbadoff++; | tcpstat.tcps_rcvbadoff++; |
| return (NULL); | return (NULL); |
| } | } |