diff options
author | Jochen Dolze <vdr@dolze.de> | 2010-07-12 11:37:22 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2010-07-12 11:37:22 +0200 |
commit | f233276220fe3ecf89b7d69d3f6e9d09f89ced3e (patch) | |
tree | 2a1aa227cb6d71028b76123e9a69f1cc6366adfb /global.cpp | |
parent | 54043194a2afb962f34fd47ed304e2fe634b61b3 (diff) | |
download | vdr-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.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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; } |