Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267991
b: refs/heads/master
c: 81e3863
h: refs/heads/master
i:
  267989: e7409c0
  267987: aa6a59b
  267983: 6fc996f
v: v3
  • Loading branch information
Larry Finger authored and Larry Finger committed Aug 25, 2011
1 parent 24fc86c commit 2699e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e829d65e7855fb4c98a81dd8c210c5b6d738bde1
refs/heads/master: 81e3863636b2f963d32245ce6b23b37404d0cd39
4 changes: 1 addition & 3 deletions trunk/drivers/staging/rtl8192e/rtllib_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,15 +632,13 @@ int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
goto success;
}

if (skb->len > 282){
if (skb->len > 282) {
if (ETH_P_IP == ether_type) {
const struct iphdr *ip = (struct iphdr *)((u8 *)skb->data+14);
if (IPPROTO_UDP == ip->protocol) {
struct udphdr *udp = (struct udphdr *)((u8 *)ip + (ip->ihl << 2));
if (((((u8 *)udp)[1] == 68) && (((u8 *)udp)[3] == 67)) ||
((((u8 *)udp)[1] == 67) && (((u8 *)udp)[3] == 68))) {
printk("DHCP pkt src port:%d, dest port:%d!!\n", ((u8 *)udp)[1],((u8 *)udp)[3]);

bdhcp = true;
ieee->LPSDelayCnt = 200;
}
Expand Down

0 comments on commit 2699e9d

Please sign in to comment.