Guest User

Untitled

a guest
Dec 13th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. /*comparing received RAT Type from ip packet with numeric value */
  2. if(pDefBearer.data.recv.ratType == 1)
  3. {
  4. avp.my_ccr.rattype = GERAN; /* setting RAT as GERAN(enumerated value) i.e 2G */
  5. /* further processing of packet */
  6. }
  7. else
  8. {
  9. avp.my_ccr.rattype = UTRAN;
  10. }
  11.  
  12. if(pDefBearer.data.recv.ratType == DB_RAT_GERAN) /* DB_RAT_GERAN is a macro defined somewhere in header file */
  13. {
  14. avp.my_ccr.rattype = GERAN; /* setting RAT as GERAN i.e 2G */
  15. /* further processing of packet */
  16. }
  17. else
  18. {
  19. avp.my_ccr.rattype = UTRAN;
  20. }
  21.  
  22. if(pDefBearer.data.recv.ratType = 1) { /* always set RAT as 2G */ }
  23.  
  24. if(DB_RAT_GERAN == pDefaultBearer.data.recv.ratType)
  25.  
  26. if(pDefaultBearer.data.recv.ratType == DB_RAT_GERAN)
  27.  
  28. if(DB_RAT_GERAN = pDefaultBearer.data.recv.ratType){ }
  29.  
  30. if(pDefaultBearer.data.recv.ratType = DB_RAT_GERAN) { }
Add Comment
Please, Sign In to add comment