| 275 | } |
| 276 | |
| 277 | static void |
| 278 | rts_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 |
nothing calls this directly
no test coverage detected