mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 08:52:07 +01:00
Bring the PPPoE Ethernet interface up *BEFORE* we send the node a
CONNECT message. MFC after: 1 week
This commit is contained in:
parent
03e563d7dc
commit
8152dca8b2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79854
@ -595,6 +595,12 @@ ether_Create(struct physical *p)
|
||||
return ether_Abandon(dev, p);
|
||||
}
|
||||
|
||||
/* Bring the Ethernet interface up */
|
||||
path[ifacelen] = '\0'; /* Remove the trailing ':' */
|
||||
if (!iface_SetFlags(path, IFF_UP))
|
||||
log_Printf(LogWARN, "%s: Failed to set the IFF_UP flag on %s\n",
|
||||
p->link.name, path);
|
||||
|
||||
/* And finally, request a connection to the given provider */
|
||||
|
||||
data = (struct ngpppoe_init_data *)alloca(sizeof *data + providerlen);
|
||||
@ -675,16 +681,6 @@ ether_Create(struct physical *p)
|
||||
|
||||
if (dev) {
|
||||
physical_SetupStack(p, dev->dev.name, PHYSICAL_FORCE_SYNCNOACF);
|
||||
|
||||
if (path != NULL) {
|
||||
/* Mark the interface as UP if it's not already */
|
||||
|
||||
path[ifacelen] = '\0'; /* Remove the trailing ':' */
|
||||
if (!iface_SetFlags(path, IFF_UP))
|
||||
log_Printf(LogWARN, "%s: Failed to set the IFF_UP flag on %s\n",
|
||||
p->link.name, path);
|
||||
}
|
||||
|
||||
return &dev->dev;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user