mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Remove ip6 pointer initialization and strange check from the beginning
of ip6_output(). It isn't used until the first time adjusted. Remove the comment about adjusting where it is actually initialized.
This commit is contained in:
parent
873b0260d4
commit
9fdab4c052
1 changed files with 0 additions and 7 deletions
|
|
@ -325,12 +325,6 @@ ip6_output(struct mbuf *m0, struct ip6_pktopts *opt,
|
|||
struct m_tag *fwd_tag = NULL;
|
||||
uint32_t id;
|
||||
|
||||
ip6 = mtod(m, struct ip6_hdr *);
|
||||
if (ip6 == NULL) {
|
||||
printf ("ip6 is NULL");
|
||||
goto bad;
|
||||
}
|
||||
|
||||
if (inp != NULL) {
|
||||
M_SETFIB(m, inp->inp_inc.inc_fibnum);
|
||||
if ((flags & IP_NODEFAULTFLOWID) == 0) {
|
||||
|
|
@ -412,7 +406,6 @@ ip6_output(struct mbuf *m0, struct ip6_pktopts *opt,
|
|||
hdrsplit++;
|
||||
}
|
||||
|
||||
/* adjust pointer */
|
||||
ip6 = mtod(m, struct ip6_hdr *);
|
||||
|
||||
/* adjust mbuf packet header length */
|
||||
|
|
|
|||
Loading…
Reference in a new issue