i already have problems with programming a firewall.
i receive packets which can not be assigned.
i get packets which have this values:
u_char ip_hl:4, /* header length */ = 0
ip_v:4; /* version */ = 0
u_char ip_tos; /* type of service */ = 1
short ip_len; /* total length */ = 8
u_short ip_id; /* identification */ = 1030
short ip_off; /* fragment offset field */ = 256
#define IP_DF 0x4000 /* dont fragment flag */
#define IP_MF 0x2000 /* more fragments flag */
u_char ip_ttl; /* time to live */ = 0
u_char ip_p; /* protocol */ = 14
u_short ip_sum; /* checksum */ = 22837
struct in_addr ip_src, = 18.104.22.168
ip_dst; = 0.100.0.0
take a look at the ip addresses………………regular my ip is 192.168.0.100……
all other packets can be read correct….TCP, UDP….packets have the right ip
is it possible that the fregments are the reason of this problem?
how should i manage the fregment packets? manage the WinpkFilter driver the fregments?
do you have another idea which could case this problem??
if you have any idea please add an example…