update to nbtscan-1.7.2
This commit is contained in:
parent
9f51d02715
commit
678f55a1fb
|
@ -2,8 +2,7 @@ COMMENT= NetBIOS name network scanner
|
|||
|
||||
GH_ACCOUNT= resurrecting-open-source-projects
|
||||
GH_PROJECT= nbtscan
|
||||
GH_TAGNAME= 1.5.1
|
||||
REVISION= 2
|
||||
GH_TAGNAME= 1.7.2
|
||||
|
||||
CATEGORIES= net
|
||||
|
||||
|
@ -13,10 +12,12 @@ PERMIT_PACKAGE= Yes
|
|||
WANTLIB += c
|
||||
|
||||
NO_TEST= Yes
|
||||
CONFIGURE_STYLE= gnu
|
||||
ALL_TARGET= nbtscan
|
||||
CONFIGURE_STYLE= autoreconf
|
||||
AUTOCONF_VERSION= 2.71
|
||||
AUTOMAKE_VERSION= 1.16
|
||||
#ALL_TARGET= nbtscan
|
||||
|
||||
do-install:
|
||||
xdo-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/nbtscan ${PREFIX}/bin
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (nbtscan-1.5.1.tar.gz) = xYMCenqiNpiIXrG94+4LSmUv2Z6pC/T/ONI/cKYPp5Q=
|
||||
SIZE (nbtscan-1.5.1.tar.gz) = 81502
|
||||
SHA256 (nbtscan-1.7.2.tar.gz) = AOYb58Bc06NNX+/t//+G3GrdAtTHKLIuE/ufvqu6GYQ=
|
||||
SIZE (nbtscan-1.7.2.tar.gz) = 29758
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
--- nbtscan.c.orig Mon Jun 2 16:05:48 2008
|
||||
+++ nbtscan.c Mon Jun 2 16:07:01 2008
|
||||
@@ -111,7 +111,7 @@ int d_print_hostinfo(struct in_addr addr, const struct
|
||||
for(i=0; i< hostinfo->header->number_of_names; i++) {
|
||||
service = hostinfo->names[i].ascii_name[15];
|
||||
strncpy(name, hostinfo->names[i].ascii_name, 15);
|
||||
- name[16]=0;
|
||||
+ name[15]=0;
|
||||
printf("%-17s Service: 0x%02x Flags: 0x%04x\n", name, service, hostinfo->names[i].rr_flags);
|
||||
}
|
||||
};
|
||||
@@ -164,7 +164,7 @@ int v_print_hostinfo(struct in_addr addr, const struct
|
||||
for(i=0; i< hostinfo->header->number_of_names; i++) {
|
||||
service = hostinfo->names[i].ascii_name[15];
|
||||
strncpy(name, hostinfo->names[i].ascii_name, 15);
|
||||
- name[16]=0;
|
||||
+ name[15]=0;
|
||||
unique = !(hostinfo->names[i].rr_flags & 0x0080);
|
||||
if(sf) {
|
||||
printf("%s%s%s%s", inet_ntoa(addr), sf, name, sf);
|
|
@ -1,10 +0,0 @@
|
|||
--- statusq.h.orig Thu May 23 13:31:35 2002
|
||||
+++ statusq.h Sat Oct 8 10:08:07 2016
|
||||
@@ -103,4 +103,7 @@ typedef struct nb_service {
|
||||
char* service_name;
|
||||
} nb_service_t ;
|
||||
|
||||
+struct nb_host_info* parse_response(char*, int);
|
||||
+char* getnbservicename(my_uint8_t, int, char*);
|
||||
+
|
||||
#endif /* STATUSQ_H */
|
|
@ -1 +1,2 @@
|
|||
@bin bin/nbtscan
|
||||
@man man/man1/nbtscan.1
|
||||
|
|
Loading…
Reference in New Issue