static inline void pg_hdlc_header_init (pg_hdlc_header_t * e) { pg_edit_init (&e->address, hdlc_header_t, address); pg_edit_init (&e->control, hdlc_header_t, control); pg_edit_init (&e->protocol, hdlc_header_t, protocol); }
static inline void pg_srp_header_init (pg_srp_header_t * e) { pg_edit_init (&e->ttl, srp_and_ethernet_header_t, srp.ttl); pg_edit_init_bitfield (&e->is_inner_ring, srp_and_ethernet_header_t, srp.as_u16, 7, 1); pg_edit_init_bitfield (&e->mode, srp_and_ethernet_header_t, srp.as_u16, 4, 3); pg_edit_init_bitfield (&e->priority, srp_and_ethernet_header_t, srp.as_u16, 1, 3); pg_edit_init_bitfield (&e->parity, srp_and_ethernet_header_t, srp.as_u16, 0, 1); pg_edit_init (&e->type, srp_and_ethernet_header_t, ethernet.type); pg_edit_init (&e->src_address, srp_and_ethernet_header_t, ethernet.src_address); pg_edit_init (&e->dst_address, srp_and_ethernet_header_t, ethernet.dst_address); }
static inline void pg_snap_header_init (pg_snap_header_t * e) { pg_edit_init (&e->oui, snap_header_t, oui); pg_edit_init (&e->protocol, snap_header_t, protocol); }
static inline void pg_osi_header_init (pg_osi_header_t * e) { pg_edit_init (&e->protocol, osi_header_t, protocol); }
static inline void pg_l2tp_header_init (pg_l2tp_header_t * e) { pg_edit_init (&e->session_id, l2tpv3_header_t, session_id); pg_edit_init (&e->cookie, l2tpv3_header_t, cookie); }