FreeBSD Bugzilla – Attachment 197429 Details for
Bug 231661
net-mgmt/arpwatch: Fix missing leading zero in MAC addresses (in reports and database)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for net-mgmt/arpwatch
arpwatch-20180924.diff (text/plain), 1.87 KB, created by
Pavel Volkov
on 2018-09-24 12:52:00 UTC
(
hide
)
Description:
patch for net-mgmt/arpwatch
Filename:
MIME Type:
Creator:
Pavel Volkov
Created:
2018-09-24 12:52:00 UTC
Size:
1.87 KB
patch
obsolete
>diff -urNd net-mgmt/arpwatch.orig/files/patch-ec.c net-mgmt/arpwatch/files/patch-ec.c >--- net-mgmt/arpwatch.orig/files/patch-ec.c 1970-01-01 03:00:00.000000000 +0300 >+++ net-mgmt/arpwatch/files/patch-ec.c 2018-09-24 13:00:06.693889000 +0300 >@@ -0,0 +1,20 @@ >+--- ec.c.orig 2018-09-24 09:56:56 UTC >++++ ec.c >+@@ -201,7 +201,7 @@ str2e(register char *str, register u_cha >+ u_int n[6]; >+ >+ MEMSET(n, 0, sizeof(n)); >+- if (sscanf(str, "%x:%x:%x:%x:%x:%x", >++ if (sscanf(str, "%02x:%02x:%02x:%02x:%02x:%02x", >+ &n[0], &n[1], &n[2], &n[3], &n[4], &n[5]) != 6) >+ return (0); >+ for (i = 0; i < 6; ++i) { >+@@ -218,7 +218,7 @@ e2str(register u_char *e) >+ { >+ static char str[32]; >+ >+- (void)sprintf(str, "%x:%x:%x:%x:%x:%x", >++ (void)sprintf(str, "%02x:%02x:%02x:%02x:%02x:%02x", >+ e[0], e[1], e[2], e[3], e[4], e[5]); >+ return (str); >+ } >diff -urNd net-mgmt/arpwatch.orig/files/patch-massagevendor net-mgmt/arpwatch/files/patch-massagevendor >--- net-mgmt/arpwatch.orig/files/patch-massagevendor 1970-01-01 03:00:00.000000000 +0300 >+++ net-mgmt/arpwatch/files/patch-massagevendor 2018-09-24 13:45:03.347710000 +0300 >@@ -0,0 +1,11 @@ >+--- massagevendor.orig 2018-09-24 10:43:54 UTC >++++ massagevendor >+@@ -15,7 +15,7 @@ >+ awk -f euppertolower.awk | \ >+ sed -n \ >+ -e 's/^\([0-9A-Za-z][0-9A-Za-z]\)\([0-9A-Za-z][0-9A-Za-z]\)\([0-9A-Za-z][0-9A-Za-z]\)[ ]\(.*\)$/\1:\2:\3 \4/' \ >+- -e 's/^0//' -e 's/:0\([0-9A-Za-z]\)/:\1/g' -e p | \ >++ -e p | \ >+ sort | \ >+ awk -f duplicates.awk ) | \ >+ awk -f p.awk | \ >diff -urNd net-mgmt/arpwatch.orig/Makefile net-mgmt/arpwatch/Makefile >--- net-mgmt/arpwatch.orig/Makefile 2018-09-24 13:01:41.785727000 +0300 >+++ net-mgmt/arpwatch/Makefile 2018-09-24 14:09:00.492072000 +0300 >@@ -3,7 +3,7 @@ > > PORTNAME= arpwatch > DISTVERSION= 2.1a15 >-PORTREVISION= 10 >+PORTREVISION= 11 > CATEGORIES= net-mgmt > MASTER_SITES= ftp://ftp.ee.lbl.gov/ \ > GENTOO
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 231661
: 197429 |
197430
|
197431