Lines Matching refs:ih
779 struct ip* ih;
789 ih = (struct ip*) &inet_clear[8];
790 ih->ip_hl = 5;
791 ih->ip_v = 4;
792 ih->ip_tos = 0;
793 ih->ip_len = htons(20+8+PRGA_LEN);
794 ih->ip_id = htons(666);
795 ih->ip_off = 0;
796 ih->ip_ttl = ttl_val;
797 ih->ip_p = IPPROTO_UDP;
798 ih->ip_sum = 0;
799 inet_aton(floodip, &ih->ip_src);
800 inet_aton(myip, &ih->ip_dst);
801 ih->ip_sum = in_cksum((unsigned short*)ih, 20);
803 uh = (struct udphdr*) ((char*)ih + 20);
809 &ih->ip_src, &ih->ip_dst);
1851 struct ip* ih;
1894 ih = (struct ip*) ptr;
1895 ih->ip_hl = 5;
1896 ih->ip_v = 4;
1897 ih->ip_tos = 0;
1898 ih->ip_len = htons(20+8+5);
1899 ih->ip_id = htons(666);
1900 ih->ip_off = 0;
1901 ih->ip_ttl = 128;
1902 ih->ip_p = IPPROTO_UDP;
1903 ih->ip_sum = 0;
1905 inet_aton(myip, &ih->ip_src);
1906 inet_aton(floodip, &ih->ip_dst);
1908 ih->ip_sum = in_cksum((unsigned short*)ih, 20);
1920 uh->uh_sum = udp_checksum(ptr - 8, 8+5, &ih->ip_src,
1921 &ih->ip_dst);