|
Lines 71-77
Link Here
|
| 71 |
printk("FRAG:%u ", ntohs(iph.frag_off) & IP_OFFSET); |
71 |
printk("FRAG:%u ", ntohs(iph.frag_off) & IP_OFFSET); |
| 72 |
|
72 |
|
| 73 |
if ((info->logflags & IPT_LOG_IPOPT) |
73 |
if ((info->logflags & IPT_LOG_IPOPT) |
| 74 |
&& iph.ihl * 4 != sizeof(struct iphdr)) { |
74 |
&& iph.ihl * 4 > sizeof(struct iphdr)) { |
| 75 |
unsigned char opt[4 * 15 - sizeof(struct iphdr)]; |
75 |
unsigned char opt[4 * 15 - sizeof(struct iphdr)]; |
| 76 |
unsigned int i, optsize; |
76 |
unsigned int i, optsize; |
| 77 |
|
77 |
|
|
Lines 138-144
Link Here
|
| 138 |
printk("URGP=%u ", ntohs(tcph.urg_ptr)); |
138 |
printk("URGP=%u ", ntohs(tcph.urg_ptr)); |
| 139 |
|
139 |
|
| 140 |
if ((info->logflags & IPT_LOG_TCPOPT) |
140 |
if ((info->logflags & IPT_LOG_TCPOPT) |
| 141 |
&& tcph.doff * 4 != sizeof(struct tcphdr)) { |
141 |
&& tcph.doff * 4 > sizeof(struct tcphdr)) { |
| 142 |
unsigned char opt[4 * 15 - sizeof(struct tcphdr)]; |
142 |
unsigned char opt[4 * 15 - sizeof(struct tcphdr)]; |
| 143 |
unsigned int i, optsize; |
143 |
unsigned int i, optsize; |
| 144 |
|
144 |
|