| 435 | } |
| 436 | |
| 437 | static void |
| 438 | me_delete_tunnel(struct me_softc *sc) |
| 439 | { |
| 440 | |
| 441 | sx_assert(&me_ioctl_sx, SA_XLOCKED); |
| 442 | if (ME_READY(sc)) { |
| 443 | CK_LIST_REMOVE(sc, chain); |
| 444 | CK_LIST_REMOVE(sc, srchash); |
| 445 | ME_WAIT(); |
| 446 | |
| 447 | sc->me_src.s_addr = 0; |
| 448 | sc->me_dst.s_addr = 0; |
| 449 | ME2IFP(sc)->if_drv_flags &= ~IFF_DRV_RUNNING; |
| 450 | if_link_state_change(ME2IFP(sc), LINK_STATE_DOWN); |
| 451 | } |
| 452 | } |
| 453 | |
| 454 | static uint16_t |
| 455 | me_in_cksum(uint16_t *p, int nwords) |
no test coverage detected