Lines Matching full:printf
47 printf("IP packet\n"); in dump_ip()
48 printf("header_len = %x\n", header->ihl); in dump_ip()
49 printf("version = %x\n", header->version); in dump_ip()
50 printf("tos = %x\n", header->tos); in dump_ip()
51 printf("tot_len = %x\n", ntohs(header->tot_len)); in dump_ip()
52 printf("id = %x\n", ntohs(header->id)); in dump_ip()
53 printf("frag: "); in dump_ip()
55 printf("(RF) "); in dump_ip()
58 printf("DF "); in dump_ip()
61 printf("MF "); in dump_ip()
63 printf("offset = %x\n", frag_flags & IP_OFFMASK); in dump_ip()
64 printf("ttl = %x\n", header->ttl); in dump_ip()
65 printf("protocol = %x\n", header->protocol); in dump_ip()
66 printf("checksum = %x\n", ntohs(header->check)); in dump_ip()
68 printf("saddr = %s\n", addrstr); in dump_ip()
70 printf("daddr = %s\n", addrstr); in dump_ip()
77 printf("ipv6\n"); in dump_ip6()
78 printf("version = %x\n", header->ip6_vfc >> 4); in dump_ip6()
79 printf("traffic class = %x\n", header->ip6_flow >> 20); in dump_ip6()
80 printf("flow label = %x\n", ntohl(header->ip6_flow & 0x000fffff)); in dump_ip6()
81 printf("payload len = %x\n", ntohs(header->ip6_plen)); in dump_ip6()
82 printf("next header = %x\n", header->ip6_nxt); in dump_ip6()
83 printf("hop limit = %x\n", header->ip6_hlim); in dump_ip6()
86 printf("source = %s\n", addrstr); in dump_ip6()
89 printf("dest = %s\n", addrstr); in dump_ip6()
94 printf("ICMP\n"); in dump_icmp()
96 printf("icmp.type = %x ", icmp->type); in dump_icmp()
98 printf("echo reply"); in dump_icmp()
100 printf("echo request"); in dump_icmp()
102 printf("other"); in dump_icmp()
104 printf("\n"); in dump_icmp()
105 printf("icmp.code = %x\n", icmp->code); in dump_icmp()
106 printf("icmp.checksum = %x\n", ntohs(icmp->checksum)); in dump_icmp()
108 printf("icmp.un.echo.id = %x\n", ntohs(icmp->un.echo.id)); in dump_icmp()
109 printf("icmp.un.echo.sequence = %x\n", ntohs(icmp->un.echo.sequence)); in dump_icmp()
115 printf("ICMP6\n"); in dump_icmp6()
116 printf("type = %x", icmp6->icmp6_type); in dump_icmp6()
118 printf("(echo request)"); in dump_icmp6()
120 printf("(echo reply)"); in dump_icmp6()
122 printf("\n"); in dump_icmp6()
123 printf("code = %x\n", icmp6->icmp6_code); in dump_icmp6()
125 printf("checksum = %x\n", icmp6->icmp6_cksum); in dump_icmp6()
128 printf("icmp6_id = %x\n", icmp6->icmp6_id); in dump_icmp6()
129 printf("icmp6_seq = %x\n", icmp6->icmp6_seq); in dump_icmp6()
142 printf("UDP\n"); in dump_udp_generic()
143 printf("source = %x\n", ntohs(udp->source)); in dump_udp_generic()
144 printf("dest = %x\n", ntohs(udp->dest)); in dump_udp_generic()
145 printf("len = %x\n", ntohs(udp->len)); in dump_udp_generic()
146 printf("check = %x (mine %x)\n", udp->check, my_checksum); in dump_udp_generic()
177 printf("TCP\n"); in dump_tcp_generic()
178 printf("source = %x\n", ntohs(tcp->source)); in dump_tcp_generic()
179 printf("dest = %x\n", ntohs(tcp->dest)); in dump_tcp_generic()
180 printf("seq = %x\n", ntohl(tcp->seq)); in dump_tcp_generic()
181 printf("ack = %x\n", ntohl(tcp->ack_seq)); in dump_tcp_generic()
182 printf("d_off = %x\n", tcp->doff); in dump_tcp_generic()
183 printf("res1 = %x\n", tcp->res1); in dump_tcp_generic()
185 printf("CWR = %x\n", tcp->cwr); in dump_tcp_generic()
186 printf("ECE = %x\n", tcp->ece); in dump_tcp_generic()
188 printf("CWR/ECE = %x\n", tcp->res2); in dump_tcp_generic()
190 printf("urg = %x ack = %x psh = %x rst = %x syn = %x fin = %x\n", tcp->urg, tcp->ack, in dump_tcp_generic()
192 printf("window = %x\n", ntohs(tcp->window)); in dump_tcp_generic()
193 printf("check = %x [mine %x]\n", tcp->check, my_checksum); in dump_tcp_generic()
194 printf("urgent = %x\n", tcp->urg_ptr); in dump_tcp_generic()
199 printf("options: "); in dump_tcp_generic()
201 printf("%x ", *(options + i)); in dump_tcp_generic()
203 printf("\n"); in dump_tcp_generic()