LANIfc.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /****************************************************************
  2. ****************************************************************
  3. ** **
  4. ** (C)Copyright 2005-2006, American Megatrends Inc. **
  5. ** **
  6. ** All Rights Reserved. **
  7. ** **
  8. ** 6145-F, Northbelt Parkway, Norcross, **
  9. ** **
  10. ** Georgia - 30071, USA. Phone-(770)-246-8600. **
  11. ** **
  12. ****************************************************************
  13. ****************************************************************/
  14. /*****************************************************************
  15. *
  16. * LANIfc.h
  17. * LAN Interface Handler
  18. *
  19. * Author: Govind Kothandapani <govindk@ami.com>
  20. * : Bakka Ravinder Reddy <bakkar@ami.com>
  21. *
  22. *****************************************************************/
  23. #ifndef LANIFC_H
  24. #define LANIFC_H
  25. #include <stdio.h>
  26. #include <stdint.h>
  27. #include "com_BmcType.h"
  28. #include "com_Message.h"
  29. #include "com_IPMI_LANIfc.h"
  30. /*** External Definitions ***/
  31. #define GRATUITOUS_ARP_REQUEST 5
  32. #define PCI_RST_INTR 6
  33. #define LAN_SMB_ALERT 6
  34. #define INIT_SMB 7
  35. #define LAN_ICTS_MODE 8
  36. #define VLAN_SMB_REQUEST 9
  37. #define LOOP_BACK_LAN_SMB_REQUEST 10
  38. #define LAN_IFC_READY 11
  39. #define LAN_CONFIG_IPV4_HEADER 12
  40. #define LAN_RMCP_PORT_CHANGE 13
  41. #define LAN_IFC_UP 1
  42. #define LAN_IFC_DOWN 0
  43. #define FLAG_SET 1
  44. #define FLAG_UNSET 0
  45. #pragma pack(1)
  46. typedef struct
  47. {
  48. int Socket;
  49. uint8_t Valid;
  50. time_t Time;
  51. uint8_t IsLoopBackSocket;
  52. uint8_t IsFixedSocket;
  53. } SocketTbl_T;
  54. #pragma pack()
  55. void *LANIfcTask (void *param);
  56. /**
  57. * This variable is used to define if the packet
  58. * is from VLAN channel or not
  59. */
  60. //extern uint8_t g_IsPktFromVLAN;
  61. /**
  62. * @defgroup lanifc LAN Interface Module
  63. * LAN interface functions.
  64. * @{
  65. **/
  66. // extern BOOL ValidateUDPChkSum ( UDPPseudoHdr_T* pUDPPseudoHdr, UDPHdr_T* pUDPHdr);
  67. // extern BOOL ValidateIPChkSum ( IPHdr_T* pIPHdr);
  68. // extern uint16_t CalculateUDPChkSum ( UDPPseudoHdr_T* pUDPPseudoHdr, UDPHdr_T* pUDPHdr);
  69. // extern uint16_t CalculateIPChkSum ( IPHdr_T* pIPHdr);
  70. //extern int SendSOLPkt (uint8_t* pSOLPkt, uint16_t Len);
  71. /** @} */
  72. #endif /* LANIFC_H */