summaryrefslogtreecommitdiff
path: root/global.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-07-12 11:37:22 +0200
committerJochen Dolze <vdr@dolze.de>2010-07-12 11:37:22 +0200
commitf233276220fe3ecf89b7d69d3f6e9d09f89ced3e (patch)
tree2a1aa227cb6d71028b76123e9a69f1cc6366adfb /global.cpp
parent54043194a2afb962f34fd47ed304e2fe634b61b3 (diff)
downloadvdr-plugin-infosatepg-f233276220fe3ecf89b7d69d3f6e9d09f89ced3e.tar.gz
vdr-plugin-infosatepg-f233276220fe3ecf89b7d69d3f6e9d09f89ced3e.tar.bz2
Added patch for BSD from nox
Diffstat (limited to 'global.cpp')
-rw-r--r--global.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/global.cpp b/global.cpp
index bcc15d4..30fb1fa 100644
--- a/global.cpp
+++ b/global.cpp
@@ -195,17 +195,17 @@ bool cGlobalInfosatepg::SetDirectory(const char *Directory)
return true;
}
-bool cGlobalInfosatepg::CheckMAC(struct ethhdr *eth_hdr)
+bool cGlobalInfosatepg::CheckMAC(ether_header *eth_hdr)
{
if (!eth_hdr) return false;
- if (eth_hdr->h_dest[0]!=MAC[0]) return false;
- if (eth_hdr->h_dest[1]!=MAC[1]) return false;
- if (eth_hdr->h_dest[2]!=MAC[2]) return false;
- if (eth_hdr->h_dest[3]!=MAC[3]) return false;
- if (eth_hdr->h_dest[4]!=MAC[4]) return false;
-
- if (eth_hdr->h_dest[5]<EPG_FIRST_DAY_MAC) return false;
- if (eth_hdr->h_dest[5]>EPG_LAST_DAY_MAC) return false;
+ if (eth_hdr->ether_dhost[0]!=MAC[0]) return false;
+ if (eth_hdr->ether_dhost[1]!=MAC[1]) return false;
+ if (eth_hdr->ether_dhost[2]!=MAC[2]) return false;
+ if (eth_hdr->ether_dhost[3]!=MAC[3]) return false;
+ if (eth_hdr->ether_dhost[4]!=MAC[4]) return false;
+
+ if (eth_hdr->ether_dhost[5]<EPG_FIRST_DAY_MAC) return false;
+ if (eth_hdr->ether_dhost[5]>EPG_LAST_DAY_MAC) return false;
return true;
}