*protocol="TCP";
*hdrlen=tcph2->hlen;
*s_ip=inet_ntoa(iph->ip_src);
*d_ip=inet_ntoa(iph->ip_dst);
*s_port=ntohs(tcph2->source);
*d_port=ntohs(tcph2->dest);
*flags=tcph2->flags;
*ip_chk=iph->ip_sum;
*tcp_chk=tcph2->checksum;
*fild="NO";
libpcap을 이용해서 DB에 패킷 정보를 넣으려고하는데요요
변수들은 다 char형