01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CX<br />

Number of data structures in array at [BX:SI]. Up to this number of device interfaces will be reported.<br />

Return Value<br />

Top of list<br />

Index page<br />

DX = 0, the user provided array at [BX:SI] contains the current device interface information<br />

AX = Number of entries reported in array at [BX:SI].<br />

Interrupt 0xAC service 0x90: ADD_IGMP_MEMBERSHIP, Install an IP multicast address entry<br />

Parameters<br />

AH<br />

ES:DI<br />

DS:SI<br />

Install an IP multicast address entry to become a member of an IP multicast group.<br />

0x90 (= ADD_IGMP_MEMBERSHIP)<br />

Pointer to multicast IP address of type unsigned long<br />

Pointer to a 6 byte array that contains the corresponded Ethernet address<br />

Return Value<br />

Comments<br />

DX = 0, AX = 0: Success<br />

DX = -1: AX contains error code, invalid class D address, or no free entry in IGMP table available<br />

IP Multicasting is the Internet abstraction of hardware multicasting. It allows transmission of IP datagrams to a<br />

group of hosts that form a single multicast group. Membership in a multicast group is dynamic. Hosts may<br />

join or leave the group at any time. Each multicast group has unique IP multicast address (Class D address).<br />

The first four bits of an IP multicast address must match to binary 1110. IP multicast addresses range from<br />

224.0.0.0 through 239.255.255.255.<br />

For the usage of IP multicasting on an Ethernet interface, IP multicast addresses must be mapped to Ethernet<br />

hardware addresses. The Ethernet device of the <strong>IPC<strong>@CHIP</strong></strong> will be switched into the Ethernet multicast<br />

mode. In this mode it receives any incoming IP packet with the mapped Ethernet multicast address and<br />

forwards it to the TCP/IP layer. Each IP multicast packet will be sent with the mapped Ethernet multicast<br />

address.<br />

Because of the feature, that a multicast IP packet will be received by any member of a multicast group, sending<br />

and receiving of IP multicast packets is only usable with UDP sockets (datagram sockets).<br />

After installing a IP multicast address with this API, the application programmer is able use this address as a<br />

destination address when sending datagrams. A UDP socket is able to receive datagrams at the specified<br />

multicast address.<br />

The maximum number of supported IP multicast addresses in the <strong>IPC<strong>@CHIP</strong></strong> is limited to 15. Before installing<br />

an IP multicast address, you can find out the corresponding Ethernet multicast address with Map IP multicast<br />

address to Ethernet address API.<br />

Using multicast addresses is only possible on the Ethernet interface.<br />

Page 147 / 400

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!