WAP protocol

"CHARBONNIER Christophe" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi,

1) I'd like to change the listening ports of my GateWay Connection-less
and Connection-oriented services.
I found these ports hard-coded in the "bb_udp.c" add_service calls.
I just tried to change these (and in the wapbox.c #define too), but the
GateWay doesn't seem to understand the messages:

2002-12-09 14:57:41 [0] WARNING: WTP PDU with unknown type -1
2002-12-09 14:57:41 [0] ERROR: pdu unpacking returned NULL
2002-12-09 14:57:41 [5] DEBUG: an erronous pdu received
2002-12-09 14:57:41 [5] DEBUG: Dumping WAPEvent 0x80d4dc0
2002-12-09 14:57:41 [5] DEBUG:   type = RcvErrorPDU
2002-12-09 14:57:41 [5] DEBUG:   tid = 16413
2002-12-09 14:57:41 [5] DEBUG: WAPAddrTuple 0x80d4e10 =
<10.10.10.221:1165> - <0.0.0.0:9300>
2002-12-09 14:57:41 [5] DEBUG: WAPEvent dump ends.
2002-12-09 14:57:41 [5] DEBUG: WTP: Created WTPRespMachine 0x80d4b30 (0)
2002-12-09 14:57:41 [5] DEBUG: WTP: resp_machine 0, state LISTEN, event
RcvErrorPDU.
2002-12-09 14:57:41 [5] DEBUG: WTP 0: New state LISTEN
2002-12-09 14:57:41 [5] DEBUG: WTP: Destroying WTPRespMachine 0x80d4b30
(0)
2002-12-09 14:58:02 [0] WARNING: WTP PDU with unknown type -1
2002-12-09 14:58:02 [0] ERROR: pdu unpacking returned NULL
2002-12-09 14:58:02 [5] DEBUG: an erronous pdu received
2002-12-09 14:58:02 [5] DEBUG: Dumping WAPEvent 0x80d4e50
2002-12-09 14:58:02 [5] DEBUG:   type = RcvErrorPDU
2002-12-09 14:58:02 [5] DEBUG:   tid = 16413
2002-12-09 14:58:02 [5] DEBUG: WAPAddrTuple 0x80d4ea0 =
<10.10.10.221:1165> - <0.0.0.0:9300>
2002-12-09 14:58:02 [5] DEBUG: WAPEvent dump ends.
2002-12-09 14:58:02 [5] DEBUG: WTP: Created WTPRespMachine 0x80d4b30 (1)
2002-12-09 14:58:02 [5] DEBUG: WTP: resp_machine 1, state LISTEN, event
RcvErrorPDU.
2002-12-09 14:58:02 [5] DEBUG: WTP 1: New state LISTEN
2002-12-09 14:58:02 [5] DEBUG: WTP: Destroying WTPRespMachine 0x80d4b30
(1)

What's the trick ?? And why do these parameters are not configurable in
the wapkannel.conf file ???



2) When I catch a UDP/WDP packet, how do I know it's a WSP or WTP
datagram ??
Since the WDP pay-load begins directly with the WSP or WTP TID, and this
TID is sequential, I have no way to know whether this packet is for my
WAP stack or not because I have no protocol specific stuff to analyse...
Maybe, I'm confused with some basis of the protocol.. Could someone tell
me about that...

Christophe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.