printf("\n source port : %ld", htons(tcp_header->source_port)<>192.168.1.103);
This statement makes no sense, no wonder it does not compile. You are also confusing a port number with an IP address by the look of your code.
You need to convert both your IP addresses to integer values via
inet_addr()
[
^] and then make a simple numeric comparison. Then use something like:
long IPaddress1 = inet_adr("192.168.1.103");
long IPaddress2 = inet_adr(source_address);
if (IPaddress1 != IPaddress2)
printf("IP address: %s\n", source_address);