File: fix-spelling-errors

package info (click to toggle)
nast 0.2.0-12
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,804 kB
  • sloc: ansic: 7,516; sh: 2,768; makefile: 63
file content (189 lines) | stat: -rw-r--r-- 10,961 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
Description: Fix spelling errors in binary and manpage reported by lintian

--- a/icmp.c
+++ b/icmp.c
@@ -38,7 +38,7 @@ void handle_ICMP (u_short d, u_short x,
    n_print("princ",line_s,16,lg," -> ");
    n_print("princ",line_s,24,lg,"%s\n", inet_ntoa(ip->ip_dst));
    n_print("princ",++line_s,row_s,lg,"Version: %d\t", ip->ip_v);
-   n_print("princ",line_s,20,lg,"Lenght: %d\t", ntohs(ip->ip_len));
+   n_print("princ",line_s,20,lg,"Length: %d\t", ntohs(ip->ip_len));
    n_print("princ",line_s,35,lg,"TTL: %d\n", ip->ip_ttl);
    n_print("princ",++line_s,row_s,lg,"Type: ");
 
@@ -123,7 +123,7 @@ void handle_ICMP (u_short d, u_short x,
 	     n_print("princ",line_s,28,lg, "Redirect for host\n");
 	     break;
 	   case 2:
-	     n_print("princ",line_s,28,lg,"Redircet for tos & network\n");
+	     n_print("princ",line_s,28,lg,"Redirect for tos & network\n");
 	     break;
 	   case 3:
 	     n_print("princ",line_s,28,lg,"Redirect for tos & host\n");
--- a/igmp.c
+++ b/igmp.c
@@ -29,7 +29,7 @@ void handle_IGMP (FILE *output)
 
    n_print("princ",line_s,row_s,lg,"\n---[ IGMP ]----------------------------------------------------------\n");
    n_print("princ",line_s=line_s+2,row_s,lg,"%s -> %s\n", inet_ntoa(ip->ip_src), inet_ntoa(ip->ip_dst));
-   n_print("princ",++line_s,row_s,lg,"IP Version: %d\t Lenght: %d\t", ip->ip_v, ntohs(ip->ip_len));
+   n_print("princ",++line_s,row_s,lg,"IP Version: %d\t Length: %d\t", ip->ip_v, ntohs(ip->ip_len));
    n_print("princ",line_s,30,lg,"TTL: %d\t Code: %d\n", ip->ip_ttl, igmp->igmp_code);
    n_print("princ",++line_s,row_s,lg,"Type: ");
 
--- a/main.c
+++ b/main.c
@@ -375,7 +375,7 @@ void usage(char *name)
    printf("\n%sOther options:%s\n", BOLD, NORMAL);
    printf("  -l, --log-file <filename>          Log reports to file (work with many features)\n");
    printf("  -B, --daemon                       Run in background like demon:\n");
-   printf("                                      usefull for sniffer/stream/arp_control logging\n");
+   printf("                                      useful for sniffer/stream/arp_control logging\n");
    printf("  -V, --version                      Show version information\n");
    printf("  -h, --help                         Print this help\n");
    printf("\n");
--- a/nast.8
+++ b/nast.8
@@ -210,7 +210,7 @@ Type connection extremes
 .br
 - Stoled SEQ (247656261) ACK (3764364876)...
 .br
-- Connection has been resetted
+- Connection has been reset
 .br
 
 .br
@@ -332,7 +332,7 @@ Show version information
 Versions later 0.2.0 have a new ncurses interface which has many improvements 
 regarding the correspondent command line version. For example you can select the 
 connection interactively for tcp stream and reset features and byte counting 
-module show much more informations (packets type and connections load).
+module show much more information (packets type and connections load).
 .TP
 Please read NCURSES_README file before using the ncurses interface!
 .PP
--- a/ncurses/n_menu.c
+++ b/ncurses/n_menu.c
@@ -1309,7 +1309,7 @@ int options_menu()
 	       mvwprintw(help,9,2,"[Shift + s]   -> Sniffer Menu");
 	       mvwprintw(help,10,2,"[Shift + a]   -> Analyzer Menu");
 	       mvwprintw(help,11,2,"[Shift + o]   -> Options Menu");
-	       mvwprintw(help,12,2,"[i]           -> Show informations about options");
+	       mvwprintw(help,12,2,"[i]           -> Show information about options");
 	       mvwprintw(help,13,2,"[x]           -> Erase Main Window");
 	       mvwprintw(help,14,2,"[d]           -> Erase Info window");
 	       mvwprintw(help,15,2,"[h]           -> This help");
--- a/tcp.c
+++ b/tcp.c
@@ -47,7 +47,7 @@ void handle_TCP (u_short d, u_short x, F
    n_print("princ",++line_s,row_s,lg,"TTL: %d \t", ip->ip_ttl);
    n_print("princ",line_s,10,lg,"Window: %d\t", ntohs(tcp->th_win));
    n_print("princ",line_s,25,lg,"Version: %d\t", ip->ip_v);
-   n_print("princ",line_s,39,lg,"Lenght: %d\n", ntohs(ip->ip_len));
+   n_print("princ",line_s,39,lg,"Length: %d\n", ntohs(ip->ip_len));
    n_print("princ",++line_s,row_s,lg,"FLAGS: ");
 
    /*modifed by embyte */
--- a/udp.c
+++ b/udp.c
@@ -43,7 +43,7 @@ void handle_UDP (u_short d, u_short x, F
    service = getservbyport(htons(ntohs(udp->uh_dport)), "udp");
    n_print("princ",line_s,28,lg," -> ");
    n_print("princ",line_s,33,lg,"%s:%d(%s)\n", inet_ntoa(ip->ip_dst), ntohs(udp->uh_dport), (service) ? service->s_name : "unknown");
-   n_print("princ",++line_s,row_s,lg,"Version: %d\t Total Lenght: %d\t", ip->ip_v, ntohs(ip->ip_len));
+   n_print("princ",++line_s,row_s,lg,"Version: %d\t Total Length: %d\t", ip->ip_v, ntohs(ip->ip_len));
    n_print("princ",line_s,39,lg, "TTL: %d\n", ip->ip_ttl); 
    n_print("princ",++line_s,0,lg,"Packet Number: %d",npkt);
 
--- a/ncurses/n_nast.c
+++ b/ncurses/n_nast.c
@@ -119,7 +119,7 @@ int main_graph(void)
      {
 	pop_up_win();
 	mvwprintw(pop_up,2,2,"Welcome to Nast, the Network Analyzer Sniffer Tool!");
-	mvwprintw(pop_up,4,6,"    Distribuited under GPL license by");
+	mvwprintw(pop_up,4,6,"    Distributed under GPL license by");
 	mvwprintw(pop_up,5,6,"      Embyte & Snifth (C) 2003-2004");
 	mvwprintw(pop_up,8,6,"Insert the device you want to use, please:");
 	mvwprintw(pop_up,9,6,"   for the default <%s> press enter!",dev);
@@ -340,7 +340,7 @@ int main_graph(void)
 	     mvwprintw(help,9,2,"[Shift + s]   -> Sniffer Menu");
 	     mvwprintw(help,10,2,"[Shift + a]   -> Analyzer Menu");
 	     mvwprintw(help,11,2,"[Shift + o]   -> Options Menu");
-	     mvwprintw(help,12,2,"[i]           -> Show informations about options");
+	     mvwprintw(help,12,2,"[i]           -> Show information about options");
 	     mvwprintw(help,13,2,"[x]           -> Erase Main Window");
 	     mvwprintw(help,14,2,"[d]           -> Erase Info window");
 	     mvwprintw(help,15,2,"[h]           -> This help");
--- a/rst.c
+++ b/rst.c
@@ -138,7 +138,7 @@ int rst (char *dev,u_long ip_src,u_long
        }
 
    libnet_destroy(l);
-   n_print("princ",5,1,0,"- Connection has been resetted\n\n");
+   n_print("princ",5,1,0,"- Connection has been reset\n\n");
 
    return (0);
 }
--- a/ncurses/n_conn.c
+++ b/ncurses/n_conn.c
@@ -225,9 +225,9 @@ int del(u_long ip_src,u_long ip_dst,u_sh
 		  mvwprintw(winfo->win,c_inf[i].lin,21,"%d",c_inf[i].s_port);
 		  mvwprintw(winfo->win,c_inf[i].lin,34,"%s",libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE));
 		  mvwprintw(winfo->win,c_inf[i].lin,55,"%d",c_inf[i].d_port);
-		  mvwprintw(winfo->win,c_inf[i].lin,66,"Resetted");
+		  mvwprintw(winfo->win,c_inf[i].lin,66,"Reset");
 
-		  sprintf(sf[sf[i].cont].string,    "%2s%12d%20s%13d        Resetted",libnet_addr2name4(c_inf[i].s_ip, LIBNET_DONT_RESOLVE),c_inf[i].s_port,libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE),c_inf[i].d_port);
+		  sprintf(sf[sf[i].cont].string,    "%2s%12d%20s%13d        Reset",libnet_addr2name4(c_inf[i].s_ip, LIBNET_DONT_RESOLVE),c_inf[i].s_port,libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE),c_inf[i].d_port);
 	       }
 	     sprintf(sf[sf[i].cont].sfilter,"host %s and port %d and host %s and port %d",libnet_addr2name4(c_inf[i].s_ip, LIBNET_DONT_RESOLVE),c_inf[i].s_port,libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE),c_inf[i].d_port);
 	     SAFE_SCROLL_REFRESH(winfo);
