LinuxÒÁµéÔ°ÂÛ̳'s Archiver

noticmp ·¢±íÓÚ 2006-4-19 10:20

Linux CÍøÂç±à³ÌÓö´í:¡®struct tcphdr¡¯ ûÓÐÃûΪ ¡®th_sport¡¯ µÄ³ÉÔ±

µ÷ÓÃtcpheader->th_sport = htons (9877)ʱ²»ÖªµÀΪºÎ³öÏÖÒÔÏ´íÎó?
0r)iS.m&L0gf D*Y5]
r \x^9x)o syn.c:106: ´íÎ󣺡®struct tcphdr¡¯ ûÓÐÃûΪ ¡®th_sport¡¯ µÄ³ÉÔ±
W9Q-{$g'U)K+bx syn.c:108: ´íÎ󣺡®struct tcphdr¡¯ ûÓÐÃûΪ ¡®th_dport¡¯ µÄ³ÉÔ±
k$R.T&wlF3{ z ......+ww:^v5RDH9Tb
¾­²é¿´Îļþ/usr/include/netinet/tcp.h,5R'gl+{:N
µÃÖª:
5x/MV/Q fz#| #ifdef __FAVOR_BSD [color=Red]<------¾ÍÊDz»ÖªµÀÕâÐÐÊÇÔõô»ØÊÂ?[/color]
~7q;f8B%d+E#n struct tcphdr7q8n_-F a
{ij\ H0i^
u_int16_t th_sport; gU} I d Kj0Z8y
u_int16_t th_dport;
DsO e4pq8z ......
o{?&zL _n&a2N };X`uG$Raxg)\&t
#else /* !__FAVOR_BSD */
n a"}3h/A[ Eq,|q struct tcphdr c&s0AIn"m {
{
(I0q N)?K3}U8Z o u_int16_t source;-Z7_Sz5z
u_int16_t dest;o"Y^](`u
u_int32_t seq;
t3]0kAL"R.mr ^ u_int32_t ack_seq;!nCg {)cV g9^0gp
......?,hO/Iaew
};

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.