Home > Archive > Tcl > August 2007 > CEPTCL: Doesn't RX multicast, has anyone seen it work before?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
CEPTCL: Doesn't RX multicast, has anyone seen it work before?
|
|
| dkushner99@yahoo.com 2007-08-22, 7:11 pm |
| Anyone,
I've asked this before, but I figured I'd try one more time before
giving up on the CEP package. I've spent w s trying to get the
CEPTCL package to work on my Linux. It took about 10 min for me to get
it to TX multicast but I cannot get it to receive multicast. I'd use
another package if I could but this is the only one I've seen that
supports all of the things I need. Like I said, it sends fine but my
RX handler is never called. I know that there are packets to 224.0.0.2
(from a router) on that interface because I see them with the ethereal
application. Someone sugested to use fconfigure to join the 224.0.0.2
group - good idea, still doesn't receive.
Why isn't the handler called? I don't know. I'm using wish 8.4.
QUESTION: Has anyone ever seen this package receive multicast?
Thanks,
- Daniel
wm withdraw .
set cepLibDir "/lib"
## Package Index file:
package ifneeded ceptcl 0.3 \
[list load [file join $cepLibDir libceptcl0.3.so]]
## Initialization:
package require ceptcl
proc udpEventHandler { sock interface } {
global testerIp localIf
puts "DEBUG: RX Handler called!"
set pkt [read $sock]
binary scan $pkt "H*" datapacket
set peer [fconfigure $sock -peer]
puts "RX $peer: [string length $datapacket] {$datapacket}"
decodePdu $datapacket RX $interface
return
}
proc createUdpCep { localIp } {
puts "DEBUG: Creating CEP on interface: $localIp ..."
set cepHandle [cep -type datagram -protocol 17 -myaddr \
$localIp -myport 646 -noresolve 224.0.0.2 646]
return $cepHandle
}
proc udpStart { interface } {
global srv testerIp
set srv($interface) [createUdpCep $interface] ;# CEPTCL
Package
fconfigure $srv($interface) -maddr $interface -buffering none -
translation {auto auto} -blocking 0
fileevent $srv($interface) readable [list udpEventHandler
$srv($interface) $interface]
fconfigure $srv($interface) -join 224.0.0.2
puts "Listening on udp port: [fconfigure $srv($interface) -
maddr]"
puts "Interface: $interface \($srv($interface)\) set up for
Transmit and Receive of UDP"
return $srv($interface)
}
proc sendUdpCep { cepHandle datapacket } {
set formattedDatapacket [binary format H* $datapacket]
puts "TX: Sending UDP packet \"$datapacket\" ..."
# decodePdu $datapacket TX
sendto $cepHandle 224.0.0.2 646 "$formattedDatapacket"
}
| |
| Alexandre Ferrieux 2007-08-22, 7:11 pm |
| On Aug 22, 11:17 pm, dkushne...@yahoo.com wrote:
> Anyone,
>
> Someone sugested to use fconfigure to join the 224.0.0.2
> group - good idea, still doesn't receive.
Could you please try the other suggestions:
- strace to see if something happens at the syscall level or not
- 224.0.0.1 because it is automatically registered (joined to)
-Alex
| |
| dkushner99@yahoo.com 2007-08-22, 7:11 pm |
| On Aug 22, 2:46 pm, Alexandre Ferrieux <alexandre.ferri...@gmail.com>
wrote:
> On Aug 22, 11:17 pm, dkushne...@yahoo.com wrote:
>
>
>
> Could you please try the other suggestions:
> - strace to see if something happens at the syscall level or not
> - 224.0.0.1 because it is automatically registered (joined to)
>
> -Alex
Hi Alex,
I did not know what strace is. I did "yum install strace" and I got
it, installed it. I have to figure out how to use it. I'm reading the
man page (http://linux.die.net/man/1/strace). How do I use it?
I ran a quick test with 224.0.0.1 (more tests to follow):
I changed the script TX to 224.0.0.1 and it is sent onto the wire but
I do not get it received. The CEP man page says that to keep from
receiving what is sent (looping back) to use the -loop option. I
didn't use that option purposely just to see if the RX handler would
be called and it wasn't called - still no RX! I don't t hink that test
is fair. I'll try to find another device to send multicast 224.0.0.1
onto the wire so that I'm not using the same script that I'm trying to
test.
- Daniel
| |
| dkushner99@yahoo.com 2007-08-22, 7:11 pm |
| On Aug 22, 2:46 pm, Alexandre Ferrieux <alexandre.ferri...@gmail.com>
wrote:
> On Aug 22, 11:17 pm, dkushne...@yahoo.com wrote:
>
>
>
> Could you please try the other suggestions:
> - strace to see if something happens at the syscall level or not
> - 224.0.0.1 because it is automatically registered (joined to)
>
> -Alex
Alex,
Is this what you want. I'm at5tached to the process for the script. I
see everything except RX. There is a router sending to 224.0.0.2 on
the wire. I see the packets with my sniffer on the same interface but
the script RX handler is still not called.
- Daniel
[root@castlerock dkushner]# ps -ef | grep wish
root 22524 19845 0 15:21 pts/5 00:00:00 /opt/ajuba/TclPro1.4/
linux-ix86/bin/prowish83.bin
root 22533 22457 0 15:22 pts/7 00:00:00 grep wish
[root@castlerock dkushner]# strace -p 22524
Process 22524 attached - interrupt to quit
select(7, [0 3 4 5 6], [], [], {4, 200000}) = 0 (Timeout)
gettimeofday({1187821347, 105840}, {420, 0}) = 0
gettimeofday({1187821347, 105966}, {420, 0}) = 0
gettimeofday({1187821347, 106181}, {420, 0}) = 0
write(1, "INFO 0:0:30:087 ::ldpSimTool::l"..., 79) = 79
write(1, "TX: Sending UDP packet \"0001001e"..., 98) = 98
sendto(5,
" \0\1\0\36\32\0\0\2\0\0\1\0\0\24\0\0\0\1\
4\0\0\4\0\0\0\0\4\1\0\4\32\0"...,
34, 0, {sa_family=AF_INET, sin_port=htons(646),
sin_addr=inet_addr("224.0.0.2")}, 16) = 34
gettimeofday({1187821347, 107644}, {420, 0}) = 0
gettimeofday({1187821347, 107822}, {420, 0}) = 0
gettimeofday({1187821347, 107953}, {420, 0}) = 0
gettimeofday({1187821347, 108075}, {420, 0}) = 0
select(7, [0 3 4 5 6], [], [], {4, 999569}) = 0 (Timeout)
gettimeofday({1187821352, 107848}, {420, 0}) = 0
gettimeofday({1187821352, 107974}, {420, 0}) = 0
gettimeofday({1187821352, 108237}, {420, 0}) = 0
write(1, "INFO 0:0:35:089 ::ldpSimTool::l"..., 79) = 79
write(1, "TX: Sending UDP packet \"0001001e"..., 98) = 98
sendto(5,
" \0\1\0\36\32\0\0\2\0\0\1\0\0\24\0\0\0\1\
4\0\0\4\0\0\0\0\4\1\0\4\32\0"...,
34, 0, {sa_family=AF_INET, sin_port=htons(646),
sin_addr=inet_addr("224.0.0.2")}, 16) = 34
gettimeofday({1187821352, 109716}, {420, 0}) = 0
gettimeofday({1187821352, 109832}, {420, 0}) = 0
gettimeofday({1187821352, 109961}, {420, 0}) = 0
gettimeofday({1187821352, 110082}, {420, 0}) = 0
select(7, [0 3 4 5 6], [], [], {4, 999634}) = 0 (Timeout)
gettimeofday({1187821357, 109838}, {420, 0}) = 0
gettimeofday({1187821357, 109967}, {420, 0}) = 0
gettimeofday({1187821357, 110180}, {420, 0}) = 0
write(1, "INFO 0:0:40:091 ::ldpSimTool::l"..., 79) = 79
write(1, "TX: Sending UDP packet \"0001001e"..., 98) = 98
sendto(5,
" \0\1\0\36\32\0\0\2\0\0\1\0\0\24\0\0\0\1\
4\0\0\4\0\0\0\0\4\1\0\4\32\0"...,
34, 0, {sa_family=AF_INET, sin_port=htons(646),
sin_addr=inet_addr("224.0.0.2")}, 16) = 34
gettimeofday({1187821357, 111677}, {420, 0}) = 0
gettimeofday({1187821357, 111795}, {420, 0}) = 0
gettimeofday({1187821357, 111929}, {420, 0}) = 0
gettimeofday({1187821357, 112053}, {420, 0}) = 0
select(7, [0 3 4 5 6], [], [], {4, 999624}) = 0 (Timeout)
gettimeofday({1187821362, 111832}, {420, 0}) = 0
gettimeofday({1187821362, 111960}, {420, 0}) = 0
gettimeofday({1187821362, 112172}, {420, 0}) = 0
write(1, "INFO 0:0:45:093 ::ldpSimTool::l"..., 79) = 79
write(1, "TX: Sending UDP packet \"0001001e"..., 98) = 98
sendto(5,
" \0\1\0\36\32\0\0\2\0\0\1\0\0\24\0\0\0\1\
4\0\0\4\0\0\0\0\4\1\0\4\32\0"...,
34, 0, {sa_family=AF_INET, sin_port=htons(646),
sin_addr=inet_addr("224.0.0.2")}, 16) = 34
gettimeofday({1187821362, 113629}, {420, 0}) = 0
gettimeofday({1187821362, 113754}, {420, 0}) = 0
gettimeofday({1187821362, 113886}, {420, 0}) = 0
gettimeofday({1187821362, 114010}, {420, 0}) = 0
select(7, [0 3 4 5 6], [], [], {4, 999619}) = 0 (Timeout)
gettimeofday({1187821367, 113882}, {420, 0}) = 0
gettimeofday({1187821367, 114010}, {420, 0}) = 0
gettimeofday({1187821367, 114219}, {420, 0}) = 0
write(1, "INFO 0:0:50:095 ::ldpSimTool::l"..., 79) = 79
write(1, "TX: Sending UDP packet \"0001001e"..., 98) = 98
sendto(5,
" \0\1\0\36\32\0\0\2\0\0\1\0\0\24\0\0\0\1\
4\0\0\4\0\0\0\0\4\1\0\4\32\0"...,
34, 0, {sa_family=AF_INET, sin_port=htons(646),
sin_addr=inet_addr("224.0.0.2")}, 16) = 34
gettimeofday({1187821367, 115625}, {420, 0}) = 0
gettimeofday({1187821367, 115747}, {420, 0}) = 0
gettimeofday({1187821367, 115876}, {420, 0}) = 0
gettimeofday({1187821367, 115997}, {420, 0}) = 0
select(7, [0 3 4 5 6], [], [], {4, 999628}) = 0 (Timeout)
gettimeofday({1187821372, 115842}, {420, 0}) = 0
gettimeofday({1187821372, 115967}, {420, 0}) = 0
gettimeofday({1187821372, 116177}, {420, 0}) = 0
write(1, "INFO 0:0:55:097 ::ldpSimTool::l"..., 79) = 79
write(1, "TX: Sending UDP packet \"0001001e"..., 98) = 98
sendto(5,
" \0\1\0\36\32\0\0\2\0\0\1\0\0\24\0\0\0\1\
4\0\0\4\0\0\0\0\4\1\0\4\32\0"...,
34, 0, {sa_family=AF_INET, sin_port=htons(646),
sin_addr=inet_addr("224.0.0.2")}, 16) = 34
gettimeofday({1187821372, 117641}, {420, 0}) = 0
gettimeofday({1187821372, 117763}, {420, 0}) = 0
gettimeofday({1187821372, 117892}, {420, 0}) = 0
gettimeofday({1187821372, 118012}, {420, 0}) = 0
select(7, [0 3 4 5 6], [], [], {4, 999629} <unfinished ...>
Process 22524 detached
[root@castlerock dkushner]#
| |
| Donal K. Fellows 2007-08-22, 7:11 pm |
| dkushner99@yahoo.com wrote:
> I did not know what strace is. I did "yum install strace" and I got
> it, installed it. I have to figure out how to use it. I'm reading the
> man page (http://linux.die.net/man/1/strace). How do I use it?
strace is a program that traces what system calls a program makes. You
use it by putting 'strace' as a separate word at the start of the
command line that invokes program you want to trace. It produces *lots*
of output IIRC; you'll definitely want to save it in a file so you can
search through it at your leisure.
When searching the trace file for relevant stuff, look especially for
the bind() syscall as that's responsible for giving a socket an address.
That'll tell you which file descriptor to follow. (And yes, following
syscall traces does take a bit of detective work.)
Also be aware that some routers don't support multicast well. :-(
Donal.
| |
| Alexandre Ferrieux 2007-08-22, 7:11 pm |
| On Aug 23, 12:34 am, dkushne...@yahoo.com wrote:
>
> Alex,
> Is this what you want. I'm at5tached to the process for the script. I
> see everything except RX. There is a router sending to 224.0.0.2 on
> the wire. I see the packets with my sniffer on the same interface but
> the script RX handler is still not called.
Yes !
> select(7, [0 3 4 5 6], [], [], {4, 999569}) = 0 (Timeout)
This one shows you that despite handlers on the five descriptors (one
of which is no doubt the proper UDP socket), the select() is only
unlocked by its 5-second timeout (your [after 5000]).
This means that it is definitely a join issue. Can you please post the
code with the join, and also the strace output when it is doing the
join ?
-Alex
| |
| Uwe Klein 2007-08-24, 8:10 am |
| You can use bash localy for testing.
First:
echo "teststring" >/dev/udp/<this_host_ip>/<my_app_port>
This should trigger your receive handler.
then:
echo "teststring" >/dev/udp/<my_mcast_group>/<my_app_port>
This then should do the same.
apropos:
What does your routing look like?
and does ifconfig for the used interface
show "multicast" in the options?
Like:
robert:~ # ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:0E:A6:B0:BB:6B
inet addr:172.33.99.1 Bcast:172.33.99.255 Mask:255.255.255.0
inet6 addr: fe80::20e:a6ff:feb0:bb6b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
-------------------------------^^^^^^^^^
RX packets:13438274 errors:0 dropped:0 overruns:0 frame:0
TX packets:8824671 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2198898107 (2097.0 Mb) TX bytes:3936442011 (3754.0 Mb)
Interrupt:185 Base address:0x6000
uwe
| |
| dkushner99@yahoo.com 2007-08-24, 7:17 pm |
| On Aug 24, 5:19 am, Uwe Klein <uwe_klein_habertw...@t-online.de>
wrote:
> You can use bash localy for testing.
>
> First:
> echo "teststring" >/dev/udp/<this_host_ip>/<my_app_port>
>
> This should trigger your receive handler.
>
> then:
> echo "teststring" >/dev/udp/<my_mcast_group>/<my_app_port>
>
> This then should do the same.
>
> apropos:
> What does your routing look like?
>
> and does ifconfig for the used interface
> show "multicast" in the options?
> Like:
> robert:~ # ifconfig eth1
> eth1 Link encap:Ethernet HWaddr 00:0E:A6:B0:BB:6B
> inet addr:172.33.99.1 Bcast:172.33.99.255 Mask:255.255.255.0
> inet6 addr: fe80::20e:a6ff:feb0:bb6b/64 Scope:Link
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> -------------------------------^^^^^^^^^
> RX packets:13438274 errors:0 dropped:0 overruns:0 frame:0
> TX packets:8824671 errors:0 dropped:0 overruns:0 carrier:0
> collisions:0 txqueuelen:1000
> RX bytes:2198898107 (2097.0 Mb) TX bytes:3936442011 (3754.0 Mb)
> Interrupt:185 Base address:0x6000
>
> uwe
Hi,
Thanks for the help!
1) ifconfig shows multicast. Actually the udptcl package DOES work
with multicast TX and RX on this Linux just fine but ceptcl does not
RX multicast. I need the options that ceptcl has though. udptcl only
works on one interface and ceptcl can utilize any interface (or
alias). That's what I need.
2) I ran my script using tcludp and tried the commands you sugested.
It received the packets and called the handler.
3) I ran my script using ceptcl and tried the commands you sugested.
It DIDN'T receive the packets and called the handler WAS NOT called.
Right now I'm using eth0 for my script (because tcludp only works on
that interface), but if I can get ceptcl to work I'll utilize other
interfaces. I shouldn't run protocol tests on my network interface
that connects to the corp net. I need to use the other interfaces
(like ceptcl supports if it worked).
[root@castlerock dkushner]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:11:11:0D:14:6E
inet addr:172.24.217.91 Bcast:172.24.217.255 Mask:
255.255.255.0
inet6 addr: fe80::211:11ff:fe0d:146e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1694175 errors:0 dropped:0 overruns:0 frame:0
TX packets:2152843 errors:0 dropped:0 overruns:0 carrier:0
collisions:268893 txqueuelen:100
RX bytes:265462251 (253.1 MiB) TX bytes:1389346959 (1.2
GiB)
Base address:0xddc0 Memory:fcee0000-fcf00000
eth0:1 Link encap:Ethernet HWaddr 00:11:11:0D:14:6E
inet addr:26.0.0.2 Bcast:26.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Base address:0xddc0 Memory:fcee0000-fcf00000
eth1 Link encap:Ethernet HWaddr 00:14:C1:35:BF:06
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:21 Base address:0x4f00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5936 errors:0 dropped:0 overruns:0 frame:0
TX packets:5936 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12413742 (11.8 MiB) TX bytes:12413742 (11.8 MiB)
[root@castlerock dkushner]#
[root@castlerock dkushner]# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window
irtt Ifac
172.24.217.0 * 255.255.255.0 U 0 0
0 eth0
169.254.0.0 * 255.255.0.0 U 0 0
0 eth0
26.0.0.0 * 255.0.0.0 U 0 0
0 eth0
default router-172-24-2 0.0.0.0 UG 0 0
0 eth0
[root@castlerock dkushner]#
- Daniel
| |
| Alexandre Ferrieux 2007-08-24, 7:17 pm |
| On Aug 23, 1:16 am, dkushne...@yahoo.com wrote:
> Here's a quick dump. I can see some calls to set up multicast.
> Let me know what yopu think.
> setsockopt(5, SOL_IP, IP_ADD_MEMBERSHIP, "\340\0\0\2\0\0\0\0", 8) = 0
OK. Now please do the same with tcludp, trying to stick to the same
interface, ports and addresses.
The delta between two complex behaviors is often easier to analyze...
-Alex
| |
| dkushner99@yahoo.com 2007-08-26, 4:31 am |
| Alex, My peer is 26.0.0.1, I am 26.0.0.2. This means that the RX
handler is being called. tcludp works but ceptcl does not.
Kinda long trace ... NOTICE:
## FROM TRACE ##########
RX 26.0.0.1 646: 68
{0001001e1900000100000100001400006059040
00004000f00000401000419000001}
INFO 0:0:5:707 ::ldpSimTool::ldp-A1: Sending UDP-HELLO, Hello-time:
5000 ...
TX: Sending UDP packet
" 0001001e1a000002000001000014000000010400
000400000000040100041a000002" ...
DEBUG: RX Handler called!
RX 26.0.0.1 646: 0 {}
## WHOLE TRACE (tclUDP (eth0)) ######################
Loading: CLI-LDP-instance-delete.tcl ...
Loading: ldp-simtool-hello-pdu-tlvs.tcl ...
Loading: ldp-simtool-logging.tcl ...
Loading: ldp-simTool-decode-tlv.tcl ...
Loading: ldp-simtool-modify-message.tcl ...
Loading: ldp-simtool-help-tlv.tcl ...
Loading: ldp-simtool-cept-if.tcl ...
INFO 0:0:0:0 Adding interface to list of available interfaces:
eth0
172.24.217.91
INFO 0:0:0:1 Adding interface to list of available interfaces:
eth0:1 26.0.0.2
DEBUG: Creating UDP on interface: 26.0.0.2 ...
Listening on port: 646
INFO 0:0:0:413 Adding interface to list of available interfaces:
eth0:2 26.0.0.3
INFO 0:0:0:413 Attempting to create LDP Instance name: "ldp-A1".
DEBUG:
INFO 0:0:0:414 Initializing PDUs for LDP instance name:
::ldpSimTool::ldp-A1 ...
INFO 0:0:0:458 Configuring UDP-HELLO PDU, TLV type:
common-hello-params to: "include".
INFO 0:0:0:459 Configuring UDP-HELLO PDU, TLV type:
common-hello-params field values to: "default".
INFO 0:0:0:460 Configuring UDP-HELLO PDU, TLV type:
ipv4-transport-address to: "include".
INFO 0:0:0:465 Configuring UDP-HELLO PDU, TLV type: fec to:
"exclude".
INFO 0:0:0:466 Configuring UDP-HELLO PDU, TLV type: address-list
field values to: "default".
INFO 0:0:0:466 Configuring UDP-HELLO PDU, TLV type: address-list to:
"exclude".
INFO 0:0:0:469 Configuring UDP-HELLO PDU, TLV type: address-list
field values to: "default".
INFO 0:0:0:470 Configuring UDP-HELLO PDU, TLV type: hop-count to:
"exclude".
INFO 0:0:0:473 Configuring UDP-HELLO PDU, TLV type: hop-count field
values to: "default".
INFO 0:0:0:474 Configuring UDP-HELLO PDU, TLV type: path-vector to:
"exclude".
INFO 0:0:0:474 Configuring UDP-HELLO PDU, TLV type: Hop-Count field
values to: "default".
INFO 0:0:0:479 Configuring UDP-HELLO PDU, TLV type: generic-label
to:
"exclude".
INFO 0:0:0:483 Configuring UDP-HELLO PDU, TLV type: Hop-Count field
values to: "default".
INFO 0:0:0:484 Configuring UDP-HELLO PDU, TLV type: atm-label to:
"exclude".
INFO 0:0:0:484 Configuring UDP-HELLO PDU, TLV type: Hop-Count field
values to: "default".
INFO 0:0:0:488 Configuring UDP-HELLO PDU, TLV type: frame-relay-
label
to: "exclude".
INFO 0:0:0:489 Configuring UDP-HELLO PDU, TLV type: Hop-Count field
values to: "default".
INFO 0:0:0:489 Configuring UDP-HELLO PDU, TLV type: ft-protection
to:
"exclude".
INFO 0:0:0:490 Configuring UDP-HELLO PDU, TLV type: Hop-Count field
values to: "default".
INFO 0:0:0:495 Configuring UDP-HELLO PDU, TLV type: status to:
"exclude".
INFO 0:0:0:502 Configuring UDP-HELLO PDU, TLV type: Hop-Count field
values to: "default".
INFO 0:0:0:503 Configuring UDP-HELLO PDU, TLV type: extended-status
to: "exclude".
INFO 0:0:0:504 Configuring UDP-HELLO PDU, TLV type: Hop-Count field
values to: "default".
INFO 0:0:0:507 Configuring UDP-HELLO PDU, TLV type: returned-pdu to:
"exclude".
INFO 0:0:0:508 Configuring UDP-HELLO PDU, TLV type: Returned-PDU
field values to: "default".
INFO 0:0:0:509 Configuring UDP-HELLO PDU, TLV type:
configuration-sequence-number to: "exclude".
INFO 0:0:0:512 Configuring UDP-HELLO PDU, TLV type:
ipv6-transport-address to: "exclude".
INFO 0:0:0:518 Configuring UDP-HELLO PDU, TLV type:
common-session-params to: "exclude".
INFO 0:0:0:519 Configuring UDP-HELLO PDU, TLV type:
atm-session-params to: "exclude".
INFO 0:0:0:520 Configuring UDP-HELLO PDU, TLV type:
frame-relay-session-params to: "exclude".
INFO 0:0:0:520 Configuring UDP-HELLO PDU, TLV type: ft-session-tlv
to: "exclude".
INFO 0:0:0:524 Configuring UDP-HELLO PDU, TLV type: ft-ack-tlv to:
"exclude".
INFO 0:0:0:525 Configuring UDP-HELLO PDU, TLV type: ft-cork-tlv to:
"exclude".
INFO 0:0:0:526 Configuring UDP-HELLO PDU, TLV type:
label-req-message-id to: "exclude".
INFO 0:0:0:690 Configuring UDP-HELLO PDU, TLV type: mtu to:
"exclude".
INFO 0:0:0:690 Initializing LDP Instance: ldp-A1 LSR-ID:
26.0.0.2 ...
INFO 0:0:0:691 Adding Interface: 26.0.0.2 to LDP instance name:
::ldpSimTool::ldp-A1 ...
INFO 0:0:0:693 Starting UDP Hello timer for Instance:
::ldpSimTool::ldp-A1 interface: eth0:1 26.0.0.2 ...
DEBUG 0:0:0:697 DEBUG: Init-Instance - INCLUDING Common-Hello-Params
TLV ...
DEBUG 0:0:0:700 DEBUG: COMMON-HELLO-PARAMS TLV U-bit, F-bit, Type:
04
00
DEBUG 0:0:0:700 DEBUG: COMMON-HELLO-PARAMS TLV Length: 00 04
DEBUG 0:0:0:700 DEBUG: COMMON-HELLO-PARAMS TLV Hold-Time: 00 00
DEBUG 0:0:0:701 DEBUG: COMMON-HELLO-PARAMS TLV T-bit, R-bit, Rsvd:
00
00
DEBUG 0:0:0:701 DEBUG: Init-Instance - INCLUDING
IPv4-Transport-Address TLV ...
DEBUG 0:0:0:701 DEBUG: IPv4-Transport-Address TLV U-bit, F-bit,
Type:
04 01
DEBUG 0:0:0:701 DEBUG: IPv4-Transport-Address TLV Length: 00 04
DEBUG 0:0:0:702 DEBUG: IPv4-Transport-Address TLV IPv4-Addr:
26.0.0.2 (Dec: 1a 00 00 02)
DEBUG 0:0:0:705 Length: 00 1e (Decimal: 30)
DEBUG 0:0:0:705 Version: 00 01
DEBUG 0:0:0:705 LDP-ID: 1a 00 00 020000
INFO 0:0:0:706 ::ldpSimTool::ldp-A1: Sending UDP-HELLO, Hello-time:
5000 ...
TX: Sending UDP packet
" 0001001e1a000002000001000014000000010400
000400000000040100041a000002" ...
DEBUG: RX Handler called!
DEBUG: RX from myself - Throwing it away!
DEBUG: RX Handler called!
DEBUG: RX from myself - Throwing it away!
DEBUG: RX Handler called!
RX 26.0.0.1 646: 68
{0001001e1900000100000100001400006059040
00004000f00000401000419000001}
INFO 0:0:5:707 ::ldpSimTool::ldp-A1: Sending UDP-HELLO, Hello-time:
5000 ...
TX: Sending UDP packet
" 0001001e1a000002000001000014000000010400
000400000000040100041a000002" ...
DEBUG: RX Handler called!
RX 26.0.0.1 646: 0 {}
DEBUG: RX Handler called!
DEBUG: RX from myself - Throwing it away!
DEBUG: RX Handler called!
DEBUG: RX from myself - Throwing it away!
DEBUG: RX Handler called!
RX 26.0.0.1 646: 68
{0001001e190000010000010000140000605a040
00004000f00000401000419000001}
INFO 0:0:10:709 ::ldpSimTool::ldp-A1: Sending UDP-HELLO, Hello-time:
5000 ...
TX: Sending UDP packet
" 0001001e1a000002000001000014000000010400
000400000000040100041a000002" ...
DEBUG: RX Handler called!
RX 26.0.0.1 646: 0 {}
DEBUG: RX Handler called!
DEBUG: RX from myself - Throwing it away!
DEBUG: RX Handler called!
DEBUG: RX from myself - Throwing it away!
DEBUG: RX Handler called!
RX 26.0.0.1 646: 68
{0001001e190000010000010000140000605b040
00004000f00000401000419000001}
INFO 0:0:15:711 ::ldpSimTool::ldp-A1: Sending UDP-HELLO, Hello-time:
5000 ...
TX: Sending UDP packet
" 0001001e1a000002000001000014000000010400
000400000000040100041a000002" ...
DEBUG: RX Handler called!
RX 26.0.0.1 646: 0 {}
DEBUG: RX Handler called!
DEBUG: RX from myself - Throwing it away!
| |
| dkushner99@yahoo.com 2007-08-26, 4:31 am |
| On Aug 26, 12:58 am, dkushne...@yahoo.com wrote:
> Alex, My peer is 26.0.0.1, I am 26.0.0.2. This means that the RX
> handler is being called. tcludp works but ceptcl does not.
>
> Kinda long trace ... NOTICE:
>
Also notice that I RX two packets with the udptcl for each one sent. I
havn't figured out that one yet! The developer sent me the new version
the other day. This will support multiple interfaces. I got the .dll
for Windows and some lib for Unix. and an .obj file but I need the .so
for Linux. He also sent the source code but I'm not set up to complie
on my Linux. I don't think the Fedora came with all that. I may load
the RPMs if possible but again, I'm not a C programmer so I don't know
how sucessful I would be at compiling it. I'll look into it though.
- Daniel
| |
| Uwe Klein 2007-08-26, 8:11 am |
| dkushner99@yahoo.com wrote:
> On Aug 26, 12:58 am, dkushne...@yahoo.com wrote:
>
>
>
> Also notice that I RX two packets with the udptcl for each one sent. I
> havn't figured out that one yet! The developer sent me the new version
> the other day. This will support multiple interfaces. I got the .dll
> for Windows and some lib for Unix. and an .obj file but I need the .so
> for Linux. He also sent the source code but I'm not set up to complie
> on my Linux. I don't think the Fedora came with all that. I may load
> the RPMs if possible but again, I'm not a C programmer so I don't know
> how sucessful I would be at compiling it. I'll look into it though.
> - Daniel
>
I would be surprised if your Fedora came without gcc/make/.. installed.
You may need to install the tcl[-_]devel rpm for your system first
though.
unpack (gunzip/tar -xvf ...)
cd tcludp-<versio>
../configure --prefix /usr
( not sure could be /usr/local/
if your tclsh is in /usr/bin "/usr" is OK
)
make
make install
done.
uwe
| |
| Alexandre Ferrieux 2007-08-27, 8:34 pm |
| On Aug 26, 9:58 am, dkushne...@yahoo.com wrote:
> Alex, My peer is 26.0.0.1, I am 26.0.0.2. This means that the RX
> handler is being called. tcludp works but ceptcl does not.
> Kinda long trace
Well, this is not really useful. I was expecting the strace output for
the tcludp process...
-Alex
| |
| dkushner99@yahoo.com 2007-08-27, 8:35 pm |
| On Aug 27, 10:25 am, Alexandre Ferrieux <alexandre.ferri...@gmail.com>
wrote:
> On Aug 26, 9:58 am, dkushne...@yahoo.com wrote:
>
>
> Well, this is not really useful. I was expecting the strace output for
> the tcludp process...
>
> -Alex
Alex,
I do not think there is one, at least I don't see anything when I do
ps -ef, When I invoke the wish shell, I load the lib (.so). Here are
the processes while my tool (bottom list of processes), TCL/TK and
udptcl are all running. If you don't want me to trace the wish, then
what do I trace?
I did ps -ef after invoking wish, then I did it again after loading
tcludp.
Here is the diff between the two "ps's":
84c84
< root 3267 2261 0 Aug23 tty7 00:00:47 /usr/bin/Xorg :0 -br
-audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7
---
> root 3267 2261 0 Aug23 tty7 00:00:48 /usr/bin/Xorg :0 -br
-audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt7
120c120
< dkushner 3559 1 0 Aug23 ? 00:18:07 Xvnc :1 -desktop
castlerock:1 (dkushner) -httpd /usr/share/vnc/classes -auth
/home/dkushner/.Xauthority -geometry 1280x1024 -depth 24 -rfbwait
30000 -rfbauth
/home/dkushner/.vnc/passwd -rfbport 5901 -pn
---
> dkushner 3559 1 0 Aug23 ? 00:18:09 Xvnc :1 -desktop
castlerock:1 (dkushner) -httpd /usr/share/vnc/classes -auth
/home/dkushner/.Xauthority -geometry 1280x1024 -depth 24 -rfbwait
30000 -rfbauth
/home/dkushner/.vnc/passwd -rfbport 5901 -pn
146c146
< dkushner 3763 3758 0 Aug23 pts/3 00:46:09
/opt/Komodo-Edit-4.1/lib/mozilla/komodo-bin
---
> dkushner 3763 3758 0 Aug23 pts/3 00:46:12
/opt/Komodo-Edit-4.1/lib/mozilla/komodo-bin
176c176
< dkushner 9049 13019 1 14:09 pts/12 00:00:00 ps -ef
---
> dkushner 9055 13019 1 14:10 pts/12 00:00:00 ps -ef
Here is the entire ps -ef while tcludp is loaded:
[dkushner@castlerock bin]$ ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 Aug23 ? 00:00:02
init[5]
root 2 0 0 Aug23 ? 00:00:00 [kthreadd]
root 3 2 0 Aug23 ? 00:00:00 [migration/0]
root 4 2 0 Aug23 ? 00:00:03 [ksoftirqd/0]
root 5 2 0 Aug23 ? 00:00:00 [watchdog/0]
root 6 2 0 Aug23 ? 00:00:01 [events/0]
root 7 2 0 Aug23 ? 00:00:00 [khelper]
root 48 2 0 Aug23 ? 00:00:01 [kblockd/0]
root 49 2 0 Aug23 ? 00:00:00 [kacpid]
root 50 2 0 Aug23 ? 00:00:00 [kacpi_notify]
root 121 2 0 Aug23 ? 00:00:00 [cqueue/0]
root 122 2 0 Aug23 ? 00:00:00 [ksuspend_usbd]
root 125 2 0 Aug23 ? 00:00:00 [khubd]
root 127 2 0 Aug23 ? 00:00:00 [kseriod]
root 148 2 0 Aug23 ? 00:00:01 [pdflush]
root 149 2 0 Aug23 ? 00:00:02 [pdflush]
root 150 2 0 Aug23 ? 00:00:05 [kswapd0]
root 201 2 0 Aug23 ? 00:00:00 [aio/0]
root 338 2 0 Aug23 ? 00:00:00 [kpsmoused]
root 366 2 0 Aug23 ? 00:00:05 [ata/0]
root 367 2 0 Aug23 ? 00:00:00 [ata_aux]
root 372 2 0 Aug23 ? 00:00:00 [scsi_eh_0]
root 373 2 0 Aug23 ? 00:00:11 [scsi_eh_1]
root 374 2 0 Aug23 ? 00:00:00 [scsi_eh_2]
root 375 2 0 Aug23 ? 00:00:00 [scsi_eh_3]
root 384 2 0 Aug23 ? 00:00:00 [ksnapd]
root 392 2 0 Aug23 ? 00:00:13 [kjournald]
root 420 2 0 Aug23 ? 00:00:00 [kauditd]
root 457 1 0 Aug23 ? 00:00:00 /sbin/udevd -d
root 893 2 0 Aug23 ? 00:00:03 [kedac]
root 1144 2 0 Aug23 ? 00:00:00 [kmpathd/0]
root 1171 2 0 Aug23 ? 00:00:00 [kjournald]
root 1368 1 0 Aug23 ? 00:00:00 auditd
root 1370 1368 0 Aug23 ? 00:00:00 /sbin/audispd
root 1392 1 0 Aug23 ? 00:00:00 syslogd -m 0
root 1395 1 0 Aug23 ? 00:00:00 klogd -x
rpc 1428 1 0 Aug23 ? 00:00:00 rpcbind
rpcuser 1457 1 0 Aug23 ? 00:00:00 rpc.statd
root 1496 1 0 Aug23 ? 00:00:00 rpc.idmapd
dbus 1515 1 0 Aug23 ? 00:00:00 dbus-daemon --system
root 1526 1 0 Aug23 ? 00:00:00 /usr/sbin/hcid
root 1532 1 0 Aug23 ? 00:00:00 /usr/sbin/sdpd
root 1549 2 0 Aug23 ? 00:00:00 [krfcommd]
root 1583 1 0 Aug23 ? 00:00:00 /usr/bin/hidd --server
root 1642 1 0 Aug23 ? 00:00:08 automount
root 1663 1 0 Aug23 ? 00:00:00 cupsd
root 1677 1 0 Aug23 ? 00:00:00 /usr/sbin/sshd
root 1689 1 0 Aug23 ? 00:00:00 xinetd -stayalive -
pidfile /var/run/xinetd.pid
root 1717 1 0 Aug23 ? 00:00:00 /usr/sbin/vsftpd /etc/
vsftpd/vsftpd.conf
root 1737 1 0 Aug23 ? 00:00:06 sendmail: accepting
connections
smmsp 1745 1 0 Aug23 ? 00:00:00 sendmail: Queue
runner@01:00:00 for /var/spool/clientmqueue
root 1758 1 0 Aug23 ? 00:00:05 /usr/sbin/httpd
root 1777 1 0 Aug23 ? 00:00:00 nasd -b -local
root 1788 1 0 Aug23 ? 00:00:00 console-kit-daemon
root 1860 1 0 Aug23 ? 00:00:00 crond
xfs 1929 1 0 Aug23 ? 00:00:03 xfs -droppriv -daemon
root 1960 1 0 Aug23 ? 00:00:00 /usr/sbin/atd
root 1982 1 0 Aug23 ? 00:00:07 /sbin/dhcdbd --system
root 1993 1 0 Aug23 ? 00:00:09 /usr/bin/python /usr/
sbin/yum-updatesd
avahi 2005 1 0 Aug23 ? 00:00:00 avahi-daemon: running
[castlerock.local]
avahi 2006 2005 0 Aug23 ? 00:00:00 avahi-daemon: chroot
helper
68 2017 1 0 Aug23 ? 00:00:01 hald
root 2018 2017 0 Aug23 ? 00:00:00 hald-runner
68 2029 2018 0 Aug23 ? 00:00:00 hald-addon-keyboard:
listening on /dev/input/event1
68 2030 2018 0 Aug23 ? 00:00:00 hald-addon-keyboard:
listening on /dev/input/event3
68 2031 2018 0 Aug23 ? 00:00:00 hald-addon-keyboard:
listening on /dev/input/event4
68 2042 2018 0 Aug23 ? 00:00:00 hald-addon-acpi:
listening on acpi kernel interface /proc/acpi/event
root 2077 2018 0 Aug23 ? 00:00:13 hald-addon-storage:
polling /dev/scd0 (every 16 sec)
root 2089 1 0 Aug23 ? 00:00:00 NetworkManager --pid-
file=/var/run/NetworkManager/NetworkManager.pid
root 2163 1 0 Aug23 ? 00:00:00
/usr/sbin/smartd -q never
root 2168 1 0 Aug23 tty1 00:00:00
/sbin/mingetty tty1
root 2169 1 0 Aug23 tty2 00:00:00
/sbin/mingetty tty2
root 2170 1 0 Aug23 tty3 00:00:00
/sbin/mingetty tty3
root 2171 1 0 Aug23 tty4 00:00:00
/sbin/mingetty tty4
root 2172 1 0 Aug23 tty5 00:00:00
/sbin/mingetty tty5
root 2173 1 0 Aug23 tty6 00:00:00
/sbin/mingetty tty6
root 2174 1 0 Aug23 ? 00:00:00
/usr/sbin/gdm-binary -nodaemon
root 2261 2174 0 Aug23 ? 00:00:00
/usr/sbin/gdm-binary -nodaemon
root 2549 1 0 Aug23 ? 00:01:04
/usr/bin/artsd -F 10 -S 4096 -s 60 -m artsmessage -l 3
-f
root 2739 1 0 Aug23 ? 00:00:00
/sbin/dhclient -1 -q -cf /etc/dhclient-eth0.conf -lf
/var/lib/dhclient/dhclient-eth0.leases -pf
/var/run/dhcl
root 2948 1 0 Aug23 ? 00:00:00
/usr/libexec/bonobo-activation-server --ac-activate
--ior-output-fd=16
root 3226 1 0 Aug23 ? 00:00:02 ypbind
root 3267 2261 0 Aug23 tty7 00:00:47
/usr/bin/Xorg :0 -br -audit 0 -auth /var/gdm/:0.Xauth
-nolisten tcp vt7
root 3311 2 0 Aug23 ? 00:00:00
[rpciod/0]
root 3312 2 0 Aug23 ? 00:00:00
[lockd]
dkushner 3314 2261 0 Aug23 ? 00:00:00
-/bin/csh -c /usr/bin/ssh-agent /usr/bin/dbus-launch
--exit-with-session /etc/X11/xinit/Xclients
dkushner 3400 3314 0 Aug23 ? 00:00:00
/usr/bin/gnome-session
dkushner 3401 3400 0 Aug23 ? 00:00:00
/usr/bin/ssh-agent /usr/bin/dbus-launch
--exit-with-session /etc/X11/xinit/Xclients
dkushner 3404 1 0 Aug23 ? 00:00:00
/usr/bin/dbus-launch --exit-with-session
/etc/X11/xinit/Xclients
dkushner 3405 1 0 Aug23 ? 00:00:00
/bin/dbus-daemon --fork --print-pid 4 --print-address
6 --session
dkushner 3411 1 0 Aug23 ? 00:00:04
/usr/libexec/gconfd-2 11
dkushner 3414 1 0 Aug23 ? 00:00:00
/usr/bin/gnome-keyring-daemon
dkushner 3416 1 0 Aug23 ? 00:00:01
/usr/libexec/gnome-settings-daemon
dkushner 3418 3400 0 Aug23 ? 00:00:00
metacity --sm-client-id=default1
dkushner 3420 3400 0 Aug23 ? 00:00:00
gnome-panel --sm-client-id default2
dkushner 3422 3400 0 Aug23 ? 00:00:01
nautilus --no-default-window --sm-client-id default3
dkushner 3429 1 0 Aug23 ? 00:00:00
/usr/libexec/bonobo-activation-server --ac-activate
--ior-output-fd=16
dkushner 3430 1 0 Aug23 ? 00:00:00
gnome-volume-manager --sm-client-id default4
dkushner 3433 1 0 Aug23 ? 00:00:00
/usr/libexec/gnome-vfs-daemon
dkushner 3437 1 0 Aug23 ? 00:02:01
/usr/libexec/gam_server
dkushner 3438 3400 0 Aug23 ? 00:00:00
bluetooth-applet
dkushner 3444 3400 0 Aug23 ? 00:02:11
nm-applet --sm-disable
dkushner 3445 3400 0 Aug23 ? 00:00:00
/usr/bin/python -tt /usr/bin/puplet
dkushner 3447 3400 0 Aug23 ? 00:00:00 python
/usr/share/system-config-printer/applet.py
dkushner 3448 3400 0 Aug23 ? 00:00:01
pam-panel-icon --sm-client-id default0
dkushner 3450 1 0 Aug23 ? 00:00:02
gnome-power-manager
root 3451 3448 0 Aug23 ? 00:00:16
/sbin/pam_timestamp_check -d root
dkushner 3463 1 0 Aug23 ? 00:00:00
/usr/libexec/wnck-applet
--oaf-activate-iid=OAFIID:GNOME_Wncklet_Factory
--oaf-ior-fd=19
dkushner 3467 1 0 Aug23 ? 00:03:32
/usr/bin/python -E /usr/bin/sealert -s
dkushner 3469 1 0 Aug23 ? 00:00:01
/usr/libexec/mapping-daemon
dkushner 3473 1 0 Aug23 ? 00:00:01
/usr/libexec/fast-user-switch-applet
--oaf-activate- iid=OAFIID:GNOME_FastUserSwitchApplet_Fa
ctory
--oaf-ior-f
dkushner 3476 1 0 Aug23 ? 00:00:00
/usr/libexec/notification-area-applet
--oaf-activate- iid=OAFIID:GNOME_NotificationAreaApplet_
Factory
--oaf-io
dkushner 3481 1 0 Aug23 ? 00:00:18
Terminal
dkushner 3482 3481 0 Aug23 ? 00:00:00
gnome-pty-helper
dkushner 3483 3481 0 Aug23 pts/0 00:00:00 -sh
root 3496 3483 0 Aug23 pts/0 00:00:00 su
root
root 3499 3496 0 Aug23 pts/0 00:00:00 bash
dkushner 3520 1 0 Aug23 ? 00:00:01
gnome-screensaver
dkushner 3559 1 0 Aug23 ? 00:17:51 Xvnc
:1 -desktop castlerock:1 (dkushner) -httpd
/usr/share/vnc/classes -auth
/home/dkushner/.Xauthority -geom
dkushner 3561 1 0 Aug23 ? 00:00:00
/usr/bin/gnome-session
dkushner 3624 3561 0 Aug23 ? 00:00:00
/usr/bin/ssh-agent /usr/bin/dbus-launch
--exit-with-session /etc/X11/xinit/Xclients
dkushner 3627 1 0 Aug23 ? 00:00:00
/usr/bin/dbus-launch --exit-with-session
/etc/X11/xinit/Xclients
dkushner 3628 1 0 Aug23 ? 00:00:00
/bin/dbus-daemon --fork --print-pid 4 --print-address
6 --session
dkushner 3635 1 0 Aug23 ? 00:00:00
/usr/bin/gnome-keyring-daemon
dkushner 3637 1 0 Aug23 ? 00:00:04
/usr/libexec/gnome-settings-daemon
dkushner 3638 3561 0 Aug23 ? 00:00:37
metacity --sm-client-id=default1
dkushner 3641 3561 0 Aug23 ? 00:00:02
gnome-panel --sm-client-id default2
dkushner 3642 3561 0 Aug23 ? 00:00:04
nautilus --no-default-window --sm-client-id default3
dkushner 3649 1 0 Aug23 ? 00:00:00
gnome-volume-manager --sm-client-id default4
dkushner 3652 1 0 Aug23 ? 00:00:00
/usr/libexec/gnome-vfs-daemon
dkushner 3653 3561 0 Aug23 ? 00:00:00
bluetooth-applet
dkushner 3658 3561 0 Aug23 ? 00:01:58
nm-applet --sm-disable
dkushner 3659 3561 0 Aug23 ? 00:00:00
/usr/bin/python -tt /usr/bin/puplet
dkushner 3663 3561 0 Aug23 ? 00:00:00 python
/usr/share/system-config-printer/applet.py
dkushner 3665 3561 0 Aug23 ? 00:00:01
pam-panel-icon --sm-client-id default0
dkushner 3667 1 0 Aug23 ? 00:00:01
gnome-power-manager
root 3668 3665 0 Aug23 ? 00:00:16
/sbin/pam_timestamp_check -d root
dkushner 3673 1 0 Aug23 ? 00:03:34
/usr/bin/python -E /usr/bin/sealert -s
dkushner 3686 1 0 Aug23 ? 00:00:47
gnome-screensaver
dkushner 3692 1 0 Aug23 ? 00:00:43
Terminal
dkushner 3693 3692 0 Aug23 ? 00:00:00
gnome-pty-helper
dkushner 3731 3692 0 Aug23 pts/3 00:00:00 -sh
dkushner 3746 1 0 Aug23 pts/3 00:00:00
/bin/sh /opt/Komodo-Edit-4.1/lib/mozilla/komodo
dkushner 3758 3746 0 Aug23 pts/3 00:00:00
/bin/sh
/opt/Komodo-Edit-4.1/lib/mozilla/run-mozilla.sh
/opt/Komodo-Edit-4.1/lib/mozilla/komodo-bin
dkushner 3763 3758 0 Aug23 pts/3 00:45:53
/opt/Komodo-Edit-4.1/lib/mozilla/komodo-bin
dkushner 3973 3763 0 Aug23 pts/3 00:00:00
[netstat] <defunct>
dkushner 3976 1 0 Aug23 ? 00:00:37
gnome-terminal
dkushner 3980 3976 0 Aug23 ? 00:00:00
gnome-pty-helper
dkushner 3981 3976 0 Aug23 pts/4 00:00:00 -sh
dkushner 6902 3692 0 Aug24 pts/1 00:00:00 -sh
root 6950 3981 0 Aug24 pts/4 00:00:00 su
root
root 6954 6950 0 Aug24 pts/4 00:00:00 bash
root 7429 6902 0 Aug24 pts/1 00:00:00 su
root
root 7432 7429 0 Aug24 pts/1 00:00:00 bash
dkushner 7465 3976 0 Aug24 pts/2 00:00:00 -sh
dkushner 7654 3692 0 Aug24 pts/6 00:00:00 -sh
dkushner 7769 3976 0 Aug24 pts/7 00:00:00 -sh
dkushner 7923 3692 0 Aug24 pts/8 00:00:00 -sh
dkushner 7970 3976 0 Aug24 pts/10 00:00:00 -sh
dkushner 8068 3976 0 Aug24 pts/9 00:00:00 -sh
ntp 8088 1 0 06:14 ? 00:00:00 ntpd
-u ntp:ntp -p /var/run/ntpd.pid -g
dkushner 8090 3976 0 Aug24 pts/11 00:00:00 -sh
root 8150 8090 0 Aug24 pts/11 00:00:00 su
root
root 8153 8150 0 Aug24 pts/11 00:00:00 bash
root 8184 8068 0 Aug24 pts/9 00:00:00 su
root
root 8188 8184 0 Aug24 pts/9 00:00:00 bash
root 8252 8188 0 Aug24 pts/9 00:00:00 su
dkushner
dkushner 8253 8252 0 Aug24 pts/9 00:00:00 -sh
root 8274 8253 0 Aug24 pts/9 00:00:00 su
root
root 8277 8274 0 Aug24 pts/9 00:00:00 bash
root 8554 7654 0 10:11 pts/6 00:00:00 su
root
root 8557 8554 0 10:11 pts/6 00:00:00 bash
root 8612 8277 0 Aug24 pts/9 00:00:40
/opt/ajuba/TclPro1.4/linux-ix86/bin/prowish83.bin
root 8997 12999 0 13:59 pts/10 00:00:00 strace
../wish LDP-SimTool.wish
root 8998 8997 1 13:59 pts/10 00:00:00 /opt/ajuba/TclPro1.4/
linux-ix86/bin/prowish83.bin LDP-SimTool.wish
dkushner 9004 7769 0 13:59 pts/7 00:00:00 ps -ef
root 12996 7970 0 Aug26 pts/10 00:00:00 su root
root 12999 12996 0 Aug26 pts/10 00:00:00 bash
dkushner 13019 3976 0 Aug26 pts/12 00:00:00 -sh
apache 13925 1758 0 Aug26 ? 00:00:00
/usr/sbin/httpd
apache 13926 1758 0 Aug26 ? 00:00:00
/usr/sbin/httpd
apache 13927 1758 0 Aug26 ? 00:00:00
/usr/sbin/httpd
apache 13928 1758 0 Aug26 ? 00:00:00
/usr/sbin/httpd
apache 13929 1758 0 Aug26 ? 00:00:00
/usr/sbin/httpd
apache 13930 1758 0 Aug26 ? 00:00:00
/usr/sbin/httpd
apache 13931 1758 0 Aug26 ? 00:00:00
/usr/sbin/httpd
apache 13932 1758 0 Aug26 ? 00:00:00
/usr/sbin/httpd
[dkushner@castlerock bin]$
| |
| dkushner99@yahoo.com 2007-08-27, 8:35 pm |
| On Aug 26, 2:46 am, Uwe Klein <uwe_klein_habertw...@t-online.de>
wrote:
> dkushne...@yahoo.com wrote:
>
>
>
>
> I would be surprised if your Fedora came without gcc/make/.. installed.
> You may need to install the tcl[-_]devel rpm for your system first
> though.
>
> unpack (gunzip/tar -xvf ...)
> cd tcludp-<versio>
> ./configure --prefix /usr
> ( not sure could be /usr/local/
> if your tclsh is in /usr/bin "/usr" is OK
> )
> make
> make install
>
> done.
>
> uwe- Hide quoted text -
>
> - Show quoted text -
Uwe,
I just installed gcc on my Linux, ! The files that the developer
(of tcludp) gave me are set up to compile for windows. It doesn't look
like it's set up for Linux as an option at all. He gave me the
compiled .dll (for win) and the lib for Unix but not the .so for Linux
so I need to compile it to get that.
I have the last udptcl package that was the last release (1.0.8), this
has all of the files and the makefile is set up for Linux too. The
notes in the new patch that the developer gave me says that the source
is compatible with 1.0.8 and later so I think I can use all the old
files (makefile) to compile the new lib for Linux. I've never done
this before so I'm not really sure what to do if I have problems. The
configure.in file specifies some TEA files that I need:
The README has instructions for compilation:
3. How to build and test
----------------------------------------------------------------------
This extension is to add UDP support for Tcl.
This extension is for Tcl8.0 or later.
Before compiling, please modify the Makefile for proper Tcl path.
..........................................
To compile under Linux,
make -f makefile.linux
libudp.so will be in the ../linux directory
............................................
## Makefile.vc included w/path)
########################################
################################
The Makefile.vc (included w/the patch) is not set up for Linux at all:
include ..\..\makefile.vc.include
SRC_DIR = .
WIN_DIR = ..\win
OBJ_DIR = ..\obj
CP = copy
RM = del
INCLUDES = -I$(TOOLS32)\include -I$(WIN_DIR) -I$(TCL_GENERIC_DIR) -I$
(TK_GENERIC_DIR) -I$(MFC_DIR)\include
#DEFINES = -nologo -D_$(TCLVERSION) -DWIN32 -DDEBUG
#use -DDEBUG to enable debug output. The debug output will be sent to
udp.dbg file
DEFINES = -nologo -D_$(TCLVERSION) -DWIN32
OBJS = $(OBJ_DIR)\udp_tcl.obj
UDPDLL = udp.dll
UDPLIB = udp_s.lib
all: $(UDPDLL) $(UDPLIB)
$(UDPDLL): $(OBJ_DIR) $(OBJS) $(WIN_DIR)
@set LIB=$(TOOLS32)\lib
cl $(OBJS) /LD -o $(WIN_DIR)\$(UDPDLL) /link Wsock32.lib winmm.lib
user32.lib $(MFC_DIR)\lib\nafxcw.lib $(TCL_LIB)
$(UDPLIB): $(OBJ_DIR) $(OBJS) $(WIN_DIR)
@set LIB=$(TOOLS32)\lib
lib /OUT:$(WIN_DIR)\$(UDPLIB) $(OBJS)
$(OBJ_DIR):
-@if not exist $(OBJ_DIR)\nul mkdir $(OBJ_DIR)
$(WIN_DIR):
-@if not exist $(WIN_DIR)\nul mkdir $(WIN_DIR)
$(OBJ_DIR)\udp_tcl.obj : $(SRC_DIR)\udp_tcl.c
$(cc32) $(cdebug) -c $(cvarsdll) $(INCLUDES) \
$(DEFINES) /Fo$(OBJ_DIR)\udp_tcl.obj $(SRC_DIR)\udp_tcl.c
clean:
-@if exist $(OBJ_DIR)\*.obj $(RM) $(OBJ_DIR)\*.obj
-@if exist $(WIN_DIR)\$(UDPDLL) $(RM) $(WIN_DIR)\$(UDPDLL)
-@if exist $(WIN_DIR)\udp.lib $(RM) $(WIN_DIR)\*.lib
-@if exist $(WIN_DIR)\udp.exp $(RM) $(WIN_DIR)\udp.exp
-@if exist pkgIndex.tcl $(RM) pkgIndex.tcl
## makefile.vc.include (from the patch)
########################################
################################
There is also a makefile.vc.include (this is for visual c for windows,
I'm using gcc). This is all probably pretty painless for the
developers out there but I'm a TCL guy and a networking guy, not a C
programmer, though I do know a little C). I think I just need to
change the dirs to fit my system, and put this files text in the
single makefile (does that sound okay?):
# The directory holding sipc files (the current directory)
SIPCDIR = c:\wxt\irt\IIDS_Voip
#MFC definitions
MFC_DIR = c:\progra~1\micros~4\vc98\mfc
TOOLS32 = c:\progra~1\micros~4\vc98
PATH = $(TOOLS32)\bin;$(PATH)
cc32 = $(TOOLS32)\bin\cl
#Tcl/Tk definitions
TCL_ROOT_DIR = c:\wxt\tools\tcl8.4.11
TK_ROOT_DIR = c:\wxt\tools\tk8.4.11
TCL_INSTALL_DIR = c:\Progra~1\Tcl
TCL_GENERIC_DIR = $(TCL_ROOT_DIR)\generic
TK_GENERIC_DIR = $(TK_ROOT_DIR)\generic
TCL_WIN_DIR = $(TCL_ROOT_DIR)\win
TK_WIN_DIR = $(TK_ROOT_DIR)\win
TCL_LIB = $(TCL_ROOT_DIR)\win\Release\tcl84.lib
STATIC_TCL_LIB = $(TCL_ROOT_DIR)\win\Release\tcl84s.lib
TCL_STUB_LIB = $(TCL_ROOT_DIR)\win\Release\tclstub84.lib
TCL_DDE_LIB = $(TCL_ROOT_DIR)\win\Release\tcldde12s.lib
TCL_REG_LIB = $(TCL_ROOT_DIR)\win\Release\tclreg11s.lib
TK_LIB = $(TK_ROOT_DIR)\win\Release\tk84.lib
STATIC_TK_LIB = $(TK_ROOT_DIR)\win\Release\tk84s.lib
TK_STUB_LIB = $(TK_ROOT_DIR)\win\Release\tkstub84.lib
TK_RES = $(TK_ROOT_DIR)\win\Release\tk_ThreadedSt
atic
\wish.res
TK_XLIB_DIR = $(TK_ROOT_DIR)\xlib
TCLSH = $(TCL_ROOT_DIR)\win\Release\tclsh84s.exe
TCLVERSION = TCL84
#Other definitions
SSL_DIR = c:\wxt\tools\openssl-0.9.7a
ZLIB_DIR = c:\wxt\tools\zlib-1.1.4
Problems/Questions:
1) I think that I need to use the 1.0.8 makefile not the makefile.vc
(above) included with the patch - right?
2) The 1.0.8 makefile includes references to TEA, so I need to get the
TEA source as well - right?
3) Do I need TCL source files to compile this .so? Maybe just the
header files referred to in the makefile? - Please help.
## UDP Extension for Tcl 8.4)
########################################
################################
Here is the beginning of the source:
/
****************************************
**************************************
* UDP Extension for Tcl 8.4
*
* Copyright 1999-2000 by Columbia University; all rights reserved
*
* Written by Xiaotao Wu
* Last modified: 11/03/2000
****************************************
**************************************/
#include "udp_tcl.h"
#ifdef WIN32
#include <stdlib.h>
#include <tcl.h>
#include <winsock.h>
#include <stdio.h>
#else
#ifdef LINUX
#include <sys/ioctl.h>
#else
#include <sys/filio.h>
#endif
#endif
## UDP Extension for Tcl 8.4 (.h file)
########################################
######
#ifndef UDP_TCL_H
#define UDP_TCL_H
/*
*----------------------------------------------------------------------
* UDP Extension for Tcl 8.4
*
* Copyright 1999-2000 by Columbia University; all rights reserved
*
* Written by Xiaotao Wu
* Last modified: 11/03/2000
*----------------------------------------------------------------------
*/
#ifdef WIN32
#include <winsock.h>
#else
#include <unistd.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <netdb.h>
#endif
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include <sys/types.h>
#include "tcl.h"
I just need these header files (and put them somewhere gcc can find
them).
Any help/feedback would be appreciated.
Thanks,
- Daniel
| |
| Alexandre Ferrieux 2007-08-28, 7:16 pm |
| On Aug 27, 11:18 pm, dkushne...@yahoo.com wrote:
> On Aug 27, 10:25 am, Alexandre Ferrieux <alexandre.ferri...@gmail.com>
> wrote:
>
>
> I do not think there is one, at least I don't see anything when I do
> ps -ef, When I invoke the wish shell, I load the lib (.so). Here are
> the processes while my tool (bottom list of processes), TCL/TK and
> udptcl are all running. If you don't want me to trace the wish, then
> what do I trace?
What the hell are you talking about ?
You managed to get a strace output from the CEP Tcl package, didn't
you ?
Why would this be harder for the Tcl-UDP one ?
I must be missing something here...
Anyway, in case it helps: there are two ways of using strace:
- either from the beginning of a program, by letting strace start and
trace it:
strace wish myscript.tcl myargs...
(in case wish spawns children through [exec/open], add the -f
flag:
strace -f wish myscript.tcl myargs...
- or by attaching to an already running process (identified e.g. by
ps)
strace -p 12345
In both cases, use "-o somefile" to write directly to the given file
instead of scrolling by in your xterm.
In your case, since we are looking for different ways of configuring
the IP stack, which is done at startup, I'd like you to use the first
variant (strace from the beginning). Thanks for doing so with both CEP
and TclUDP, with as close address/port/whatever combinations as
possible, in order to avoid any unwanted divergence.
-Alex
| |
| dkushner99@yahoo.com 2007-08-28, 10:12 pm |
|
>
> Then please send me both traces to my gmail address.
>
> -Alex
>
Okay, I removed the one divergence, ran the tests again with strace (I
think I got it right) and named the traces as you requested.
Both sent to gmail.
- Daniel
|
|
|
|
|