summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.osdl.org>2003-10-07 03:37:50 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-10-07 03:37:50 -0700
commitfba5090512968f4da1f95feb23f687a9128c416c (patch)
tree2797fcb1e8cca7833686566847fc7ff704ec08fa
parent51ae938b55c61cc235f8550e201016da8f4831c3 (diff)
Fix up recent net/ipv4/ipconfig.c typo breakage.
-rw-r--r--net/ipv4/ipconfig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
index 6085ddad0440..a87a00738699 100644
--- a/net/ipv4/ipconfig.c
+++ b/net/ipv4/ipconfig.c
@@ -417,7 +417,7 @@ ic_rarp_recv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt
if ((skb = skb_share_check(skb, GFP_ATOMIC)) == NULL)
return NET_RX_DROP;
- if (!pskb_may_pull(skb, sizeof(arphdr)))
+ if (!pskb_may_pull(skb, sizeof(struct arphdr)))
goto drop;
/* Basic sanity checks can be done without the lock. */
@@ -438,7 +438,7 @@ ic_rarp_recv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt
goto drop;
if (!pskb_may_pull(skb,
- sizeof(arphdr) +
+ sizeof(struct arphdr) +
(2 * dev->addr_len) +
(2 * 4)))
goto drop;
@@ -855,7 +855,7 @@ static int __init ic_bootp_recv(struct sk_buff *skb, struct net_device *dev, str
if (b->udph.source != htons(67) || b->udph.dest != htons(68))
goto drop;
- if (ntohs(h->tot_len) < ntohs(b->udhp.len) + sizeof(struct iphdr))
+ if (ntohs(h->tot_len) < ntohs(b->udph.len) + sizeof(struct iphdr))
goto drop;
len = ntohs(b->udph.len) - sizeof(struct udphdr);