MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rts_input

Function rts_input

freebsd/net/rtsock.c:277–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275}
276
277static void
278rts_input(struct mbuf *m)
279{
280 struct sockproto route_proto;
281 unsigned short *family;
282 struct m_tag *tag;
283
284 route_proto.sp_family = PF_ROUTE;
285 tag = m_tag_find(m, PACKET_TAG_RTSOCKFAM, NULL);
286 if (tag != NULL) {
287 family = (unsigned short *)(tag + 1);
288 route_proto.sp_protocol = *family;
289 m_tag_delete(m, tag);
290 } else
291 route_proto.sp_protocol = 0;
292
293 raw_input_ext(m, &route_proto, &route_src, raw_input_rts_cb);
294}
295
296/*
297 * It really doesn't make any sense at all for this code to share much

Callers

nothing calls this directly

Calls 3

m_tag_deleteFunction · 0.85
raw_input_extFunction · 0.85
m_tag_findFunction · 0.50

Tested by

no test coverage detected