Bug 17814

Summary: sr driver ignores IFF_LINK2 | IFF_DEBUG when first time ifconfig
Product: Base System Reporter: fujiwara <fujiwara>
Component: kernAssignee: John Hay <jhay>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description fujiwara 2000-04-05 20:10:00 UTC
write to rc.conf:
  network_interfaces="sr0 ..."
  ifconfig_sr0="inet 192.168.1.1 192.168.1.2 netmask 0xfffffffc link2 debug up"

but then,
  ifconfig sr0 shows without LINK2 and DEBUB
So, CISCO_HDLC connection is not done.

Fix: firsttime sr_ioctl() calls sppp_attach,
    sppp_attach destroys ifp->if_flags
  So, sr_ioctl ignores LINK2 and DEBUG flags

  my temporary patch is here. (if_spppsubr.c:sr_attach())
Comment 1 John Hay freebsd_committer freebsd_triage 2000-04-08 18:17:21 UTC
State Changed
From-To: open->feedback

I fixed it in rev. 1.35 of if_sr.c. Can you check if it fix it for you too, 
please? 


Comment 2 John Hay freebsd_committer freebsd_triage 2000-04-08 18:17:21 UTC
Responsible Changed
From-To: freebsd-bugs->jhay

I'll look at it. 
Comment 3 John Hay freebsd_committer freebsd_triage 2000-05-16 11:49:26 UTC
State Changed
From-To: feedback->closed

Fixed in -current and merged to 4.0-stable.