*/
ia6 = ip6_getdstifaddr(m);
if (ia6 && (ia6->ia6_flags & IN6_IFF_ANYCAST)) {
- struct ip6_hdr *ip6;
-
- ip6 = mtod(m, struct ip6_hdr *);
icmp6_error(m, ICMP6_DST_UNREACH, ICMP6_DST_UNREACH_ADDR,
offsetof(struct ip6_hdr, ip6_dst));
return (IPPROTO_DONE);
#endif
struct mbuf *m;
struct ip *ip;
- struct ipovly *ipov;
struct tcphdr *th;
u_char opt[TCP_MAXOLEN];
unsigned int ipoptlen, optlen, hdrlen;
again:
m = NULL;
ip = NULL;
- ipov = NULL;
th = NULL;
ip6 = NULL;
tcp_fillheaders(tp, ip6, th, use_tso);
} else {
ip = mtod(m, struct ip *);
- ipov = (struct ipovly *)ip;
th = (struct tcphdr *)(ip + 1);
/* this picks up the pseudo header (w/o the length) */
tcp_fillheaders(tp, ip, th, use_tso);