@@ -252,9 +252,9 @@ int del(u_long ip_src,u_long ip_dst,u_sh
 		  mvwprintw(winfo->win,c_inf[i].lin,21,"%d",c_inf[i].s_port);
 		  mvwprintw(winfo->win,c_inf[i].lin,34,"%s",libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE));
 		  mvwprintw(winfo->win,c_inf[i].lin,55,"%d",c_inf[i].d_port);
-		  mvwprintw(winfo->win,c_inf[i].lin,66,"Resetted");
+		  mvwprintw(winfo->win,c_inf[i].lin,66,"Reset");
 
-		  sprintf(sf[sf[i].cont].string,      "%2s%12d%20s%13d        Resetted",libnet_addr2name4(c_inf[i].s_ip, LIBNET_DONT_RESOLVE),c_inf[i].s_port,libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE),c_inf[i].d_port);
+		  sprintf(sf[sf[i].cont].string,      "%2s%12d%20s%13d        Reset",libnet_addr2name4(c_inf[i].s_ip, LIBNET_DONT_RESOLVE),c_inf[i].s_port,libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE),c_inf[i].d_port);
 	       }
 	     sprintf(sf[sf[i].cont].sfilter,"host %s and port %d and host %s and port %d",libnet_addr2name4(c_inf[i].s_ip, LIBNET_DONT_RESOLVE),c_inf[i].s_port,libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE),c_inf[i].d_port);
 	     SAFE_SCROLL_REFRESH(winfo);
