Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_net_messages.h
Go to the documentation of this file.
1 /*
2  * ====================== WARNING ======================
3  *
4  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
5  * DO NOT MODIFY IN ANY WAY.
6  *
7  * ====================== WARNING ======================
8  */
9 
10 
11 #ifndef TAF_NET_MESSAGES_H_INCLUDE_GUARD
12 #define TAF_NET_MESSAGES_H_INCLUDE_GUARD
13 
14 
15 #include "taf_net_common.h"
16 
17 #define _MAX_MSG_SIZE IFGEN_TAF_NET_MSG_SIZE
18 
19 // Define the message type for communicating between client and server
20 typedef struct __attribute__((packed))
21 {
22  uint32_t id;
23  uint8_t buffer[_MAX_MSG_SIZE];
24 }
26 
27 #define _MSGID_taf_net_AddRouteChangeHandler 0
28 #define _MSGID_taf_net_RemoveRouteChangeHandler 1
29 #define _MSGID_taf_net_AddGatewayChangeHandler 2
30 #define _MSGID_taf_net_RemoveGatewayChangeHandler 3
31 #define _MSGID_taf_net_AddDNSChangeHandler 4
32 #define _MSGID_taf_net_RemoveDNSChangeHandler 5
33 #define _MSGID_taf_net_AddDestNatChangeHandler 6
34 #define _MSGID_taf_net_RemoveDestNatChangeHandler 7
35 #define _MSGID_taf_net_GetInterfaceList 8
36 #define _MSGID_taf_net_ChangeRoute 9
37 #define _MSGID_taf_net_BackupDefaultGW 10
38 #define _MSGID_taf_net_RestoreDefaultGW 11
39 #define _MSGID_taf_net_SetDefaultGW 12
40 #define _MSGID_taf_net_GetInterfaceGW 13
41 #define _MSGID_taf_net_SetDNS 14
42 #define _MSGID_taf_net_GetInterfaceDNS 15
43 #define _MSGID_taf_net_AddDestNatEntryOnDefaultPdn 16
44 #define _MSGID_taf_net_RemoveDestNatEntryOnDefaultPdn 17
45 #define _MSGID_taf_net_AddDestNatEntryOnDemandPdn 18
46 #define _MSGID_taf_net_RemoveDestNatEntryOnDemandPdn 19
47 #define _MSGID_taf_net_GetDestNatEntryListOnDefaultPdn 20
48 #define _MSGID_taf_net_GetDestNatEntryListOnDemandPdn 21
49 #define _MSGID_taf_net_GetFirstDestNatEntry 22
50 #define _MSGID_taf_net_GetNextDestNatEntry 23
51 #define _MSGID_taf_net_GetDestNatEntryDetails 24
52 #define _MSGID_taf_net_DeleteDestNatEntryList 25
53 #define _MSGID_taf_net_CreateVlan 26
54 #define _MSGID_taf_net_SetVlanPriority 27
55 #define _MSGID_taf_net_RemoveVlan 28
56 #define _MSGID_taf_net_GetVlanById 29
57 #define _MSGID_taf_net_AddVlanInterface 30
58 #define _MSGID_taf_net_RemoveVlanInterface 31
59 #define _MSGID_taf_net_GetVlanInterfaceList 32
60 #define _MSGID_taf_net_GetFirstVlanInterface 33
61 #define _MSGID_taf_net_GetNextVlanInterface 34
62 #define _MSGID_taf_net_DeleteVlanInterfaceList 35
63 #define _MSGID_taf_net_GetVlanInterfaceType 36
64 #define _MSGID_taf_net_GetVlanPriority 37
65 #define _MSGID_taf_net_GetVlanEntryList 38
66 #define _MSGID_taf_net_GetFirstVlanEntry 39
67 #define _MSGID_taf_net_GetNextVlanEntry 40
68 #define _MSGID_taf_net_DeleteVlanEntryList 41
69 #define _MSGID_taf_net_GetVlanId 42
70 #define _MSGID_taf_net_IsVlanAccelerated 43
71 #define _MSGID_taf_net_GetVlanBoundProfileId 44
72 #define _MSGID_taf_net_GetVlanBoundPhoneId 45
73 #define _MSGID_taf_net_BindVlanWithProfile 46
74 #define _MSGID_taf_net_BindVlanWithProfileEx 47
75 #define _MSGID_taf_net_UnbindVlanFromProfile 48
76 #define _MSGID_taf_net_EnableL2tp 49
77 #define _MSGID_taf_net_EnableL2tpAsync 50
78 #define _MSGID_taf_net_DisableL2tp 51
79 #define _MSGID_taf_net_DisableL2tpAsync 52
80 #define _MSGID_taf_net_IsL2tpEnabled 53
81 #define _MSGID_taf_net_IsL2tpMssEnabled 54
82 #define _MSGID_taf_net_IsL2tpMtuEnabled 55
83 #define _MSGID_taf_net_GetL2tpMtuSize 56
84 #define _MSGID_taf_net_CreateTunnel 57
85 #define _MSGID_taf_net_RemoveTunnel 58
86 #define _MSGID_taf_net_SetTunnelUdpPort 59
87 #define _MSGID_taf_net_AddSession 60
88 #define _MSGID_taf_net_RemoveSession 61
89 #define _MSGID_taf_net_StartTunnel 62
90 #define _MSGID_taf_net_StartTunnelAsync 63
91 #define _MSGID_taf_net_StopTunnel 64
92 #define _MSGID_taf_net_StopTunnelAsync 65
93 #define _MSGID_taf_net_GetTunnelRefById 66
94 #define _MSGID_taf_net_GetTunnelEntryList 67
95 #define _MSGID_taf_net_GetFirstTunnelEntry 68
96 #define _MSGID_taf_net_GetNextTunnelEntry 69
97 #define _MSGID_taf_net_DeleteTunnelEntryList 70
98 #define _MSGID_taf_net_GetTunnelEncapProto 71
99 #define _MSGID_taf_net_GetTunnelLocalId 72
100 #define _MSGID_taf_net_GetTunnelPeerId 73
101 #define _MSGID_taf_net_GetTunnelLocalUdpPort 74
102 #define _MSGID_taf_net_GetTunnelPeerUdpPort 75
103 #define _MSGID_taf_net_GetTunnelPeerIpv6Addr 76
104 #define _MSGID_taf_net_GetTunnelPeerIpv4Addr 77
105 #define _MSGID_taf_net_GetTunnelInterfaceName 78
106 #define _MSGID_taf_net_GetTunnelIpType 79
107 #define _MSGID_taf_net_GetSessionConfig 80
108 #define _MSGID_taf_net_EnableSocks 81
109 #define _MSGID_taf_net_EnableSocksAsync 82
110 #define _MSGID_taf_net_DisableSocks 83
111 #define _MSGID_taf_net_DisableSocksAsync 84
112 #define _MSGID_taf_net_SetSocksAuthMethod 85
113 #define _MSGID_taf_net_GetSocksAuthMethod 86
114 #define _MSGID_taf_net_SetSocksLanInterface 87
115 #define _MSGID_taf_net_GetSocksLanInterface 88
116 #define _MSGID_taf_net_AddSocksAssociation 89
117 #define _MSGID_taf_net_RemoveSocksAssociation 90
118 #define _MSGID_taf_net_AddGsb 91
119 #define _MSGID_taf_net_RemoveGsb 92
120 #define _MSGID_taf_net_EnableGsb 93
121 #define _MSGID_taf_net_DisableGsb 94
122 #define _MSGID_taf_net_GetGsbList 95
123 #define _MSGID_taf_net_GetFirstGsb 96
124 #define _MSGID_taf_net_GetNextGsb 97
125 #define _MSGID_taf_net_DeleteGsbList 98
126 #define _MSGID_taf_net_GetGsbInterfaceName 99
127 #define _MSGID_taf_net_GetGsbInterfaceType 100
128 #define _MSGID_taf_net_GetGsbBandWidth 101
129 
130 
131 // Define type-safe pack/unpack functions for all enums, including included types
132 
133 static inline bool taf_net_PackIpProto
134 (
135  uint8_t **bufferPtr,
136  taf_net_IpProto_t value
137 )
138 {
139  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
140 }
141 
142 static inline bool taf_net_UnpackIpProto
143 (
144  uint8_t **bufferPtr,
145  taf_net_IpProto_t* valuePtr
146 )
147 {
148  bool result;
149  uint32_t value = 0;
150  result = le_pack_UnpackUint32(bufferPtr, &value);
151  if (result)
152  {
153  *valuePtr = (taf_net_IpProto_t)value;
154  }
155  return result;
156 }
157 
158 static inline bool taf_net_PackNetAction
159 (
160  uint8_t **bufferPtr,
161  taf_net_NetAction_t value
162 )
163 {
164  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
165 }
166 
167 static inline bool taf_net_UnpackNetAction
168 (
169  uint8_t **bufferPtr,
170  taf_net_NetAction_t* valuePtr
171 )
172 {
173  bool result;
174  uint32_t value = 0;
175  result = le_pack_UnpackUint32(bufferPtr, &value);
176  if (result)
177  {
178  *valuePtr = (taf_net_NetAction_t)value;
179  }
180  return result;
181 }
182 
183 static inline bool taf_net_PackNetIpType
184 (
185  uint8_t **bufferPtr,
186  taf_net_NetIpType_t value
187 )
188 {
189  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
190 }
191 
192 static inline bool taf_net_UnpackNetIpType
193 (
194  uint8_t **bufferPtr,
195  taf_net_NetIpType_t* valuePtr
196 )
197 {
198  bool result;
199  uint32_t value = 0;
200  result = le_pack_UnpackUint32(bufferPtr, &value);
201  if (result)
202  {
203  *valuePtr = (taf_net_NetIpType_t)value;
204  }
205  return result;
206 }
207 
208 static inline bool taf_net_PackTechType
209 (
210  uint8_t **bufferPtr,
211  taf_net_TechType_t value
212 )
213 {
214  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
215 }
216 
217 static inline bool taf_net_UnpackTechType
218 (
219  uint8_t **bufferPtr,
220  taf_net_TechType_t* valuePtr
221 )
222 {
223  bool result;
224  uint32_t value = 0;
225  result = le_pack_UnpackUint32(bufferPtr, &value);
226  if (result)
227  {
228  *valuePtr = (taf_net_TechType_t)value;
229  }
230  return result;
231 }
232 
233 static inline bool taf_net_PackState
234 (
235  uint8_t **bufferPtr,
236  taf_net_State_t value
237 )
238 {
239  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
240 }
241 
242 static inline bool taf_net_UnpackState
243 (
244  uint8_t **bufferPtr,
245  taf_net_State_t* valuePtr
246 )
247 {
248  bool result;
249  uint32_t value = 0;
250  result = le_pack_UnpackUint32(bufferPtr, &value);
251  if (result)
252  {
253  *valuePtr = (taf_net_State_t)value;
254  }
255  return result;
256 }
257 
258 static inline bool taf_net_PackL2tpEncapProtocol
259 (
260  uint8_t **bufferPtr,
262 )
263 {
264  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
265 }
266 
267 static inline bool taf_net_UnpackL2tpEncapProtocol
268 (
269  uint8_t **bufferPtr,
271 )
272 {
273  bool result;
274  uint32_t value = 0;
275  result = le_pack_UnpackUint32(bufferPtr, &value);
276  if (result)
277  {
278  *valuePtr = (taf_net_L2tpEncapProtocol_t)value;
279  }
280  return result;
281 }
282 
283 static inline bool taf_net_PackIpFamilyType
284 (
285  uint8_t **bufferPtr,
287 )
288 {
289  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
290 }
291 
292 static inline bool taf_net_UnpackIpFamilyType
293 (
294  uint8_t **bufferPtr,
295  taf_net_IpFamilyType_t* valuePtr
296 )
297 {
298  bool result;
299  uint32_t value = 0;
300  result = le_pack_UnpackUint32(bufferPtr, &value);
301  if (result)
302  {
303  *valuePtr = (taf_net_IpFamilyType_t)value;
304  }
305  return result;
306 }
307 
308 static inline bool taf_net_PackVlanIfType
309 (
310  uint8_t **bufferPtr,
312 )
313 {
314  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
315 }
316 
317 static inline bool taf_net_UnpackVlanIfType
318 (
319  uint8_t **bufferPtr,
320  taf_net_VlanIfType_t* valuePtr
321 )
322 {
323  bool result;
324  uint32_t value = 0;
325  result = le_pack_UnpackUint32(bufferPtr, &value);
326  if (result)
327  {
328  *valuePtr = (taf_net_VlanIfType_t)value;
329  }
330  return result;
331 }
332 
333 static inline bool taf_net_PackBindingAction
334 (
335  uint8_t **bufferPtr,
337 )
338 {
339  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
340 }
341 
342 static inline bool taf_net_UnpackBindingAction
343 (
344  uint8_t **bufferPtr,
345  taf_net_BindingAction_t* valuePtr
346 )
347 {
348  bool result;
349  uint32_t value = 0;
350  result = le_pack_UnpackUint32(bufferPtr, &value);
351  if (result)
352  {
353  *valuePtr = (taf_net_BindingAction_t)value;
354  }
355  return result;
356 }
357 
358 static inline bool taf_net_PackDeviceMode
359 (
360  uint8_t **bufferPtr,
362 )
363 {
364  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
365 }
366 
367 static inline bool taf_net_UnpackDeviceMode
368 (
369  uint8_t **bufferPtr,
370  taf_net_DeviceMode_t* valuePtr
371 )
372 {
373  bool result;
374  uint32_t value = 0;
375  result = le_pack_UnpackUint32(bufferPtr, &value);
376  if (result)
377  {
378  *valuePtr = (taf_net_DeviceMode_t)value;
379  }
380  return result;
381 }
382 
383 static inline bool taf_net_PackAuthMethod
384 (
385  uint8_t **bufferPtr,
387 )
388 {
389  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
390 }
391 
392 static inline bool taf_net_UnpackAuthMethod
393 (
394  uint8_t **bufferPtr,
395  taf_net_AuthMethod_t* valuePtr
396 )
397 {
398  bool result;
399  uint32_t value = 0;
400  result = le_pack_UnpackUint32(bufferPtr, &value);
401  if (result)
402  {
403  *valuePtr = (taf_net_AuthMethod_t)value;
404  }
405  return result;
406 }
407 
408 static inline bool taf_net_PackGsbIfType
409 (
410  uint8_t **bufferPtr,
411  taf_net_GsbIfType_t value
412 )
413 {
414  return le_pack_PackUint32(bufferPtr, (uint32_t)value);
415 }
416 
417 static inline bool taf_net_UnpackGsbIfType
418 (
419  uint8_t **bufferPtr,
420  taf_net_GsbIfType_t* valuePtr
421 )
422 {
423  bool result;
424  uint32_t value = 0;
425  result = le_pack_UnpackUint32(bufferPtr, &value);
426  if (result)
427  {
428  *valuePtr = (taf_net_GsbIfType_t)value;
429  }
430  return result;
431 }
432 
433 // Define pack/unpack functions for all structures, including included types
434 
435 
436 static inline bool taf_net_PackDestNatChangeInd
437 (
438  uint8_t **bufferPtr,
439  const taf_net_DestNatChangeInd_t *valuePtr
440 )
441 {
442  __attribute__((unused))
443  bool subResult, result = true;
444 
445  LE_ASSERT(valuePtr);
446  subResult = le_pack_PackUint32( bufferPtr,
447  valuePtr->profileId );
448  result = result && subResult;
449  subResult = taf_net_PackNetAction( bufferPtr,
450  valuePtr->action );
451  result = result && subResult;
452 
453  return result;
454 }
455 
456 static inline bool taf_net_UnpackDestNatChangeInd
457 (
458  uint8_t **bufferPtr,
460 )
461 {
462  bool result = true;
463  if (result)
464  {
465  result = le_pack_UnpackUint32(bufferPtr,
466  &valuePtr->profileId );
467  }
468  if (result)
469  {
470  result = taf_net_UnpackNetAction(bufferPtr,
471  &valuePtr->action );
472  }
473  return result;
474 }
475 
476 static inline bool taf_net_PackInterfaceInfo
477 (
478  uint8_t **bufferPtr,
479  const taf_net_InterfaceInfo_t *valuePtr
480 )
481 {
482  __attribute__((unused))
483  bool subResult, result = true;
484 
485  LE_ASSERT(valuePtr);
486  subResult = le_pack_PackString( bufferPtr,
487  valuePtr->interfaceName, 30);
488  result = result && subResult;
489  subResult = taf_net_PackTechType( bufferPtr,
490  valuePtr->tech );
491  result = result && subResult;
492  subResult = taf_net_PackState( bufferPtr,
493  valuePtr->state );
494  result = result && subResult;
495 
496  return result;
497 }
498 
499 static inline bool taf_net_UnpackInterfaceInfo
500 (
501  uint8_t **bufferPtr,
502  taf_net_InterfaceInfo_t *valuePtr
503 )
504 {
505  bool result = true;
506  if (result)
507  {
508  result = le_pack_UnpackString(bufferPtr,
509  valuePtr->interfaceName,
510  sizeof(valuePtr->interfaceName),
511  30);
512  }
513  if (result)
514  {
515  result = taf_net_UnpackTechType(bufferPtr,
516  &valuePtr->tech );
517  }
518  if (result)
519  {
520  result = taf_net_UnpackState(bufferPtr,
521  &valuePtr->state );
522  }
523  return result;
524 }
525 
526 static inline bool taf_net_PackDnsServerAddresses
527 (
528  uint8_t **bufferPtr,
529  const taf_net_DnsServerAddresses_t *valuePtr
530 )
531 {
532  __attribute__((unused))
533  bool subResult, result = true;
534 
535  LE_ASSERT(valuePtr);
536  subResult = le_pack_PackString( bufferPtr,
537  valuePtr->ipv4Addr1, 16);
538  result = result && subResult;
539  subResult = le_pack_PackString( bufferPtr,
540  valuePtr->ipv4Addr2, 16);
541  result = result && subResult;
542  subResult = le_pack_PackString( bufferPtr,
543  valuePtr->ipv6Addr1, 46);
544  result = result && subResult;
545  subResult = le_pack_PackString( bufferPtr,
546  valuePtr->ipv6Addr2, 46);
547  result = result && subResult;
548 
549  return result;
550 }
551 
552 static inline bool taf_net_UnpackDnsServerAddresses
553 (
554  uint8_t **bufferPtr,
556 )
557 {
558  bool result = true;
559  if (result)
560  {
561  result = le_pack_UnpackString(bufferPtr,
562  valuePtr->ipv4Addr1,
563  sizeof(valuePtr->ipv4Addr1),
564  16);
565  }
566  if (result)
567  {
568  result = le_pack_UnpackString(bufferPtr,
569  valuePtr->ipv4Addr2,
570  sizeof(valuePtr->ipv4Addr2),
571  16);
572  }
573  if (result)
574  {
575  result = le_pack_UnpackString(bufferPtr,
576  valuePtr->ipv6Addr1,
577  sizeof(valuePtr->ipv6Addr1),
578  46);
579  }
580  if (result)
581  {
582  result = le_pack_UnpackString(bufferPtr,
583  valuePtr->ipv6Addr2,
584  sizeof(valuePtr->ipv6Addr2),
585  46);
586  }
587  return result;
588 }
589 
590 static inline bool taf_net_PackRouteChangeInd
591 (
592  uint8_t **bufferPtr,
593  const taf_net_RouteChangeInd_t *valuePtr
594 )
595 {
596  __attribute__((unused))
597  bool subResult, result = true;
598 
599  LE_ASSERT(valuePtr);
600  subResult = le_pack_PackString( bufferPtr,
601  valuePtr->interfaceName, 30);
602  result = result && subResult;
603  subResult = le_pack_PackString( bufferPtr,
604  valuePtr->destAddr, 46);
605  result = result && subResult;
606  subResult = le_pack_PackString( bufferPtr,
607  valuePtr->prefixLength, 46);
608  result = result && subResult;
609  subResult = le_pack_PackUint16( bufferPtr,
610  valuePtr->metric );
611  result = result && subResult;
612  subResult = taf_net_PackNetAction( bufferPtr,
613  valuePtr->action );
614  result = result && subResult;
615 
616  return result;
617 }
618 
619 static inline bool taf_net_UnpackRouteChangeInd
620 (
621  uint8_t **bufferPtr,
622  taf_net_RouteChangeInd_t *valuePtr
623 )
624 {
625  bool result = true;
626  if (result)
627  {
628  result = le_pack_UnpackString(bufferPtr,
629  valuePtr->interfaceName,
630  sizeof(valuePtr->interfaceName),
631  30);
632  }
633  if (result)
634  {
635  result = le_pack_UnpackString(bufferPtr,
636  valuePtr->destAddr,
637  sizeof(valuePtr->destAddr),
638  46);
639  }
640  if (result)
641  {
642  result = le_pack_UnpackString(bufferPtr,
643  valuePtr->prefixLength,
644  sizeof(valuePtr->prefixLength),
645  46);
646  }
647  if (result)
648  {
649  result = le_pack_UnpackUint16(bufferPtr,
650  &valuePtr->metric );
651  }
652  if (result)
653  {
654  result = taf_net_UnpackNetAction(bufferPtr,
655  &valuePtr->action );
656  }
657  return result;
658 }
659 
660 static inline bool taf_net_PackGatewayChangeInd
661 (
662  uint8_t **bufferPtr,
663  const taf_net_GatewayChangeInd_t *valuePtr
664 )
665 {
666  __attribute__((unused))
667  bool subResult, result = true;
668 
669  LE_ASSERT(valuePtr);
670  subResult = le_pack_PackString( bufferPtr,
671  valuePtr->interfaceName, 30);
672  result = result && subResult;
673  subResult = le_pack_PackString( bufferPtr,
674  valuePtr->gatewayAddr, 46);
675  result = result && subResult;
676  subResult = taf_net_PackNetIpType( bufferPtr,
677  valuePtr->ipType );
678  result = result && subResult;
679 
680  return result;
681 }
682 
683 static inline bool taf_net_UnpackGatewayChangeInd
684 (
685  uint8_t **bufferPtr,
687 )
688 {
689  bool result = true;
690  if (result)
691  {
692  result = le_pack_UnpackString(bufferPtr,
693  valuePtr->interfaceName,
694  sizeof(valuePtr->interfaceName),
695  30);
696  }
697  if (result)
698  {
699  result = le_pack_UnpackString(bufferPtr,
700  valuePtr->gatewayAddr,
701  sizeof(valuePtr->gatewayAddr),
702  46);
703  }
704  if (result)
705  {
706  result = taf_net_UnpackNetIpType(bufferPtr,
707  &valuePtr->ipType );
708  }
709  return result;
710 }
711 
712 static inline bool taf_net_PackDNSChangeInd
713 (
714  uint8_t **bufferPtr,
715  const taf_net_DNSChangeInd_t *valuePtr
716 )
717 {
718  __attribute__((unused))
719  bool subResult, result = true;
720 
721  LE_ASSERT(valuePtr);
722  subResult = le_pack_PackString( bufferPtr,
723  valuePtr->ipAddr1, 46);
724  result = result && subResult;
725  subResult = le_pack_PackString( bufferPtr,
726  valuePtr->ipAddr2, 46);
727  result = result && subResult;
728  subResult = taf_net_PackNetIpType( bufferPtr,
729  valuePtr->ipType );
730  result = result && subResult;
731 
732  return result;
733 }
734 
735 static inline bool taf_net_UnpackDNSChangeInd
736 (
737  uint8_t **bufferPtr,
738  taf_net_DNSChangeInd_t *valuePtr
739 )
740 {
741  bool result = true;
742  if (result)
743  {
744  result = le_pack_UnpackString(bufferPtr,
745  valuePtr->ipAddr1,
746  sizeof(valuePtr->ipAddr1),
747  46);
748  }
749  if (result)
750  {
751  result = le_pack_UnpackString(bufferPtr,
752  valuePtr->ipAddr2,
753  sizeof(valuePtr->ipAddr2),
754  46);
755  }
756  if (result)
757  {
758  result = taf_net_UnpackNetIpType(bufferPtr,
759  &valuePtr->ipType );
760  }
761  return result;
762 }
763 
764 static inline bool taf_net_PackL2tpSessionConfig
765 (
766  uint8_t **bufferPtr,
767  const taf_net_L2tpSessionConfig_t *valuePtr
768 )
769 {
770  __attribute__((unused))
771  bool subResult, result = true;
772 
773  LE_ASSERT(valuePtr);
774  subResult = le_pack_PackUint32( bufferPtr,
775  valuePtr->locId );
776  result = result && subResult;
777  subResult = le_pack_PackUint32( bufferPtr,
778  valuePtr->peerId );
779  result = result && subResult;
780 
781  return result;
782 }
783 
784 static inline bool taf_net_UnpackL2tpSessionConfig
785 (
786  uint8_t **bufferPtr,
788 )
789 {
790  bool result = true;
791  if (result)
792  {
793  result = le_pack_UnpackUint32(bufferPtr,
794  &valuePtr->locId );
795  }
796  if (result)
797  {
798  result = le_pack_UnpackUint32(bufferPtr,
799  &valuePtr->peerId );
800  }
801  return result;
802 }
803 
804 #endif // TAF_NET_MESSAGES_H_INCLUDE_GUARD
uint16_t metric
Definition: taf_net_common.h:394
static bool taf_net_PackGatewayChangeInd(uint8_t **bufferPtr, const taf_net_GatewayChangeInd_t *valuePtr)
Definition: taf_net_messages.h:661
char interfaceName[30+1]
Definition: taf_net_common.h:407
char prefixLength[46+1]
Definition: taf_net_common.h:393
char ipAddr1[46+1]
Definition: taf_net_common.h:421
static bool taf_net_PackDNSChangeInd(uint8_t **bufferPtr, const taf_net_DNSChangeInd_t *valuePtr)
Definition: taf_net_messages.h:713
taf_net_TechType_t
Definition: taf_net_common.h:186
char gatewayAddr[46+1]
Definition: taf_net_common.h:408
LE_DECLARE_INLINE bool le_pack_UnpackUint16(uint8_t **bufferPtr, uint16_t *valuePtr)
Definition: le_pack.h:1183
taf_net_NetAction_t action
Definition: taf_net_common.h:350
static bool taf_net_UnpackDeviceMode(uint8_t **bufferPtr, taf_net_DeviceMode_t *valuePtr)
Definition: taf_net_messages.h:368
taf_net_IpProto_t
Definition: taf_net_common.h:141
static bool taf_net_UnpackL2tpSessionConfig(uint8_t **bufferPtr, taf_net_L2tpSessionConfig_t *valuePtr)
Definition: taf_net_messages.h:785
taf_net_NetIpType_t ipType
Definition: taf_net_common.h:409
LE_DECLARE_INLINE bool le_pack_UnpackString(uint8_t **bufferPtr, char *stringPtr, uint32_t bufferSize, uint32_t maxStringCount)
Definition: le_pack.h:1565
static bool taf_net_UnpackDNSChangeInd(uint8_t **bufferPtr, taf_net_DNSChangeInd_t *valuePtr)
Definition: taf_net_messages.h:736
static bool taf_net_UnpackInterfaceInfo(uint8_t **bufferPtr, taf_net_InterfaceInfo_t *valuePtr)
Definition: taf_net_messages.h:500
taf_net_NetIpType_t
Definition: taf_net_common.h:171
taf_net_TechType_t tech
Definition: taf_net_common.h:363
Definition: taf_net_common.h:389
static bool taf_net_UnpackState(uint8_t **bufferPtr, taf_net_State_t *valuePtr)
Definition: taf_net_messages.h:243
Definition: taf_net_common.h:433
taf_net_BindingAction_t
Definition: taf_net_common.h:277
static bool taf_net_PackIpProto(uint8_t **bufferPtr, taf_net_IpProto_t value)
Definition: taf_net_messages.h:134
uint32_t peerId
Definition: taf_net_common.h:436
uint32_t profileId
Definition: taf_net_common.h:349
taf_net_L2tpEncapProtocol_t
Definition: taf_net_common.h:218
char ipAddr2[46+1]
Definition: taf_net_common.h:422
static bool taf_net_UnpackNetAction(uint8_t **bufferPtr, taf_net_NetAction_t *valuePtr)
Definition: taf_net_messages.h:168
Definition: taf_net_common.h:347
taf_net_DeviceMode_t
Definition: taf_net_common.h:292
LE_DECLARE_INLINE bool le_pack_PackUint16(uint8_t **bufferPtr, uint16_t value)
Definition: le_pack.h:159
static bool taf_net_PackNetAction(uint8_t **bufferPtr, taf_net_NetAction_t value)
Definition: taf_net_messages.h:159
taf_net_NetAction_t
Definition: taf_net_common.h:156
static bool taf_net_UnpackGsbIfType(uint8_t **bufferPtr, taf_net_GsbIfType_t *valuePtr)
Definition: taf_net_messages.h:418
static bool taf_net_UnpackNetIpType(uint8_t **bufferPtr, taf_net_NetIpType_t *valuePtr)
Definition: taf_net_messages.h:193
Definition: taf_net_common.h:419
static bool taf_net_PackState(uint8_t **bufferPtr, taf_net_State_t value)
Definition: taf_net_messages.h:234
static bool taf_net_UnpackRouteChangeInd(uint8_t **bufferPtr, taf_net_RouteChangeInd_t *valuePtr)
Definition: taf_net_messages.h:620
taf_net_VlanIfType_t
Definition: taf_net_common.h:254
#define _MAX_MSG_SIZE
Definition: taf_net_messages.h:17
Definition: taf_net_common.h:374
static bool taf_net_PackL2tpSessionConfig(uint8_t **bufferPtr, const taf_net_L2tpSessionConfig_t *valuePtr)
Definition: taf_net_messages.h:765
struct __attribute__((packed))
Definition: taf_net_messages.h:20
LE_DECLARE_INLINE bool le_pack_UnpackUint32(uint8_t **bufferPtr, uint32_t *valuePtr)
Definition: le_pack.h:1205
static bool taf_net_UnpackVlanIfType(uint8_t **bufferPtr, taf_net_VlanIfType_t *valuePtr)
Definition: taf_net_messages.h:318
static bool taf_net_UnpackDestNatChangeInd(uint8_t **bufferPtr, taf_net_DestNatChangeInd_t *valuePtr)
Definition: taf_net_messages.h:457
static bool taf_net_UnpackBindingAction(uint8_t **bufferPtr, taf_net_BindingAction_t *valuePtr)
Definition: taf_net_messages.h:343
taf_net_NetIpType_t ipType
Definition: taf_net_common.h:423
static bool taf_net_PackGsbIfType(uint8_t **bufferPtr, taf_net_GsbIfType_t value)
Definition: taf_net_messages.h:409
static bool taf_net_PackIpFamilyType(uint8_t **bufferPtr, taf_net_IpFamilyType_t value)
Definition: taf_net_messages.h:284
static bool taf_net_UnpackGatewayChangeInd(uint8_t **bufferPtr, taf_net_GatewayChangeInd_t *valuePtr)
Definition: taf_net_messages.h:684
taf_net_NetAction_t action
Definition: taf_net_common.h:395
uint32_t locId
Definition: taf_net_common.h:435
static bool taf_net_PackInterfaceInfo(uint8_t **bufferPtr, const taf_net_InterfaceInfo_t *valuePtr)
Definition: taf_net_messages.h:477
Definition: taf_net_common.h:405
#define LE_ASSERT(condition)
Definition: le_log.h:935
Definition: taf_net_common.h:360
static bool taf_net_PackDeviceMode(uint8_t **bufferPtr, taf_net_DeviceMode_t value)
Definition: taf_net_messages.h:359
static bool taf_net_UnpackTechType(uint8_t **bufferPtr, taf_net_TechType_t *valuePtr)
Definition: taf_net_messages.h:218
static bool taf_net_PackL2tpEncapProtocol(uint8_t **bufferPtr, taf_net_L2tpEncapProtocol_t value)
Definition: taf_net_messages.h:259
char ipv6Addr2[46+1]
Definition: taf_net_common.h:379
char interfaceName[30+1]
Definition: taf_net_common.h:391
static bool taf_net_UnpackDnsServerAddresses(uint8_t **bufferPtr, taf_net_DnsServerAddresses_t *valuePtr)
Definition: taf_net_messages.h:553
char ipv4Addr1[16+1]
Definition: taf_net_common.h:376
taf_net_State_t
Definition: taf_net_common.h:203
static bool taf_net_PackAuthMethod(uint8_t **bufferPtr, taf_net_AuthMethod_t value)
Definition: taf_net_messages.h:384
taf_net_AuthMethod_t
Definition: taf_net_common.h:311
taf_net_IpFamilyType_t
Definition: taf_net_common.h:235
static bool taf_net_UnpackAuthMethod(uint8_t **bufferPtr, taf_net_AuthMethod_t *valuePtr)
Definition: taf_net_messages.h:393
char ipv4Addr2[16+1]
Definition: taf_net_common.h:377
char destAddr[46+1]
Definition: taf_net_common.h:392
taf_net_GsbIfType_t
Definition: taf_net_common.h:328
static bool taf_net_UnpackIpProto(uint8_t **bufferPtr, taf_net_IpProto_t *valuePtr)
Definition: taf_net_messages.h:143
static bool taf_net_PackDnsServerAddresses(uint8_t **bufferPtr, const taf_net_DnsServerAddresses_t *valuePtr)
Definition: taf_net_messages.h:527
static bool taf_net_PackDestNatChangeInd(uint8_t **bufferPtr, const taf_net_DestNatChangeInd_t *valuePtr)
Definition: taf_net_messages.h:437
LE_DECLARE_INLINE bool le_pack_PackString(uint8_t **bufferPtr, const char *stringPtr, uint32_t maxStringCount)
Definition: le_pack.h:884
static bool taf_net_PackBindingAction(uint8_t **bufferPtr, taf_net_BindingAction_t value)
Definition: taf_net_messages.h:334
taf_net_State_t state
Definition: taf_net_common.h:364
char ipv6Addr1[46+1]
Definition: taf_net_common.h:378
_Message_t
Definition: taf_net_messages.h:25
static bool taf_net_PackTechType(uint8_t **bufferPtr, taf_net_TechType_t value)
Definition: taf_net_messages.h:209
LE_DECLARE_INLINE bool le_pack_PackUint32(uint8_t **bufferPtr, uint32_t value)
Definition: le_pack.h:205
char interfaceName[30+1]
Definition: taf_net_common.h:362
static bool taf_net_UnpackIpFamilyType(uint8_t **bufferPtr, taf_net_IpFamilyType_t *valuePtr)
Definition: taf_net_messages.h:293
static bool taf_net_PackRouteChangeInd(uint8_t **bufferPtr, const taf_net_RouteChangeInd_t *valuePtr)
Definition: taf_net_messages.h:591
static bool taf_net_UnpackL2tpEncapProtocol(uint8_t **bufferPtr, taf_net_L2tpEncapProtocol_t *valuePtr)
Definition: taf_net_messages.h:268
static bool taf_net_PackVlanIfType(uint8_t **bufferPtr, taf_net_VlanIfType_t value)
Definition: taf_net_messages.h:309
static bool taf_net_PackNetIpType(uint8_t **bufferPtr, taf_net_NetIpType_t value)
Definition: taf_net_messages.h:184