七 30
###################
所有rfc相关的选项都是默认启用的
###################
net.inet.ip.sourceroute=0
net.inet.ip.accept_sourceroute=0
#############################
通过源路由,攻击者可以尝试到达内部IP地址 --包括RFC1918中的地址,所以
不接受源路由信息包可以防止你的内部网络被探测。
#################################
net.inet.tcp.drop_synfin=1
###################################
安全参数,编译内核的时候加了options TCP_DROP_SYNFIN才可以用,可以阻止某些OS探测。
##################################
kern.maxvnodes=8446
###########################
vnode 是对文件或目录的一种内部表达。 因此, 增加可 ... (全文...)
七 30
几个小事,记录一下:
1. 换了一个手机,多普达 575 (新浪 | ZOL) ,试用了几天才发现,原来射频的很厉害。
2. 18号到20号,互动博客,系统开发部等一起出去玩,去了月陀岛(百度百科),一些照片:(全文...)
七 24
代码在64位和32位的系统中,原则上应该都比较友好,尤其对于输出、比较、结构对齐(structure alignment)来说:
1) printf()指定的一些类型在32位和64位系统上可移植性不是很好,C99标准定义了一些可移植的格式。不幸的是,MSVC 7.1并非全部支持,而且标准中也有所遗漏。所以有时我们就不得不自己定义丑陋的版本(使用标准风格要包含文件inttypes.h):
// printf macros for size_t, in the style of inttypes.h
#ifdef _LP64
#define __PRIS_PREFIX "z"
#else
#define __PRIS_PREFIX
#endif
// Use these macros after a % in a printf format ... (全文...)
七 09
转自:atppp (http://blog.wuxinan.net/)
序言
时间是什么?物理学家是不会研究这么无聊的哲学问题的。先看看费曼大师在《QED: The Strange Theory of Light and Matter》书中对精细结构常数的看法:
It’s one of the greatest damn mysteries of physics: a magic number that comes to us with no understanding by man. You might say the “hand of God” wrote that number, and “we don’t know how He pushed His pencil.” We know what kind of a dance to do experimentally to measure this number very accurately, but we don’t know what kind of a dance to do on a computer to make this number come out — without putting it in secretly!
再来看看 Fang 的《 ... (全文...)