summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-07-21 09:24:53 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-07-21 09:24:53 +0200
commit820d8f23af148240e0266967ee460098a4855d94 (patch)
tree78ab84280848737a9a028de87f33590059895c3c
parent98ed6adf069d0a1b89cd6f90657fce1136020bee (diff)
netsniff-ng: dissector_sll: Fix indentation and typo
Fix indentation for multiline function calls and correct a typo in the same area. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--dissector_sll.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/dissector_sll.c b/dissector_sll.c
index c9202df..a69a6a4 100644
--- a/dissector_sll.c
+++ b/dissector_sll.c
@@ -44,12 +44,12 @@ static void sll_print_full(struct pkt_buff *pkt)
sll = pkt->sll;
tprintf(" [ Linux \"cooked\"");
tprintf(" Pkt Type %d (%s)", sll->sll_pkttype,
- pkt_type2str(sll->sll_pkttype));
+ pkt_type2str(sll->sll_pkttype));
tprintf(", If Type %d (%s)", sll->sll_hatype,
- device_type2str(sll->sll_hatype));
+ device_type2str(sll->sll_hatype));
tprintf(", Addr Len %d", sll->sll_halen);
tprintf(", Src (%s)", device_addr2str(sll->sll_addr, sll->sll_halen,
- sll->sll_hatype, addr_str, sizeof(addr_str)));
+ sll->sll_hatype, addr_str, sizeof(addr_str)));
tprintf(", Proto 0x%x", ntohs(sll->sll_protocol));
tprintf(" ]\n");
@@ -63,7 +63,7 @@ static void sll_print_full(struct pkt_buff *pkt)
pkt->dissector = &nlmsg_ops;
break;
default:
- tprintf(" [ Uknown protocol ]\n");
+ tprintf(" [ Unknown protocol ]\n");
}
}
@@ -77,12 +77,12 @@ static void sll_print_less(struct pkt_buff *pkt)
sll = pkt->sll;
tprintf(" Pkt Type %d (%s)", sll->sll_pkttype,
- pkt_type2str(sll->sll_pkttype));
+ pkt_type2str(sll->sll_pkttype));
tprintf(", If Type %d (%s)", sll->sll_hatype,
- device_type2str(sll->sll_hatype));
+ device_type2str(sll->sll_hatype));
tprintf(", Addr Len %d", sll->sll_halen);
tprintf(", Src (%s)", device_addr2str(sll->sll_addr, sll->sll_halen,
- sll->sll_hatype, addr_str, sizeof(addr_str)));
+ sll->sll_hatype, addr_str, sizeof(addr_str)));
tprintf(", Proto 0x%x", ntohs(sll->sll_protocol));
}