--- a/ncurses/n_rst.c
+++ b/ncurses/n_rst.c
@@ -238,9 +238,9 @@ int r_del(u_long ip_src,u_long ip_dst,u_
 		  mvwprintw(winfo->win,c_inf[i].lin,21,"%d",c_inf[i].s_port);
 		  mvwprintw(winfo->win,c_inf[i].lin,34,"%s",libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE));
 		  mvwprintw(winfo->win,c_inf[i].lin,55,"%d",c_inf[i].d_port);
-		  mvwprintw(winfo->win,c_inf[i].lin,66,"Resetted");
+		  mvwprintw(winfo->win,c_inf[i].lin,66,"Reset");
 
-		  sprintf(sf[sf[i].cont].string,    "%2s%12d%20s%13d          Resetted",libnet_addr2name4(c_inf[i].s_ip, LIBNET_DONT_RESOLVE),c_inf[i].s_port,libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE),c_inf[i].d_port);
+		  sprintf(sf[sf[i].cont].string,    "%2s%12d%20s%13d          Reset",libnet_addr2name4(c_inf[i].s_ip, LIBNET_DONT_RESOLVE),c_inf[i].s_port,libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE),c_inf[i].d_port);
 	       }
 	     sprintf(sf[sf[i].cont].sfilter,"host %s and port %d and host %s and port %d",libnet_addr2name4(c_inf[i].s_ip, LIBNET_DONT_RESOLVE),c_inf[i].s_port,libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE),c_inf[i].d_port);
 	     SAFE_SCROLL_REFRESH(winfo);
@@ -265,9 +265,9 @@ int r_del(u_long ip_src,u_long ip_dst,u_
 		  mvwprintw(winfo->win,c_inf[i].lin,21,"%d",c_inf[i].s_port);
 		  mvwprintw(winfo->win,c_inf[i].lin,34,"%s",libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE));
 		  mvwprintw(winfo->win,c_inf[i].lin,55,"%d",c_inf[i].d_port);
-		  mvwprintw(winfo->win,c_inf[i].lin,66,"Resetted");
+		  mvwprintw(winfo->win,c_inf[i].lin,66,"Reset");
 
-		  sprintf(sf[sf[i].cont].string,      "%2s%12d%20s%13d         Resetted",libnet_addr2name4(c_inf[i].s_ip, LIBNET_DONT_RESOLVE),c_inf[i].s_port,libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE),c_inf[i].d_port);
+		  sprintf(sf[sf[i].cont].string,      "%2s%12d%20s%13d         Reset",libnet_addr2name4(c_inf[i].s_ip, LIBNET_DONT_RESOLVE),c_inf[i].s_port,libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE),c_inf[i].d_port);
 	       }
 	     sprintf(sf[sf[i].cont].sfilter,"host %s and port %d and host %s and port %d",libnet_addr2name4(c_inf[i].s_ip, LIBNET_DONT_RESOLVE),c_inf[i].s_port,libnet_addr2name4(c_inf[i].d_ip, LIBNET_DONT_RESOLVE),c_inf[i].d_port);
 	     SAFE_SCROLL_REFRESH(winfo);
@@ -318,7 +318,7 @@ int reset_conn(char *dev,u_long s_ip, u_
 
    libnet_destroy(l);
    wattron(princ->win,A_BOLD);
-   n_print("princ",7,1,0,"- Connection has been resetted!!\n\n");
+   n_print("princ",7,1,0,"- Connection has been reset!!\n\n");
       wattroff(princ->win,A_BOLD);
 
    redrawscrollwin(princ,0);