Tuesday, December 25, 2007
The wrong settings in fstab crash
I modified file /etc/fstab and the modification was incorrect. The tragedy happened. I can not boot normal. When boot sequences go to mount device which record in fstab, then system boot failed. When system failed, there are two choices : one is entering fix state the other is booting again. In fix state, the file system is read only, so, you can do nothing about that. Finally, I use boot-disk and choose "linux rescue" to solve this stupid problem.
Friday, December 14, 2007
Iptables allow BOOTPS/PC
dhcp use udp with port 67 and 68.
iptables -t filter -FORWARD -p udp --dport 67:68 --sport 67:68 -j ACCEPT
FYI:
Iptables Tutorial 1.1.19
iptables -t filter -FORWARD -p udp --dport 67:68 --sport 67:68 -j ACCEPT
FYI:
Iptables Tutorial 1.1.19
Tuesday, December 11, 2007
C99
There are some features defined by C99:
1.set initial values when allocate new data structure variable
typedef struct humanInfo_s {
char *name;
int age;
}humanInfo_t;
humanInfo obj = {.name="YUNG"};
2. Variable Declarations does not limit on the top of the function body.
3. inline function.
There some many defines in C99 , but I do not list it.
FYI:
ISO/IEC JTC1/SSC22/WG14-C
1.set initial values when allocate new data structure variable
typedef struct humanInfo_s {
char *name;
int age;
}humanInfo_t;
humanInfo obj = {.name="YUNG"};
2. Variable Declarations does not limit on the top of the function body.
3. inline function.
There some many defines in C99 , but I do not list it.
FYI:
ISO/IEC JTC1/SSC22/WG14-C
Subscribe to:
Posts (Atom)