All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
congestion-mark.h
1 
21 #ifndef NDN_CONGESTION_MARK_H
22 #define NDN_CONGESTION_MARK_H
23 
24 #include "lp-packet.h"
25 #include <ndn-cpp/c/lp/congestion-mark-types.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 struct ndn_LpPacket;
32 
37 static __inline void
38 ndn_CongestionMark_initialize(struct ndn_CongestionMark *self)
39 {
40  self->congestionMark = 0;
41 }
42 
49 const struct ndn_CongestionMark *
50 ndn_CongestionMark_getFirstHeader(const struct ndn_LpPacket *lpPacket);
51 
60 ndn_Error
61 ndn_CongestionMark_add
62  (struct ndn_LpPacket *lpPacket, struct ndn_CongestionMark **congestionMark);
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif
An ndn_LpPacket holds a list of LP packet header fields and an optional fragment wire encoding...
Definition: lp-packet-types.h:60
Copyright (C) 2018 Regents of the University of California.
Definition: congestion-mark-types.h:33
uint64_t congestionMark
0 if not specified.
Definition: congestion-mark-types.h:34