/* return the signed modulo-2^48 sequence number distance from entry e1 to e2 */ static s64 tfrc_rx_hist_delta_seqno(struct tfrc_rx_hist *h, u8 e1, u8 e2) { DCCP_BUG_ON(e1 > h->loss_count || e2 > h->loss_count); return dccp_delta_seqno(tfrc_rx_hist_entry(h, e1)->tfrchrx_seqno, tfrc_rx_hist_entry(h, e2)->tfrchrx_seqno); }
static int dccp_feat_default_value(u8 feat_num) { int idx = dccp_feat_index(feat_num); /* * There are no default values for unknown features, so encountering a * negative index here indicates a serious problem somewhere else. */ DCCP_BUG_ON(idx < 0); return idx < 0 ? 0 : dccp_feat_table[idx].default_value; }