EVB-PIC24 WIZnet, EVB-PIC24 Datasheet - Page 54

no-image

EVB-PIC24

Manufacturer Part Number
EVB-PIC24
Description
Development Boards & Kits - PIC / DSPIC W3150A+EVAL BOARD BASED ON PIC24
Manufacturer
WIZnet
Datasheet

Specifications of EVB-PIC24

Rohs
yes
Product
Development Kits
Interface Type
RS-232
Data Bus Width
16 bit
Dimensions
50 mm x 40 mm
Fail to Send a Ping
Reply Packet
© Copyright 2006 WIZnet Co., Inc. All rights reserved.
Call setSn_PROTO(PingReplySocket,IPPROTO_ICMP)
Specify ICMP Protocol to the PingReplySocket
pingrequest.Type = 0
pingrequest.Code = 0
pingrequest.CheckSum = 0
Calculate the check sum of pingrequest
Send a Ping Reply to the specified peer
Assign the socket to PingReplySocket
Clear the ICMP Proctocol of IP RAW
SOCKET PingReplySocket;
u_int size = len;
<Fig 3.13: SendPingReply()>
Call getSocket(SOCK_CLOSED,S)
Declare & Initialize Local variables
N
Call close(PingReplySocket)
Close the PingReplySocket
Make a PingReply Packet
Create a IP RAW Socket
PingReplySocket != -1
Call setSn_PROTO(0)
Successed to Create?
PingReplySocket > s
Successed to Send?
Find a Free Socket
SendPingReply()
Call sendto()
Call socket()
size < 1452
RETURN
Y
Y
Y
&&
Y
N
N
N
size = 1452
Create Error
Fail to Send
44

Related parts for EVB-PIC24