mld6.c (143881) | mld6.c (148242) |
---|---|
1/* $FreeBSD: head/sys/netinet6/mld6.c 143881 2005-03-20 14:31:45Z glebius $ */ | 1/* $FreeBSD: head/sys/netinet6/mld6.c 148242 2005-07-21 15:06:32Z ume $ */ |
2/* $KAME: mld6.c,v 1.27 2001/04/04 05:17:30 itojun Exp $ */ 3 4/*- 5 * Copyright (C) 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 111 unchanged lines hidden (view full) --- 121 122 /* XXX: grotty hard coding... */ 123 hbh_buf[2] = IP6OPT_PADN; /* 2 byte padding */ 124 hbh_buf[3] = 0; 125 hbh_buf[4] = IP6OPT_ROUTER_ALERT; 126 hbh_buf[5] = IP6OPT_RTALERT_LEN - 2; 127 bcopy((caddr_t)&rtalert_code, &hbh_buf[6], sizeof(u_int16_t)); 128 | 2/* $KAME: mld6.c,v 1.27 2001/04/04 05:17:30 itojun Exp $ */ 3 4/*- 5 * Copyright (C) 1998 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 111 unchanged lines hidden (view full) --- 121 122 /* XXX: grotty hard coding... */ 123 hbh_buf[2] = IP6OPT_PADN; /* 2 byte padding */ 124 hbh_buf[3] = 0; 125 hbh_buf[4] = IP6OPT_ROUTER_ALERT; 126 hbh_buf[5] = IP6OPT_RTALERT_LEN - 2; 127 bcopy((caddr_t)&rtalert_code, &hbh_buf[6], sizeof(u_int16_t)); 128 |
129 init_ip6pktopts(&ip6_opts); | 129 ip6_initpktopts(&ip6_opts); |
130 ip6_opts.ip6po_hbh = hbh; 131} 132 133void 134mld6_start_listening(in6m) 135 struct in6_multi *in6m; 136{ 137 int s = splnet(); --- 429 unchanged lines hidden --- | 130 ip6_opts.ip6po_hbh = hbh; 131} 132 133void 134mld6_start_listening(in6m) 135 struct in6_multi *in6m; 136{ 137 int s = splnet(); --- 429 unchanged lines hidden --- |