From e1f5ee0be51537c426c6c06fb002705d0d34a45d Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Thu, 18 Feb 2010 23:02:01 +0000 Subject: [PATCH] Adjusted line width of headers -> mostly header fit now into std 80 width. git-svn-id: http://netsniff-ng.googlecode.com/svn/trunk@253 21e0ff64-9a0b-11de-825e-994487f65616 --- src/include/netsniff-ng/print/l2/arp.h | 4 ++-- src/include/netsniff-ng/print/l3/ip.h | 6 +++--- src/include/netsniff-ng/print/l4/tcp.h | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/include/netsniff-ng/print/l2/arp.h b/src/include/netsniff-ng/print/l2/arp.h index 8d8bb878..f114f5bf 100644 --- a/src/include/netsniff-ng/print/l2/arp.h +++ b/src/include/netsniff-ng/print/l2/arp.h @@ -80,8 +80,8 @@ void print_arphdr(struct arphdr *arp) info(" [ ARP "); info("Format HA (%u), ", ntohs(arp->ar_hrd)); info("Format Proto (%u), ", ntohs(arp->ar_pro)); - info("HA Len (%u), ", ntohs(arp->ar_hln)); - info("Proto Len (%u), ", ntohs(arp->ar_pln)); + info("HA Len (%u), \n", ntohs(arp->ar_hln)); + info(" Proto Len (%u), ", ntohs(arp->ar_pln)); info("Opcode (%u => %s)", ntohs(arp->ar_op), opcode); info(" ] \n"); diff --git a/src/include/netsniff-ng/print/l3/ip.h b/src/include/netsniff-ng/print/l3/ip.h index 99ee9676..e7c92191 100644 --- a/src/include/netsniff-ng/print/l3/ip.h +++ b/src/include/netsniff-ng/print/l3/ip.h @@ -61,13 +61,13 @@ void print_iphdr(struct iphdr *ip) info(" [ IPv4 "); info("Addr (%s => %s), ", src_ip, dst_ip); info("Proto (%u), ", ip->protocol); - info("TTL (%u), ", ip->ttl); - info("TOS (%u), ", ip->tos); + info("TTL (%u), \n", ip->ttl); + info(" TOS (%u), ", ip->tos); info("Ver (%u), ", ip->version); info("IHL (%u), ", ntohs(ip->ihl)); info("Tlen (%u), ", ntohs(ip->tot_len)); info("ID (%u), \n", ntohs(ip->id)); - info("Res: %u NoFrag: %u MoreFrag: %u offset (%u), ", FRAG_OFF_RESERVED_FLAG(printable_frag_off) ? 1 : 0, + info(" Res: %u NoFrag: %u MoreFrag: %u offset (%u), ", FRAG_OFF_RESERVED_FLAG(printable_frag_off) ? 1 : 0, FRAG_OFF_NO_FRAGMENT_FLAG(printable_frag_off) ? 1 : 0, FRAG_OFF_MORE_FRAGMENT_FLAG(printable_frag_off) ? 1 : 0, FRAG_OFF_FRAGMENT_OFFSET(printable_frag_off)); info("Chsum (0x%x) is %s", ntohs(ip->check), csum ? colorize_full_str(red, black, "bogus (!)") : "ok"); diff --git a/src/include/netsniff-ng/print/l4/tcp.h b/src/include/netsniff-ng/print/l4/tcp.h index 85fefe53..3a0c78e1 100644 --- a/src/include/netsniff-ng/print/l4/tcp.h +++ b/src/include/netsniff-ng/print/l4/tcp.h @@ -53,8 +53,8 @@ static void inline print_tcphdr(struct tcphdr *tcp) info("Port (%u => %u), ", ntohs(tcp->source), ntohs(tcp->dest)); info("SN (0x%x), ", ntohs(tcp->seq)); info("AN (0x%x), ", ntohs(tcp->ack_seq)); - info("Data off (%d), ", ntohs(tcp->doff)); - info("Res 1 (%d), ", ntohs(tcp->res1)); + info("Data off (%d), \n", ntohs(tcp->doff)); + info(" Res 1 (%d), ", ntohs(tcp->res1)); info("Flags ("); -- 2.11.4.GIT