blob: a21b1ffc5f2d1a0c88d3fef3182aa0226e86ce65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
/*
* filter.cpp: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
* $Id$
*/
#ifndef __filter_h_
#define __filter_h_
#include <netinet/ip.h>
#include <netinet/udp.h>
#include <vdr/filter.h>
#include "global.h"
struct infosathdr {
u_short technisatId;
u_char tableId;
u_char tablesubId;
u_char day;
u_char month;
u_char res6;
u_char res7;
u_short pktnr;
u_short pktcnt;
};
// --- cFilterInfosatepg
class cFilterInfosatepg : public cFilter {
private:
cGlobalInfosatepg *global;
u_long do_sum(u_long sum, u_char *buf, int nBytes);
u_short foldsum(u_long sum);
u_short IPChecksum(iphdr *ipHeader);
u_short UDPChecksum(iphdr *ipHeader, udphdr *udpHeader);
protected:
virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length);
public:
cFilterInfosatepg(cGlobalInfosatepg *Global);
};
#endif
|