我在windows下用其它编译器写的文件在linux 下gdb调试时老说has no line number information 不能单步执行 怎么办?
by bananakindom - 程序开发 - 2006-11-25 11:43:44 阅读(545) 回复(3)
结构体in_addr的定义是什么呢?我在网上搜索到两个 struct in_addr { unsigned long s_addr; }; typedef struct in_addr { union { struct { UCHAR s_b1,s_b2,s_b3,s_b4; } S_un_b; struct { USHORT s_w1,s_w2; } S_un_w; ULONG S_addr; } S_un; #define s_addr S_un.S_addr /* can be used for most tcp & ip code */ #define s_host S_un.S_un_b.s_b2 ...
我做了一个这样的实验,请各位帮我验证一下: 三台电脑,A:10.1.5.236(网关) ,B:10.1.5.3,C:10.1.5.89,从C 80端口出去的包经A转发到C,我在C电脑上面输入:http://10.1.5.236,没有什么反应,规则我是这样写的: iptables -t nat -A PREROUTING -p tcp -d 10.1.5.236 --dport 80 -j DNAT --to-destination 10.1.5.3:80 我是这样认为的,由于在同一个网段,所以没有做源地址转换,不知道思路是否正确?请高手指点。
[code]#! /usr/bin/perl use strict; # 使用 IO::Socket 模組 use IO::Socket; # 取得命令列中的網頁位址,放入 $url 中 my $url=shift || die "您沒有輸入 url 網址!\n"; # 比對網頁位址是否合乎格式? my ($host, $file) = $url =~ m!http://([^/]+)(/[^\#]*)!; #(註1) # 若比對正確,才抓取 if ($host) { # 產生一個 IO::Socket::INET 物件 my $socket = IO::Socket::INET->new( Peeraddr => $host, # 指定主機位址...
Ask diag: when ypinit -m problem is as follow: warning: Group writable directory /var/yp/baseband.ut dbm map "Alias0":unsafe map file /var/yp/baseband.ut/mail.aliases: No such file or directory Cannnot create database for alias file /var/yp/baseband.ut/mail.aliases ***Error code 71 How to fix it?
installing oracle8.17 for inter 安装过程中到: installing askjdkhome1.0时;提示: cann't found /usr/local/java/java1.2.2 what can i do now?
installing oracle8.17 for inter 安装过程中到: installing askjdkhome1.0时;提示: cann't found /usr/local/java/java1.2.2 what can i do now?
[code]#include
int pstat.h typedef struct psinfo { uintptr_t pr_addr; /* address of process */ } other attributes are all right,but this one is zero'0' Does anybody know ? I'm working in the english model,so i just can't issue this problem in chinese! sorry!!