PAM Programming Manual
Link-Level Interfaces
PAM Programming Manual—142482
3-16
Error Codes (Ethernet)
Foreign^Addr^Offset^B (INT .EXT)
Optional output used to indicate where the peer’s foreign address can be found. It is
in the form of an offset, in bytes, from the beginning of the aggregate SDU buffer.
User^Data^Offset^B (INT .EXT)
Optional output that returns the offset, in bytes, from the beginning of the inbound
aggregate SDU buffer to the location where the user data, if any, begins. If there is
no user data associated with the SDU, a value of zero is returned.
User^Data^Size^B (INT .EXT)
Optional output that returns the size, in bytes, of the user data associated with the
SDU, if any. If there is no user data, a value of zero is returned.
Service^Class (INT .EXT)
Conditional output that allows users of LLC1 port types to see the priority field in
the IEEE 802.4 MAC PDU header. This parameter is optional for LLC1 type ports.
If IEEE 802.3 is used, the value returned in this field is always zero. This parameter
is ignored for Ethernet type ports.
The syntax for C programs is
Error Codes (Ethernet)
All of the primitives described previously are return an integer that indicates either a
successful completion or a reason for failure. The possible completion codes are
ZL2S^Err^Frmt^Ok
Operation was successful.
ZL2S^Err^Frmt^Inv^Params
One or more of the parameter values passed to the primitive were not in the valid
set. Correct the invalid parameter value(s) and repeat the primitive.
short ZL2S_GET_SDU_
( char *Ag_SDU_Buff
,short L2_Type
,short *L2S_SDU_Type
,short *P_F_Flag
,short *Resp_Flag
,short *Foreign_Adr_Offset_B
,short *SDU_User_Data_Offset_B
,short *SDU_User_Data_Size_B
,short *Service_Class)