FreeBSD Bugzilla – Attachment 6252 Details for
Bug 14350
Security enhancement to ICMP
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.61 KB, created by
aledm
on 1999-10-16 06:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
aledm
Created:
1999-10-16 06:50:01 UTC
Size:
1.61 KB
patch
obsolete
>*** netinet/icmp_var.h.dist Fri Dec 4 04:21:25 1998 >--- netinet/icmp_var.h Mon Oct 11 18:59:58 1999 >*************** >*** 68,80 **** > #define ICMPCTL_MASKREPL 1 /* allow replies to netmask requests */ > #define ICMPCTL_STATS 2 /* statistics (read-only) */ > #define ICMPCTL_ICMPLIM 3 >! #define ICMPCTL_MAXID 4 > > #define ICMPCTL_NAMES { \ > { 0, 0 }, \ > { "maskrepl", CTLTYPE_INT }, \ > { "stats", CTLTYPE_STRUCT }, \ > { "icmplim", CTLTYPE_INT }, \ > } > > #ifdef KERNEL >--- 68,82 ---- > #define ICMPCTL_MASKREPL 1 /* allow replies to netmask requests */ > #define ICMPCTL_STATS 2 /* statistics (read-only) */ > #define ICMPCTL_ICMPLIM 3 >! #define ICMPCTL_TIMEREPL 4 >! #define ICMPCTL_MAXID 5 > > #define ICMPCTL_NAMES { \ > { 0, 0 }, \ > { "maskrepl", CTLTYPE_INT }, \ > { "stats", CTLTYPE_STRUCT }, \ > { "icmplim", CTLTYPE_INT }, \ >+ { "timerepl", CTLTYPE_INT }, \ > } > > #ifdef KERNEL >*** netinet/ip_icmp.c.dist Sat Mar 6 23:11:41 1999 >--- netinet/ip_icmp.c Mon Oct 11 18:57:41 1999 >*************** >*** 65,70 **** >--- 65,74 ---- > SYSCTL_STRUCT(_net_inet_icmp, ICMPCTL_STATS, stats, CTLFLAG_RD, > &icmpstat, icmpstat, ""); > >+ static int icmptimerepl = 0; >+ SYSCTL_INT(_net_inet_icmp, ICMPCTL_TIMEREPL, timerepl, CTLFLAG_RW, >+ &icmptimerepl, 0, ""); >+ > static int icmpmaskrepl = 0; > SYSCTL_INT(_net_inet_icmp, ICMPCTL_MASKREPL, maskrepl, CTLFLAG_RW, > &icmpmaskrepl, 0, ""); >*************** >*** 406,411 **** >--- 410,417 ---- > goto reflect; > > case ICMP_TSTAMP: >+ if (icmptimerepl == 0) >+ break; > if (!icmpbmcastecho > && (m->m_flags & (M_MCAST | M_BCAST)) != 0) { > icmpstat.icps_bmcasttstamp++;
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 14350
: 6252